source: vis_dev/cusp-1.1/configure @ 104

Last change on this file since 104 was 40, checked in by cecile, 13 years ago

abnormal structure in network

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