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