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