source: vis_dev/glu-2.3/configure @ 94

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

library glu 2.3

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