source: vis_dev/glu-2.1/configure @ 9

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

add sharpSat

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