source: vis_dev/vis-2.3/configure @ 102

Last change on this file since 102 was 101, checked in by syed, 12 years ago

final

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