1#! /bin/sh
2# From configure.ac for lifelines, built with autoconf AC_ACVERSION.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69 for lifelines 3.1.1.
5#
6#
7# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
8#
9#
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## -------------------- ##
13## M4sh Initialization. ##
14## -------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19  emulate sh
20  NULLCMD=:
21  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22  # is contrary to our usage.  Disable this feature.
23  alias -g '${1+"$@"}'='"$@"'
24  setopt NO_GLOB_SUBST
25else
26  case `(set -o) 2>/dev/null` in #(
27  *posix*) :
28    set -o posix ;; #(
29  *) :
30     ;;
31esac
32fi
33
34
35as_nl='
36'
37export as_nl
38# Printing a long string crashes Solaris 7 /usr/bin/printf.
39as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42# Prefer a ksh shell builtin over an external printf program on Solaris,
43# but without wasting forks for bash or zsh.
44if test -z "$BASH_VERSION$ZSH_VERSION" \
45    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46  as_echo='print -r --'
47  as_echo_n='print -rn --'
48elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='printf %s\n'
50  as_echo_n='printf %s'
51else
52  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54    as_echo_n='/usr/ucb/echo -n'
55  else
56    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57    as_echo_n_body='eval
58      arg=$1;
59      case $arg in #(
60      *"$as_nl"*)
61	expr "X$arg" : "X\\(.*\\)$as_nl";
62	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63      esac;
64      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65    '
66    export as_echo_n_body
67    as_echo_n='sh -c $as_echo_n_body as_echo'
68  fi
69  export as_echo_body
70  as_echo='sh -c $as_echo_body as_echo'
71fi
72
73# The user is always right.
74if test "${PATH_SEPARATOR+set}" != set; then
75  PATH_SEPARATOR=:
76  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78      PATH_SEPARATOR=';'
79  }
80fi
81
82
83# IFS
84# We need space, tab and new line, in precisely that order.  Quoting is
85# there to prevent editors from complaining about space-tab.
86# (If _AS_PATH_WALK were called with IFS unset, it would disable word
87# splitting by setting IFS to empty value.)
88IFS=" ""	$as_nl"
89
90# Find who we are.  Look in the path if we contain no directory separator.
91as_myself=
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136# Use a proper internal environment variable to ensure we don't fall
137  # into an infinite loop, continuously re-executing ourselves.
138  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139    _as_can_reexec=no; export _as_can_reexec;
140    # We cannot yet assume a decent shell, so we have to provide a
141# neutralization value for shells without unset; and this also
142# works around shells that cannot unset nonexistent variables.
143# Preserve -v and -x to the replacement shell.
144BASH_ENV=/dev/null
145ENV=/dev/null
146(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147case $- in # ((((
148  *v*x* | *x*v* ) as_opts=-vx ;;
149  *v* ) as_opts=-v ;;
150  *x* ) as_opts=-x ;;
151  * ) as_opts= ;;
152esac
153exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154# Admittedly, this is quite paranoid, since all the known shells bail
155# out after a failed `exec'.
156$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157as_fn_exit 255
158  fi
159  # We don't want this to propagate to other subprocesses.
160          { _as_can_reexec=; unset _as_can_reexec;}
161if test "x$CONFIG_SHELL" = x; then
162  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
163  emulate sh
164  NULLCMD=:
165  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166  # is contrary to our usage.  Disable this feature.
167  alias -g '\${1+\"\$@\"}'='\"\$@\"'
168  setopt NO_GLOB_SUBST
169else
170  case \`(set -o) 2>/dev/null\` in #(
171  *posix*) :
172    set -o posix ;; #(
173  *) :
174     ;;
175esac
176fi
177"
178  as_required="as_fn_return () { (exit \$1); }
179as_fn_success () { as_fn_return 0; }
180as_fn_failure () { as_fn_return 1; }
181as_fn_ret_success () { return 0; }
182as_fn_ret_failure () { return 1; }
183
184exitcode=0
185as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
191else
192  exitcode=1; echo positional parameters were not saved.
193fi
194test x\$exitcode = x0 || exit 1
195test -x / || exit 1"
196  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200test \$(( 1 + 1 )) = 2 || exit 1"
201  if (eval "$as_required") 2>/dev/null; then :
202  as_have_required=yes
203else
204  as_have_required=no
205fi
206  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208else
209  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210as_found=false
211for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212do
213  IFS=$as_save_IFS
214  test -z "$as_dir" && as_dir=.
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir/$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223  CONFIG_SHELL=$as_shell as_have_required=yes
224		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225  break 2
226fi
227fi
228	   done;;
229       esac
230  as_found=false
231done
232$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234  CONFIG_SHELL=$SHELL as_have_required=yes
235fi; }
236IFS=$as_save_IFS
237
238
239      if test "x$CONFIG_SHELL" != x; then :
240  export CONFIG_SHELL
241             # We cannot yet assume a decent shell, so we have to provide a
242# neutralization value for shells without unset; and this also
243# works around shells that cannot unset nonexistent variables.
244# Preserve -v and -x to the replacement shell.
245BASH_ENV=/dev/null
246ENV=/dev/null
247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248case $- in # ((((
249  *v*x* | *x*v* ) as_opts=-vx ;;
250  *v* ) as_opts=-v ;;
251  *x* ) as_opts=-x ;;
252  * ) as_opts= ;;
253esac
254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255# Admittedly, this is quite paranoid, since all the known shells bail
256# out after a failed `exec'.
257$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258exit 255
259fi
260
261    if test x$as_have_required = xno; then :
262  $as_echo "$0: This script requires a shell more modern than all"
263  $as_echo "$0: the shells that I found on your system."
264  if test x${ZSH_VERSION+set} = xset ; then
265    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267  else
268    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
269$0: including any error possibly output before this
270$0: message. Then install a modern shell, or manually run
271$0: the script under such a shell if you do have one."
272  fi
273  exit 1
274fi
275fi
276fi
277SHELL=${CONFIG_SHELL-/bin/sh}
278export SHELL
279# Unset more variables known to interfere with behavior of common tools.
280CLICOLOR_FORCE= GREP_OPTIONS=
281unset CLICOLOR_FORCE GREP_OPTIONS
282
283## --------------------- ##
284## M4sh Shell Functions. ##
285## --------------------- ##
286# as_fn_unset VAR
287# ---------------
288# Portably unset VAR.
289as_fn_unset ()
290{
291  { eval $1=; unset $1;}
292}
293as_unset=as_fn_unset
294
295# as_fn_set_status STATUS
296# -----------------------
297# Set $? to STATUS, without forking.
298as_fn_set_status ()
299{
300  return $1
301} # as_fn_set_status
302
303# as_fn_exit STATUS
304# -----------------
305# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
306as_fn_exit ()
307{
308  set +e
309  as_fn_set_status $1
310  exit $1
311} # as_fn_exit
312
313# as_fn_mkdir_p
314# -------------
315# Create "$as_dir" as a directory, including parents if necessary.
316as_fn_mkdir_p ()
317{
318
319  case $as_dir in #(
320  -*) as_dir=./$as_dir;;
321  esac
322  test -d "$as_dir" || eval $as_mkdir_p || {
323    as_dirs=
324    while :; do
325      case $as_dir in #(
326      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
327      *) as_qdir=$as_dir;;
328      esac
329      as_dirs="'$as_qdir' $as_dirs"
330      as_dir=`$as_dirname -- "$as_dir" ||
331$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
332	 X"$as_dir" : 'X\(//\)[^/]' \| \
333	 X"$as_dir" : 'X\(//\)$' \| \
334	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
335$as_echo X"$as_dir" |
336    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
337	    s//\1/
338	    q
339	  }
340	  /^X\(\/\/\)[^/].*/{
341	    s//\1/
342	    q
343	  }
344	  /^X\(\/\/\)$/{
345	    s//\1/
346	    q
347	  }
348	  /^X\(\/\).*/{
349	    s//\1/
350	    q
351	  }
352	  s/.*/./; q'`
353      test -d "$as_dir" && break
354    done
355    test -z "$as_dirs" || eval "mkdir $as_dirs"
356  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
357
358
359} # as_fn_mkdir_p
360
361# as_fn_executable_p FILE
362# -----------------------
363# Test if FILE is an executable regular file.
364as_fn_executable_p ()
365{
366  test -f "$1" && test -x "$1"
367} # as_fn_executable_p
368# as_fn_append VAR VALUE
369# ----------------------
370# Append the text in VALUE to the end of the definition contained in VAR. Take
371# advantage of any shell optimizations that allow amortized linear growth over
372# repeated appends, instead of the typical quadratic growth present in naive
373# implementations.
374if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
375  eval 'as_fn_append ()
376  {
377    eval $1+=\$2
378  }'
379else
380  as_fn_append ()
381  {
382    eval $1=\$$1\$2
383  }
384fi # as_fn_append
385
386# as_fn_arith ARG...
387# ------------------
388# Perform arithmetic evaluation on the ARGs, and store the result in the
389# global $as_val. Take advantage of shells that can avoid forks. The arguments
390# must be portable across $(()) and expr.
391if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
392  eval 'as_fn_arith ()
393  {
394    as_val=$(( $* ))
395  }'
396else
397  as_fn_arith ()
398  {
399    as_val=`expr "$@" || test $? -eq 1`
400  }
401fi # as_fn_arith
402
403
404# as_fn_error STATUS ERROR [LINENO LOG_FD]
405# ----------------------------------------
406# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
407# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
408# script with STATUS, using 1 if that was 0.
409as_fn_error ()
410{
411  as_status=$1; test $as_status -eq 0 && as_status=1
412  if test "$4"; then
413    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
414    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415  fi
416  $as_echo "$as_me: error: $2" >&2
417  as_fn_exit $as_status
418} # as_fn_error
419
420if expr a : '\(a\)' >/dev/null 2>&1 &&
421   test "X`expr 00001 : '.*\(...\)'`" = X001; then
422  as_expr=expr
423else
424  as_expr=false
425fi
426
427if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
428  as_basename=basename
429else
430  as_basename=false
431fi
432
433if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
434  as_dirname=dirname
435else
436  as_dirname=false
437fi
438
439as_me=`$as_basename -- "$0" ||
440$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
441	 X"$0" : 'X\(//\)$' \| \
442	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443$as_echo X/"$0" |
444    sed '/^.*\/\([^/][^/]*\)\/*$/{
445	    s//\1/
446	    q
447	  }
448	  /^X\/\(\/\/\)$/{
449	    s//\1/
450	    q
451	  }
452	  /^X\/\(\/\).*/{
453	    s//\1/
454	    q
455	  }
456	  s/.*/./; q'`
457
458# Avoid depending upon Character Ranges.
459as_cr_letters='abcdefghijklmnopqrstuvwxyz'
460as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
461as_cr_Letters=$as_cr_letters$as_cr_LETTERS
462as_cr_digits='0123456789'
463as_cr_alnum=$as_cr_Letters$as_cr_digits
464
465
466  as_lineno_1=$LINENO as_lineno_1a=$LINENO
467  as_lineno_2=$LINENO as_lineno_2a=$LINENO
468  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
469  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
470  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
471  sed -n '
472    p
473    /[$]LINENO/=
474  ' <$as_myself |
475    sed '
476      s/[$]LINENO.*/&-/
477      t lineno
478      b
479      :lineno
480      N
481      :loop
482      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
483      t loop
484      s/-\n.*//
485    ' >$as_me.lineno &&
486  chmod +x "$as_me.lineno" ||
487    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488
489  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
490  # already done that, so ensure we don't try to do so again and fall
491  # in an infinite loop.  This has already happened in practice.
492  _as_can_reexec=no; export _as_can_reexec
493  # Don't try to exec as it changes $[0], causing all sort of problems
494  # (the dirname of $[0] is not the place where we might find the
495  # original and so on.  Autoconf is especially sensitive to this).
496  . "./$as_me.lineno"
497  # Exit status is that of the last command.
498  exit
499}
500
501ECHO_C= ECHO_N= ECHO_T=
502case `echo -n x` in #(((((
503-n*)
504  case `echo 'xy\c'` in
505  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
506  xy)  ECHO_C='\c';;
507  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
508       ECHO_T='	';;
509  esac;;
510*)
511  ECHO_N='-n';;
512esac
513
514rm -f conf$$ conf$$.exe conf$$.file
515if test -d conf$$.dir; then
516  rm -f conf$$.dir/conf$$.file
517else
518  rm -f conf$$.dir
519  mkdir conf$$.dir 2>/dev/null
520fi
521if (echo >conf$$.file) 2>/dev/null; then
522  if ln -s conf$$.file conf$$ 2>/dev/null; then
523    as_ln_s='ln -s'
524    # ... but there are two gotchas:
525    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
526    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
527    # In both cases, we have to default to `cp -pR'.
528    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529      as_ln_s='cp -pR'
530  elif ln conf$$.file conf$$ 2>/dev/null; then
531    as_ln_s=ln
532  else
533    as_ln_s='cp -pR'
534  fi
535else
536  as_ln_s='cp -pR'
537fi
538rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
539rmdir conf$$.dir 2>/dev/null
540
541if mkdir -p . 2>/dev/null; then
542  as_mkdir_p='mkdir -p "$as_dir"'
543else
544  test -d ./-p && rmdir ./-p
545  as_mkdir_p=false
546fi
547
548as_test_x='test -x'
549as_executable_p=as_fn_executable_p
550
551# Sed expression to map a string onto a valid CPP name.
552as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553
554# Sed expression to map a string onto a valid variable name.
555as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556
557
558test -n "$DJDIR" || exec 7<&0 </dev/null
559exec 6>&1
560
561# Name of the host.
562# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
563# so uname gets run too.
564ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
565
566#
567# Initializations.
568#
569ac_default_prefix=/usr/local
570ac_clean_files=
571ac_config_libobj_dir=.
572LIBOBJS=
573cross_compiling=no
574subdirs=
575MFLAGS=
576MAKEFLAGS=
577
578# Identity of this package.
579PACKAGE_NAME='lifelines'
580PACKAGE_TARNAME='lifelines'
581PACKAGE_VERSION='3.1.1'
582PACKAGE_STRING='lifelines 3.1.1'
583PACKAGE_BUGREPORT=''
584PACKAGE_URL=''
585
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_header_list=
623ac_subst_vars='am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
626LIBOBJS
627BUILD_DOCS_FALSE
628BUILD_DOCS_TRUE
629TOOL_DBLATEX
630TOOL_XMLTO
631POSUB
632LTLIBINTL
633LIBINTL
634INTLLIBS
635INTL_LIBTOOL_SUFFIX_PREFIX
636GENCAT
637INSTOBJEXT
638DATADIRNAME
639INTLOBJS
640CATOBJEXT
641USE_INCLUDED_LIBINTL
642BUILD_INCLUDED_LIBINTL
643USE_NLS
644INTLBISON
645LTLIBICONV
646LIBICONV
647GLIBC21
648ALLOCA
649EGREP
650GREP
651CPP
652MSGMERGE
653XGETTEXT
654GMSGFMT
655MSGFMT
656MKINSTALLDIRS
657YFLAGS
658YACC
659RANLIB
660am__fastdepCC_FALSE
661am__fastdepCC_TRUE
662CCDEPMODE
663am__nodep
664AMDEPBACKSLASH
665AMDEP_FALSE
666AMDEP_TRUE
667am__quote
668am__include
669DEPDIR
670OBJEXT
671EXEEXT
672ac_ct_CC
673CPPFLAGS
674LDFLAGS
675CFLAGS
676CC
677MAINT
678MAINTAINER_MODE_FALSE
679MAINTAINER_MODE_TRUE
680AM_BACKSLASH
681AM_DEFAULT_VERBOSITY
682AM_DEFAULT_V
683AM_V
684am__untar
685am__tar
686AMTAR
687am__leading_dot
688SET_MAKE
689AWK
690mkdir_p
691MKDIR_P
692INSTALL_STRIP_PROGRAM
693STRIP
694install_sh
695MAKEINFO
696AUTOHEADER
697AUTOMAKE
698AUTOCONF
699ACLOCAL
700VERSION
701PACKAGE
702CYGPATH_W
703am__isrc
704INSTALL_DATA
705INSTALL_SCRIPT
706INSTALL_PROGRAM
707host_os
708host_vendor
709host_cpu
710host
711build_os
712build_vendor
713build_cpu
714build
715target_alias
716host_alias
717build_alias
718LIBS
719ECHO_T
720ECHO_N
721ECHO_C
722DEFS
723mandir
724localedir
725libdir
726psdir
727pdfdir
728dvidir
729htmldir
730infodir
731docdir
732oldincludedir
733includedir
734localstatedir
735sharedstatedir
736sysconfdir
737datadir
738datarootdir
739libexecdir
740sbindir
741bindir
742program_transform_name
743prefix
744exec_prefix
745PACKAGE_URL
746PACKAGE_BUGREPORT
747PACKAGE_STRING
748PACKAGE_VERSION
749PACKAGE_TARNAME
750PACKAGE_NAME
751PATH_SEPARATOR
752SHELL'
753ac_subst_files=''
754ac_user_opts='
755enable_option_checking
756enable_silent_rules
757enable_maintainer_mode
758enable_dependency_tracking
759with_gnu_ld
760enable_rpath
761with_libiconv_prefix
762enable_nls
763with_included_gettext
764with_libintl_prefix
765with_docs
766with_profiling
767'
768      ac_precious_vars='build_alias
769host_alias
770target_alias
771CC
772CFLAGS
773LDFLAGS
774LIBS
775CPPFLAGS
776YACC
777YFLAGS
778CPP'
779
780
781# Initialize some variables set by options.
782ac_init_help=
783ac_init_version=false
784ac_unrecognized_opts=
785ac_unrecognized_sep=
786# The variables have the same names as the options, with
787# dashes changed to underlines.
788cache_file=/dev/null
789exec_prefix=NONE
790no_create=
791no_recursion=
792prefix=NONE
793program_prefix=NONE
794program_suffix=NONE
795program_transform_name=s,x,x,
796silent=
797site=
798srcdir=
799verbose=
800x_includes=NONE
801x_libraries=NONE
802
803# Installation directory options.
804# These are left unexpanded so users can "make install exec_prefix=/foo"
805# and all the variables that are supposed to be based on exec_prefix
806# by default will actually change.
807# Use braces instead of parens because sh, perl, etc. also accept them.
808# (The list follows the same order as the GNU Coding Standards.)
809bindir='${exec_prefix}/bin'
810sbindir='${exec_prefix}/sbin'
811libexecdir='${exec_prefix}/libexec'
812datarootdir='${prefix}/share'
813datadir='${datarootdir}'
814sysconfdir='${prefix}/etc'
815sharedstatedir='${prefix}/com'
816localstatedir='${prefix}/var'
817includedir='${prefix}/include'
818oldincludedir='/usr/include'
819docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820infodir='${datarootdir}/info'
821htmldir='${docdir}'
822dvidir='${docdir}'
823pdfdir='${docdir}'
824psdir='${docdir}'
825libdir='${exec_prefix}/lib'
826localedir='${datarootdir}/locale'
827mandir='${datarootdir}/man'
828
829ac_prev=
830ac_dashdash=
831for ac_option
832do
833  # If the previous option needs an argument, assign it.
834  if test -n "$ac_prev"; then
835    eval $ac_prev=\$ac_option
836    ac_prev=
837    continue
838  fi
839
840  case $ac_option in
841  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842  *=)   ac_optarg= ;;
843  *)    ac_optarg=yes ;;
844  esac
845
846  # Accept the important Cygnus configure options, so we can diagnose typos.
847
848  case $ac_dashdash$ac_option in
849  --)
850    ac_dashdash=yes ;;
851
852  -bindir | --bindir | --bindi | --bind | --bin | --bi)
853    ac_prev=bindir ;;
854  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855    bindir=$ac_optarg ;;
856
857  -build | --build | --buil | --bui | --bu)
858    ac_prev=build_alias ;;
859  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860    build_alias=$ac_optarg ;;
861
862  -cache-file | --cache-file | --cache-fil | --cache-fi \
863  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864    ac_prev=cache_file ;;
865  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867    cache_file=$ac_optarg ;;
868
869  --config-cache | -C)
870    cache_file=config.cache ;;
871
872  -datadir | --datadir | --datadi | --datad)
873    ac_prev=datadir ;;
874  -datadir=* | --datadir=* | --datadi=* | --datad=*)
875    datadir=$ac_optarg ;;
876
877  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878  | --dataroo | --dataro | --datar)
879    ac_prev=datarootdir ;;
880  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882    datarootdir=$ac_optarg ;;
883
884  -disable-* | --disable-*)
885    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886    # Reject names that are not valid shell variable names.
887    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888      as_fn_error $? "invalid feature name: $ac_useropt"
889    ac_useropt_orig=$ac_useropt
890    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891    case $ac_user_opts in
892      *"
893"enable_$ac_useropt"
894"*) ;;
895      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896	 ac_unrecognized_sep=', ';;
897    esac
898    eval enable_$ac_useropt=no ;;
899
900  -docdir | --docdir | --docdi | --doc | --do)
901    ac_prev=docdir ;;
902  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903    docdir=$ac_optarg ;;
904
905  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906    ac_prev=dvidir ;;
907  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908    dvidir=$ac_optarg ;;
909
910  -enable-* | --enable-*)
911    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912    # Reject names that are not valid shell variable names.
913    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914      as_fn_error $? "invalid feature name: $ac_useropt"
915    ac_useropt_orig=$ac_useropt
916    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917    case $ac_user_opts in
918      *"
919"enable_$ac_useropt"
920"*) ;;
921      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922	 ac_unrecognized_sep=', ';;
923    esac
924    eval enable_$ac_useropt=\$ac_optarg ;;
925
926  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928  | --exec | --exe | --ex)
929    ac_prev=exec_prefix ;;
930  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932  | --exec=* | --exe=* | --ex=*)
933    exec_prefix=$ac_optarg ;;
934
935  -gas | --gas | --ga | --g)
936    # Obsolete; use --with-gas.
937    with_gas=yes ;;
938
939  -help | --help | --hel | --he | -h)
940    ac_init_help=long ;;
941  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942    ac_init_help=recursive ;;
943  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944    ac_init_help=short ;;
945
946  -host | --host | --hos | --ho)
947    ac_prev=host_alias ;;
948  -host=* | --host=* | --hos=* | --ho=*)
949    host_alias=$ac_optarg ;;
950
951  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952    ac_prev=htmldir ;;
953  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954  | --ht=*)
955    htmldir=$ac_optarg ;;
956
957  -includedir | --includedir | --includedi | --included | --include \
958  | --includ | --inclu | --incl | --inc)
959    ac_prev=includedir ;;
960  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961  | --includ=* | --inclu=* | --incl=* | --inc=*)
962    includedir=$ac_optarg ;;
963
964  -infodir | --infodir | --infodi | --infod | --info | --inf)
965    ac_prev=infodir ;;
966  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967    infodir=$ac_optarg ;;
968
969  -libdir | --libdir | --libdi | --libd)
970    ac_prev=libdir ;;
971  -libdir=* | --libdir=* | --libdi=* | --libd=*)
972    libdir=$ac_optarg ;;
973
974  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975  | --libexe | --libex | --libe)
976    ac_prev=libexecdir ;;
977  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978  | --libexe=* | --libex=* | --libe=*)
979    libexecdir=$ac_optarg ;;
980
981  -localedir | --localedir | --localedi | --localed | --locale)
982    ac_prev=localedir ;;
983  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984    localedir=$ac_optarg ;;
985
986  -localstatedir | --localstatedir | --localstatedi | --localstated \
987  | --localstate | --localstat | --localsta | --localst | --locals)
988    ac_prev=localstatedir ;;
989  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991    localstatedir=$ac_optarg ;;
992
993  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994    ac_prev=mandir ;;
995  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996    mandir=$ac_optarg ;;
997
998  -nfp | --nfp | --nf)
999    # Obsolete; use --without-fp.
1000    with_fp=no ;;
1001
1002  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003  | --no-cr | --no-c | -n)
1004    no_create=yes ;;
1005
1006  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008    no_recursion=yes ;;
1009
1010  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012  | --oldin | --oldi | --old | --ol | --o)
1013    ac_prev=oldincludedir ;;
1014  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017    oldincludedir=$ac_optarg ;;
1018
1019  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020    ac_prev=prefix ;;
1021  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022    prefix=$ac_optarg ;;
1023
1024  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025  | --program-pre | --program-pr | --program-p)
1026    ac_prev=program_prefix ;;
1027  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029    program_prefix=$ac_optarg ;;
1030
1031  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032  | --program-suf | --program-su | --program-s)
1033    ac_prev=program_suffix ;;
1034  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036    program_suffix=$ac_optarg ;;
1037
1038  -program-transform-name | --program-transform-name \
1039  | --program-transform-nam | --program-transform-na \
1040  | --program-transform-n | --program-transform- \
1041  | --program-transform | --program-transfor \
1042  | --program-transfo | --program-transf \
1043  | --program-trans | --program-tran \
1044  | --progr-tra | --program-tr | --program-t)
1045    ac_prev=program_transform_name ;;
1046  -program-transform-name=* | --program-transform-name=* \
1047  | --program-transform-nam=* | --program-transform-na=* \
1048  | --program-transform-n=* | --program-transform-=* \
1049  | --program-transform=* | --program-transfor=* \
1050  | --program-transfo=* | --program-transf=* \
1051  | --program-trans=* | --program-tran=* \
1052  | --progr-tra=* | --program-tr=* | --program-t=*)
1053    program_transform_name=$ac_optarg ;;
1054
1055  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056    ac_prev=pdfdir ;;
1057  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058    pdfdir=$ac_optarg ;;
1059
1060  -psdir | --psdir | --psdi | --psd | --ps)
1061    ac_prev=psdir ;;
1062  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063    psdir=$ac_optarg ;;
1064
1065  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066  | -silent | --silent | --silen | --sile | --sil)
1067    silent=yes ;;
1068
1069  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070    ac_prev=sbindir ;;
1071  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072  | --sbi=* | --sb=*)
1073    sbindir=$ac_optarg ;;
1074
1075  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077  | --sharedst | --shareds | --shared | --share | --shar \
1078  | --sha | --sh)
1079    ac_prev=sharedstatedir ;;
1080  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083  | --sha=* | --sh=*)
1084    sharedstatedir=$ac_optarg ;;
1085
1086  -site | --site | --sit)
1087    ac_prev=site ;;
1088  -site=* | --site=* | --sit=*)
1089    site=$ac_optarg ;;
1090
1091  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092    ac_prev=srcdir ;;
1093  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094    srcdir=$ac_optarg ;;
1095
1096  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097  | --syscon | --sysco | --sysc | --sys | --sy)
1098    ac_prev=sysconfdir ;;
1099  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101    sysconfdir=$ac_optarg ;;
1102
1103  -target | --target | --targe | --targ | --tar | --ta | --t)
1104    ac_prev=target_alias ;;
1105  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106    target_alias=$ac_optarg ;;
1107
1108  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109    verbose=yes ;;
1110
1111  -version | --version | --versio | --versi | --vers | -V)
1112    ac_init_version=: ;;
1113
1114  -with-* | --with-*)
1115    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116    # Reject names that are not valid shell variable names.
1117    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118      as_fn_error $? "invalid package name: $ac_useropt"
1119    ac_useropt_orig=$ac_useropt
1120    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121    case $ac_user_opts in
1122      *"
1123"with_$ac_useropt"
1124"*) ;;
1125      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126	 ac_unrecognized_sep=', ';;
1127    esac
1128    eval with_$ac_useropt=\$ac_optarg ;;
1129
1130  -without-* | --without-*)
1131    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132    # Reject names that are not valid shell variable names.
1133    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134      as_fn_error $? "invalid package name: $ac_useropt"
1135    ac_useropt_orig=$ac_useropt
1136    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137    case $ac_user_opts in
1138      *"
1139"with_$ac_useropt"
1140"*) ;;
1141      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142	 ac_unrecognized_sep=', ';;
1143    esac
1144    eval with_$ac_useropt=no ;;
1145
1146  --x)
1147    # Obsolete; use --with-x.
1148    with_x=yes ;;
1149
1150  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151  | --x-incl | --x-inc | --x-in | --x-i)
1152    ac_prev=x_includes ;;
1153  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155    x_includes=$ac_optarg ;;
1156
1157  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159    ac_prev=x_libraries ;;
1160  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162    x_libraries=$ac_optarg ;;
1163
1164  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1165Try \`$0 --help' for more information"
1166    ;;
1167
1168  *=*)
1169    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170    # Reject names that are not valid shell variable names.
1171    case $ac_envvar in #(
1172      '' | [0-9]* | *[!_$as_cr_alnum]* )
1173      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1174    esac
1175    eval $ac_envvar=\$ac_optarg
1176    export $ac_envvar ;;
1177
1178  *)
1179    # FIXME: should be removed in autoconf 3.0.
1180    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1184    ;;
1185
1186  esac
1187done
1188
1189if test -n "$ac_prev"; then
1190  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191  as_fn_error $? "missing argument to $ac_option"
1192fi
1193
1194if test -n "$ac_unrecognized_opts"; then
1195  case $enable_option_checking in
1196    no) ;;
1197    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1198    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199  esac
1200fi
1201
1202# Check all directory arguments for consistency.
1203for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204		datadir sysconfdir sharedstatedir localstatedir includedir \
1205		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206		libdir localedir mandir
1207do
1208  eval ac_val=\$$ac_var
1209  # Remove trailing slashes.
1210  case $ac_val in
1211    */ )
1212      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213      eval $ac_var=\$ac_val;;
1214  esac
1215  # Be sure to have absolute directory names.
1216  case $ac_val in
1217    [\\/$]* | ?:[\\/]* )  continue;;
1218    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219  esac
1220  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1221done
1222
1223# There might be people who depend on the old broken behavior: `$host'
1224# used to hold the argument of --host etc.
1225# FIXME: To remove some day.
1226build=$build_alias
1227host=$host_alias
1228target=$target_alias
1229
1230# FIXME: To remove some day.
1231if test "x$host_alias" != x; then
1232  if test "x$build_alias" = x; then
1233    cross_compiling=maybe
1234  elif test "x$build_alias" != "x$host_alias"; then
1235    cross_compiling=yes
1236  fi
1237fi
1238
1239ac_tool_prefix=
1240test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242test "$silent" = yes && exec 6>/dev/null
1243
1244
1245ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246ac_ls_di=`ls -di .` &&
1247ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248  as_fn_error $? "working directory cannot be determined"
1249test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250  as_fn_error $? "pwd does not report name of working directory"
1251
1252
1253# Find the source files, if location was not specified.
1254if test -z "$srcdir"; then
1255  ac_srcdir_defaulted=yes
1256  # Try the directory containing this script, then the parent directory.
1257  ac_confdir=`$as_dirname -- "$as_myself" ||
1258$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259	 X"$as_myself" : 'X\(//\)[^/]' \| \
1260	 X"$as_myself" : 'X\(//\)$' \| \
1261	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262$as_echo X"$as_myself" |
1263    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264	    s//\1/
1265	    q
1266	  }
1267	  /^X\(\/\/\)[^/].*/{
1268	    s//\1/
1269	    q
1270	  }
1271	  /^X\(\/\/\)$/{
1272	    s//\1/
1273	    q
1274	  }
1275	  /^X\(\/\).*/{
1276	    s//\1/
1277	    q
1278	  }
1279	  s/.*/./; q'`
1280  srcdir=$ac_confdir
1281  if test ! -r "$srcdir/$ac_unique_file"; then
1282    srcdir=..
1283  fi
1284else
1285  ac_srcdir_defaulted=no
1286fi
1287if test ! -r "$srcdir/$ac_unique_file"; then
1288  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1290fi
1291ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292ac_abs_confdir=`(
1293	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1294	pwd)`
1295# When building in place, set srcdir=.
1296if test "$ac_abs_confdir" = "$ac_pwd"; then
1297  srcdir=.
1298fi
1299# Remove unnecessary trailing slashes from srcdir.
1300# Double slashes in file names in object file debugging info
1301# mess up M-x gdb in Emacs.
1302case $srcdir in
1303*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304esac
1305for ac_var in $ac_precious_vars; do
1306  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307  eval ac_env_${ac_var}_value=\$${ac_var}
1308  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310done
1311
1312#
1313# Report the --help message.
1314#
1315if test "$ac_init_help" = "long"; then
1316  # Omit some internal or obsolete options to make the list less imposing.
1317  # This message is too long to be a string in the A/UX 3.1 sh.
1318  cat <<_ACEOF
1319\`configure' configures lifelines 3.1.1 to adapt to many kinds of systems.
1320
1321Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324VAR=VALUE.  See below for descriptions of some of the useful variables.
1325
1326Defaults for the options are specified in brackets.
1327
1328Configuration:
1329  -h, --help              display this help and exit
1330      --help=short        display options specific to this package
1331      --help=recursive    display the short help of all the included packages
1332  -V, --version           display version information and exit
1333  -q, --quiet, --silent   do not print \`checking ...' messages
1334      --cache-file=FILE   cache test results in FILE [disabled]
1335  -C, --config-cache      alias for \`--cache-file=config.cache'
1336  -n, --no-create         do not create output files
1337      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1338
1339Installation directories:
1340  --prefix=PREFIX         install architecture-independent files in PREFIX
1341                          [$ac_default_prefix]
1342  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343                          [PREFIX]
1344
1345By default, \`make install' will install all the files in
1346\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1347an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348for instance \`--prefix=\$HOME'.
1349
1350For better control, use the options below.
1351
1352Fine tuning of the installation directories:
1353  --bindir=DIR            user executables [EPREFIX/bin]
1354  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1355  --libexecdir=DIR        program executables [EPREFIX/libexec]
1356  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1357  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1358  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1359  --libdir=DIR            object code libraries [EPREFIX/lib]
1360  --includedir=DIR        C header files [PREFIX/include]
1361  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1362  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1363  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1364  --infodir=DIR           info documentation [DATAROOTDIR/info]
1365  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1366  --mandir=DIR            man documentation [DATAROOTDIR/man]
1367  --docdir=DIR            documentation root [DATAROOTDIR/doc/lifelines]
1368  --htmldir=DIR           html documentation [DOCDIR]
1369  --dvidir=DIR            dvi documentation [DOCDIR]
1370  --pdfdir=DIR            pdf documentation [DOCDIR]
1371  --psdir=DIR             ps documentation [DOCDIR]
1372_ACEOF
1373
1374  cat <<\_ACEOF
1375
1376Program names:
1377  --program-prefix=PREFIX            prepend PREFIX to installed program names
1378  --program-suffix=SUFFIX            append SUFFIX to installed program names
1379  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1380
1381System types:
1382  --build=BUILD     configure for building on BUILD [guessed]
1383  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1384_ACEOF
1385fi
1386
1387if test -n "$ac_init_help"; then
1388  case $ac_init_help in
1389     short | recursive ) echo "Configuration of lifelines 3.1.1:";;
1390   esac
1391  cat <<\_ACEOF
1392
1393Optional Features:
1394  --disable-option-checking  ignore unrecognized --enable/--with options
1395  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1396  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1397  --enable-silent-rules   less verbose build output (undo: "make V=1")
1398  --disable-silent-rules  verbose build output (undo: "make V=0")
1399  --enable-maintainer-mode
1400                          enable make rules and dependencies not useful (and
1401                          sometimes confusing) to the casual installer
1402  --enable-dependency-tracking
1403                          do not reject slow dependency extractors
1404  --disable-dependency-tracking
1405                          speeds up one-time build
1406  --disable-rpath         do not hardcode runtime library paths
1407  --disable-nls           do not use Native Language Support
1408
1409Optional Packages:
1410  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1411  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1412  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1413  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1414  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1415  --with-included-gettext use the GNU gettext library included here
1416  --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
1417  --without-libintl-prefix     don't search for libintl in includedir and libdir
1418  --with-docs             Build the docs from source (requires xmlto and dblatex)
1419  --with-profiling        Compile with profiling support
1420
1421Some influential environment variables:
1422  CC          C compiler command
1423  CFLAGS      C compiler flags
1424  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1425              nonstandard directory <lib dir>
1426  LIBS        libraries to pass to the linker, e.g. -l<library>
1427  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1428              you have headers in a nonstandard directory <include dir>
1429  YACC        The `Yet Another Compiler Compiler' implementation to use.
1430              Defaults to the first program found out of: `bison -y', `byacc',
1431              `yacc'.
1432  YFLAGS      The list of arguments that will be passed by default to $YACC.
1433              This script will default YFLAGS to the empty string to avoid a
1434              default value of `-d' given by some make applications.
1435  CPP         C preprocessor
1436
1437Use these variables to override the choices made by `configure' or to help
1438it to find libraries and programs with nonstandard names/locations.
1439
1440Report bugs to the package provider.
1441_ACEOF
1442ac_status=$?
1443fi
1444
1445if test "$ac_init_help" = "recursive"; then
1446  # If there are subdirs, report their specific --help.
1447  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1448    test -d "$ac_dir" ||
1449      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1450      continue
1451    ac_builddir=.
1452
1453case "$ac_dir" in
1454.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455*)
1456  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1457  # A ".." for each directory in $ac_dir_suffix.
1458  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1459  case $ac_top_builddir_sub in
1460  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1462  esac ;;
1463esac
1464ac_abs_top_builddir=$ac_pwd
1465ac_abs_builddir=$ac_pwd$ac_dir_suffix
1466# for backward compatibility:
1467ac_top_builddir=$ac_top_build_prefix
1468
1469case $srcdir in
1470  .)  # We are building in place.
1471    ac_srcdir=.
1472    ac_top_srcdir=$ac_top_builddir_sub
1473    ac_abs_top_srcdir=$ac_pwd ;;
1474  [\\/]* | ?:[\\/]* )  # Absolute name.
1475    ac_srcdir=$srcdir$ac_dir_suffix;
1476    ac_top_srcdir=$srcdir
1477    ac_abs_top_srcdir=$srcdir ;;
1478  *) # Relative name.
1479    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1480    ac_top_srcdir=$ac_top_build_prefix$srcdir
1481    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1482esac
1483ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484
1485    cd "$ac_dir" || { ac_status=$?; continue; }
1486    # Check for guested configure.
1487    if test -f "$ac_srcdir/configure.gnu"; then
1488      echo &&
1489      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1490    elif test -f "$ac_srcdir/configure"; then
1491      echo &&
1492      $SHELL "$ac_srcdir/configure" --help=recursive
1493    else
1494      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1495    fi || ac_status=$?
1496    cd "$ac_pwd" || { ac_status=$?; break; }
1497  done
1498fi
1499
1500test -n "$ac_init_help" && exit $ac_status
1501if $ac_init_version; then
1502  cat <<\_ACEOF
1503lifelines configure 3.1.1
1504generated by GNU Autoconf 2.69
1505
1506Copyright (C) 2012 Free Software Foundation, Inc.
1507This configure script is free software; the Free Software Foundation
1508gives unlimited permission to copy, distribute and modify it.
1509_ACEOF
1510  exit
1511fi
1512
1513## ------------------------ ##
1514## Autoconf initialization. ##
1515## ------------------------ ##
1516
1517# ac_fn_c_try_compile LINENO
1518# --------------------------
1519# Try to compile conftest.$ac_ext, and return whether this succeeded.
1520ac_fn_c_try_compile ()
1521{
1522  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523  rm -f conftest.$ac_objext
1524  if { { ac_try="$ac_compile"
1525case "(($ac_try" in
1526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527  *) ac_try_echo=$ac_try;;
1528esac
1529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530$as_echo "$ac_try_echo"; } >&5
1531  (eval "$ac_compile") 2>conftest.err
1532  ac_status=$?
1533  if test -s conftest.err; then
1534    grep -v '^ *+' conftest.err >conftest.er1
1535    cat conftest.er1 >&5
1536    mv -f conftest.er1 conftest.err
1537  fi
1538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539  test $ac_status = 0; } && {
1540	 test -z "$ac_c_werror_flag" ||
1541	 test ! -s conftest.err
1542       } && test -s conftest.$ac_objext; then :
1543  ac_retval=0
1544else
1545  $as_echo "$as_me: failed program was:" >&5
1546sed 's/^/| /' conftest.$ac_ext >&5
1547
1548	ac_retval=1
1549fi
1550  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551  as_fn_set_status $ac_retval
1552
1553} # ac_fn_c_try_compile
1554
1555# ac_fn_c_try_link LINENO
1556# -----------------------
1557# Try to link conftest.$ac_ext, and return whether this succeeded.
1558ac_fn_c_try_link ()
1559{
1560  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561  rm -f conftest.$ac_objext conftest$ac_exeext
1562  if { { ac_try="$ac_link"
1563case "(($ac_try" in
1564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565  *) ac_try_echo=$ac_try;;
1566esac
1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568$as_echo "$ac_try_echo"; } >&5
1569  (eval "$ac_link") 2>conftest.err
1570  ac_status=$?
1571  if test -s conftest.err; then
1572    grep -v '^ *+' conftest.err >conftest.er1
1573    cat conftest.er1 >&5
1574    mv -f conftest.er1 conftest.err
1575  fi
1576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577  test $ac_status = 0; } && {
1578	 test -z "$ac_c_werror_flag" ||
1579	 test ! -s conftest.err
1580       } && test -s conftest$ac_exeext && {
1581	 test "$cross_compiling" = yes ||
1582	 test -x conftest$ac_exeext
1583       }; then :
1584  ac_retval=0
1585else
1586  $as_echo "$as_me: failed program was:" >&5
1587sed 's/^/| /' conftest.$ac_ext >&5
1588
1589	ac_retval=1
1590fi
1591  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1592  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1593  # interfere with the next link command; also delete a directory that is
1594  # left behind by Apple's compiler.  We do this before executing the actions.
1595  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1596  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597  as_fn_set_status $ac_retval
1598
1599} # ac_fn_c_try_link
1600
1601# ac_fn_c_try_cpp LINENO
1602# ----------------------
1603# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1604ac_fn_c_try_cpp ()
1605{
1606  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607  if { { ac_try="$ac_cpp conftest.$ac_ext"
1608case "(($ac_try" in
1609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610  *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613$as_echo "$ac_try_echo"; } >&5
1614  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1615  ac_status=$?
1616  if test -s conftest.err; then
1617    grep -v '^ *+' conftest.err >conftest.er1
1618    cat conftest.er1 >&5
1619    mv -f conftest.er1 conftest.err
1620  fi
1621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622  test $ac_status = 0; } > conftest.i && {
1623	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1624	 test ! -s conftest.err
1625       }; then :
1626  ac_retval=0
1627else
1628  $as_echo "$as_me: failed program was:" >&5
1629sed 's/^/| /' conftest.$ac_ext >&5
1630
1631    ac_retval=1
1632fi
1633  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634  as_fn_set_status $ac_retval
1635
1636} # ac_fn_c_try_cpp
1637
1638# ac_fn_c_try_run LINENO
1639# ----------------------
1640# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1641# that executables *can* be run.
1642ac_fn_c_try_run ()
1643{
1644  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645  if { { ac_try="$ac_link"
1646case "(($ac_try" in
1647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648  *) ac_try_echo=$ac_try;;
1649esac
1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651$as_echo "$ac_try_echo"; } >&5
1652  (eval "$ac_link") 2>&5
1653  ac_status=$?
1654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1656  { { case "(($ac_try" in
1657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658  *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
1662  (eval "$ac_try") 2>&5
1663  ac_status=$?
1664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665  test $ac_status = 0; }; }; then :
1666  ac_retval=0
1667else
1668  $as_echo "$as_me: program exited with status $ac_status" >&5
1669       $as_echo "$as_me: failed program was:" >&5
1670sed 's/^/| /' conftest.$ac_ext >&5
1671
1672       ac_retval=$ac_status
1673fi
1674  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676  as_fn_set_status $ac_retval
1677
1678} # ac_fn_c_try_run
1679
1680# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1681# -------------------------------------------
1682# Tests whether TYPE exists after having included INCLUDES, setting cache
1683# variable VAR accordingly.
1684ac_fn_c_check_type ()
1685{
1686  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688$as_echo_n "checking for $2... " >&6; }
1689if eval \${$3+:} false; then :
1690  $as_echo_n "(cached) " >&6
1691else
1692  eval "$3=no"
1693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694/* end confdefs.h.  */
1695$4
1696int
1697main ()
1698{
1699if (sizeof ($2))
1700	 return 0;
1701  ;
1702  return 0;
1703}
1704_ACEOF
1705if ac_fn_c_try_compile "$LINENO"; then :
1706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707/* end confdefs.h.  */
1708$4
1709int
1710main ()
1711{
1712if (sizeof (($2)))
1713	    return 0;
1714  ;
1715  return 0;
1716}
1717_ACEOF
1718if ac_fn_c_try_compile "$LINENO"; then :
1719
1720else
1721  eval "$3=yes"
1722fi
1723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1724fi
1725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726fi
1727eval ac_res=\$$3
1728	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729$as_echo "$ac_res" >&6; }
1730  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731
1732} # ac_fn_c_check_type
1733
1734# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1735# -------------------------------------------------------
1736# Tests whether HEADER exists and can be compiled using the include files in
1737# INCLUDES, setting the cache variable VAR accordingly.
1738ac_fn_c_check_header_compile ()
1739{
1740  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742$as_echo_n "checking for $2... " >&6; }
1743if eval \${$3+:} false; then :
1744  $as_echo_n "(cached) " >&6
1745else
1746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h.  */
1748$4
1749#include <$2>
1750_ACEOF
1751if ac_fn_c_try_compile "$LINENO"; then :
1752  eval "$3=yes"
1753else
1754  eval "$3=no"
1755fi
1756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757fi
1758eval ac_res=\$$3
1759	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760$as_echo "$ac_res" >&6; }
1761  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762
1763} # ac_fn_c_check_header_compile
1764
1765# ac_fn_c_check_func LINENO FUNC VAR
1766# ----------------------------------
1767# Tests whether FUNC exists, setting the cache variable VAR accordingly
1768ac_fn_c_check_func ()
1769{
1770  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772$as_echo_n "checking for $2... " >&6; }
1773if eval \${$3+:} false; then :
1774  $as_echo_n "(cached) " >&6
1775else
1776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777/* end confdefs.h.  */
1778/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1779   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1780#define $2 innocuous_$2
1781
1782/* System header to define __stub macros and hopefully few prototypes,
1783    which can conflict with char $2 (); below.
1784    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1785    <limits.h> exists even on freestanding compilers.  */
1786
1787#ifdef __STDC__
1788# include <limits.h>
1789#else
1790# include <assert.h>
1791#endif
1792
1793#undef $2
1794
1795/* Override any GCC internal prototype to avoid an error.
1796   Use char because int might match the return type of a GCC
1797   builtin and then its argument prototype would still apply.  */
1798#ifdef __cplusplus
1799extern "C"
1800#endif
1801char $2 ();
1802/* The GNU C library defines this for functions which it implements
1803    to always fail with ENOSYS.  Some functions are actually named
1804    something starting with __ and the normal name is an alias.  */
1805#if defined __stub_$2 || defined __stub___$2
1806choke me
1807#endif
1808
1809int
1810main ()
1811{
1812return $2 ();
1813  ;
1814  return 0;
1815}
1816_ACEOF
1817if ac_fn_c_try_link "$LINENO"; then :
1818  eval "$3=yes"
1819else
1820  eval "$3=no"
1821fi
1822rm -f core conftest.err conftest.$ac_objext \
1823    conftest$ac_exeext conftest.$ac_ext
1824fi
1825eval ac_res=\$$3
1826	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827$as_echo "$ac_res" >&6; }
1828  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829
1830} # ac_fn_c_check_func
1831
1832# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1833# -------------------------------------------------------
1834# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1835# the include files in INCLUDES and setting the cache variable VAR
1836# accordingly.
1837ac_fn_c_check_header_mongrel ()
1838{
1839  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840  if eval \${$3+:} false; then :
1841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842$as_echo_n "checking for $2... " >&6; }
1843if eval \${$3+:} false; then :
1844  $as_echo_n "(cached) " >&6
1845fi
1846eval ac_res=\$$3
1847	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848$as_echo "$ac_res" >&6; }
1849else
1850  # Is the header compilable?
1851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1852$as_echo_n "checking $2 usability... " >&6; }
1853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854/* end confdefs.h.  */
1855$4
1856#include <$2>
1857_ACEOF
1858if ac_fn_c_try_compile "$LINENO"; then :
1859  ac_header_compiler=yes
1860else
1861  ac_header_compiler=no
1862fi
1863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1865$as_echo "$ac_header_compiler" >&6; }
1866
1867# Is the header present?
1868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1869$as_echo_n "checking $2 presence... " >&6; }
1870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h.  */
1872#include <$2>
1873_ACEOF
1874if ac_fn_c_try_cpp "$LINENO"; then :
1875  ac_header_preproc=yes
1876else
1877  ac_header_preproc=no
1878fi
1879rm -f conftest.err conftest.i conftest.$ac_ext
1880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1881$as_echo "$ac_header_preproc" >&6; }
1882
1883# So?  What about this header?
1884case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1885  yes:no: )
1886    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1887$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1888    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1889$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1890    ;;
1891  no:yes:* )
1892    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1893$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1894    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1895$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1896    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1897$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1898    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1899$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1900    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1901$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1902    ;;
1903esac
1904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905$as_echo_n "checking for $2... " >&6; }
1906if eval \${$3+:} false; then :
1907  $as_echo_n "(cached) " >&6
1908else
1909  eval "$3=\$ac_header_compiler"
1910fi
1911eval ac_res=\$$3
1912	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913$as_echo "$ac_res" >&6; }
1914fi
1915  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916
1917} # ac_fn_c_check_header_mongrel
1918cat >config.log <<_ACEOF
1919This file contains any messages produced by compilers while
1920running configure, to aid debugging if configure makes a mistake.
1921
1922It was created by lifelines $as_me 3.1.1, which was
1923generated by GNU Autoconf 2.69.  Invocation command line was
1924
1925  $ $0 $@
1926
1927_ACEOF
1928exec 5>>config.log
1929{
1930cat <<_ASUNAME
1931## --------- ##
1932## Platform. ##
1933## --------- ##
1934
1935hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1936uname -m = `(uname -m) 2>/dev/null || echo unknown`
1937uname -r = `(uname -r) 2>/dev/null || echo unknown`
1938uname -s = `(uname -s) 2>/dev/null || echo unknown`
1939uname -v = `(uname -v) 2>/dev/null || echo unknown`
1940
1941/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1942/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1943
1944/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1945/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1946/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1947/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1948/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1949/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1950/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1951
1952_ASUNAME
1953
1954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955for as_dir in $PATH
1956do
1957  IFS=$as_save_IFS
1958  test -z "$as_dir" && as_dir=.
1959    $as_echo "PATH: $as_dir"
1960  done
1961IFS=$as_save_IFS
1962
1963} >&5
1964
1965cat >&5 <<_ACEOF
1966
1967
1968## ----------- ##
1969## Core tests. ##
1970## ----------- ##
1971
1972_ACEOF
1973
1974
1975# Keep a trace of the command line.
1976# Strip out --no-create and --no-recursion so they do not pile up.
1977# Strip out --silent because we don't want to record it for future runs.
1978# Also quote any args containing shell meta-characters.
1979# Make two passes to allow for proper duplicate-argument suppression.
1980ac_configure_args=
1981ac_configure_args0=
1982ac_configure_args1=
1983ac_must_keep_next=false
1984for ac_pass in 1 2
1985do
1986  for ac_arg
1987  do
1988    case $ac_arg in
1989    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1990    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1991    | -silent | --silent | --silen | --sile | --sil)
1992      continue ;;
1993    *\'*)
1994      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1995    esac
1996    case $ac_pass in
1997    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1998    2)
1999      as_fn_append ac_configure_args1 " '$ac_arg'"
2000      if test $ac_must_keep_next = true; then
2001	ac_must_keep_next=false # Got value, back to normal.
2002      else
2003	case $ac_arg in
2004	  *=* | --config-cache | -C | -disable-* | --disable-* \
2005	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2006	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2007	  | -with-* | --with-* | -without-* | --without-* | --x)
2008	    case "$ac_configure_args0 " in
2009	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2010	    esac
2011	    ;;
2012	  -* ) ac_must_keep_next=true ;;
2013	esac
2014      fi
2015      as_fn_append ac_configure_args " '$ac_arg'"
2016      ;;
2017    esac
2018  done
2019done
2020{ ac_configure_args0=; unset ac_configure_args0;}
2021{ ac_configure_args1=; unset ac_configure_args1;}
2022
2023# When interrupted or exit'd, cleanup temporary files, and complete
2024# config.log.  We remove comments because anyway the quotes in there
2025# would cause problems or look ugly.
2026# WARNING: Use '\'' to represent an apostrophe within the trap.
2027# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2028trap 'exit_status=$?
2029  # Save into config.log some information that might help in debugging.
2030  {
2031    echo
2032
2033    $as_echo "## ---------------- ##
2034## Cache variables. ##
2035## ---------------- ##"
2036    echo
2037    # The following way of writing the cache mishandles newlines in values,
2038(
2039  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2040    eval ac_val=\$$ac_var
2041    case $ac_val in #(
2042    *${as_nl}*)
2043      case $ac_var in #(
2044      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2045$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2046      esac
2047      case $ac_var in #(
2048      _ | IFS | as_nl) ;; #(
2049      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2050      *) { eval $ac_var=; unset $ac_var;} ;;
2051      esac ;;
2052    esac
2053  done
2054  (set) 2>&1 |
2055    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2056    *${as_nl}ac_space=\ *)
2057      sed -n \
2058	"s/'\''/'\''\\\\'\'''\''/g;
2059	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2060      ;; #(
2061    *)
2062      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2063      ;;
2064    esac |
2065    sort
2066)
2067    echo
2068
2069    $as_echo "## ----------------- ##
2070## Output variables. ##
2071## ----------------- ##"
2072    echo
2073    for ac_var in $ac_subst_vars
2074    do
2075      eval ac_val=\$$ac_var
2076      case $ac_val in
2077      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2078      esac
2079      $as_echo "$ac_var='\''$ac_val'\''"
2080    done | sort
2081    echo
2082
2083    if test -n "$ac_subst_files"; then
2084      $as_echo "## ------------------- ##
2085## File substitutions. ##
2086## ------------------- ##"
2087      echo
2088      for ac_var in $ac_subst_files
2089      do
2090	eval ac_val=\$$ac_var
2091	case $ac_val in
2092	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2093	esac
2094	$as_echo "$ac_var='\''$ac_val'\''"
2095      done | sort
2096      echo
2097    fi
2098
2099    if test -s confdefs.h; then
2100      $as_echo "## ----------- ##
2101## confdefs.h. ##
2102## ----------- ##"
2103      echo
2104      cat confdefs.h
2105      echo
2106    fi
2107    test "$ac_signal" != 0 &&
2108      $as_echo "$as_me: caught signal $ac_signal"
2109    $as_echo "$as_me: exit $exit_status"
2110  } >&5
2111  rm -f core *.core core.conftest.* &&
2112    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2113    exit $exit_status
2114' 0
2115for ac_signal in 1 2 13 15; do
2116  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2117done
2118ac_signal=0
2119
2120# confdefs.h avoids OS command line length limits that DEFS can exceed.
2121rm -f -r conftest* confdefs.h
2122
2123$as_echo "/* confdefs.h */" > confdefs.h
2124
2125# Predefined preprocessor variables.
2126
2127cat >>confdefs.h <<_ACEOF
2128#define PACKAGE_NAME "$PACKAGE_NAME"
2129_ACEOF
2130
2131cat >>confdefs.h <<_ACEOF
2132#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2133_ACEOF
2134
2135cat >>confdefs.h <<_ACEOF
2136#define PACKAGE_VERSION "$PACKAGE_VERSION"
2137_ACEOF
2138
2139cat >>confdefs.h <<_ACEOF
2140#define PACKAGE_STRING "$PACKAGE_STRING"
2141_ACEOF
2142
2143cat >>confdefs.h <<_ACEOF
2144#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2145_ACEOF
2146
2147cat >>confdefs.h <<_ACEOF
2148#define PACKAGE_URL "$PACKAGE_URL"
2149_ACEOF
2150
2151
2152# Let the site file select an alternate cache file if it wants to.
2153# Prefer an explicitly selected file to automatically selected ones.
2154ac_site_file1=NONE
2155ac_site_file2=NONE
2156if test -n "$CONFIG_SITE"; then
2157  # We do not want a PATH search for config.site.
2158  case $CONFIG_SITE in #((
2159    -*)  ac_site_file1=./$CONFIG_SITE;;
2160    */*) ac_site_file1=$CONFIG_SITE;;
2161    *)   ac_site_file1=./$CONFIG_SITE;;
2162  esac
2163elif test "x$prefix" != xNONE; then
2164  ac_site_file1=$prefix/share/config.site
2165  ac_site_file2=$prefix/etc/config.site
2166else
2167  ac_site_file1=$ac_default_prefix/share/config.site
2168  ac_site_file2=$ac_default_prefix/etc/config.site
2169fi
2170for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2171do
2172  test "x$ac_site_file" = xNONE && continue
2173  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2174    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2175$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2176    sed 's/^/| /' "$ac_site_file" >&5
2177    . "$ac_site_file" \
2178      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2180as_fn_error $? "failed to load site script $ac_site_file
2181See \`config.log' for more details" "$LINENO" 5; }
2182  fi
2183done
2184
2185if test -r "$cache_file"; then
2186  # Some versions of bash will fail to source /dev/null (special files
2187  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2188  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2189    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2190$as_echo "$as_me: loading cache $cache_file" >&6;}
2191    case $cache_file in
2192      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2193      *)                      . "./$cache_file";;
2194    esac
2195  fi
2196else
2197  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2198$as_echo "$as_me: creating cache $cache_file" >&6;}
2199  >$cache_file
2200fi
2201
2202as_fn_append ac_header_list " stdlib.h"
2203as_fn_append ac_header_list " unistd.h"
2204as_fn_append ac_header_list " sys/param.h"
2205# Check that the precious variables saved in the cache have kept the same
2206# value.
2207ac_cache_corrupted=false
2208for ac_var in $ac_precious_vars; do
2209  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2210  eval ac_new_set=\$ac_env_${ac_var}_set
2211  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2212  eval ac_new_val=\$ac_env_${ac_var}_value
2213  case $ac_old_set,$ac_new_set in
2214    set,)
2215      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2216$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2217      ac_cache_corrupted=: ;;
2218    ,set)
2219      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2220$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2221      ac_cache_corrupted=: ;;
2222    ,);;
2223    *)
2224      if test "x$ac_old_val" != "x$ac_new_val"; then
2225	# differences in whitespace do not lead to failure.
2226	ac_old_val_w=`echo x $ac_old_val`
2227	ac_new_val_w=`echo x $ac_new_val`
2228	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2229	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2230$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2231	  ac_cache_corrupted=:
2232	else
2233	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2234$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2235	  eval $ac_var=\$ac_old_val
2236	fi
2237	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2238$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2239	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2240$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2241      fi;;
2242  esac
2243  # Pass precious variables to config.status.
2244  if test "$ac_new_set" = set; then
2245    case $ac_new_val in
2246    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2247    *) ac_arg=$ac_var=$ac_new_val ;;
2248    esac
2249    case " $ac_configure_args " in
2250      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2251      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2252    esac
2253  fi
2254done
2255if $ac_cache_corrupted; then
2256  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2258  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2259$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2260  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2261fi
2262## -------------------- ##
2263## Main body of script. ##
2264## -------------------- ##
2265
2266ac_ext=c
2267ac_cpp='$CPP $CPPFLAGS'
2268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2270ac_compiler_gnu=$ac_cv_c_compiler_gnu
2271
2272
2273
2274
2275ac_aux_dir=
2276for ac_dir in build/autotools "$srcdir"/build/autotools; do
2277  if test -f "$ac_dir/install-sh"; then
2278    ac_aux_dir=$ac_dir
2279    ac_install_sh="$ac_aux_dir/install-sh -c"
2280    break
2281  elif test -f "$ac_dir/install.sh"; then
2282    ac_aux_dir=$ac_dir
2283    ac_install_sh="$ac_aux_dir/install.sh -c"
2284    break
2285  elif test -f "$ac_dir/shtool"; then
2286    ac_aux_dir=$ac_dir
2287    ac_install_sh="$ac_aux_dir/shtool install -c"
2288    break
2289  fi
2290done
2291if test -z "$ac_aux_dir"; then
2292  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build/autotools \"$srcdir\"/build/autotools" "$LINENO" 5
2293fi
2294
2295# These three variables are undocumented and unsupported,
2296# and are intended to be withdrawn in a future Autoconf release.
2297# They can cause serious problems if a builder's source tree is in a directory
2298# whose full name contains unusual characters.
2299ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2300ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2301ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2302
2303
2304# Make sure we can run config.sub.
2305$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2306  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2307
2308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2309$as_echo_n "checking build system type... " >&6; }
2310if ${ac_cv_build+:} false; then :
2311  $as_echo_n "(cached) " >&6
2312else
2313  ac_build_alias=$build_alias
2314test "x$ac_build_alias" = x &&
2315  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2316test "x$ac_build_alias" = x &&
2317  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2318ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2319  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2320
2321fi
2322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2323$as_echo "$ac_cv_build" >&6; }
2324case $ac_cv_build in
2325*-*-*) ;;
2326*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2327esac
2328build=$ac_cv_build
2329ac_save_IFS=$IFS; IFS='-'
2330set x $ac_cv_build
2331shift
2332build_cpu=$1
2333build_vendor=$2
2334shift; shift
2335# Remember, the first character of IFS is used to create $*,
2336# except with old shells:
2337build_os=$*
2338IFS=$ac_save_IFS
2339case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2340
2341
2342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2343$as_echo_n "checking host system type... " >&6; }
2344if ${ac_cv_host+:} false; then :
2345  $as_echo_n "(cached) " >&6
2346else
2347  if test "x$host_alias" = x; then
2348  ac_cv_host=$ac_cv_build
2349else
2350  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2351    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2352fi
2353
2354fi
2355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2356$as_echo "$ac_cv_host" >&6; }
2357case $ac_cv_host in
2358*-*-*) ;;
2359*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2360esac
2361host=$ac_cv_host
2362ac_save_IFS=$IFS; IFS='-'
2363set x $ac_cv_host
2364shift
2365host_cpu=$1
2366host_vendor=$2
2367shift; shift
2368# Remember, the first character of IFS is used to create $*,
2369# except with old shells:
2370host_os=$*
2371IFS=$ac_save_IFS
2372case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2373
2374
2375
2376am__api_version='1.13'
2377
2378# Find a good install program.  We prefer a C program (faster),
2379# so one script is as good as another.  But avoid the broken or
2380# incompatible versions:
2381# SysV /etc/install, /usr/sbin/install
2382# SunOS /usr/etc/install
2383# IRIX /sbin/install
2384# AIX /bin/install
2385# AmigaOS /C/install, which installs bootblocks on floppy discs
2386# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2387# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2388# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2389# OS/2's system install, which has a completely different semantic
2390# ./install, which can be erroneously created by make from ./install.sh.
2391# Reject install programs that cannot install multiple files.
2392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2393$as_echo_n "checking for a BSD-compatible install... " >&6; }
2394if test -z "$INSTALL"; then
2395if ${ac_cv_path_install+:} false; then :
2396  $as_echo_n "(cached) " >&6
2397else
2398  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399for as_dir in $PATH
2400do
2401  IFS=$as_save_IFS
2402  test -z "$as_dir" && as_dir=.
2403    # Account for people who put trailing slashes in PATH elements.
2404case $as_dir/ in #((
2405  ./ | .// | /[cC]/* | \
2406  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2407  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2408  /usr/ucb/* ) ;;
2409  *)
2410    # OSF1 and SCO ODT 3.0 have their own names for install.
2411    # Don't use installbsd from OSF since it installs stuff as root
2412    # by default.
2413    for ac_prog in ginstall scoinst install; do
2414      for ac_exec_ext in '' $ac_executable_extensions; do
2415	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2416	  if test $ac_prog = install &&
2417	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2418	    # AIX install.  It has an incompatible calling convention.
2419	    :
2420	  elif test $ac_prog = install &&
2421	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2422	    # program-specific install script used by HP pwplus--don't use.
2423	    :
2424	  else
2425	    rm -rf conftest.one conftest.two conftest.dir
2426	    echo one > conftest.one
2427	    echo two > conftest.two
2428	    mkdir conftest.dir
2429	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2430	      test -s conftest.one && test -s conftest.two &&
2431	      test -s conftest.dir/conftest.one &&
2432	      test -s conftest.dir/conftest.two
2433	    then
2434	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2435	      break 3
2436	    fi
2437	  fi
2438	fi
2439      done
2440    done
2441    ;;
2442esac
2443
2444  done
2445IFS=$as_save_IFS
2446
2447rm -rf conftest.one conftest.two conftest.dir
2448
2449fi
2450  if test "${ac_cv_path_install+set}" = set; then
2451    INSTALL=$ac_cv_path_install
2452  else
2453    # As a last resort, use the slow shell script.  Don't cache a
2454    # value for INSTALL within a source directory, because that will
2455    # break other packages using the cache if that directory is
2456    # removed, or if the value is a relative name.
2457    INSTALL=$ac_install_sh
2458  fi
2459fi
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2461$as_echo "$INSTALL" >&6; }
2462
2463# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2464# It thinks the first close brace ends the variable substitution.
2465test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2466
2467test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2468
2469test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2470
2471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2472$as_echo_n "checking whether build environment is sane... " >&6; }
2473# Reject unsafe characters in $srcdir or the absolute working directory
2474# name.  Accept space and tab only in the latter.
2475am_lf='
2476'
2477case `pwd` in
2478  *[\\\"\#\$\&\'\`$am_lf]*)
2479    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2480esac
2481case $srcdir in
2482  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2483    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2484esac
2485
2486# Do 'set' in a subshell so we don't clobber the current shell's
2487# arguments.  Must try -L first in case configure is actually a
2488# symlink; some systems play weird games with the mod time of symlinks
2489# (eg FreeBSD returns the mod time of the symlink's containing
2490# directory).
2491if (
2492   am_has_slept=no
2493   for am_try in 1 2; do
2494     echo "timestamp, slept: $am_has_slept" > conftest.file
2495     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2496     if test "$*" = "X"; then
2497	# -L didn't work.
2498	set X `ls -t "$srcdir/configure" conftest.file`
2499     fi
2500     if test "$*" != "X $srcdir/configure conftest.file" \
2501	&& test "$*" != "X conftest.file $srcdir/configure"; then
2502
2503	# If neither matched, then we have a broken ls.  This can happen
2504	# if, for instance, CONFIG_SHELL is bash and it inherits a
2505	# broken ls alias from the environment.  This has actually
2506	# happened.  Such a system could not be considered "sane".
2507	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2508  alias in your environment" "$LINENO" 5
2509     fi
2510     if test "$2" = conftest.file || test $am_try -eq 2; then
2511       break
2512     fi
2513     # Just in case.
2514     sleep 1
2515     am_has_slept=yes
2516   done
2517   test "$2" = conftest.file
2518   )
2519then
2520   # Ok.
2521   :
2522else
2523   as_fn_error $? "newly created file is older than distributed files!
2524Check your system clock" "$LINENO" 5
2525fi
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2527$as_echo "yes" >&6; }
2528# If we didn't sleep, we still need to ensure time stamps of config.status and
2529# generated files are strictly newer.
2530am_sleep_pid=
2531if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2532  ( sleep 1 ) &
2533  am_sleep_pid=$!
2534fi
2535
2536rm -f conftest.file
2537
2538test "$program_prefix" != NONE &&
2539  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2540# Use a double $ so make ignores it.
2541test "$program_suffix" != NONE &&
2542  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2543# Double any \ or $.
2544# By default was `s,x,x', remove it if useless.
2545ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2546program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2547
2548# expand $ac_aux_dir to an absolute path
2549am_aux_dir=`cd $ac_aux_dir && pwd`
2550
2551if test x"${MISSING+set}" != xset; then
2552  case $am_aux_dir in
2553  *\ * | *\	*)
2554    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2555  *)
2556    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2557  esac
2558fi
2559# Use eval to expand $SHELL
2560if eval "$MISSING --is-lightweight"; then
2561  am_missing_run="$MISSING "
2562else
2563  am_missing_run=
2564  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2565$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2566fi
2567
2568if test x"${install_sh}" != xset; then
2569  case $am_aux_dir in
2570  *\ * | *\	*)
2571    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2572  *)
2573    install_sh="\${SHELL} $am_aux_dir/install-sh"
2574  esac
2575fi
2576
2577# Installed binaries are usually stripped using 'strip' when the user
2578# run "make install-strip".  However 'strip' might not be the right
2579# tool to use in cross-compilation environments, therefore Automake
2580# will honor the 'STRIP' environment variable to overrule this program.
2581if test "$cross_compiling" != no; then
2582  if test -n "$ac_tool_prefix"; then
2583  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2584set dummy ${ac_tool_prefix}strip; ac_word=$2
2585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2586$as_echo_n "checking for $ac_word... " >&6; }
2587if ${ac_cv_prog_STRIP+:} false; then :
2588  $as_echo_n "(cached) " >&6
2589else
2590  if test -n "$STRIP"; then
2591  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2592else
2593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594for as_dir in $PATH
2595do
2596  IFS=$as_save_IFS
2597  test -z "$as_dir" && as_dir=.
2598    for ac_exec_ext in '' $ac_executable_extensions; do
2599  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2600    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2602    break 2
2603  fi
2604done
2605  done
2606IFS=$as_save_IFS
2607
2608fi
2609fi
2610STRIP=$ac_cv_prog_STRIP
2611if test -n "$STRIP"; then
2612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2613$as_echo "$STRIP" >&6; }
2614else
2615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616$as_echo "no" >&6; }
2617fi
2618
2619
2620fi
2621if test -z "$ac_cv_prog_STRIP"; then
2622  ac_ct_STRIP=$STRIP
2623  # Extract the first word of "strip", so it can be a program name with args.
2624set dummy strip; ac_word=$2
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626$as_echo_n "checking for $ac_word... " >&6; }
2627if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2628  $as_echo_n "(cached) " >&6
2629else
2630  if test -n "$ac_ct_STRIP"; then
2631  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2632else
2633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634for as_dir in $PATH
2635do
2636  IFS=$as_save_IFS
2637  test -z "$as_dir" && as_dir=.
2638    for ac_exec_ext in '' $ac_executable_extensions; do
2639  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2640    ac_cv_prog_ac_ct_STRIP="strip"
2641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642    break 2
2643  fi
2644done
2645  done
2646IFS=$as_save_IFS
2647
2648fi
2649fi
2650ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2651if test -n "$ac_ct_STRIP"; then
2652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2653$as_echo "$ac_ct_STRIP" >&6; }
2654else
2655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656$as_echo "no" >&6; }
2657fi
2658
2659  if test "x$ac_ct_STRIP" = x; then
2660    STRIP=":"
2661  else
2662    case $cross_compiling:$ac_tool_warned in
2663yes:)
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2666ac_tool_warned=yes ;;
2667esac
2668    STRIP=$ac_ct_STRIP
2669  fi
2670else
2671  STRIP="$ac_cv_prog_STRIP"
2672fi
2673
2674fi
2675INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2676
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2678$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2679if test -z "$MKDIR_P"; then
2680  if ${ac_cv_path_mkdir+:} false; then :
2681  $as_echo_n "(cached) " >&6
2682else
2683  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2685do
2686  IFS=$as_save_IFS
2687  test -z "$as_dir" && as_dir=.
2688    for ac_prog in mkdir gmkdir; do
2689	 for ac_exec_ext in '' $ac_executable_extensions; do
2690	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2691	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2692	     'mkdir (GNU coreutils) '* | \
2693	     'mkdir (coreutils) '* | \
2694	     'mkdir (fileutils) '4.1*)
2695	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2696	       break 3;;
2697	   esac
2698	 done
2699       done
2700  done
2701IFS=$as_save_IFS
2702
2703fi
2704
2705  test -d ./--version && rmdir ./--version
2706  if test "${ac_cv_path_mkdir+set}" = set; then
2707    MKDIR_P="$ac_cv_path_mkdir -p"
2708  else
2709    # As a last resort, use the slow shell script.  Don't cache a
2710    # value for MKDIR_P within a source directory, because that will
2711    # break other packages using the cache if that directory is
2712    # removed, or if the value is a relative name.
2713    MKDIR_P="$ac_install_sh -d"
2714  fi
2715fi
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2717$as_echo "$MKDIR_P" >&6; }
2718
2719for ac_prog in gawk mawk nawk awk
2720do
2721  # Extract the first word of "$ac_prog", so it can be a program name with args.
2722set dummy $ac_prog; ac_word=$2
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724$as_echo_n "checking for $ac_word... " >&6; }
2725if ${ac_cv_prog_AWK+:} false; then :
2726  $as_echo_n "(cached) " >&6
2727else
2728  if test -n "$AWK"; then
2729  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2730else
2731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732for as_dir in $PATH
2733do
2734  IFS=$as_save_IFS
2735  test -z "$as_dir" && as_dir=.
2736    for ac_exec_ext in '' $ac_executable_extensions; do
2737  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2738    ac_cv_prog_AWK="$ac_prog"
2739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740    break 2
2741  fi
2742done
2743  done
2744IFS=$as_save_IFS
2745
2746fi
2747fi
2748AWK=$ac_cv_prog_AWK
2749if test -n "$AWK"; then
2750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2751$as_echo "$AWK" >&6; }
2752else
2753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754$as_echo "no" >&6; }
2755fi
2756
2757
2758  test -n "$AWK" && break
2759done
2760
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2762$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2763set x ${MAKE-make}
2764ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2765if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2766  $as_echo_n "(cached) " >&6
2767else
2768  cat >conftest.make <<\_ACEOF
2769SHELL = /bin/sh
2770all:
2771	@echo '@@@%%%=$(MAKE)=@@@%%%'
2772_ACEOF
2773# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2774case `${MAKE-make} -f conftest.make 2>/dev/null` in
2775  *@@@%%%=?*=@@@%%%*)
2776    eval ac_cv_prog_make_${ac_make}_set=yes;;
2777  *)
2778    eval ac_cv_prog_make_${ac_make}_set=no;;
2779esac
2780rm -f conftest.make
2781fi
2782if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2784$as_echo "yes" >&6; }
2785  SET_MAKE=
2786else
2787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788$as_echo "no" >&6; }
2789  SET_MAKE="MAKE=${MAKE-make}"
2790fi
2791
2792rm -rf .tst 2>/dev/null
2793mkdir .tst 2>/dev/null
2794if test -d .tst; then
2795  am__leading_dot=.
2796else
2797  am__leading_dot=_
2798fi
2799rmdir .tst 2>/dev/null
2800
2801# Check whether --enable-silent-rules was given.
2802if test "${enable_silent_rules+set}" = set; then :
2803  enableval=$enable_silent_rules;
2804fi
2805
2806case $enable_silent_rules in # (((
2807  yes) AM_DEFAULT_VERBOSITY=0;;
2808   no) AM_DEFAULT_VERBOSITY=1;;
2809    *) AM_DEFAULT_VERBOSITY=1;;
2810esac
2811am_make=${MAKE-make}
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2813$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2814if ${am_cv_make_support_nested_variables+:} false; then :
2815  $as_echo_n "(cached) " >&6
2816else
2817  if $as_echo 'TRUE=$(BAR$(V))
2818BAR0=false
2819BAR1=true
2820V=1
2821am__doit:
2822	@$(TRUE)
2823.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2824  am_cv_make_support_nested_variables=yes
2825else
2826  am_cv_make_support_nested_variables=no
2827fi
2828fi
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2830$as_echo "$am_cv_make_support_nested_variables" >&6; }
2831if test $am_cv_make_support_nested_variables = yes; then
2832    AM_V='$(V)'
2833  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2834else
2835  AM_V=$AM_DEFAULT_VERBOSITY
2836  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2837fi
2838AM_BACKSLASH='\'
2839
2840if test "`cd $srcdir && pwd`" != "`pwd`"; then
2841  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2842  # is not polluted with repeated "-I."
2843  am__isrc=' -I$(srcdir)'
2844  # test to see if srcdir already configured
2845  if test -f $srcdir/config.status; then
2846    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2847  fi
2848fi
2849
2850# test whether we have cygpath
2851if test -z "$CYGPATH_W"; then
2852  if (cygpath --version) >/dev/null 2>/dev/null; then
2853    CYGPATH_W='cygpath -w'
2854  else
2855    CYGPATH_W=echo
2856  fi
2857fi
2858
2859
2860# Define the identity of the package.
2861 PACKAGE='lifelines'
2862 VERSION='3.1.1'
2863
2864
2865cat >>confdefs.h <<_ACEOF
2866#define PACKAGE "$PACKAGE"
2867_ACEOF
2868
2869
2870cat >>confdefs.h <<_ACEOF
2871#define VERSION "$VERSION"
2872_ACEOF
2873
2874# Some tools Automake needs.
2875
2876ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2877
2878
2879AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2880
2881
2882AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2883
2884
2885AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2886
2887
2888MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2889
2890# For better backward compatibility.  To be removed once Automake 1.9.x
2891# dies out for good.  For more background, see:
2892# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2893# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2894mkdir_p='$(MKDIR_P)'
2895
2896# We need awk for the "check" target.  The system "awk" is bad on
2897# some platforms.
2898# Always define AMTAR for backward compatibility.  Yes, it's still used
2899# in the wild :-(  We should find a proper way to deprecate it ...
2900AMTAR='$${TAR-tar}'
2901
2902
2903# We'll loop over all known methods to create a tar archive until one works.
2904_am_tools='gnutar  pax cpio none'
2905
2906am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2907
2908
2909
2910
2911
2912
2913
2914ac_config_headers="$ac_config_headers config.h"
2915
2916
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2918$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2919    # Check whether --enable-maintainer-mode was given.
2920if test "${enable_maintainer_mode+set}" = set; then :
2921  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2922else
2923  USE_MAINTAINER_MODE=no
2924fi
2925
2926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2927$as_echo "$USE_MAINTAINER_MODE" >&6; }
2928   if test $USE_MAINTAINER_MODE = yes; then
2929  MAINTAINER_MODE_TRUE=
2930  MAINTAINER_MODE_FALSE='#'
2931else
2932  MAINTAINER_MODE_TRUE='#'
2933  MAINTAINER_MODE_FALSE=
2934fi
2935
2936  MAINT=$MAINTAINER_MODE_TRUE
2937
2938
2939
2940
2941ac_ext=c
2942ac_cpp='$CPP $CPPFLAGS'
2943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946if test -n "$ac_tool_prefix"; then
2947  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2948set dummy ${ac_tool_prefix}gcc; ac_word=$2
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950$as_echo_n "checking for $ac_word... " >&6; }
2951if ${ac_cv_prog_CC+:} false; then :
2952  $as_echo_n "(cached) " >&6
2953else
2954  if test -n "$CC"; then
2955  ac_cv_prog_CC="$CC" # Let the user override the test.
2956else
2957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958for as_dir in $PATH
2959do
2960  IFS=$as_save_IFS
2961  test -z "$as_dir" && as_dir=.
2962    for ac_exec_ext in '' $ac_executable_extensions; do
2963  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966    break 2
2967  fi
2968done
2969  done
2970IFS=$as_save_IFS
2971
2972fi
2973fi
2974CC=$ac_cv_prog_CC
2975if test -n "$CC"; then
2976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2977$as_echo "$CC" >&6; }
2978else
2979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980$as_echo "no" >&6; }
2981fi
2982
2983
2984fi
2985if test -z "$ac_cv_prog_CC"; then
2986  ac_ct_CC=$CC
2987  # Extract the first word of "gcc", so it can be a program name with args.
2988set dummy gcc; ac_word=$2
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990$as_echo_n "checking for $ac_word... " >&6; }
2991if ${ac_cv_prog_ac_ct_CC+:} false; then :
2992  $as_echo_n "(cached) " >&6
2993else
2994  if test -n "$ac_ct_CC"; then
2995  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2996else
2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998for as_dir in $PATH
2999do
3000  IFS=$as_save_IFS
3001  test -z "$as_dir" && as_dir=.
3002    for ac_exec_ext in '' $ac_executable_extensions; do
3003  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004    ac_cv_prog_ac_ct_CC="gcc"
3005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006    break 2
3007  fi
3008done
3009  done
3010IFS=$as_save_IFS
3011
3012fi
3013fi
3014ac_ct_CC=$ac_cv_prog_ac_ct_CC
3015if test -n "$ac_ct_CC"; then
3016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3017$as_echo "$ac_ct_CC" >&6; }
3018else
3019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020$as_echo "no" >&6; }
3021fi
3022
3023  if test "x$ac_ct_CC" = x; then
3024    CC=""
3025  else
3026    case $cross_compiling:$ac_tool_warned in
3027yes:)
3028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3030ac_tool_warned=yes ;;
3031esac
3032    CC=$ac_ct_CC
3033  fi
3034else
3035  CC="$ac_cv_prog_CC"
3036fi
3037
3038if test -z "$CC"; then
3039          if test -n "$ac_tool_prefix"; then
3040    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3041set dummy ${ac_tool_prefix}cc; ac_word=$2
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043$as_echo_n "checking for $ac_word... " >&6; }
3044if ${ac_cv_prog_CC+:} false; then :
3045  $as_echo_n "(cached) " >&6
3046else
3047  if test -n "$CC"; then
3048  ac_cv_prog_CC="$CC" # Let the user override the test.
3049else
3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051for as_dir in $PATH
3052do
3053  IFS=$as_save_IFS
3054  test -z "$as_dir" && as_dir=.
3055    for ac_exec_ext in '' $ac_executable_extensions; do
3056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057    ac_cv_prog_CC="${ac_tool_prefix}cc"
3058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059    break 2
3060  fi
3061done
3062  done
3063IFS=$as_save_IFS
3064
3065fi
3066fi
3067CC=$ac_cv_prog_CC
3068if test -n "$CC"; then
3069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070$as_echo "$CC" >&6; }
3071else
3072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073$as_echo "no" >&6; }
3074fi
3075
3076
3077  fi
3078fi
3079if test -z "$CC"; then
3080  # Extract the first word of "cc", so it can be a program name with args.
3081set dummy cc; ac_word=$2
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083$as_echo_n "checking for $ac_word... " >&6; }
3084if ${ac_cv_prog_CC+:} false; then :
3085  $as_echo_n "(cached) " >&6
3086else
3087  if test -n "$CC"; then
3088  ac_cv_prog_CC="$CC" # Let the user override the test.
3089else
3090  ac_prog_rejected=no
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094  IFS=$as_save_IFS
3095  test -z "$as_dir" && as_dir=.
3096    for ac_exec_ext in '' $ac_executable_extensions; do
3097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3099       ac_prog_rejected=yes
3100       continue
3101     fi
3102    ac_cv_prog_CC="cc"
3103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104    break 2
3105  fi
3106done
3107  done
3108IFS=$as_save_IFS
3109
3110if test $ac_prog_rejected = yes; then
3111  # We found a bogon in the path, so make sure we never use it.
3112  set dummy $ac_cv_prog_CC
3113  shift
3114  if test $# != 0; then
3115    # We chose a different compiler from the bogus one.
3116    # However, it has the same basename, so the bogon will be chosen
3117    # first if we set CC to just the basename; use the full file name.
3118    shift
3119    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3120  fi
3121fi
3122fi
3123fi
3124CC=$ac_cv_prog_CC
3125if test -n "$CC"; then
3126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3127$as_echo "$CC" >&6; }
3128else
3129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130$as_echo "no" >&6; }
3131fi
3132
3133
3134fi
3135if test -z "$CC"; then
3136  if test -n "$ac_tool_prefix"; then
3137  for ac_prog in cl.exe
3138  do
3139    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3140set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142$as_echo_n "checking for $ac_word... " >&6; }
3143if ${ac_cv_prog_CC+:} false; then :
3144  $as_echo_n "(cached) " >&6
3145else
3146  if test -n "$CC"; then
3147  ac_cv_prog_CC="$CC" # Let the user override the test.
3148else
3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150for as_dir in $PATH
3151do
3152  IFS=$as_save_IFS
3153  test -z "$as_dir" && as_dir=.
3154    for ac_exec_ext in '' $ac_executable_extensions; do
3155  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158    break 2
3159  fi
3160done
3161  done
3162IFS=$as_save_IFS
3163
3164fi
3165fi
3166CC=$ac_cv_prog_CC
3167if test -n "$CC"; then
3168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3169$as_echo "$CC" >&6; }
3170else
3171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172$as_echo "no" >&6; }
3173fi
3174
3175
3176    test -n "$CC" && break
3177  done
3178fi
3179if test -z "$CC"; then
3180  ac_ct_CC=$CC
3181  for ac_prog in cl.exe
3182do
3183  # Extract the first word of "$ac_prog", so it can be a program name with args.
3184set dummy $ac_prog; ac_word=$2
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186$as_echo_n "checking for $ac_word... " >&6; }
3187if ${ac_cv_prog_ac_ct_CC+:} false; then :
3188  $as_echo_n "(cached) " >&6
3189else
3190  if test -n "$ac_ct_CC"; then
3191  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3192else
3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH
3195do
3196  IFS=$as_save_IFS
3197  test -z "$as_dir" && as_dir=.
3198    for ac_exec_ext in '' $ac_executable_extensions; do
3199  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200    ac_cv_prog_ac_ct_CC="$ac_prog"
3201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202    break 2
3203  fi
3204done
3205  done
3206IFS=$as_save_IFS
3207
3208fi
3209fi
3210ac_ct_CC=$ac_cv_prog_ac_ct_CC
3211if test -n "$ac_ct_CC"; then
3212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3213$as_echo "$ac_ct_CC" >&6; }
3214else
3215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216$as_echo "no" >&6; }
3217fi
3218
3219
3220  test -n "$ac_ct_CC" && break
3221done
3222
3223  if test "x$ac_ct_CC" = x; then
3224    CC=""
3225  else
3226    case $cross_compiling:$ac_tool_warned in
3227yes:)
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3230ac_tool_warned=yes ;;
3231esac
3232    CC=$ac_ct_CC
3233  fi
3234fi
3235
3236fi
3237
3238
3239test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3241as_fn_error $? "no acceptable C compiler found in \$PATH
3242See \`config.log' for more details" "$LINENO" 5; }
3243
3244# Provide some information about the compiler.
3245$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3246set X $ac_compile
3247ac_compiler=$2
3248for ac_option in --version -v -V -qversion; do
3249  { { ac_try="$ac_compiler $ac_option >&5"
3250case "(($ac_try" in
3251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252  *) ac_try_echo=$ac_try;;
3253esac
3254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255$as_echo "$ac_try_echo"; } >&5
3256  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3257  ac_status=$?
3258  if test -s conftest.err; then
3259    sed '10a\
3260... rest of stderr output deleted ...
3261         10q' conftest.err >conftest.er1
3262    cat conftest.er1 >&5
3263  fi
3264  rm -f conftest.er1 conftest.err
3265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266  test $ac_status = 0; }
3267done
3268
3269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270/* end confdefs.h.  */
3271
3272int
3273main ()
3274{
3275
3276  ;
3277  return 0;
3278}
3279_ACEOF
3280ac_clean_files_save=$ac_clean_files
3281ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3282# Try to create an executable without -o first, disregard a.out.
3283# It will help us diagnose broken compilers, and finding out an intuition
3284# of exeext.
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3286$as_echo_n "checking whether the C compiler works... " >&6; }
3287ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3288
3289# The possible output files:
3290ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3291
3292ac_rmfiles=
3293for ac_file in $ac_files
3294do
3295  case $ac_file in
3296    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3297    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3298  esac
3299done
3300rm -f $ac_rmfiles
3301
3302if { { ac_try="$ac_link_default"
3303case "(($ac_try" in
3304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305  *) ac_try_echo=$ac_try;;
3306esac
3307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308$as_echo "$ac_try_echo"; } >&5
3309  (eval "$ac_link_default") 2>&5
3310  ac_status=$?
3311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312  test $ac_status = 0; }; then :
3313  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3314# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3315# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3316# so that the user can short-circuit this test for compilers unknown to
3317# Autoconf.
3318for ac_file in $ac_files ''
3319do
3320  test -f "$ac_file" || continue
3321  case $ac_file in
3322    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3323	;;
3324    [ab].out )
3325	# We found the default executable, but exeext='' is most
3326	# certainly right.
3327	break;;
3328    *.* )
3329	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3330	then :; else
3331	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332	fi
3333	# We set ac_cv_exeext here because the later test for it is not
3334	# safe: cross compilers may not add the suffix if given an `-o'
3335	# argument, so we may need to know it at that point already.
3336	# Even if this section looks crufty: it has the advantage of
3337	# actually working.
3338	break;;
3339    * )
3340	break;;
3341  esac
3342done
3343test "$ac_cv_exeext" = no && ac_cv_exeext=
3344
3345else
3346  ac_file=''
3347fi
3348if test -z "$ac_file"; then :
3349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350$as_echo "no" >&6; }
3351$as_echo "$as_me: failed program was:" >&5
3352sed 's/^/| /' conftest.$ac_ext >&5
3353
3354{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356as_fn_error 77 "C compiler cannot create executables
3357See \`config.log' for more details" "$LINENO" 5; }
3358else
3359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3360$as_echo "yes" >&6; }
3361fi
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3363$as_echo_n "checking for C compiler default output file name... " >&6; }
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3365$as_echo "$ac_file" >&6; }
3366ac_exeext=$ac_cv_exeext
3367
3368rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3369ac_clean_files=$ac_clean_files_save
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3371$as_echo_n "checking for suffix of executables... " >&6; }
3372if { { ac_try="$ac_link"
3373case "(($ac_try" in
3374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375  *) ac_try_echo=$ac_try;;
3376esac
3377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378$as_echo "$ac_try_echo"; } >&5
3379  (eval "$ac_link") 2>&5
3380  ac_status=$?
3381  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382  test $ac_status = 0; }; then :
3383  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3384# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3385# work properly (i.e., refer to `conftest.exe'), while it won't with
3386# `rm'.
3387for ac_file in conftest.exe conftest conftest.*; do
3388  test -f "$ac_file" || continue
3389  case $ac_file in
3390    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3391    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3392	  break;;
3393    * ) break;;
3394  esac
3395done
3396else
3397  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3400See \`config.log' for more details" "$LINENO" 5; }
3401fi
3402rm -f conftest conftest$ac_cv_exeext
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3404$as_echo "$ac_cv_exeext" >&6; }
3405
3406rm -f conftest.$ac_ext
3407EXEEXT=$ac_cv_exeext
3408ac_exeext=$EXEEXT
3409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410/* end confdefs.h.  */
3411#include <stdio.h>
3412int
3413main ()
3414{
3415FILE *f = fopen ("conftest.out", "w");
3416 return ferror (f) || fclose (f) != 0;
3417
3418  ;
3419  return 0;
3420}
3421_ACEOF
3422ac_clean_files="$ac_clean_files conftest.out"
3423# Check that the compiler produces executables we can run.  If not, either
3424# the compiler is broken, or we cross compile.
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3426$as_echo_n "checking whether we are cross compiling... " >&6; }
3427if test "$cross_compiling" != yes; then
3428  { { ac_try="$ac_link"
3429case "(($ac_try" in
3430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431  *) ac_try_echo=$ac_try;;
3432esac
3433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434$as_echo "$ac_try_echo"; } >&5
3435  (eval "$ac_link") 2>&5
3436  ac_status=$?
3437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438  test $ac_status = 0; }
3439  if { ac_try='./conftest$ac_cv_exeext'
3440  { { case "(($ac_try" in
3441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442  *) ac_try_echo=$ac_try;;
3443esac
3444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445$as_echo "$ac_try_echo"; } >&5
3446  (eval "$ac_try") 2>&5
3447  ac_status=$?
3448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449  test $ac_status = 0; }; }; then
3450    cross_compiling=no
3451  else
3452    if test "$cross_compiling" = maybe; then
3453	cross_compiling=yes
3454    else
3455	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457as_fn_error $? "cannot run C compiled programs.
3458If you meant to cross compile, use \`--host'.
3459See \`config.log' for more details" "$LINENO" 5; }
3460    fi
3461  fi
3462fi
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3464$as_echo "$cross_compiling" >&6; }
3465
3466rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3467ac_clean_files=$ac_clean_files_save
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3469$as_echo_n "checking for suffix of object files... " >&6; }
3470if ${ac_cv_objext+:} false; then :
3471  $as_echo_n "(cached) " >&6
3472else
3473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474/* end confdefs.h.  */
3475
3476int
3477main ()
3478{
3479
3480  ;
3481  return 0;
3482}
3483_ACEOF
3484rm -f conftest.o conftest.obj
3485if { { ac_try="$ac_compile"
3486case "(($ac_try" in
3487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488  *) ac_try_echo=$ac_try;;
3489esac
3490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491$as_echo "$ac_try_echo"; } >&5
3492  (eval "$ac_compile") 2>&5
3493  ac_status=$?
3494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495  test $ac_status = 0; }; then :
3496  for ac_file in conftest.o conftest.obj conftest.*; do
3497  test -f "$ac_file" || continue;
3498  case $ac_file in
3499    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3500    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3501       break;;
3502  esac
3503done
3504else
3505  $as_echo "$as_me: failed program was:" >&5
3506sed 's/^/| /' conftest.$ac_ext >&5
3507
3508{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510as_fn_error $? "cannot compute suffix of object files: cannot compile
3511See \`config.log' for more details" "$LINENO" 5; }
3512fi
3513rm -f conftest.$ac_cv_objext conftest.$ac_ext
3514fi
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3516$as_echo "$ac_cv_objext" >&6; }
3517OBJEXT=$ac_cv_objext
3518ac_objext=$OBJEXT
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3520$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3521if ${ac_cv_c_compiler_gnu+:} false; then :
3522  $as_echo_n "(cached) " >&6
3523else
3524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525/* end confdefs.h.  */
3526
3527int
3528main ()
3529{
3530#ifndef __GNUC__
3531       choke me
3532#endif
3533
3534  ;
3535  return 0;
3536}
3537_ACEOF
3538if ac_fn_c_try_compile "$LINENO"; then :
3539  ac_compiler_gnu=yes
3540else
3541  ac_compiler_gnu=no
3542fi
3543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544ac_cv_c_compiler_gnu=$ac_compiler_gnu
3545
3546fi
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3548$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3549if test $ac_compiler_gnu = yes; then
3550  GCC=yes
3551else
3552  GCC=
3553fi
3554ac_test_CFLAGS=${CFLAGS+set}
3555ac_save_CFLAGS=$CFLAGS
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3557$as_echo_n "checking whether $CC accepts -g... " >&6; }
3558if ${ac_cv_prog_cc_g+:} false; then :
3559  $as_echo_n "(cached) " >&6
3560else
3561  ac_save_c_werror_flag=$ac_c_werror_flag
3562   ac_c_werror_flag=yes
3563   ac_cv_prog_cc_g=no
3564   CFLAGS="-g"
3565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566/* end confdefs.h.  */
3567
3568int
3569main ()
3570{
3571
3572  ;
3573  return 0;
3574}
3575_ACEOF
3576if ac_fn_c_try_compile "$LINENO"; then :
3577  ac_cv_prog_cc_g=yes
3578else
3579  CFLAGS=""
3580      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581/* end confdefs.h.  */
3582
3583int
3584main ()
3585{
3586
3587  ;
3588  return 0;
3589}
3590_ACEOF
3591if ac_fn_c_try_compile "$LINENO"; then :
3592
3593else
3594  ac_c_werror_flag=$ac_save_c_werror_flag
3595	 CFLAGS="-g"
3596	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597/* end confdefs.h.  */
3598
3599int
3600main ()
3601{
3602
3603  ;
3604  return 0;
3605}
3606_ACEOF
3607if ac_fn_c_try_compile "$LINENO"; then :
3608  ac_cv_prog_cc_g=yes
3609fi
3610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611fi
3612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613fi
3614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615   ac_c_werror_flag=$ac_save_c_werror_flag
3616fi
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3618$as_echo "$ac_cv_prog_cc_g" >&6; }
3619if test "$ac_test_CFLAGS" = set; then
3620  CFLAGS=$ac_save_CFLAGS
3621elif test $ac_cv_prog_cc_g = yes; then
3622  if test "$GCC" = yes; then
3623    CFLAGS="-g -O2"
3624  else
3625    CFLAGS="-g"
3626  fi
3627else
3628  if test "$GCC" = yes; then
3629    CFLAGS="-O2"
3630  else
3631    CFLAGS=
3632  fi
3633fi
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3635$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3636if ${ac_cv_prog_cc_c89+:} false; then :
3637  $as_echo_n "(cached) " >&6
3638else
3639  ac_cv_prog_cc_c89=no
3640ac_save_CC=$CC
3641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642/* end confdefs.h.  */
3643#include <stdarg.h>
3644#include <stdio.h>
3645struct stat;
3646/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3647struct buf { int x; };
3648FILE * (*rcsopen) (struct buf *, struct stat *, int);
3649static char *e (p, i)
3650     char **p;
3651     int i;
3652{
3653  return p[i];
3654}
3655static char *f (char * (*g) (char **, int), char **p, ...)
3656{
3657  char *s;
3658  va_list v;
3659  va_start (v,p);
3660  s = g (p, va_arg (v,int));
3661  va_end (v);
3662  return s;
3663}
3664
3665/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3666   function prototypes and stuff, but not '\xHH' hex character constants.
3667   These don't provoke an error unfortunately, instead are silently treated
3668   as 'x'.  The following induces an error, until -std is added to get
3669   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3670   array size at least.  It's necessary to write '\x00'==0 to get something
3671   that's true only with -std.  */
3672int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3673
3674/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3675   inside strings and character constants.  */
3676#define FOO(x) 'x'
3677int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3678
3679int test (int i, double x);
3680struct s1 {int (*f) (int a);};
3681struct s2 {int (*f) (double a);};
3682int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3683int argc;
3684char **argv;
3685int
3686main ()
3687{
3688return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3689  ;
3690  return 0;
3691}
3692_ACEOF
3693for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3694	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3695do
3696  CC="$ac_save_CC $ac_arg"
3697  if ac_fn_c_try_compile "$LINENO"; then :
3698  ac_cv_prog_cc_c89=$ac_arg
3699fi
3700rm -f core conftest.err conftest.$ac_objext
3701  test "x$ac_cv_prog_cc_c89" != "xno" && break
3702done
3703rm -f conftest.$ac_ext
3704CC=$ac_save_CC
3705
3706fi
3707# AC_CACHE_VAL
3708case "x$ac_cv_prog_cc_c89" in
3709  x)
3710    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3711$as_echo "none needed" >&6; } ;;
3712  xno)
3713    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3714$as_echo "unsupported" >&6; } ;;
3715  *)
3716    CC="$CC $ac_cv_prog_cc_c89"
3717    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3718$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3719esac
3720if test "x$ac_cv_prog_cc_c89" != xno; then :
3721
3722fi
3723
3724ac_ext=c
3725ac_cpp='$CPP $CPPFLAGS'
3726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729DEPDIR="${am__leading_dot}deps"
3730
3731ac_config_commands="$ac_config_commands depfiles"
3732
3733
3734am_make=${MAKE-make}
3735cat > confinc << 'END'
3736am__doit:
3737	@echo this is the am__doit target
3738.PHONY: am__doit
3739END
3740# If we don't find an include directive, just comment out the code.
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3742$as_echo_n "checking for style of include used by $am_make... " >&6; }
3743am__include="#"
3744am__quote=
3745_am_result=none
3746# First try GNU make style include.
3747echo "include confinc" > confmf
3748# Ignore all kinds of additional output from 'make'.
3749case `$am_make -s -f confmf 2> /dev/null` in #(
3750*the\ am__doit\ target*)
3751  am__include=include
3752  am__quote=
3753  _am_result=GNU
3754  ;;
3755esac
3756# Now try BSD make style include.
3757if test "$am__include" = "#"; then
3758   echo '.include "confinc"' > confmf
3759   case `$am_make -s -f confmf 2> /dev/null` in #(
3760   *the\ am__doit\ target*)
3761     am__include=.include
3762     am__quote="\""
3763     _am_result=BSD
3764     ;;
3765   esac
3766fi
3767
3768
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3770$as_echo "$_am_result" >&6; }
3771rm -f confinc confmf
3772
3773# Check whether --enable-dependency-tracking was given.
3774if test "${enable_dependency_tracking+set}" = set; then :
3775  enableval=$enable_dependency_tracking;
3776fi
3777
3778if test "x$enable_dependency_tracking" != xno; then
3779  am_depcomp="$ac_aux_dir/depcomp"
3780  AMDEPBACKSLASH='\'
3781  am__nodep='_no'
3782fi
3783 if test "x$enable_dependency_tracking" != xno; then
3784  AMDEP_TRUE=
3785  AMDEP_FALSE='#'
3786else
3787  AMDEP_TRUE='#'
3788  AMDEP_FALSE=
3789fi
3790
3791
3792
3793depcc="$CC"   am_compiler_list=
3794
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3796$as_echo_n "checking dependency style of $depcc... " >&6; }
3797if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3798  $as_echo_n "(cached) " >&6
3799else
3800  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3801  # We make a subdir and do the tests there.  Otherwise we can end up
3802  # making bogus files that we don't know about and never remove.  For
3803  # instance it was reported that on HP-UX the gcc test will end up
3804  # making a dummy file named 'D' -- because '-MD' means "put the output
3805  # in D".
3806  rm -rf conftest.dir
3807  mkdir conftest.dir
3808  # Copy depcomp to subdir because otherwise we won't find it if we're
3809  # using a relative directory.
3810  cp "$am_depcomp" conftest.dir
3811  cd conftest.dir
3812  # We will build objects and dependencies in a subdirectory because
3813  # it helps to detect inapplicable dependency modes.  For instance
3814  # both Tru64's cc and ICC support -MD to output dependencies as a
3815  # side effect of compilation, but ICC will put the dependencies in
3816  # the current directory while Tru64 will put them in the object
3817  # directory.
3818  mkdir sub
3819
3820  am_cv_CC_dependencies_compiler_type=none
3821  if test "$am_compiler_list" = ""; then
3822     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3823  fi
3824  am__universal=false
3825  case " $depcc " in #(
3826     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3827     esac
3828
3829  for depmode in $am_compiler_list; do
3830    # Setup a source with many dependencies, because some compilers
3831    # like to wrap large dependency lists on column 80 (with \), and
3832    # we should not choose a depcomp mode which is confused by this.
3833    #
3834    # We need to recreate these files for each test, as the compiler may
3835    # overwrite some of them when testing with obscure command lines.
3836    # This happens at least with the AIX C compiler.
3837    : > sub/conftest.c
3838    for i in 1 2 3 4 5 6; do
3839      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3840      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3841      # Solaris 10 /bin/sh.
3842      echo '/* dummy */' > sub/conftst$i.h
3843    done
3844    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3845
3846    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3847    # mode.  It turns out that the SunPro C++ compiler does not properly
3848    # handle '-M -o', and we need to detect this.  Also, some Intel
3849    # versions had trouble with output in subdirs.
3850    am__obj=sub/conftest.${OBJEXT-o}
3851    am__minus_obj="-o $am__obj"
3852    case $depmode in
3853    gcc)
3854      # This depmode causes a compiler race in universal mode.
3855      test "$am__universal" = false || continue
3856      ;;
3857    nosideeffect)
3858      # After this tag, mechanisms are not by side-effect, so they'll
3859      # only be used when explicitly requested.
3860      if test "x$enable_dependency_tracking" = xyes; then
3861	continue
3862      else
3863	break
3864      fi
3865      ;;
3866    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3867      # This compiler won't grok '-c -o', but also, the minuso test has
3868      # not run yet.  These depmodes are late enough in the game, and
3869      # so weak that their functioning should not be impacted.
3870      am__obj=conftest.${OBJEXT-o}
3871      am__minus_obj=
3872      ;;
3873    none) break ;;
3874    esac
3875    if depmode=$depmode \
3876       source=sub/conftest.c object=$am__obj \
3877       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3878       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3879         >/dev/null 2>conftest.err &&
3880       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3881       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3882       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3883       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3884      # icc doesn't choke on unknown options, it will just issue warnings
3885      # or remarks (even with -Werror).  So we grep stderr for any message
3886      # that says an option was ignored or not supported.
3887      # When given -MP, icc 7.0 and 7.1 complain thusly:
3888      #   icc: Command line warning: ignoring option '-M'; no argument required
3889      # The diagnosis changed in icc 8.0:
3890      #   icc: Command line remark: option '-MP' not supported
3891      if (grep 'ignoring option' conftest.err ||
3892          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3893        am_cv_CC_dependencies_compiler_type=$depmode
3894        break
3895      fi
3896    fi
3897  done
3898
3899  cd ..
3900  rm -rf conftest.dir
3901else
3902  am_cv_CC_dependencies_compiler_type=none
3903fi
3904
3905fi
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3907$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3908CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3909
3910 if
3911  test "x$enable_dependency_tracking" != xno \
3912  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3913  am__fastdepCC_TRUE=
3914  am__fastdepCC_FALSE='#'
3915else
3916  am__fastdepCC_TRUE='#'
3917  am__fastdepCC_FALSE=
3918fi
3919
3920
3921if test -n "$ac_tool_prefix"; then
3922  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3923set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925$as_echo_n "checking for $ac_word... " >&6; }
3926if ${ac_cv_prog_RANLIB+:} false; then :
3927  $as_echo_n "(cached) " >&6
3928else
3929  if test -n "$RANLIB"; then
3930  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3931else
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935  IFS=$as_save_IFS
3936  test -z "$as_dir" && as_dir=.
3937    for ac_exec_ext in '' $ac_executable_extensions; do
3938  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3941    break 2
3942  fi
3943done
3944  done
3945IFS=$as_save_IFS
3946
3947fi
3948fi
3949RANLIB=$ac_cv_prog_RANLIB
3950if test -n "$RANLIB"; then
3951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3952$as_echo "$RANLIB" >&6; }
3953else
3954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955$as_echo "no" >&6; }
3956fi
3957
3958
3959fi
3960if test -z "$ac_cv_prog_RANLIB"; then
3961  ac_ct_RANLIB=$RANLIB
3962  # Extract the first word of "ranlib", so it can be a program name with args.
3963set dummy ranlib; ac_word=$2
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965$as_echo_n "checking for $ac_word... " >&6; }
3966if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3967  $as_echo_n "(cached) " >&6
3968else
3969  if test -n "$ac_ct_RANLIB"; then
3970  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3971else
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
3974do
3975  IFS=$as_save_IFS
3976  test -z "$as_dir" && as_dir=.
3977    for ac_exec_ext in '' $ac_executable_extensions; do
3978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3979    ac_cv_prog_ac_ct_RANLIB="ranlib"
3980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3981    break 2
3982  fi
3983done
3984  done
3985IFS=$as_save_IFS
3986
3987fi
3988fi
3989ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3990if test -n "$ac_ct_RANLIB"; then
3991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3992$as_echo "$ac_ct_RANLIB" >&6; }
3993else
3994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995$as_echo "no" >&6; }
3996fi
3997
3998  if test "x$ac_ct_RANLIB" = x; then
3999    RANLIB=":"
4000  else
4001    case $cross_compiling:$ac_tool_warned in
4002yes:)
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4005ac_tool_warned=yes ;;
4006esac
4007    RANLIB=$ac_ct_RANLIB
4008  fi
4009else
4010  RANLIB="$ac_cv_prog_RANLIB"
4011fi
4012
4013
4014
4015for ac_prog in 'bison -y' byacc
4016do
4017  # Extract the first word of "$ac_prog", so it can be a program name with args.
4018set dummy $ac_prog; ac_word=$2
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4020$as_echo_n "checking for $ac_word... " >&6; }
4021if ${ac_cv_prog_YACC+:} false; then :
4022  $as_echo_n "(cached) " >&6
4023else
4024  if test -n "$YACC"; then
4025  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4026else
4027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028for as_dir in $PATH
4029do
4030  IFS=$as_save_IFS
4031  test -z "$as_dir" && as_dir=.
4032    for ac_exec_ext in '' $ac_executable_extensions; do
4033  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4034    ac_cv_prog_YACC="$ac_prog"
4035    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4036    break 2
4037  fi
4038done
4039  done
4040IFS=$as_save_IFS
4041
4042fi
4043fi
4044YACC=$ac_cv_prog_YACC
4045if test -n "$YACC"; then
4046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4047$as_echo "$YACC" >&6; }
4048else
4049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050$as_echo "no" >&6; }
4051fi
4052
4053
4054  test -n "$YACC" && break
4055done
4056test -n "$YACC" || YACC="yacc"
4057
4058if test "$YACC" != "bison -y";
4059then
4060  echo "LifeLines requires GNU Bison to compile src/interp/yacc.y."
4061  exit
4062fi
4063
4064
4065ALL_LINGUAS="da de el eo es fr it nl pl rw sv"
4066
4067        MKINSTALLDIRS=
4068  if test -n "$ac_aux_dir"; then
4069    MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
4070  fi
4071  if test -z "$MKINSTALLDIRS"; then
4072    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4073  fi
4074
4075
4076
4077
4078
4079        # Extract the first word of "msgfmt", so it can be a program name with args.
4080set dummy msgfmt; ac_word=$2
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082$as_echo_n "checking for $ac_word... " >&6; }
4083if ${ac_cv_path_MSGFMT+:} false; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086  case "$MSGFMT" in
4087  /*)
4088  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4089  ;;
4090  *)
4091  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4092  for ac_dir in $PATH; do
4093    test -z "$ac_dir" && ac_dir=.
4094    if test -f $ac_dir/$ac_word; then
4095      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4096     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4097	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4098	break
4099      fi
4100    fi
4101  done
4102  IFS="$ac_save_ifs"
4103  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4104  ;;
4105esac
4106fi
4107MSGFMT="$ac_cv_path_MSGFMT"
4108if test "$MSGFMT" != ":"; then
4109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4110$as_echo "$MSGFMT" >&6; }
4111else
4112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113$as_echo "no" >&6; }
4114fi
4115
4116  # Extract the first word of "gmsgfmt", so it can be a program name with args.
4117set dummy gmsgfmt; ac_word=$2
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119$as_echo_n "checking for $ac_word... " >&6; }
4120if ${ac_cv_path_GMSGFMT+:} false; then :
4121  $as_echo_n "(cached) " >&6
4122else
4123  case $GMSGFMT in
4124  [\\/]* | ?:[\\/]*)
4125  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4126  ;;
4127  *)
4128  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129for as_dir in $PATH
4130do
4131  IFS=$as_save_IFS
4132  test -z "$as_dir" && as_dir=.
4133    for ac_exec_ext in '' $ac_executable_extensions; do
4134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137    break 2
4138  fi
4139done
4140  done
4141IFS=$as_save_IFS
4142
4143  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4144  ;;
4145esac
4146fi
4147GMSGFMT=$ac_cv_path_GMSGFMT
4148if test -n "$GMSGFMT"; then
4149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4150$as_echo "$GMSGFMT" >&6; }
4151else
4152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153$as_echo "no" >&6; }
4154fi
4155
4156
4157
4158        # Extract the first word of "xgettext", so it can be a program name with args.
4159set dummy xgettext; ac_word=$2
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4161$as_echo_n "checking for $ac_word... " >&6; }
4162if ${ac_cv_path_XGETTEXT+:} false; then :
4163  $as_echo_n "(cached) " >&6
4164else
4165  case "$XGETTEXT" in
4166  /*)
4167  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4168  ;;
4169  *)
4170  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4171  for ac_dir in $PATH; do
4172    test -z "$ac_dir" && ac_dir=.
4173    if test -f $ac_dir/$ac_word; then
4174      if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
4175     (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4176	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4177	break
4178      fi
4179    fi
4180  done
4181  IFS="$ac_save_ifs"
4182  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4183  ;;
4184esac
4185fi
4186XGETTEXT="$ac_cv_path_XGETTEXT"
4187if test "$XGETTEXT" != ":"; then
4188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4189$as_echo "$XGETTEXT" >&6; }
4190else
4191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192$as_echo "no" >&6; }
4193fi
4194
4195    rm -f messages.po
4196
4197    # Extract the first word of "msgmerge", so it can be a program name with args.
4198set dummy msgmerge; ac_word=$2
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200$as_echo_n "checking for $ac_word... " >&6; }
4201if ${ac_cv_path_MSGMERGE+:} false; then :
4202  $as_echo_n "(cached) " >&6
4203else
4204  case "$MSGMERGE" in
4205  /*)
4206  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4207  ;;
4208  *)
4209  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4210  for ac_dir in $PATH; do
4211    test -z "$ac_dir" && ac_dir=.
4212    if test -f $ac_dir/$ac_word; then
4213      if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4214	ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
4215	break
4216      fi
4217    fi
4218  done
4219  IFS="$ac_save_ifs"
4220  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4221  ;;
4222esac
4223fi
4224MSGMERGE="$ac_cv_path_MSGMERGE"
4225if test "$MSGMERGE" != ":"; then
4226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4227$as_echo "$MSGMERGE" >&6; }
4228else
4229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230$as_echo "no" >&6; }
4231fi
4232
4233
4234      if test "$GMSGFMT" != ":"; then
4235            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4236       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4237      : ;
4238    else
4239      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4240      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4241$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4242      GMSGFMT=":"
4243    fi
4244  fi
4245
4246      if test "$XGETTEXT" != ":"; then
4247            if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
4248       (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4249      : ;
4250    else
4251      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
4252$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
4253      XGETTEXT=":"
4254    fi
4255        rm -f messages.po
4256  fi
4257
4258  ac_config_commands="$ac_config_commands default-1"
4259
4260
4261
4262
4263        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
4264$as_echo_n "checking for strerror in -lcposix... " >&6; }
4265if ${ac_cv_lib_cposix_strerror+:} false; then :
4266  $as_echo_n "(cached) " >&6
4267else
4268  ac_check_lib_save_LIBS=$LIBS
4269LIBS="-lcposix  $LIBS"
4270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271/* end confdefs.h.  */
4272
4273/* Override any GCC internal prototype to avoid an error.
4274   Use char because int might match the return type of a GCC
4275   builtin and then its argument prototype would still apply.  */
4276#ifdef __cplusplus
4277extern "C"
4278#endif
4279char strerror ();
4280int
4281main ()
4282{
4283return strerror ();
4284  ;
4285  return 0;
4286}
4287_ACEOF
4288if ac_fn_c_try_link "$LINENO"; then :
4289  ac_cv_lib_cposix_strerror=yes
4290else
4291  ac_cv_lib_cposix_strerror=no
4292fi
4293rm -f core conftest.err conftest.$ac_objext \
4294    conftest$ac_exeext conftest.$ac_ext
4295LIBS=$ac_check_lib_save_LIBS
4296fi
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
4298$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
4299if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
4300  LIBS="$LIBS -lcposix"
4301fi
4302
4303
4304
4305ac_ext=c
4306ac_cpp='$CPP $CPPFLAGS'
4307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309ac_compiler_gnu=$ac_cv_c_compiler_gnu
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4311$as_echo_n "checking how to run the C preprocessor... " >&6; }
4312# On Suns, sometimes $CPP names a directory.
4313if test -n "$CPP" && test -d "$CPP"; then
4314  CPP=
4315fi
4316if test -z "$CPP"; then
4317  if ${ac_cv_prog_CPP+:} false; then :
4318  $as_echo_n "(cached) " >&6
4319else
4320      # Double quotes because CPP needs to be expanded
4321    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4322    do
4323      ac_preproc_ok=false
4324for ac_c_preproc_warn_flag in '' yes
4325do
4326  # Use a header file that comes with gcc, so configuring glibc
4327  # with a fresh cross-compiler works.
4328  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4329  # <limits.h> exists even on freestanding compilers.
4330  # On the NeXT, cc -E runs the code through the compiler's parser,
4331  # not just through cpp. "Syntax error" is here to catch this case.
4332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333/* end confdefs.h.  */
4334#ifdef __STDC__
4335# include <limits.h>
4336#else
4337# include <assert.h>
4338#endif
4339		     Syntax error
4340_ACEOF
4341if ac_fn_c_try_cpp "$LINENO"; then :
4342
4343else
4344  # Broken: fails on valid input.
4345continue
4346fi
4347rm -f conftest.err conftest.i conftest.$ac_ext
4348
4349  # OK, works on sane cases.  Now check whether nonexistent headers
4350  # can be detected and how.
4351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352/* end confdefs.h.  */
4353#include <ac_nonexistent.h>
4354_ACEOF
4355if ac_fn_c_try_cpp "$LINENO"; then :
4356  # Broken: success on invalid input.
4357continue
4358else
4359  # Passes both tests.
4360ac_preproc_ok=:
4361break
4362fi
4363rm -f conftest.err conftest.i conftest.$ac_ext
4364
4365done
4366# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4367rm -f conftest.i conftest.err conftest.$ac_ext
4368if $ac_preproc_ok; then :
4369  break
4370fi
4371
4372    done
4373    ac_cv_prog_CPP=$CPP
4374
4375fi
4376  CPP=$ac_cv_prog_CPP
4377else
4378  ac_cv_prog_CPP=$CPP
4379fi
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4381$as_echo "$CPP" >&6; }
4382ac_preproc_ok=false
4383for ac_c_preproc_warn_flag in '' yes
4384do
4385  # Use a header file that comes with gcc, so configuring glibc
4386  # with a fresh cross-compiler works.
4387  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4388  # <limits.h> exists even on freestanding compilers.
4389  # On the NeXT, cc -E runs the code through the compiler's parser,
4390  # not just through cpp. "Syntax error" is here to catch this case.
4391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392/* end confdefs.h.  */
4393#ifdef __STDC__
4394# include <limits.h>
4395#else
4396# include <assert.h>
4397#endif
4398		     Syntax error
4399_ACEOF
4400if ac_fn_c_try_cpp "$LINENO"; then :
4401
4402else
4403  # Broken: fails on valid input.
4404continue
4405fi
4406rm -f conftest.err conftest.i conftest.$ac_ext
4407
4408  # OK, works on sane cases.  Now check whether nonexistent headers
4409  # can be detected and how.
4410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411/* end confdefs.h.  */
4412#include <ac_nonexistent.h>
4413_ACEOF
4414if ac_fn_c_try_cpp "$LINENO"; then :
4415  # Broken: success on invalid input.
4416continue
4417else
4418  # Passes both tests.
4419ac_preproc_ok=:
4420break
4421fi
4422rm -f conftest.err conftest.i conftest.$ac_ext
4423
4424done
4425# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4426rm -f conftest.i conftest.err conftest.$ac_ext
4427if $ac_preproc_ok; then :
4428
4429else
4430  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4432as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4433See \`config.log' for more details" "$LINENO" 5; }
4434fi
4435
4436ac_ext=c
4437ac_cpp='$CPP $CPPFLAGS'
4438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4440ac_compiler_gnu=$ac_cv_c_compiler_gnu
4441
4442
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4444$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4445if ${ac_cv_path_GREP+:} false; then :
4446  $as_echo_n "(cached) " >&6
4447else
4448  if test -z "$GREP"; then
4449  ac_path_GREP_found=false
4450  # Loop through the user's path and test for each of PROGNAME-LIST
4451  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4453do
4454  IFS=$as_save_IFS
4455  test -z "$as_dir" && as_dir=.
4456    for ac_prog in grep ggrep; do
4457    for ac_exec_ext in '' $ac_executable_extensions; do
4458      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4459      as_fn_executable_p "$ac_path_GREP" || continue
4460# Check for GNU ac_path_GREP and select it if it is found.
4461  # Check for GNU $ac_path_GREP
4462case `"$ac_path_GREP" --version 2>&1` in
4463*GNU*)
4464  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4465*)
4466  ac_count=0
4467  $as_echo_n 0123456789 >"conftest.in"
4468  while :
4469  do
4470    cat "conftest.in" "conftest.in" >"conftest.tmp"
4471    mv "conftest.tmp" "conftest.in"
4472    cp "conftest.in" "conftest.nl"
4473    $as_echo 'GREP' >> "conftest.nl"
4474    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4475    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4476    as_fn_arith $ac_count + 1 && ac_count=$as_val
4477    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4478      # Best one so far, save it but keep looking for a better one
4479      ac_cv_path_GREP="$ac_path_GREP"
4480      ac_path_GREP_max=$ac_count
4481    fi
4482    # 10*(2^10) chars as input seems more than enough
4483    test $ac_count -gt 10 && break
4484  done
4485  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4486esac
4487
4488      $ac_path_GREP_found && break 3
4489    done
4490  done
4491  done
4492IFS=$as_save_IFS
4493  if test -z "$ac_cv_path_GREP"; then
4494    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4495  fi
4496else
4497  ac_cv_path_GREP=$GREP
4498fi
4499
4500fi
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4502$as_echo "$ac_cv_path_GREP" >&6; }
4503 GREP="$ac_cv_path_GREP"
4504
4505
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4507$as_echo_n "checking for egrep... " >&6; }
4508if ${ac_cv_path_EGREP+:} false; then :
4509  $as_echo_n "(cached) " >&6
4510else
4511  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4512   then ac_cv_path_EGREP="$GREP -E"
4513   else
4514     if test -z "$EGREP"; then
4515  ac_path_EGREP_found=false
4516  # Loop through the user's path and test for each of PROGNAME-LIST
4517  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4519do
4520  IFS=$as_save_IFS
4521  test -z "$as_dir" && as_dir=.
4522    for ac_prog in egrep; do
4523    for ac_exec_ext in '' $ac_executable_extensions; do
4524      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4525      as_fn_executable_p "$ac_path_EGREP" || continue
4526# Check for GNU ac_path_EGREP and select it if it is found.
4527  # Check for GNU $ac_path_EGREP
4528case `"$ac_path_EGREP" --version 2>&1` in
4529*GNU*)
4530  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4531*)
4532  ac_count=0
4533  $as_echo_n 0123456789 >"conftest.in"
4534  while :
4535  do
4536    cat "conftest.in" "conftest.in" >"conftest.tmp"
4537    mv "conftest.tmp" "conftest.in"
4538    cp "conftest.in" "conftest.nl"
4539    $as_echo 'EGREP' >> "conftest.nl"
4540    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4541    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4542    as_fn_arith $ac_count + 1 && ac_count=$as_val
4543    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4544      # Best one so far, save it but keep looking for a better one
4545      ac_cv_path_EGREP="$ac_path_EGREP"
4546      ac_path_EGREP_max=$ac_count
4547    fi
4548    # 10*(2^10) chars as input seems more than enough
4549    test $ac_count -gt 10 && break
4550  done
4551  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4552esac
4553
4554      $ac_path_EGREP_found && break 3
4555    done
4556  done
4557  done
4558IFS=$as_save_IFS
4559  if test -z "$ac_cv_path_EGREP"; then
4560    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4561  fi
4562else
4563  ac_cv_path_EGREP=$EGREP
4564fi
4565
4566   fi
4567fi
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4569$as_echo "$ac_cv_path_EGREP" >&6; }
4570 EGREP="$ac_cv_path_EGREP"
4571
4572
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4574$as_echo_n "checking for ANSI C header files... " >&6; }
4575if ${ac_cv_header_stdc+:} false; then :
4576  $as_echo_n "(cached) " >&6
4577else
4578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579/* end confdefs.h.  */
4580#include <stdlib.h>
4581#include <stdarg.h>
4582#include <string.h>
4583#include <float.h>
4584
4585int
4586main ()
4587{
4588
4589  ;
4590  return 0;
4591}
4592_ACEOF
4593if ac_fn_c_try_compile "$LINENO"; then :
4594  ac_cv_header_stdc=yes
4595else
4596  ac_cv_header_stdc=no
4597fi
4598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599
4600if test $ac_cv_header_stdc = yes; then
4601  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603/* end confdefs.h.  */
4604#include <string.h>
4605
4606_ACEOF
4607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4608  $EGREP "memchr" >/dev/null 2>&1; then :
4609
4610else
4611  ac_cv_header_stdc=no
4612fi
4613rm -f conftest*
4614
4615fi
4616
4617if test $ac_cv_header_stdc = yes; then
4618  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620/* end confdefs.h.  */
4621#include <stdlib.h>
4622
4623_ACEOF
4624if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4625  $EGREP "free" >/dev/null 2>&1; then :
4626
4627else
4628  ac_cv_header_stdc=no
4629fi
4630rm -f conftest*
4631
4632fi
4633
4634if test $ac_cv_header_stdc = yes; then
4635  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4636  if test "$cross_compiling" = yes; then :
4637  :
4638else
4639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640/* end confdefs.h.  */
4641#include <ctype.h>
4642#include <stdlib.h>
4643#if ((' ' & 0x0FF) == 0x020)
4644# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4645# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4646#else
4647# define ISLOWER(c) \
4648		   (('a' <= (c) && (c) <= 'i') \
4649		     || ('j' <= (c) && (c) <= 'r') \
4650		     || ('s' <= (c) && (c) <= 'z'))
4651# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4652#endif
4653
4654#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4655int
4656main ()
4657{
4658  int i;
4659  for (i = 0; i < 256; i++)
4660    if (XOR (islower (i), ISLOWER (i))
4661	|| toupper (i) != TOUPPER (i))
4662      return 2;
4663  return 0;
4664}
4665_ACEOF
4666if ac_fn_c_try_run "$LINENO"; then :
4667
4668else
4669  ac_cv_header_stdc=no
4670fi
4671rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4672  conftest.$ac_objext conftest.beam conftest.$ac_ext
4673fi
4674
4675fi
4676fi
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4678$as_echo "$ac_cv_header_stdc" >&6; }
4679if test $ac_cv_header_stdc = yes; then
4680
4681$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4682
4683fi
4684
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4686$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4687if ${ac_cv_c_const+:} false; then :
4688  $as_echo_n "(cached) " >&6
4689else
4690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691/* end confdefs.h.  */
4692
4693int
4694main ()
4695{
4696
4697#ifndef __cplusplus
4698  /* Ultrix mips cc rejects this sort of thing.  */
4699  typedef int charset[2];
4700  const charset cs = { 0, 0 };
4701  /* SunOS 4.1.1 cc rejects this.  */
4702  char const *const *pcpcc;
4703  char **ppc;
4704  /* NEC SVR4.0.2 mips cc rejects this.  */
4705  struct point {int x, y;};
4706  static struct point const zero = {0,0};
4707  /* AIX XL C 1.02.0.0 rejects this.
4708     It does not let you subtract one const X* pointer from another in
4709     an arm of an if-expression whose if-part is not a constant
4710     expression */
4711  const char *g = "string";
4712  pcpcc = &g + (g ? g-g : 0);
4713  /* HPUX 7.0 cc rejects these. */
4714  ++pcpcc;
4715  ppc = (char**) pcpcc;
4716  pcpcc = (char const *const *) ppc;
4717  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4718    char tx;
4719    char *t = &tx;
4720    char const *s = 0 ? (char *) 0 : (char const *) 0;
4721
4722    *t++ = 0;
4723    if (s) return 0;
4724  }
4725  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4726    int x[] = {25, 17};
4727    const int *foo = &x[0];
4728    ++foo;
4729  }
4730  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4731    typedef const int *iptr;
4732    iptr p = 0;
4733    ++p;
4734  }
4735  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4736       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4737    struct s { int j; const int *ap[3]; } bx;
4738    struct s *b = &bx; b->j = 5;
4739  }
4740  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4741    const int foo = 10;
4742    if (!foo) return 0;
4743  }
4744  return !cs[0] && !zero.x;
4745#endif
4746
4747  ;
4748  return 0;
4749}
4750_ACEOF
4751if ac_fn_c_try_compile "$LINENO"; then :
4752  ac_cv_c_const=yes
4753else
4754  ac_cv_c_const=no
4755fi
4756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757fi
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4759$as_echo "$ac_cv_c_const" >&6; }
4760if test $ac_cv_c_const = no; then
4761
4762$as_echo "#define const /**/" >>confdefs.h
4763
4764fi
4765
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4767$as_echo_n "checking for inline... " >&6; }
4768if ${ac_cv_c_inline+:} false; then :
4769  $as_echo_n "(cached) " >&6
4770else
4771  ac_cv_c_inline=no
4772for ac_kw in inline __inline__ __inline; do
4773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774/* end confdefs.h.  */
4775#ifndef __cplusplus
4776typedef int foo_t;
4777static $ac_kw foo_t static_foo () {return 0; }
4778$ac_kw foo_t foo () {return 0; }
4779#endif
4780
4781_ACEOF
4782if ac_fn_c_try_compile "$LINENO"; then :
4783  ac_cv_c_inline=$ac_kw
4784fi
4785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786  test "$ac_cv_c_inline" != no && break
4787done
4788
4789fi
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4791$as_echo "$ac_cv_c_inline" >&6; }
4792
4793case $ac_cv_c_inline in
4794  inline | yes) ;;
4795  *)
4796    case $ac_cv_c_inline in
4797      no) ac_val=;;
4798      *) ac_val=$ac_cv_c_inline;;
4799    esac
4800    cat >>confdefs.h <<_ACEOF
4801#ifndef __cplusplus
4802#define inline $ac_val
4803#endif
4804_ACEOF
4805    ;;
4806esac
4807
4808# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4809for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4810		  inttypes.h stdint.h unistd.h
4811do :
4812  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4813ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4814"
4815if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4816  cat >>confdefs.h <<_ACEOF
4817#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4818_ACEOF
4819
4820fi
4821
4822done
4823
4824
4825ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4826if test "x$ac_cv_type_off_t" = xyes; then :
4827
4828else
4829
4830cat >>confdefs.h <<_ACEOF
4831#define off_t long int
4832_ACEOF
4833
4834fi
4835
4836ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4837if test "x$ac_cv_type_size_t" = xyes; then :
4838
4839else
4840
4841cat >>confdefs.h <<_ACEOF
4842#define size_t unsigned int
4843_ACEOF
4844
4845fi
4846
4847# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4848# for constant arguments.  Useless!
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4850$as_echo_n "checking for working alloca.h... " >&6; }
4851if ${ac_cv_working_alloca_h+:} false; then :
4852  $as_echo_n "(cached) " >&6
4853else
4854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855/* end confdefs.h.  */
4856#include <alloca.h>
4857int
4858main ()
4859{
4860char *p = (char *) alloca (2 * sizeof (int));
4861			  if (p) return 0;
4862  ;
4863  return 0;
4864}
4865_ACEOF
4866if ac_fn_c_try_link "$LINENO"; then :
4867  ac_cv_working_alloca_h=yes
4868else
4869  ac_cv_working_alloca_h=no
4870fi
4871rm -f core conftest.err conftest.$ac_objext \
4872    conftest$ac_exeext conftest.$ac_ext
4873fi
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4875$as_echo "$ac_cv_working_alloca_h" >&6; }
4876if test $ac_cv_working_alloca_h = yes; then
4877
4878$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4879
4880fi
4881
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4883$as_echo_n "checking for alloca... " >&6; }
4884if ${ac_cv_func_alloca_works+:} false; then :
4885  $as_echo_n "(cached) " >&6
4886else
4887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888/* end confdefs.h.  */
4889#ifdef __GNUC__
4890# define alloca __builtin_alloca
4891#else
4892# ifdef _MSC_VER
4893#  include <malloc.h>
4894#  define alloca _alloca
4895# else
4896#  ifdef HAVE_ALLOCA_H
4897#   include <alloca.h>
4898#  else
4899#   ifdef _AIX
4900 #pragma alloca
4901#   else
4902#    ifndef alloca /* predefined by HP cc +Olibcalls */
4903void *alloca (size_t);
4904#    endif
4905#   endif
4906#  endif
4907# endif
4908#endif
4909
4910int
4911main ()
4912{
4913char *p = (char *) alloca (1);
4914				    if (p) return 0;
4915  ;
4916  return 0;
4917}
4918_ACEOF
4919if ac_fn_c_try_link "$LINENO"; then :
4920  ac_cv_func_alloca_works=yes
4921else
4922  ac_cv_func_alloca_works=no
4923fi
4924rm -f core conftest.err conftest.$ac_objext \
4925    conftest$ac_exeext conftest.$ac_ext
4926fi
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4928$as_echo "$ac_cv_func_alloca_works" >&6; }
4929
4930if test $ac_cv_func_alloca_works = yes; then
4931
4932$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4933
4934else
4935  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4936# that cause trouble.  Some versions do not even contain alloca or
4937# contain a buggy version.  If you still want to use their alloca,
4938# use ar to extract alloca.o from them instead of compiling alloca.c.
4939
4940ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4941
4942$as_echo "#define C_ALLOCA 1" >>confdefs.h
4943
4944
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4946$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4947if ${ac_cv_os_cray+:} false; then :
4948  $as_echo_n "(cached) " >&6
4949else
4950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951/* end confdefs.h.  */
4952#if defined CRAY && ! defined CRAY2
4953webecray
4954#else
4955wenotbecray
4956#endif
4957
4958_ACEOF
4959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4960  $EGREP "webecray" >/dev/null 2>&1; then :
4961  ac_cv_os_cray=yes
4962else
4963  ac_cv_os_cray=no
4964fi
4965rm -f conftest*
4966
4967fi
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4969$as_echo "$ac_cv_os_cray" >&6; }
4970if test $ac_cv_os_cray = yes; then
4971  for ac_func in _getb67 GETB67 getb67; do
4972    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4973ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4974if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4975
4976cat >>confdefs.h <<_ACEOF
4977#define CRAY_STACKSEG_END $ac_func
4978_ACEOF
4979
4980    break
4981fi
4982
4983  done
4984fi
4985
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4987$as_echo_n "checking stack direction for C alloca... " >&6; }
4988if ${ac_cv_c_stack_direction+:} false; then :
4989  $as_echo_n "(cached) " >&6
4990else
4991  if test "$cross_compiling" = yes; then :
4992  ac_cv_c_stack_direction=0
4993else
4994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995/* end confdefs.h.  */
4996$ac_includes_default
4997int
4998find_stack_direction (int *addr, int depth)
4999{
5000  int dir, dummy = 0;
5001  if (! addr)
5002    addr = &dummy;
5003  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5004  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5005  return dir + dummy;
5006}
5007
5008int
5009main (int argc, char **argv)
5010{
5011  return find_stack_direction (0, argc + !argv + 20) < 0;
5012}
5013_ACEOF
5014if ac_fn_c_try_run "$LINENO"; then :
5015  ac_cv_c_stack_direction=1
5016else
5017  ac_cv_c_stack_direction=-1
5018fi
5019rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5020  conftest.$ac_objext conftest.beam conftest.$ac_ext
5021fi
5022
5023fi
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5025$as_echo "$ac_cv_c_stack_direction" >&6; }
5026cat >>confdefs.h <<_ACEOF
5027#define STACK_DIRECTION $ac_cv_c_stack_direction
5028_ACEOF
5029
5030
5031fi
5032
5033
5034
5035
5036  for ac_header in $ac_header_list
5037do :
5038  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5039ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5040"
5041if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5042  cat >>confdefs.h <<_ACEOF
5043#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5044_ACEOF
5045
5046fi
5047
5048done
5049
5050
5051
5052
5053
5054
5055
5056
5057for ac_func in getpagesize
5058do :
5059  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
5060if test "x$ac_cv_func_getpagesize" = xyes; then :
5061  cat >>confdefs.h <<_ACEOF
5062#define HAVE_GETPAGESIZE 1
5063_ACEOF
5064
5065fi
5066done
5067
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
5069$as_echo_n "checking for working mmap... " >&6; }
5070if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
5071  $as_echo_n "(cached) " >&6
5072else
5073  if test "$cross_compiling" = yes; then :
5074  ac_cv_func_mmap_fixed_mapped=no
5075else
5076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077/* end confdefs.h.  */
5078$ac_includes_default
5079/* malloc might have been renamed as rpl_malloc. */
5080#undef malloc
5081
5082/* Thanks to Mike Haertel and Jim Avera for this test.
5083   Here is a matrix of mmap possibilities:
5084	mmap private not fixed
5085	mmap private fixed at somewhere currently unmapped
5086	mmap private fixed at somewhere already mapped
5087	mmap shared not fixed
5088	mmap shared fixed at somewhere currently unmapped
5089	mmap shared fixed at somewhere already mapped
5090   For private mappings, we should verify that changes cannot be read()
5091   back from the file, nor mmap's back from the file at a different
5092   address.  (There have been systems where private was not correctly
5093   implemented like the infamous i386 svr4.0, and systems where the
5094   VM page cache was not coherent with the file system buffer cache
5095   like early versions of FreeBSD and possibly contemporary NetBSD.)
5096   For shared mappings, we should conversely verify that changes get
5097   propagated back to all the places they're supposed to be.
5098
5099   Grep wants private fixed already mapped.
5100   The main things grep needs to know about mmap are:
5101   * does it exist and is it safe to write into the mmap'd area
5102   * how to use it (BSD variants)  */
5103
5104#include <fcntl.h>
5105#include <sys/mman.h>
5106
5107#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5108char *malloc ();
5109#endif
5110
5111/* This mess was copied from the GNU getpagesize.h.  */
5112#ifndef HAVE_GETPAGESIZE
5113# ifdef _SC_PAGESIZE
5114#  define getpagesize() sysconf(_SC_PAGESIZE)
5115# else /* no _SC_PAGESIZE */
5116#  ifdef HAVE_SYS_PARAM_H
5117#   include <sys/param.h>
5118#   ifdef EXEC_PAGESIZE
5119#    define getpagesize() EXEC_PAGESIZE
5120#   else /* no EXEC_PAGESIZE */
5121#    ifdef NBPG
5122#     define getpagesize() NBPG * CLSIZE
5123#     ifndef CLSIZE
5124#      define CLSIZE 1
5125#     endif /* no CLSIZE */
5126#    else /* no NBPG */
5127#     ifdef NBPC
5128#      define getpagesize() NBPC
5129#     else /* no NBPC */
5130#      ifdef PAGESIZE
5131#       define getpagesize() PAGESIZE
5132#      endif /* PAGESIZE */
5133#     endif /* no NBPC */
5134#    endif /* no NBPG */
5135#   endif /* no EXEC_PAGESIZE */
5136#  else /* no HAVE_SYS_PARAM_H */
5137#   define getpagesize() 8192	/* punt totally */
5138#  endif /* no HAVE_SYS_PARAM_H */
5139# endif /* no _SC_PAGESIZE */
5140
5141#endif /* no HAVE_GETPAGESIZE */
5142
5143int
5144main ()
5145{
5146  char *data, *data2, *data3;
5147  const char *cdata2;
5148  int i, pagesize;
5149  int fd, fd2;
5150
5151  pagesize = getpagesize ();
5152
5153  /* First, make a file with some known garbage in it. */
5154  data = (char *) malloc (pagesize);
5155  if (!data)
5156    return 1;
5157  for (i = 0; i < pagesize; ++i)
5158    *(data + i) = rand ();
5159  umask (0);
5160  fd = creat ("conftest.mmap", 0600);
5161  if (fd < 0)
5162    return 2;
5163  if (write (fd, data, pagesize) != pagesize)
5164    return 3;
5165  close (fd);
5166
5167  /* Next, check that the tail of a page is zero-filled.  File must have
5168     non-zero length, otherwise we risk SIGBUS for entire page.  */
5169  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
5170  if (fd2 < 0)
5171    return 4;
5172  cdata2 = "";
5173  if (write (fd2, cdata2, 1) != 1)
5174    return 5;
5175  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
5176  if (data2 == MAP_FAILED)
5177    return 6;
5178  for (i = 0; i < pagesize; ++i)
5179    if (*(data2 + i))
5180      return 7;
5181  close (fd2);
5182  if (munmap (data2, pagesize))
5183    return 8;
5184
5185  /* Next, try to mmap the file at a fixed address which already has
5186     something else allocated at it.  If we can, also make sure that
5187     we see the same garbage.  */
5188  fd = open ("conftest.mmap", O_RDWR);
5189  if (fd < 0)
5190    return 9;
5191  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5192		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
5193    return 10;
5194  for (i = 0; i < pagesize; ++i)
5195    if (*(data + i) != *(data2 + i))
5196      return 11;
5197
5198  /* Finally, make sure that changes to the mapped area do not
5199     percolate back to the file as seen by read().  (This is a bug on
5200     some variants of i386 svr4.0.)  */
5201  for (i = 0; i < pagesize; ++i)
5202    *(data2 + i) = *(data2 + i) + 1;
5203  data3 = (char *) malloc (pagesize);
5204  if (!data3)
5205    return 12;
5206  if (read (fd, data3, pagesize) != pagesize)
5207    return 13;
5208  for (i = 0; i < pagesize; ++i)
5209    if (*(data + i) != *(data3 + i))
5210      return 14;
5211  close (fd);
5212  return 0;
5213}
5214_ACEOF
5215if ac_fn_c_try_run "$LINENO"; then :
5216  ac_cv_func_mmap_fixed_mapped=yes
5217else
5218  ac_cv_func_mmap_fixed_mapped=no
5219fi
5220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5221  conftest.$ac_objext conftest.beam conftest.$ac_ext
5222fi
5223
5224fi
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
5226$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5227if test $ac_cv_func_mmap_fixed_mapped = yes; then
5228
5229$as_echo "#define HAVE_MMAP 1" >>confdefs.h
5230
5231fi
5232rm -f conftest.mmap conftest.txt
5233
5234
5235    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
5236$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
5237if ${ac_cv_gnu_library_2_1+:} false; then :
5238  $as_echo_n "(cached) " >&6
5239else
5240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241/* end confdefs.h.  */
5242
5243#include <features.h>
5244#ifdef __GNU_LIBRARY__
5245 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5246  Lucky GNU user
5247 #endif
5248#endif
5249
5250_ACEOF
5251if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5252  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
5253  ac_cv_gnu_library_2_1=yes
5254else
5255  ac_cv_gnu_library_2_1=no
5256fi
5257rm -f conftest*
5258
5259
5260
5261fi
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
5263$as_echo "$ac_cv_gnu_library_2_1" >&6; }
5264
5265    GLIBC21="$ac_cv_gnu_library_2_1"
5266
5267
5268
5269
5270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
5271$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
5272if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
5273  $as_echo_n "(cached) " >&6
5274else
5275
5276      if test "$cross_compiling" = yes; then :
5277
5278          # Guess based on the CPU.
5279          case "$host_cpu" in
5280            alpha* | i3456786 | m68k | s390*)
5281              gt_cv_int_divbyzero_sigfpe="guessing yes";;
5282            *)
5283              gt_cv_int_divbyzero_sigfpe="guessing no";;
5284          esac
5285
5286else
5287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288/* end confdefs.h.  */
5289
5290#include <stdlib.h>
5291#include <signal.h>
5292
5293static void
5294#ifdef __cplusplus
5295sigfpe_handler (int sig)
5296#else
5297sigfpe_handler (sig) int sig;
5298#endif
5299{
5300  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
5301  exit (sig != SIGFPE);
5302}
5303
5304int x = 1;
5305int y = 0;
5306int z;
5307int nan;
5308
5309int main ()
5310{
5311  signal (SIGFPE, sigfpe_handler);
5312/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
5313#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5314  signal (SIGTRAP, sigfpe_handler);
5315#endif
5316/* Linux/SPARC yields signal SIGILL.  */
5317#if defined (__sparc__) && defined (__linux__)
5318  signal (SIGILL, sigfpe_handler);
5319#endif
5320
5321  z = x / y;
5322  nan = y / y;
5323  exit (1);
5324}
5325
5326_ACEOF
5327if ac_fn_c_try_run "$LINENO"; then :
5328  gt_cv_int_divbyzero_sigfpe=yes
5329else
5330  gt_cv_int_divbyzero_sigfpe=no
5331fi
5332rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5333  conftest.$ac_objext conftest.beam conftest.$ac_ext
5334fi
5335
5336
5337fi
5338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
5339$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
5340  case "$gt_cv_int_divbyzero_sigfpe" in
5341    *yes) value=1;;
5342    *) value=0;;
5343  esac
5344
5345cat >>confdefs.h <<_ACEOF
5346#define INTDIV0_RAISES_SIGFPE $value
5347_ACEOF
5348
5349
5350
5351  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
5352$as_echo_n "checking for inttypes.h... " >&6; }
5353if ${jm_ac_cv_header_inttypes_h+:} false; then :
5354  $as_echo_n "(cached) " >&6
5355else
5356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357/* end confdefs.h.  */
5358#include <sys/types.h>
5359#include <inttypes.h>
5360int
5361main ()
5362{
5363uintmax_t i = (uintmax_t) -1;
5364  ;
5365  return 0;
5366}
5367_ACEOF
5368if ac_fn_c_try_compile "$LINENO"; then :
5369  jm_ac_cv_header_inttypes_h=yes
5370else
5371  jm_ac_cv_header_inttypes_h=no
5372fi
5373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374fi
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
5376$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
5377  if test $jm_ac_cv_header_inttypes_h = yes; then
5378
5379cat >>confdefs.h <<_ACEOF
5380#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5381_ACEOF
5382
5383  fi
5384
5385
5386  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
5387$as_echo_n "checking for stdint.h... " >&6; }
5388if ${jm_ac_cv_header_stdint_h+:} false; then :
5389  $as_echo_n "(cached) " >&6
5390else
5391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h.  */
5393#include <sys/types.h>
5394#include <stdint.h>
5395int
5396main ()
5397{
5398uintmax_t i = (uintmax_t) -1;
5399  ;
5400  return 0;
5401}
5402_ACEOF
5403if ac_fn_c_try_compile "$LINENO"; then :
5404  jm_ac_cv_header_stdint_h=yes
5405else
5406  jm_ac_cv_header_stdint_h=no
5407fi
5408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409fi
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
5411$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
5412  if test $jm_ac_cv_header_stdint_h = yes; then
5413
5414cat >>confdefs.h <<_ACEOF
5415#define HAVE_STDINT_H_WITH_UINTMAX 1
5416_ACEOF
5417
5418  fi
5419
5420
5421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
5422$as_echo_n "checking for unsigned long long... " >&6; }
5423if ${ac_cv_type_unsigned_long_long+:} false; then :
5424  $as_echo_n "(cached) " >&6
5425else
5426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427/* end confdefs.h.  */
5428unsigned long long ull = 1; int i = 63;
5429int
5430main ()
5431{
5432unsigned long long ullmax = (unsigned long long) -1;
5433     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5434  ;
5435  return 0;
5436}
5437_ACEOF
5438if ac_fn_c_try_link "$LINENO"; then :
5439  ac_cv_type_unsigned_long_long=yes
5440else
5441  ac_cv_type_unsigned_long_long=no
5442fi
5443rm -f core conftest.err conftest.$ac_objext \
5444    conftest$ac_exeext conftest.$ac_ext
5445fi
5446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
5447$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
5448  if test $ac_cv_type_unsigned_long_long = yes; then
5449
5450$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
5451
5452  fi
5453
5454
5455
5456
5457  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
5458
5459    test $ac_cv_type_unsigned_long_long = yes \
5460      && ac_type='unsigned long long' \
5461      || ac_type='unsigned long'
5462
5463cat >>confdefs.h <<_ACEOF
5464#define uintmax_t $ac_type
5465_ACEOF
5466
5467  fi
5468
5469
5470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
5471$as_echo_n "checking for inttypes.h... " >&6; }
5472if ${gt_cv_header_inttypes_h+:} false; then :
5473  $as_echo_n "(cached) " >&6
5474else
5475
5476    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477/* end confdefs.h.  */
5478#include <sys/types.h>
5479#include <inttypes.h>
5480int
5481main ()
5482{
5483
5484  ;
5485  return 0;
5486}
5487_ACEOF
5488if ac_fn_c_try_compile "$LINENO"; then :
5489  gt_cv_header_inttypes_h=yes
5490else
5491  gt_cv_header_inttypes_h=no
5492fi
5493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494
5495fi
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
5497$as_echo "$gt_cv_header_inttypes_h" >&6; }
5498  if test $gt_cv_header_inttypes_h = yes; then
5499
5500cat >>confdefs.h <<_ACEOF
5501#define HAVE_INTTYPES_H 1
5502_ACEOF
5503
5504  fi
5505
5506
5507
5508  if test $gt_cv_header_inttypes_h = yes; then
5509    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
5510$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
5511if ${gt_cv_inttypes_pri_broken+:} false; then :
5512  $as_echo_n "(cached) " >&6
5513else
5514
5515        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516/* end confdefs.h.  */
5517#include <inttypes.h>
5518#ifdef PRId32
5519char *p = PRId32;
5520#endif
5521
5522int
5523main ()
5524{
5525
5526  ;
5527  return 0;
5528}
5529_ACEOF
5530if ac_fn_c_try_compile "$LINENO"; then :
5531  gt_cv_inttypes_pri_broken=no
5532else
5533  gt_cv_inttypes_pri_broken=yes
5534fi
5535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536
5537fi
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
5539$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
5540  fi
5541  if test "$gt_cv_inttypes_pri_broken" = yes; then
5542
5543cat >>confdefs.h <<_ACEOF
5544#define PRI_MACROS_BROKEN 1
5545_ACEOF
5546
5547  fi
5548
5549
5550      if test "X$prefix" = "XNONE"; then
5551    acl_final_prefix="$ac_default_prefix"
5552  else
5553    acl_final_prefix="$prefix"
5554  fi
5555  if test "X$exec_prefix" = "XNONE"; then
5556    acl_final_exec_prefix='${prefix}'
5557  else
5558    acl_final_exec_prefix="$exec_prefix"
5559  fi
5560  acl_save_prefix="$prefix"
5561  prefix="$acl_final_prefix"
5562  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5563  prefix="$acl_save_prefix"
5564
5565
5566# Check whether --with-gnu-ld was given.
5567if test "${with_gnu_ld+set}" = set; then :
5568  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5569else
5570  with_gnu_ld=no
5571fi
5572
5573ac_prog=ld
5574if test "$GCC" = yes; then
5575  # Check if gcc -print-prog-name=ld gives a path.
5576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5577$as_echo_n "checking for ld used by GCC... " >&6; }
5578  case $host in
5579  *-*-mingw*)
5580    # gcc leaves a trailing carriage return which upsets mingw
5581    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5582  *)
5583    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5584  esac
5585  case $ac_prog in
5586    # Accept absolute paths.
5587    [\\/]* | [A-Za-z]:[\\/]*)
5588      re_direlt='/[^/][^/]*/\.\./'
5589      # Canonicalize the path of ld
5590      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5591      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5592	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5593      done
5594      test -z "$LD" && LD="$ac_prog"
5595      ;;
5596  "")
5597    # If it fails, then pretend we aren't using GCC.
5598    ac_prog=ld
5599    ;;
5600  *)
5601    # If it is relative, then search for the first ld in PATH.
5602    with_gnu_ld=unknown
5603    ;;
5604  esac
5605elif test "$with_gnu_ld" = yes; then
5606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5607$as_echo_n "checking for GNU ld... " >&6; }
5608else
5609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5610$as_echo_n "checking for non-GNU ld... " >&6; }
5611fi
5612if ${acl_cv_path_LD+:} false; then :
5613  $as_echo_n "(cached) " >&6
5614else
5615  if test -z "$LD"; then
5616  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5617  for ac_dir in $PATH; do
5618    test -z "$ac_dir" && ac_dir=.
5619    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5620      acl_cv_path_LD="$ac_dir/$ac_prog"
5621      # Check to see if the program is GNU ld.  I'd rather use --version,
5622      # but apparently some GNU ld's only accept -v.
5623      # Break only if it was the GNU/non-GNU ld that we prefer.
5624      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5625	test "$with_gnu_ld" != no && break
5626      else
5627	test "$with_gnu_ld" != yes && break
5628      fi
5629    fi
5630  done
5631  IFS="$ac_save_ifs"
5632else
5633  acl_cv_path_LD="$LD" # Let the user override the test with a path.
5634fi
5635fi
5636
5637LD="$acl_cv_path_LD"
5638if test -n "$LD"; then
5639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5640$as_echo "$LD" >&6; }
5641else
5642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643$as_echo "no" >&6; }
5644fi
5645test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5647$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5648if ${acl_cv_prog_gnu_ld+:} false; then :
5649  $as_echo_n "(cached) " >&6
5650else
5651  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5652if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5653  acl_cv_prog_gnu_ld=yes
5654else
5655  acl_cv_prog_gnu_ld=no
5656fi
5657fi
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5659$as_echo "$acl_cv_prog_gnu_ld" >&6; }
5660with_gnu_ld=$acl_cv_prog_gnu_ld
5661
5662
5663
5664                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5665$as_echo_n "checking for shared library run path origin... " >&6; }
5666if ${acl_cv_rpath+:} false; then :
5667  $as_echo_n "(cached) " >&6
5668else
5669
5670    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5671    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5672    . ./conftest.sh
5673    rm -f ./conftest.sh
5674    acl_cv_rpath=done
5675
5676fi
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5678$as_echo "$acl_cv_rpath" >&6; }
5679  wl="$acl_cv_wl"
5680  libext="$acl_cv_libext"
5681  shlibext="$acl_cv_shlibext"
5682  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5683  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5684  hardcode_direct="$acl_cv_hardcode_direct"
5685  hardcode_minus_L="$acl_cv_hardcode_minus_L"
5686  sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
5687  sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
5688    # Check whether --enable-rpath was given.
5689if test "${enable_rpath+set}" = set; then :
5690  enableval=$enable_rpath; :
5691else
5692  enable_rpath=yes
5693fi
5694
5695
5696
5697
5698
5699
5700
5701
5702    use_additional=yes
5703
5704  acl_save_prefix="$prefix"
5705  prefix="$acl_final_prefix"
5706  acl_save_exec_prefix="$exec_prefix"
5707  exec_prefix="$acl_final_exec_prefix"
5708
5709    eval additional_includedir=\"$includedir\"
5710    eval additional_libdir=\"$libdir\"
5711
5712  exec_prefix="$acl_save_exec_prefix"
5713  prefix="$acl_save_prefix"
5714
5715
5716# Check whether --with-libiconv-prefix was given.
5717if test "${with_libiconv_prefix+set}" = set; then :
5718  withval=$with_libiconv_prefix;
5719    if test "X$withval" = "Xno"; then
5720      use_additional=no
5721    else
5722      if test "X$withval" = "X"; then
5723
5724  acl_save_prefix="$prefix"
5725  prefix="$acl_final_prefix"
5726  acl_save_exec_prefix="$exec_prefix"
5727  exec_prefix="$acl_final_exec_prefix"
5728
5729          eval additional_includedir=\"$includedir\"
5730          eval additional_libdir=\"$libdir\"
5731
5732  exec_prefix="$acl_save_exec_prefix"
5733  prefix="$acl_save_prefix"
5734
5735      else
5736        additional_includedir="$withval/include"
5737        additional_libdir="$withval/lib"
5738      fi
5739    fi
5740
5741fi
5742
5743      LIBICONV=
5744  LTLIBICONV=
5745  INCICONV=
5746  rpathdirs=
5747  ltrpathdirs=
5748  names_already_handled=
5749  names_next_round='iconv '
5750  while test -n "$names_next_round"; do
5751    names_this_round="$names_next_round"
5752    names_next_round=
5753    for name in $names_this_round; do
5754      already_handled=
5755      for n in $names_already_handled; do
5756        if test "$n" = "$name"; then
5757          already_handled=yes
5758          break
5759        fi
5760      done
5761      if test -z "$already_handled"; then
5762        names_already_handled="$names_already_handled $name"
5763                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5764        eval value=\"\$HAVE_LIB$uppername\"
5765        if test -n "$value"; then
5766          if test "$value" = yes; then
5767            eval value=\"\$LIB$uppername\"
5768            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5769            eval value=\"\$LTLIB$uppername\"
5770            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5771          else
5772                                    :
5773          fi
5774        else
5775                              found_dir=
5776          found_la=
5777          found_so=
5778          found_a=
5779          if test $use_additional = yes; then
5780            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5781              found_dir="$additional_libdir"
5782              found_so="$additional_libdir/lib$name.$shlibext"
5783              if test -f "$additional_libdir/lib$name.la"; then
5784                found_la="$additional_libdir/lib$name.la"
5785              fi
5786            else
5787              if test -f "$additional_libdir/lib$name.$libext"; then
5788                found_dir="$additional_libdir"
5789                found_a="$additional_libdir/lib$name.$libext"
5790                if test -f "$additional_libdir/lib$name.la"; then
5791                  found_la="$additional_libdir/lib$name.la"
5792                fi
5793              fi
5794            fi
5795          fi
5796          if test "X$found_dir" = "X"; then
5797            for x in $LDFLAGS $LTLIBICONV; do
5798
5799  acl_save_prefix="$prefix"
5800  prefix="$acl_final_prefix"
5801  acl_save_exec_prefix="$exec_prefix"
5802  exec_prefix="$acl_final_exec_prefix"
5803  eval x=\"$x\"
5804  exec_prefix="$acl_save_exec_prefix"
5805  prefix="$acl_save_prefix"
5806
5807              case "$x" in
5808                -L*)
5809                  dir=`echo "X$x" | sed -e 's/^X-L//'`
5810                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5811                    found_dir="$dir"
5812                    found_so="$dir/lib$name.$shlibext"
5813                    if test -f "$dir/lib$name.la"; then
5814                      found_la="$dir/lib$name.la"
5815                    fi
5816                  else
5817                    if test -f "$dir/lib$name.$libext"; then
5818                      found_dir="$dir"
5819                      found_a="$dir/lib$name.$libext"
5820                      if test -f "$dir/lib$name.la"; then
5821                        found_la="$dir/lib$name.la"
5822                      fi
5823                    fi
5824                  fi
5825                  ;;
5826              esac
5827              if test "X$found_dir" != "X"; then
5828                break
5829              fi
5830            done
5831          fi
5832          if test "X$found_dir" != "X"; then
5833                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5834            if test "X$found_so" != "X"; then
5835                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5836                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5837              else
5838                                                                                haveit=
5839                for x in $ltrpathdirs; do
5840                  if test "X$x" = "X$found_dir"; then
5841                    haveit=yes
5842                    break
5843                  fi
5844                done
5845                if test -z "$haveit"; then
5846                  ltrpathdirs="$ltrpathdirs $found_dir"
5847                fi
5848                                if test "$hardcode_direct" = yes; then
5849                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5850                else
5851                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5852                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5853                                                            haveit=
5854                    for x in $rpathdirs; do
5855                      if test "X$x" = "X$found_dir"; then
5856                        haveit=yes
5857                        break
5858                      fi
5859                    done
5860                    if test -z "$haveit"; then
5861                      rpathdirs="$rpathdirs $found_dir"
5862                    fi
5863                  else
5864                                                                                haveit=
5865                    for x in $LDFLAGS $LIBICONV; do
5866
5867  acl_save_prefix="$prefix"
5868  prefix="$acl_final_prefix"
5869  acl_save_exec_prefix="$exec_prefix"
5870  exec_prefix="$acl_final_exec_prefix"
5871  eval x=\"$x\"
5872  exec_prefix="$acl_save_exec_prefix"
5873  prefix="$acl_save_prefix"
5874
5875                      if test "X$x" = "X-L$found_dir"; then
5876                        haveit=yes
5877                        break
5878                      fi
5879                    done
5880                    if test -z "$haveit"; then
5881                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5882                    fi
5883                    if test "$hardcode_minus_L" != no; then
5884                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5885                    else
5886                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5887                    fi
5888                  fi
5889                fi
5890              fi
5891            else
5892              if test "X$found_a" != "X"; then
5893                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5894              else
5895                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5896              fi
5897            fi
5898                        additional_includedir=
5899            case "$found_dir" in
5900              */lib | */lib/)
5901                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5902                additional_includedir="$basedir/include"
5903                ;;
5904            esac
5905            if test "X$additional_includedir" != "X"; then
5906                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
5907                haveit=
5908                if test "X$additional_includedir" = "X/usr/local/include"; then
5909                  if test -n "$GCC"; then
5910                    case $host_os in
5911                      linux*) haveit=yes;;
5912                    esac
5913                  fi
5914                fi
5915                if test -z "$haveit"; then
5916                  for x in $CPPFLAGS $INCICONV; do
5917
5918  acl_save_prefix="$prefix"
5919  prefix="$acl_final_prefix"
5920  acl_save_exec_prefix="$exec_prefix"
5921  exec_prefix="$acl_final_exec_prefix"
5922  eval x=\"$x\"
5923  exec_prefix="$acl_save_exec_prefix"
5924  prefix="$acl_save_prefix"
5925
5926                    if test "X$x" = "X-I$additional_includedir"; then
5927                      haveit=yes
5928                      break
5929                    fi
5930                  done
5931                  if test -z "$haveit"; then
5932                    if test -d "$additional_includedir"; then
5933                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5934                    fi
5935                  fi
5936                fi
5937              fi
5938            fi
5939                        if test -n "$found_la"; then
5940                                                        save_libdir="$libdir"
5941              case "$found_la" in
5942                */* | *\\*) . "$found_la" ;;
5943                *) . "./$found_la" ;;
5944              esac
5945              libdir="$save_libdir"
5946                            for dep in $dependency_libs; do
5947                case "$dep" in
5948                  -L*)
5949                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5950                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
5951                      haveit=
5952                      if test "X$additional_libdir" = "X/usr/local/lib"; then
5953                        if test -n "$GCC"; then
5954                          case $host_os in
5955                            linux*) haveit=yes;;
5956                          esac
5957                        fi
5958                      fi
5959                      if test -z "$haveit"; then
5960                        haveit=
5961                        for x in $LDFLAGS $LIBICONV; do
5962
5963  acl_save_prefix="$prefix"
5964  prefix="$acl_final_prefix"
5965  acl_save_exec_prefix="$exec_prefix"
5966  exec_prefix="$acl_final_exec_prefix"
5967  eval x=\"$x\"
5968  exec_prefix="$acl_save_exec_prefix"
5969  prefix="$acl_save_prefix"
5970
5971                          if test "X$x" = "X-L$additional_libdir"; then
5972                            haveit=yes
5973                            break
5974                          fi
5975                        done
5976                        if test -z "$haveit"; then
5977                          if test -d "$additional_libdir"; then
5978                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5979                          fi
5980                        fi
5981                        haveit=
5982                        for x in $LDFLAGS $LTLIBICONV; do
5983
5984  acl_save_prefix="$prefix"
5985  prefix="$acl_final_prefix"
5986  acl_save_exec_prefix="$exec_prefix"
5987  exec_prefix="$acl_final_exec_prefix"
5988  eval x=\"$x\"
5989  exec_prefix="$acl_save_exec_prefix"
5990  prefix="$acl_save_prefix"
5991
5992                          if test "X$x" = "X-L$additional_libdir"; then
5993                            haveit=yes
5994                            break
5995                          fi
5996                        done
5997                        if test -z "$haveit"; then
5998                          if test -d "$additional_libdir"; then
5999                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6000                          fi
6001                        fi
6002                      fi
6003                    fi
6004                    ;;
6005                  -R*)
6006                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
6007                    if test "$enable_rpath" != no; then
6008                                                                  haveit=
6009                      for x in $rpathdirs; do
6010                        if test "X$x" = "X$dir"; then
6011                          haveit=yes
6012                          break
6013                        fi
6014                      done
6015                      if test -z "$haveit"; then
6016                        rpathdirs="$rpathdirs $dir"
6017                      fi
6018                                                                  haveit=
6019                      for x in $ltrpathdirs; do
6020                        if test "X$x" = "X$dir"; then
6021                          haveit=yes
6022                          break
6023                        fi
6024                      done
6025                      if test -z "$haveit"; then
6026                        ltrpathdirs="$ltrpathdirs $dir"
6027                      fi
6028                    fi
6029                    ;;
6030                  -l*)
6031                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6032                    ;;
6033                  *.la)
6034                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6035                    ;;
6036                  *)
6037                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6038                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6039                    ;;
6040                esac
6041              done
6042            fi
6043          else
6044                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6045            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6046          fi
6047        fi
6048      fi
6049    done
6050  done
6051  if test "X$rpathdirs" != "X"; then
6052    if test -n "$hardcode_libdir_separator"; then
6053                        alldirs=
6054      for found_dir in $rpathdirs; do
6055        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6056      done
6057            acl_save_libdir="$libdir"
6058      libdir="$alldirs"
6059      eval flag=\"$hardcode_libdir_flag_spec\"
6060      libdir="$acl_save_libdir"
6061      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6062    else
6063            for found_dir in $rpathdirs; do
6064        acl_save_libdir="$libdir"
6065        libdir="$found_dir"
6066        eval flag=\"$hardcode_libdir_flag_spec\"
6067        libdir="$acl_save_libdir"
6068        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6069      done
6070    fi
6071  fi
6072  if test "X$ltrpathdirs" != "X"; then
6073            for found_dir in $ltrpathdirs; do
6074      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6075    done
6076  fi
6077
6078
6079
6080
6081  for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
6082stdlib.h string.h unistd.h sys/param.h
6083do :
6084  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6085ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6086if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6087  cat >>confdefs.h <<_ACEOF
6088#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6089_ACEOF
6090
6091fi
6092
6093done
6094
6095  for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
6096geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
6097strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
6098do :
6099  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6100ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6101if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6102  cat >>confdefs.h <<_ACEOF
6103#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6104_ACEOF
6105
6106fi
6107done
6108
6109
6110
6111
6112
6113
6114
6115          am_save_CPPFLAGS="$CPPFLAGS"
6116
6117  for element in $INCICONV; do
6118    haveit=
6119    for x in $CPPFLAGS; do
6120
6121  acl_save_prefix="$prefix"
6122  prefix="$acl_final_prefix"
6123  acl_save_exec_prefix="$exec_prefix"
6124  exec_prefix="$acl_final_exec_prefix"
6125  eval x=\"$x\"
6126  exec_prefix="$acl_save_exec_prefix"
6127  prefix="$acl_save_prefix"
6128
6129      if test "X$x" = "X$element"; then
6130        haveit=yes
6131        break
6132      fi
6133    done
6134    if test -z "$haveit"; then
6135      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6136    fi
6137  done
6138
6139
6140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6141$as_echo_n "checking for iconv... " >&6; }
6142if ${am_cv_func_iconv+:} false; then :
6143  $as_echo_n "(cached) " >&6
6144else
6145
6146    am_cv_func_iconv="no, consider installing GNU libiconv"
6147    am_cv_lib_iconv=no
6148    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149/* end confdefs.h.  */
6150#include <stdlib.h>
6151#include <iconv.h>
6152int
6153main ()
6154{
6155iconv_t cd = iconv_open("","");
6156       iconv(cd,NULL,NULL,NULL,NULL);
6157       iconv_close(cd);
6158  ;
6159  return 0;
6160}
6161_ACEOF
6162if ac_fn_c_try_link "$LINENO"; then :
6163  am_cv_func_iconv=yes
6164fi
6165rm -f core conftest.err conftest.$ac_objext \
6166    conftest$ac_exeext conftest.$ac_ext
6167    if test "$am_cv_func_iconv" != yes; then
6168      am_save_LIBS="$LIBS"
6169      LIBS="$LIBS $LIBICONV"
6170      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171/* end confdefs.h.  */
6172#include <stdlib.h>
6173#include <iconv.h>
6174int
6175main ()
6176{
6177iconv_t cd = iconv_open("","");
6178         iconv(cd,NULL,NULL,NULL,NULL);
6179         iconv_close(cd);
6180  ;
6181  return 0;
6182}
6183_ACEOF
6184if ac_fn_c_try_link "$LINENO"; then :
6185  am_cv_lib_iconv=yes
6186        am_cv_func_iconv=yes
6187fi
6188rm -f core conftest.err conftest.$ac_objext \
6189    conftest$ac_exeext conftest.$ac_ext
6190      LIBS="$am_save_LIBS"
6191    fi
6192
6193fi
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6195$as_echo "$am_cv_func_iconv" >&6; }
6196  if test "$am_cv_func_iconv" = yes; then
6197
6198$as_echo "#define HAVE_ICONV 1" >>confdefs.h
6199
6200  fi
6201  if test "$am_cv_lib_iconv" = yes; then
6202    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6203$as_echo_n "checking how to link with libiconv... " >&6; }
6204    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6205$as_echo "$LIBICONV" >&6; }
6206  else
6207            CPPFLAGS="$am_save_CPPFLAGS"
6208    LIBICONV=
6209    LTLIBICONV=
6210  fi
6211
6212
6213
6214  if test "$am_cv_func_iconv" = yes; then
6215    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6216$as_echo_n "checking for iconv declaration... " >&6; }
6217    if ${am_cv_proto_iconv+:} false; then :
6218  $as_echo_n "(cached) " >&6
6219else
6220
6221      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222/* end confdefs.h.  */
6223
6224#include <stdlib.h>
6225#include <iconv.h>
6226extern
6227#ifdef __cplusplus
6228"C"
6229#endif
6230#if defined(__STDC__) || defined(__cplusplus)
6231size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6232#else
6233size_t iconv();
6234#endif
6235
6236int
6237main ()
6238{
6239
6240  ;
6241  return 0;
6242}
6243_ACEOF
6244if ac_fn_c_try_compile "$LINENO"; then :
6245  am_cv_proto_iconv_arg1=""
6246else
6247  am_cv_proto_iconv_arg1="const"
6248fi
6249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6250      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
6251fi
6252
6253    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6254    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6255         }$am_cv_proto_iconv" >&5
6256$as_echo "${ac_t:-
6257         }$am_cv_proto_iconv" >&6; }
6258
6259cat >>confdefs.h <<_ACEOF
6260#define ICONV_CONST $am_cv_proto_iconv_arg1
6261_ACEOF
6262
6263  fi
6264
6265
6266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6267$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6268if ${am_cv_langinfo_codeset+:} false; then :
6269  $as_echo_n "(cached) " >&6
6270else
6271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272/* end confdefs.h.  */
6273#include <langinfo.h>
6274int
6275main ()
6276{
6277char* cs = nl_langinfo(CODESET);
6278  ;
6279  return 0;
6280}
6281_ACEOF
6282if ac_fn_c_try_link "$LINENO"; then :
6283  am_cv_langinfo_codeset=yes
6284else
6285  am_cv_langinfo_codeset=no
6286fi
6287rm -f core conftest.err conftest.$ac_objext \
6288    conftest$ac_exeext conftest.$ac_ext
6289
6290fi
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6292$as_echo "$am_cv_langinfo_codeset" >&6; }
6293  if test $am_cv_langinfo_codeset = yes; then
6294
6295$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6296
6297  fi
6298
6299  if test $ac_cv_header_locale_h = yes; then
6300
6301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
6302$as_echo_n "checking for LC_MESSAGES... " >&6; }
6303if ${am_cv_val_LC_MESSAGES+:} false; then :
6304  $as_echo_n "(cached) " >&6
6305else
6306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307/* end confdefs.h.  */
6308#include <locale.h>
6309int
6310main ()
6311{
6312return LC_MESSAGES
6313  ;
6314  return 0;
6315}
6316_ACEOF
6317if ac_fn_c_try_link "$LINENO"; then :
6318  am_cv_val_LC_MESSAGES=yes
6319else
6320  am_cv_val_LC_MESSAGES=no
6321fi
6322rm -f core conftest.err conftest.$ac_objext \
6323    conftest$ac_exeext conftest.$ac_ext
6324fi
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
6326$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
6327  if test $am_cv_val_LC_MESSAGES = yes; then
6328
6329$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
6330
6331  fi
6332
6333  fi
6334
6335                      for ac_prog in bison
6336do
6337  # Extract the first word of "$ac_prog", so it can be a program name with args.
6338set dummy $ac_prog; ac_word=$2
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340$as_echo_n "checking for $ac_word... " >&6; }
6341if ${ac_cv_prog_INTLBISON+:} false; then :
6342  $as_echo_n "(cached) " >&6
6343else
6344  if test -n "$INTLBISON"; then
6345  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
6346else
6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348for as_dir in $PATH
6349do
6350  IFS=$as_save_IFS
6351  test -z "$as_dir" && as_dir=.
6352    for ac_exec_ext in '' $ac_executable_extensions; do
6353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354    ac_cv_prog_INTLBISON="$ac_prog"
6355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356    break 2
6357  fi
6358done
6359  done
6360IFS=$as_save_IFS
6361
6362fi
6363fi
6364INTLBISON=$ac_cv_prog_INTLBISON
6365if test -n "$INTLBISON"; then
6366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
6367$as_echo "$INTLBISON" >&6; }
6368else
6369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370$as_echo "no" >&6; }
6371fi
6372
6373
6374  test -n "$INTLBISON" && break
6375done
6376
6377  if test -z "$INTLBISON"; then
6378    ac_verc_fail=yes
6379  else
6380        { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
6381$as_echo_n "checking version of bison... " >&6; }
6382    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6383    case $ac_prog_version in
6384      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
6385      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
6386         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
6387      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
6388    esac
6389    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
6390$as_echo "$ac_prog_version" >&6; }
6391  fi
6392  if test $ac_verc_fail = yes; then
6393    INTLBISON=:
6394  fi
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6411$as_echo_n "checking whether NLS is requested... " >&6; }
6412    # Check whether --enable-nls was given.
6413if test "${enable_nls+set}" = set; then :
6414  enableval=$enable_nls; USE_NLS=$enableval
6415else
6416  USE_NLS=yes
6417fi
6418
6419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6420$as_echo "$USE_NLS" >&6; }
6421
6422
6423
6424    BUILD_INCLUDED_LIBINTL=no
6425    USE_INCLUDED_LIBINTL=no
6426
6427  LIBINTL=
6428  LTLIBINTL=
6429  POSUB=
6430
6431    if test "$USE_NLS" = "yes"; then
6432    gt_use_preinstalled_gnugettext=no
6433
6434      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
6435$as_echo_n "checking whether included gettext is requested... " >&6; }
6436
6437# Check whether --with-included-gettext was given.
6438if test "${with_included_gettext+set}" = set; then :
6439  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
6440else
6441  nls_cv_force_use_gnu_gettext=no
6442fi
6443
6444      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
6445$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
6446
6447      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6448      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6449
6450
6451
6452
6453
6454
6455        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6456$as_echo_n "checking for GNU gettext in libc... " >&6; }
6457if ${gt_cv_func_gnugettext2_libc+:} false; then :
6458  $as_echo_n "(cached) " >&6
6459else
6460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461/* end confdefs.h.  */
6462#include <libintl.h>
6463extern int _nl_msg_cat_cntr;
6464extern int *_nl_domain_bindings;
6465int
6466main ()
6467{
6468bindtextdomain ("", "");
6469return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
6470  ;
6471  return 0;
6472}
6473_ACEOF
6474if ac_fn_c_try_link "$LINENO"; then :
6475  gt_cv_func_gnugettext2_libc=yes
6476else
6477  gt_cv_func_gnugettext2_libc=no
6478fi
6479rm -f core conftest.err conftest.$ac_objext \
6480    conftest$ac_exeext conftest.$ac_ext
6481fi
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
6483$as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
6484
6485        if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
6486
6487
6488
6489    use_additional=yes
6490
6491  acl_save_prefix="$prefix"
6492  prefix="$acl_final_prefix"
6493  acl_save_exec_prefix="$exec_prefix"
6494  exec_prefix="$acl_final_exec_prefix"
6495
6496    eval additional_includedir=\"$includedir\"
6497    eval additional_libdir=\"$libdir\"
6498
6499  exec_prefix="$acl_save_exec_prefix"
6500  prefix="$acl_save_prefix"
6501
6502
6503# Check whether --with-libintl-prefix was given.
6504if test "${with_libintl_prefix+set}" = set; then :
6505  withval=$with_libintl_prefix;
6506    if test "X$withval" = "Xno"; then
6507      use_additional=no
6508    else
6509      if test "X$withval" = "X"; then
6510
6511  acl_save_prefix="$prefix"
6512  prefix="$acl_final_prefix"
6513  acl_save_exec_prefix="$exec_prefix"
6514  exec_prefix="$acl_final_exec_prefix"
6515
6516          eval additional_includedir=\"$includedir\"
6517          eval additional_libdir=\"$libdir\"
6518
6519  exec_prefix="$acl_save_exec_prefix"
6520  prefix="$acl_save_prefix"
6521
6522      else
6523        additional_includedir="$withval/include"
6524        additional_libdir="$withval/lib"
6525      fi
6526    fi
6527
6528fi
6529
6530      LIBINTL=
6531  LTLIBINTL=
6532  INCINTL=
6533  rpathdirs=
6534  ltrpathdirs=
6535  names_already_handled=
6536  names_next_round='intl '
6537  while test -n "$names_next_round"; do
6538    names_this_round="$names_next_round"
6539    names_next_round=
6540    for name in $names_this_round; do
6541      already_handled=
6542      for n in $names_already_handled; do
6543        if test "$n" = "$name"; then
6544          already_handled=yes
6545          break
6546        fi
6547      done
6548      if test -z "$already_handled"; then
6549        names_already_handled="$names_already_handled $name"
6550                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6551        eval value=\"\$HAVE_LIB$uppername\"
6552        if test -n "$value"; then
6553          if test "$value" = yes; then
6554            eval value=\"\$LIB$uppername\"
6555            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6556            eval value=\"\$LTLIB$uppername\"
6557            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6558          else
6559                                    :
6560          fi
6561        else
6562                              found_dir=
6563          found_la=
6564          found_so=
6565          found_a=
6566          if test $use_additional = yes; then
6567            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6568              found_dir="$additional_libdir"
6569              found_so="$additional_libdir/lib$name.$shlibext"
6570              if test -f "$additional_libdir/lib$name.la"; then
6571                found_la="$additional_libdir/lib$name.la"
6572              fi
6573            else
6574              if test -f "$additional_libdir/lib$name.$libext"; then
6575                found_dir="$additional_libdir"
6576                found_a="$additional_libdir/lib$name.$libext"
6577                if test -f "$additional_libdir/lib$name.la"; then
6578                  found_la="$additional_libdir/lib$name.la"
6579                fi
6580              fi
6581            fi
6582          fi
6583          if test "X$found_dir" = "X"; then
6584            for x in $LDFLAGS $LTLIBINTL; do
6585
6586  acl_save_prefix="$prefix"
6587  prefix="$acl_final_prefix"
6588  acl_save_exec_prefix="$exec_prefix"
6589  exec_prefix="$acl_final_exec_prefix"
6590  eval x=\"$x\"
6591  exec_prefix="$acl_save_exec_prefix"
6592  prefix="$acl_save_prefix"
6593
6594              case "$x" in
6595                -L*)
6596                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6597                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6598                    found_dir="$dir"
6599                    found_so="$dir/lib$name.$shlibext"
6600                    if test -f "$dir/lib$name.la"; then
6601                      found_la="$dir/lib$name.la"
6602                    fi
6603                  else
6604                    if test -f "$dir/lib$name.$libext"; then
6605                      found_dir="$dir"
6606                      found_a="$dir/lib$name.$libext"
6607                      if test -f "$dir/lib$name.la"; then
6608                        found_la="$dir/lib$name.la"
6609                      fi
6610                    fi
6611                  fi
6612                  ;;
6613              esac
6614              if test "X$found_dir" != "X"; then
6615                break
6616              fi
6617            done
6618          fi
6619          if test "X$found_dir" != "X"; then
6620                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6621            if test "X$found_so" != "X"; then
6622                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6623                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6624              else
6625                                                                                haveit=
6626                for x in $ltrpathdirs; do
6627                  if test "X$x" = "X$found_dir"; then
6628                    haveit=yes
6629                    break
6630                  fi
6631                done
6632                if test -z "$haveit"; then
6633                  ltrpathdirs="$ltrpathdirs $found_dir"
6634                fi
6635                                if test "$hardcode_direct" = yes; then
6636                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6637                else
6638                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6639                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6640                                                            haveit=
6641                    for x in $rpathdirs; do
6642                      if test "X$x" = "X$found_dir"; then
6643                        haveit=yes
6644                        break
6645                      fi
6646                    done
6647                    if test -z "$haveit"; then
6648                      rpathdirs="$rpathdirs $found_dir"
6649                    fi
6650                  else
6651                                                                                haveit=
6652                    for x in $LDFLAGS $LIBINTL; do
6653
6654  acl_save_prefix="$prefix"
6655  prefix="$acl_final_prefix"
6656  acl_save_exec_prefix="$exec_prefix"
6657  exec_prefix="$acl_final_exec_prefix"
6658  eval x=\"$x\"
6659  exec_prefix="$acl_save_exec_prefix"
6660  prefix="$acl_save_prefix"
6661
6662                      if test "X$x" = "X-L$found_dir"; then
6663                        haveit=yes
6664                        break
6665                      fi
6666                    done
6667                    if test -z "$haveit"; then
6668                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6669                    fi
6670                    if test "$hardcode_minus_L" != no; then
6671                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6672                    else
6673                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6674                    fi
6675                  fi
6676                fi
6677              fi
6678            else
6679              if test "X$found_a" != "X"; then
6680                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6681              else
6682                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6683              fi
6684            fi
6685                        additional_includedir=
6686            case "$found_dir" in
6687              */lib | */lib/)
6688                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6689                additional_includedir="$basedir/include"
6690                ;;
6691            esac
6692            if test "X$additional_includedir" != "X"; then
6693                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
6694                haveit=
6695                if test "X$additional_includedir" = "X/usr/local/include"; then
6696                  if test -n "$GCC"; then
6697                    case $host_os in
6698                      linux*) haveit=yes;;
6699                    esac
6700                  fi
6701                fi
6702                if test -z "$haveit"; then
6703                  for x in $CPPFLAGS $INCINTL; do
6704
6705  acl_save_prefix="$prefix"
6706  prefix="$acl_final_prefix"
6707  acl_save_exec_prefix="$exec_prefix"
6708  exec_prefix="$acl_final_exec_prefix"
6709  eval x=\"$x\"
6710  exec_prefix="$acl_save_exec_prefix"
6711  prefix="$acl_save_prefix"
6712
6713                    if test "X$x" = "X-I$additional_includedir"; then
6714                      haveit=yes
6715                      break
6716                    fi
6717                  done
6718                  if test -z "$haveit"; then
6719                    if test -d "$additional_includedir"; then
6720                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6721                    fi
6722                  fi
6723                fi
6724              fi
6725            fi
6726                        if test -n "$found_la"; then
6727                                                        save_libdir="$libdir"
6728              case "$found_la" in
6729                */* | *\\*) . "$found_la" ;;
6730                *) . "./$found_la" ;;
6731              esac
6732              libdir="$save_libdir"
6733                            for dep in $dependency_libs; do
6734                case "$dep" in
6735                  -L*)
6736                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6737                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
6738                      haveit=
6739                      if test "X$additional_libdir" = "X/usr/local/lib"; then
6740                        if test -n "$GCC"; then
6741                          case $host_os in
6742                            linux*) haveit=yes;;
6743                          esac
6744                        fi
6745                      fi
6746                      if test -z "$haveit"; then
6747                        haveit=
6748                        for x in $LDFLAGS $LIBINTL; do
6749
6750  acl_save_prefix="$prefix"
6751  prefix="$acl_final_prefix"
6752  acl_save_exec_prefix="$exec_prefix"
6753  exec_prefix="$acl_final_exec_prefix"
6754  eval x=\"$x\"
6755  exec_prefix="$acl_save_exec_prefix"
6756  prefix="$acl_save_prefix"
6757
6758                          if test "X$x" = "X-L$additional_libdir"; then
6759                            haveit=yes
6760                            break
6761                          fi
6762                        done
6763                        if test -z "$haveit"; then
6764                          if test -d "$additional_libdir"; then
6765                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6766                          fi
6767                        fi
6768                        haveit=
6769                        for x in $LDFLAGS $LTLIBINTL; do
6770
6771  acl_save_prefix="$prefix"
6772  prefix="$acl_final_prefix"
6773  acl_save_exec_prefix="$exec_prefix"
6774  exec_prefix="$acl_final_exec_prefix"
6775  eval x=\"$x\"
6776  exec_prefix="$acl_save_exec_prefix"
6777  prefix="$acl_save_prefix"
6778
6779                          if test "X$x" = "X-L$additional_libdir"; then
6780                            haveit=yes
6781                            break
6782                          fi
6783                        done
6784                        if test -z "$haveit"; then
6785                          if test -d "$additional_libdir"; then
6786                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6787                          fi
6788                        fi
6789                      fi
6790                    fi
6791                    ;;
6792                  -R*)
6793                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
6794                    if test "$enable_rpath" != no; then
6795                                                                  haveit=
6796                      for x in $rpathdirs; do
6797                        if test "X$x" = "X$dir"; then
6798                          haveit=yes
6799                          break
6800                        fi
6801                      done
6802                      if test -z "$haveit"; then
6803                        rpathdirs="$rpathdirs $dir"
6804                      fi
6805                                                                  haveit=
6806                      for x in $ltrpathdirs; do
6807                        if test "X$x" = "X$dir"; then
6808                          haveit=yes
6809                          break
6810                        fi
6811                      done
6812                      if test -z "$haveit"; then
6813                        ltrpathdirs="$ltrpathdirs $dir"
6814                      fi
6815                    fi
6816                    ;;
6817                  -l*)
6818                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6819                    ;;
6820                  *.la)
6821                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6822                    ;;
6823                  *)
6824                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6825                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6826                    ;;
6827                esac
6828              done
6829            fi
6830          else
6831                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6832            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6833          fi
6834        fi
6835      fi
6836    done
6837  done
6838  if test "X$rpathdirs" != "X"; then
6839    if test -n "$hardcode_libdir_separator"; then
6840                        alldirs=
6841      for found_dir in $rpathdirs; do
6842        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6843      done
6844            acl_save_libdir="$libdir"
6845      libdir="$alldirs"
6846      eval flag=\"$hardcode_libdir_flag_spec\"
6847      libdir="$acl_save_libdir"
6848      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6849    else
6850            for found_dir in $rpathdirs; do
6851        acl_save_libdir="$libdir"
6852        libdir="$found_dir"
6853        eval flag=\"$hardcode_libdir_flag_spec\"
6854        libdir="$acl_save_libdir"
6855        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6856      done
6857    fi
6858  fi
6859  if test "X$ltrpathdirs" != "X"; then
6860            for found_dir in $ltrpathdirs; do
6861      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6862    done
6863  fi
6864
6865          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6866$as_echo_n "checking for GNU gettext in libintl... " >&6; }
6867if ${gt_cv_func_gnugettext2_libintl+:} false; then :
6868  $as_echo_n "(cached) " >&6
6869else
6870  gt_save_CPPFLAGS="$CPPFLAGS"
6871            CPPFLAGS="$CPPFLAGS $INCINTL"
6872            gt_save_LIBS="$LIBS"
6873            LIBS="$LIBS $LIBINTL"
6874                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875/* end confdefs.h.  */
6876#include <libintl.h>
6877extern int _nl_msg_cat_cntr;
6878extern
6879#ifdef __cplusplus
6880"C"
6881#endif
6882const char *_nl_expand_alias ();
6883int
6884main ()
6885{
6886bindtextdomain ("", "");
6887return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6888  ;
6889  return 0;
6890}
6891_ACEOF
6892if ac_fn_c_try_link "$LINENO"; then :
6893  gt_cv_func_gnugettext2_libintl=yes
6894else
6895  gt_cv_func_gnugettext2_libintl=no
6896fi
6897rm -f core conftest.err conftest.$ac_objext \
6898    conftest$ac_exeext conftest.$ac_ext
6899                        if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
6900              LIBS="$LIBS $LIBICONV"
6901              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902/* end confdefs.h.  */
6903#include <libintl.h>
6904extern int _nl_msg_cat_cntr;
6905extern
6906#ifdef __cplusplus
6907"C"
6908#endif
6909const char *_nl_expand_alias ();
6910int
6911main ()
6912{
6913bindtextdomain ("", "");
6914return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6915  ;
6916  return 0;
6917}
6918_ACEOF
6919if ac_fn_c_try_link "$LINENO"; then :
6920  LIBINTL="$LIBINTL $LIBICONV"
6921                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6922                gt_cv_func_gnugettext2_libintl=yes
6923
6924fi
6925rm -f core conftest.err conftest.$ac_objext \
6926    conftest$ac_exeext conftest.$ac_ext
6927            fi
6928            CPPFLAGS="$gt_save_CPPFLAGS"
6929            LIBS="$gt_save_LIBS"
6930fi
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
6932$as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
6933        fi
6934
6935                                        if test "$gt_cv_func_gnugettext2_libc" = "yes" \
6936           || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
6937                && test "$PACKAGE" != gettext; }; then
6938          gt_use_preinstalled_gnugettext=yes
6939        else
6940                    LIBINTL=
6941          LTLIBINTL=
6942          INCINTL=
6943        fi
6944
6945
6946        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
6947                              nls_cv_use_gnu_gettext=yes
6948        fi
6949      fi
6950
6951      if test "$nls_cv_use_gnu_gettext" = "yes"; then
6952                INTLOBJS="\$(GETTOBJS)"
6953        BUILD_INCLUDED_LIBINTL=yes
6954        USE_INCLUDED_LIBINTL=yes
6955        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
6956        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
6957        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6958      fi
6959
6960      if test "$gt_use_preinstalled_gnugettext" = "yes" \
6961         || test "$nls_cv_use_gnu_gettext" = "yes"; then
6962                CATOBJEXT=.gmo
6963      fi
6964
6965
6966    if test "$gt_use_preinstalled_gnugettext" = "yes" \
6967       || test "$nls_cv_use_gnu_gettext" = "yes"; then
6968
6969$as_echo "#define ENABLE_NLS 1" >>confdefs.h
6970
6971    else
6972      USE_NLS=no
6973    fi
6974  fi
6975
6976  if test "$USE_NLS" = "yes"; then
6977
6978    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6979      if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
6980        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6981$as_echo_n "checking how to link with libintl... " >&6; }
6982        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6983$as_echo "$LIBINTL" >&6; }
6984
6985  for element in $INCINTL; do
6986    haveit=
6987    for x in $CPPFLAGS; do
6988
6989  acl_save_prefix="$prefix"
6990  prefix="$acl_final_prefix"
6991  acl_save_exec_prefix="$exec_prefix"
6992  exec_prefix="$acl_final_exec_prefix"
6993  eval x=\"$x\"
6994  exec_prefix="$acl_save_exec_prefix"
6995  prefix="$acl_save_prefix"
6996
6997      if test "X$x" = "X$element"; then
6998        haveit=yes
6999        break
7000      fi
7001    done
7002    if test -z "$haveit"; then
7003      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7004    fi
7005  done
7006
7007      fi
7008
7009
7010$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7011
7012
7013$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7014
7015    fi
7016
7017        POSUB=po
7018  fi
7019
7020
7021            if test "$PACKAGE" = gettext; then
7022      BUILD_INCLUDED_LIBINTL=yes
7023    fi
7024
7025
7026
7027
7028
7029
7030        nls_cv_header_intl=
7031    nls_cv_header_libgt=
7032
7033        DATADIRNAME=share
7034
7035
7036        INSTOBJEXT=.mo
7037
7038
7039        GENCAT=gencat
7040
7041
7042        INTL_LIBTOOL_SUFFIX_PREFIX=
7043
7044
7045
7046    INTLLIBS="$LIBINTL"
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059          am_save_CPPFLAGS="$CPPFLAGS"
7060
7061  for element in $INCICONV; do
7062    haveit=
7063    for x in $CPPFLAGS; do
7064
7065  acl_save_prefix="$prefix"
7066  prefix="$acl_final_prefix"
7067  acl_save_exec_prefix="$exec_prefix"
7068  exec_prefix="$acl_final_exec_prefix"
7069  eval x=\"$x\"
7070  exec_prefix="$acl_save_exec_prefix"
7071  prefix="$acl_save_prefix"
7072
7073      if test "X$x" = "X$element"; then
7074        haveit=yes
7075        break
7076      fi
7077    done
7078    if test -z "$haveit"; then
7079      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7080    fi
7081  done
7082
7083
7084  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7085$as_echo_n "checking for iconv... " >&6; }
7086if ${am_cv_func_iconv+:} false; then :
7087  $as_echo_n "(cached) " >&6
7088else
7089
7090    am_cv_func_iconv="no, consider installing GNU libiconv"
7091    am_cv_lib_iconv=no
7092    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093/* end confdefs.h.  */
7094#include <stdlib.h>
7095#include <iconv.h>
7096int
7097main ()
7098{
7099iconv_t cd = iconv_open("","");
7100       iconv(cd,NULL,NULL,NULL,NULL);
7101       iconv_close(cd);
7102  ;
7103  return 0;
7104}
7105_ACEOF
7106if ac_fn_c_try_link "$LINENO"; then :
7107  am_cv_func_iconv=yes
7108fi
7109rm -f core conftest.err conftest.$ac_objext \
7110    conftest$ac_exeext conftest.$ac_ext
7111    if test "$am_cv_func_iconv" != yes; then
7112      am_save_LIBS="$LIBS"
7113      LIBS="$LIBS $LIBICONV"
7114      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115/* end confdefs.h.  */
7116#include <stdlib.h>
7117#include <iconv.h>
7118int
7119main ()
7120{
7121iconv_t cd = iconv_open("","");
7122         iconv(cd,NULL,NULL,NULL,NULL);
7123         iconv_close(cd);
7124  ;
7125  return 0;
7126}
7127_ACEOF
7128if ac_fn_c_try_link "$LINENO"; then :
7129  am_cv_lib_iconv=yes
7130        am_cv_func_iconv=yes
7131fi
7132rm -f core conftest.err conftest.$ac_objext \
7133    conftest$ac_exeext conftest.$ac_ext
7134      LIBS="$am_save_LIBS"
7135    fi
7136
7137fi
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7139$as_echo "$am_cv_func_iconv" >&6; }
7140  if test "$am_cv_func_iconv" = yes; then
7141
7142$as_echo "#define HAVE_ICONV 1" >>confdefs.h
7143
7144  fi
7145  if test "$am_cv_lib_iconv" = yes; then
7146    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7147$as_echo_n "checking how to link with libiconv... " >&6; }
7148    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7149$as_echo "$LIBICONV" >&6; }
7150  else
7151            CPPFLAGS="$am_save_CPPFLAGS"
7152    LIBICONV=
7153    LTLIBICONV=
7154  fi
7155
7156
7157
7158  if test "$am_cv_func_iconv" = yes; then
7159    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7160$as_echo_n "checking for iconv declaration... " >&6; }
7161    if ${am_cv_proto_iconv+:} false; then :
7162  $as_echo_n "(cached) " >&6
7163else
7164
7165      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166/* end confdefs.h.  */
7167
7168#include <stdlib.h>
7169#include <iconv.h>
7170extern
7171#ifdef __cplusplus
7172"C"
7173#endif
7174#if defined(__STDC__) || defined(__cplusplus)
7175size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7176#else
7177size_t iconv();
7178#endif
7179
7180int
7181main ()
7182{
7183
7184  ;
7185  return 0;
7186}
7187_ACEOF
7188if ac_fn_c_try_compile "$LINENO"; then :
7189  am_cv_proto_iconv_arg1=""
7190else
7191  am_cv_proto_iconv_arg1="const"
7192fi
7193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7195fi
7196
7197    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7198    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7199         }$am_cv_proto_iconv" >&5
7200$as_echo "${ac_t:-
7201         }$am_cv_proto_iconv" >&6; }
7202
7203cat >>confdefs.h <<_ACEOF
7204#define ICONV_CONST $am_cv_proto_iconv_arg1
7205_ACEOF
7206
7207  fi
7208
7209
7210
7211if test "${ac_cv_c_compiler_gnu}" = "yes"; then
7212  # -ansi breaks compile of liflines/askprogram.c [pere 2000-12-31]
7213  for flag in \
7214        -W \
7215        -Wall \
7216        -Wcast-align \
7217        -Wmissing-declarations \
7218        -Wmissing-prototypes \
7219        -Wreturn-type \
7220        -Wstrict-prototypes \
7221        -pedantic
7222  do
7223    case "$CFLAGS" in
7224"$flag" | "$flag "* | *" $flag" | *" $flag "* )
7225  :
7226  ;;
7227*)
7228   CFLAGS="$CFLAGS $flag"
7229  ;;
7230esac
7231
7232  done
7233
7234    CFLAGS="${CFLAGS} -g"
7235fi
7236
7237# OS-Specific Fixups
7238# Cygwin - fixes linker problems
7239# Darwin - will pick up Fink-installed headers and libraries
7240case $host in
7241  *pc-cygwin*)
7242    CFLAGS="${CFLAGS} -DBROKEN_LINKER"
7243    ;;
7244  *apple-darwin*)
7245    CPPFLAGS="${CPPFLAGS} -I/sw/include";
7246    LDFLAGS="${LDFLAGS} -L/sw/lib"
7247    ;;
7248esac
7249
7250
7251# Shall we build the docs?
7252
7253# Check whether --with-docs was given.
7254if test "${with_docs+set}" = set; then :
7255  withval=$with_docs; build_docs=$withval
7256else
7257  build_docs=no
7258fi
7259
7260
7261if test "$build_docs" = "yes"
7262then
7263    echo "Looking for xmlto"
7264    # Extract the first word of "xmlto", so it can be a program name with args.
7265set dummy xmlto; ac_word=$2
7266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7267$as_echo_n "checking for $ac_word... " >&6; }
7268if ${ac_cv_path_TOOL_XMLTO+:} false; then :
7269  $as_echo_n "(cached) " >&6
7270else
7271  case $TOOL_XMLTO in
7272  [\\/]* | ?:[\\/]*)
7273  ac_cv_path_TOOL_XMLTO="$TOOL_XMLTO" # Let the user override the test with a path.
7274  ;;
7275  *)
7276  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277for as_dir in $PATH
7278do
7279  IFS=$as_save_IFS
7280  test -z "$as_dir" && as_dir=.
7281    for ac_exec_ext in '' $ac_executable_extensions; do
7282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283    ac_cv_path_TOOL_XMLTO="$as_dir/$ac_word$ac_exec_ext"
7284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285    break 2
7286  fi
7287done
7288  done
7289IFS=$as_save_IFS
7290
7291  test -z "$ac_cv_path_TOOL_XMLTO" && ac_cv_path_TOOL_XMLTO="FAIL"
7292  ;;
7293esac
7294fi
7295TOOL_XMLTO=$ac_cv_path_TOOL_XMLTO
7296if test -n "$TOOL_XMLTO"; then
7297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOL_XMLTO" >&5
7298$as_echo "$TOOL_XMLTO" >&6; }
7299else
7300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301$as_echo "no" >&6; }
7302fi
7303
7304
7305    if test "$TOOL_XMLTO" = "FAIL"; then
7306        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ************************************************************************ " >&5
7307$as_echo "************************************************************************ " >&6; }
7308        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ******** Cannot find xmlto to build docs.  Will not build docs. ******** " >&5
7309$as_echo "******** Cannot find xmlto to build docs.  Will not build docs. ******** " >&6; }
7310        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ************************************************************************ " >&5
7311$as_echo "************************************************************************ " >&6; }
7312        build_docs=no
7313    fi
7314    # Extract the first word of "dblatex", so it can be a program name with args.
7315set dummy dblatex; ac_word=$2
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317$as_echo_n "checking for $ac_word... " >&6; }
7318if ${ac_cv_path_TOOL_DBLATEX+:} false; then :
7319  $as_echo_n "(cached) " >&6
7320else
7321  case $TOOL_DBLATEX in
7322  [\\/]* | ?:[\\/]*)
7323  ac_cv_path_TOOL_DBLATEX="$TOOL_DBLATEX" # Let the user override the test with a path.
7324  ;;
7325  *)
7326  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327for as_dir in $PATH
7328do
7329  IFS=$as_save_IFS
7330  test -z "$as_dir" && as_dir=.
7331    for ac_exec_ext in '' $ac_executable_extensions; do
7332  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333    ac_cv_path_TOOL_DBLATEX="$as_dir/$ac_word$ac_exec_ext"
7334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335    break 2
7336  fi
7337done
7338  done
7339IFS=$as_save_IFS
7340
7341  test -z "$ac_cv_path_TOOL_DBLATEX" && ac_cv_path_TOOL_DBLATEX="FAIL"
7342  ;;
7343esac
7344fi
7345TOOL_DBLATEX=$ac_cv_path_TOOL_DBLATEX
7346if test -n "$TOOL_DBLATEX"; then
7347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOL_DBLATEX" >&5
7348$as_echo "$TOOL_DBLATEX" >&6; }
7349else
7350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351$as_echo "no" >&6; }
7352fi
7353
7354
7355    if test "$TOOL_DBLATEX" = "FAIL"; then
7356        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ************************************************************************ " >&5
7357$as_echo "************************************************************************ " >&6; }
7358        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ******* Cannot find dblatex to build docs.  Will not build docs. ******* " >&5
7359$as_echo "******* Cannot find dblatex to build docs.  Will not build docs. ******* " >&6; }
7360        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ************************************************************************ " >&5
7361$as_echo "************************************************************************ " >&6; }
7362        build_docs=no
7363    fi
7364fi
7365
7366 if test "$build_docs" = "yes"; then
7367  BUILD_DOCS_TRUE=
7368  BUILD_DOCS_FALSE='#'
7369else
7370  BUILD_DOCS_TRUE='#'
7371  BUILD_DOCS_FALSE=
7372fi
7373
7374
7375
7376# Compile with profiling, to find bottlenecks
7377
7378# Check whether --with-profiling was given.
7379if test "${with_profiling+set}" = set; then :
7380  withval=$with_profiling; # Does it work for other compilers then GCC? [pere 2000-12-30]
7381   if test "${ac_cv_c_compiler_gnu}" = "yes"; then
7382      CFLAGS="${CFLAGS} -pg -a"
7383      LDFLAGS="${LDFLAGS} -pg -a"
7384
7385      # Make sure 'config.h' is changed if profiling is turned on, to
7386      # trigger recompile for every source file.
7387
7388$as_echo "#define PROFILING 1" >>confdefs.h
7389
7390   else
7391      echo "Do not know how to perform profiling using this compiler!"
7392   fi
7393
7394
7395fi
7396
7397
7398
7399echo Looking for header files
7400for ac_header in getopt.h dirent.h pwd.h locale.h windows.h
7401do :
7402  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7403ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7404if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7405  cat >>confdefs.h <<_ACEOF
7406#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7407_ACEOF
7408
7409fi
7410
7411done
7412
7413for ac_header in wchar.h wctype.h
7414do :
7415  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7416ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7417if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7418  cat >>confdefs.h <<_ACEOF
7419#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7420_ACEOF
7421
7422fi
7423
7424done
7425
7426for ac_header in math.h
7427do :
7428  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7429ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7430if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7431  cat >>confdefs.h <<_ACEOF
7432#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7433_ACEOF
7434
7435fi
7436
7437done
7438
7439for ac_header in ncurses/curses.h ncursesw/curses.h
7440do :
7441  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7442ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7443if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7444  cat >>confdefs.h <<_ACEOF
7445#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7446_ACEOF
7447
7448fi
7449
7450done
7451
7452
7453echo Looking for library functions
7454for ac_func in _vsnprintf heapwalk _heapwalk getpwuid setlocale
7455do :
7456  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7457ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7458if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7459  cat >>confdefs.h <<_ACEOF
7460#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7461_ACEOF
7462
7463fi
7464done
7465
7466for ac_func in wcscoll towlower towupper iswspace iswalpha
7467do :
7468  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7469ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7470if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7471  cat >>confdefs.h <<_ACEOF
7472#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7473_ACEOF
7474
7475fi
7476done
7477
7478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin  in -lm" >&5
7479$as_echo_n "checking for sin  in -lm... " >&6; }
7480if ${ac_cv_lib_m_sin_+:} false; then :
7481  $as_echo_n "(cached) " >&6
7482else
7483  ac_check_lib_save_LIBS=$LIBS
7484LIBS="-lm  $LIBS"
7485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486/* end confdefs.h.  */
7487
7488/* Override any GCC internal prototype to avoid an error.
7489   Use char because int might match the return type of a GCC
7490   builtin and then its argument prototype would still apply.  */
7491#ifdef __cplusplus
7492extern "C"
7493#endif
7494char sin  ();
7495int
7496main ()
7497{
7498return sin  ();
7499  ;
7500  return 0;
7501}
7502_ACEOF
7503if ac_fn_c_try_link "$LINENO"; then :
7504  ac_cv_lib_m_sin_=yes
7505else
7506  ac_cv_lib_m_sin_=no
7507fi
7508rm -f core conftest.err conftest.$ac_objext \
7509    conftest$ac_exeext conftest.$ac_ext
7510LIBS=$ac_check_lib_save_LIBS
7511fi
7512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin_" >&5
7513$as_echo "$ac_cv_lib_m_sin_" >&6; }
7514if test "x$ac_cv_lib_m_sin_" = xyes; then :
7515  cat >>confdefs.h <<_ACEOF
7516#define HAVE_LIBM 1
7517_ACEOF
7518
7519  LIBS="-lm $LIBS"
7520
7521fi
7522
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos  in -lm" >&5
7524$as_echo_n "checking for cos  in -lm... " >&6; }
7525if ${ac_cv_lib_m_cos_+:} false; then :
7526  $as_echo_n "(cached) " >&6
7527else
7528  ac_check_lib_save_LIBS=$LIBS
7529LIBS="-lm  $LIBS"
7530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531/* end confdefs.h.  */
7532
7533/* Override any GCC internal prototype to avoid an error.
7534   Use char because int might match the return type of a GCC
7535   builtin and then its argument prototype would still apply.  */
7536#ifdef __cplusplus
7537extern "C"
7538#endif
7539char cos  ();
7540int
7541main ()
7542{
7543return cos  ();
7544  ;
7545  return 0;
7546}
7547_ACEOF
7548if ac_fn_c_try_link "$LINENO"; then :
7549  ac_cv_lib_m_cos_=yes
7550else
7551  ac_cv_lib_m_cos_=no
7552fi
7553rm -f core conftest.err conftest.$ac_objext \
7554    conftest$ac_exeext conftest.$ac_ext
7555LIBS=$ac_check_lib_save_LIBS
7556fi
7557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos_" >&5
7558$as_echo "$ac_cv_lib_m_cos_" >&6; }
7559if test "x$ac_cv_lib_m_cos_" = xyes; then :
7560  cat >>confdefs.h <<_ACEOF
7561#define HAVE_LIBM 1
7562_ACEOF
7563
7564  LIBS="-lm $LIBS"
7565
7566fi
7567
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan  in -lm" >&5
7569$as_echo_n "checking for tan  in -lm... " >&6; }
7570if ${ac_cv_lib_m_tan_+:} false; then :
7571  $as_echo_n "(cached) " >&6
7572else
7573  ac_check_lib_save_LIBS=$LIBS
7574LIBS="-lm  $LIBS"
7575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576/* end confdefs.h.  */
7577
7578/* Override any GCC internal prototype to avoid an error.
7579   Use char because int might match the return type of a GCC
7580   builtin and then its argument prototype would still apply.  */
7581#ifdef __cplusplus
7582extern "C"
7583#endif
7584char tan  ();
7585int
7586main ()
7587{
7588return tan  ();
7589  ;
7590  return 0;
7591}
7592_ACEOF
7593if ac_fn_c_try_link "$LINENO"; then :
7594  ac_cv_lib_m_tan_=yes
7595else
7596  ac_cv_lib_m_tan_=no
7597fi
7598rm -f core conftest.err conftest.$ac_objext \
7599    conftest$ac_exeext conftest.$ac_ext
7600LIBS=$ac_check_lib_save_LIBS
7601fi
7602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tan_" >&5
7603$as_echo "$ac_cv_lib_m_tan_" >&6; }
7604if test "x$ac_cv_lib_m_tan_" = xyes; then :
7605  cat >>confdefs.h <<_ACEOF
7606#define HAVE_LIBM 1
7607_ACEOF
7608
7609  LIBS="-lm $LIBS"
7610
7611fi
7612
7613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin  in -lm" >&5
7614$as_echo_n "checking for asin  in -lm... " >&6; }
7615if ${ac_cv_lib_m_asin_+:} false; then :
7616  $as_echo_n "(cached) " >&6
7617else
7618  ac_check_lib_save_LIBS=$LIBS
7619LIBS="-lm  $LIBS"
7620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621/* end confdefs.h.  */
7622
7623/* Override any GCC internal prototype to avoid an error.
7624   Use char because int might match the return type of a GCC
7625   builtin and then its argument prototype would still apply.  */
7626#ifdef __cplusplus
7627extern "C"
7628#endif
7629char asin  ();
7630int
7631main ()
7632{
7633return asin  ();
7634  ;
7635  return 0;
7636}
7637_ACEOF
7638if ac_fn_c_try_link "$LINENO"; then :
7639  ac_cv_lib_m_asin_=yes
7640else
7641  ac_cv_lib_m_asin_=no
7642fi
7643rm -f core conftest.err conftest.$ac_objext \
7644    conftest$ac_exeext conftest.$ac_ext
7645LIBS=$ac_check_lib_save_LIBS
7646fi
7647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin_" >&5
7648$as_echo "$ac_cv_lib_m_asin_" >&6; }
7649if test "x$ac_cv_lib_m_asin_" = xyes; then :
7650  cat >>confdefs.h <<_ACEOF
7651#define HAVE_LIBM 1
7652_ACEOF
7653
7654  LIBS="-lm $LIBS"
7655
7656fi
7657
7658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos  in -lm" >&5
7659$as_echo_n "checking for acos  in -lm... " >&6; }
7660if ${ac_cv_lib_m_acos_+:} false; then :
7661  $as_echo_n "(cached) " >&6
7662else
7663  ac_check_lib_save_LIBS=$LIBS
7664LIBS="-lm  $LIBS"
7665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666/* end confdefs.h.  */
7667
7668/* Override any GCC internal prototype to avoid an error.
7669   Use char because int might match the return type of a GCC
7670   builtin and then its argument prototype would still apply.  */
7671#ifdef __cplusplus
7672extern "C"
7673#endif
7674char acos  ();
7675int
7676main ()
7677{
7678return acos  ();
7679  ;
7680  return 0;
7681}
7682_ACEOF
7683if ac_fn_c_try_link "$LINENO"; then :
7684  ac_cv_lib_m_acos_=yes
7685else
7686  ac_cv_lib_m_acos_=no
7687fi
7688rm -f core conftest.err conftest.$ac_objext \
7689    conftest$ac_exeext conftest.$ac_ext
7690LIBS=$ac_check_lib_save_LIBS
7691fi
7692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acos_" >&5
7693$as_echo "$ac_cv_lib_m_acos_" >&6; }
7694if test "x$ac_cv_lib_m_acos_" = xyes; then :
7695  cat >>confdefs.h <<_ACEOF
7696#define HAVE_LIBM 1
7697_ACEOF
7698
7699  LIBS="-lm $LIBS"
7700
7701fi
7702
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan  in -lm" >&5
7704$as_echo_n "checking for atan  in -lm... " >&6; }
7705if ${ac_cv_lib_m_atan_+:} false; then :
7706  $as_echo_n "(cached) " >&6
7707else
7708  ac_check_lib_save_LIBS=$LIBS
7709LIBS="-lm  $LIBS"
7710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711/* end confdefs.h.  */
7712
7713/* Override any GCC internal prototype to avoid an error.
7714   Use char because int might match the return type of a GCC
7715   builtin and then its argument prototype would still apply.  */
7716#ifdef __cplusplus
7717extern "C"
7718#endif
7719char atan  ();
7720int
7721main ()
7722{
7723return atan  ();
7724  ;
7725  return 0;
7726}
7727_ACEOF
7728if ac_fn_c_try_link "$LINENO"; then :
7729  ac_cv_lib_m_atan_=yes
7730else
7731  ac_cv_lib_m_atan_=no
7732fi
7733rm -f core conftest.err conftest.$ac_objext \
7734    conftest$ac_exeext conftest.$ac_ext
7735LIBS=$ac_check_lib_save_LIBS
7736fi
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan_" >&5
7738$as_echo "$ac_cv_lib_m_atan_" >&6; }
7739if test "x$ac_cv_lib_m_atan_" = xyes; then :
7740  cat >>confdefs.h <<_ACEOF
7741#define HAVE_LIBM 1
7742_ACEOF
7743
7744  LIBS="-lm $LIBS"
7745
7746fi
7747
7748
7749echo Looking for curses-compatible screen output library
7750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm in -lncursesw" >&5
7751$as_echo_n "checking for tparm in -lncursesw... " >&6; }
7752if ${ac_cv_lib_ncursesw_tparm+:} false; then :
7753  $as_echo_n "(cached) " >&6
7754else
7755  ac_check_lib_save_LIBS=$LIBS
7756LIBS="-lncursesw  $LIBS"
7757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758/* end confdefs.h.  */
7759
7760/* Override any GCC internal prototype to avoid an error.
7761   Use char because int might match the return type of a GCC
7762   builtin and then its argument prototype would still apply.  */
7763#ifdef __cplusplus
7764extern "C"
7765#endif
7766char tparm ();
7767int
7768main ()
7769{
7770return tparm ();
7771  ;
7772  return 0;
7773}
7774_ACEOF
7775if ac_fn_c_try_link "$LINENO"; then :
7776  ac_cv_lib_ncursesw_tparm=yes
7777else
7778  ac_cv_lib_ncursesw_tparm=no
7779fi
7780rm -f core conftest.err conftest.$ac_objext \
7781    conftest$ac_exeext conftest.$ac_ext
7782LIBS=$ac_check_lib_save_LIBS
7783fi
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tparm" >&5
7785$as_echo "$ac_cv_lib_ncursesw_tparm" >&6; }
7786if test "x$ac_cv_lib_ncursesw_tparm" = xyes; then :
7787  cat >>confdefs.h <<_ACEOF
7788#define HAVE_LIBNCURSESW 1
7789_ACEOF
7790
7791  LIBS="-lncursesw $LIBS"
7792
7793fi
7794
7795if test "$ac_cv_lib_ncursesw_tparm" = "yes"; then
7796  echo Using ncursesw
7797else
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm in -lncurses" >&5
7799$as_echo_n "checking for tparm in -lncurses... " >&6; }
7800if ${ac_cv_lib_ncurses_tparm+:} false; then :
7801  $as_echo_n "(cached) " >&6
7802else
7803  ac_check_lib_save_LIBS=$LIBS
7804LIBS="-lncurses  $LIBS"
7805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806/* end confdefs.h.  */
7807
7808/* Override any GCC internal prototype to avoid an error.
7809   Use char because int might match the return type of a GCC
7810   builtin and then its argument prototype would still apply.  */
7811#ifdef __cplusplus
7812extern "C"
7813#endif
7814char tparm ();
7815int
7816main ()
7817{
7818return tparm ();
7819  ;
7820  return 0;
7821}
7822_ACEOF
7823if ac_fn_c_try_link "$LINENO"; then :
7824  ac_cv_lib_ncurses_tparm=yes
7825else
7826  ac_cv_lib_ncurses_tparm=no
7827fi
7828rm -f core conftest.err conftest.$ac_objext \
7829    conftest$ac_exeext conftest.$ac_ext
7830LIBS=$ac_check_lib_save_LIBS
7831fi
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tparm" >&5
7833$as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
7834if test "x$ac_cv_lib_ncurses_tparm" = xyes; then :
7835  cat >>confdefs.h <<_ACEOF
7836#define HAVE_LIBNCURSES 1
7837_ACEOF
7838
7839  LIBS="-lncurses $LIBS"
7840
7841fi
7842
7843if test "$ac_cv_lib_ncurses_tparm" = "yes"; then
7844  echo Using ncurses
7845else
7846  echo Looking for curses
7847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurses" >&5
7848$as_echo_n "checking for main in -lcurses... " >&6; }
7849if ${ac_cv_lib_curses_main+:} false; then :
7850  $as_echo_n "(cached) " >&6
7851else
7852  ac_check_lib_save_LIBS=$LIBS
7853LIBS="-lcurses  $LIBS"
7854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855/* end confdefs.h.  */
7856
7857
7858int
7859main ()
7860{
7861return main ();
7862  ;
7863  return 0;
7864}
7865_ACEOF
7866if ac_fn_c_try_link "$LINENO"; then :
7867  ac_cv_lib_curses_main=yes
7868else
7869  ac_cv_lib_curses_main=no
7870fi
7871rm -f core conftest.err conftest.$ac_objext \
7872    conftest$ac_exeext conftest.$ac_ext
7873LIBS=$ac_check_lib_save_LIBS
7874fi
7875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_main" >&5
7876$as_echo "$ac_cv_lib_curses_main" >&6; }
7877if test "x$ac_cv_lib_curses_main" = xyes; then :
7878  cat >>confdefs.h <<_ACEOF
7879#define HAVE_LIBCURSES 1
7880_ACEOF
7881
7882  LIBS="-lcurses $LIBS"
7883
7884fi
7885
7886  if test "$ac_cv_lib_curses_main" = "yes"; then
7887    echo Using curses
7888  else
7889    case $host in
7890      *mingw32*)
7891        echo "Didn't find an up-to-date ncurses or curses library!"
7892        echo "Using LifeLines version of curses for Windows."
7893      ;;
7894      *)
7895        echo "Didn't find an up-to-date ncurses or curses library!"
7896        echo "Link problems may result!"
7897      ;;
7898    esac
7899  fi
7900fi
7901fi
7902
7903ac_fn_c_check_func "$LINENO" "sleep" "ac_cv_func_sleep"
7904if test "x$ac_cv_func_sleep" = xyes; then :
7905  $as_echo "#define HAVE_SLEEP 1" >>confdefs.h
7906
7907else
7908  case " $LIBOBJS " in
7909  *" sleep.$ac_objext "* ) ;;
7910  *) LIBOBJS="$LIBOBJS sleep.$ac_objext"
7911 ;;
7912esac
7913
7914fi
7915
7916ac_fn_c_check_func "$LINENO" "scandir" "ac_cv_func_scandir"
7917if test "x$ac_cv_func_scandir" = xyes; then :
7918  $as_echo "#define HAVE_SCANDIR 1" >>confdefs.h
7919
7920else
7921  case " $LIBOBJS " in
7922  *" scandir.$ac_objext "* ) ;;
7923  *) LIBOBJS="$LIBOBJS scandir.$ac_objext"
7924 ;;
7925esac
7926
7927fi
7928
7929ac_fn_c_check_func "$LINENO" "alphasort" "ac_cv_func_alphasort"
7930if test "x$ac_cv_func_alphasort" = xyes; then :
7931  $as_echo "#define HAVE_ALPHASORT 1" >>confdefs.h
7932
7933else
7934  case " $LIBOBJS " in
7935  *" alphasort.$ac_objext "* ) ;;
7936  *) LIBOBJS="$LIBOBJS alphasort.$ac_objext"
7937 ;;
7938esac
7939
7940fi
7941
7942ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
7943if test "x$ac_cv_func_getopt" = xyes; then :
7944  $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
7945
7946else
7947  case " $LIBOBJS " in
7948  *" getopt.$ac_objext "* ) ;;
7949  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
7950 ;;
7951esac
7952
7953fi
7954
7955ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
7956if test "x$ac_cv_func_snprintf" = xyes; then :
7957  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
7958
7959else
7960  case " $LIBOBJS " in
7961  *" snprintf.$ac_objext "* ) ;;
7962  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7963 ;;
7964esac
7965
7966fi
7967
7968ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
7969if test "x$ac_cv_func_vsnprintf" = xyes; then :
7970  $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
7971
7972else
7973  case " $LIBOBJS " in
7974  *" vsnprintf.$ac_objext "* ) ;;
7975  *) LIBOBJS="$LIBOBJS vsnprintf.$ac_objext"
7976 ;;
7977esac
7978
7979fi
7980
7981
7982ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
7983if test "x$ac_cv_func_nl_langinfo" = xyes; then :
7984  $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7985
7986else
7987  case " $LIBOBJS " in
7988  *" nl_langinfo.$ac_objext "* ) ;;
7989  *) LIBOBJS="$LIBOBJS nl_langinfo.$ac_objext"
7990 ;;
7991esac
7992
7993fi
7994
7995ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
7996if test "x$ac_cv_func_wcslen" = xyes; then :
7997  $as_echo "#define HAVE_WCSLEN 1" >>confdefs.h
7998
7999else
8000  case " $LIBOBJS " in
8001  *" wcslen.$ac_objext "* ) ;;
8002  *) LIBOBJS="$LIBOBJS wcslen.$ac_objext"
8003 ;;
8004esac
8005
8006fi
8007
8008ac_fn_c_check_func "$LINENO" "has_key" "ac_cv_func_has_key"
8009if test "x$ac_cv_func_has_key" = xyes; then :
8010  $as_echo "#define HAVE_HAS_KEY 1" >>confdefs.h
8011
8012else
8013  case " $LIBOBJS " in
8014  *" has_key.$ac_objext "* ) ;;
8015  *) LIBOBJS="$LIBOBJS has_key.$ac_objext"
8016 ;;
8017esac
8018
8019fi
8020
8021
8022ac_fn_c_check_func "$LINENO" "_llnull" "ac_cv_func__llnull"
8023if test "x$ac_cv_func__llnull" = xyes; then :
8024  $as_echo "#define HAVE__LLNULL 1" >>confdefs.h
8025
8026else
8027  case " $LIBOBJS " in
8028  *" _llnull.$ac_objext "* ) ;;
8029  *) LIBOBJS="$LIBOBJS _llnull.$ac_objext"
8030 ;;
8031esac
8032
8033fi
8034
8035
8036
8037
8038echo Looking for header files and libraries to support heap walking
8039case $host in
8040  *apple-darwin*)
8041    HAVE_ALLOC_H=no
8042    HAVE_MALLOC_H=no
8043    HAVE_HEAPWALK=no
8044    HAVE__HEAPWALK=no
8045    ;;
8046  *)
8047    for ac_header in alloc.h malloc.h
8048do :
8049  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8050ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8051if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8052  cat >>confdefs.h <<_ACEOF
8053#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8054_ACEOF
8055
8056fi
8057
8058done
8059
8060    for ac_func in heapwalk _heapwalk
8061do :
8062  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8063ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8064if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8065  cat >>confdefs.h <<_ACEOF
8066#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8067_ACEOF
8068
8069fi
8070done
8071
8072    ;;
8073esac
8074
8075echo Looking for ngettext
8076saved_libs="$LIBS"
8077LIBS="$LIBS $LIBINTL"
8078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079/* end confdefs.h.  */
8080#include <libintl.h>
8081int
8082main ()
8083{
8084ngettext("","",0);
8085  ;
8086  return 0;
8087}
8088_ACEOF
8089if ac_fn_c_try_link "$LINENO"; then :
8090  ac_cv_func_ngettext=yes
8091else
8092  ac_cv_func_ngettext=no
8093fi
8094rm -f core conftest.err conftest.$ac_objext \
8095    conftest$ac_exeext conftest.$ac_ext
8096  if test "$ac_cv_func_ngettext" = yes; then
8097    echo "found ngettext"
8098
8099$as_echo "#define HAVE_NGETTEXT 1" >>confdefs.h
8100
8101  else
8102    echo "couldn't find ngettext"
8103    LIBS="$saved_libs"
8104  fi
8105
8106case $host_os in
8107  *windows*)
8108
8109$as_echo "#define LINES_CONFIG_FILE \"lines.cfg\"" >>confdefs.h
8110
8111    ;;
8112  *)
8113
8114$as_echo "#define LINES_CONFIG_FILE \".linesrc\"" >>confdefs.h
8115
8116    ;;
8117esac
8118
8119echo Looking for bind_textdomain_codeset
8120saved_libs="$LIBS"
8121LIBS="$LIBS $LIBINTL"
8122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123/* end confdefs.h.  */
8124#include <libintl.h>
8125int
8126main ()
8127{
8128bind_textdomain_codeset("","");
8129  ;
8130  return 0;
8131}
8132_ACEOF
8133if ac_fn_c_try_link "$LINENO"; then :
8134  ac_cv_func_bind_textdomain_codeset=yes
8135else
8136  ac_cv_func_bind_textdomain_codeset=no
8137fi
8138rm -f core conftest.err conftest.$ac_objext \
8139    conftest$ac_exeext conftest.$ac_ext
8140  if test "$ac_cv_func_bind_textdomain_codeset" = yes; then
8141    echo "found bind_textdomain_codeset"
8142
8143$as_echo "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h
8144
8145  else
8146    echo "couldn't find bind_textdomain_codeset"
8147    LIBS="$saved_libs"
8148  fi
8149
8150if test -z $datarootdir; then
8151  datarootdir=$datadir
8152fi
8153if test -z $localedir; then
8154  localedir=$datarootdir/locale
8155fi
8156
8157
8158ac_config_files="$ac_config_files Makefile src/Makefile src/arch/Makefile src/arch/mswin/Makefile src/btree/Makefile src/interp/Makefile src/gedlib/Makefile src/stdlib/Makefile src/liflines/Makefile src/tools/Makefile src/ui/Makefile src/hdrs/Makefile src/hdrs/mswin/Makefile docs/man/Makefile docs/manual/Makefile docs/editor/Makefile docs/Makefile reports/Makefile reports/desc-tex2/Makefile reports/novel/Makefile reports/pedtex/Makefile reports/ps-fan/Makefile reports/st/Makefile tt/Makefile build/Makefile intl/Makefile po/Makefile.in"
8159
8160cat >confcache <<\_ACEOF
8161# This file is a shell script that caches the results of configure
8162# tests run on this system so they can be shared between configure
8163# scripts and configure runs, see configure's option --config-cache.
8164# It is not useful on other systems.  If it contains results you don't
8165# want to keep, you may remove or edit it.
8166#
8167# config.status only pays attention to the cache file if you give it
8168# the --recheck option to rerun configure.
8169#
8170# `ac_cv_env_foo' variables (set or unset) will be overridden when
8171# loading this file, other *unset* `ac_cv_foo' will be assigned the
8172# following values.
8173
8174_ACEOF
8175
8176# The following way of writing the cache mishandles newlines in values,
8177# but we know of no workaround that is simple, portable, and efficient.
8178# So, we kill variables containing newlines.
8179# Ultrix sh set writes to stderr and can't be redirected directly,
8180# and sets the high bit in the cache file unless we assign to the vars.
8181(
8182  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8183    eval ac_val=\$$ac_var
8184    case $ac_val in #(
8185    *${as_nl}*)
8186      case $ac_var in #(
8187      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8188$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8189      esac
8190      case $ac_var in #(
8191      _ | IFS | as_nl) ;; #(
8192      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8193      *) { eval $ac_var=; unset $ac_var;} ;;
8194      esac ;;
8195    esac
8196  done
8197
8198  (set) 2>&1 |
8199    case $as_nl`(ac_space=' '; set) 2>&1` in #(
8200    *${as_nl}ac_space=\ *)
8201      # `set' does not quote correctly, so add quotes: double-quote
8202      # substitution turns \\\\ into \\, and sed turns \\ into \.
8203      sed -n \
8204	"s/'/'\\\\''/g;
8205	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8206      ;; #(
8207    *)
8208      # `set' quotes correctly as required by POSIX, so do not add quotes.
8209      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8210      ;;
8211    esac |
8212    sort
8213) |
8214  sed '
8215     /^ac_cv_env_/b end
8216     t clear
8217     :clear
8218     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8219     t end
8220     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8221     :end' >>confcache
8222if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8223  if test -w "$cache_file"; then
8224    if test "x$cache_file" != "x/dev/null"; then
8225      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8226$as_echo "$as_me: updating cache $cache_file" >&6;}
8227      if test ! -f "$cache_file" || test -h "$cache_file"; then
8228	cat confcache >"$cache_file"
8229      else
8230        case $cache_file in #(
8231        */* | ?:*)
8232	  mv -f confcache "$cache_file"$$ &&
8233	  mv -f "$cache_file"$$ "$cache_file" ;; #(
8234        *)
8235	  mv -f confcache "$cache_file" ;;
8236	esac
8237      fi
8238    fi
8239  else
8240    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8241$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8242  fi
8243fi
8244rm -f confcache
8245
8246test "x$prefix" = xNONE && prefix=$ac_default_prefix
8247# Let make expand exec_prefix.
8248test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8249
8250DEFS=-DHAVE_CONFIG_H
8251
8252ac_libobjs=
8253ac_ltlibobjs=
8254for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8255  # 1. Remove the extension, and $U if already installed.
8256  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8257  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8258  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8259  #    will be set to the directory where LIBOBJS objects are built.
8260  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8261  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8262done
8263LIBOBJS=$ac_libobjs
8264
8265LTLIBOBJS=$ac_ltlibobjs
8266
8267
8268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8269$as_echo_n "checking that generated files are newer than configure... " >&6; }
8270   if test -n "$am_sleep_pid"; then
8271     # Hide warnings about reused PIDs.
8272     wait $am_sleep_pid 2>/dev/null
8273   fi
8274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
8275$as_echo "done" >&6; }
8276 if test -n "$EXEEXT"; then
8277  am__EXEEXT_TRUE=
8278  am__EXEEXT_FALSE='#'
8279else
8280  am__EXEEXT_TRUE='#'
8281  am__EXEEXT_FALSE=
8282fi
8283
8284if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8285  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
8286Usually this means the macro was only invoked conditionally." "$LINENO" 5
8287fi
8288if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8289  as_fn_error $? "conditional \"AMDEP\" was never defined.
8290Usually this means the macro was only invoked conditionally." "$LINENO" 5
8291fi
8292if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8293  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8294Usually this means the macro was only invoked conditionally." "$LINENO" 5
8295fi
8296if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
8297  as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
8298Usually this means the macro was only invoked conditionally." "$LINENO" 5
8299fi
8300
8301: "${CONFIG_STATUS=./config.status}"
8302ac_write_fail=0
8303ac_clean_files_save=$ac_clean_files
8304ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8306$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8307as_write_fail=0
8308cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8309#! $SHELL
8310# Generated by $as_me.
8311# Run this file to recreate the current configuration.
8312# Compiler output produced by configure, useful for debugging
8313# configure, is in config.log if it exists.
8314
8315debug=false
8316ac_cs_recheck=false
8317ac_cs_silent=false
8318
8319SHELL=\${CONFIG_SHELL-$SHELL}
8320export SHELL
8321_ASEOF
8322cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8323## -------------------- ##
8324## M4sh Initialization. ##
8325## -------------------- ##
8326
8327# Be more Bourne compatible
8328DUALCASE=1; export DUALCASE # for MKS sh
8329if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8330  emulate sh
8331  NULLCMD=:
8332  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8333  # is contrary to our usage.  Disable this feature.
8334  alias -g '${1+"$@"}'='"$@"'
8335  setopt NO_GLOB_SUBST
8336else
8337  case `(set -o) 2>/dev/null` in #(
8338  *posix*) :
8339    set -o posix ;; #(
8340  *) :
8341     ;;
8342esac
8343fi
8344
8345
8346as_nl='
8347'
8348export as_nl
8349# Printing a long string crashes Solaris 7 /usr/bin/printf.
8350as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8351as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8352as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8353# Prefer a ksh shell builtin over an external printf program on Solaris,
8354# but without wasting forks for bash or zsh.
8355if test -z "$BASH_VERSION$ZSH_VERSION" \
8356    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8357  as_echo='print -r --'
8358  as_echo_n='print -rn --'
8359elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8360  as_echo='printf %s\n'
8361  as_echo_n='printf %s'
8362else
8363  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8364    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8365    as_echo_n='/usr/ucb/echo -n'
8366  else
8367    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8368    as_echo_n_body='eval
8369      arg=$1;
8370      case $arg in #(
8371      *"$as_nl"*)
8372	expr "X$arg" : "X\\(.*\\)$as_nl";
8373	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8374      esac;
8375      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8376    '
8377    export as_echo_n_body
8378    as_echo_n='sh -c $as_echo_n_body as_echo'
8379  fi
8380  export as_echo_body
8381  as_echo='sh -c $as_echo_body as_echo'
8382fi
8383
8384# The user is always right.
8385if test "${PATH_SEPARATOR+set}" != set; then
8386  PATH_SEPARATOR=:
8387  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8388    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8389      PATH_SEPARATOR=';'
8390  }
8391fi
8392
8393
8394# IFS
8395# We need space, tab and new line, in precisely that order.  Quoting is
8396# there to prevent editors from complaining about space-tab.
8397# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8398# splitting by setting IFS to empty value.)
8399IFS=" ""	$as_nl"
8400
8401# Find who we are.  Look in the path if we contain no directory separator.
8402as_myself=
8403case $0 in #((
8404  *[\\/]* ) as_myself=$0 ;;
8405  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406for as_dir in $PATH
8407do
8408  IFS=$as_save_IFS
8409  test -z "$as_dir" && as_dir=.
8410    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8411  done
8412IFS=$as_save_IFS
8413
8414     ;;
8415esac
8416# We did not find ourselves, most probably we were run as `sh COMMAND'
8417# in which case we are not to be found in the path.
8418if test "x$as_myself" = x; then
8419  as_myself=$0
8420fi
8421if test ! -f "$as_myself"; then
8422  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8423  exit 1
8424fi
8425
8426# Unset variables that we do not need and which cause bugs (e.g. in
8427# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
8428# suppresses any "Segmentation fault" message there.  '((' could
8429# trigger a bug in pdksh 5.2.14.
8430for as_var in BASH_ENV ENV MAIL MAILPATH
8431do eval test x\${$as_var+set} = xset \
8432  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8433done
8434PS1='$ '
8435PS2='> '
8436PS4='+ '
8437
8438# NLS nuisances.
8439LC_ALL=C
8440export LC_ALL
8441LANGUAGE=C
8442export LANGUAGE
8443
8444# CDPATH.
8445(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8446
8447
8448# as_fn_error STATUS ERROR [LINENO LOG_FD]
8449# ----------------------------------------
8450# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8451# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8452# script with STATUS, using 1 if that was 0.
8453as_fn_error ()
8454{
8455  as_status=$1; test $as_status -eq 0 && as_status=1
8456  if test "$4"; then
8457    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8458    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8459  fi
8460  $as_echo "$as_me: error: $2" >&2
8461  as_fn_exit $as_status
8462} # as_fn_error
8463
8464
8465# as_fn_set_status STATUS
8466# -----------------------
8467# Set $? to STATUS, without forking.
8468as_fn_set_status ()
8469{
8470  return $1
8471} # as_fn_set_status
8472
8473# as_fn_exit STATUS
8474# -----------------
8475# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8476as_fn_exit ()
8477{
8478  set +e
8479  as_fn_set_status $1
8480  exit $1
8481} # as_fn_exit
8482
8483# as_fn_unset VAR
8484# ---------------
8485# Portably unset VAR.
8486as_fn_unset ()
8487{
8488  { eval $1=; unset $1;}
8489}
8490as_unset=as_fn_unset
8491# as_fn_append VAR VALUE
8492# ----------------------
8493# Append the text in VALUE to the end of the definition contained in VAR. Take
8494# advantage of any shell optimizations that allow amortized linear growth over
8495# repeated appends, instead of the typical quadratic growth present in naive
8496# implementations.
8497if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8498  eval 'as_fn_append ()
8499  {
8500    eval $1+=\$2
8501  }'
8502else
8503  as_fn_append ()
8504  {
8505    eval $1=\$$1\$2
8506  }
8507fi # as_fn_append
8508
8509# as_fn_arith ARG...
8510# ------------------
8511# Perform arithmetic evaluation on the ARGs, and store the result in the
8512# global $as_val. Take advantage of shells that can avoid forks. The arguments
8513# must be portable across $(()) and expr.
8514if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8515  eval 'as_fn_arith ()
8516  {
8517    as_val=$(( $* ))
8518  }'
8519else
8520  as_fn_arith ()
8521  {
8522    as_val=`expr "$@" || test $? -eq 1`
8523  }
8524fi # as_fn_arith
8525
8526
8527if expr a : '\(a\)' >/dev/null 2>&1 &&
8528   test "X`expr 00001 : '.*\(...\)'`" = X001; then
8529  as_expr=expr
8530else
8531  as_expr=false
8532fi
8533
8534if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8535  as_basename=basename
8536else
8537  as_basename=false
8538fi
8539
8540if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8541  as_dirname=dirname
8542else
8543  as_dirname=false
8544fi
8545
8546as_me=`$as_basename -- "$0" ||
8547$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8548	 X"$0" : 'X\(//\)$' \| \
8549	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8550$as_echo X/"$0" |
8551    sed '/^.*\/\([^/][^/]*\)\/*$/{
8552	    s//\1/
8553	    q
8554	  }
8555	  /^X\/\(\/\/\)$/{
8556	    s//\1/
8557	    q
8558	  }
8559	  /^X\/\(\/\).*/{
8560	    s//\1/
8561	    q
8562	  }
8563	  s/.*/./; q'`
8564
8565# Avoid depending upon Character Ranges.
8566as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8567as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8568as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8569as_cr_digits='0123456789'
8570as_cr_alnum=$as_cr_Letters$as_cr_digits
8571
8572ECHO_C= ECHO_N= ECHO_T=
8573case `echo -n x` in #(((((
8574-n*)
8575  case `echo 'xy\c'` in
8576  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
8577  xy)  ECHO_C='\c';;
8578  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8579       ECHO_T='	';;
8580  esac;;
8581*)
8582  ECHO_N='-n';;
8583esac
8584
8585rm -f conf$$ conf$$.exe conf$$.file
8586if test -d conf$$.dir; then
8587  rm -f conf$$.dir/conf$$.file
8588else
8589  rm -f conf$$.dir
8590  mkdir conf$$.dir 2>/dev/null
8591fi
8592if (echo >conf$$.file) 2>/dev/null; then
8593  if ln -s conf$$.file conf$$ 2>/dev/null; then
8594    as_ln_s='ln -s'
8595    # ... but there are two gotchas:
8596    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8597    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8598    # In both cases, we have to default to `cp -pR'.
8599    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8600      as_ln_s='cp -pR'
8601  elif ln conf$$.file conf$$ 2>/dev/null; then
8602    as_ln_s=ln
8603  else
8604    as_ln_s='cp -pR'
8605  fi
8606else
8607  as_ln_s='cp -pR'
8608fi
8609rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8610rmdir conf$$.dir 2>/dev/null
8611
8612
8613# as_fn_mkdir_p
8614# -------------
8615# Create "$as_dir" as a directory, including parents if necessary.
8616as_fn_mkdir_p ()
8617{
8618
8619  case $as_dir in #(
8620  -*) as_dir=./$as_dir;;
8621  esac
8622  test -d "$as_dir" || eval $as_mkdir_p || {
8623    as_dirs=
8624    while :; do
8625      case $as_dir in #(
8626      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8627      *) as_qdir=$as_dir;;
8628      esac
8629      as_dirs="'$as_qdir' $as_dirs"
8630      as_dir=`$as_dirname -- "$as_dir" ||
8631$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8632	 X"$as_dir" : 'X\(//\)[^/]' \| \
8633	 X"$as_dir" : 'X\(//\)$' \| \
8634	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8635$as_echo X"$as_dir" |
8636    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8637	    s//\1/
8638	    q
8639	  }
8640	  /^X\(\/\/\)[^/].*/{
8641	    s//\1/
8642	    q
8643	  }
8644	  /^X\(\/\/\)$/{
8645	    s//\1/
8646	    q
8647	  }
8648	  /^X\(\/\).*/{
8649	    s//\1/
8650	    q
8651	  }
8652	  s/.*/./; q'`
8653      test -d "$as_dir" && break
8654    done
8655    test -z "$as_dirs" || eval "mkdir $as_dirs"
8656  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8657
8658
8659} # as_fn_mkdir_p
8660if mkdir -p . 2>/dev/null; then
8661  as_mkdir_p='mkdir -p "$as_dir"'
8662else
8663  test -d ./-p && rmdir ./-p
8664  as_mkdir_p=false
8665fi
8666
8667
8668# as_fn_executable_p FILE
8669# -----------------------
8670# Test if FILE is an executable regular file.
8671as_fn_executable_p ()
8672{
8673  test -f "$1" && test -x "$1"
8674} # as_fn_executable_p
8675as_test_x='test -x'
8676as_executable_p=as_fn_executable_p
8677
8678# Sed expression to map a string onto a valid CPP name.
8679as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8680
8681# Sed expression to map a string onto a valid variable name.
8682as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8683
8684
8685exec 6>&1
8686## ----------------------------------- ##
8687## Main body of $CONFIG_STATUS script. ##
8688## ----------------------------------- ##
8689_ASEOF
8690test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8691
8692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8693# Save the log message, to keep $0 and so on meaningful, and to
8694# report actual input values of CONFIG_FILES etc. instead of their
8695# values after options handling.
8696ac_log="
8697This file was extended by lifelines $as_me 3.1.1, which was
8698generated by GNU Autoconf 2.69.  Invocation command line was
8699
8700  CONFIG_FILES    = $CONFIG_FILES
8701  CONFIG_HEADERS  = $CONFIG_HEADERS
8702  CONFIG_LINKS    = $CONFIG_LINKS
8703  CONFIG_COMMANDS = $CONFIG_COMMANDS
8704  $ $0 $@
8705
8706on `(hostname || uname -n) 2>/dev/null | sed 1q`
8707"
8708
8709_ACEOF
8710
8711case $ac_config_files in *"
8712"*) set x $ac_config_files; shift; ac_config_files=$*;;
8713esac
8714
8715case $ac_config_headers in *"
8716"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8717esac
8718
8719
8720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8721# Files that config.status was made for.
8722config_files="$ac_config_files"
8723config_headers="$ac_config_headers"
8724config_commands="$ac_config_commands"
8725
8726_ACEOF
8727
8728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8729ac_cs_usage="\
8730\`$as_me' instantiates files and other configuration actions
8731from templates according to the current configuration.  Unless the files
8732and actions are specified as TAGs, all are instantiated by default.
8733
8734Usage: $0 [OPTION]... [TAG]...
8735
8736  -h, --help       print this help, then exit
8737  -V, --version    print version number and configuration settings, then exit
8738      --config     print configuration, then exit
8739  -q, --quiet, --silent
8740                   do not print progress messages
8741  -d, --debug      don't remove temporary files
8742      --recheck    update $as_me by reconfiguring in the same conditions
8743      --file=FILE[:TEMPLATE]
8744                   instantiate the configuration file FILE
8745      --header=FILE[:TEMPLATE]
8746                   instantiate the configuration header FILE
8747
8748Configuration files:
8749$config_files
8750
8751Configuration headers:
8752$config_headers
8753
8754Configuration commands:
8755$config_commands
8756
8757Report bugs to the package provider."
8758
8759_ACEOF
8760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8761ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8762ac_cs_version="\\
8763lifelines config.status 3.1.1
8764configured by $0, generated by GNU Autoconf 2.69,
8765  with options \\"\$ac_cs_config\\"
8766
8767Copyright (C) 2012 Free Software Foundation, Inc.
8768This config.status script is free software; the Free Software Foundation
8769gives unlimited permission to copy, distribute and modify it."
8770
8771ac_pwd='$ac_pwd'
8772srcdir='$srcdir'
8773INSTALL='$INSTALL'
8774MKDIR_P='$MKDIR_P'
8775AWK='$AWK'
8776test -n "\$AWK" || AWK=awk
8777_ACEOF
8778
8779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8780# The default lists apply if the user does not specify any file.
8781ac_need_defaults=:
8782while test $# != 0
8783do
8784  case $1 in
8785  --*=?*)
8786    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8787    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8788    ac_shift=:
8789    ;;
8790  --*=)
8791    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8792    ac_optarg=
8793    ac_shift=:
8794    ;;
8795  *)
8796    ac_option=$1
8797    ac_optarg=$2
8798    ac_shift=shift
8799    ;;
8800  esac
8801
8802  case $ac_option in
8803  # Handling of the options.
8804  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8805    ac_cs_recheck=: ;;
8806  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8807    $as_echo "$ac_cs_version"; exit ;;
8808  --config | --confi | --conf | --con | --co | --c )
8809    $as_echo "$ac_cs_config"; exit ;;
8810  --debug | --debu | --deb | --de | --d | -d )
8811    debug=: ;;
8812  --file | --fil | --fi | --f )
8813    $ac_shift
8814    case $ac_optarg in
8815    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8816    '') as_fn_error $? "missing file argument" ;;
8817    esac
8818    as_fn_append CONFIG_FILES " '$ac_optarg'"
8819    ac_need_defaults=false;;
8820  --header | --heade | --head | --hea )
8821    $ac_shift
8822    case $ac_optarg in
8823    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8824    esac
8825    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8826    ac_need_defaults=false;;
8827  --he | --h)
8828    # Conflict between --help and --header
8829    as_fn_error $? "ambiguous option: \`$1'
8830Try \`$0 --help' for more information.";;
8831  --help | --hel | -h )
8832    $as_echo "$ac_cs_usage"; exit ;;
8833  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8834  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8835    ac_cs_silent=: ;;
8836
8837  # This is an error.
8838  -*) as_fn_error $? "unrecognized option: \`$1'
8839Try \`$0 --help' for more information." ;;
8840
8841  *) as_fn_append ac_config_targets " $1"
8842     ac_need_defaults=false ;;
8843
8844  esac
8845  shift
8846done
8847
8848ac_configure_extra_args=
8849
8850if $ac_cs_silent; then
8851  exec 6>/dev/null
8852  ac_configure_extra_args="$ac_configure_extra_args --silent"
8853fi
8854
8855_ACEOF
8856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8857if \$ac_cs_recheck; then
8858  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8859  shift
8860  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8861  CONFIG_SHELL='$SHELL'
8862  export CONFIG_SHELL
8863  exec "\$@"
8864fi
8865
8866_ACEOF
8867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8868exec 5>>config.log
8869{
8870  echo
8871  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8872## Running $as_me. ##
8873_ASBOX
8874  $as_echo "$ac_log"
8875} >&5
8876
8877_ACEOF
8878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8879#
8880# INIT-COMMANDS
8881#
8882AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8883# Capture the value of obsolete ALL_LINGUAS because we need it to compute
8884    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
8885    # from automake.
8886    eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
8887    # Capture the value of LINGUAS because we need it to compute CATALOGS.
8888    LINGUAS="${LINGUAS-%UNSET%}"
8889
8890
8891_ACEOF
8892
8893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8894
8895# Handling of arguments.
8896for ac_config_target in $ac_config_targets
8897do
8898  case $ac_config_target in
8899    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8900    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8901    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8902    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8903    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8904    "src/arch/Makefile") CONFIG_FILES="$CONFIG_FILES src/arch/Makefile" ;;
8905    "src/arch/mswin/Makefile") CONFIG_FILES="$CONFIG_FILES src/arch/mswin/Makefile" ;;
8906    "src/btree/Makefile") CONFIG_FILES="$CONFIG_FILES src/btree/Makefile" ;;
8907    "src/interp/Makefile") CONFIG_FILES="$CONFIG_FILES src/interp/Makefile" ;;
8908    "src/gedlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/gedlib/Makefile" ;;
8909    "src/stdlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/stdlib/Makefile" ;;
8910    "src/liflines/Makefile") CONFIG_FILES="$CONFIG_FILES src/liflines/Makefile" ;;
8911    "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
8912    "src/ui/Makefile") CONFIG_FILES="$CONFIG_FILES src/ui/Makefile" ;;
8913    "src/hdrs/Makefile") CONFIG_FILES="$CONFIG_FILES src/hdrs/Makefile" ;;
8914    "src/hdrs/mswin/Makefile") CONFIG_FILES="$CONFIG_FILES src/hdrs/mswin/Makefile" ;;
8915    "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
8916    "docs/manual/Makefile") CONFIG_FILES="$CONFIG_FILES docs/manual/Makefile" ;;
8917    "docs/editor/Makefile") CONFIG_FILES="$CONFIG_FILES docs/editor/Makefile" ;;
8918    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
8919    "reports/Makefile") CONFIG_FILES="$CONFIG_FILES reports/Makefile" ;;
8920    "reports/desc-tex2/Makefile") CONFIG_FILES="$CONFIG_FILES reports/desc-tex2/Makefile" ;;
8921    "reports/novel/Makefile") CONFIG_FILES="$CONFIG_FILES reports/novel/Makefile" ;;
8922    "reports/pedtex/Makefile") CONFIG_FILES="$CONFIG_FILES reports/pedtex/Makefile" ;;
8923    "reports/ps-fan/Makefile") CONFIG_FILES="$CONFIG_FILES reports/ps-fan/Makefile" ;;
8924    "reports/st/Makefile") CONFIG_FILES="$CONFIG_FILES reports/st/Makefile" ;;
8925    "tt/Makefile") CONFIG_FILES="$CONFIG_FILES tt/Makefile" ;;
8926    "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
8927    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
8928    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8929
8930  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8931  esac
8932done
8933
8934
8935# If the user did not use the arguments to specify the items to instantiate,
8936# then the envvar interface is used.  Set only those that are not.
8937# We use the long form for the default assignment because of an extremely
8938# bizarre bug on SunOS 4.1.3.
8939if $ac_need_defaults; then
8940  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8941  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8942  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8943fi
8944
8945# Have a temporary directory for convenience.  Make it in the build tree
8946# simply because there is no reason against having it here, and in addition,
8947# creating and moving files from /tmp can sometimes cause problems.
8948# Hook for its removal unless debugging.
8949# Note that there is a small window in which the directory will not be cleaned:
8950# after its creation but before its name has been assigned to `$tmp'.
8951$debug ||
8952{
8953  tmp= ac_tmp=
8954  trap 'exit_status=$?
8955  : "${ac_tmp:=$tmp}"
8956  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8957' 0
8958  trap 'as_fn_exit 1' 1 2 13 15
8959}
8960# Create a (secure) tmp directory for tmp files.
8961
8962{
8963  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8964  test -d "$tmp"
8965}  ||
8966{
8967  tmp=./conf$$-$RANDOM
8968  (umask 077 && mkdir "$tmp")
8969} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8970ac_tmp=$tmp
8971
8972# Set up the scripts for CONFIG_FILES section.
8973# No need to generate them if there are no CONFIG_FILES.
8974# This happens for instance with `./config.status config.h'.
8975if test -n "$CONFIG_FILES"; then
8976
8977
8978ac_cr=`echo X | tr X '\015'`
8979# On cygwin, bash can eat \r inside `` if the user requested igncr.
8980# But we know of no other shell where ac_cr would be empty at this
8981# point, so we can use a bashism as a fallback.
8982if test "x$ac_cr" = x; then
8983  eval ac_cr=\$\'\\r\'
8984fi
8985ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8986if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8987  ac_cs_awk_cr='\\r'
8988else
8989  ac_cs_awk_cr=$ac_cr
8990fi
8991
8992echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8993_ACEOF
8994
8995
8996{
8997  echo "cat >conf$$subs.awk <<_ACEOF" &&
8998  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8999  echo "_ACEOF"
9000} >conf$$subs.sh ||
9001  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9002ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9003ac_delim='%!_!# '
9004for ac_last_try in false false false false false :; do
9005  . ./conf$$subs.sh ||
9006    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9007
9008  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9009  if test $ac_delim_n = $ac_delim_num; then
9010    break
9011  elif $ac_last_try; then
9012    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9013  else
9014    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9015  fi
9016done
9017rm -f conf$$subs.sh
9018
9019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9020cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9021_ACEOF
9022sed -n '
9023h
9024s/^/S["/; s/!.*/"]=/
9025p
9026g
9027s/^[^!]*!//
9028:repl
9029t repl
9030s/'"$ac_delim"'$//
9031t delim
9032:nl
9033h
9034s/\(.\{148\}\)..*/\1/
9035t more1
9036s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9037p
9038n
9039b repl
9040:more1
9041s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9042p
9043g
9044s/.\{148\}//
9045t nl
9046:delim
9047h
9048s/\(.\{148\}\)..*/\1/
9049t more2
9050s/["\\]/\\&/g; s/^/"/; s/$/"/
9051p
9052b
9053:more2
9054s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9055p
9056g
9057s/.\{148\}//
9058t delim
9059' <conf$$subs.awk | sed '
9060/^[^""]/{
9061  N
9062  s/\n//
9063}
9064' >>$CONFIG_STATUS || ac_write_fail=1
9065rm -f conf$$subs.awk
9066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9067_ACAWK
9068cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9069  for (key in S) S_is_set[key] = 1
9070  FS = ""
9071
9072}
9073{
9074  line = $ 0
9075  nfields = split(line, field, "@")
9076  substed = 0
9077  len = length(field[1])
9078  for (i = 2; i < nfields; i++) {
9079    key = field[i]
9080    keylen = length(key)
9081    if (S_is_set[key]) {
9082      value = S[key]
9083      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9084      len += length(value) + length(field[++i])
9085      substed = 1
9086    } else
9087      len += 1 + keylen
9088  }
9089
9090  print line
9091}
9092
9093_ACAWK
9094_ACEOF
9095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9096if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9097  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9098else
9099  cat
9100fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9101  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9102_ACEOF
9103
9104# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9105# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9106# trailing colons and then remove the whole line if VPATH becomes empty
9107# (actually we leave an empty line to preserve line numbers).
9108if test "x$srcdir" = x.; then
9109  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
9110h
9111s///
9112s/^/:/
9113s/[	 ]*$/:/
9114s/:\$(srcdir):/:/g
9115s/:\${srcdir}:/:/g
9116s/:@srcdir@:/:/g
9117s/^:*//
9118s/:*$//
9119x
9120s/\(=[	 ]*\).*/\1/
9121G
9122s/\n//
9123s/^[^=]*=[	 ]*$//
9124}'
9125fi
9126
9127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9128fi # test -n "$CONFIG_FILES"
9129
9130# Set up the scripts for CONFIG_HEADERS section.
9131# No need to generate them if there are no CONFIG_HEADERS.
9132# This happens for instance with `./config.status Makefile'.
9133if test -n "$CONFIG_HEADERS"; then
9134cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9135BEGIN {
9136_ACEOF
9137
9138# Transform confdefs.h into an awk script `defines.awk', embedded as
9139# here-document in config.status, that substitutes the proper values into
9140# config.h.in to produce config.h.
9141
9142# Create a delimiter string that does not exist in confdefs.h, to ease
9143# handling of long lines.
9144ac_delim='%!_!# '
9145for ac_last_try in false false :; do
9146  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9147  if test -z "$ac_tt"; then
9148    break
9149  elif $ac_last_try; then
9150    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9151  else
9152    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9153  fi
9154done
9155
9156# For the awk script, D is an array of macro values keyed by name,
9157# likewise P contains macro parameters if any.  Preserve backslash
9158# newline sequences.
9159
9160ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9161sed -n '
9162s/.\{148\}/&'"$ac_delim"'/g
9163t rset
9164:rset
9165s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
9166t def
9167d
9168:def
9169s/\\$//
9170t bsnl
9171s/["\\]/\\&/g
9172s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
9173D["\1"]=" \3"/p
9174s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
9175d
9176:bsnl
9177s/["\\]/\\&/g
9178s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
9179D["\1"]=" \3\\\\\\n"\\/p
9180t cont
9181s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9182t cont
9183d
9184:cont
9185n
9186s/.\{148\}/&'"$ac_delim"'/g
9187t clear
9188:clear
9189s/\\$//
9190t bsnlc
9191s/["\\]/\\&/g; s/^/"/; s/$/"/p
9192d
9193:bsnlc
9194s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9195b cont
9196' <confdefs.h | sed '
9197s/'"$ac_delim"'/"\\\
9198"/g' >>$CONFIG_STATUS || ac_write_fail=1
9199
9200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9201  for (key in D) D_is_set[key] = 1
9202  FS = ""
9203}
9204/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9205  line = \$ 0
9206  split(line, arg, " ")
9207  if (arg[1] == "#") {
9208    defundef = arg[2]
9209    mac1 = arg[3]
9210  } else {
9211    defundef = substr(arg[1], 2)
9212    mac1 = arg[2]
9213  }
9214  split(mac1, mac2, "(") #)
9215  macro = mac2[1]
9216  prefix = substr(line, 1, index(line, defundef) - 1)
9217  if (D_is_set[macro]) {
9218    # Preserve the white space surrounding the "#".
9219    print prefix "define", macro P[macro] D[macro]
9220    next
9221  } else {
9222    # Replace #undef with comments.  This is necessary, for example,
9223    # in the case of _POSIX_SOURCE, which is predefined and required
9224    # on some systems where configure will not decide to define it.
9225    if (defundef == "undef") {
9226      print "/*", prefix defundef, macro, "*/"
9227      next
9228    }
9229  }
9230}
9231{ print }
9232_ACAWK
9233_ACEOF
9234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9235  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9236fi # test -n "$CONFIG_HEADERS"
9237
9238
9239eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
9240shift
9241for ac_tag
9242do
9243  case $ac_tag in
9244  :[FHLC]) ac_mode=$ac_tag; continue;;
9245  esac
9246  case $ac_mode$ac_tag in
9247  :[FHL]*:*);;
9248  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9249  :[FH]-) ac_tag=-:-;;
9250  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9251  esac
9252  ac_save_IFS=$IFS
9253  IFS=:
9254  set x $ac_tag
9255  IFS=$ac_save_IFS
9256  shift
9257  ac_file=$1
9258  shift
9259
9260  case $ac_mode in
9261  :L) ac_source=$1;;
9262  :[FH])
9263    ac_file_inputs=
9264    for ac_f
9265    do
9266      case $ac_f in
9267      -) ac_f="$ac_tmp/stdin";;
9268      *) # Look for the file first in the build tree, then in the source tree
9269	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
9270	 # because $ac_f cannot contain `:'.
9271	 test -f "$ac_f" ||
9272	   case $ac_f in
9273	   [\\/$]*) false;;
9274	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9275	   esac ||
9276	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9277      esac
9278      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9279      as_fn_append ac_file_inputs " '$ac_f'"
9280    done
9281
9282    # Let's still pretend it is `configure' which instantiates (i.e., don't
9283    # use $as_me), people would be surprised to read:
9284    #    /* config.h.  Generated by config.status.  */
9285    configure_input='Generated from '`
9286	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9287	`' by configure.'
9288    if test x"$ac_file" != x-; then
9289      configure_input="$ac_file.  $configure_input"
9290      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9291$as_echo "$as_me: creating $ac_file" >&6;}
9292    fi
9293    # Neutralize special characters interpreted by sed in replacement strings.
9294    case $configure_input in #(
9295    *\&* | *\|* | *\\* )
9296       ac_sed_conf_input=`$as_echo "$configure_input" |
9297       sed 's/[\\\\&|]/\\\\&/g'`;; #(
9298    *) ac_sed_conf_input=$configure_input;;
9299    esac
9300
9301    case $ac_tag in
9302    *:-:* | *:-) cat >"$ac_tmp/stdin" \
9303      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9304    esac
9305    ;;
9306  esac
9307
9308  ac_dir=`$as_dirname -- "$ac_file" ||
9309$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9310	 X"$ac_file" : 'X\(//\)[^/]' \| \
9311	 X"$ac_file" : 'X\(//\)$' \| \
9312	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9313$as_echo X"$ac_file" |
9314    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9315	    s//\1/
9316	    q
9317	  }
9318	  /^X\(\/\/\)[^/].*/{
9319	    s//\1/
9320	    q
9321	  }
9322	  /^X\(\/\/\)$/{
9323	    s//\1/
9324	    q
9325	  }
9326	  /^X\(\/\).*/{
9327	    s//\1/
9328	    q
9329	  }
9330	  s/.*/./; q'`
9331  as_dir="$ac_dir"; as_fn_mkdir_p
9332  ac_builddir=.
9333
9334case "$ac_dir" in
9335.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9336*)
9337  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9338  # A ".." for each directory in $ac_dir_suffix.
9339  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9340  case $ac_top_builddir_sub in
9341  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9342  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9343  esac ;;
9344esac
9345ac_abs_top_builddir=$ac_pwd
9346ac_abs_builddir=$ac_pwd$ac_dir_suffix
9347# for backward compatibility:
9348ac_top_builddir=$ac_top_build_prefix
9349
9350case $srcdir in
9351  .)  # We are building in place.
9352    ac_srcdir=.
9353    ac_top_srcdir=$ac_top_builddir_sub
9354    ac_abs_top_srcdir=$ac_pwd ;;
9355  [\\/]* | ?:[\\/]* )  # Absolute name.
9356    ac_srcdir=$srcdir$ac_dir_suffix;
9357    ac_top_srcdir=$srcdir
9358    ac_abs_top_srcdir=$srcdir ;;
9359  *) # Relative name.
9360    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9361    ac_top_srcdir=$ac_top_build_prefix$srcdir
9362    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9363esac
9364ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9365
9366
9367  case $ac_mode in
9368  :F)
9369  #
9370  # CONFIG_FILE
9371  #
9372
9373  case $INSTALL in
9374  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9375  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9376  esac
9377  ac_MKDIR_P=$MKDIR_P
9378  case $MKDIR_P in
9379  [\\/$]* | ?:[\\/]* ) ;;
9380  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9381  esac
9382_ACEOF
9383
9384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9385# If the template does not know about datarootdir, expand it.
9386# FIXME: This hack should be removed a few years after 2.60.
9387ac_datarootdir_hack=; ac_datarootdir_seen=
9388ac_sed_dataroot='
9389/datarootdir/ {
9390  p
9391  q
9392}
9393/@datadir@/p
9394/@docdir@/p
9395/@infodir@/p
9396/@localedir@/p
9397/@mandir@/p'
9398case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9399*datarootdir*) ac_datarootdir_seen=yes;;
9400*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9401  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9402$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9403_ACEOF
9404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9405  ac_datarootdir_hack='
9406  s&@datadir@&$datadir&g
9407  s&@docdir@&$docdir&g
9408  s&@infodir@&$infodir&g
9409  s&@localedir@&$localedir&g
9410  s&@mandir@&$mandir&g
9411  s&\\\${datarootdir}&$datarootdir&g' ;;
9412esac
9413_ACEOF
9414
9415# Neutralize VPATH when `$srcdir' = `.'.
9416# Shell code in configure.ac might set extrasub.
9417# FIXME: do we really want to maintain this feature?
9418cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9419ac_sed_extra="$ac_vpsub
9420$extrasub
9421_ACEOF
9422cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9423:t
9424/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9425s|@configure_input@|$ac_sed_conf_input|;t t
9426s&@top_builddir@&$ac_top_builddir_sub&;t t
9427s&@top_build_prefix@&$ac_top_build_prefix&;t t
9428s&@srcdir@&$ac_srcdir&;t t
9429s&@abs_srcdir@&$ac_abs_srcdir&;t t
9430s&@top_srcdir@&$ac_top_srcdir&;t t
9431s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9432s&@builddir@&$ac_builddir&;t t
9433s&@abs_builddir@&$ac_abs_builddir&;t t
9434s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9435s&@INSTALL@&$ac_INSTALL&;t t
9436s&@MKDIR_P@&$ac_MKDIR_P&;t t
9437$ac_datarootdir_hack
9438"
9439eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9440  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9441
9442test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9443  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9444  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
9445      "$ac_tmp/out"`; test -z "$ac_out"; } &&
9446  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9447which seems to be undefined.  Please make sure it is defined" >&5
9448$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9449which seems to be undefined.  Please make sure it is defined" >&2;}
9450
9451  rm -f "$ac_tmp/stdin"
9452  case $ac_file in
9453  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9454  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9455  esac \
9456  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9457 ;;
9458  :H)
9459  #
9460  # CONFIG_HEADER
9461  #
9462  if test x"$ac_file" != x-; then
9463    {
9464      $as_echo "/* $configure_input  */" \
9465      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9466    } >"$ac_tmp/config.h" \
9467      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9468    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9469      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9470$as_echo "$as_me: $ac_file is unchanged" >&6;}
9471    else
9472      rm -f "$ac_file"
9473      mv "$ac_tmp/config.h" "$ac_file" \
9474	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
9475    fi
9476  else
9477    $as_echo "/* $configure_input  */" \
9478      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9479      || as_fn_error $? "could not create -" "$LINENO" 5
9480  fi
9481# Compute "$ac_file"'s index in $config_headers.
9482_am_arg="$ac_file"
9483_am_stamp_count=1
9484for _am_header in $config_headers :; do
9485  case $_am_header in
9486    $_am_arg | $_am_arg:* )
9487      break ;;
9488    * )
9489      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9490  esac
9491done
9492echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9493$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9494	 X"$_am_arg" : 'X\(//\)[^/]' \| \
9495	 X"$_am_arg" : 'X\(//\)$' \| \
9496	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9497$as_echo X"$_am_arg" |
9498    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9499	    s//\1/
9500	    q
9501	  }
9502	  /^X\(\/\/\)[^/].*/{
9503	    s//\1/
9504	    q
9505	  }
9506	  /^X\(\/\/\)$/{
9507	    s//\1/
9508	    q
9509	  }
9510	  /^X\(\/\).*/{
9511	    s//\1/
9512	    q
9513	  }
9514	  s/.*/./; q'`/stamp-h$_am_stamp_count
9515 ;;
9516
9517  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9518$as_echo "$as_me: executing $ac_file commands" >&6;}
9519 ;;
9520  esac
9521
9522
9523  case $ac_file$ac_mode in
9524    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9525  # Older Autoconf quotes --file arguments for eval, but not when files
9526  # are listed without --file.  Let's play safe and only enable the eval
9527  # if we detect the quoting.
9528  case $CONFIG_FILES in
9529  *\'*) eval set x "$CONFIG_FILES" ;;
9530  *)   set x $CONFIG_FILES ;;
9531  esac
9532  shift
9533  for mf
9534  do
9535    # Strip MF so we end up with the name of the file.
9536    mf=`echo "$mf" | sed -e 's/:.*$//'`
9537    # Check whether this is an Automake generated Makefile or not.
9538    # We used to match only the files named 'Makefile.in', but
9539    # some people rename them; so instead we look at the file content.
9540    # Grep'ing the first line is not enough: some people post-process
9541    # each Makefile.in and add a new line on top of each file to say so.
9542    # Grep'ing the whole file is not good either: AIX grep has a line
9543    # limit of 2048, but all sed's we know have understand at least 4000.
9544    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9545      dirpart=`$as_dirname -- "$mf" ||
9546$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9547	 X"$mf" : 'X\(//\)[^/]' \| \
9548	 X"$mf" : 'X\(//\)$' \| \
9549	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9550$as_echo X"$mf" |
9551    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9552	    s//\1/
9553	    q
9554	  }
9555	  /^X\(\/\/\)[^/].*/{
9556	    s//\1/
9557	    q
9558	  }
9559	  /^X\(\/\/\)$/{
9560	    s//\1/
9561	    q
9562	  }
9563	  /^X\(\/\).*/{
9564	    s//\1/
9565	    q
9566	  }
9567	  s/.*/./; q'`
9568    else
9569      continue
9570    fi
9571    # Extract the definition of DEPDIR, am__include, and am__quote
9572    # from the Makefile without running 'make'.
9573    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9574    test -z "$DEPDIR" && continue
9575    am__include=`sed -n 's/^am__include = //p' < "$mf"`
9576    test -z "$am__include" && continue
9577    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9578    # Find all dependency output files, they are included files with
9579    # $(DEPDIR) in their names.  We invoke sed twice because it is the
9580    # simplest approach to changing $(DEPDIR) to its actual value in the
9581    # expansion.
9582    for file in `sed -n "
9583      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9584	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
9585      # Make sure the directory exists.
9586      test -f "$dirpart/$file" && continue
9587      fdir=`$as_dirname -- "$file" ||
9588$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9589	 X"$file" : 'X\(//\)[^/]' \| \
9590	 X"$file" : 'X\(//\)$' \| \
9591	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9592$as_echo X"$file" |
9593    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9594	    s//\1/
9595	    q
9596	  }
9597	  /^X\(\/\/\)[^/].*/{
9598	    s//\1/
9599	    q
9600	  }
9601	  /^X\(\/\/\)$/{
9602	    s//\1/
9603	    q
9604	  }
9605	  /^X\(\/\).*/{
9606	    s//\1/
9607	    q
9608	  }
9609	  s/.*/./; q'`
9610      as_dir=$dirpart/$fdir; as_fn_mkdir_p
9611      # echo "creating $dirpart/$file"
9612      echo '# dummy' > "$dirpart/$file"
9613    done
9614  done
9615}
9616 ;;
9617    "default-1":C)
9618    for ac_file in $CONFIG_FILES; do
9619      # Support "outfile[:infile[:infile...]]"
9620      case "$ac_file" in
9621        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9622      esac
9623      # PO directories have a Makefile.in generated from Makefile.in.in.
9624      case "$ac_file" in */Makefile.in)
9625        # Adjust a relative srcdir.
9626        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9627        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9628        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9629        # In autoconf-2.13 it is called $ac_given_srcdir.
9630        # In autoconf-2.50 it is called $srcdir.
9631        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9632        case "$ac_given_srcdir" in
9633          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9634          /*) top_srcdir="$ac_given_srcdir" ;;
9635          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
9636        esac
9637        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9638          rm -f "$ac_dir/POTFILES"
9639          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9640          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9641          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
9642          # on $ac_dir but don't depend on user-specified configuration
9643          # parameters.
9644          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9645            # The LINGUAS file contains the set of available languages.
9646            if test -n "$ALL_LINGUAS"; then
9647              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9648            fi
9649            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9650            # Hide the ALL_LINGUAS assigment from automake.
9651            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9652          fi
9653          case "$ac_given_srcdir" in
9654            .) srcdirpre= ;;
9655            *) srcdirpre='$(srcdir)/' ;;
9656          esac
9657          POFILES=
9658          GMOFILES=
9659          UPDATEPOFILES=
9660          DUMMYPOFILES=
9661          for lang in $ALL_LINGUAS; do
9662            POFILES="$POFILES $srcdirpre$lang.po"
9663            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9664            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9665            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9666          done
9667          # CATALOGS depends on both $ac_dir and the user's LINGUAS
9668          # environment variable.
9669          INST_LINGUAS=
9670          if test -n "$ALL_LINGUAS"; then
9671            for presentlang in $ALL_LINGUAS; do
9672              useit=no
9673              if test "%UNSET%" != "$LINGUAS"; then
9674                desiredlanguages="$LINGUAS"
9675              else
9676                desiredlanguages="$ALL_LINGUAS"
9677              fi
9678              for desiredlang in $desiredlanguages; do
9679                # Use the presentlang catalog if desiredlang is
9680                #   a. equal to presentlang, or
9681                #   b. a variant of presentlang (because in this case,
9682                #      presentlang can be used as a fallback for messages
9683                #      which are not translated in the desiredlang catalog).
9684                case "$desiredlang" in
9685                  "$presentlang"*) useit=yes;;
9686                esac
9687              done
9688              if test $useit = yes; then
9689                INST_LINGUAS="$INST_LINGUAS $presentlang"
9690              fi
9691            done
9692          fi
9693          CATALOGS=
9694          if test -n "$INST_LINGUAS"; then
9695            for lang in $INST_LINGUAS; do
9696              CATALOGS="$CATALOGS $lang.gmo"
9697            done
9698          fi
9699          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9700          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9701          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9702            if test -f "$f"; then
9703              case "$f" in
9704                *.orig | *.bak | *~) ;;
9705                *) cat "$f" >> "$ac_dir/Makefile" ;;
9706              esac
9707            fi
9708          done
9709        fi
9710        ;;
9711      esac
9712    done ;;
9713
9714  esac
9715done # for ac_tag
9716
9717
9718as_fn_exit 0
9719_ACEOF
9720ac_clean_files=$ac_clean_files_save
9721
9722test $ac_write_fail = 0 ||
9723  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9724
9725
9726# configure is writing to config.log, and then calls config.status.
9727# config.status does its own redirection, appending to config.log.
9728# Unfortunately, on DOS this fails, as config.log is still kept open
9729# by configure, so config.status won't be able to write to it; its
9730# output is simply discarded.  So we exec the FD to /dev/null,
9731# effectively closing config.log, so it can be properly (re)opened and
9732# appended to by config.status.  When coming back to configure, we
9733# need to make the FD available again.
9734if test "$no_create" != yes; then
9735  ac_cs_success=:
9736  ac_config_status_args=
9737  test "$silent" = yes &&
9738    ac_config_status_args="$ac_config_status_args --quiet"
9739  exec 5>/dev/null
9740  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9741  exec 5>>config.log
9742  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9743  # would make configure fail if this is the last instruction.
9744  $ac_cs_success || as_fn_exit 1
9745fi
9746if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9747  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9748$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9749fi
9750
9751