1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for strace 4.5.12.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME='strace'
269PACKAGE_TARNAME='strace'
270PACKAGE_VERSION='4.5.12'
271PACKAGE_STRING='strace 4.5.12'
272PACKAGE_BUGREPORT=''
273
274ac_unique_file="strace.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os opsys arch LINUX_TRUE LINUX_FALSE I386_TRUE I386_FALSE X86_64_TRUE X86_64_FALSE SUNOS4_TRUE SUNOS4_FALSE SVR4_TRUE SVR4_FALSE FREEBSD_TRUE FREEBSD_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE WARNFLAGS CPP EGREP PERL LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package| sed 's/-/_/g'`
593    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if test -n "$ac_prev"; then
653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  { echo "$as_me: error: missing argument to $ac_option" >&2
655   { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661  eval ac_val=$`echo $ac_var`
662  case $ac_val in
663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665   { (exit 1); exit 1; }; };;
666  esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671	      localstatedir libdir includedir oldincludedir infodir mandir
672do
673  eval ac_val=$`echo $ac_var`
674  case $ac_val in
675    [\\/$]* | ?:[\\/]* ) ;;
676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677   { (exit 1); exit 1; }; };;
678  esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707  ac_srcdir_defaulted=yes
708  # Try the directory containing this script, then its parent.
709  ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711	 X"$0" : 'X\(//\)[^/]' \| \
712	 X"$0" : 'X\(//\)$' \| \
713	 X"$0" : 'X\(/\)' \| \
714	 .     : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718  	  /^X\(\/\/\)$/{ s//\1/; q; }
719  	  /^X\(\/\).*/{ s//\1/; q; }
720  	  s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r $srcdir/$ac_unique_file; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739   { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778  # Omit some internal or obsolete options to make the list less imposing.
779  # This message is too long to be a string in the A/UX 3.1 sh.
780  cat <<_ACEOF
781\`configure' configures strace 4.5.12 to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791  -h, --help              display this help and exit
792      --help=short        display options specific to this package
793      --help=recursive    display the short help of all the included packages
794  -V, --version           display version information and exit
795  -q, --quiet, --silent   do not print \`checking...' messages
796      --cache-file=FILE   cache test results in FILE [disabled]
797  -C, --config-cache      alias for \`--cache-file=config.cache'
798  -n, --no-create         do not create output files
799      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803  cat <<_ACEOF
804Installation directories:
805  --prefix=PREFIX         install architecture-independent files in PREFIX
806			  [$ac_default_prefix]
807  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808			  [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818  --bindir=DIR           user executables [EPREFIX/bin]
819  --sbindir=DIR          system admin executables [EPREFIX/sbin]
820  --libexecdir=DIR       program executables [EPREFIX/libexec]
821  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825  --libdir=DIR           object code libraries [EPREFIX/lib]
826  --includedir=DIR       C header files [PREFIX/include]
827  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828  --infodir=DIR          info documentation [PREFIX/info]
829  --mandir=DIR           man documentation [PREFIX/man]
830_ACEOF
831
832  cat <<\_ACEOF
833
834Program names:
835  --program-prefix=PREFIX            prepend PREFIX to installed program names
836  --program-suffix=SUFFIX            append SUFFIX to installed program names
837  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838
839System types:
840  --build=BUILD     configure for building on BUILD [guessed]
841  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
842_ACEOF
843fi
844
845if test -n "$ac_init_help"; then
846  case $ac_init_help in
847     short | recursive ) echo "Configuration of strace 4.5.12:";;
848   esac
849  cat <<\_ACEOF
850
851Optional Features:
852  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
853  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
854  --enable-maintainer-mode  enable make rules and dependencies not useful
855			  (and sometimes confusing) to the casual installer
856  --disable-dependency-tracking  speeds up one-time build
857  --enable-dependency-tracking   do not reject slow dependency extractors
858
859Some influential environment variables:
860  CC          C compiler command
861  CFLAGS      C compiler flags
862  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
863              nonstandard directory <lib dir>
864  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
865              headers in a nonstandard directory <include dir>
866  CPP         C preprocessor
867
868Use these variables to override the choices made by `configure' or to help
869it to find libraries and programs with nonstandard names/locations.
870
871_ACEOF
872fi
873
874if test "$ac_init_help" = "recursive"; then
875  # If there are subdirs, report their specific --help.
876  ac_popdir=`pwd`
877  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
878    test -d $ac_dir || continue
879    ac_builddir=.
880
881if test "$ac_dir" != .; then
882  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
883  # A "../" for each directory in $ac_dir_suffix.
884  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
885else
886  ac_dir_suffix= ac_top_builddir=
887fi
888
889case $srcdir in
890  .)  # No --srcdir option.  We are building in place.
891    ac_srcdir=.
892    if test -z "$ac_top_builddir"; then
893       ac_top_srcdir=.
894    else
895       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
896    fi ;;
897  [\\/]* | ?:[\\/]* )  # Absolute path.
898    ac_srcdir=$srcdir$ac_dir_suffix;
899    ac_top_srcdir=$srcdir ;;
900  *) # Relative path.
901    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
902    ac_top_srcdir=$ac_top_builddir$srcdir ;;
903esac
904
905# Do not use `cd foo && pwd` to compute absolute paths, because
906# the directories may not exist.
907case `pwd` in
908.) ac_abs_builddir="$ac_dir";;
909*)
910  case "$ac_dir" in
911  .) ac_abs_builddir=`pwd`;;
912  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
913  *) ac_abs_builddir=`pwd`/"$ac_dir";;
914  esac;;
915esac
916case $ac_abs_builddir in
917.) ac_abs_top_builddir=${ac_top_builddir}.;;
918*)
919  case ${ac_top_builddir}. in
920  .) ac_abs_top_builddir=$ac_abs_builddir;;
921  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
922  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
923  esac;;
924esac
925case $ac_abs_builddir in
926.) ac_abs_srcdir=$ac_srcdir;;
927*)
928  case $ac_srcdir in
929  .) ac_abs_srcdir=$ac_abs_builddir;;
930  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
931  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
932  esac;;
933esac
934case $ac_abs_builddir in
935.) ac_abs_top_srcdir=$ac_top_srcdir;;
936*)
937  case $ac_top_srcdir in
938  .) ac_abs_top_srcdir=$ac_abs_builddir;;
939  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
940  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
941  esac;;
942esac
943
944    cd $ac_dir
945    # Check for guested configure; otherwise get Cygnus style configure.
946    if test -f $ac_srcdir/configure.gnu; then
947      echo
948      $SHELL $ac_srcdir/configure.gnu  --help=recursive
949    elif test -f $ac_srcdir/configure; then
950      echo
951      $SHELL $ac_srcdir/configure  --help=recursive
952    elif test -f $ac_srcdir/configure.ac ||
953	   test -f $ac_srcdir/configure.in; then
954      echo
955      $ac_configure --help
956    else
957      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
958    fi
959    cd $ac_popdir
960  done
961fi
962
963test -n "$ac_init_help" && exit 0
964if $ac_init_version; then
965  cat <<\_ACEOF
966strace configure 4.5.12
967generated by GNU Autoconf 2.59
968
969Copyright (C) 2003 Free Software Foundation, Inc.
970This configure script is free software; the Free Software Foundation
971gives unlimited permission to copy, distribute and modify it.
972_ACEOF
973  exit 0
974fi
975exec 5>config.log
976cat >&5 <<_ACEOF
977This file contains any messages produced by compilers while
978running configure, to aid debugging if configure makes a mistake.
979
980It was created by strace $as_me 4.5.12, which was
981generated by GNU Autoconf 2.59.  Invocation command line was
982
983  $ $0 $@
984
985_ACEOF
986{
987cat <<_ASUNAME
988## --------- ##
989## Platform. ##
990## --------- ##
991
992hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
993uname -m = `(uname -m) 2>/dev/null || echo unknown`
994uname -r = `(uname -r) 2>/dev/null || echo unknown`
995uname -s = `(uname -s) 2>/dev/null || echo unknown`
996uname -v = `(uname -v) 2>/dev/null || echo unknown`
997
998/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
999/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1000
1001/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1002/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1003/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1004hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1005/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1006/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1007/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1008
1009_ASUNAME
1010
1011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1012for as_dir in $PATH
1013do
1014  IFS=$as_save_IFS
1015  test -z "$as_dir" && as_dir=.
1016  echo "PATH: $as_dir"
1017done
1018
1019} >&5
1020
1021cat >&5 <<_ACEOF
1022
1023
1024## ----------- ##
1025## Core tests. ##
1026## ----------- ##
1027
1028_ACEOF
1029
1030
1031# Keep a trace of the command line.
1032# Strip out --no-create and --no-recursion so they do not pile up.
1033# Strip out --silent because we don't want to record it for future runs.
1034# Also quote any args containing shell meta-characters.
1035# Make two passes to allow for proper duplicate-argument suppression.
1036ac_configure_args=
1037ac_configure_args0=
1038ac_configure_args1=
1039ac_sep=
1040ac_must_keep_next=false
1041for ac_pass in 1 2
1042do
1043  for ac_arg
1044  do
1045    case $ac_arg in
1046    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1047    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048    | -silent | --silent | --silen | --sile | --sil)
1049      continue ;;
1050    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1052    esac
1053    case $ac_pass in
1054    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1055    2)
1056      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1057      if test $ac_must_keep_next = true; then
1058	ac_must_keep_next=false # Got value, back to normal.
1059      else
1060	case $ac_arg in
1061	  *=* | --config-cache | -C | -disable-* | --disable-* \
1062	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1063	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1064	  | -with-* | --with-* | -without-* | --without-* | --x)
1065	    case "$ac_configure_args0 " in
1066	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1067	    esac
1068	    ;;
1069	  -* ) ac_must_keep_next=true ;;
1070	esac
1071      fi
1072      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073      # Get rid of the leading space.
1074      ac_sep=" "
1075      ;;
1076    esac
1077  done
1078done
1079$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1080$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1081
1082# When interrupted or exit'd, cleanup temporary files, and complete
1083# config.log.  We remove comments because anyway the quotes in there
1084# would cause problems or look ugly.
1085# WARNING: Be sure not to use single quotes in there, as some shells,
1086# such as our DU 5.0 friend, will then `close' the trap.
1087trap 'exit_status=$?
1088  # Save into config.log some information that might help in debugging.
1089  {
1090    echo
1091
1092    cat <<\_ASBOX
1093## ---------------- ##
1094## Cache variables. ##
1095## ---------------- ##
1096_ASBOX
1097    echo
1098    # The following way of writing the cache mishandles newlines in values,
1099{
1100  (set) 2>&1 |
1101    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1102    *ac_space=\ *)
1103      sed -n \
1104	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1105	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1106      ;;
1107    *)
1108      sed -n \
1109	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1110      ;;
1111    esac;
1112}
1113    echo
1114
1115    cat <<\_ASBOX
1116## ----------------- ##
1117## Output variables. ##
1118## ----------------- ##
1119_ASBOX
1120    echo
1121    for ac_var in $ac_subst_vars
1122    do
1123      eval ac_val=$`echo $ac_var`
1124      echo "$ac_var='"'"'$ac_val'"'"'"
1125    done | sort
1126    echo
1127
1128    if test -n "$ac_subst_files"; then
1129      cat <<\_ASBOX
1130## ------------- ##
1131## Output files. ##
1132## ------------- ##
1133_ASBOX
1134      echo
1135      for ac_var in $ac_subst_files
1136      do
1137	eval ac_val=$`echo $ac_var`
1138	echo "$ac_var='"'"'$ac_val'"'"'"
1139      done | sort
1140      echo
1141    fi
1142
1143    if test -s confdefs.h; then
1144      cat <<\_ASBOX
1145## ----------- ##
1146## confdefs.h. ##
1147## ----------- ##
1148_ASBOX
1149      echo
1150      sed "/^$/d" confdefs.h | sort
1151      echo
1152    fi
1153    test "$ac_signal" != 0 &&
1154      echo "$as_me: caught signal $ac_signal"
1155    echo "$as_me: exit $exit_status"
1156  } >&5
1157  rm -f core *.core &&
1158  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1159    exit $exit_status
1160     ' 0
1161for ac_signal in 1 2 13 15; do
1162  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1163done
1164ac_signal=0
1165
1166# confdefs.h avoids OS command line length limits that DEFS can exceed.
1167rm -rf conftest* confdefs.h
1168# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1169echo >confdefs.h
1170
1171# Predefined preprocessor variables.
1172
1173cat >>confdefs.h <<_ACEOF
1174#define PACKAGE_NAME "$PACKAGE_NAME"
1175_ACEOF
1176
1177
1178cat >>confdefs.h <<_ACEOF
1179#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1180_ACEOF
1181
1182
1183cat >>confdefs.h <<_ACEOF
1184#define PACKAGE_VERSION "$PACKAGE_VERSION"
1185_ACEOF
1186
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_STRING "$PACKAGE_STRING"
1190_ACEOF
1191
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1195_ACEOF
1196
1197
1198# Let the site file select an alternate cache file if it wants to.
1199# Prefer explicitly selected file to automatically selected ones.
1200if test -z "$CONFIG_SITE"; then
1201  if test "x$prefix" != xNONE; then
1202    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1203  else
1204    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1205  fi
1206fi
1207for ac_site_file in $CONFIG_SITE; do
1208  if test -r "$ac_site_file"; then
1209    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1210echo "$as_me: loading site script $ac_site_file" >&6;}
1211    sed 's/^/| /' "$ac_site_file" >&5
1212    . "$ac_site_file"
1213  fi
1214done
1215
1216if test -r "$cache_file"; then
1217  # Some versions of bash will fail to source /dev/null (special
1218  # files actually), so we avoid doing that.
1219  if test -f "$cache_file"; then
1220    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1221echo "$as_me: loading cache $cache_file" >&6;}
1222    case $cache_file in
1223      [\\/]* | ?:[\\/]* ) . $cache_file;;
1224      *)                      . ./$cache_file;;
1225    esac
1226  fi
1227else
1228  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1229echo "$as_me: creating cache $cache_file" >&6;}
1230  >$cache_file
1231fi
1232
1233# Check that the precious variables saved in the cache have kept the same
1234# value.
1235ac_cache_corrupted=false
1236for ac_var in `(set) 2>&1 |
1237	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1238  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1239  eval ac_new_set=\$ac_env_${ac_var}_set
1240  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1241  eval ac_new_val="\$ac_env_${ac_var}_value"
1242  case $ac_old_set,$ac_new_set in
1243    set,)
1244      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1245echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1246      ac_cache_corrupted=: ;;
1247    ,set)
1248      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1249echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1250      ac_cache_corrupted=: ;;
1251    ,);;
1252    *)
1253      if test "x$ac_old_val" != "x$ac_new_val"; then
1254	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1255echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1256	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1257echo "$as_me:   former value:  $ac_old_val" >&2;}
1258	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1259echo "$as_me:   current value: $ac_new_val" >&2;}
1260	ac_cache_corrupted=:
1261      fi;;
1262  esac
1263  # Pass precious variables to config.status.
1264  if test "$ac_new_set" = set; then
1265    case $ac_new_val in
1266    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1268    *) ac_arg=$ac_var=$ac_new_val ;;
1269    esac
1270    case " $ac_configure_args " in
1271      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1272      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1273    esac
1274  fi
1275done
1276if $ac_cache_corrupted; then
1277  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1278echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1279  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1280echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1281   { (exit 1); exit 1; }; }
1282fi
1283
1284ac_ext=c
1285ac_cpp='$CPP $CPPFLAGS'
1286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1288ac_compiler_gnu=$ac_cv_c_compiler_gnu
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317          ac_config_headers="$ac_config_headers config.h"
1318
1319am__api_version="1.9"
1320ac_aux_dir=
1321for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1322  if test -f $ac_dir/install-sh; then
1323    ac_aux_dir=$ac_dir
1324    ac_install_sh="$ac_aux_dir/install-sh -c"
1325    break
1326  elif test -f $ac_dir/install.sh; then
1327    ac_aux_dir=$ac_dir
1328    ac_install_sh="$ac_aux_dir/install.sh -c"
1329    break
1330  elif test -f $ac_dir/shtool; then
1331    ac_aux_dir=$ac_dir
1332    ac_install_sh="$ac_aux_dir/shtool install -c"
1333    break
1334  fi
1335done
1336if test -z "$ac_aux_dir"; then
1337  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1338echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1339   { (exit 1); exit 1; }; }
1340fi
1341ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1342ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1343ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1344
1345# Find a good install program.  We prefer a C program (faster),
1346# so one script is as good as another.  But avoid the broken or
1347# incompatible versions:
1348# SysV /etc/install, /usr/sbin/install
1349# SunOS /usr/etc/install
1350# IRIX /sbin/install
1351# AIX /bin/install
1352# AmigaOS /C/install, which installs bootblocks on floppy discs
1353# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1354# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1355# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1356# OS/2's system install, which has a completely different semantic
1357# ./install, which can be erroneously created by make from ./install.sh.
1358echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1359echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1360if test -z "$INSTALL"; then
1361if test "${ac_cv_path_install+set}" = set; then
1362  echo $ECHO_N "(cached) $ECHO_C" >&6
1363else
1364  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1365for as_dir in $PATH
1366do
1367  IFS=$as_save_IFS
1368  test -z "$as_dir" && as_dir=.
1369  # Account for people who put trailing slashes in PATH elements.
1370case $as_dir/ in
1371  ./ | .// | /cC/* | \
1372  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1373  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1374  /usr/ucb/* ) ;;
1375  *)
1376    # OSF1 and SCO ODT 3.0 have their own names for install.
1377    # Don't use installbsd from OSF since it installs stuff as root
1378    # by default.
1379    for ac_prog in ginstall scoinst install; do
1380      for ac_exec_ext in '' $ac_executable_extensions; do
1381	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1382	  if test $ac_prog = install &&
1383	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1384	    # AIX install.  It has an incompatible calling convention.
1385	    :
1386	  elif test $ac_prog = install &&
1387	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1388	    # program-specific install script used by HP pwplus--don't use.
1389	    :
1390	  else
1391	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1392	    break 3
1393	  fi
1394	fi
1395      done
1396    done
1397    ;;
1398esac
1399done
1400
1401
1402fi
1403  if test "${ac_cv_path_install+set}" = set; then
1404    INSTALL=$ac_cv_path_install
1405  else
1406    # As a last resort, use the slow shell script.  We don't cache a
1407    # path for INSTALL within a source directory, because that will
1408    # break other packages using the cache if that directory is
1409    # removed, or if the path is relative.
1410    INSTALL=$ac_install_sh
1411  fi
1412fi
1413echo "$as_me:$LINENO: result: $INSTALL" >&5
1414echo "${ECHO_T}$INSTALL" >&6
1415
1416# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1417# It thinks the first close brace ends the variable substitution.
1418test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1419
1420test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1421
1422test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1423
1424echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1425echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1426# Just in case
1427sleep 1
1428echo timestamp > conftest.file
1429# Do `set' in a subshell so we don't clobber the current shell's
1430# arguments.  Must try -L first in case configure is actually a
1431# symlink; some systems play weird games with the mod time of symlinks
1432# (eg FreeBSD returns the mod time of the symlink's containing
1433# directory).
1434if (
1435   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1436   if test "$*" = "X"; then
1437      # -L didn't work.
1438      set X `ls -t $srcdir/configure conftest.file`
1439   fi
1440   rm -f conftest.file
1441   if test "$*" != "X $srcdir/configure conftest.file" \
1442      && test "$*" != "X conftest.file $srcdir/configure"; then
1443
1444      # If neither matched, then we have a broken ls.  This can happen
1445      # if, for instance, CONFIG_SHELL is bash and it inherits a
1446      # broken ls alias from the environment.  This has actually
1447      # happened.  Such a system could not be considered "sane".
1448      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1449alias in your environment" >&5
1450echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1451alias in your environment" >&2;}
1452   { (exit 1); exit 1; }; }
1453   fi
1454
1455   test "$2" = conftest.file
1456   )
1457then
1458   # Ok.
1459   :
1460else
1461   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1462Check your system clock" >&5
1463echo "$as_me: error: newly created file is older than distributed files!
1464Check your system clock" >&2;}
1465   { (exit 1); exit 1; }; }
1466fi
1467echo "$as_me:$LINENO: result: yes" >&5
1468echo "${ECHO_T}yes" >&6
1469test "$program_prefix" != NONE &&
1470  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1471# Use a double $ so make ignores it.
1472test "$program_suffix" != NONE &&
1473  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1474# Double any \ or $.  echo might interpret backslashes.
1475# By default was `s,x,x', remove it if useless.
1476cat <<\_ACEOF >conftest.sed
1477s/[\\$]/&&/g;s/;s,x,x,$//
1478_ACEOF
1479program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1480rm conftest.sed
1481
1482# expand $ac_aux_dir to an absolute path
1483am_aux_dir=`cd $ac_aux_dir && pwd`
1484
1485test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1486# Use eval to expand $SHELL
1487if eval "$MISSING --run true"; then
1488  am_missing_run="$MISSING --run "
1489else
1490  am_missing_run=
1491  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1492echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1493fi
1494
1495if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1496  # We used to keeping the `.' as first argument, in order to
1497  # allow $(mkdir_p) to be used without argument.  As in
1498  #   $(mkdir_p) $(somedir)
1499  # where $(somedir) is conditionally defined.  However this is wrong
1500  # for two reasons:
1501  #  1. if the package is installed by a user who cannot write `.'
1502  #     make install will fail,
1503  #  2. the above comment should most certainly read
1504  #     $(mkdir_p) $(DESTDIR)$(somedir)
1505  #     so it does not work when $(somedir) is undefined and
1506  #     $(DESTDIR) is not.
1507  #  To support the latter case, we have to write
1508  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1509  #  so the `.' trick is pointless.
1510  mkdir_p='mkdir -p --'
1511else
1512  # On NextStep and OpenStep, the `mkdir' command does not
1513  # recognize any option.  It will interpret all options as
1514  # directories to create, and then abort because `.' already
1515  # exists.
1516  for d in ./-p ./--version;
1517  do
1518    test -d $d && rmdir $d
1519  done
1520  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1521  if test -f "$ac_aux_dir/mkinstalldirs"; then
1522    mkdir_p='$(mkinstalldirs)'
1523  else
1524    mkdir_p='$(install_sh) -d'
1525  fi
1526fi
1527
1528for ac_prog in gawk mawk nawk awk
1529do
1530  # Extract the first word of "$ac_prog", so it can be a program name with args.
1531set dummy $ac_prog; ac_word=$2
1532echo "$as_me:$LINENO: checking for $ac_word" >&5
1533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1534if test "${ac_cv_prog_AWK+set}" = set; then
1535  echo $ECHO_N "(cached) $ECHO_C" >&6
1536else
1537  if test -n "$AWK"; then
1538  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1539else
1540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541for as_dir in $PATH
1542do
1543  IFS=$as_save_IFS
1544  test -z "$as_dir" && as_dir=.
1545  for ac_exec_ext in '' $ac_executable_extensions; do
1546  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1547    ac_cv_prog_AWK="$ac_prog"
1548    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1549    break 2
1550  fi
1551done
1552done
1553
1554fi
1555fi
1556AWK=$ac_cv_prog_AWK
1557if test -n "$AWK"; then
1558  echo "$as_me:$LINENO: result: $AWK" >&5
1559echo "${ECHO_T}$AWK" >&6
1560else
1561  echo "$as_me:$LINENO: result: no" >&5
1562echo "${ECHO_T}no" >&6
1563fi
1564
1565  test -n "$AWK" && break
1566done
1567
1568echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1569echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1570set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1571if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1572  echo $ECHO_N "(cached) $ECHO_C" >&6
1573else
1574  cat >conftest.make <<\_ACEOF
1575all:
1576	@echo 'ac_maketemp="$(MAKE)"'
1577_ACEOF
1578# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1579eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1580if test -n "$ac_maketemp"; then
1581  eval ac_cv_prog_make_${ac_make}_set=yes
1582else
1583  eval ac_cv_prog_make_${ac_make}_set=no
1584fi
1585rm -f conftest.make
1586fi
1587if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1588  echo "$as_me:$LINENO: result: yes" >&5
1589echo "${ECHO_T}yes" >&6
1590  SET_MAKE=
1591else
1592  echo "$as_me:$LINENO: result: no" >&5
1593echo "${ECHO_T}no" >&6
1594  SET_MAKE="MAKE=${MAKE-make}"
1595fi
1596
1597rm -rf .tst 2>/dev/null
1598mkdir .tst 2>/dev/null
1599if test -d .tst; then
1600  am__leading_dot=.
1601else
1602  am__leading_dot=_
1603fi
1604rmdir .tst 2>/dev/null
1605
1606# test to see if srcdir already configured
1607if test "`cd $srcdir && pwd`" != "`pwd`" &&
1608   test -f $srcdir/config.status; then
1609  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1610echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1611   { (exit 1); exit 1; }; }
1612fi
1613
1614# test whether we have cygpath
1615if test -z "$CYGPATH_W"; then
1616  if (cygpath --version) >/dev/null 2>/dev/null; then
1617    CYGPATH_W='cygpath -w'
1618  else
1619    CYGPATH_W=echo
1620  fi
1621fi
1622
1623
1624# Define the identity of the package.
1625 PACKAGE='strace'
1626 VERSION='4.5.12'
1627
1628
1629cat >>confdefs.h <<_ACEOF
1630#define PACKAGE "$PACKAGE"
1631_ACEOF
1632
1633
1634cat >>confdefs.h <<_ACEOF
1635#define VERSION "$VERSION"
1636_ACEOF
1637
1638# Some tools Automake needs.
1639
1640ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1641
1642
1643AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1644
1645
1646AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1647
1648
1649AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1650
1651
1652MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1653
1654install_sh=${install_sh-"$am_aux_dir/install-sh"}
1655
1656# Installed binaries are usually stripped using `strip' when the user
1657# run `make install-strip'.  However `strip' might not be the right
1658# tool to use in cross-compilation environments, therefore Automake
1659# will honor the `STRIP' environment variable to overrule this program.
1660if test "$cross_compiling" != no; then
1661  if test -n "$ac_tool_prefix"; then
1662  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1663set dummy ${ac_tool_prefix}strip; ac_word=$2
1664echo "$as_me:$LINENO: checking for $ac_word" >&5
1665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666if test "${ac_cv_prog_STRIP+set}" = set; then
1667  echo $ECHO_N "(cached) $ECHO_C" >&6
1668else
1669  if test -n "$STRIP"; then
1670  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1671else
1672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673for as_dir in $PATH
1674do
1675  IFS=$as_save_IFS
1676  test -z "$as_dir" && as_dir=.
1677  for ac_exec_ext in '' $ac_executable_extensions; do
1678  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1680    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681    break 2
1682  fi
1683done
1684done
1685
1686fi
1687fi
1688STRIP=$ac_cv_prog_STRIP
1689if test -n "$STRIP"; then
1690  echo "$as_me:$LINENO: result: $STRIP" >&5
1691echo "${ECHO_T}$STRIP" >&6
1692else
1693  echo "$as_me:$LINENO: result: no" >&5
1694echo "${ECHO_T}no" >&6
1695fi
1696
1697fi
1698if test -z "$ac_cv_prog_STRIP"; then
1699  ac_ct_STRIP=$STRIP
1700  # Extract the first word of "strip", so it can be a program name with args.
1701set dummy strip; ac_word=$2
1702echo "$as_me:$LINENO: checking for $ac_word" >&5
1703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1705  echo $ECHO_N "(cached) $ECHO_C" >&6
1706else
1707  if test -n "$ac_ct_STRIP"; then
1708  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1709else
1710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711for as_dir in $PATH
1712do
1713  IFS=$as_save_IFS
1714  test -z "$as_dir" && as_dir=.
1715  for ac_exec_ext in '' $ac_executable_extensions; do
1716  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717    ac_cv_prog_ac_ct_STRIP="strip"
1718    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719    break 2
1720  fi
1721done
1722done
1723
1724  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1725fi
1726fi
1727ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1728if test -n "$ac_ct_STRIP"; then
1729  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1730echo "${ECHO_T}$ac_ct_STRIP" >&6
1731else
1732  echo "$as_me:$LINENO: result: no" >&5
1733echo "${ECHO_T}no" >&6
1734fi
1735
1736  STRIP=$ac_ct_STRIP
1737else
1738  STRIP="$ac_cv_prog_STRIP"
1739fi
1740
1741fi
1742INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1743
1744# We need awk for the "check" target.  The system "awk" is bad on
1745# some platforms.
1746# Always define AMTAR for backward compatibility.
1747
1748AMTAR=${AMTAR-"${am_missing_run}tar"}
1749
1750am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1751
1752
1753
1754
1755
1756echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1757echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1758    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1759if test "${enable_maintainer_mode+set}" = set; then
1760  enableval="$enable_maintainer_mode"
1761  USE_MAINTAINER_MODE=$enableval
1762else
1763  USE_MAINTAINER_MODE=no
1764fi;
1765  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1766echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1767
1768
1769if test $USE_MAINTAINER_MODE = yes; then
1770  MAINTAINER_MODE_TRUE=
1771  MAINTAINER_MODE_FALSE='#'
1772else
1773  MAINTAINER_MODE_TRUE='#'
1774  MAINTAINER_MODE_FALSE=
1775fi
1776
1777  MAINT=$MAINTAINER_MODE_TRUE
1778
1779
1780# Make sure we can run config.sub.
1781$ac_config_sub sun4 >/dev/null 2>&1 ||
1782  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1783echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1784   { (exit 1); exit 1; }; }
1785
1786echo "$as_me:$LINENO: checking build system type" >&5
1787echo $ECHO_N "checking build system type... $ECHO_C" >&6
1788if test "${ac_cv_build+set}" = set; then
1789  echo $ECHO_N "(cached) $ECHO_C" >&6
1790else
1791  ac_cv_build_alias=$build_alias
1792test -z "$ac_cv_build_alias" &&
1793  ac_cv_build_alias=`$ac_config_guess`
1794test -z "$ac_cv_build_alias" &&
1795  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1796echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1797   { (exit 1); exit 1; }; }
1798ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1799  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1800echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1801   { (exit 1); exit 1; }; }
1802
1803fi
1804echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1805echo "${ECHO_T}$ac_cv_build" >&6
1806build=$ac_cv_build
1807build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1808build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1809build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1810
1811
1812echo "$as_me:$LINENO: checking host system type" >&5
1813echo $ECHO_N "checking host system type... $ECHO_C" >&6
1814if test "${ac_cv_host+set}" = set; then
1815  echo $ECHO_N "(cached) $ECHO_C" >&6
1816else
1817  ac_cv_host_alias=$host_alias
1818test -z "$ac_cv_host_alias" &&
1819  ac_cv_host_alias=$ac_cv_build_alias
1820ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1821  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1822echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1823   { (exit 1); exit 1; }; }
1824
1825fi
1826echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1827echo "${ECHO_T}$ac_cv_host" >&6
1828host=$ac_cv_host
1829host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1830host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1831host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1832
1833
1834
1835echo "$as_me:$LINENO: checking for supported operating system" >&5
1836echo $ECHO_N "checking for supported operating system... $ECHO_C" >&6
1837case "$host_os" in
1838linux*)
1839	opsys=linux
1840
1841cat >>confdefs.h <<\_ACEOF
1842#define LINUX 1
1843_ACEOF
1844
1845	;;
1846sunos4*)
1847	opsys=sunos4
1848
1849cat >>confdefs.h <<\_ACEOF
1850#define SUNOS4 1
1851_ACEOF
1852
1853	;;
1854solaris2* | sysv[45]* | irix[56]*)
1855	opsys=svr4
1856
1857cat >>confdefs.h <<\_ACEOF
1858#define SVR4 1
1859_ACEOF
1860
1861	case "$host_os" in
1862	sysv4.2uw*)
1863
1864cat >>confdefs.h <<\_ACEOF
1865#define UNIXWARE 2
1866_ACEOF
1867
1868		;;
1869	sysv5*)
1870
1871cat >>confdefs.h <<\_ACEOF
1872#define UNIXWARE 7
1873_ACEOF
1874
1875		;;
1876	esac
1877	;;
1878freebsd*)
1879	opsys=freebsd
1880
1881cat >>confdefs.h <<\_ACEOF
1882#define FREEBSD 1
1883_ACEOF
1884
1885	;;
1886*)
1887	echo "$as_me:$LINENO: result: NO!" >&5
1888echo "${ECHO_T}NO!" >&6
1889	{ { echo "$as_me:$LINENO: error: operating system $host_os is not supported by strace" >&5
1890echo "$as_me: error: operating system $host_os is not supported by strace" >&2;}
1891   { (exit 1); exit 1; }; }
1892	;;
1893esac
1894echo "$as_me:$LINENO: result: $opsys" >&5
1895echo "${ECHO_T}$opsys" >&6
1896
1897echo "$as_me:$LINENO: checking for supported architecture" >&5
1898echo $ECHO_N "checking for supported architecture... $ECHO_C" >&6
1899case "$host_cpu" in
1900i[3456]86|pentium)
1901	arch=i386
1902
1903cat >>confdefs.h <<\_ACEOF
1904#define I386 1
1905_ACEOF
1906
1907	;;
1908ia64)
1909	arch=ia64
1910
1911cat >>confdefs.h <<\_ACEOF
1912#define IA64 1
1913_ACEOF
1914
1915	;;
1916m68k)
1917	arch=m68k
1918
1919cat >>confdefs.h <<\_ACEOF
1920#define M68K 1
1921_ACEOF
1922
1923	;;
1924sparc64*)
1925	arch=sparc64
1926
1927cat >>confdefs.h <<\_ACEOF
1928#define SPARC64 1
1929_ACEOF
1930
1931	;;
1932sparc*)
1933	arch=sparc
1934
1935cat >>confdefs.h <<\_ACEOF
1936#define SPARC 1
1937_ACEOF
1938
1939	;;
1940mips*)
1941	arch=mips
1942
1943cat >>confdefs.h <<\_ACEOF
1944#define MIPS 1
1945_ACEOF
1946
1947	;;
1948alpha*)
1949	arch=alpha
1950
1951cat >>confdefs.h <<\_ACEOF
1952#define ALPHA 1
1953_ACEOF
1954
1955	;;
1956powerpc*)
1957	arch=powerpc
1958
1959cat >>confdefs.h <<\_ACEOF
1960#define POWERPC 1
1961_ACEOF
1962
1963	;;
1964arm*)
1965	arch=arm
1966
1967cat >>confdefs.h <<\_ACEOF
1968#define ARM 1
1969_ACEOF
1970
1971	;;
1972s390)
1973	arch=s390
1974
1975cat >>confdefs.h <<\_ACEOF
1976#define S390 1
1977_ACEOF
1978
1979	;;
1980s390x)
1981	arch=s390x
1982
1983cat >>confdefs.h <<\_ACEOF
1984#define S390X 1
1985_ACEOF
1986
1987	;;
1988hppa*|parisc*)
1989	arch=hppa
1990
1991cat >>confdefs.h <<\_ACEOF
1992#define HPPA 1
1993_ACEOF
1994
1995	;;
1996sh)
1997	arch=sh
1998
1999cat >>confdefs.h <<\_ACEOF
2000#define SH 1
2001_ACEOF
2002
2003	;;
2004sh64)
2005	arch=sh64
2006
2007cat >>confdefs.h <<\_ACEOF
2008#define SH64 1
2009_ACEOF
2010
2011	;;
2012x86?64*)
2013	arch=x86_64
2014
2015cat >>confdefs.h <<\_ACEOF
2016#define X86_64 1
2017_ACEOF
2018
2019	;;
2020*)
2021	echo "$as_me:$LINENO: result: NO!" >&5
2022echo "${ECHO_T}NO!" >&6
2023	{ { echo "$as_me:$LINENO: error: architecture $host_cpu is not supported by strace" >&5
2024echo "$as_me: error: architecture $host_cpu is not supported by strace" >&2;}
2025   { (exit 1); exit 1; }; }
2026	;;
2027esac
2028echo "$as_me:$LINENO: result: $arch" >&5
2029echo "${ECHO_T}$arch" >&6
2030
2031
2032
2033
2034
2035
2036if test x$opsys = xlinux; then
2037  LINUX_TRUE=
2038  LINUX_FALSE='#'
2039else
2040  LINUX_TRUE='#'
2041  LINUX_FALSE=
2042fi
2043
2044
2045
2046if test x$arch = xi386; then
2047  I386_TRUE=
2048  I386_FALSE='#'
2049else
2050  I386_TRUE='#'
2051  I386_FALSE=
2052fi
2053
2054
2055
2056if test x$arch = xx86_64; then
2057  X86_64_TRUE=
2058  X86_64_FALSE='#'
2059else
2060  X86_64_TRUE='#'
2061  X86_64_FALSE=
2062fi
2063
2064
2065
2066if test x$opsys = xsunos4; then
2067  SUNOS4_TRUE=
2068  SUNOS4_FALSE='#'
2069else
2070  SUNOS4_TRUE='#'
2071  SUNOS4_FALSE=
2072fi
2073
2074
2075
2076if test x$opsys = xsvr4; then
2077  SVR4_TRUE=
2078  SVR4_FALSE='#'
2079else
2080  SVR4_TRUE='#'
2081  SVR4_FALSE=
2082fi
2083
2084
2085
2086if test x$opsys = xfreebsd; then
2087  FREEBSD_TRUE=
2088  FREEBSD_FALSE='#'
2089else
2090  FREEBSD_TRUE='#'
2091  FREEBSD_FALSE=
2092fi
2093
2094
2095ac_ext=c
2096ac_cpp='$CPP $CPPFLAGS'
2097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2099ac_compiler_gnu=$ac_cv_c_compiler_gnu
2100if test -n "$ac_tool_prefix"; then
2101  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2102set dummy ${ac_tool_prefix}gcc; ac_word=$2
2103echo "$as_me:$LINENO: checking for $ac_word" >&5
2104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105if test "${ac_cv_prog_CC+set}" = set; then
2106  echo $ECHO_N "(cached) $ECHO_C" >&6
2107else
2108  if test -n "$CC"; then
2109  ac_cv_prog_CC="$CC" # Let the user override the test.
2110else
2111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112for as_dir in $PATH
2113do
2114  IFS=$as_save_IFS
2115  test -z "$as_dir" && as_dir=.
2116  for ac_exec_ext in '' $ac_executable_extensions; do
2117  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2119    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120    break 2
2121  fi
2122done
2123done
2124
2125fi
2126fi
2127CC=$ac_cv_prog_CC
2128if test -n "$CC"; then
2129  echo "$as_me:$LINENO: result: $CC" >&5
2130echo "${ECHO_T}$CC" >&6
2131else
2132  echo "$as_me:$LINENO: result: no" >&5
2133echo "${ECHO_T}no" >&6
2134fi
2135
2136fi
2137if test -z "$ac_cv_prog_CC"; then
2138  ac_ct_CC=$CC
2139  # Extract the first word of "gcc", so it can be a program name with args.
2140set dummy gcc; ac_word=$2
2141echo "$as_me:$LINENO: checking for $ac_word" >&5
2142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2143if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2144  echo $ECHO_N "(cached) $ECHO_C" >&6
2145else
2146  if test -n "$ac_ct_CC"; then
2147  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2148else
2149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150for as_dir in $PATH
2151do
2152  IFS=$as_save_IFS
2153  test -z "$as_dir" && as_dir=.
2154  for ac_exec_ext in '' $ac_executable_extensions; do
2155  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2156    ac_cv_prog_ac_ct_CC="gcc"
2157    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158    break 2
2159  fi
2160done
2161done
2162
2163fi
2164fi
2165ac_ct_CC=$ac_cv_prog_ac_ct_CC
2166if test -n "$ac_ct_CC"; then
2167  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2168echo "${ECHO_T}$ac_ct_CC" >&6
2169else
2170  echo "$as_me:$LINENO: result: no" >&5
2171echo "${ECHO_T}no" >&6
2172fi
2173
2174  CC=$ac_ct_CC
2175else
2176  CC="$ac_cv_prog_CC"
2177fi
2178
2179if test -z "$CC"; then
2180  if test -n "$ac_tool_prefix"; then
2181  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2182set dummy ${ac_tool_prefix}cc; ac_word=$2
2183echo "$as_me:$LINENO: checking for $ac_word" >&5
2184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2185if test "${ac_cv_prog_CC+set}" = set; then
2186  echo $ECHO_N "(cached) $ECHO_C" >&6
2187else
2188  if test -n "$CC"; then
2189  ac_cv_prog_CC="$CC" # Let the user override the test.
2190else
2191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192for as_dir in $PATH
2193do
2194  IFS=$as_save_IFS
2195  test -z "$as_dir" && as_dir=.
2196  for ac_exec_ext in '' $ac_executable_extensions; do
2197  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2198    ac_cv_prog_CC="${ac_tool_prefix}cc"
2199    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200    break 2
2201  fi
2202done
2203done
2204
2205fi
2206fi
2207CC=$ac_cv_prog_CC
2208if test -n "$CC"; then
2209  echo "$as_me:$LINENO: result: $CC" >&5
2210echo "${ECHO_T}$CC" >&6
2211else
2212  echo "$as_me:$LINENO: result: no" >&5
2213echo "${ECHO_T}no" >&6
2214fi
2215
2216fi
2217if test -z "$ac_cv_prog_CC"; then
2218  ac_ct_CC=$CC
2219  # Extract the first word of "cc", so it can be a program name with args.
2220set dummy cc; ac_word=$2
2221echo "$as_me:$LINENO: checking for $ac_word" >&5
2222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2223if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2224  echo $ECHO_N "(cached) $ECHO_C" >&6
2225else
2226  if test -n "$ac_ct_CC"; then
2227  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2228else
2229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230for as_dir in $PATH
2231do
2232  IFS=$as_save_IFS
2233  test -z "$as_dir" && as_dir=.
2234  for ac_exec_ext in '' $ac_executable_extensions; do
2235  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236    ac_cv_prog_ac_ct_CC="cc"
2237    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238    break 2
2239  fi
2240done
2241done
2242
2243fi
2244fi
2245ac_ct_CC=$ac_cv_prog_ac_ct_CC
2246if test -n "$ac_ct_CC"; then
2247  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2248echo "${ECHO_T}$ac_ct_CC" >&6
2249else
2250  echo "$as_me:$LINENO: result: no" >&5
2251echo "${ECHO_T}no" >&6
2252fi
2253
2254  CC=$ac_ct_CC
2255else
2256  CC="$ac_cv_prog_CC"
2257fi
2258
2259fi
2260if test -z "$CC"; then
2261  # Extract the first word of "cc", so it can be a program name with args.
2262set dummy cc; ac_word=$2
2263echo "$as_me:$LINENO: checking for $ac_word" >&5
2264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2265if test "${ac_cv_prog_CC+set}" = set; then
2266  echo $ECHO_N "(cached) $ECHO_C" >&6
2267else
2268  if test -n "$CC"; then
2269  ac_cv_prog_CC="$CC" # Let the user override the test.
2270else
2271  ac_prog_rejected=no
2272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273for as_dir in $PATH
2274do
2275  IFS=$as_save_IFS
2276  test -z "$as_dir" && as_dir=.
2277  for ac_exec_ext in '' $ac_executable_extensions; do
2278  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2279    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2280       ac_prog_rejected=yes
2281       continue
2282     fi
2283    ac_cv_prog_CC="cc"
2284    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285    break 2
2286  fi
2287done
2288done
2289
2290if test $ac_prog_rejected = yes; then
2291  # We found a bogon in the path, so make sure we never use it.
2292  set dummy $ac_cv_prog_CC
2293  shift
2294  if test $# != 0; then
2295    # We chose a different compiler from the bogus one.
2296    # However, it has the same basename, so the bogon will be chosen
2297    # first if we set CC to just the basename; use the full file name.
2298    shift
2299    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2300  fi
2301fi
2302fi
2303fi
2304CC=$ac_cv_prog_CC
2305if test -n "$CC"; then
2306  echo "$as_me:$LINENO: result: $CC" >&5
2307echo "${ECHO_T}$CC" >&6
2308else
2309  echo "$as_me:$LINENO: result: no" >&5
2310echo "${ECHO_T}no" >&6
2311fi
2312
2313fi
2314if test -z "$CC"; then
2315  if test -n "$ac_tool_prefix"; then
2316  for ac_prog in cl
2317  do
2318    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2319set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2320echo "$as_me:$LINENO: checking for $ac_word" >&5
2321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2322if test "${ac_cv_prog_CC+set}" = set; then
2323  echo $ECHO_N "(cached) $ECHO_C" >&6
2324else
2325  if test -n "$CC"; then
2326  ac_cv_prog_CC="$CC" # Let the user override the test.
2327else
2328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329for as_dir in $PATH
2330do
2331  IFS=$as_save_IFS
2332  test -z "$as_dir" && as_dir=.
2333  for ac_exec_ext in '' $ac_executable_extensions; do
2334  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2335    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2336    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337    break 2
2338  fi
2339done
2340done
2341
2342fi
2343fi
2344CC=$ac_cv_prog_CC
2345if test -n "$CC"; then
2346  echo "$as_me:$LINENO: result: $CC" >&5
2347echo "${ECHO_T}$CC" >&6
2348else
2349  echo "$as_me:$LINENO: result: no" >&5
2350echo "${ECHO_T}no" >&6
2351fi
2352
2353    test -n "$CC" && break
2354  done
2355fi
2356if test -z "$CC"; then
2357  ac_ct_CC=$CC
2358  for ac_prog in cl
2359do
2360  # Extract the first word of "$ac_prog", so it can be a program name with args.
2361set dummy $ac_prog; ac_word=$2
2362echo "$as_me:$LINENO: checking for $ac_word" >&5
2363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2364if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2365  echo $ECHO_N "(cached) $ECHO_C" >&6
2366else
2367  if test -n "$ac_ct_CC"; then
2368  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2369else
2370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371for as_dir in $PATH
2372do
2373  IFS=$as_save_IFS
2374  test -z "$as_dir" && as_dir=.
2375  for ac_exec_ext in '' $ac_executable_extensions; do
2376  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2377    ac_cv_prog_ac_ct_CC="$ac_prog"
2378    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379    break 2
2380  fi
2381done
2382done
2383
2384fi
2385fi
2386ac_ct_CC=$ac_cv_prog_ac_ct_CC
2387if test -n "$ac_ct_CC"; then
2388  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2389echo "${ECHO_T}$ac_ct_CC" >&6
2390else
2391  echo "$as_me:$LINENO: result: no" >&5
2392echo "${ECHO_T}no" >&6
2393fi
2394
2395  test -n "$ac_ct_CC" && break
2396done
2397
2398  CC=$ac_ct_CC
2399fi
2400
2401fi
2402
2403
2404test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2405See \`config.log' for more details." >&5
2406echo "$as_me: error: no acceptable C compiler found in \$PATH
2407See \`config.log' for more details." >&2;}
2408   { (exit 1); exit 1; }; }
2409
2410# Provide some information about the compiler.
2411echo "$as_me:$LINENO:" \
2412     "checking for C compiler version" >&5
2413ac_compiler=`set X $ac_compile; echo $2`
2414{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2415  (eval $ac_compiler --version </dev/null >&5) 2>&5
2416  ac_status=$?
2417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418  (exit $ac_status); }
2419{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2420  (eval $ac_compiler -v </dev/null >&5) 2>&5
2421  ac_status=$?
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); }
2424{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2425  (eval $ac_compiler -V </dev/null >&5) 2>&5
2426  ac_status=$?
2427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428  (exit $ac_status); }
2429
2430cat >conftest.$ac_ext <<_ACEOF
2431/* confdefs.h.  */
2432_ACEOF
2433cat confdefs.h >>conftest.$ac_ext
2434cat >>conftest.$ac_ext <<_ACEOF
2435/* end confdefs.h.  */
2436
2437int
2438main ()
2439{
2440
2441  ;
2442  return 0;
2443}
2444_ACEOF
2445ac_clean_files_save=$ac_clean_files
2446ac_clean_files="$ac_clean_files a.out a.exe b.out"
2447# Try to create an executable without -o first, disregard a.out.
2448# It will help us diagnose broken compilers, and finding out an intuition
2449# of exeext.
2450echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2451echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2452ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2453if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2454  (eval $ac_link_default) 2>&5
2455  ac_status=$?
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); }; then
2458  # Find the output, starting from the most likely.  This scheme is
2459# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2460# resort.
2461
2462# Be careful to initialize this variable, since it used to be cached.
2463# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2464ac_cv_exeext=
2465# b.out is created by i960 compilers.
2466for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2467do
2468  test -f "$ac_file" || continue
2469  case $ac_file in
2470    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2471	;;
2472    conftest.$ac_ext )
2473	# This is the source file.
2474	;;
2475    [ab].out )
2476	# We found the default executable, but exeext='' is most
2477	# certainly right.
2478	break;;
2479    *.* )
2480	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2481	# FIXME: I believe we export ac_cv_exeext for Libtool,
2482	# but it would be cool to find out if it's true.  Does anybody
2483	# maintain Libtool? --akim.
2484	export ac_cv_exeext
2485	break;;
2486    * )
2487	break;;
2488  esac
2489done
2490else
2491  echo "$as_me: failed program was:" >&5
2492sed 's/^/| /' conftest.$ac_ext >&5
2493
2494{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2495See \`config.log' for more details." >&5
2496echo "$as_me: error: C compiler cannot create executables
2497See \`config.log' for more details." >&2;}
2498   { (exit 77); exit 77; }; }
2499fi
2500
2501ac_exeext=$ac_cv_exeext
2502echo "$as_me:$LINENO: result: $ac_file" >&5
2503echo "${ECHO_T}$ac_file" >&6
2504
2505# Check the compiler produces executables we can run.  If not, either
2506# the compiler is broken, or we cross compile.
2507echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2508echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2509# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2510# If not cross compiling, check that we can run a simple program.
2511if test "$cross_compiling" != yes; then
2512  if { ac_try='./$ac_file'
2513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514  (eval $ac_try) 2>&5
2515  ac_status=$?
2516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517  (exit $ac_status); }; }; then
2518    cross_compiling=no
2519  else
2520    if test "$cross_compiling" = maybe; then
2521	cross_compiling=yes
2522    else
2523	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2524If you meant to cross compile, use \`--host'.
2525See \`config.log' for more details." >&5
2526echo "$as_me: error: cannot run C compiled programs.
2527If you meant to cross compile, use \`--host'.
2528See \`config.log' for more details." >&2;}
2529   { (exit 1); exit 1; }; }
2530    fi
2531  fi
2532fi
2533echo "$as_me:$LINENO: result: yes" >&5
2534echo "${ECHO_T}yes" >&6
2535
2536rm -f a.out a.exe conftest$ac_cv_exeext b.out
2537ac_clean_files=$ac_clean_files_save
2538# Check the compiler produces executables we can run.  If not, either
2539# the compiler is broken, or we cross compile.
2540echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2541echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2542echo "$as_me:$LINENO: result: $cross_compiling" >&5
2543echo "${ECHO_T}$cross_compiling" >&6
2544
2545echo "$as_me:$LINENO: checking for suffix of executables" >&5
2546echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2548  (eval $ac_link) 2>&5
2549  ac_status=$?
2550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551  (exit $ac_status); }; then
2552  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2553# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2554# work properly (i.e., refer to `conftest.exe'), while it won't with
2555# `rm'.
2556for ac_file in conftest.exe conftest conftest.*; do
2557  test -f "$ac_file" || continue
2558  case $ac_file in
2559    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2560    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2561	  export ac_cv_exeext
2562	  break;;
2563    * ) break;;
2564  esac
2565done
2566else
2567  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2568See \`config.log' for more details." >&5
2569echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2570See \`config.log' for more details." >&2;}
2571   { (exit 1); exit 1; }; }
2572fi
2573
2574rm -f conftest$ac_cv_exeext
2575echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2576echo "${ECHO_T}$ac_cv_exeext" >&6
2577
2578rm -f conftest.$ac_ext
2579EXEEXT=$ac_cv_exeext
2580ac_exeext=$EXEEXT
2581echo "$as_me:$LINENO: checking for suffix of object files" >&5
2582echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2583if test "${ac_cv_objext+set}" = set; then
2584  echo $ECHO_N "(cached) $ECHO_C" >&6
2585else
2586  cat >conftest.$ac_ext <<_ACEOF
2587/* confdefs.h.  */
2588_ACEOF
2589cat confdefs.h >>conftest.$ac_ext
2590cat >>conftest.$ac_ext <<_ACEOF
2591/* end confdefs.h.  */
2592
2593int
2594main ()
2595{
2596
2597  ;
2598  return 0;
2599}
2600_ACEOF
2601rm -f conftest.o conftest.obj
2602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603  (eval $ac_compile) 2>&5
2604  ac_status=$?
2605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606  (exit $ac_status); }; then
2607  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2608  case $ac_file in
2609    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2610    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2611       break;;
2612  esac
2613done
2614else
2615  echo "$as_me: failed program was:" >&5
2616sed 's/^/| /' conftest.$ac_ext >&5
2617
2618{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2619See \`config.log' for more details." >&5
2620echo "$as_me: error: cannot compute suffix of object files: cannot compile
2621See \`config.log' for more details." >&2;}
2622   { (exit 1); exit 1; }; }
2623fi
2624
2625rm -f conftest.$ac_cv_objext conftest.$ac_ext
2626fi
2627echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2628echo "${ECHO_T}$ac_cv_objext" >&6
2629OBJEXT=$ac_cv_objext
2630ac_objext=$OBJEXT
2631echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2632echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2633if test "${ac_cv_c_compiler_gnu+set}" = set; then
2634  echo $ECHO_N "(cached) $ECHO_C" >&6
2635else
2636  cat >conftest.$ac_ext <<_ACEOF
2637/* confdefs.h.  */
2638_ACEOF
2639cat confdefs.h >>conftest.$ac_ext
2640cat >>conftest.$ac_ext <<_ACEOF
2641/* end confdefs.h.  */
2642
2643int
2644main ()
2645{
2646#ifndef __GNUC__
2647       choke me
2648#endif
2649
2650  ;
2651  return 0;
2652}
2653_ACEOF
2654rm -f conftest.$ac_objext
2655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656  (eval $ac_compile) 2>conftest.er1
2657  ac_status=$?
2658  grep -v '^ *+' conftest.er1 >conftest.err
2659  rm -f conftest.er1
2660  cat conftest.err >&5
2661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662  (exit $ac_status); } &&
2663	 { ac_try='test -z "$ac_c_werror_flag"
2664			 || test ! -s conftest.err'
2665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666  (eval $ac_try) 2>&5
2667  ac_status=$?
2668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669  (exit $ac_status); }; } &&
2670	 { ac_try='test -s conftest.$ac_objext'
2671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672  (eval $ac_try) 2>&5
2673  ac_status=$?
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); }; }; then
2676  ac_compiler_gnu=yes
2677else
2678  echo "$as_me: failed program was:" >&5
2679sed 's/^/| /' conftest.$ac_ext >&5
2680
2681ac_compiler_gnu=no
2682fi
2683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2684ac_cv_c_compiler_gnu=$ac_compiler_gnu
2685
2686fi
2687echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2688echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2689GCC=`test $ac_compiler_gnu = yes && echo yes`
2690ac_test_CFLAGS=${CFLAGS+set}
2691ac_save_CFLAGS=$CFLAGS
2692CFLAGS="-g"
2693echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2694echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2695if test "${ac_cv_prog_cc_g+set}" = set; then
2696  echo $ECHO_N "(cached) $ECHO_C" >&6
2697else
2698  cat >conftest.$ac_ext <<_ACEOF
2699/* confdefs.h.  */
2700_ACEOF
2701cat confdefs.h >>conftest.$ac_ext
2702cat >>conftest.$ac_ext <<_ACEOF
2703/* end confdefs.h.  */
2704
2705int
2706main ()
2707{
2708
2709  ;
2710  return 0;
2711}
2712_ACEOF
2713rm -f conftest.$ac_objext
2714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2715  (eval $ac_compile) 2>conftest.er1
2716  ac_status=$?
2717  grep -v '^ *+' conftest.er1 >conftest.err
2718  rm -f conftest.er1
2719  cat conftest.err >&5
2720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721  (exit $ac_status); } &&
2722	 { ac_try='test -z "$ac_c_werror_flag"
2723			 || test ! -s conftest.err'
2724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725  (eval $ac_try) 2>&5
2726  ac_status=$?
2727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728  (exit $ac_status); }; } &&
2729	 { ac_try='test -s conftest.$ac_objext'
2730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731  (eval $ac_try) 2>&5
2732  ac_status=$?
2733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734  (exit $ac_status); }; }; then
2735  ac_cv_prog_cc_g=yes
2736else
2737  echo "$as_me: failed program was:" >&5
2738sed 's/^/| /' conftest.$ac_ext >&5
2739
2740ac_cv_prog_cc_g=no
2741fi
2742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2743fi
2744echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2745echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2746if test "$ac_test_CFLAGS" = set; then
2747  CFLAGS=$ac_save_CFLAGS
2748elif test $ac_cv_prog_cc_g = yes; then
2749  if test "$GCC" = yes; then
2750    CFLAGS="-g -O2"
2751  else
2752    CFLAGS="-g"
2753  fi
2754else
2755  if test "$GCC" = yes; then
2756    CFLAGS="-O2"
2757  else
2758    CFLAGS=
2759  fi
2760fi
2761echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2762echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2763if test "${ac_cv_prog_cc_stdc+set}" = set; then
2764  echo $ECHO_N "(cached) $ECHO_C" >&6
2765else
2766  ac_cv_prog_cc_stdc=no
2767ac_save_CC=$CC
2768cat >conftest.$ac_ext <<_ACEOF
2769/* confdefs.h.  */
2770_ACEOF
2771cat confdefs.h >>conftest.$ac_ext
2772cat >>conftest.$ac_ext <<_ACEOF
2773/* end confdefs.h.  */
2774#include <stdarg.h>
2775#include <stdio.h>
2776#include <sys/types.h>
2777#include <sys/stat.h>
2778/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2779struct buf { int x; };
2780FILE * (*rcsopen) (struct buf *, struct stat *, int);
2781static char *e (p, i)
2782     char **p;
2783     int i;
2784{
2785  return p[i];
2786}
2787static char *f (char * (*g) (char **, int), char **p, ...)
2788{
2789  char *s;
2790  va_list v;
2791  va_start (v,p);
2792  s = g (p, va_arg (v,int));
2793  va_end (v);
2794  return s;
2795}
2796
2797/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2798   function prototypes and stuff, but not '\xHH' hex character constants.
2799   These don't provoke an error unfortunately, instead are silently treated
2800   as 'x'.  The following induces an error, until -std1 is added to get
2801   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2802   array size at least.  It's necessary to write '\x00'==0 to get something
2803   that's true only with -std1.  */
2804int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2805
2806int test (int i, double x);
2807struct s1 {int (*f) (int a);};
2808struct s2 {int (*f) (double a);};
2809int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2810int argc;
2811char **argv;
2812int
2813main ()
2814{
2815return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2816  ;
2817  return 0;
2818}
2819_ACEOF
2820# Don't try gcc -ansi; that turns off useful extensions and
2821# breaks some systems' header files.
2822# AIX			-qlanglvl=ansi
2823# Ultrix and OSF/1	-std1
2824# HP-UX 10.20 and later	-Ae
2825# HP-UX older versions	-Aa -D_HPUX_SOURCE
2826# SVR4			-Xc -D__EXTENSIONS__
2827for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2828do
2829  CC="$ac_save_CC $ac_arg"
2830  rm -f conftest.$ac_objext
2831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2832  (eval $ac_compile) 2>conftest.er1
2833  ac_status=$?
2834  grep -v '^ *+' conftest.er1 >conftest.err
2835  rm -f conftest.er1
2836  cat conftest.err >&5
2837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838  (exit $ac_status); } &&
2839	 { ac_try='test -z "$ac_c_werror_flag"
2840			 || test ! -s conftest.err'
2841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842  (eval $ac_try) 2>&5
2843  ac_status=$?
2844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845  (exit $ac_status); }; } &&
2846	 { ac_try='test -s conftest.$ac_objext'
2847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848  (eval $ac_try) 2>&5
2849  ac_status=$?
2850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851  (exit $ac_status); }; }; then
2852  ac_cv_prog_cc_stdc=$ac_arg
2853break
2854else
2855  echo "$as_me: failed program was:" >&5
2856sed 's/^/| /' conftest.$ac_ext >&5
2857
2858fi
2859rm -f conftest.err conftest.$ac_objext
2860done
2861rm -f conftest.$ac_ext conftest.$ac_objext
2862CC=$ac_save_CC
2863
2864fi
2865
2866case "x$ac_cv_prog_cc_stdc" in
2867  x|xno)
2868    echo "$as_me:$LINENO: result: none needed" >&5
2869echo "${ECHO_T}none needed" >&6 ;;
2870  *)
2871    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2872echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2873    CC="$CC $ac_cv_prog_cc_stdc" ;;
2874esac
2875
2876# Some people use a C++ compiler to compile C.  Since we use `exit',
2877# in C++ we need to declare it.  In case someone uses the same compiler
2878# for both compiling C and C++ we need to have the C++ compiler decide
2879# the declaration of exit, since it's the most demanding environment.
2880cat >conftest.$ac_ext <<_ACEOF
2881#ifndef __cplusplus
2882  choke me
2883#endif
2884_ACEOF
2885rm -f conftest.$ac_objext
2886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2887  (eval $ac_compile) 2>conftest.er1
2888  ac_status=$?
2889  grep -v '^ *+' conftest.er1 >conftest.err
2890  rm -f conftest.er1
2891  cat conftest.err >&5
2892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893  (exit $ac_status); } &&
2894	 { ac_try='test -z "$ac_c_werror_flag"
2895			 || test ! -s conftest.err'
2896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897  (eval $ac_try) 2>&5
2898  ac_status=$?
2899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900  (exit $ac_status); }; } &&
2901	 { ac_try='test -s conftest.$ac_objext'
2902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903  (eval $ac_try) 2>&5
2904  ac_status=$?
2905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906  (exit $ac_status); }; }; then
2907  for ac_declaration in \
2908   '' \
2909   'extern "C" void std::exit (int) throw (); using std::exit;' \
2910   'extern "C" void std::exit (int); using std::exit;' \
2911   'extern "C" void exit (int) throw ();' \
2912   'extern "C" void exit (int);' \
2913   'void exit (int);'
2914do
2915  cat >conftest.$ac_ext <<_ACEOF
2916/* confdefs.h.  */
2917_ACEOF
2918cat confdefs.h >>conftest.$ac_ext
2919cat >>conftest.$ac_ext <<_ACEOF
2920/* end confdefs.h.  */
2921$ac_declaration
2922#include <stdlib.h>
2923int
2924main ()
2925{
2926exit (42);
2927  ;
2928  return 0;
2929}
2930_ACEOF
2931rm -f conftest.$ac_objext
2932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2933  (eval $ac_compile) 2>conftest.er1
2934  ac_status=$?
2935  grep -v '^ *+' conftest.er1 >conftest.err
2936  rm -f conftest.er1
2937  cat conftest.err >&5
2938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939  (exit $ac_status); } &&
2940	 { ac_try='test -z "$ac_c_werror_flag"
2941			 || test ! -s conftest.err'
2942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943  (eval $ac_try) 2>&5
2944  ac_status=$?
2945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946  (exit $ac_status); }; } &&
2947	 { ac_try='test -s conftest.$ac_objext'
2948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949  (eval $ac_try) 2>&5
2950  ac_status=$?
2951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952  (exit $ac_status); }; }; then
2953  :
2954else
2955  echo "$as_me: failed program was:" >&5
2956sed 's/^/| /' conftest.$ac_ext >&5
2957
2958continue
2959fi
2960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2961  cat >conftest.$ac_ext <<_ACEOF
2962/* confdefs.h.  */
2963_ACEOF
2964cat confdefs.h >>conftest.$ac_ext
2965cat >>conftest.$ac_ext <<_ACEOF
2966/* end confdefs.h.  */
2967$ac_declaration
2968int
2969main ()
2970{
2971exit (42);
2972  ;
2973  return 0;
2974}
2975_ACEOF
2976rm -f conftest.$ac_objext
2977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2978  (eval $ac_compile) 2>conftest.er1
2979  ac_status=$?
2980  grep -v '^ *+' conftest.er1 >conftest.err
2981  rm -f conftest.er1
2982  cat conftest.err >&5
2983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984  (exit $ac_status); } &&
2985	 { ac_try='test -z "$ac_c_werror_flag"
2986			 || test ! -s conftest.err'
2987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988  (eval $ac_try) 2>&5
2989  ac_status=$?
2990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991  (exit $ac_status); }; } &&
2992	 { ac_try='test -s conftest.$ac_objext'
2993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994  (eval $ac_try) 2>&5
2995  ac_status=$?
2996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997  (exit $ac_status); }; }; then
2998  break
2999else
3000  echo "$as_me: failed program was:" >&5
3001sed 's/^/| /' conftest.$ac_ext >&5
3002
3003fi
3004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3005done
3006rm -f conftest*
3007if test -n "$ac_declaration"; then
3008  echo '#ifdef __cplusplus' >>confdefs.h
3009  echo $ac_declaration      >>confdefs.h
3010  echo '#endif'             >>confdefs.h
3011fi
3012
3013else
3014  echo "$as_me: failed program was:" >&5
3015sed 's/^/| /' conftest.$ac_ext >&5
3016
3017fi
3018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3019ac_ext=c
3020ac_cpp='$CPP $CPPFLAGS'
3021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024DEPDIR="${am__leading_dot}deps"
3025
3026          ac_config_commands="$ac_config_commands depfiles"
3027
3028
3029am_make=${MAKE-make}
3030cat > confinc << 'END'
3031am__doit:
3032	@echo done
3033.PHONY: am__doit
3034END
3035# If we don't find an include directive, just comment out the code.
3036echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3037echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3038am__include="#"
3039am__quote=
3040_am_result=none
3041# First try GNU make style include.
3042echo "include confinc" > confmf
3043# We grep out `Entering directory' and `Leaving directory'
3044# messages which can occur if `w' ends up in MAKEFLAGS.
3045# In particular we don't look at `^make:' because GNU make might
3046# be invoked under some other name (usually "gmake"), in which
3047# case it prints its new name instead of `make'.
3048if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3049   am__include=include
3050   am__quote=
3051   _am_result=GNU
3052fi
3053# Now try BSD make style include.
3054if test "$am__include" = "#"; then
3055   echo '.include "confinc"' > confmf
3056   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3057      am__include=.include
3058      am__quote="\""
3059      _am_result=BSD
3060   fi
3061fi
3062
3063
3064echo "$as_me:$LINENO: result: $_am_result" >&5
3065echo "${ECHO_T}$_am_result" >&6
3066rm -f confinc confmf
3067
3068# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3069if test "${enable_dependency_tracking+set}" = set; then
3070  enableval="$enable_dependency_tracking"
3071
3072fi;
3073if test "x$enable_dependency_tracking" != xno; then
3074  am_depcomp="$ac_aux_dir/depcomp"
3075  AMDEPBACKSLASH='\'
3076fi
3077
3078
3079if test "x$enable_dependency_tracking" != xno; then
3080  AMDEP_TRUE=
3081  AMDEP_FALSE='#'
3082else
3083  AMDEP_TRUE='#'
3084  AMDEP_FALSE=
3085fi
3086
3087
3088
3089
3090depcc="$CC"   am_compiler_list=
3091
3092echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3093echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3094if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3095  echo $ECHO_N "(cached) $ECHO_C" >&6
3096else
3097  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3098  # We make a subdir and do the tests there.  Otherwise we can end up
3099  # making bogus files that we don't know about and never remove.  For
3100  # instance it was reported that on HP-UX the gcc test will end up
3101  # making a dummy file named `D' -- because `-MD' means `put the output
3102  # in D'.
3103  mkdir conftest.dir
3104  # Copy depcomp to subdir because otherwise we won't find it if we're
3105  # using a relative directory.
3106  cp "$am_depcomp" conftest.dir
3107  cd conftest.dir
3108  # We will build objects and dependencies in a subdirectory because
3109  # it helps to detect inapplicable dependency modes.  For instance
3110  # both Tru64's cc and ICC support -MD to output dependencies as a
3111  # side effect of compilation, but ICC will put the dependencies in
3112  # the current directory while Tru64 will put them in the object
3113  # directory.
3114  mkdir sub
3115
3116  am_cv_CC_dependencies_compiler_type=none
3117  if test "$am_compiler_list" = ""; then
3118     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3119  fi
3120  for depmode in $am_compiler_list; do
3121    # Setup a source with many dependencies, because some compilers
3122    # like to wrap large dependency lists on column 80 (with \), and
3123    # we should not choose a depcomp mode which is confused by this.
3124    #
3125    # We need to recreate these files for each test, as the compiler may
3126    # overwrite some of them when testing with obscure command lines.
3127    # This happens at least with the AIX C compiler.
3128    : > sub/conftest.c
3129    for i in 1 2 3 4 5 6; do
3130      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3131      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3132      # Solaris 8's {/usr,}/bin/sh.
3133      touch sub/conftst$i.h
3134    done
3135    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3136
3137    case $depmode in
3138    nosideeffect)
3139      # after this tag, mechanisms are not by side-effect, so they'll
3140      # only be used when explicitly requested
3141      if test "x$enable_dependency_tracking" = xyes; then
3142	continue
3143      else
3144	break
3145      fi
3146      ;;
3147    none) break ;;
3148    esac
3149    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3150    # mode.  It turns out that the SunPro C++ compiler does not properly
3151    # handle `-M -o', and we need to detect this.
3152    if depmode=$depmode \
3153       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3154       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3155       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3156         >/dev/null 2>conftest.err &&
3157       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3158       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3159       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3160      # icc doesn't choke on unknown options, it will just issue warnings
3161      # or remarks (even with -Werror).  So we grep stderr for any message
3162      # that says an option was ignored or not supported.
3163      # When given -MP, icc 7.0 and 7.1 complain thusly:
3164      #   icc: Command line warning: ignoring option '-M'; no argument required
3165      # The diagnosis changed in icc 8.0:
3166      #   icc: Command line remark: option '-MP' not supported
3167      if (grep 'ignoring option' conftest.err ||
3168          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3169        am_cv_CC_dependencies_compiler_type=$depmode
3170        break
3171      fi
3172    fi
3173  done
3174
3175  cd ..
3176  rm -rf conftest.dir
3177else
3178  am_cv_CC_dependencies_compiler_type=none
3179fi
3180
3181fi
3182echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3183echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3184CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3185
3186
3187
3188if
3189  test "x$enable_dependency_tracking" != xno \
3190  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3191  am__fastdepCC_TRUE=
3192  am__fastdepCC_FALSE='#'
3193else
3194  am__fastdepCC_TRUE='#'
3195  am__fastdepCC_FALSE=
3196fi
3197
3198
3199
3200cat >>confdefs.h <<\_ACEOF
3201#define _GNU_SOURCE 1
3202_ACEOF
3203
3204
3205
3206
3207echo "$as_me:$LINENO: checking for primary include directory" >&5
3208echo $ECHO_N "checking for primary include directory... $ECHO_C" >&6
3209includedir=/usr/include
3210if test -n "$GCC"
3211then
3212	>conftest.c
3213	new_includedir=`
3214		$CC -v -E conftest.c 2>&1 | $AWK '
3215			/^End of search list/ { print last; exit }
3216			{ last = $1 }
3217		'
3218	`
3219	rm -f conftest.c
3220	if test -n "$new_includedir" && test -d "$new_includedir"
3221	then
3222		includedir=$new_includedir
3223	fi
3224fi
3225echo "$as_me:$LINENO: result: $includedir" >&5
3226echo "${ECHO_T}$includedir" >&6
3227
3228
3229if test "x$opsys" = "xsunos4" && test "x$arch" = "xsparc"
3230then
3231	echo "$as_me:$LINENO: checking for valid machine include directory" >&5
3232echo $ECHO_N "checking for valid machine include directory... $ECHO_C" >&6
3233	if test -d "$includedir/sun4"
3234	then
3235		rm -f machine
3236		ln -s $includedir/sun4 machine
3237		echo "$as_me:$LINENO: result: yes" >&5
3238echo "${ECHO_T}yes" >&6
3239
3240cat >>confdefs.h <<\_ACEOF
3241#define SUNOS4_KERNEL_ARCH_KLUDGE 1
3242_ACEOF
3243
3244	else
3245		echo "$as_me:$LINENO: result: no" >&5
3246echo "${ECHO_T}no" >&6
3247	fi
3248fi
3249
3250
3251if test -z "$WARNFLAGS"
3252then
3253	if test -n "$GCC"
3254	then
3255		# If we're using gcc we want warning flags.
3256		WARNFLAGS=-Wall
3257	fi
3258fi
3259
3260if test "x$opsys" = "xsunos4"
3261then
3262	if test -n "$GCC"
3263	then
3264		# SunOS 4.x header files don't declare int functions.
3265		WARNFLAGS="$WARNFLAGS -Wno-implicit"
3266	fi
3267fi
3268
3269ac_ext=c
3270ac_cpp='$CPP $CPPFLAGS'
3271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273ac_compiler_gnu=$ac_cv_c_compiler_gnu
3274echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3275echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3276# On Suns, sometimes $CPP names a directory.
3277if test -n "$CPP" && test -d "$CPP"; then
3278  CPP=
3279fi
3280if test -z "$CPP"; then
3281  if test "${ac_cv_prog_CPP+set}" = set; then
3282  echo $ECHO_N "(cached) $ECHO_C" >&6
3283else
3284      # Double quotes because CPP needs to be expanded
3285    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3286    do
3287      ac_preproc_ok=false
3288for ac_c_preproc_warn_flag in '' yes
3289do
3290  # Use a header file that comes with gcc, so configuring glibc
3291  # with a fresh cross-compiler works.
3292  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3293  # <limits.h> exists even on freestanding compilers.
3294  # On the NeXT, cc -E runs the code through the compiler's parser,
3295  # not just through cpp. "Syntax error" is here to catch this case.
3296  cat >conftest.$ac_ext <<_ACEOF
3297/* confdefs.h.  */
3298_ACEOF
3299cat confdefs.h >>conftest.$ac_ext
3300cat >>conftest.$ac_ext <<_ACEOF
3301/* end confdefs.h.  */
3302#ifdef __STDC__
3303# include <limits.h>
3304#else
3305# include <assert.h>
3306#endif
3307		     Syntax error
3308_ACEOF
3309if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3310  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3311  ac_status=$?
3312  grep -v '^ *+' conftest.er1 >conftest.err
3313  rm -f conftest.er1
3314  cat conftest.err >&5
3315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316  (exit $ac_status); } >/dev/null; then
3317  if test -s conftest.err; then
3318    ac_cpp_err=$ac_c_preproc_warn_flag
3319    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3320  else
3321    ac_cpp_err=
3322  fi
3323else
3324  ac_cpp_err=yes
3325fi
3326if test -z "$ac_cpp_err"; then
3327  :
3328else
3329  echo "$as_me: failed program was:" >&5
3330sed 's/^/| /' conftest.$ac_ext >&5
3331
3332  # Broken: fails on valid input.
3333continue
3334fi
3335rm -f conftest.err conftest.$ac_ext
3336
3337  # OK, works on sane cases.  Now check whether non-existent headers
3338  # can be detected and how.
3339  cat >conftest.$ac_ext <<_ACEOF
3340/* confdefs.h.  */
3341_ACEOF
3342cat confdefs.h >>conftest.$ac_ext
3343cat >>conftest.$ac_ext <<_ACEOF
3344/* end confdefs.h.  */
3345#include <ac_nonexistent.h>
3346_ACEOF
3347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3348  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3349  ac_status=$?
3350  grep -v '^ *+' conftest.er1 >conftest.err
3351  rm -f conftest.er1
3352  cat conftest.err >&5
3353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354  (exit $ac_status); } >/dev/null; then
3355  if test -s conftest.err; then
3356    ac_cpp_err=$ac_c_preproc_warn_flag
3357    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3358  else
3359    ac_cpp_err=
3360  fi
3361else
3362  ac_cpp_err=yes
3363fi
3364if test -z "$ac_cpp_err"; then
3365  # Broken: success on invalid input.
3366continue
3367else
3368  echo "$as_me: failed program was:" >&5
3369sed 's/^/| /' conftest.$ac_ext >&5
3370
3371  # Passes both tests.
3372ac_preproc_ok=:
3373break
3374fi
3375rm -f conftest.err conftest.$ac_ext
3376
3377done
3378# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3379rm -f conftest.err conftest.$ac_ext
3380if $ac_preproc_ok; then
3381  break
3382fi
3383
3384    done
3385    ac_cv_prog_CPP=$CPP
3386
3387fi
3388  CPP=$ac_cv_prog_CPP
3389else
3390  ac_cv_prog_CPP=$CPP
3391fi
3392echo "$as_me:$LINENO: result: $CPP" >&5
3393echo "${ECHO_T}$CPP" >&6
3394ac_preproc_ok=false
3395for ac_c_preproc_warn_flag in '' yes
3396do
3397  # Use a header file that comes with gcc, so configuring glibc
3398  # with a fresh cross-compiler works.
3399  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3400  # <limits.h> exists even on freestanding compilers.
3401  # On the NeXT, cc -E runs the code through the compiler's parser,
3402  # not just through cpp. "Syntax error" is here to catch this case.
3403  cat >conftest.$ac_ext <<_ACEOF
3404/* confdefs.h.  */
3405_ACEOF
3406cat confdefs.h >>conftest.$ac_ext
3407cat >>conftest.$ac_ext <<_ACEOF
3408/* end confdefs.h.  */
3409#ifdef __STDC__
3410# include <limits.h>
3411#else
3412# include <assert.h>
3413#endif
3414		     Syntax error
3415_ACEOF
3416if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3417  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3418  ac_status=$?
3419  grep -v '^ *+' conftest.er1 >conftest.err
3420  rm -f conftest.er1
3421  cat conftest.err >&5
3422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423  (exit $ac_status); } >/dev/null; then
3424  if test -s conftest.err; then
3425    ac_cpp_err=$ac_c_preproc_warn_flag
3426    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3427  else
3428    ac_cpp_err=
3429  fi
3430else
3431  ac_cpp_err=yes
3432fi
3433if test -z "$ac_cpp_err"; then
3434  :
3435else
3436  echo "$as_me: failed program was:" >&5
3437sed 's/^/| /' conftest.$ac_ext >&5
3438
3439  # Broken: fails on valid input.
3440continue
3441fi
3442rm -f conftest.err conftest.$ac_ext
3443
3444  # OK, works on sane cases.  Now check whether non-existent headers
3445  # can be detected and how.
3446  cat >conftest.$ac_ext <<_ACEOF
3447/* confdefs.h.  */
3448_ACEOF
3449cat confdefs.h >>conftest.$ac_ext
3450cat >>conftest.$ac_ext <<_ACEOF
3451/* end confdefs.h.  */
3452#include <ac_nonexistent.h>
3453_ACEOF
3454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3455  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3456  ac_status=$?
3457  grep -v '^ *+' conftest.er1 >conftest.err
3458  rm -f conftest.er1
3459  cat conftest.err >&5
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); } >/dev/null; then
3462  if test -s conftest.err; then
3463    ac_cpp_err=$ac_c_preproc_warn_flag
3464    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3465  else
3466    ac_cpp_err=
3467  fi
3468else
3469  ac_cpp_err=yes
3470fi
3471if test -z "$ac_cpp_err"; then
3472  # Broken: success on invalid input.
3473continue
3474else
3475  echo "$as_me: failed program was:" >&5
3476sed 's/^/| /' conftest.$ac_ext >&5
3477
3478  # Passes both tests.
3479ac_preproc_ok=:
3480break
3481fi
3482rm -f conftest.err conftest.$ac_ext
3483
3484done
3485# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3486rm -f conftest.err conftest.$ac_ext
3487if $ac_preproc_ok; then
3488  :
3489else
3490  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3491See \`config.log' for more details." >&5
3492echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3493See \`config.log' for more details." >&2;}
3494   { (exit 1); exit 1; }; }
3495fi
3496
3497ac_ext=c
3498ac_cpp='$CPP $CPPFLAGS'
3499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502
3503
3504
3505echo "$as_me:$LINENO: checking for egrep" >&5
3506echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3507if test "${ac_cv_prog_egrep+set}" = set; then
3508  echo $ECHO_N "(cached) $ECHO_C" >&6
3509else
3510  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3511    then ac_cv_prog_egrep='grep -E'
3512    else ac_cv_prog_egrep='egrep'
3513    fi
3514fi
3515echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3516echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3517 EGREP=$ac_cv_prog_egrep
3518
3519
3520if test $ac_cv_c_compiler_gnu = yes; then
3521    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3522echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3523if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3524  echo $ECHO_N "(cached) $ECHO_C" >&6
3525else
3526    ac_pattern="Autoconf.*'x'"
3527  cat >conftest.$ac_ext <<_ACEOF
3528/* confdefs.h.  */
3529_ACEOF
3530cat confdefs.h >>conftest.$ac_ext
3531cat >>conftest.$ac_ext <<_ACEOF
3532/* end confdefs.h.  */
3533#include <sgtty.h>
3534Autoconf TIOCGETP
3535_ACEOF
3536if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3537  $EGREP "$ac_pattern" >/dev/null 2>&1; then
3538  ac_cv_prog_gcc_traditional=yes
3539else
3540  ac_cv_prog_gcc_traditional=no
3541fi
3542rm -f conftest*
3543
3544
3545  if test $ac_cv_prog_gcc_traditional = no; then
3546    cat >conftest.$ac_ext <<_ACEOF
3547/* confdefs.h.  */
3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
3551/* end confdefs.h.  */
3552#include <termio.h>
3553Autoconf TCGETA
3554_ACEOF
3555if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3556  $EGREP "$ac_pattern" >/dev/null 2>&1; then
3557  ac_cv_prog_gcc_traditional=yes
3558fi
3559rm -f conftest*
3560
3561  fi
3562fi
3563echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3564echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3565  if test $ac_cv_prog_gcc_traditional = yes; then
3566    CC="$CC -traditional"
3567  fi
3568fi
3569
3570# Find a good install program.  We prefer a C program (faster),
3571# so one script is as good as another.  But avoid the broken or
3572# incompatible versions:
3573# SysV /etc/install, /usr/sbin/install
3574# SunOS /usr/etc/install
3575# IRIX /sbin/install
3576# AIX /bin/install
3577# AmigaOS /C/install, which installs bootblocks on floppy discs
3578# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3579# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3580# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3581# OS/2's system install, which has a completely different semantic
3582# ./install, which can be erroneously created by make from ./install.sh.
3583echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3584echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3585if test -z "$INSTALL"; then
3586if test "${ac_cv_path_install+set}" = set; then
3587  echo $ECHO_N "(cached) $ECHO_C" >&6
3588else
3589  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590for as_dir in $PATH
3591do
3592  IFS=$as_save_IFS
3593  test -z "$as_dir" && as_dir=.
3594  # Account for people who put trailing slashes in PATH elements.
3595case $as_dir/ in
3596  ./ | .// | /cC/* | \
3597  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3598  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3599  /usr/ucb/* ) ;;
3600  *)
3601    # OSF1 and SCO ODT 3.0 have their own names for install.
3602    # Don't use installbsd from OSF since it installs stuff as root
3603    # by default.
3604    for ac_prog in ginstall scoinst install; do
3605      for ac_exec_ext in '' $ac_executable_extensions; do
3606	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3607	  if test $ac_prog = install &&
3608	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3609	    # AIX install.  It has an incompatible calling convention.
3610	    :
3611	  elif test $ac_prog = install &&
3612	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3613	    # program-specific install script used by HP pwplus--don't use.
3614	    :
3615	  else
3616	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3617	    break 3
3618	  fi
3619	fi
3620      done
3621    done
3622    ;;
3623esac
3624done
3625
3626
3627fi
3628  if test "${ac_cv_path_install+set}" = set; then
3629    INSTALL=$ac_cv_path_install
3630  else
3631    # As a last resort, use the slow shell script.  We don't cache a
3632    # path for INSTALL within a source directory, because that will
3633    # break other packages using the cache if that directory is
3634    # removed, or if the path is relative.
3635    INSTALL=$ac_install_sh
3636  fi
3637fi
3638echo "$as_me:$LINENO: result: $INSTALL" >&5
3639echo "${ECHO_T}$INSTALL" >&6
3640
3641# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3642# It thinks the first close brace ends the variable substitution.
3643test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3644
3645test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3646
3647test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3648
3649echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3650echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3651if test "${ac_cv_c_const+set}" = set; then
3652  echo $ECHO_N "(cached) $ECHO_C" >&6
3653else
3654  cat >conftest.$ac_ext <<_ACEOF
3655/* confdefs.h.  */
3656_ACEOF
3657cat confdefs.h >>conftest.$ac_ext
3658cat >>conftest.$ac_ext <<_ACEOF
3659/* end confdefs.h.  */
3660
3661int
3662main ()
3663{
3664/* FIXME: Include the comments suggested by Paul. */
3665#ifndef __cplusplus
3666  /* Ultrix mips cc rejects this.  */
3667  typedef int charset[2];
3668  const charset x;
3669  /* SunOS 4.1.1 cc rejects this.  */
3670  char const *const *ccp;
3671  char **p;
3672  /* NEC SVR4.0.2 mips cc rejects this.  */
3673  struct point {int x, y;};
3674  static struct point const zero = {0,0};
3675  /* AIX XL C 1.02.0.0 rejects this.
3676     It does not let you subtract one const X* pointer from another in
3677     an arm of an if-expression whose if-part is not a constant
3678     expression */
3679  const char *g = "string";
3680  ccp = &g + (g ? g-g : 0);
3681  /* HPUX 7.0 cc rejects these. */
3682  ++ccp;
3683  p = (char**) ccp;
3684  ccp = (char const *const *) p;
3685  { /* SCO 3.2v4 cc rejects this.  */
3686    char *t;
3687    char const *s = 0 ? (char *) 0 : (char const *) 0;
3688
3689    *t++ = 0;
3690  }
3691  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3692    int x[] = {25, 17};
3693    const int *foo = &x[0];
3694    ++foo;
3695  }
3696  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3697    typedef const int *iptr;
3698    iptr p = 0;
3699    ++p;
3700  }
3701  { /* AIX XL C 1.02.0.0 rejects this saying
3702       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3703    struct s { int j; const int *ap[3]; };
3704    struct s *b; b->j = 5;
3705  }
3706  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3707    const int foo = 10;
3708  }
3709#endif
3710
3711  ;
3712  return 0;
3713}
3714_ACEOF
3715rm -f conftest.$ac_objext
3716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3717  (eval $ac_compile) 2>conftest.er1
3718  ac_status=$?
3719  grep -v '^ *+' conftest.er1 >conftest.err
3720  rm -f conftest.er1
3721  cat conftest.err >&5
3722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723  (exit $ac_status); } &&
3724	 { ac_try='test -z "$ac_c_werror_flag"
3725			 || test ! -s conftest.err'
3726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727  (eval $ac_try) 2>&5
3728  ac_status=$?
3729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730  (exit $ac_status); }; } &&
3731	 { ac_try='test -s conftest.$ac_objext'
3732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733  (eval $ac_try) 2>&5
3734  ac_status=$?
3735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736  (exit $ac_status); }; }; then
3737  ac_cv_c_const=yes
3738else
3739  echo "$as_me: failed program was:" >&5
3740sed 's/^/| /' conftest.$ac_ext >&5
3741
3742ac_cv_c_const=no
3743fi
3744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3745fi
3746echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3747echo "${ECHO_T}$ac_cv_c_const" >&6
3748if test $ac_cv_c_const = no; then
3749
3750cat >>confdefs.h <<\_ACEOF
3751#define const
3752_ACEOF
3753
3754fi
3755
3756echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3757echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3758if test "${ac_cv_header_stdc+set}" = set; then
3759  echo $ECHO_N "(cached) $ECHO_C" >&6
3760else
3761  cat >conftest.$ac_ext <<_ACEOF
3762/* confdefs.h.  */
3763_ACEOF
3764cat confdefs.h >>conftest.$ac_ext
3765cat >>conftest.$ac_ext <<_ACEOF
3766/* end confdefs.h.  */
3767#include <stdlib.h>
3768#include <stdarg.h>
3769#include <string.h>
3770#include <float.h>
3771
3772int
3773main ()
3774{
3775
3776  ;
3777  return 0;
3778}
3779_ACEOF
3780rm -f conftest.$ac_objext
3781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3782  (eval $ac_compile) 2>conftest.er1
3783  ac_status=$?
3784  grep -v '^ *+' conftest.er1 >conftest.err
3785  rm -f conftest.er1
3786  cat conftest.err >&5
3787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788  (exit $ac_status); } &&
3789	 { ac_try='test -z "$ac_c_werror_flag"
3790			 || test ! -s conftest.err'
3791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792  (eval $ac_try) 2>&5
3793  ac_status=$?
3794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795  (exit $ac_status); }; } &&
3796	 { ac_try='test -s conftest.$ac_objext'
3797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798  (eval $ac_try) 2>&5
3799  ac_status=$?
3800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801  (exit $ac_status); }; }; then
3802  ac_cv_header_stdc=yes
3803else
3804  echo "$as_me: failed program was:" >&5
3805sed 's/^/| /' conftest.$ac_ext >&5
3806
3807ac_cv_header_stdc=no
3808fi
3809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3810
3811if test $ac_cv_header_stdc = yes; then
3812  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3813  cat >conftest.$ac_ext <<_ACEOF
3814/* confdefs.h.  */
3815_ACEOF
3816cat confdefs.h >>conftest.$ac_ext
3817cat >>conftest.$ac_ext <<_ACEOF
3818/* end confdefs.h.  */
3819#include <string.h>
3820
3821_ACEOF
3822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3823  $EGREP "memchr" >/dev/null 2>&1; then
3824  :
3825else
3826  ac_cv_header_stdc=no
3827fi
3828rm -f conftest*
3829
3830fi
3831
3832if test $ac_cv_header_stdc = yes; then
3833  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3834  cat >conftest.$ac_ext <<_ACEOF
3835/* confdefs.h.  */
3836_ACEOF
3837cat confdefs.h >>conftest.$ac_ext
3838cat >>conftest.$ac_ext <<_ACEOF
3839/* end confdefs.h.  */
3840#include <stdlib.h>
3841
3842_ACEOF
3843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3844  $EGREP "free" >/dev/null 2>&1; then
3845  :
3846else
3847  ac_cv_header_stdc=no
3848fi
3849rm -f conftest*
3850
3851fi
3852
3853if test $ac_cv_header_stdc = yes; then
3854  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3855  if test "$cross_compiling" = yes; then
3856  :
3857else
3858  cat >conftest.$ac_ext <<_ACEOF
3859/* confdefs.h.  */
3860_ACEOF
3861cat confdefs.h >>conftest.$ac_ext
3862cat >>conftest.$ac_ext <<_ACEOF
3863/* end confdefs.h.  */
3864#include <ctype.h>
3865#if ((' ' & 0x0FF) == 0x020)
3866# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3867# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3868#else
3869# define ISLOWER(c) \
3870		   (('a' <= (c) && (c) <= 'i') \
3871		     || ('j' <= (c) && (c) <= 'r') \
3872		     || ('s' <= (c) && (c) <= 'z'))
3873# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3874#endif
3875
3876#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3877int
3878main ()
3879{
3880  int i;
3881  for (i = 0; i < 256; i++)
3882    if (XOR (islower (i), ISLOWER (i))
3883	|| toupper (i) != TOUPPER (i))
3884      exit(2);
3885  exit (0);
3886}
3887_ACEOF
3888rm -f conftest$ac_exeext
3889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3890  (eval $ac_link) 2>&5
3891  ac_status=$?
3892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895  (eval $ac_try) 2>&5
3896  ac_status=$?
3897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898  (exit $ac_status); }; }; then
3899  :
3900else
3901  echo "$as_me: program exited with status $ac_status" >&5
3902echo "$as_me: failed program was:" >&5
3903sed 's/^/| /' conftest.$ac_ext >&5
3904
3905( exit $ac_status )
3906ac_cv_header_stdc=no
3907fi
3908rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3909fi
3910fi
3911fi
3912echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3913echo "${ECHO_T}$ac_cv_header_stdc" >&6
3914if test $ac_cv_header_stdc = yes; then
3915
3916cat >>confdefs.h <<\_ACEOF
3917#define STDC_HEADERS 1
3918_ACEOF
3919
3920fi
3921
3922
3923
3924
3925
3926
3927ac_header_dirent=no
3928for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3929  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3930echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3931echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3932if eval "test \"\${$as_ac_Header+set}\" = set"; then
3933  echo $ECHO_N "(cached) $ECHO_C" >&6
3934else
3935  cat >conftest.$ac_ext <<_ACEOF
3936/* confdefs.h.  */
3937_ACEOF
3938cat confdefs.h >>conftest.$ac_ext
3939cat >>conftest.$ac_ext <<_ACEOF
3940/* end confdefs.h.  */
3941#include <sys/types.h>
3942#include <$ac_hdr>
3943
3944int
3945main ()
3946{
3947if ((DIR *) 0)
3948return 0;
3949  ;
3950  return 0;
3951}
3952_ACEOF
3953rm -f conftest.$ac_objext
3954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3955  (eval $ac_compile) 2>conftest.er1
3956  ac_status=$?
3957  grep -v '^ *+' conftest.er1 >conftest.err
3958  rm -f conftest.er1
3959  cat conftest.err >&5
3960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961  (exit $ac_status); } &&
3962	 { ac_try='test -z "$ac_c_werror_flag"
3963			 || test ! -s conftest.err'
3964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965  (eval $ac_try) 2>&5
3966  ac_status=$?
3967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968  (exit $ac_status); }; } &&
3969	 { ac_try='test -s conftest.$ac_objext'
3970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3971  (eval $ac_try) 2>&5
3972  ac_status=$?
3973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974  (exit $ac_status); }; }; then
3975  eval "$as_ac_Header=yes"
3976else
3977  echo "$as_me: failed program was:" >&5
3978sed 's/^/| /' conftest.$ac_ext >&5
3979
3980eval "$as_ac_Header=no"
3981fi
3982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3983fi
3984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3985echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3986if test `eval echo '${'$as_ac_Header'}'` = yes; then
3987  cat >>confdefs.h <<_ACEOF
3988#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3989_ACEOF
3990
3991ac_header_dirent=$ac_hdr; break
3992fi
3993
3994done
3995# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3996if test $ac_header_dirent = dirent.h; then
3997  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3998echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3999if test "${ac_cv_search_opendir+set}" = set; then
4000  echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002  ac_func_search_save_LIBS=$LIBS
4003ac_cv_search_opendir=no
4004cat >conftest.$ac_ext <<_ACEOF
4005/* confdefs.h.  */
4006_ACEOF
4007cat confdefs.h >>conftest.$ac_ext
4008cat >>conftest.$ac_ext <<_ACEOF
4009/* end confdefs.h.  */
4010
4011/* Override any gcc2 internal prototype to avoid an error.  */
4012#ifdef __cplusplus
4013extern "C"
4014#endif
4015/* We use char because int might match the return type of a gcc2
4016   builtin and then its argument prototype would still apply.  */
4017char opendir ();
4018int
4019main ()
4020{
4021opendir ();
4022  ;
4023  return 0;
4024}
4025_ACEOF
4026rm -f conftest.$ac_objext conftest$ac_exeext
4027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4028  (eval $ac_link) 2>conftest.er1
4029  ac_status=$?
4030  grep -v '^ *+' conftest.er1 >conftest.err
4031  rm -f conftest.er1
4032  cat conftest.err >&5
4033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034  (exit $ac_status); } &&
4035	 { ac_try='test -z "$ac_c_werror_flag"
4036			 || test ! -s conftest.err'
4037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038  (eval $ac_try) 2>&5
4039  ac_status=$?
4040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041  (exit $ac_status); }; } &&
4042	 { ac_try='test -s conftest$ac_exeext'
4043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044  (eval $ac_try) 2>&5
4045  ac_status=$?
4046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047  (exit $ac_status); }; }; then
4048  ac_cv_search_opendir="none required"
4049else
4050  echo "$as_me: failed program was:" >&5
4051sed 's/^/| /' conftest.$ac_ext >&5
4052
4053fi
4054rm -f conftest.err conftest.$ac_objext \
4055      conftest$ac_exeext conftest.$ac_ext
4056if test "$ac_cv_search_opendir" = no; then
4057  for ac_lib in dir; do
4058    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4059    cat >conftest.$ac_ext <<_ACEOF
4060/* confdefs.h.  */
4061_ACEOF
4062cat confdefs.h >>conftest.$ac_ext
4063cat >>conftest.$ac_ext <<_ACEOF
4064/* end confdefs.h.  */
4065
4066/* Override any gcc2 internal prototype to avoid an error.  */
4067#ifdef __cplusplus
4068extern "C"
4069#endif
4070/* We use char because int might match the return type of a gcc2
4071   builtin and then its argument prototype would still apply.  */
4072char opendir ();
4073int
4074main ()
4075{
4076opendir ();
4077  ;
4078  return 0;
4079}
4080_ACEOF
4081rm -f conftest.$ac_objext conftest$ac_exeext
4082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4083  (eval $ac_link) 2>conftest.er1
4084  ac_status=$?
4085  grep -v '^ *+' conftest.er1 >conftest.err
4086  rm -f conftest.er1
4087  cat conftest.err >&5
4088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089  (exit $ac_status); } &&
4090	 { ac_try='test -z "$ac_c_werror_flag"
4091			 || test ! -s conftest.err'
4092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093  (eval $ac_try) 2>&5
4094  ac_status=$?
4095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096  (exit $ac_status); }; } &&
4097	 { ac_try='test -s conftest$ac_exeext'
4098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099  (eval $ac_try) 2>&5
4100  ac_status=$?
4101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102  (exit $ac_status); }; }; then
4103  ac_cv_search_opendir="-l$ac_lib"
4104break
4105else
4106  echo "$as_me: failed program was:" >&5
4107sed 's/^/| /' conftest.$ac_ext >&5
4108
4109fi
4110rm -f conftest.err conftest.$ac_objext \
4111      conftest$ac_exeext conftest.$ac_ext
4112  done
4113fi
4114LIBS=$ac_func_search_save_LIBS
4115fi
4116echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4117echo "${ECHO_T}$ac_cv_search_opendir" >&6
4118if test "$ac_cv_search_opendir" != no; then
4119  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4120
4121fi
4122
4123else
4124  echo "$as_me:$LINENO: checking for library containing opendir" >&5
4125echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4126if test "${ac_cv_search_opendir+set}" = set; then
4127  echo $ECHO_N "(cached) $ECHO_C" >&6
4128else
4129  ac_func_search_save_LIBS=$LIBS
4130ac_cv_search_opendir=no
4131cat >conftest.$ac_ext <<_ACEOF
4132/* confdefs.h.  */
4133_ACEOF
4134cat confdefs.h >>conftest.$ac_ext
4135cat >>conftest.$ac_ext <<_ACEOF
4136/* end confdefs.h.  */
4137
4138/* Override any gcc2 internal prototype to avoid an error.  */
4139#ifdef __cplusplus
4140extern "C"
4141#endif
4142/* We use char because int might match the return type of a gcc2
4143   builtin and then its argument prototype would still apply.  */
4144char opendir ();
4145int
4146main ()
4147{
4148opendir ();
4149  ;
4150  return 0;
4151}
4152_ACEOF
4153rm -f conftest.$ac_objext conftest$ac_exeext
4154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4155  (eval $ac_link) 2>conftest.er1
4156  ac_status=$?
4157  grep -v '^ *+' conftest.er1 >conftest.err
4158  rm -f conftest.er1
4159  cat conftest.err >&5
4160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161  (exit $ac_status); } &&
4162	 { ac_try='test -z "$ac_c_werror_flag"
4163			 || test ! -s conftest.err'
4164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165  (eval $ac_try) 2>&5
4166  ac_status=$?
4167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168  (exit $ac_status); }; } &&
4169	 { ac_try='test -s conftest$ac_exeext'
4170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171  (eval $ac_try) 2>&5
4172  ac_status=$?
4173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174  (exit $ac_status); }; }; then
4175  ac_cv_search_opendir="none required"
4176else
4177  echo "$as_me: failed program was:" >&5
4178sed 's/^/| /' conftest.$ac_ext >&5
4179
4180fi
4181rm -f conftest.err conftest.$ac_objext \
4182      conftest$ac_exeext conftest.$ac_ext
4183if test "$ac_cv_search_opendir" = no; then
4184  for ac_lib in x; do
4185    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4186    cat >conftest.$ac_ext <<_ACEOF
4187/* confdefs.h.  */
4188_ACEOF
4189cat confdefs.h >>conftest.$ac_ext
4190cat >>conftest.$ac_ext <<_ACEOF
4191/* end confdefs.h.  */
4192
4193/* Override any gcc2 internal prototype to avoid an error.  */
4194#ifdef __cplusplus
4195extern "C"
4196#endif
4197/* We use char because int might match the return type of a gcc2
4198   builtin and then its argument prototype would still apply.  */
4199char opendir ();
4200int
4201main ()
4202{
4203opendir ();
4204  ;
4205  return 0;
4206}
4207_ACEOF
4208rm -f conftest.$ac_objext conftest$ac_exeext
4209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4210  (eval $ac_link) 2>conftest.er1
4211  ac_status=$?
4212  grep -v '^ *+' conftest.er1 >conftest.err
4213  rm -f conftest.er1
4214  cat conftest.err >&5
4215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216  (exit $ac_status); } &&
4217	 { ac_try='test -z "$ac_c_werror_flag"
4218			 || test ! -s conftest.err'
4219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220  (eval $ac_try) 2>&5
4221  ac_status=$?
4222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223  (exit $ac_status); }; } &&
4224	 { ac_try='test -s conftest$ac_exeext'
4225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226  (eval $ac_try) 2>&5
4227  ac_status=$?
4228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229  (exit $ac_status); }; }; then
4230  ac_cv_search_opendir="-l$ac_lib"
4231break
4232else
4233  echo "$as_me: failed program was:" >&5
4234sed 's/^/| /' conftest.$ac_ext >&5
4235
4236fi
4237rm -f conftest.err conftest.$ac_objext \
4238      conftest$ac_exeext conftest.$ac_ext
4239  done
4240fi
4241LIBS=$ac_func_search_save_LIBS
4242fi
4243echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4244echo "${ECHO_T}$ac_cv_search_opendir" >&6
4245if test "$ac_cv_search_opendir" != no; then
4246  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4247
4248fi
4249
4250fi
4251
4252echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
4253echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
4254if test "${ac_cv_header_stat_broken+set}" = set; then
4255  echo $ECHO_N "(cached) $ECHO_C" >&6
4256else
4257  cat >conftest.$ac_ext <<_ACEOF
4258/* confdefs.h.  */
4259_ACEOF
4260cat confdefs.h >>conftest.$ac_ext
4261cat >>conftest.$ac_ext <<_ACEOF
4262/* end confdefs.h.  */
4263#include <sys/types.h>
4264#include <sys/stat.h>
4265
4266#if defined(S_ISBLK) && defined(S_IFDIR)
4267# if S_ISBLK (S_IFDIR)
4268You lose.
4269# endif
4270#endif
4271
4272#if defined(S_ISBLK) && defined(S_IFCHR)
4273# if S_ISBLK (S_IFCHR)
4274You lose.
4275# endif
4276#endif
4277
4278#if defined(S_ISLNK) && defined(S_IFREG)
4279# if S_ISLNK (S_IFREG)
4280You lose.
4281# endif
4282#endif
4283
4284#if defined(S_ISSOCK) && defined(S_IFREG)
4285# if S_ISSOCK (S_IFREG)
4286You lose.
4287# endif
4288#endif
4289
4290_ACEOF
4291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4292  $EGREP "You lose" >/dev/null 2>&1; then
4293  ac_cv_header_stat_broken=yes
4294else
4295  ac_cv_header_stat_broken=no
4296fi
4297rm -f conftest*
4298
4299fi
4300echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
4301echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4302if test $ac_cv_header_stat_broken = yes; then
4303
4304cat >>confdefs.h <<\_ACEOF
4305#define STAT_MACROS_BROKEN 1
4306_ACEOF
4307
4308fi
4309
4310# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4321		  inttypes.h stdint.h unistd.h
4322do
4323as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4324echo "$as_me:$LINENO: checking for $ac_header" >&5
4325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4326if eval "test \"\${$as_ac_Header+set}\" = set"; then
4327  echo $ECHO_N "(cached) $ECHO_C" >&6
4328else
4329  cat >conftest.$ac_ext <<_ACEOF
4330/* confdefs.h.  */
4331_ACEOF
4332cat confdefs.h >>conftest.$ac_ext
4333cat >>conftest.$ac_ext <<_ACEOF
4334/* end confdefs.h.  */
4335$ac_includes_default
4336
4337#include <$ac_header>
4338_ACEOF
4339rm -f conftest.$ac_objext
4340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4341  (eval $ac_compile) 2>conftest.er1
4342  ac_status=$?
4343  grep -v '^ *+' conftest.er1 >conftest.err
4344  rm -f conftest.er1
4345  cat conftest.err >&5
4346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347  (exit $ac_status); } &&
4348	 { ac_try='test -z "$ac_c_werror_flag"
4349			 || test ! -s conftest.err'
4350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351  (eval $ac_try) 2>&5
4352  ac_status=$?
4353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354  (exit $ac_status); }; } &&
4355	 { ac_try='test -s conftest.$ac_objext'
4356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357  (eval $ac_try) 2>&5
4358  ac_status=$?
4359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360  (exit $ac_status); }; }; then
4361  eval "$as_ac_Header=yes"
4362else
4363  echo "$as_me: failed program was:" >&5
4364sed 's/^/| /' conftest.$ac_ext >&5
4365
4366eval "$as_ac_Header=no"
4367fi
4368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4369fi
4370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4372if test `eval echo '${'$as_ac_Header'}'` = yes; then
4373  cat >>confdefs.h <<_ACEOF
4374#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4375_ACEOF
4376
4377fi
4378
4379done
4380
4381
4382echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
4383echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4384if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
4385  echo $ECHO_N "(cached) $ECHO_C" >&6
4386else
4387  cat >conftest.$ac_ext <<_ACEOF
4388/* confdefs.h.  */
4389_ACEOF
4390cat confdefs.h >>conftest.$ac_ext
4391cat >>conftest.$ac_ext <<_ACEOF
4392/* end confdefs.h.  */
4393$ac_includes_default
4394int
4395main ()
4396{
4397static struct stat ac_aggr;
4398if (ac_aggr.st_blksize)
4399return 0;
4400  ;
4401  return 0;
4402}
4403_ACEOF
4404rm -f conftest.$ac_objext
4405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406  (eval $ac_compile) 2>conftest.er1
4407  ac_status=$?
4408  grep -v '^ *+' conftest.er1 >conftest.err
4409  rm -f conftest.er1
4410  cat conftest.err >&5
4411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412  (exit $ac_status); } &&
4413	 { ac_try='test -z "$ac_c_werror_flag"
4414			 || test ! -s conftest.err'
4415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416  (eval $ac_try) 2>&5
4417  ac_status=$?
4418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419  (exit $ac_status); }; } &&
4420	 { ac_try='test -s conftest.$ac_objext'
4421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422  (eval $ac_try) 2>&5
4423  ac_status=$?
4424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425  (exit $ac_status); }; }; then
4426  ac_cv_member_struct_stat_st_blksize=yes
4427else
4428  echo "$as_me: failed program was:" >&5
4429sed 's/^/| /' conftest.$ac_ext >&5
4430
4431cat >conftest.$ac_ext <<_ACEOF
4432/* confdefs.h.  */
4433_ACEOF
4434cat confdefs.h >>conftest.$ac_ext
4435cat >>conftest.$ac_ext <<_ACEOF
4436/* end confdefs.h.  */
4437$ac_includes_default
4438int
4439main ()
4440{
4441static struct stat ac_aggr;
4442if (sizeof ac_aggr.st_blksize)
4443return 0;
4444  ;
4445  return 0;
4446}
4447_ACEOF
4448rm -f conftest.$ac_objext
4449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450  (eval $ac_compile) 2>conftest.er1
4451  ac_status=$?
4452  grep -v '^ *+' conftest.er1 >conftest.err
4453  rm -f conftest.er1
4454  cat conftest.err >&5
4455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456  (exit $ac_status); } &&
4457	 { ac_try='test -z "$ac_c_werror_flag"
4458			 || test ! -s conftest.err'
4459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460  (eval $ac_try) 2>&5
4461  ac_status=$?
4462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463  (exit $ac_status); }; } &&
4464	 { ac_try='test -s conftest.$ac_objext'
4465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466  (eval $ac_try) 2>&5
4467  ac_status=$?
4468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469  (exit $ac_status); }; }; then
4470  ac_cv_member_struct_stat_st_blksize=yes
4471else
4472  echo "$as_me: failed program was:" >&5
4473sed 's/^/| /' conftest.$ac_ext >&5
4474
4475ac_cv_member_struct_stat_st_blksize=no
4476fi
4477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4478fi
4479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4480fi
4481echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
4482echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4483if test $ac_cv_member_struct_stat_st_blksize = yes; then
4484
4485cat >>confdefs.h <<_ACEOF
4486#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
4487_ACEOF
4488
4489
4490fi
4491echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
4492echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4493if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
4494  echo $ECHO_N "(cached) $ECHO_C" >&6
4495else
4496  cat >conftest.$ac_ext <<_ACEOF
4497/* confdefs.h.  */
4498_ACEOF
4499cat confdefs.h >>conftest.$ac_ext
4500cat >>conftest.$ac_ext <<_ACEOF
4501/* end confdefs.h.  */
4502$ac_includes_default
4503int
4504main ()
4505{
4506static struct stat ac_aggr;
4507if (ac_aggr.st_blocks)
4508return 0;
4509  ;
4510  return 0;
4511}
4512_ACEOF
4513rm -f conftest.$ac_objext
4514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4515  (eval $ac_compile) 2>conftest.er1
4516  ac_status=$?
4517  grep -v '^ *+' conftest.er1 >conftest.err
4518  rm -f conftest.er1
4519  cat conftest.err >&5
4520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521  (exit $ac_status); } &&
4522	 { ac_try='test -z "$ac_c_werror_flag"
4523			 || test ! -s conftest.err'
4524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525  (eval $ac_try) 2>&5
4526  ac_status=$?
4527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528  (exit $ac_status); }; } &&
4529	 { ac_try='test -s conftest.$ac_objext'
4530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531  (eval $ac_try) 2>&5
4532  ac_status=$?
4533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534  (exit $ac_status); }; }; then
4535  ac_cv_member_struct_stat_st_blocks=yes
4536else
4537  echo "$as_me: failed program was:" >&5
4538sed 's/^/| /' conftest.$ac_ext >&5
4539
4540cat >conftest.$ac_ext <<_ACEOF
4541/* confdefs.h.  */
4542_ACEOF
4543cat confdefs.h >>conftest.$ac_ext
4544cat >>conftest.$ac_ext <<_ACEOF
4545/* end confdefs.h.  */
4546$ac_includes_default
4547int
4548main ()
4549{
4550static struct stat ac_aggr;
4551if (sizeof ac_aggr.st_blocks)
4552return 0;
4553  ;
4554  return 0;
4555}
4556_ACEOF
4557rm -f conftest.$ac_objext
4558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559  (eval $ac_compile) 2>conftest.er1
4560  ac_status=$?
4561  grep -v '^ *+' conftest.er1 >conftest.err
4562  rm -f conftest.er1
4563  cat conftest.err >&5
4564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565  (exit $ac_status); } &&
4566	 { ac_try='test -z "$ac_c_werror_flag"
4567			 || test ! -s conftest.err'
4568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569  (eval $ac_try) 2>&5
4570  ac_status=$?
4571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572  (exit $ac_status); }; } &&
4573	 { ac_try='test -s conftest.$ac_objext'
4574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575  (eval $ac_try) 2>&5
4576  ac_status=$?
4577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578  (exit $ac_status); }; }; then
4579  ac_cv_member_struct_stat_st_blocks=yes
4580else
4581  echo "$as_me: failed program was:" >&5
4582sed 's/^/| /' conftest.$ac_ext >&5
4583
4584ac_cv_member_struct_stat_st_blocks=no
4585fi
4586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4587fi
4588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4589fi
4590echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
4591echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4592if test $ac_cv_member_struct_stat_st_blocks = yes; then
4593
4594cat >>confdefs.h <<_ACEOF
4595#define HAVE_STRUCT_STAT_ST_BLOCKS 1
4596_ACEOF
4597
4598
4599fi
4600echo "$as_me:$LINENO: checking for struct stat.st_aclcnt" >&5
4601echo $ECHO_N "checking for struct stat.st_aclcnt... $ECHO_C" >&6
4602if test "${ac_cv_member_struct_stat_st_aclcnt+set}" = set; then
4603  echo $ECHO_N "(cached) $ECHO_C" >&6
4604else
4605  cat >conftest.$ac_ext <<_ACEOF
4606/* confdefs.h.  */
4607_ACEOF
4608cat confdefs.h >>conftest.$ac_ext
4609cat >>conftest.$ac_ext <<_ACEOF
4610/* end confdefs.h.  */
4611$ac_includes_default
4612int
4613main ()
4614{
4615static struct stat ac_aggr;
4616if (ac_aggr.st_aclcnt)
4617return 0;
4618  ;
4619  return 0;
4620}
4621_ACEOF
4622rm -f conftest.$ac_objext
4623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624  (eval $ac_compile) 2>conftest.er1
4625  ac_status=$?
4626  grep -v '^ *+' conftest.er1 >conftest.err
4627  rm -f conftest.er1
4628  cat conftest.err >&5
4629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630  (exit $ac_status); } &&
4631	 { ac_try='test -z "$ac_c_werror_flag"
4632			 || test ! -s conftest.err'
4633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634  (eval $ac_try) 2>&5
4635  ac_status=$?
4636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637  (exit $ac_status); }; } &&
4638	 { ac_try='test -s conftest.$ac_objext'
4639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640  (eval $ac_try) 2>&5
4641  ac_status=$?
4642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643  (exit $ac_status); }; }; then
4644  ac_cv_member_struct_stat_st_aclcnt=yes
4645else
4646  echo "$as_me: failed program was:" >&5
4647sed 's/^/| /' conftest.$ac_ext >&5
4648
4649cat >conftest.$ac_ext <<_ACEOF
4650/* confdefs.h.  */
4651_ACEOF
4652cat confdefs.h >>conftest.$ac_ext
4653cat >>conftest.$ac_ext <<_ACEOF
4654/* end confdefs.h.  */
4655$ac_includes_default
4656int
4657main ()
4658{
4659static struct stat ac_aggr;
4660if (sizeof ac_aggr.st_aclcnt)
4661return 0;
4662  ;
4663  return 0;
4664}
4665_ACEOF
4666rm -f conftest.$ac_objext
4667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668  (eval $ac_compile) 2>conftest.er1
4669  ac_status=$?
4670  grep -v '^ *+' conftest.er1 >conftest.err
4671  rm -f conftest.er1
4672  cat conftest.err >&5
4673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674  (exit $ac_status); } &&
4675	 { ac_try='test -z "$ac_c_werror_flag"
4676			 || test ! -s conftest.err'
4677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678  (eval $ac_try) 2>&5
4679  ac_status=$?
4680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681  (exit $ac_status); }; } &&
4682	 { ac_try='test -s conftest.$ac_objext'
4683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684  (eval $ac_try) 2>&5
4685  ac_status=$?
4686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687  (exit $ac_status); }; }; then
4688  ac_cv_member_struct_stat_st_aclcnt=yes
4689else
4690  echo "$as_me: failed program was:" >&5
4691sed 's/^/| /' conftest.$ac_ext >&5
4692
4693ac_cv_member_struct_stat_st_aclcnt=no
4694fi
4695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4696fi
4697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4698fi
4699echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_aclcnt" >&5
4700echo "${ECHO_T}$ac_cv_member_struct_stat_st_aclcnt" >&6
4701if test $ac_cv_member_struct_stat_st_aclcnt = yes; then
4702
4703cat >>confdefs.h <<_ACEOF
4704#define HAVE_STRUCT_STAT_ST_ACLCNT 1
4705_ACEOF
4706
4707
4708fi
4709echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
4710echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
4711if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
4712  echo $ECHO_N "(cached) $ECHO_C" >&6
4713else
4714  cat >conftest.$ac_ext <<_ACEOF
4715/* confdefs.h.  */
4716_ACEOF
4717cat confdefs.h >>conftest.$ac_ext
4718cat >>conftest.$ac_ext <<_ACEOF
4719/* end confdefs.h.  */
4720$ac_includes_default
4721int
4722main ()
4723{
4724static struct stat ac_aggr;
4725if (ac_aggr.st_flags)
4726return 0;
4727  ;
4728  return 0;
4729}
4730_ACEOF
4731rm -f conftest.$ac_objext
4732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733  (eval $ac_compile) 2>conftest.er1
4734  ac_status=$?
4735  grep -v '^ *+' conftest.er1 >conftest.err
4736  rm -f conftest.er1
4737  cat conftest.err >&5
4738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739  (exit $ac_status); } &&
4740	 { ac_try='test -z "$ac_c_werror_flag"
4741			 || test ! -s conftest.err'
4742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743  (eval $ac_try) 2>&5
4744  ac_status=$?
4745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746  (exit $ac_status); }; } &&
4747	 { ac_try='test -s conftest.$ac_objext'
4748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749  (eval $ac_try) 2>&5
4750  ac_status=$?
4751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752  (exit $ac_status); }; }; then
4753  ac_cv_member_struct_stat_st_flags=yes
4754else
4755  echo "$as_me: failed program was:" >&5
4756sed 's/^/| /' conftest.$ac_ext >&5
4757
4758cat >conftest.$ac_ext <<_ACEOF
4759/* confdefs.h.  */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h.  */
4764$ac_includes_default
4765int
4766main ()
4767{
4768static struct stat ac_aggr;
4769if (sizeof ac_aggr.st_flags)
4770return 0;
4771  ;
4772  return 0;
4773}
4774_ACEOF
4775rm -f conftest.$ac_objext
4776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777  (eval $ac_compile) 2>conftest.er1
4778  ac_status=$?
4779  grep -v '^ *+' conftest.er1 >conftest.err
4780  rm -f conftest.er1
4781  cat conftest.err >&5
4782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783  (exit $ac_status); } &&
4784	 { ac_try='test -z "$ac_c_werror_flag"
4785			 || test ! -s conftest.err'
4786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787  (eval $ac_try) 2>&5
4788  ac_status=$?
4789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790  (exit $ac_status); }; } &&
4791	 { ac_try='test -s conftest.$ac_objext'
4792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793  (eval $ac_try) 2>&5
4794  ac_status=$?
4795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796  (exit $ac_status); }; }; then
4797  ac_cv_member_struct_stat_st_flags=yes
4798else
4799  echo "$as_me: failed program was:" >&5
4800sed 's/^/| /' conftest.$ac_ext >&5
4801
4802ac_cv_member_struct_stat_st_flags=no
4803fi
4804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4805fi
4806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4807fi
4808echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
4809echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
4810if test $ac_cv_member_struct_stat_st_flags = yes; then
4811
4812cat >>confdefs.h <<_ACEOF
4813#define HAVE_STRUCT_STAT_ST_FLAGS 1
4814_ACEOF
4815
4816
4817fi
4818echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
4819echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
4820if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
4821  echo $ECHO_N "(cached) $ECHO_C" >&6
4822else
4823  cat >conftest.$ac_ext <<_ACEOF
4824/* confdefs.h.  */
4825_ACEOF
4826cat confdefs.h >>conftest.$ac_ext
4827cat >>conftest.$ac_ext <<_ACEOF
4828/* end confdefs.h.  */
4829$ac_includes_default
4830int
4831main ()
4832{
4833static struct stat ac_aggr;
4834if (ac_aggr.st_fstype)
4835return 0;
4836  ;
4837  return 0;
4838}
4839_ACEOF
4840rm -f conftest.$ac_objext
4841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4842  (eval $ac_compile) 2>conftest.er1
4843  ac_status=$?
4844  grep -v '^ *+' conftest.er1 >conftest.err
4845  rm -f conftest.er1
4846  cat conftest.err >&5
4847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848  (exit $ac_status); } &&
4849	 { ac_try='test -z "$ac_c_werror_flag"
4850			 || test ! -s conftest.err'
4851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852  (eval $ac_try) 2>&5
4853  ac_status=$?
4854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855  (exit $ac_status); }; } &&
4856	 { ac_try='test -s conftest.$ac_objext'
4857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858  (eval $ac_try) 2>&5
4859  ac_status=$?
4860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861  (exit $ac_status); }; }; then
4862  ac_cv_member_struct_stat_st_fstype=yes
4863else
4864  echo "$as_me: failed program was:" >&5
4865sed 's/^/| /' conftest.$ac_ext >&5
4866
4867cat >conftest.$ac_ext <<_ACEOF
4868/* confdefs.h.  */
4869_ACEOF
4870cat confdefs.h >>conftest.$ac_ext
4871cat >>conftest.$ac_ext <<_ACEOF
4872/* end confdefs.h.  */
4873$ac_includes_default
4874int
4875main ()
4876{
4877static struct stat ac_aggr;
4878if (sizeof ac_aggr.st_fstype)
4879return 0;
4880  ;
4881  return 0;
4882}
4883_ACEOF
4884rm -f conftest.$ac_objext
4885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886  (eval $ac_compile) 2>conftest.er1
4887  ac_status=$?
4888  grep -v '^ *+' conftest.er1 >conftest.err
4889  rm -f conftest.er1
4890  cat conftest.err >&5
4891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892  (exit $ac_status); } &&
4893	 { ac_try='test -z "$ac_c_werror_flag"
4894			 || test ! -s conftest.err'
4895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896  (eval $ac_try) 2>&5
4897  ac_status=$?
4898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899  (exit $ac_status); }; } &&
4900	 { ac_try='test -s conftest.$ac_objext'
4901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902  (eval $ac_try) 2>&5
4903  ac_status=$?
4904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905  (exit $ac_status); }; }; then
4906  ac_cv_member_struct_stat_st_fstype=yes
4907else
4908  echo "$as_me: failed program was:" >&5
4909sed 's/^/| /' conftest.$ac_ext >&5
4910
4911ac_cv_member_struct_stat_st_fstype=no
4912fi
4913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4914fi
4915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4916fi
4917echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
4918echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
4919if test $ac_cv_member_struct_stat_st_fstype = yes; then
4920
4921cat >>confdefs.h <<_ACEOF
4922#define HAVE_STRUCT_STAT_ST_FSTYPE 1
4923_ACEOF
4924
4925
4926fi
4927echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
4928echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
4929if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
4930  echo $ECHO_N "(cached) $ECHO_C" >&6
4931else
4932  cat >conftest.$ac_ext <<_ACEOF
4933/* confdefs.h.  */
4934_ACEOF
4935cat confdefs.h >>conftest.$ac_ext
4936cat >>conftest.$ac_ext <<_ACEOF
4937/* end confdefs.h.  */
4938$ac_includes_default
4939int
4940main ()
4941{
4942static struct stat ac_aggr;
4943if (ac_aggr.st_gen)
4944return 0;
4945  ;
4946  return 0;
4947}
4948_ACEOF
4949rm -f conftest.$ac_objext
4950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951  (eval $ac_compile) 2>conftest.er1
4952  ac_status=$?
4953  grep -v '^ *+' conftest.er1 >conftest.err
4954  rm -f conftest.er1
4955  cat conftest.err >&5
4956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957  (exit $ac_status); } &&
4958	 { ac_try='test -z "$ac_c_werror_flag"
4959			 || test ! -s conftest.err'
4960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961  (eval $ac_try) 2>&5
4962  ac_status=$?
4963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964  (exit $ac_status); }; } &&
4965	 { ac_try='test -s conftest.$ac_objext'
4966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967  (eval $ac_try) 2>&5
4968  ac_status=$?
4969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970  (exit $ac_status); }; }; then
4971  ac_cv_member_struct_stat_st_gen=yes
4972else
4973  echo "$as_me: failed program was:" >&5
4974sed 's/^/| /' conftest.$ac_ext >&5
4975
4976cat >conftest.$ac_ext <<_ACEOF
4977/* confdefs.h.  */
4978_ACEOF
4979cat confdefs.h >>conftest.$ac_ext
4980cat >>conftest.$ac_ext <<_ACEOF
4981/* end confdefs.h.  */
4982$ac_includes_default
4983int
4984main ()
4985{
4986static struct stat ac_aggr;
4987if (sizeof ac_aggr.st_gen)
4988return 0;
4989  ;
4990  return 0;
4991}
4992_ACEOF
4993rm -f conftest.$ac_objext
4994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995  (eval $ac_compile) 2>conftest.er1
4996  ac_status=$?
4997  grep -v '^ *+' conftest.er1 >conftest.err
4998  rm -f conftest.er1
4999  cat conftest.err >&5
5000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001  (exit $ac_status); } &&
5002	 { ac_try='test -z "$ac_c_werror_flag"
5003			 || test ! -s conftest.err'
5004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005  (eval $ac_try) 2>&5
5006  ac_status=$?
5007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008  (exit $ac_status); }; } &&
5009	 { ac_try='test -s conftest.$ac_objext'
5010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011  (eval $ac_try) 2>&5
5012  ac_status=$?
5013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014  (exit $ac_status); }; }; then
5015  ac_cv_member_struct_stat_st_gen=yes
5016else
5017  echo "$as_me: failed program was:" >&5
5018sed 's/^/| /' conftest.$ac_ext >&5
5019
5020ac_cv_member_struct_stat_st_gen=no
5021fi
5022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5023fi
5024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5025fi
5026echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
5027echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
5028if test $ac_cv_member_struct_stat_st_gen = yes; then
5029
5030cat >>confdefs.h <<_ACEOF
5031#define HAVE_STRUCT_STAT_ST_GEN 1
5032_ACEOF
5033
5034
5035fi
5036echo "$as_me:$LINENO: checking for struct stat.st_level" >&5
5037echo $ECHO_N "checking for struct stat.st_level... $ECHO_C" >&6
5038if test "${ac_cv_member_struct_stat_st_level+set}" = set; then
5039  echo $ECHO_N "(cached) $ECHO_C" >&6
5040else
5041  cat >conftest.$ac_ext <<_ACEOF
5042/* confdefs.h.  */
5043_ACEOF
5044cat confdefs.h >>conftest.$ac_ext
5045cat >>conftest.$ac_ext <<_ACEOF
5046/* end confdefs.h.  */
5047$ac_includes_default
5048int
5049main ()
5050{
5051static struct stat ac_aggr;
5052if (ac_aggr.st_level)
5053return 0;
5054  ;
5055  return 0;
5056}
5057_ACEOF
5058rm -f conftest.$ac_objext
5059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5060  (eval $ac_compile) 2>conftest.er1
5061  ac_status=$?
5062  grep -v '^ *+' conftest.er1 >conftest.err
5063  rm -f conftest.er1
5064  cat conftest.err >&5
5065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066  (exit $ac_status); } &&
5067	 { ac_try='test -z "$ac_c_werror_flag"
5068			 || test ! -s conftest.err'
5069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070  (eval $ac_try) 2>&5
5071  ac_status=$?
5072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073  (exit $ac_status); }; } &&
5074	 { ac_try='test -s conftest.$ac_objext'
5075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076  (eval $ac_try) 2>&5
5077  ac_status=$?
5078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079  (exit $ac_status); }; }; then
5080  ac_cv_member_struct_stat_st_level=yes
5081else
5082  echo "$as_me: failed program was:" >&5
5083sed 's/^/| /' conftest.$ac_ext >&5
5084
5085cat >conftest.$ac_ext <<_ACEOF
5086/* confdefs.h.  */
5087_ACEOF
5088cat confdefs.h >>conftest.$ac_ext
5089cat >>conftest.$ac_ext <<_ACEOF
5090/* end confdefs.h.  */
5091$ac_includes_default
5092int
5093main ()
5094{
5095static struct stat ac_aggr;
5096if (sizeof ac_aggr.st_level)
5097return 0;
5098  ;
5099  return 0;
5100}
5101_ACEOF
5102rm -f conftest.$ac_objext
5103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5104  (eval $ac_compile) 2>conftest.er1
5105  ac_status=$?
5106  grep -v '^ *+' conftest.er1 >conftest.err
5107  rm -f conftest.er1
5108  cat conftest.err >&5
5109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110  (exit $ac_status); } &&
5111	 { ac_try='test -z "$ac_c_werror_flag"
5112			 || test ! -s conftest.err'
5113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114  (eval $ac_try) 2>&5
5115  ac_status=$?
5116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117  (exit $ac_status); }; } &&
5118	 { ac_try='test -s conftest.$ac_objext'
5119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120  (eval $ac_try) 2>&5
5121  ac_status=$?
5122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123  (exit $ac_status); }; }; then
5124  ac_cv_member_struct_stat_st_level=yes
5125else
5126  echo "$as_me: failed program was:" >&5
5127sed 's/^/| /' conftest.$ac_ext >&5
5128
5129ac_cv_member_struct_stat_st_level=no
5130fi
5131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5132fi
5133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5134fi
5135echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_level" >&5
5136echo "${ECHO_T}$ac_cv_member_struct_stat_st_level" >&6
5137if test $ac_cv_member_struct_stat_st_level = yes; then
5138
5139cat >>confdefs.h <<_ACEOF
5140#define HAVE_STRUCT_STAT_ST_LEVEL 1
5141_ACEOF
5142
5143
5144fi
5145echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5146echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
5147if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5148  echo $ECHO_N "(cached) $ECHO_C" >&6
5149else
5150  cat >conftest.$ac_ext <<_ACEOF
5151/* confdefs.h.  */
5152_ACEOF
5153cat confdefs.h >>conftest.$ac_ext
5154cat >>conftest.$ac_ext <<_ACEOF
5155/* end confdefs.h.  */
5156$ac_includes_default
5157int
5158main ()
5159{
5160static struct stat ac_aggr;
5161if (ac_aggr.st_rdev)
5162return 0;
5163  ;
5164  return 0;
5165}
5166_ACEOF
5167rm -f conftest.$ac_objext
5168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5169  (eval $ac_compile) 2>conftest.er1
5170  ac_status=$?
5171  grep -v '^ *+' conftest.er1 >conftest.err
5172  rm -f conftest.er1
5173  cat conftest.err >&5
5174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175  (exit $ac_status); } &&
5176	 { ac_try='test -z "$ac_c_werror_flag"
5177			 || test ! -s conftest.err'
5178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179  (eval $ac_try) 2>&5
5180  ac_status=$?
5181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182  (exit $ac_status); }; } &&
5183	 { ac_try='test -s conftest.$ac_objext'
5184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185  (eval $ac_try) 2>&5
5186  ac_status=$?
5187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188  (exit $ac_status); }; }; then
5189  ac_cv_member_struct_stat_st_rdev=yes
5190else
5191  echo "$as_me: failed program was:" >&5
5192sed 's/^/| /' conftest.$ac_ext >&5
5193
5194cat >conftest.$ac_ext <<_ACEOF
5195/* confdefs.h.  */
5196_ACEOF
5197cat confdefs.h >>conftest.$ac_ext
5198cat >>conftest.$ac_ext <<_ACEOF
5199/* end confdefs.h.  */
5200$ac_includes_default
5201int
5202main ()
5203{
5204static struct stat ac_aggr;
5205if (sizeof ac_aggr.st_rdev)
5206return 0;
5207  ;
5208  return 0;
5209}
5210_ACEOF
5211rm -f conftest.$ac_objext
5212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5213  (eval $ac_compile) 2>conftest.er1
5214  ac_status=$?
5215  grep -v '^ *+' conftest.er1 >conftest.err
5216  rm -f conftest.er1
5217  cat conftest.err >&5
5218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219  (exit $ac_status); } &&
5220	 { ac_try='test -z "$ac_c_werror_flag"
5221			 || test ! -s conftest.err'
5222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223  (eval $ac_try) 2>&5
5224  ac_status=$?
5225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226  (exit $ac_status); }; } &&
5227	 { ac_try='test -s conftest.$ac_objext'
5228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229  (eval $ac_try) 2>&5
5230  ac_status=$?
5231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232  (exit $ac_status); }; }; then
5233  ac_cv_member_struct_stat_st_rdev=yes
5234else
5235  echo "$as_me: failed program was:" >&5
5236sed 's/^/| /' conftest.$ac_ext >&5
5237
5238ac_cv_member_struct_stat_st_rdev=no
5239fi
5240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5241fi
5242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5243fi
5244echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5245echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
5246if test $ac_cv_member_struct_stat_st_rdev = yes; then
5247
5248cat >>confdefs.h <<_ACEOF
5249#define HAVE_STRUCT_STAT_ST_RDEV 1
5250_ACEOF
5251
5252
5253fi
5254
5255echo "$as_me:$LINENO: checking for stat64 in (asm|sys)/stat.h" >&5
5256echo $ECHO_N "checking for stat64 in (asm|sys)/stat.h... $ECHO_C" >&6
5257if test "${ac_cv_type_stat64+set}" = set; then
5258  echo $ECHO_N "(cached) $ECHO_C" >&6
5259else
5260  cat >conftest.$ac_ext <<_ACEOF
5261/* confdefs.h.  */
5262_ACEOF
5263cat confdefs.h >>conftest.$ac_ext
5264cat >>conftest.$ac_ext <<_ACEOF
5265/* end confdefs.h.  */
5266#ifdef LINUX
5267#include <linux/types.h>
5268#include <asm/stat.h>
5269#else
5270#include <sys/stat.h>
5271#endif
5272int
5273main ()
5274{
5275struct stat64 st;
5276  ;
5277  return 0;
5278}
5279_ACEOF
5280rm -f conftest.$ac_objext
5281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5282  (eval $ac_compile) 2>conftest.er1
5283  ac_status=$?
5284  grep -v '^ *+' conftest.er1 >conftest.err
5285  rm -f conftest.er1
5286  cat conftest.err >&5
5287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288  (exit $ac_status); } &&
5289	 { ac_try='test -z "$ac_c_werror_flag"
5290			 || test ! -s conftest.err'
5291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292  (eval $ac_try) 2>&5
5293  ac_status=$?
5294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295  (exit $ac_status); }; } &&
5296	 { ac_try='test -s conftest.$ac_objext'
5297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298  (eval $ac_try) 2>&5
5299  ac_status=$?
5300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301  (exit $ac_status); }; }; then
5302  ac_cv_type_stat64=yes
5303else
5304  echo "$as_me: failed program was:" >&5
5305sed 's/^/| /' conftest.$ac_ext >&5
5306
5307ac_cv_type_stat64=no
5308fi
5309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5310fi
5311
5312echo "$as_me:$LINENO: result: $ac_cv_type_stat64" >&5
5313echo "${ECHO_T}$ac_cv_type_stat64" >&6
5314if test "$ac_cv_type_stat64" = yes
5315then
5316
5317cat >>confdefs.h <<\_ACEOF
5318#define HAVE_STAT64 1
5319_ACEOF
5320
5321fi
5322
5323
5324echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5325echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5326if test "${ac_cv_type_signal+set}" = set; then
5327  echo $ECHO_N "(cached) $ECHO_C" >&6
5328else
5329  cat >conftest.$ac_ext <<_ACEOF
5330/* confdefs.h.  */
5331_ACEOF
5332cat confdefs.h >>conftest.$ac_ext
5333cat >>conftest.$ac_ext <<_ACEOF
5334/* end confdefs.h.  */
5335#include <sys/types.h>
5336#include <signal.h>
5337#ifdef signal
5338# undef signal
5339#endif
5340#ifdef __cplusplus
5341extern "C" void (*signal (int, void (*)(int)))(int);
5342#else
5343void (*signal ()) ();
5344#endif
5345
5346int
5347main ()
5348{
5349int i;
5350  ;
5351  return 0;
5352}
5353_ACEOF
5354rm -f conftest.$ac_objext
5355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356  (eval $ac_compile) 2>conftest.er1
5357  ac_status=$?
5358  grep -v '^ *+' conftest.er1 >conftest.err
5359  rm -f conftest.er1
5360  cat conftest.err >&5
5361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362  (exit $ac_status); } &&
5363	 { ac_try='test -z "$ac_c_werror_flag"
5364			 || test ! -s conftest.err'
5365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366  (eval $ac_try) 2>&5
5367  ac_status=$?
5368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369  (exit $ac_status); }; } &&
5370	 { ac_try='test -s conftest.$ac_objext'
5371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372  (eval $ac_try) 2>&5
5373  ac_status=$?
5374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375  (exit $ac_status); }; }; then
5376  ac_cv_type_signal=void
5377else
5378  echo "$as_me: failed program was:" >&5
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
5381ac_cv_type_signal=int
5382fi
5383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5384fi
5385echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5386echo "${ECHO_T}$ac_cv_type_signal" >&6
5387
5388cat >>confdefs.h <<_ACEOF
5389#define RETSIGTYPE $ac_cv_type_signal
5390_ACEOF
5391
5392
5393echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5394echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5395if test "${ac_cv_type_uid_t+set}" = set; then
5396  echo $ECHO_N "(cached) $ECHO_C" >&6
5397else
5398  cat >conftest.$ac_ext <<_ACEOF
5399/* confdefs.h.  */
5400_ACEOF
5401cat confdefs.h >>conftest.$ac_ext
5402cat >>conftest.$ac_ext <<_ACEOF
5403/* end confdefs.h.  */
5404#include <sys/types.h>
5405
5406_ACEOF
5407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5408  $EGREP "uid_t" >/dev/null 2>&1; then
5409  ac_cv_type_uid_t=yes
5410else
5411  ac_cv_type_uid_t=no
5412fi
5413rm -f conftest*
5414
5415fi
5416echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5417echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5418if test $ac_cv_type_uid_t = no; then
5419
5420cat >>confdefs.h <<\_ACEOF
5421#define uid_t int
5422_ACEOF
5423
5424
5425cat >>confdefs.h <<\_ACEOF
5426#define gid_t int
5427_ACEOF
5428
5429fi
5430
5431echo "$as_me:$LINENO: checking for mode_t" >&5
5432echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5433if test "${ac_cv_type_mode_t+set}" = set; then
5434  echo $ECHO_N "(cached) $ECHO_C" >&6
5435else
5436  cat >conftest.$ac_ext <<_ACEOF
5437/* confdefs.h.  */
5438_ACEOF
5439cat confdefs.h >>conftest.$ac_ext
5440cat >>conftest.$ac_ext <<_ACEOF
5441/* end confdefs.h.  */
5442$ac_includes_default
5443int
5444main ()
5445{
5446if ((mode_t *) 0)
5447  return 0;
5448if (sizeof (mode_t))
5449  return 0;
5450  ;
5451  return 0;
5452}
5453_ACEOF
5454rm -f conftest.$ac_objext
5455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5456  (eval $ac_compile) 2>conftest.er1
5457  ac_status=$?
5458  grep -v '^ *+' conftest.er1 >conftest.err
5459  rm -f conftest.er1
5460  cat conftest.err >&5
5461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462  (exit $ac_status); } &&
5463	 { ac_try='test -z "$ac_c_werror_flag"
5464			 || test ! -s conftest.err'
5465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466  (eval $ac_try) 2>&5
5467  ac_status=$?
5468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469  (exit $ac_status); }; } &&
5470	 { ac_try='test -s conftest.$ac_objext'
5471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472  (eval $ac_try) 2>&5
5473  ac_status=$?
5474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475  (exit $ac_status); }; }; then
5476  ac_cv_type_mode_t=yes
5477else
5478  echo "$as_me: failed program was:" >&5
5479sed 's/^/| /' conftest.$ac_ext >&5
5480
5481ac_cv_type_mode_t=no
5482fi
5483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5484fi
5485echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5486echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5487if test $ac_cv_type_mode_t = yes; then
5488  :
5489else
5490
5491cat >>confdefs.h <<_ACEOF
5492#define mode_t int
5493_ACEOF
5494
5495fi
5496
5497echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
5498echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
5499if test "${ac_cv_type_getgroups+set}" = set; then
5500  echo $ECHO_N "(cached) $ECHO_C" >&6
5501else
5502  if test "$cross_compiling" = yes; then
5503  ac_cv_type_getgroups=cross
5504else
5505  cat >conftest.$ac_ext <<_ACEOF
5506/* confdefs.h.  */
5507_ACEOF
5508cat confdefs.h >>conftest.$ac_ext
5509cat >>conftest.$ac_ext <<_ACEOF
5510/* end confdefs.h.  */
5511/* Thanks to Mike Rendell for this test.  */
5512#include <sys/types.h>
5513#define NGID 256
5514#undef MAX
5515#define MAX(x, y) ((x) > (y) ? (x) : (y))
5516
5517int
5518main ()
5519{
5520  gid_t gidset[NGID];
5521  int i, n;
5522  union { gid_t gval; long lval; }  val;
5523
5524  val.lval = -1;
5525  for (i = 0; i < NGID; i++)
5526    gidset[i] = val.gval;
5527  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5528		 gidset);
5529  /* Exit non-zero if getgroups seems to require an array of ints.  This
5530     happens when gid_t is short but getgroups modifies an array of ints.  */
5531  exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
5532}
5533_ACEOF
5534rm -f conftest$ac_exeext
5535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5536  (eval $ac_link) 2>&5
5537  ac_status=$?
5538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541  (eval $ac_try) 2>&5
5542  ac_status=$?
5543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544  (exit $ac_status); }; }; then
5545  ac_cv_type_getgroups=gid_t
5546else
5547  echo "$as_me: program exited with status $ac_status" >&5
5548echo "$as_me: failed program was:" >&5
5549sed 's/^/| /' conftest.$ac_ext >&5
5550
5551( exit $ac_status )
5552ac_cv_type_getgroups=int
5553fi
5554rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5555fi
5556if test $ac_cv_type_getgroups = cross; then
5557        cat >conftest.$ac_ext <<_ACEOF
5558/* confdefs.h.  */
5559_ACEOF
5560cat confdefs.h >>conftest.$ac_ext
5561cat >>conftest.$ac_ext <<_ACEOF
5562/* end confdefs.h.  */
5563#include <unistd.h>
5564
5565_ACEOF
5566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5567  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
5568  ac_cv_type_getgroups=gid_t
5569else
5570  ac_cv_type_getgroups=int
5571fi
5572rm -f conftest*
5573
5574fi
5575fi
5576echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
5577echo "${ECHO_T}$ac_cv_type_getgroups" >&6
5578
5579cat >>confdefs.h <<_ACEOF
5580#define GETGROUPS_T $ac_cv_type_getgroups
5581_ACEOF
5582
5583
5584echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5585echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5586if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5587  echo $ECHO_N "(cached) $ECHO_C" >&6
5588else
5589  cat >conftest.$ac_ext <<_ACEOF
5590/* confdefs.h.  */
5591_ACEOF
5592cat confdefs.h >>conftest.$ac_ext
5593cat >>conftest.$ac_ext <<_ACEOF
5594/* end confdefs.h.  */
5595#include <sys/types.h>
5596int
5597main ()
5598{
5599return makedev(0, 0);
5600  ;
5601  return 0;
5602}
5603_ACEOF
5604rm -f conftest.$ac_objext conftest$ac_exeext
5605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5606  (eval $ac_link) 2>conftest.er1
5607  ac_status=$?
5608  grep -v '^ *+' conftest.er1 >conftest.err
5609  rm -f conftest.er1
5610  cat conftest.err >&5
5611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612  (exit $ac_status); } &&
5613	 { ac_try='test -z "$ac_c_werror_flag"
5614			 || test ! -s conftest.err'
5615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616  (eval $ac_try) 2>&5
5617  ac_status=$?
5618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619  (exit $ac_status); }; } &&
5620	 { ac_try='test -s conftest$ac_exeext'
5621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622  (eval $ac_try) 2>&5
5623  ac_status=$?
5624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625  (exit $ac_status); }; }; then
5626  ac_cv_header_sys_types_h_makedev=yes
5627else
5628  echo "$as_me: failed program was:" >&5
5629sed 's/^/| /' conftest.$ac_ext >&5
5630
5631ac_cv_header_sys_types_h_makedev=no
5632fi
5633rm -f conftest.err conftest.$ac_objext \
5634      conftest$ac_exeext conftest.$ac_ext
5635
5636fi
5637echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5638echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5639
5640if test $ac_cv_header_sys_types_h_makedev = no; then
5641if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5642  echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5643echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5644if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5645  echo $ECHO_N "(cached) $ECHO_C" >&6
5646fi
5647echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5648echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5649else
5650  # Is the header compilable?
5651echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5652echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5653cat >conftest.$ac_ext <<_ACEOF
5654/* confdefs.h.  */
5655_ACEOF
5656cat confdefs.h >>conftest.$ac_ext
5657cat >>conftest.$ac_ext <<_ACEOF
5658/* end confdefs.h.  */
5659$ac_includes_default
5660#include <sys/mkdev.h>
5661_ACEOF
5662rm -f conftest.$ac_objext
5663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664  (eval $ac_compile) 2>conftest.er1
5665  ac_status=$?
5666  grep -v '^ *+' conftest.er1 >conftest.err
5667  rm -f conftest.er1
5668  cat conftest.err >&5
5669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670  (exit $ac_status); } &&
5671	 { ac_try='test -z "$ac_c_werror_flag"
5672			 || test ! -s conftest.err'
5673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674  (eval $ac_try) 2>&5
5675  ac_status=$?
5676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677  (exit $ac_status); }; } &&
5678	 { ac_try='test -s conftest.$ac_objext'
5679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680  (eval $ac_try) 2>&5
5681  ac_status=$?
5682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683  (exit $ac_status); }; }; then
5684  ac_header_compiler=yes
5685else
5686  echo "$as_me: failed program was:" >&5
5687sed 's/^/| /' conftest.$ac_ext >&5
5688
5689ac_header_compiler=no
5690fi
5691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5692echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5693echo "${ECHO_T}$ac_header_compiler" >&6
5694
5695# Is the header present?
5696echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5697echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5698cat >conftest.$ac_ext <<_ACEOF
5699/* confdefs.h.  */
5700_ACEOF
5701cat confdefs.h >>conftest.$ac_ext
5702cat >>conftest.$ac_ext <<_ACEOF
5703/* end confdefs.h.  */
5704#include <sys/mkdev.h>
5705_ACEOF
5706if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5707  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5708  ac_status=$?
5709  grep -v '^ *+' conftest.er1 >conftest.err
5710  rm -f conftest.er1
5711  cat conftest.err >&5
5712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713  (exit $ac_status); } >/dev/null; then
5714  if test -s conftest.err; then
5715    ac_cpp_err=$ac_c_preproc_warn_flag
5716    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5717  else
5718    ac_cpp_err=
5719  fi
5720else
5721  ac_cpp_err=yes
5722fi
5723if test -z "$ac_cpp_err"; then
5724  ac_header_preproc=yes
5725else
5726  echo "$as_me: failed program was:" >&5
5727sed 's/^/| /' conftest.$ac_ext >&5
5728
5729  ac_header_preproc=no
5730fi
5731rm -f conftest.err conftest.$ac_ext
5732echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5733echo "${ECHO_T}$ac_header_preproc" >&6
5734
5735# So?  What about this header?
5736case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5737  yes:no: )
5738    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5739echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5740    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5741echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5742    ac_header_preproc=yes
5743    ;;
5744  no:yes:* )
5745    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5746echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5747    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
5748echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
5749    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5750echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5751    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
5752echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5753    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5754echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5755    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5756echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5757    (
5758      cat <<\_ASBOX
5759## --------------------------------- ##
5760## Report this to the strace lists.  ##
5761## --------------------------------- ##
5762_ASBOX
5763    ) |
5764      sed "s/^/$as_me: WARNING:     /" >&2
5765    ;;
5766esac
5767echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5768echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5769if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5770  echo $ECHO_N "(cached) $ECHO_C" >&6
5771else
5772  ac_cv_header_sys_mkdev_h=$ac_header_preproc
5773fi
5774echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5775echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5776
5777fi
5778if test $ac_cv_header_sys_mkdev_h = yes; then
5779
5780cat >>confdefs.h <<\_ACEOF
5781#define MAJOR_IN_MKDEV 1
5782_ACEOF
5783
5784fi
5785
5786
5787
5788  if test $ac_cv_header_sys_mkdev_h = no; then
5789    if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5790  echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5791echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5792if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5793  echo $ECHO_N "(cached) $ECHO_C" >&6
5794fi
5795echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5796echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5797else
5798  # Is the header compilable?
5799echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5800echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5801cat >conftest.$ac_ext <<_ACEOF
5802/* confdefs.h.  */
5803_ACEOF
5804cat confdefs.h >>conftest.$ac_ext
5805cat >>conftest.$ac_ext <<_ACEOF
5806/* end confdefs.h.  */
5807$ac_includes_default
5808#include <sys/sysmacros.h>
5809_ACEOF
5810rm -f conftest.$ac_objext
5811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5812  (eval $ac_compile) 2>conftest.er1
5813  ac_status=$?
5814  grep -v '^ *+' conftest.er1 >conftest.err
5815  rm -f conftest.er1
5816  cat conftest.err >&5
5817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818  (exit $ac_status); } &&
5819	 { ac_try='test -z "$ac_c_werror_flag"
5820			 || test ! -s conftest.err'
5821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822  (eval $ac_try) 2>&5
5823  ac_status=$?
5824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825  (exit $ac_status); }; } &&
5826	 { ac_try='test -s conftest.$ac_objext'
5827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828  (eval $ac_try) 2>&5
5829  ac_status=$?
5830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831  (exit $ac_status); }; }; then
5832  ac_header_compiler=yes
5833else
5834  echo "$as_me: failed program was:" >&5
5835sed 's/^/| /' conftest.$ac_ext >&5
5836
5837ac_header_compiler=no
5838fi
5839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5840echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5841echo "${ECHO_T}$ac_header_compiler" >&6
5842
5843# Is the header present?
5844echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5845echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5846cat >conftest.$ac_ext <<_ACEOF
5847/* confdefs.h.  */
5848_ACEOF
5849cat confdefs.h >>conftest.$ac_ext
5850cat >>conftest.$ac_ext <<_ACEOF
5851/* end confdefs.h.  */
5852#include <sys/sysmacros.h>
5853_ACEOF
5854if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5855  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5856  ac_status=$?
5857  grep -v '^ *+' conftest.er1 >conftest.err
5858  rm -f conftest.er1
5859  cat conftest.err >&5
5860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861  (exit $ac_status); } >/dev/null; then
5862  if test -s conftest.err; then
5863    ac_cpp_err=$ac_c_preproc_warn_flag
5864    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5865  else
5866    ac_cpp_err=
5867  fi
5868else
5869  ac_cpp_err=yes
5870fi
5871if test -z "$ac_cpp_err"; then
5872  ac_header_preproc=yes
5873else
5874  echo "$as_me: failed program was:" >&5
5875sed 's/^/| /' conftest.$ac_ext >&5
5876
5877  ac_header_preproc=no
5878fi
5879rm -f conftest.err conftest.$ac_ext
5880echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5881echo "${ECHO_T}$ac_header_preproc" >&6
5882
5883# So?  What about this header?
5884case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5885  yes:no: )
5886    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5887echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5888    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5889echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5890    ac_header_preproc=yes
5891    ;;
5892  no:yes:* )
5893    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5894echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5895    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
5896echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
5897    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5898echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5899    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
5900echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5901    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5902echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5903    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5904echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5905    (
5906      cat <<\_ASBOX
5907## --------------------------------- ##
5908## Report this to the strace lists.  ##
5909## --------------------------------- ##
5910_ASBOX
5911    ) |
5912      sed "s/^/$as_me: WARNING:     /" >&2
5913    ;;
5914esac
5915echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5916echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5917if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5918  echo $ECHO_N "(cached) $ECHO_C" >&6
5919else
5920  ac_cv_header_sys_sysmacros_h=$ac_header_preproc
5921fi
5922echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5923echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5924
5925fi
5926if test $ac_cv_header_sys_sysmacros_h = yes; then
5927
5928cat >>confdefs.h <<\_ACEOF
5929#define MAJOR_IN_SYSMACROS 1
5930_ACEOF
5931
5932fi
5933
5934
5935  fi
5936fi
5937
5938echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
5939echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
5940if test "${ac_cv_type_sig_atomic_t+set}" = set; then
5941  echo $ECHO_N "(cached) $ECHO_C" >&6
5942else
5943  cat >conftest.$ac_ext <<_ACEOF
5944/* confdefs.h.  */
5945_ACEOF
5946cat confdefs.h >>conftest.$ac_ext
5947cat >>conftest.$ac_ext <<_ACEOF
5948/* end confdefs.h.  */
5949#include <signal.h>
5950
5951int
5952main ()
5953{
5954if ((sig_atomic_t *) 0)
5955  return 0;
5956if (sizeof (sig_atomic_t))
5957  return 0;
5958  ;
5959  return 0;
5960}
5961_ACEOF
5962rm -f conftest.$ac_objext
5963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964  (eval $ac_compile) 2>conftest.er1
5965  ac_status=$?
5966  grep -v '^ *+' conftest.er1 >conftest.err
5967  rm -f conftest.er1
5968  cat conftest.err >&5
5969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970  (exit $ac_status); } &&
5971	 { ac_try='test -z "$ac_c_werror_flag"
5972			 || test ! -s conftest.err'
5973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974  (eval $ac_try) 2>&5
5975  ac_status=$?
5976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977  (exit $ac_status); }; } &&
5978	 { ac_try='test -s conftest.$ac_objext'
5979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980  (eval $ac_try) 2>&5
5981  ac_status=$?
5982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983  (exit $ac_status); }; }; then
5984  ac_cv_type_sig_atomic_t=yes
5985else
5986  echo "$as_me: failed program was:" >&5
5987sed 's/^/| /' conftest.$ac_ext >&5
5988
5989ac_cv_type_sig_atomic_t=no
5990fi
5991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5992fi
5993echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
5994echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
5995if test $ac_cv_type_sig_atomic_t = yes; then
5996
5997cat >>confdefs.h <<_ACEOF
5998#define HAVE_SIG_ATOMIC_T 1
5999_ACEOF
6000
6001
6002fi
6003echo "$as_me:$LINENO: checking for siginfo_t" >&5
6004echo $ECHO_N "checking for siginfo_t... $ECHO_C" >&6
6005if test "${ac_cv_type_siginfo_t+set}" = set; then
6006  echo $ECHO_N "(cached) $ECHO_C" >&6
6007else
6008  cat >conftest.$ac_ext <<_ACEOF
6009/* confdefs.h.  */
6010_ACEOF
6011cat confdefs.h >>conftest.$ac_ext
6012cat >>conftest.$ac_ext <<_ACEOF
6013/* end confdefs.h.  */
6014#include <signal.h>
6015
6016int
6017main ()
6018{
6019if ((siginfo_t *) 0)
6020  return 0;
6021if (sizeof (siginfo_t))
6022  return 0;
6023  ;
6024  return 0;
6025}
6026_ACEOF
6027rm -f conftest.$ac_objext
6028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6029  (eval $ac_compile) 2>conftest.er1
6030  ac_status=$?
6031  grep -v '^ *+' conftest.er1 >conftest.err
6032  rm -f conftest.er1
6033  cat conftest.err >&5
6034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035  (exit $ac_status); } &&
6036	 { ac_try='test -z "$ac_c_werror_flag"
6037			 || test ! -s conftest.err'
6038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039  (eval $ac_try) 2>&5
6040  ac_status=$?
6041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042  (exit $ac_status); }; } &&
6043	 { ac_try='test -s conftest.$ac_objext'
6044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045  (eval $ac_try) 2>&5
6046  ac_status=$?
6047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048  (exit $ac_status); }; }; then
6049  ac_cv_type_siginfo_t=yes
6050else
6051  echo "$as_me: failed program was:" >&5
6052sed 's/^/| /' conftest.$ac_ext >&5
6053
6054ac_cv_type_siginfo_t=no
6055fi
6056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6057fi
6058echo "$as_me:$LINENO: result: $ac_cv_type_siginfo_t" >&5
6059echo "${ECHO_T}$ac_cv_type_siginfo_t" >&6
6060if test $ac_cv_type_siginfo_t = yes; then
6061
6062cat >>confdefs.h <<_ACEOF
6063#define HAVE_SIGINFO_T 1
6064_ACEOF
6065
6066
6067fi
6068
6069echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
6070echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6
6071if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
6072  echo $ECHO_N "(cached) $ECHO_C" >&6
6073else
6074  cat >conftest.$ac_ext <<_ACEOF
6075/* confdefs.h.  */
6076_ACEOF
6077cat confdefs.h >>conftest.$ac_ext
6078cat >>conftest.$ac_ext <<_ACEOF
6079/* end confdefs.h.  */
6080#include <sys/types.h>
6081#include <sys/socket.h>
6082#include <netinet/in.h>
6083
6084int
6085main ()
6086{
6087static struct sockaddr_in6 ac_aggr;
6088if (ac_aggr.sin6_scope_id)
6089return 0;
6090  ;
6091  return 0;
6092}
6093_ACEOF
6094rm -f conftest.$ac_objext
6095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6096  (eval $ac_compile) 2>conftest.er1
6097  ac_status=$?
6098  grep -v '^ *+' conftest.er1 >conftest.err
6099  rm -f conftest.er1
6100  cat conftest.err >&5
6101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102  (exit $ac_status); } &&
6103	 { ac_try='test -z "$ac_c_werror_flag"
6104			 || test ! -s conftest.err'
6105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106  (eval $ac_try) 2>&5
6107  ac_status=$?
6108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109  (exit $ac_status); }; } &&
6110	 { ac_try='test -s conftest.$ac_objext'
6111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112  (eval $ac_try) 2>&5
6113  ac_status=$?
6114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115  (exit $ac_status); }; }; then
6116  ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
6117else
6118  echo "$as_me: failed program was:" >&5
6119sed 's/^/| /' conftest.$ac_ext >&5
6120
6121cat >conftest.$ac_ext <<_ACEOF
6122/* confdefs.h.  */
6123_ACEOF
6124cat confdefs.h >>conftest.$ac_ext
6125cat >>conftest.$ac_ext <<_ACEOF
6126/* end confdefs.h.  */
6127#include <sys/types.h>
6128#include <sys/socket.h>
6129#include <netinet/in.h>
6130
6131int
6132main ()
6133{
6134static struct sockaddr_in6 ac_aggr;
6135if (sizeof ac_aggr.sin6_scope_id)
6136return 0;
6137  ;
6138  return 0;
6139}
6140_ACEOF
6141rm -f conftest.$ac_objext
6142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6143  (eval $ac_compile) 2>conftest.er1
6144  ac_status=$?
6145  grep -v '^ *+' conftest.er1 >conftest.err
6146  rm -f conftest.er1
6147  cat conftest.err >&5
6148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149  (exit $ac_status); } &&
6150	 { ac_try='test -z "$ac_c_werror_flag"
6151			 || test ! -s conftest.err'
6152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153  (eval $ac_try) 2>&5
6154  ac_status=$?
6155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156  (exit $ac_status); }; } &&
6157	 { ac_try='test -s conftest.$ac_objext'
6158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159  (eval $ac_try) 2>&5
6160  ac_status=$?
6161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162  (exit $ac_status); }; }; then
6163  ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
6164else
6165  echo "$as_me: failed program was:" >&5
6166sed 's/^/| /' conftest.$ac_ext >&5
6167
6168ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
6169fi
6170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6171fi
6172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6173fi
6174echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
6175echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6
6176if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
6177
6178cat >>confdefs.h <<_ACEOF
6179#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
6180_ACEOF
6181
6182
6183fi
6184
6185echo "$as_me:$LINENO: checking for long long" >&5
6186echo $ECHO_N "checking for long long... $ECHO_C" >&6
6187if test "${ac_cv_type_long_long+set}" = set; then
6188  echo $ECHO_N "(cached) $ECHO_C" >&6
6189else
6190  cat >conftest.$ac_ext <<_ACEOF
6191/* confdefs.h.  */
6192_ACEOF
6193cat confdefs.h >>conftest.$ac_ext
6194cat >>conftest.$ac_ext <<_ACEOF
6195/* end confdefs.h.  */
6196$ac_includes_default
6197int
6198main ()
6199{
6200if ((long long *) 0)
6201  return 0;
6202if (sizeof (long long))
6203  return 0;
6204  ;
6205  return 0;
6206}
6207_ACEOF
6208rm -f conftest.$ac_objext
6209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6210  (eval $ac_compile) 2>conftest.er1
6211  ac_status=$?
6212  grep -v '^ *+' conftest.er1 >conftest.err
6213  rm -f conftest.er1
6214  cat conftest.err >&5
6215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216  (exit $ac_status); } &&
6217	 { ac_try='test -z "$ac_c_werror_flag"
6218			 || test ! -s conftest.err'
6219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220  (eval $ac_try) 2>&5
6221  ac_status=$?
6222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223  (exit $ac_status); }; } &&
6224	 { ac_try='test -s conftest.$ac_objext'
6225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226  (eval $ac_try) 2>&5
6227  ac_status=$?
6228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229  (exit $ac_status); }; }; then
6230  ac_cv_type_long_long=yes
6231else
6232  echo "$as_me: failed program was:" >&5
6233sed 's/^/| /' conftest.$ac_ext >&5
6234
6235ac_cv_type_long_long=no
6236fi
6237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6238fi
6239echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6240echo "${ECHO_T}$ac_cv_type_long_long" >&6
6241if test $ac_cv_type_long_long = yes; then
6242
6243cat >>confdefs.h <<_ACEOF
6244#define HAVE_LONG_LONG 1
6245_ACEOF
6246
6247
6248fi
6249
6250echo "$as_me:$LINENO: checking for little endian long long" >&5
6251echo $ECHO_N "checking for little endian long long... $ECHO_C" >&6
6252if test "${ac_cv_have_little_endian_long_long+set}" = set; then
6253  echo $ECHO_N "(cached) $ECHO_C" >&6
6254else
6255  if test "$cross_compiling" = yes; then
6256  # Should try to guess here
6257ac_cv_have_little_endian_long_long=no
6258
6259else
6260  cat >conftest.$ac_ext <<_ACEOF
6261/* confdefs.h.  */
6262_ACEOF
6263cat confdefs.h >>conftest.$ac_ext
6264cat >>conftest.$ac_ext <<_ACEOF
6265/* end confdefs.h.  */
6266
6267int main () {
6268	union {
6269		long long ll;
6270		long l [2];
6271	} u;
6272	u.ll = 0x12345678;
6273	if (u.l[0] == 0x12345678)
6274		return 0;
6275	return 1;
6276}
6277
6278_ACEOF
6279rm -f conftest$ac_exeext
6280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281  (eval $ac_link) 2>&5
6282  ac_status=$?
6283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286  (eval $ac_try) 2>&5
6287  ac_status=$?
6288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289  (exit $ac_status); }; }; then
6290  ac_cv_have_little_endian_long_long=yes
6291else
6292  echo "$as_me: program exited with status $ac_status" >&5
6293echo "$as_me: failed program was:" >&5
6294sed 's/^/| /' conftest.$ac_ext >&5
6295
6296( exit $ac_status )
6297ac_cv_have_little_endian_long_long=no
6298fi
6299rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6300fi
6301fi
6302
6303echo "$as_me:$LINENO: result: $ac_cv_have_little_endian_long_long" >&5
6304echo "${ECHO_T}$ac_cv_have_little_endian_long_long" >&6
6305if test "$ac_cv_have_little_endian_long_long" = yes
6306then
6307
6308cat >>confdefs.h <<\_ACEOF
6309#define HAVE_LITTLE_ENDIAN_LONG_LONG 1
6310_ACEOF
6311
6312fi
6313
6314echo "$as_me:$LINENO: checking for long long off_t" >&5
6315echo $ECHO_N "checking for long long off_t... $ECHO_C" >&6
6316if test "${ac_cv_have_long_long_off_t+set}" = set; then
6317  echo $ECHO_N "(cached) $ECHO_C" >&6
6318else
6319  if test "$cross_compiling" = yes; then
6320  # Should try to guess here
6321ac_cv_have_long_long_off_t=no
6322
6323else
6324  cat >conftest.$ac_ext <<_ACEOF
6325/* confdefs.h.  */
6326_ACEOF
6327cat confdefs.h >>conftest.$ac_ext
6328cat >>conftest.$ac_ext <<_ACEOF
6329/* end confdefs.h.  */
6330#include <sys/types.h>
6331main () {
6332	if (sizeof (off_t) == sizeof (long long) &&
6333	    sizeof (off_t) > sizeof (long))
6334	    return 0;
6335	return 1;
6336}
6337
6338_ACEOF
6339rm -f conftest$ac_exeext
6340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6341  (eval $ac_link) 2>&5
6342  ac_status=$?
6343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346  (eval $ac_try) 2>&5
6347  ac_status=$?
6348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349  (exit $ac_status); }; }; then
6350  ac_cv_have_long_long_off_t=yes
6351else
6352  echo "$as_me: program exited with status $ac_status" >&5
6353echo "$as_me: failed program was:" >&5
6354sed 's/^/| /' conftest.$ac_ext >&5
6355
6356( exit $ac_status )
6357ac_cv_have_long_long_off_t=no
6358fi
6359rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6360fi
6361fi
6362
6363echo "$as_me:$LINENO: result: $ac_cv_have_long_long_off_t" >&5
6364echo "${ECHO_T}$ac_cv_have_long_long_off_t" >&6
6365if test "$ac_cv_have_long_long_off_t" = yes
6366then
6367
6368cat >>confdefs.h <<\_ACEOF
6369#define HAVE_LONG_LONG_OFF_T 1
6370_ACEOF
6371
6372fi
6373
6374echo "$as_me:$LINENO: checking for long long rlim_t" >&5
6375echo $ECHO_N "checking for long long rlim_t... $ECHO_C" >&6
6376if test "${ac_cv_have_long_long_rlim_t+set}" = set; then
6377  echo $ECHO_N "(cached) $ECHO_C" >&6
6378else
6379  if test "$cross_compiling" = yes; then
6380  # Should try to guess here
6381ac_cv_have_long_long_rlim_t=no
6382
6383else
6384  cat >conftest.$ac_ext <<_ACEOF
6385/* confdefs.h.  */
6386_ACEOF
6387cat confdefs.h >>conftest.$ac_ext
6388cat >>conftest.$ac_ext <<_ACEOF
6389/* end confdefs.h.  */
6390#include <sys/types.h>
6391#include <sys/time.h>
6392#include <sys/resource.h>
6393main () {
6394	if (sizeof (rlim_t) == sizeof (long long) &&
6395	    sizeof (rlim_t) > sizeof (long))
6396	    return 0;
6397	return 1;
6398}
6399
6400_ACEOF
6401rm -f conftest$ac_exeext
6402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6403  (eval $ac_link) 2>&5
6404  ac_status=$?
6405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408  (eval $ac_try) 2>&5
6409  ac_status=$?
6410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411  (exit $ac_status); }; }; then
6412  ac_cv_have_long_long_rlim_t=yes
6413else
6414  echo "$as_me: program exited with status $ac_status" >&5
6415echo "$as_me: failed program was:" >&5
6416sed 's/^/| /' conftest.$ac_ext >&5
6417
6418( exit $ac_status )
6419ac_cv_have_long_long_rlim_t=no
6420fi
6421rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6422fi
6423fi
6424
6425echo "$as_me:$LINENO: result: $ac_cv_have_long_long_rlim_t" >&5
6426echo "${ECHO_T}$ac_cv_have_long_long_rlim_t" >&6
6427if test "$ac_cv_have_long_long_rlim_t" = yes
6428then
6429
6430cat >>confdefs.h <<\_ACEOF
6431#define HAVE_LONG_LONG_RLIM_T 1
6432_ACEOF
6433
6434fi
6435
6436echo "$as_me:$LINENO: checking for struct opthdr" >&5
6437echo $ECHO_N "checking for struct opthdr... $ECHO_C" >&6
6438if test "${ac_cv_type_struct_opthdr+set}" = set; then
6439  echo $ECHO_N "(cached) $ECHO_C" >&6
6440else
6441  cat >conftest.$ac_ext <<_ACEOF
6442/* confdefs.h.  */
6443_ACEOF
6444cat confdefs.h >>conftest.$ac_ext
6445cat >>conftest.$ac_ext <<_ACEOF
6446/* end confdefs.h.  */
6447#include <sys/socket.h>
6448
6449int
6450main ()
6451{
6452if ((struct opthdr *) 0)
6453  return 0;
6454if (sizeof (struct opthdr))
6455  return 0;
6456  ;
6457  return 0;
6458}
6459_ACEOF
6460rm -f conftest.$ac_objext
6461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6462  (eval $ac_compile) 2>conftest.er1
6463  ac_status=$?
6464  grep -v '^ *+' conftest.er1 >conftest.err
6465  rm -f conftest.er1
6466  cat conftest.err >&5
6467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468  (exit $ac_status); } &&
6469	 { ac_try='test -z "$ac_c_werror_flag"
6470			 || test ! -s conftest.err'
6471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472  (eval $ac_try) 2>&5
6473  ac_status=$?
6474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475  (exit $ac_status); }; } &&
6476	 { ac_try='test -s conftest.$ac_objext'
6477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478  (eval $ac_try) 2>&5
6479  ac_status=$?
6480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481  (exit $ac_status); }; }; then
6482  ac_cv_type_struct_opthdr=yes
6483else
6484  echo "$as_me: failed program was:" >&5
6485sed 's/^/| /' conftest.$ac_ext >&5
6486
6487ac_cv_type_struct_opthdr=no
6488fi
6489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6490fi
6491echo "$as_me:$LINENO: result: $ac_cv_type_struct_opthdr" >&5
6492echo "${ECHO_T}$ac_cv_type_struct_opthdr" >&6
6493if test $ac_cv_type_struct_opthdr = yes; then
6494
6495cat >>confdefs.h <<_ACEOF
6496#define HAVE_STRUCT_OPTHDR 1
6497_ACEOF
6498
6499
6500fi
6501
6502echo "$as_me:$LINENO: checking for struct t_opthdr" >&5
6503echo $ECHO_N "checking for struct t_opthdr... $ECHO_C" >&6
6504if test "${ac_cv_type_struct_t_opthdr+set}" = set; then
6505  echo $ECHO_N "(cached) $ECHO_C" >&6
6506else
6507  cat >conftest.$ac_ext <<_ACEOF
6508/* confdefs.h.  */
6509_ACEOF
6510cat confdefs.h >>conftest.$ac_ext
6511cat >>conftest.$ac_ext <<_ACEOF
6512/* end confdefs.h.  */
6513#include <sys/tiuser.h>
6514
6515int
6516main ()
6517{
6518if ((struct t_opthdr *) 0)
6519  return 0;
6520if (sizeof (struct t_opthdr))
6521  return 0;
6522  ;
6523  return 0;
6524}
6525_ACEOF
6526rm -f conftest.$ac_objext
6527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6528  (eval $ac_compile) 2>conftest.er1
6529  ac_status=$?
6530  grep -v '^ *+' conftest.er1 >conftest.err
6531  rm -f conftest.er1
6532  cat conftest.err >&5
6533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534  (exit $ac_status); } &&
6535	 { ac_try='test -z "$ac_c_werror_flag"
6536			 || test ! -s conftest.err'
6537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538  (eval $ac_try) 2>&5
6539  ac_status=$?
6540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541  (exit $ac_status); }; } &&
6542	 { ac_try='test -s conftest.$ac_objext'
6543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544  (eval $ac_try) 2>&5
6545  ac_status=$?
6546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547  (exit $ac_status); }; }; then
6548  ac_cv_type_struct_t_opthdr=yes
6549else
6550  echo "$as_me: failed program was:" >&5
6551sed 's/^/| /' conftest.$ac_ext >&5
6552
6553ac_cv_type_struct_t_opthdr=no
6554fi
6555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6556fi
6557echo "$as_me:$LINENO: result: $ac_cv_type_struct_t_opthdr" >&5
6558echo "${ECHO_T}$ac_cv_type_struct_t_opthdr" >&6
6559if test $ac_cv_type_struct_t_opthdr = yes; then
6560
6561cat >>confdefs.h <<_ACEOF
6562#define HAVE_STRUCT_T_OPTHDR 1
6563_ACEOF
6564
6565
6566fi
6567
6568
6569if test x$opsys != xlinux; then
6570
6571echo "$as_me:$LINENO: checking for main in -lnsl" >&5
6572echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
6573if test "${ac_cv_lib_nsl_main+set}" = set; then
6574  echo $ECHO_N "(cached) $ECHO_C" >&6
6575else
6576  ac_check_lib_save_LIBS=$LIBS
6577LIBS="-lnsl  $LIBS"
6578cat >conftest.$ac_ext <<_ACEOF
6579/* confdefs.h.  */
6580_ACEOF
6581cat confdefs.h >>conftest.$ac_ext
6582cat >>conftest.$ac_ext <<_ACEOF
6583/* end confdefs.h.  */
6584
6585
6586int
6587main ()
6588{
6589main ();
6590  ;
6591  return 0;
6592}
6593_ACEOF
6594rm -f conftest.$ac_objext conftest$ac_exeext
6595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6596  (eval $ac_link) 2>conftest.er1
6597  ac_status=$?
6598  grep -v '^ *+' conftest.er1 >conftest.err
6599  rm -f conftest.er1
6600  cat conftest.err >&5
6601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602  (exit $ac_status); } &&
6603	 { ac_try='test -z "$ac_c_werror_flag"
6604			 || test ! -s conftest.err'
6605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606  (eval $ac_try) 2>&5
6607  ac_status=$?
6608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609  (exit $ac_status); }; } &&
6610	 { ac_try='test -s conftest$ac_exeext'
6611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612  (eval $ac_try) 2>&5
6613  ac_status=$?
6614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615  (exit $ac_status); }; }; then
6616  ac_cv_lib_nsl_main=yes
6617else
6618  echo "$as_me: failed program was:" >&5
6619sed 's/^/| /' conftest.$ac_ext >&5
6620
6621ac_cv_lib_nsl_main=no
6622fi
6623rm -f conftest.err conftest.$ac_objext \
6624      conftest$ac_exeext conftest.$ac_ext
6625LIBS=$ac_check_lib_save_LIBS
6626fi
6627echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
6628echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
6629if test $ac_cv_lib_nsl_main = yes; then
6630  cat >>confdefs.h <<_ACEOF
6631#define HAVE_LIBNSL 1
6632_ACEOF
6633
6634  LIBS="-lnsl $LIBS"
6635
6636fi
6637
6638fi
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652for ac_func in sigaction strerror strsignal pread sys_siglist _sys_siglist getdents mctl prctl sendmsg inet_ntop if_indextoname
6653do
6654as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6655echo "$as_me:$LINENO: checking for $ac_func" >&5
6656echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6657if eval "test \"\${$as_ac_var+set}\" = set"; then
6658  echo $ECHO_N "(cached) $ECHO_C" >&6
6659else
6660  cat >conftest.$ac_ext <<_ACEOF
6661/* confdefs.h.  */
6662_ACEOF
6663cat confdefs.h >>conftest.$ac_ext
6664cat >>conftest.$ac_ext <<_ACEOF
6665/* end confdefs.h.  */
6666/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6667   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6668#define $ac_func innocuous_$ac_func
6669
6670/* System header to define __stub macros and hopefully few prototypes,
6671    which can conflict with char $ac_func (); below.
6672    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6673    <limits.h> exists even on freestanding compilers.  */
6674
6675#ifdef __STDC__
6676# include <limits.h>
6677#else
6678# include <assert.h>
6679#endif
6680
6681#undef $ac_func
6682
6683/* Override any gcc2 internal prototype to avoid an error.  */
6684#ifdef __cplusplus
6685extern "C"
6686{
6687#endif
6688/* We use char because int might match the return type of a gcc2
6689   builtin and then its argument prototype would still apply.  */
6690char $ac_func ();
6691/* The GNU C library defines this for functions which it implements
6692    to always fail with ENOSYS.  Some functions are actually named
6693    something starting with __ and the normal name is an alias.  */
6694#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6695choke me
6696#else
6697char (*f) () = $ac_func;
6698#endif
6699#ifdef __cplusplus
6700}
6701#endif
6702
6703int
6704main ()
6705{
6706return f != $ac_func;
6707  ;
6708  return 0;
6709}
6710_ACEOF
6711rm -f conftest.$ac_objext conftest$ac_exeext
6712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6713  (eval $ac_link) 2>conftest.er1
6714  ac_status=$?
6715  grep -v '^ *+' conftest.er1 >conftest.err
6716  rm -f conftest.er1
6717  cat conftest.err >&5
6718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719  (exit $ac_status); } &&
6720	 { ac_try='test -z "$ac_c_werror_flag"
6721			 || test ! -s conftest.err'
6722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723  (eval $ac_try) 2>&5
6724  ac_status=$?
6725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726  (exit $ac_status); }; } &&
6727	 { ac_try='test -s conftest$ac_exeext'
6728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729  (eval $ac_try) 2>&5
6730  ac_status=$?
6731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732  (exit $ac_status); }; }; then
6733  eval "$as_ac_var=yes"
6734else
6735  echo "$as_me: failed program was:" >&5
6736sed 's/^/| /' conftest.$ac_ext >&5
6737
6738eval "$as_ac_var=no"
6739fi
6740rm -f conftest.err conftest.$ac_objext \
6741      conftest$ac_exeext conftest.$ac_ext
6742fi
6743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6744echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6745if test `eval echo '${'$as_ac_var'}'` = yes; then
6746  cat >>confdefs.h <<_ACEOF
6747#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6748_ACEOF
6749
6750fi
6751done
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781for ac_header in sys/reg.h sys/filio.h sys/acl.h sys/asynch.h sys/door.h stropts.h sys/conf.h sys/stream.h sys/tihdr.h sys/tiuser.h sys/sysconfig.h ioctls.h sys/ioctl.h sys/ptrace.h termio.h linux/ptrace.h asm/reg.h sys/uio.h sys/aio.h  poll.h sys/poll.h sys/vfs.h asm/sysmips.h linux/utsname.h sys/nscsys.h mqueue.h sys/epoll.h libaio.h
6782do
6783as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6784if eval "test \"\${$as_ac_Header+set}\" = set"; then
6785  echo "$as_me:$LINENO: checking for $ac_header" >&5
6786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6787if eval "test \"\${$as_ac_Header+set}\" = set"; then
6788  echo $ECHO_N "(cached) $ECHO_C" >&6
6789fi
6790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6792else
6793  # Is the header compilable?
6794echo "$as_me:$LINENO: checking $ac_header usability" >&5
6795echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6796cat >conftest.$ac_ext <<_ACEOF
6797/* confdefs.h.  */
6798_ACEOF
6799cat confdefs.h >>conftest.$ac_ext
6800cat >>conftest.$ac_ext <<_ACEOF
6801/* end confdefs.h.  */
6802$ac_includes_default
6803#include <$ac_header>
6804_ACEOF
6805rm -f conftest.$ac_objext
6806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6807  (eval $ac_compile) 2>conftest.er1
6808  ac_status=$?
6809  grep -v '^ *+' conftest.er1 >conftest.err
6810  rm -f conftest.er1
6811  cat conftest.err >&5
6812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813  (exit $ac_status); } &&
6814	 { ac_try='test -z "$ac_c_werror_flag"
6815			 || test ! -s conftest.err'
6816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817  (eval $ac_try) 2>&5
6818  ac_status=$?
6819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820  (exit $ac_status); }; } &&
6821	 { ac_try='test -s conftest.$ac_objext'
6822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823  (eval $ac_try) 2>&5
6824  ac_status=$?
6825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826  (exit $ac_status); }; }; then
6827  ac_header_compiler=yes
6828else
6829  echo "$as_me: failed program was:" >&5
6830sed 's/^/| /' conftest.$ac_ext >&5
6831
6832ac_header_compiler=no
6833fi
6834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6835echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6836echo "${ECHO_T}$ac_header_compiler" >&6
6837
6838# Is the header present?
6839echo "$as_me:$LINENO: checking $ac_header presence" >&5
6840echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6841cat >conftest.$ac_ext <<_ACEOF
6842/* confdefs.h.  */
6843_ACEOF
6844cat confdefs.h >>conftest.$ac_ext
6845cat >>conftest.$ac_ext <<_ACEOF
6846/* end confdefs.h.  */
6847#include <$ac_header>
6848_ACEOF
6849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6850  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6851  ac_status=$?
6852  grep -v '^ *+' conftest.er1 >conftest.err
6853  rm -f conftest.er1
6854  cat conftest.err >&5
6855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856  (exit $ac_status); } >/dev/null; then
6857  if test -s conftest.err; then
6858    ac_cpp_err=$ac_c_preproc_warn_flag
6859    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6860  else
6861    ac_cpp_err=
6862  fi
6863else
6864  ac_cpp_err=yes
6865fi
6866if test -z "$ac_cpp_err"; then
6867  ac_header_preproc=yes
6868else
6869  echo "$as_me: failed program was:" >&5
6870sed 's/^/| /' conftest.$ac_ext >&5
6871
6872  ac_header_preproc=no
6873fi
6874rm -f conftest.err conftest.$ac_ext
6875echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6876echo "${ECHO_T}$ac_header_preproc" >&6
6877
6878# So?  What about this header?
6879case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6880  yes:no: )
6881    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6882echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6883    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6884echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6885    ac_header_preproc=yes
6886    ;;
6887  no:yes:* )
6888    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6889echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6890    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6891echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6892    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6893echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6894    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6895echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6896    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6897echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6898    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6899echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6900    (
6901      cat <<\_ASBOX
6902## --------------------------------- ##
6903## Report this to the strace lists.  ##
6904## --------------------------------- ##
6905_ASBOX
6906    ) |
6907      sed "s/^/$as_me: WARNING:     /" >&2
6908    ;;
6909esac
6910echo "$as_me:$LINENO: checking for $ac_header" >&5
6911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6912if eval "test \"\${$as_ac_Header+set}\" = set"; then
6913  echo $ECHO_N "(cached) $ECHO_C" >&6
6914else
6915  eval "$as_ac_Header=\$ac_header_preproc"
6916fi
6917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6919
6920fi
6921if test `eval echo '${'$as_ac_Header'}'` = yes; then
6922  cat >>confdefs.h <<_ACEOF
6923#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6924_ACEOF
6925
6926fi
6927
6928done
6929
6930
6931
6932
6933
6934for ac_header in linux/icmp.h linux/in6.h linux/netlink.h linux/if_packet.h
6935do
6936as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6937echo "$as_me:$LINENO: checking for $ac_header" >&5
6938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6939if eval "test \"\${$as_ac_Header+set}\" = set"; then
6940  echo $ECHO_N "(cached) $ECHO_C" >&6
6941else
6942  cat >conftest.$ac_ext <<_ACEOF
6943/* confdefs.h.  */
6944_ACEOF
6945cat confdefs.h >>conftest.$ac_ext
6946cat >>conftest.$ac_ext <<_ACEOF
6947/* end confdefs.h.  */
6948#include <linux/socket.h>
6949
6950#include <$ac_header>
6951_ACEOF
6952rm -f conftest.$ac_objext
6953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6954  (eval $ac_compile) 2>conftest.er1
6955  ac_status=$?
6956  grep -v '^ *+' conftest.er1 >conftest.err
6957  rm -f conftest.er1
6958  cat conftest.err >&5
6959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960  (exit $ac_status); } &&
6961	 { ac_try='test -z "$ac_c_werror_flag"
6962			 || test ! -s conftest.err'
6963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964  (eval $ac_try) 2>&5
6965  ac_status=$?
6966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967  (exit $ac_status); }; } &&
6968	 { ac_try='test -s conftest.$ac_objext'
6969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970  (eval $ac_try) 2>&5
6971  ac_status=$?
6972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973  (exit $ac_status); }; }; then
6974  eval "$as_ac_Header=yes"
6975else
6976  echo "$as_me: failed program was:" >&5
6977sed 's/^/| /' conftest.$ac_ext >&5
6978
6979eval "$as_ac_Header=no"
6980fi
6981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6982fi
6983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6984echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6985if test `eval echo '${'$as_ac_Header'}'` = yes; then
6986  cat >>confdefs.h <<_ACEOF
6987#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6988_ACEOF
6989
6990fi
6991
6992done
6993
6994
6995for ac_header in asm/sigcontext.h
6996do
6997as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6998echo "$as_me:$LINENO: checking for $ac_header" >&5
6999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7000if eval "test \"\${$as_ac_Header+set}\" = set"; then
7001  echo $ECHO_N "(cached) $ECHO_C" >&6
7002else
7003  cat >conftest.$ac_ext <<_ACEOF
7004/* confdefs.h.  */
7005_ACEOF
7006cat confdefs.h >>conftest.$ac_ext
7007cat >>conftest.$ac_ext <<_ACEOF
7008/* end confdefs.h.  */
7009#include <signal.h>
7010
7011#include <$ac_header>
7012_ACEOF
7013rm -f conftest.$ac_objext
7014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7015  (eval $ac_compile) 2>conftest.er1
7016  ac_status=$?
7017  grep -v '^ *+' conftest.er1 >conftest.err
7018  rm -f conftest.er1
7019  cat conftest.err >&5
7020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021  (exit $ac_status); } &&
7022	 { ac_try='test -z "$ac_c_werror_flag"
7023			 || test ! -s conftest.err'
7024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025  (eval $ac_try) 2>&5
7026  ac_status=$?
7027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028  (exit $ac_status); }; } &&
7029	 { ac_try='test -s conftest.$ac_objext'
7030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031  (eval $ac_try) 2>&5
7032  ac_status=$?
7033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034  (exit $ac_status); }; }; then
7035  eval "$as_ac_Header=yes"
7036else
7037  echo "$as_me: failed program was:" >&5
7038sed 's/^/| /' conftest.$ac_ext >&5
7039
7040eval "$as_ac_Header=no"
7041fi
7042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7043fi
7044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7046if test `eval echo '${'$as_ac_Header'}'` = yes; then
7047  cat >>confdefs.h <<_ACEOF
7048#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7049_ACEOF
7050
7051fi
7052
7053done
7054
7055
7056
7057for ac_header in netinet/tcp.h netinet/udp.h
7058do
7059as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7060echo "$as_me:$LINENO: checking for $ac_header" >&5
7061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7062if eval "test \"\${$as_ac_Header+set}\" = set"; then
7063  echo $ECHO_N "(cached) $ECHO_C" >&6
7064else
7065  cat >conftest.$ac_ext <<_ACEOF
7066/* confdefs.h.  */
7067_ACEOF
7068cat confdefs.h >>conftest.$ac_ext
7069cat >>conftest.$ac_ext <<_ACEOF
7070/* end confdefs.h.  */
7071#include <netinet/in.h>
7072
7073#include <$ac_header>
7074_ACEOF
7075rm -f conftest.$ac_objext
7076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077  (eval $ac_compile) 2>conftest.er1
7078  ac_status=$?
7079  grep -v '^ *+' conftest.er1 >conftest.err
7080  rm -f conftest.er1
7081  cat conftest.err >&5
7082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083  (exit $ac_status); } &&
7084	 { ac_try='test -z "$ac_c_werror_flag"
7085			 || test ! -s conftest.err'
7086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087  (eval $ac_try) 2>&5
7088  ac_status=$?
7089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090  (exit $ac_status); }; } &&
7091	 { ac_try='test -s conftest.$ac_objext'
7092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093  (eval $ac_try) 2>&5
7094  ac_status=$?
7095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096  (exit $ac_status); }; }; then
7097  eval "$as_ac_Header=yes"
7098else
7099  echo "$as_me: failed program was:" >&5
7100sed 's/^/| /' conftest.$ac_ext >&5
7101
7102eval "$as_ac_Header=no"
7103fi
7104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7105fi
7106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7108if test `eval echo '${'$as_ac_Header'}'` = yes; then
7109  cat >>confdefs.h <<_ACEOF
7110#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7111_ACEOF
7112
7113fi
7114
7115done
7116
7117
7118echo "$as_me:$LINENO: checking for MP procfs" >&5
7119echo $ECHO_N "checking for MP procfs... $ECHO_C" >&6
7120if test "${ac_cv_mp_procfs+set}" = set; then
7121  echo $ECHO_N "(cached) $ECHO_C" >&6
7122else
7123  if test "$cross_compiling" = yes; then
7124
7125# Guess or punt.
7126case "$host_os" in
7127svr4.2*|svr5*)
7128	ac_cv_mp_procfs=yes
7129	;;
7130*)
7131	ac_cv_mp_procfs=no
7132	;;
7133esac
7134
7135else
7136  cat >conftest.$ac_ext <<_ACEOF
7137/* confdefs.h.  */
7138_ACEOF
7139cat confdefs.h >>conftest.$ac_ext
7140cat >>conftest.$ac_ext <<_ACEOF
7141/* end confdefs.h.  */
7142
7143#include <stdio.h>
7144#include <signal.h>
7145#include <sys/procfs.h>
7146
7147main()
7148{
7149	int pid;
7150	char proc[32];
7151	FILE *ctl;
7152	FILE *status;
7153	int cmd;
7154	struct pstatus pstatus;
7155
7156	if ((pid = fork()) == 0) {
7157		pause();
7158		exit(0);
7159	}
7160	sprintf(proc, "/proc/%d/ctl", pid);
7161	if ((ctl = fopen(proc, "w")) == NULL)
7162		goto fail;
7163	sprintf(proc, "/proc/%d/status", pid);
7164	if ((status = fopen (proc, "r")) == NULL)
7165		goto fail;
7166	cmd = PCSTOP;
7167	if (write (fileno (ctl), &cmd, sizeof cmd) < 0)
7168		goto fail;
7169	if (read (fileno (status), &pstatus, sizeof pstatus) < 0)
7170		goto fail;
7171	kill(pid, SIGKILL);
7172	exit(0);
7173fail:
7174	kill(pid, SIGKILL);
7175	exit(1);
7176}
7177
7178_ACEOF
7179rm -f conftest$ac_exeext
7180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7181  (eval $ac_link) 2>&5
7182  ac_status=$?
7183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186  (eval $ac_try) 2>&5
7187  ac_status=$?
7188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189  (exit $ac_status); }; }; then
7190  ac_cv_mp_procfs=yes
7191else
7192  echo "$as_me: program exited with status $ac_status" >&5
7193echo "$as_me: failed program was:" >&5
7194sed 's/^/| /' conftest.$ac_ext >&5
7195
7196( exit $ac_status )
7197ac_cv_mp_procfs=no
7198fi
7199rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7200fi
7201fi
7202
7203echo "$as_me:$LINENO: result: $ac_cv_mp_procfs" >&5
7204echo "${ECHO_T}$ac_cv_mp_procfs" >&6
7205if test "$ac_cv_mp_procfs" = yes
7206then
7207
7208cat >>confdefs.h <<\_ACEOF
7209#define HAVE_MP_PROCFS 1
7210_ACEOF
7211
7212fi
7213
7214echo "$as_me:$LINENO: checking for pollable procfs" >&5
7215echo $ECHO_N "checking for pollable procfs... $ECHO_C" >&6
7216if test "${ac_cv_pollable_procfs+set}" = set; then
7217  echo $ECHO_N "(cached) $ECHO_C" >&6
7218else
7219  if test "$cross_compiling" = yes; then
7220
7221# Guess or punt.
7222case "$host_os" in
7223solaris2*|irix5*|svr4.2uw*|svr5*)
7224	ac_cv_pollable_procfs=yes
7225	;;
7226*)
7227	ac_cv_pollable_procfs=no
7228	;;
7229esac
7230
7231else
7232  cat >conftest.$ac_ext <<_ACEOF
7233/* confdefs.h.  */
7234_ACEOF
7235cat confdefs.h >>conftest.$ac_ext
7236cat >>conftest.$ac_ext <<_ACEOF
7237/* end confdefs.h.  */
7238
7239#include <stdio.h>
7240#include <signal.h>
7241#include <sys/procfs.h>
7242#include <sys/stropts.h>
7243#include <poll.h>
7244
7245#ifdef HAVE_MP_PROCFS
7246#define PIOCSTOP	PCSTOP
7247#define POLLWANT	POLLWRNORM
7248#define PROC		"/proc/%d/ctl"
7249#define PROC_MODE	"w"
7250int IOCTL (int fd, int cmd, int arg) {
7251	return write (fd, &cmd, sizeof cmd);
7252}
7253#else
7254#define POLLWANT	POLLPRI
7255#define	PROC		"/proc/%d"
7256#define PROC_MODE	"r+"
7257#define IOCTL		ioctl
7258#endif
7259
7260main()
7261{
7262	int pid;
7263	char proc[32];
7264	FILE *pfp;
7265	struct pollfd pfd;
7266
7267	if ((pid = fork()) == 0) {
7268		pause();
7269		exit(0);
7270	}
7271	sprintf(proc, PROC, pid);
7272	if ((pfp = fopen(proc, PROC_MODE)) == NULL)
7273		goto fail;
7274	if (IOCTL(fileno(pfp), PIOCSTOP, NULL) < 0)
7275		goto fail;
7276	pfd.fd = fileno(pfp);
7277	pfd.events = POLLWANT;
7278	if (poll(&pfd, 1, 0) < 0)
7279		goto fail;
7280	if (!(pfd.revents & POLLWANT))
7281		goto fail;
7282	kill(pid, SIGKILL);
7283	exit(0);
7284fail:
7285	kill(pid, SIGKILL);
7286	exit(1);
7287}
7288
7289_ACEOF
7290rm -f conftest$ac_exeext
7291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7292  (eval $ac_link) 2>&5
7293  ac_status=$?
7294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297  (eval $ac_try) 2>&5
7298  ac_status=$?
7299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300  (exit $ac_status); }; }; then
7301  ac_cv_pollable_procfs=yes
7302else
7303  echo "$as_me: program exited with status $ac_status" >&5
7304echo "$as_me: failed program was:" >&5
7305sed 's/^/| /' conftest.$ac_ext >&5
7306
7307( exit $ac_status )
7308ac_cv_pollable_procfs=no
7309fi
7310rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7311fi
7312fi
7313
7314echo "$as_me:$LINENO: result: $ac_cv_pollable_procfs" >&5
7315echo "${ECHO_T}$ac_cv_pollable_procfs" >&6
7316if test "$ac_cv_pollable_procfs" = yes
7317then
7318
7319cat >>confdefs.h <<\_ACEOF
7320#define HAVE_POLLABLE_PROCFS 1
7321_ACEOF
7322
7323fi
7324
7325
7326echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
7327echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
7328if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
7329  echo $ECHO_N "(cached) $ECHO_C" >&6
7330else
7331  cat >conftest.$ac_ext <<_ACEOF
7332/* confdefs.h.  */
7333_ACEOF
7334cat confdefs.h >>conftest.$ac_ext
7335cat >>conftest.$ac_ext <<_ACEOF
7336/* end confdefs.h.  */
7337#include <sys/socket.h>
7338
7339int
7340main ()
7341{
7342static struct msghdr ac_aggr;
7343if (ac_aggr.msg_control)
7344return 0;
7345  ;
7346  return 0;
7347}
7348_ACEOF
7349rm -f conftest.$ac_objext
7350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351  (eval $ac_compile) 2>conftest.er1
7352  ac_status=$?
7353  grep -v '^ *+' conftest.er1 >conftest.err
7354  rm -f conftest.er1
7355  cat conftest.err >&5
7356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357  (exit $ac_status); } &&
7358	 { ac_try='test -z "$ac_c_werror_flag"
7359			 || test ! -s conftest.err'
7360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361  (eval $ac_try) 2>&5
7362  ac_status=$?
7363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364  (exit $ac_status); }; } &&
7365	 { ac_try='test -s conftest.$ac_objext'
7366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367  (eval $ac_try) 2>&5
7368  ac_status=$?
7369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370  (exit $ac_status); }; }; then
7371  ac_cv_member_struct_msghdr_msg_control=yes
7372else
7373  echo "$as_me: failed program was:" >&5
7374sed 's/^/| /' conftest.$ac_ext >&5
7375
7376cat >conftest.$ac_ext <<_ACEOF
7377/* confdefs.h.  */
7378_ACEOF
7379cat confdefs.h >>conftest.$ac_ext
7380cat >>conftest.$ac_ext <<_ACEOF
7381/* end confdefs.h.  */
7382#include <sys/socket.h>
7383
7384int
7385main ()
7386{
7387static struct msghdr ac_aggr;
7388if (sizeof ac_aggr.msg_control)
7389return 0;
7390  ;
7391  return 0;
7392}
7393_ACEOF
7394rm -f conftest.$ac_objext
7395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7396  (eval $ac_compile) 2>conftest.er1
7397  ac_status=$?
7398  grep -v '^ *+' conftest.er1 >conftest.err
7399  rm -f conftest.er1
7400  cat conftest.err >&5
7401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402  (exit $ac_status); } &&
7403	 { ac_try='test -z "$ac_c_werror_flag"
7404			 || test ! -s conftest.err'
7405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406  (eval $ac_try) 2>&5
7407  ac_status=$?
7408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409  (exit $ac_status); }; } &&
7410	 { ac_try='test -s conftest.$ac_objext'
7411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412  (eval $ac_try) 2>&5
7413  ac_status=$?
7414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415  (exit $ac_status); }; }; then
7416  ac_cv_member_struct_msghdr_msg_control=yes
7417else
7418  echo "$as_me: failed program was:" >&5
7419sed 's/^/| /' conftest.$ac_ext >&5
7420
7421ac_cv_member_struct_msghdr_msg_control=no
7422fi
7423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7424fi
7425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7426fi
7427echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
7428echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
7429if test $ac_cv_member_struct_msghdr_msg_control = yes; then
7430
7431cat >>confdefs.h <<_ACEOF
7432#define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
7433_ACEOF
7434
7435
7436fi
7437
7438echo "$as_me:$LINENO: checking for pr_syscall in struct prstatus" >&5
7439echo $ECHO_N "checking for pr_syscall in struct prstatus... $ECHO_C" >&6
7440if test "${ac_cv_struct_pr_syscall+set}" = set; then
7441  echo $ECHO_N "(cached) $ECHO_C" >&6
7442else
7443  cat >conftest.$ac_ext <<_ACEOF
7444/* confdefs.h.  */
7445_ACEOF
7446cat confdefs.h >>conftest.$ac_ext
7447cat >>conftest.$ac_ext <<_ACEOF
7448/* end confdefs.h.  */
7449#include <sys/procfs.h>
7450int
7451main ()
7452{
7453#ifdef HAVE_MP_PROCFS
7454pstatus_t s;
7455s.pr_lwp.pr_syscall
7456#else
7457prstatus_t s;
7458s.pr_syscall
7459#endif
7460  ;
7461  return 0;
7462}
7463_ACEOF
7464rm -f conftest.$ac_objext
7465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7466  (eval $ac_compile) 2>conftest.er1
7467  ac_status=$?
7468  grep -v '^ *+' conftest.er1 >conftest.err
7469  rm -f conftest.er1
7470  cat conftest.err >&5
7471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472  (exit $ac_status); } &&
7473	 { ac_try='test -z "$ac_c_werror_flag"
7474			 || test ! -s conftest.err'
7475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476  (eval $ac_try) 2>&5
7477  ac_status=$?
7478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479  (exit $ac_status); }; } &&
7480	 { ac_try='test -s conftest.$ac_objext'
7481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482  (eval $ac_try) 2>&5
7483  ac_status=$?
7484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485  (exit $ac_status); }; }; then
7486  ac_cv_struct_pr_syscall=yes
7487else
7488  echo "$as_me: failed program was:" >&5
7489sed 's/^/| /' conftest.$ac_ext >&5
7490
7491ac_cv_struct_pr_syscall=no
7492fi
7493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7494fi
7495
7496echo "$as_me:$LINENO: result: $ac_cv_struct_pr_syscall" >&5
7497echo "${ECHO_T}$ac_cv_struct_pr_syscall" >&6
7498if test "$ac_cv_struct_pr_syscall" = yes
7499then
7500
7501cat >>confdefs.h <<\_ACEOF
7502#define HAVE_PR_SYSCALL 1
7503_ACEOF
7504
7505fi
7506
7507
7508echo "$as_me:$LINENO: checking for struct T_conn_res.QUEUE_ptr" >&5
7509echo $ECHO_N "checking for struct T_conn_res.QUEUE_ptr... $ECHO_C" >&6
7510if test "${ac_cv_member_struct_T_conn_res_QUEUE_ptr+set}" = set; then
7511  echo $ECHO_N "(cached) $ECHO_C" >&6
7512else
7513  cat >conftest.$ac_ext <<_ACEOF
7514/* confdefs.h.  */
7515_ACEOF
7516cat confdefs.h >>conftest.$ac_ext
7517cat >>conftest.$ac_ext <<_ACEOF
7518/* end confdefs.h.  */
7519#include <sys/stream.h>
7520#include <sys/tihdr.h>
7521
7522int
7523main ()
7524{
7525static struct T_conn_res ac_aggr;
7526if (ac_aggr.QUEUE_ptr)
7527return 0;
7528  ;
7529  return 0;
7530}
7531_ACEOF
7532rm -f conftest.$ac_objext
7533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7534  (eval $ac_compile) 2>conftest.er1
7535  ac_status=$?
7536  grep -v '^ *+' conftest.er1 >conftest.err
7537  rm -f conftest.er1
7538  cat conftest.err >&5
7539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540  (exit $ac_status); } &&
7541	 { ac_try='test -z "$ac_c_werror_flag"
7542			 || test ! -s conftest.err'
7543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544  (eval $ac_try) 2>&5
7545  ac_status=$?
7546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547  (exit $ac_status); }; } &&
7548	 { ac_try='test -s conftest.$ac_objext'
7549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550  (eval $ac_try) 2>&5
7551  ac_status=$?
7552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553  (exit $ac_status); }; }; then
7554  ac_cv_member_struct_T_conn_res_QUEUE_ptr=yes
7555else
7556  echo "$as_me: failed program was:" >&5
7557sed 's/^/| /' conftest.$ac_ext >&5
7558
7559cat >conftest.$ac_ext <<_ACEOF
7560/* confdefs.h.  */
7561_ACEOF
7562cat confdefs.h >>conftest.$ac_ext
7563cat >>conftest.$ac_ext <<_ACEOF
7564/* end confdefs.h.  */
7565#include <sys/stream.h>
7566#include <sys/tihdr.h>
7567
7568int
7569main ()
7570{
7571static struct T_conn_res ac_aggr;
7572if (sizeof ac_aggr.QUEUE_ptr)
7573return 0;
7574  ;
7575  return 0;
7576}
7577_ACEOF
7578rm -f conftest.$ac_objext
7579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7580  (eval $ac_compile) 2>conftest.er1
7581  ac_status=$?
7582  grep -v '^ *+' conftest.er1 >conftest.err
7583  rm -f conftest.er1
7584  cat conftest.err >&5
7585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586  (exit $ac_status); } &&
7587	 { ac_try='test -z "$ac_c_werror_flag"
7588			 || test ! -s conftest.err'
7589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590  (eval $ac_try) 2>&5
7591  ac_status=$?
7592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593  (exit $ac_status); }; } &&
7594	 { ac_try='test -s conftest.$ac_objext'
7595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596  (eval $ac_try) 2>&5
7597  ac_status=$?
7598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599  (exit $ac_status); }; }; then
7600  ac_cv_member_struct_T_conn_res_QUEUE_ptr=yes
7601else
7602  echo "$as_me: failed program was:" >&5
7603sed 's/^/| /' conftest.$ac_ext >&5
7604
7605ac_cv_member_struct_T_conn_res_QUEUE_ptr=no
7606fi
7607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7608fi
7609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7610fi
7611echo "$as_me:$LINENO: result: $ac_cv_member_struct_T_conn_res_QUEUE_ptr" >&5
7612echo "${ECHO_T}$ac_cv_member_struct_T_conn_res_QUEUE_ptr" >&6
7613if test $ac_cv_member_struct_T_conn_res_QUEUE_ptr = yes; then
7614
7615cat >>confdefs.h <<_ACEOF
7616#define HAVE_STRUCT_T_CONN_RES_QUEUE_PTR 1
7617_ACEOF
7618
7619
7620fi
7621echo "$as_me:$LINENO: checking for struct T_conn_res.ACCEPTOR_id" >&5
7622echo $ECHO_N "checking for struct T_conn_res.ACCEPTOR_id... $ECHO_C" >&6
7623if test "${ac_cv_member_struct_T_conn_res_ACCEPTOR_id+set}" = set; then
7624  echo $ECHO_N "(cached) $ECHO_C" >&6
7625else
7626  cat >conftest.$ac_ext <<_ACEOF
7627/* confdefs.h.  */
7628_ACEOF
7629cat confdefs.h >>conftest.$ac_ext
7630cat >>conftest.$ac_ext <<_ACEOF
7631/* end confdefs.h.  */
7632#include <sys/stream.h>
7633#include <sys/tihdr.h>
7634
7635int
7636main ()
7637{
7638static struct T_conn_res ac_aggr;
7639if (ac_aggr.ACCEPTOR_id)
7640return 0;
7641  ;
7642  return 0;
7643}
7644_ACEOF
7645rm -f conftest.$ac_objext
7646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7647  (eval $ac_compile) 2>conftest.er1
7648  ac_status=$?
7649  grep -v '^ *+' conftest.er1 >conftest.err
7650  rm -f conftest.er1
7651  cat conftest.err >&5
7652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653  (exit $ac_status); } &&
7654	 { ac_try='test -z "$ac_c_werror_flag"
7655			 || test ! -s conftest.err'
7656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657  (eval $ac_try) 2>&5
7658  ac_status=$?
7659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660  (exit $ac_status); }; } &&
7661	 { ac_try='test -s conftest.$ac_objext'
7662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663  (eval $ac_try) 2>&5
7664  ac_status=$?
7665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666  (exit $ac_status); }; }; then
7667  ac_cv_member_struct_T_conn_res_ACCEPTOR_id=yes
7668else
7669  echo "$as_me: failed program was:" >&5
7670sed 's/^/| /' conftest.$ac_ext >&5
7671
7672cat >conftest.$ac_ext <<_ACEOF
7673/* confdefs.h.  */
7674_ACEOF
7675cat confdefs.h >>conftest.$ac_ext
7676cat >>conftest.$ac_ext <<_ACEOF
7677/* end confdefs.h.  */
7678#include <sys/stream.h>
7679#include <sys/tihdr.h>
7680
7681int
7682main ()
7683{
7684static struct T_conn_res ac_aggr;
7685if (sizeof ac_aggr.ACCEPTOR_id)
7686return 0;
7687  ;
7688  return 0;
7689}
7690_ACEOF
7691rm -f conftest.$ac_objext
7692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7693  (eval $ac_compile) 2>conftest.er1
7694  ac_status=$?
7695  grep -v '^ *+' conftest.er1 >conftest.err
7696  rm -f conftest.er1
7697  cat conftest.err >&5
7698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699  (exit $ac_status); } &&
7700	 { ac_try='test -z "$ac_c_werror_flag"
7701			 || test ! -s conftest.err'
7702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703  (eval $ac_try) 2>&5
7704  ac_status=$?
7705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706  (exit $ac_status); }; } &&
7707	 { ac_try='test -s conftest.$ac_objext'
7708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709  (eval $ac_try) 2>&5
7710  ac_status=$?
7711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712  (exit $ac_status); }; }; then
7713  ac_cv_member_struct_T_conn_res_ACCEPTOR_id=yes
7714else
7715  echo "$as_me: failed program was:" >&5
7716sed 's/^/| /' conftest.$ac_ext >&5
7717
7718ac_cv_member_struct_T_conn_res_ACCEPTOR_id=no
7719fi
7720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7721fi
7722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7723fi
7724echo "$as_me:$LINENO: result: $ac_cv_member_struct_T_conn_res_ACCEPTOR_id" >&5
7725echo "${ECHO_T}$ac_cv_member_struct_T_conn_res_ACCEPTOR_id" >&6
7726if test $ac_cv_member_struct_T_conn_res_ACCEPTOR_id = yes; then
7727
7728cat >>confdefs.h <<_ACEOF
7729#define HAVE_STRUCT_T_CONN_RES_ACCEPTOR_ID 1
7730_ACEOF
7731
7732
7733fi
7734
7735
7736echo "$as_me:$LINENO: checking for struct __old_kernel_stat" >&5
7737echo $ECHO_N "checking for struct __old_kernel_stat... $ECHO_C" >&6
7738if test "${ac_cv_type_struct___old_kernel_stat+set}" = set; then
7739  echo $ECHO_N "(cached) $ECHO_C" >&6
7740else
7741  cat >conftest.$ac_ext <<_ACEOF
7742/* confdefs.h.  */
7743_ACEOF
7744cat confdefs.h >>conftest.$ac_ext
7745cat >>conftest.$ac_ext <<_ACEOF
7746/* end confdefs.h.  */
7747#include <asm/stat.h>
7748
7749int
7750main ()
7751{
7752if ((struct __old_kernel_stat *) 0)
7753  return 0;
7754if (sizeof (struct __old_kernel_stat))
7755  return 0;
7756  ;
7757  return 0;
7758}
7759_ACEOF
7760rm -f conftest.$ac_objext
7761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7762  (eval $ac_compile) 2>conftest.er1
7763  ac_status=$?
7764  grep -v '^ *+' conftest.er1 >conftest.err
7765  rm -f conftest.er1
7766  cat conftest.err >&5
7767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768  (exit $ac_status); } &&
7769	 { ac_try='test -z "$ac_c_werror_flag"
7770			 || test ! -s conftest.err'
7771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772  (eval $ac_try) 2>&5
7773  ac_status=$?
7774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775  (exit $ac_status); }; } &&
7776	 { ac_try='test -s conftest.$ac_objext'
7777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778  (eval $ac_try) 2>&5
7779  ac_status=$?
7780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781  (exit $ac_status); }; }; then
7782  ac_cv_type_struct___old_kernel_stat=yes
7783else
7784  echo "$as_me: failed program was:" >&5
7785sed 's/^/| /' conftest.$ac_ext >&5
7786
7787ac_cv_type_struct___old_kernel_stat=no
7788fi
7789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7790fi
7791echo "$as_me:$LINENO: result: $ac_cv_type_struct___old_kernel_stat" >&5
7792echo "${ECHO_T}$ac_cv_type_struct___old_kernel_stat" >&6
7793if test $ac_cv_type_struct___old_kernel_stat = yes; then
7794
7795cat >>confdefs.h <<_ACEOF
7796#define HAVE_STRUCT___OLD_KERNEL_STAT 1
7797_ACEOF
7798
7799
7800fi
7801
7802
7803echo "$as_me:$LINENO: checking for struct pt_all_user_regs" >&5
7804echo $ECHO_N "checking for struct pt_all_user_regs... $ECHO_C" >&6
7805if test "${ac_cv_type_struct_pt_all_user_regs+set}" = set; then
7806  echo $ECHO_N "(cached) $ECHO_C" >&6
7807else
7808  cat >conftest.$ac_ext <<_ACEOF
7809/* confdefs.h.  */
7810_ACEOF
7811cat confdefs.h >>conftest.$ac_ext
7812cat >>conftest.$ac_ext <<_ACEOF
7813/* end confdefs.h.  */
7814#include <sys/ptrace.h>
7815
7816int
7817main ()
7818{
7819if ((struct pt_all_user_regs *) 0)
7820  return 0;
7821if (sizeof (struct pt_all_user_regs))
7822  return 0;
7823  ;
7824  return 0;
7825}
7826_ACEOF
7827rm -f conftest.$ac_objext
7828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829  (eval $ac_compile) 2>conftest.er1
7830  ac_status=$?
7831  grep -v '^ *+' conftest.er1 >conftest.err
7832  rm -f conftest.er1
7833  cat conftest.err >&5
7834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835  (exit $ac_status); } &&
7836	 { ac_try='test -z "$ac_c_werror_flag"
7837			 || test ! -s conftest.err'
7838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839  (eval $ac_try) 2>&5
7840  ac_status=$?
7841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842  (exit $ac_status); }; } &&
7843	 { ac_try='test -s conftest.$ac_objext'
7844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845  (eval $ac_try) 2>&5
7846  ac_status=$?
7847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848  (exit $ac_status); }; }; then
7849  ac_cv_type_struct_pt_all_user_regs=yes
7850else
7851  echo "$as_me: failed program was:" >&5
7852sed 's/^/| /' conftest.$ac_ext >&5
7853
7854ac_cv_type_struct_pt_all_user_regs=no
7855fi
7856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7857fi
7858echo "$as_me:$LINENO: result: $ac_cv_type_struct_pt_all_user_regs" >&5
7859echo "${ECHO_T}$ac_cv_type_struct_pt_all_user_regs" >&6
7860if test $ac_cv_type_struct_pt_all_user_regs = yes; then
7861
7862cat >>confdefs.h <<_ACEOF
7863#define HAVE_STRUCT_PT_ALL_USER_REGS 1
7864_ACEOF
7865
7866
7867fi
7868echo "$as_me:$LINENO: checking for struct ia64_fpreg" >&5
7869echo $ECHO_N "checking for struct ia64_fpreg... $ECHO_C" >&6
7870if test "${ac_cv_type_struct_ia64_fpreg+set}" = set; then
7871  echo $ECHO_N "(cached) $ECHO_C" >&6
7872else
7873  cat >conftest.$ac_ext <<_ACEOF
7874/* confdefs.h.  */
7875_ACEOF
7876cat confdefs.h >>conftest.$ac_ext
7877cat >>conftest.$ac_ext <<_ACEOF
7878/* end confdefs.h.  */
7879#include <sys/ptrace.h>
7880
7881int
7882main ()
7883{
7884if ((struct ia64_fpreg *) 0)
7885  return 0;
7886if (sizeof (struct ia64_fpreg))
7887  return 0;
7888  ;
7889  return 0;
7890}
7891_ACEOF
7892rm -f conftest.$ac_objext
7893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7894  (eval $ac_compile) 2>conftest.er1
7895  ac_status=$?
7896  grep -v '^ *+' conftest.er1 >conftest.err
7897  rm -f conftest.er1
7898  cat conftest.err >&5
7899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900  (exit $ac_status); } &&
7901	 { ac_try='test -z "$ac_c_werror_flag"
7902			 || test ! -s conftest.err'
7903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904  (eval $ac_try) 2>&5
7905  ac_status=$?
7906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907  (exit $ac_status); }; } &&
7908	 { ac_try='test -s conftest.$ac_objext'
7909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910  (eval $ac_try) 2>&5
7911  ac_status=$?
7912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913  (exit $ac_status); }; }; then
7914  ac_cv_type_struct_ia64_fpreg=yes
7915else
7916  echo "$as_me: failed program was:" >&5
7917sed 's/^/| /' conftest.$ac_ext >&5
7918
7919ac_cv_type_struct_ia64_fpreg=no
7920fi
7921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7922fi
7923echo "$as_me:$LINENO: result: $ac_cv_type_struct_ia64_fpreg" >&5
7924echo "${ECHO_T}$ac_cv_type_struct_ia64_fpreg" >&6
7925if test $ac_cv_type_struct_ia64_fpreg = yes; then
7926
7927cat >>confdefs.h <<_ACEOF
7928#define HAVE_STRUCT_IA64_FPREG 1
7929_ACEOF
7930
7931
7932fi
7933
7934
7935echo "$as_me:$LINENO: checking for struct user_desc" >&5
7936echo $ECHO_N "checking for struct user_desc... $ECHO_C" >&6
7937if test "${ac_cv_type_struct_user_desc+set}" = set; then
7938  echo $ECHO_N "(cached) $ECHO_C" >&6
7939else
7940  cat >conftest.$ac_ext <<_ACEOF
7941/* confdefs.h.  */
7942_ACEOF
7943cat confdefs.h >>conftest.$ac_ext
7944cat >>conftest.$ac_ext <<_ACEOF
7945/* end confdefs.h.  */
7946#include <asm/ldt.h>
7947
7948int
7949main ()
7950{
7951if ((struct user_desc *) 0)
7952  return 0;
7953if (sizeof (struct user_desc))
7954  return 0;
7955  ;
7956  return 0;
7957}
7958_ACEOF
7959rm -f conftest.$ac_objext
7960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7961  (eval $ac_compile) 2>conftest.er1
7962  ac_status=$?
7963  grep -v '^ *+' conftest.er1 >conftest.err
7964  rm -f conftest.er1
7965  cat conftest.err >&5
7966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967  (exit $ac_status); } &&
7968	 { ac_try='test -z "$ac_c_werror_flag"
7969			 || test ! -s conftest.err'
7970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971  (eval $ac_try) 2>&5
7972  ac_status=$?
7973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974  (exit $ac_status); }; } &&
7975	 { ac_try='test -s conftest.$ac_objext'
7976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977  (eval $ac_try) 2>&5
7978  ac_status=$?
7979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980  (exit $ac_status); }; }; then
7981  ac_cv_type_struct_user_desc=yes
7982else
7983  echo "$as_me: failed program was:" >&5
7984sed 's/^/| /' conftest.$ac_ext >&5
7985
7986ac_cv_type_struct_user_desc=no
7987fi
7988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7989fi
7990echo "$as_me:$LINENO: result: $ac_cv_type_struct_user_desc" >&5
7991echo "${ECHO_T}$ac_cv_type_struct_user_desc" >&6
7992if test $ac_cv_type_struct_user_desc = yes; then
7993
7994cat >>confdefs.h <<_ACEOF
7995#define HAVE_STRUCT_USER_DESC 1
7996_ACEOF
7997
7998
7999fi
8000
8001
8002echo "$as_me:$LINENO: checking whether sys_errlist is declared" >&5
8003echo $ECHO_N "checking whether sys_errlist is declared... $ECHO_C" >&6
8004if test "${ac_cv_have_decl_sys_errlist+set}" = set; then
8005  echo $ECHO_N "(cached) $ECHO_C" >&6
8006else
8007  cat >conftest.$ac_ext <<_ACEOF
8008/* confdefs.h.  */
8009_ACEOF
8010cat confdefs.h >>conftest.$ac_ext
8011cat >>conftest.$ac_ext <<_ACEOF
8012/* end confdefs.h.  */
8013$ac_includes_default
8014int
8015main ()
8016{
8017#ifndef sys_errlist
8018  char *p = (char *) sys_errlist;
8019#endif
8020
8021  ;
8022  return 0;
8023}
8024_ACEOF
8025rm -f conftest.$ac_objext
8026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8027  (eval $ac_compile) 2>conftest.er1
8028  ac_status=$?
8029  grep -v '^ *+' conftest.er1 >conftest.err
8030  rm -f conftest.er1
8031  cat conftest.err >&5
8032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033  (exit $ac_status); } &&
8034	 { ac_try='test -z "$ac_c_werror_flag"
8035			 || test ! -s conftest.err'
8036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037  (eval $ac_try) 2>&5
8038  ac_status=$?
8039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040  (exit $ac_status); }; } &&
8041	 { ac_try='test -s conftest.$ac_objext'
8042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043  (eval $ac_try) 2>&5
8044  ac_status=$?
8045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046  (exit $ac_status); }; }; then
8047  ac_cv_have_decl_sys_errlist=yes
8048else
8049  echo "$as_me: failed program was:" >&5
8050sed 's/^/| /' conftest.$ac_ext >&5
8051
8052ac_cv_have_decl_sys_errlist=no
8053fi
8054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8055fi
8056echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_errlist" >&5
8057echo "${ECHO_T}$ac_cv_have_decl_sys_errlist" >&6
8058if test $ac_cv_have_decl_sys_errlist = yes; then
8059
8060cat >>confdefs.h <<_ACEOF
8061#define HAVE_DECL_SYS_ERRLIST 1
8062_ACEOF
8063
8064
8065else
8066  cat >>confdefs.h <<_ACEOF
8067#define HAVE_DECL_SYS_ERRLIST 0
8068_ACEOF
8069
8070
8071fi
8072
8073
8074echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
8075echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
8076if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
8077  echo $ECHO_N "(cached) $ECHO_C" >&6
8078else
8079  cat >conftest.$ac_ext <<_ACEOF
8080/* confdefs.h.  */
8081_ACEOF
8082cat confdefs.h >>conftest.$ac_ext
8083cat >>conftest.$ac_ext <<_ACEOF
8084/* end confdefs.h.  */
8085#include <signal.h>
8086
8087int
8088main ()
8089{
8090#ifndef sys_siglist
8091  char *p = (char *) sys_siglist;
8092#endif
8093
8094  ;
8095  return 0;
8096}
8097_ACEOF
8098rm -f conftest.$ac_objext
8099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8100  (eval $ac_compile) 2>conftest.er1
8101  ac_status=$?
8102  grep -v '^ *+' conftest.er1 >conftest.err
8103  rm -f conftest.er1
8104  cat conftest.err >&5
8105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106  (exit $ac_status); } &&
8107	 { ac_try='test -z "$ac_c_werror_flag"
8108			 || test ! -s conftest.err'
8109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110  (eval $ac_try) 2>&5
8111  ac_status=$?
8112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113  (exit $ac_status); }; } &&
8114	 { ac_try='test -s conftest.$ac_objext'
8115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116  (eval $ac_try) 2>&5
8117  ac_status=$?
8118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119  (exit $ac_status); }; }; then
8120  ac_cv_have_decl_sys_siglist=yes
8121else
8122  echo "$as_me: failed program was:" >&5
8123sed 's/^/| /' conftest.$ac_ext >&5
8124
8125ac_cv_have_decl_sys_siglist=no
8126fi
8127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8128fi
8129echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
8130echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
8131if test $ac_cv_have_decl_sys_siglist = yes; then
8132
8133cat >>confdefs.h <<_ACEOF
8134#define HAVE_DECL_SYS_SIGLIST 1
8135_ACEOF
8136
8137
8138else
8139  cat >>confdefs.h <<_ACEOF
8140#define HAVE_DECL_SYS_SIGLIST 0
8141_ACEOF
8142
8143
8144fi
8145echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
8146echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
8147if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
8148  echo $ECHO_N "(cached) $ECHO_C" >&6
8149else
8150  cat >conftest.$ac_ext <<_ACEOF
8151/* confdefs.h.  */
8152_ACEOF
8153cat confdefs.h >>conftest.$ac_ext
8154cat >>conftest.$ac_ext <<_ACEOF
8155/* end confdefs.h.  */
8156#include <signal.h>
8157
8158int
8159main ()
8160{
8161#ifndef _sys_siglist
8162  char *p = (char *) _sys_siglist;
8163#endif
8164
8165  ;
8166  return 0;
8167}
8168_ACEOF
8169rm -f conftest.$ac_objext
8170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8171  (eval $ac_compile) 2>conftest.er1
8172  ac_status=$?
8173  grep -v '^ *+' conftest.er1 >conftest.err
8174  rm -f conftest.er1
8175  cat conftest.err >&5
8176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177  (exit $ac_status); } &&
8178	 { ac_try='test -z "$ac_c_werror_flag"
8179			 || test ! -s conftest.err'
8180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181  (eval $ac_try) 2>&5
8182  ac_status=$?
8183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184  (exit $ac_status); }; } &&
8185	 { ac_try='test -s conftest.$ac_objext'
8186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187  (eval $ac_try) 2>&5
8188  ac_status=$?
8189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190  (exit $ac_status); }; }; then
8191  ac_cv_have_decl__sys_siglist=yes
8192else
8193  echo "$as_me: failed program was:" >&5
8194sed 's/^/| /' conftest.$ac_ext >&5
8195
8196ac_cv_have_decl__sys_siglist=no
8197fi
8198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8199fi
8200echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
8201echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
8202if test $ac_cv_have_decl__sys_siglist = yes; then
8203
8204cat >>confdefs.h <<_ACEOF
8205#define HAVE_DECL__SYS_SIGLIST 1
8206_ACEOF
8207
8208
8209else
8210  cat >>confdefs.h <<_ACEOF
8211#define HAVE_DECL__SYS_SIGLIST 0
8212_ACEOF
8213
8214
8215fi
8216
8217
8218
8219# Extract the first word of "perl", so it can be a program name with args.
8220set dummy perl; ac_word=$2
8221echo "$as_me:$LINENO: checking for $ac_word" >&5
8222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8223if test "${ac_cv_path_PERL+set}" = set; then
8224  echo $ECHO_N "(cached) $ECHO_C" >&6
8225else
8226  case $PERL in
8227  [\\/]* | ?:[\\/]*)
8228  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8229  ;;
8230  *)
8231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232for as_dir in $PATH
8233do
8234  IFS=$as_save_IFS
8235  test -z "$as_dir" && as_dir=.
8236  for ac_exec_ext in '' $ac_executable_extensions; do
8237  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8238    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8239    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8240    break 2
8241  fi
8242done
8243done
8244
8245  ;;
8246esac
8247fi
8248PERL=$ac_cv_path_PERL
8249
8250if test -n "$PERL"; then
8251  echo "$as_me:$LINENO: result: $PERL" >&5
8252echo "${ECHO_T}$PERL" >&6
8253else
8254  echo "$as_me:$LINENO: result: no" >&5
8255echo "${ECHO_T}no" >&6
8256fi
8257
8258
8259          ac_config_files="$ac_config_files Makefile"
8260
8261cat >confcache <<\_ACEOF
8262# This file is a shell script that caches the results of configure
8263# tests run on this system so they can be shared between configure
8264# scripts and configure runs, see configure's option --config-cache.
8265# It is not useful on other systems.  If it contains results you don't
8266# want to keep, you may remove or edit it.
8267#
8268# config.status only pays attention to the cache file if you give it
8269# the --recheck option to rerun configure.
8270#
8271# `ac_cv_env_foo' variables (set or unset) will be overridden when
8272# loading this file, other *unset* `ac_cv_foo' will be assigned the
8273# following values.
8274
8275_ACEOF
8276
8277# The following way of writing the cache mishandles newlines in values,
8278# but we know of no workaround that is simple, portable, and efficient.
8279# So, don't put newlines in cache variables' values.
8280# Ultrix sh set writes to stderr and can't be redirected directly,
8281# and sets the high bit in the cache file unless we assign to the vars.
8282{
8283  (set) 2>&1 |
8284    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8285    *ac_space=\ *)
8286      # `set' does not quote correctly, so add quotes (double-quote
8287      # substitution turns \\\\ into \\, and sed turns \\ into \).
8288      sed -n \
8289	"s/'/'\\\\''/g;
8290	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8291      ;;
8292    *)
8293      # `set' quotes correctly as required by POSIX, so do not add quotes.
8294      sed -n \
8295	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8296      ;;
8297    esac;
8298} |
8299  sed '
8300     t clear
8301     : clear
8302     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8303     t end
8304     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8305     : end' >>confcache
8306if diff $cache_file confcache >/dev/null 2>&1; then :; else
8307  if test -w $cache_file; then
8308    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8309    cat confcache >$cache_file
8310  else
8311    echo "not updating unwritable cache $cache_file"
8312  fi
8313fi
8314rm -f confcache
8315
8316test "x$prefix" = xNONE && prefix=$ac_default_prefix
8317# Let make expand exec_prefix.
8318test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8319
8320# VPATH may cause trouble with some makes, so we remove $(srcdir),
8321# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8322# trailing colons and then remove the whole line if VPATH becomes empty
8323# (actually we leave an empty line to preserve line numbers).
8324if test "x$srcdir" = x.; then
8325  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
8326s/:*\$(srcdir):*/:/;
8327s/:*\${srcdir}:*/:/;
8328s/:*@srcdir@:*/:/;
8329s/^\([^=]*=[	 ]*\):*/\1/;
8330s/:*$//;
8331s/^[^=]*=[	 ]*$//;
8332}'
8333fi
8334
8335DEFS=-DHAVE_CONFIG_H
8336
8337ac_libobjs=
8338ac_ltlibobjs=
8339for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8340  # 1. Remove the extension, and $U if already installed.
8341  ac_i=`echo "$ac_i" |
8342	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8343  # 2. Add them.
8344  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8345  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8346done
8347LIBOBJS=$ac_libobjs
8348
8349LTLIBOBJS=$ac_ltlibobjs
8350
8351
8352if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8353  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8354Usually this means the macro was only invoked conditionally." >&5
8355echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8356Usually this means the macro was only invoked conditionally." >&2;}
8357   { (exit 1); exit 1; }; }
8358fi
8359if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
8360  { { echo "$as_me:$LINENO: error: conditional \"LINUX\" was never defined.
8361Usually this means the macro was only invoked conditionally." >&5
8362echo "$as_me: error: conditional \"LINUX\" was never defined.
8363Usually this means the macro was only invoked conditionally." >&2;}
8364   { (exit 1); exit 1; }; }
8365fi
8366if test -z "${I386_TRUE}" && test -z "${I386_FALSE}"; then
8367  { { echo "$as_me:$LINENO: error: conditional \"I386\" was never defined.
8368Usually this means the macro was only invoked conditionally." >&5
8369echo "$as_me: error: conditional \"I386\" was never defined.
8370Usually this means the macro was only invoked conditionally." >&2;}
8371   { (exit 1); exit 1; }; }
8372fi
8373if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
8374  { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
8375Usually this means the macro was only invoked conditionally." >&5
8376echo "$as_me: error: conditional \"X86_64\" was never defined.
8377Usually this means the macro was only invoked conditionally." >&2;}
8378   { (exit 1); exit 1; }; }
8379fi
8380if test -z "${SUNOS4_TRUE}" && test -z "${SUNOS4_FALSE}"; then
8381  { { echo "$as_me:$LINENO: error: conditional \"SUNOS4\" was never defined.
8382Usually this means the macro was only invoked conditionally." >&5
8383echo "$as_me: error: conditional \"SUNOS4\" was never defined.
8384Usually this means the macro was only invoked conditionally." >&2;}
8385   { (exit 1); exit 1; }; }
8386fi
8387if test -z "${SVR4_TRUE}" && test -z "${SVR4_FALSE}"; then
8388  { { echo "$as_me:$LINENO: error: conditional \"SVR4\" was never defined.
8389Usually this means the macro was only invoked conditionally." >&5
8390echo "$as_me: error: conditional \"SVR4\" was never defined.
8391Usually this means the macro was only invoked conditionally." >&2;}
8392   { (exit 1); exit 1; }; }
8393fi
8394if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then
8395  { { echo "$as_me:$LINENO: error: conditional \"FREEBSD\" was never defined.
8396Usually this means the macro was only invoked conditionally." >&5
8397echo "$as_me: error: conditional \"FREEBSD\" was never defined.
8398Usually this means the macro was only invoked conditionally." >&2;}
8399   { (exit 1); exit 1; }; }
8400fi
8401if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8402  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8403Usually this means the macro was only invoked conditionally." >&5
8404echo "$as_me: error: conditional \"AMDEP\" was never defined.
8405Usually this means the macro was only invoked conditionally." >&2;}
8406   { (exit 1); exit 1; }; }
8407fi
8408if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8409  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8410Usually this means the macro was only invoked conditionally." >&5
8411echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8412Usually this means the macro was only invoked conditionally." >&2;}
8413   { (exit 1); exit 1; }; }
8414fi
8415
8416: ${CONFIG_STATUS=./config.status}
8417ac_clean_files_save=$ac_clean_files
8418ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8419{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8420echo "$as_me: creating $CONFIG_STATUS" >&6;}
8421cat >$CONFIG_STATUS <<_ACEOF
8422#! $SHELL
8423# Generated by $as_me.
8424# Run this file to recreate the current configuration.
8425# Compiler output produced by configure, useful for debugging
8426# configure, is in config.log if it exists.
8427
8428debug=false
8429ac_cs_recheck=false
8430ac_cs_silent=false
8431SHELL=\${CONFIG_SHELL-$SHELL}
8432_ACEOF
8433
8434cat >>$CONFIG_STATUS <<\_ACEOF
8435## --------------------- ##
8436## M4sh Initialization.  ##
8437## --------------------- ##
8438
8439# Be Bourne compatible
8440if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8441  emulate sh
8442  NULLCMD=:
8443  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8444  # is contrary to our usage.  Disable this feature.
8445  alias -g '${1+"$@"}'='"$@"'
8446elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8447  set -o posix
8448fi
8449DUALCASE=1; export DUALCASE # for MKS sh
8450
8451# Support unset when possible.
8452if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8453  as_unset=unset
8454else
8455  as_unset=false
8456fi
8457
8458
8459# Work around bugs in pre-3.0 UWIN ksh.
8460$as_unset ENV MAIL MAILPATH
8461PS1='$ '
8462PS2='> '
8463PS4='+ '
8464
8465# NLS nuisances.
8466for as_var in \
8467  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8468  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8469  LC_TELEPHONE LC_TIME
8470do
8471  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8472    eval $as_var=C; export $as_var
8473  else
8474    $as_unset $as_var
8475  fi
8476done
8477
8478# Required to use basename.
8479if expr a : '\(a\)' >/dev/null 2>&1; then
8480  as_expr=expr
8481else
8482  as_expr=false
8483fi
8484
8485if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8486  as_basename=basename
8487else
8488  as_basename=false
8489fi
8490
8491
8492# Name of the executable.
8493as_me=`$as_basename "$0" ||
8494$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8495	 X"$0" : 'X\(//\)$' \| \
8496	 X"$0" : 'X\(/\)$' \| \
8497	 .     : '\(.\)' 2>/dev/null ||
8498echo X/"$0" |
8499    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8500  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
8501  	  /^X\/\(\/\).*/{ s//\1/; q; }
8502  	  s/.*/./; q'`
8503
8504
8505# PATH needs CR, and LINENO needs CR and PATH.
8506# Avoid depending upon Character Ranges.
8507as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8508as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8509as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8510as_cr_digits='0123456789'
8511as_cr_alnum=$as_cr_Letters$as_cr_digits
8512
8513# The user is always right.
8514if test "${PATH_SEPARATOR+set}" != set; then
8515  echo "#! /bin/sh" >conf$$.sh
8516  echo  "exit 0"   >>conf$$.sh
8517  chmod +x conf$$.sh
8518  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8519    PATH_SEPARATOR=';'
8520  else
8521    PATH_SEPARATOR=:
8522  fi
8523  rm -f conf$$.sh
8524fi
8525
8526
8527  as_lineno_1=$LINENO
8528  as_lineno_2=$LINENO
8529  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8530  test "x$as_lineno_1" != "x$as_lineno_2" &&
8531  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8532  # Find who we are.  Look in the path if we contain no path at all
8533  # relative or not.
8534  case $0 in
8535    *[\\/]* ) as_myself=$0 ;;
8536    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537for as_dir in $PATH
8538do
8539  IFS=$as_save_IFS
8540  test -z "$as_dir" && as_dir=.
8541  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8542done
8543
8544       ;;
8545  esac
8546  # We did not find ourselves, most probably we were run as `sh COMMAND'
8547  # in which case we are not to be found in the path.
8548  if test "x$as_myself" = x; then
8549    as_myself=$0
8550  fi
8551  if test ! -f "$as_myself"; then
8552    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8553echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8554   { (exit 1); exit 1; }; }
8555  fi
8556  case $CONFIG_SHELL in
8557  '')
8558    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8560do
8561  IFS=$as_save_IFS
8562  test -z "$as_dir" && as_dir=.
8563  for as_base in sh bash ksh sh5; do
8564	 case $as_dir in
8565	 /*)
8566	   if ("$as_dir/$as_base" -c '
8567  as_lineno_1=$LINENO
8568  as_lineno_2=$LINENO
8569  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8570  test "x$as_lineno_1" != "x$as_lineno_2" &&
8571  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8572	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8573	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8574	     CONFIG_SHELL=$as_dir/$as_base
8575	     export CONFIG_SHELL
8576	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8577	   fi;;
8578	 esac
8579       done
8580done
8581;;
8582  esac
8583
8584  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8585  # uniformly replaced by the line number.  The first 'sed' inserts a
8586  # line-number line before each line; the second 'sed' does the real
8587  # work.  The second script uses 'N' to pair each line-number line
8588  # with the numbered line, and appends trailing '-' during
8589  # substitution so that $LINENO is not a special case at line end.
8590  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8591  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8592  sed '=' <$as_myself |
8593    sed '
8594      N
8595      s,$,-,
8596      : loop
8597      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8598      t loop
8599      s,-$,,
8600      s,^['$as_cr_digits']*\n,,
8601    ' >$as_me.lineno &&
8602  chmod +x $as_me.lineno ||
8603    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8604echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8605   { (exit 1); exit 1; }; }
8606
8607  # Don't try to exec as it changes $[0], causing all sort of problems
8608  # (the dirname of $[0] is not the place where we might find the
8609  # original and so on.  Autoconf is especially sensible to this).
8610  . ./$as_me.lineno
8611  # Exit status is that of the last command.
8612  exit
8613}
8614
8615
8616case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8617  *c*,-n*) ECHO_N= ECHO_C='
8618' ECHO_T='	' ;;
8619  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8620  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8621esac
8622
8623if expr a : '\(a\)' >/dev/null 2>&1; then
8624  as_expr=expr
8625else
8626  as_expr=false
8627fi
8628
8629rm -f conf$$ conf$$.exe conf$$.file
8630echo >conf$$.file
8631if ln -s conf$$.file conf$$ 2>/dev/null; then
8632  # We could just check for DJGPP; but this test a) works b) is more generic
8633  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8634  if test -f conf$$.exe; then
8635    # Don't use ln at all; we don't have any links
8636    as_ln_s='cp -p'
8637  else
8638    as_ln_s='ln -s'
8639  fi
8640elif ln conf$$.file conf$$ 2>/dev/null; then
8641  as_ln_s=ln
8642else
8643  as_ln_s='cp -p'
8644fi
8645rm -f conf$$ conf$$.exe conf$$.file
8646
8647if mkdir -p . 2>/dev/null; then
8648  as_mkdir_p=:
8649else
8650  test -d ./-p && rmdir ./-p
8651  as_mkdir_p=false
8652fi
8653
8654as_executable_p="test -f"
8655
8656# Sed expression to map a string onto a valid CPP name.
8657as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8658
8659# Sed expression to map a string onto a valid variable name.
8660as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8661
8662
8663# IFS
8664# We need space, tab and new line, in precisely that order.
8665as_nl='
8666'
8667IFS=" 	$as_nl"
8668
8669# CDPATH.
8670$as_unset CDPATH
8671
8672exec 6>&1
8673
8674# Open the log real soon, to keep \$[0] and so on meaningful, and to
8675# report actual input values of CONFIG_FILES etc. instead of their
8676# values after options handling.  Logging --version etc. is OK.
8677exec 5>>config.log
8678{
8679  echo
8680  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8681## Running $as_me. ##
8682_ASBOX
8683} >&5
8684cat >&5 <<_CSEOF
8685
8686This file was extended by strace $as_me 4.5.12, which was
8687generated by GNU Autoconf 2.59.  Invocation command line was
8688
8689  CONFIG_FILES    = $CONFIG_FILES
8690  CONFIG_HEADERS  = $CONFIG_HEADERS
8691  CONFIG_LINKS    = $CONFIG_LINKS
8692  CONFIG_COMMANDS = $CONFIG_COMMANDS
8693  $ $0 $@
8694
8695_CSEOF
8696echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8697echo >&5
8698_ACEOF
8699
8700# Files that config.status was made for.
8701if test -n "$ac_config_files"; then
8702  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8703fi
8704
8705if test -n "$ac_config_headers"; then
8706  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8707fi
8708
8709if test -n "$ac_config_links"; then
8710  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8711fi
8712
8713if test -n "$ac_config_commands"; then
8714  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8715fi
8716
8717cat >>$CONFIG_STATUS <<\_ACEOF
8718
8719ac_cs_usage="\
8720\`$as_me' instantiates files from templates according to the
8721current configuration.
8722
8723Usage: $0 [OPTIONS] [FILE]...
8724
8725  -h, --help       print this help, then exit
8726  -V, --version    print version number, then exit
8727  -q, --quiet      do not print progress messages
8728  -d, --debug      don't remove temporary files
8729      --recheck    update $as_me by reconfiguring in the same conditions
8730  --file=FILE[:TEMPLATE]
8731		   instantiate the configuration file FILE
8732  --header=FILE[:TEMPLATE]
8733		   instantiate the configuration header FILE
8734
8735Configuration files:
8736$config_files
8737
8738Configuration headers:
8739$config_headers
8740
8741Configuration commands:
8742$config_commands
8743
8744Report bugs to <bug-autoconf@gnu.org>."
8745_ACEOF
8746
8747cat >>$CONFIG_STATUS <<_ACEOF
8748ac_cs_version="\\
8749strace config.status 4.5.12
8750configured by $0, generated by GNU Autoconf 2.59,
8751  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8752
8753Copyright (C) 2003 Free Software Foundation, Inc.
8754This config.status script is free software; the Free Software Foundation
8755gives unlimited permission to copy, distribute and modify it."
8756srcdir=$srcdir
8757INSTALL="$INSTALL"
8758_ACEOF
8759
8760cat >>$CONFIG_STATUS <<\_ACEOF
8761# If no file are specified by the user, then we need to provide default
8762# value.  By we need to know if files were specified by the user.
8763ac_need_defaults=:
8764while test $# != 0
8765do
8766  case $1 in
8767  --*=*)
8768    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8769    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8770    ac_shift=:
8771    ;;
8772  -*)
8773    ac_option=$1
8774    ac_optarg=$2
8775    ac_shift=shift
8776    ;;
8777  *) # This is not an option, so the user has probably given explicit
8778     # arguments.
8779     ac_option=$1
8780     ac_need_defaults=false;;
8781  esac
8782
8783  case $ac_option in
8784  # Handling of the options.
8785_ACEOF
8786cat >>$CONFIG_STATUS <<\_ACEOF
8787  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8788    ac_cs_recheck=: ;;
8789  --version | --vers* | -V )
8790    echo "$ac_cs_version"; exit 0 ;;
8791  --he | --h)
8792    # Conflict between --help and --header
8793    { { echo "$as_me:$LINENO: error: ambiguous option: $1
8794Try \`$0 --help' for more information." >&5
8795echo "$as_me: error: ambiguous option: $1
8796Try \`$0 --help' for more information." >&2;}
8797   { (exit 1); exit 1; }; };;
8798  --help | --hel | -h )
8799    echo "$ac_cs_usage"; exit 0 ;;
8800  --debug | --d* | -d )
8801    debug=: ;;
8802  --file | --fil | --fi | --f )
8803    $ac_shift
8804    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8805    ac_need_defaults=false;;
8806  --header | --heade | --head | --hea )
8807    $ac_shift
8808    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8809    ac_need_defaults=false;;
8810  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8811  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8812    ac_cs_silent=: ;;
8813
8814  # This is an error.
8815  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8816Try \`$0 --help' for more information." >&5
8817echo "$as_me: error: unrecognized option: $1
8818Try \`$0 --help' for more information." >&2;}
8819   { (exit 1); exit 1; }; } ;;
8820
8821  *) ac_config_targets="$ac_config_targets $1" ;;
8822
8823  esac
8824  shift
8825done
8826
8827ac_configure_extra_args=
8828
8829if $ac_cs_silent; then
8830  exec 6>/dev/null
8831  ac_configure_extra_args="$ac_configure_extra_args --silent"
8832fi
8833
8834_ACEOF
8835cat >>$CONFIG_STATUS <<_ACEOF
8836if \$ac_cs_recheck; then
8837  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8838  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8839fi
8840
8841_ACEOF
8842
8843cat >>$CONFIG_STATUS <<_ACEOF
8844#
8845# INIT-COMMANDS section.
8846#
8847
8848AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8849
8850_ACEOF
8851
8852
8853
8854cat >>$CONFIG_STATUS <<\_ACEOF
8855for ac_config_target in $ac_config_targets
8856do
8857  case "$ac_config_target" in
8858  # Handling of arguments.
8859  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8860  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8861  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8862  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8863echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8864   { (exit 1); exit 1; }; };;
8865  esac
8866done
8867
8868# If the user did not use the arguments to specify the items to instantiate,
8869# then the envvar interface is used.  Set only those that are not.
8870# We use the long form for the default assignment because of an extremely
8871# bizarre bug on SunOS 4.1.3.
8872if $ac_need_defaults; then
8873  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8874  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8875  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8876fi
8877
8878# Have a temporary directory for convenience.  Make it in the build tree
8879# simply because there is no reason to put it here, and in addition,
8880# creating and moving files from /tmp can sometimes cause problems.
8881# Create a temporary directory, and hook for its removal unless debugging.
8882$debug ||
8883{
8884  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8885  trap '{ (exit 1); exit 1; }' 1 2 13 15
8886}
8887
8888# Create a (secure) tmp directory for tmp files.
8889
8890{
8891  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8892  test -n "$tmp" && test -d "$tmp"
8893}  ||
8894{
8895  tmp=./confstat$$-$RANDOM
8896  (umask 077 && mkdir $tmp)
8897} ||
8898{
8899   echo "$me: cannot create a temporary directory in ." >&2
8900   { (exit 1); exit 1; }
8901}
8902
8903_ACEOF
8904
8905cat >>$CONFIG_STATUS <<_ACEOF
8906
8907#
8908# CONFIG_FILES section.
8909#
8910
8911# No need to generate the scripts if there are no CONFIG_FILES.
8912# This happens for instance when ./config.status config.h
8913if test -n "\$CONFIG_FILES"; then
8914  # Protect against being on the right side of a sed subst in config.status.
8915  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8916   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8917s,@SHELL@,$SHELL,;t t
8918s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8919s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8920s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8921s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8922s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8923s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8924s,@exec_prefix@,$exec_prefix,;t t
8925s,@prefix@,$prefix,;t t
8926s,@program_transform_name@,$program_transform_name,;t t
8927s,@bindir@,$bindir,;t t
8928s,@sbindir@,$sbindir,;t t
8929s,@libexecdir@,$libexecdir,;t t
8930s,@datadir@,$datadir,;t t
8931s,@sysconfdir@,$sysconfdir,;t t
8932s,@sharedstatedir@,$sharedstatedir,;t t
8933s,@localstatedir@,$localstatedir,;t t
8934s,@libdir@,$libdir,;t t
8935s,@includedir@,$includedir,;t t
8936s,@oldincludedir@,$oldincludedir,;t t
8937s,@infodir@,$infodir,;t t
8938s,@mandir@,$mandir,;t t
8939s,@build_alias@,$build_alias,;t t
8940s,@host_alias@,$host_alias,;t t
8941s,@target_alias@,$target_alias,;t t
8942s,@DEFS@,$DEFS,;t t
8943s,@ECHO_C@,$ECHO_C,;t t
8944s,@ECHO_N@,$ECHO_N,;t t
8945s,@ECHO_T@,$ECHO_T,;t t
8946s,@LIBS@,$LIBS,;t t
8947s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8948s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8949s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8950s,@CYGPATH_W@,$CYGPATH_W,;t t
8951s,@PACKAGE@,$PACKAGE,;t t
8952s,@VERSION@,$VERSION,;t t
8953s,@ACLOCAL@,$ACLOCAL,;t t
8954s,@AUTOCONF@,$AUTOCONF,;t t
8955s,@AUTOMAKE@,$AUTOMAKE,;t t
8956s,@AUTOHEADER@,$AUTOHEADER,;t t
8957s,@MAKEINFO@,$MAKEINFO,;t t
8958s,@install_sh@,$install_sh,;t t
8959s,@STRIP@,$STRIP,;t t
8960s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8961s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8962s,@mkdir_p@,$mkdir_p,;t t
8963s,@AWK@,$AWK,;t t
8964s,@SET_MAKE@,$SET_MAKE,;t t
8965s,@am__leading_dot@,$am__leading_dot,;t t
8966s,@AMTAR@,$AMTAR,;t t
8967s,@am__tar@,$am__tar,;t t
8968s,@am__untar@,$am__untar,;t t
8969s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
8970s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
8971s,@MAINT@,$MAINT,;t t
8972s,@build@,$build,;t t
8973s,@build_cpu@,$build_cpu,;t t
8974s,@build_vendor@,$build_vendor,;t t
8975s,@build_os@,$build_os,;t t
8976s,@host@,$host,;t t
8977s,@host_cpu@,$host_cpu,;t t
8978s,@host_vendor@,$host_vendor,;t t
8979s,@host_os@,$host_os,;t t
8980s,@opsys@,$opsys,;t t
8981s,@arch@,$arch,;t t
8982s,@LINUX_TRUE@,$LINUX_TRUE,;t t
8983s,@LINUX_FALSE@,$LINUX_FALSE,;t t
8984s,@I386_TRUE@,$I386_TRUE,;t t
8985s,@I386_FALSE@,$I386_FALSE,;t t
8986s,@X86_64_TRUE@,$X86_64_TRUE,;t t
8987s,@X86_64_FALSE@,$X86_64_FALSE,;t t
8988s,@SUNOS4_TRUE@,$SUNOS4_TRUE,;t t
8989s,@SUNOS4_FALSE@,$SUNOS4_FALSE,;t t
8990s,@SVR4_TRUE@,$SVR4_TRUE,;t t
8991s,@SVR4_FALSE@,$SVR4_FALSE,;t t
8992s,@FREEBSD_TRUE@,$FREEBSD_TRUE,;t t
8993s,@FREEBSD_FALSE@,$FREEBSD_FALSE,;t t
8994s,@CC@,$CC,;t t
8995s,@CFLAGS@,$CFLAGS,;t t
8996s,@LDFLAGS@,$LDFLAGS,;t t
8997s,@CPPFLAGS@,$CPPFLAGS,;t t
8998s,@ac_ct_CC@,$ac_ct_CC,;t t
8999s,@EXEEXT@,$EXEEXT,;t t
9000s,@OBJEXT@,$OBJEXT,;t t
9001s,@DEPDIR@,$DEPDIR,;t t
9002s,@am__include@,$am__include,;t t
9003s,@am__quote@,$am__quote,;t t
9004s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9005s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9006s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9007s,@CCDEPMODE@,$CCDEPMODE,;t t
9008s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9009s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9010s,@WARNFLAGS@,$WARNFLAGS,;t t
9011s,@CPP@,$CPP,;t t
9012s,@EGREP@,$EGREP,;t t
9013s,@PERL@,$PERL,;t t
9014s,@LIBOBJS@,$LIBOBJS,;t t
9015s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9016CEOF
9017
9018_ACEOF
9019
9020  cat >>$CONFIG_STATUS <<\_ACEOF
9021  # Split the substitutions into bite-sized pieces for seds with
9022  # small command number limits, like on Digital OSF/1 and HP-UX.
9023  ac_max_sed_lines=48
9024  ac_sed_frag=1 # Number of current file.
9025  ac_beg=1 # First line for current file.
9026  ac_end=$ac_max_sed_lines # Line after last line for current file.
9027  ac_more_lines=:
9028  ac_sed_cmds=
9029  while $ac_more_lines; do
9030    if test $ac_beg -gt 1; then
9031      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9032    else
9033      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9034    fi
9035    if test ! -s $tmp/subs.frag; then
9036      ac_more_lines=false
9037    else
9038      # The purpose of the label and of the branching condition is to
9039      # speed up the sed processing (if there are no `@' at all, there
9040      # is no need to browse any of the substitutions).
9041      # These are the two extra sed commands mentioned above.
9042      (echo ':t
9043  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9044      if test -z "$ac_sed_cmds"; then
9045	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9046      else
9047	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9048      fi
9049      ac_sed_frag=`expr $ac_sed_frag + 1`
9050      ac_beg=$ac_end
9051      ac_end=`expr $ac_end + $ac_max_sed_lines`
9052    fi
9053  done
9054  if test -z "$ac_sed_cmds"; then
9055    ac_sed_cmds=cat
9056  fi
9057fi # test -n "$CONFIG_FILES"
9058
9059_ACEOF
9060cat >>$CONFIG_STATUS <<\_ACEOF
9061for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9062  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9063  case $ac_file in
9064  - | *:- | *:-:* ) # input from stdin
9065	cat >$tmp/stdin
9066	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9067	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9068  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9069	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9070  * )   ac_file_in=$ac_file.in ;;
9071  esac
9072
9073  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9074  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9075$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9076	 X"$ac_file" : 'X\(//\)[^/]' \| \
9077	 X"$ac_file" : 'X\(//\)$' \| \
9078	 X"$ac_file" : 'X\(/\)' \| \
9079	 .     : '\(.\)' 2>/dev/null ||
9080echo X"$ac_file" |
9081    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9082  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9083  	  /^X\(\/\/\)$/{ s//\1/; q; }
9084  	  /^X\(\/\).*/{ s//\1/; q; }
9085  	  s/.*/./; q'`
9086  { if $as_mkdir_p; then
9087    mkdir -p "$ac_dir"
9088  else
9089    as_dir="$ac_dir"
9090    as_dirs=
9091    while test ! -d "$as_dir"; do
9092      as_dirs="$as_dir $as_dirs"
9093      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9094$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9095	 X"$as_dir" : 'X\(//\)[^/]' \| \
9096	 X"$as_dir" : 'X\(//\)$' \| \
9097	 X"$as_dir" : 'X\(/\)' \| \
9098	 .     : '\(.\)' 2>/dev/null ||
9099echo X"$as_dir" |
9100    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9101  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9102  	  /^X\(\/\/\)$/{ s//\1/; q; }
9103  	  /^X\(\/\).*/{ s//\1/; q; }
9104  	  s/.*/./; q'`
9105    done
9106    test ! -n "$as_dirs" || mkdir $as_dirs
9107  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9108echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9109   { (exit 1); exit 1; }; }; }
9110
9111  ac_builddir=.
9112
9113if test "$ac_dir" != .; then
9114  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9115  # A "../" for each directory in $ac_dir_suffix.
9116  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9117else
9118  ac_dir_suffix= ac_top_builddir=
9119fi
9120
9121case $srcdir in
9122  .)  # No --srcdir option.  We are building in place.
9123    ac_srcdir=.
9124    if test -z "$ac_top_builddir"; then
9125       ac_top_srcdir=.
9126    else
9127       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9128    fi ;;
9129  [\\/]* | ?:[\\/]* )  # Absolute path.
9130    ac_srcdir=$srcdir$ac_dir_suffix;
9131    ac_top_srcdir=$srcdir ;;
9132  *) # Relative path.
9133    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9134    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9135esac
9136
9137# Do not use `cd foo && pwd` to compute absolute paths, because
9138# the directories may not exist.
9139case `pwd` in
9140.) ac_abs_builddir="$ac_dir";;
9141*)
9142  case "$ac_dir" in
9143  .) ac_abs_builddir=`pwd`;;
9144  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9145  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9146  esac;;
9147esac
9148case $ac_abs_builddir in
9149.) ac_abs_top_builddir=${ac_top_builddir}.;;
9150*)
9151  case ${ac_top_builddir}. in
9152  .) ac_abs_top_builddir=$ac_abs_builddir;;
9153  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9154  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9155  esac;;
9156esac
9157case $ac_abs_builddir in
9158.) ac_abs_srcdir=$ac_srcdir;;
9159*)
9160  case $ac_srcdir in
9161  .) ac_abs_srcdir=$ac_abs_builddir;;
9162  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9163  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9164  esac;;
9165esac
9166case $ac_abs_builddir in
9167.) ac_abs_top_srcdir=$ac_top_srcdir;;
9168*)
9169  case $ac_top_srcdir in
9170  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9171  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9172  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9173  esac;;
9174esac
9175
9176
9177  case $INSTALL in
9178  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9179  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9180  esac
9181
9182  if test x"$ac_file" != x-; then
9183    { echo "$as_me:$LINENO: creating $ac_file" >&5
9184echo "$as_me: creating $ac_file" >&6;}
9185    rm -f "$ac_file"
9186  fi
9187  # Let's still pretend it is `configure' which instantiates (i.e., don't
9188  # use $as_me), people would be surprised to read:
9189  #    /* config.h.  Generated by config.status.  */
9190  if test x"$ac_file" = x-; then
9191    configure_input=
9192  else
9193    configure_input="$ac_file.  "
9194  fi
9195  configure_input=$configure_input"Generated from `echo $ac_file_in |
9196				     sed 's,.*/,,'` by configure."
9197
9198  # First look for the input files in the build tree, otherwise in the
9199  # src tree.
9200  ac_file_inputs=`IFS=:
9201    for f in $ac_file_in; do
9202      case $f in
9203      -) echo $tmp/stdin ;;
9204      [\\/$]*)
9205	 # Absolute (can't be DOS-style, as IFS=:)
9206	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9207echo "$as_me: error: cannot find input file: $f" >&2;}
9208   { (exit 1); exit 1; }; }
9209	 echo "$f";;
9210      *) # Relative
9211	 if test -f "$f"; then
9212	   # Build tree
9213	   echo "$f"
9214	 elif test -f "$srcdir/$f"; then
9215	   # Source tree
9216	   echo "$srcdir/$f"
9217	 else
9218	   # /dev/null tree
9219	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9220echo "$as_me: error: cannot find input file: $f" >&2;}
9221   { (exit 1); exit 1; }; }
9222	 fi;;
9223      esac
9224    done` || { (exit 1); exit 1; }
9225_ACEOF
9226cat >>$CONFIG_STATUS <<_ACEOF
9227  sed "$ac_vpsub
9228$extrasub
9229_ACEOF
9230cat >>$CONFIG_STATUS <<\_ACEOF
9231:t
9232/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9233s,@configure_input@,$configure_input,;t t
9234s,@srcdir@,$ac_srcdir,;t t
9235s,@abs_srcdir@,$ac_abs_srcdir,;t t
9236s,@top_srcdir@,$ac_top_srcdir,;t t
9237s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9238s,@builddir@,$ac_builddir,;t t
9239s,@abs_builddir@,$ac_abs_builddir,;t t
9240s,@top_builddir@,$ac_top_builddir,;t t
9241s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9242s,@INSTALL@,$ac_INSTALL,;t t
9243" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9244  rm -f $tmp/stdin
9245  if test x"$ac_file" != x-; then
9246    mv $tmp/out $ac_file
9247  else
9248    cat $tmp/out
9249    rm -f $tmp/out
9250  fi
9251
9252done
9253_ACEOF
9254cat >>$CONFIG_STATUS <<\_ACEOF
9255
9256#
9257# CONFIG_HEADER section.
9258#
9259
9260# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9261# NAME is the cpp macro being defined and VALUE is the value it is being given.
9262#
9263# ac_d sets the value in "#define NAME VALUE" lines.
9264ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
9265ac_dB='[	 ].*$,\1#\2'
9266ac_dC=' '
9267ac_dD=',;t'
9268# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9269ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
9270ac_uB='$,\1#\2define\3'
9271ac_uC=' '
9272ac_uD=',;t'
9273
9274for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9275  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9276  case $ac_file in
9277  - | *:- | *:-:* ) # input from stdin
9278	cat >$tmp/stdin
9279	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9280	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9281  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9282	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9283  * )   ac_file_in=$ac_file.in ;;
9284  esac
9285
9286  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9287echo "$as_me: creating $ac_file" >&6;}
9288
9289  # First look for the input files in the build tree, otherwise in the
9290  # src tree.
9291  ac_file_inputs=`IFS=:
9292    for f in $ac_file_in; do
9293      case $f in
9294      -) echo $tmp/stdin ;;
9295      [\\/$]*)
9296	 # Absolute (can't be DOS-style, as IFS=:)
9297	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9298echo "$as_me: error: cannot find input file: $f" >&2;}
9299   { (exit 1); exit 1; }; }
9300	 # Do quote $f, to prevent DOS paths from being IFS'd.
9301	 echo "$f";;
9302      *) # Relative
9303	 if test -f "$f"; then
9304	   # Build tree
9305	   echo "$f"
9306	 elif test -f "$srcdir/$f"; then
9307	   # Source tree
9308	   echo "$srcdir/$f"
9309	 else
9310	   # /dev/null tree
9311	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9312echo "$as_me: error: cannot find input file: $f" >&2;}
9313   { (exit 1); exit 1; }; }
9314	 fi;;
9315      esac
9316    done` || { (exit 1); exit 1; }
9317  # Remove the trailing spaces.
9318  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
9319
9320_ACEOF
9321
9322# Transform confdefs.h into two sed scripts, `conftest.defines' and
9323# `conftest.undefs', that substitutes the proper values into
9324# config.h.in to produce config.h.  The first handles `#define'
9325# templates, and the second `#undef' templates.
9326# And first: Protect against being on the right side of a sed subst in
9327# config.status.  Protect against being in an unquoted here document
9328# in config.status.
9329rm -f conftest.defines conftest.undefs
9330# Using a here document instead of a string reduces the quoting nightmare.
9331# Putting comments in sed scripts is not portable.
9332#
9333# `end' is used to avoid that the second main sed command (meant for
9334# 0-ary CPP macros) applies to n-ary macro definitions.
9335# See the Autoconf documentation for `clear'.
9336cat >confdef2sed.sed <<\_ACEOF
9337s/[\\&,]/\\&/g
9338s,[\\$`],\\&,g
9339t clear
9340: clear
9341s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9342t end
9343s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9344: end
9345_ACEOF
9346# If some macros were called several times there might be several times
9347# the same #defines, which is useless.  Nevertheless, we may not want to
9348# sort them, since we want the *last* AC-DEFINE to be honored.
9349uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9350sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9351rm -f confdef2sed.sed
9352
9353# This sed command replaces #undef with comments.  This is necessary, for
9354# example, in the case of _POSIX_SOURCE, which is predefined and required
9355# on some systems where configure will not decide to define it.
9356cat >>conftest.undefs <<\_ACEOF
9357s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9358_ACEOF
9359
9360# Break up conftest.defines because some shells have a limit on the size
9361# of here documents, and old seds have small limits too (100 cmds).
9362echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9363echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9364echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9365echo '  :' >>$CONFIG_STATUS
9366rm -f conftest.tail
9367while grep . conftest.defines >/dev/null
9368do
9369  # Write a limited-size here document to $tmp/defines.sed.
9370  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9371  # Speed up: don't consider the non `#define' lines.
9372  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
9373  # Work around the forget-to-reset-the-flag bug.
9374  echo 't clr' >>$CONFIG_STATUS
9375  echo ': clr' >>$CONFIG_STATUS
9376  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9377  echo 'CEOF
9378  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9379  rm -f $tmp/in
9380  mv $tmp/out $tmp/in
9381' >>$CONFIG_STATUS
9382  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9383  rm -f conftest.defines
9384  mv conftest.tail conftest.defines
9385done
9386rm -f conftest.defines
9387echo '  fi # grep' >>$CONFIG_STATUS
9388echo >>$CONFIG_STATUS
9389
9390# Break up conftest.undefs because some shells have a limit on the size
9391# of here documents, and old seds have small limits too (100 cmds).
9392echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9393rm -f conftest.tail
9394while grep . conftest.undefs >/dev/null
9395do
9396  # Write a limited-size here document to $tmp/undefs.sed.
9397  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9398  # Speed up: don't consider the non `#undef'
9399  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
9400  # Work around the forget-to-reset-the-flag bug.
9401  echo 't clr' >>$CONFIG_STATUS
9402  echo ': clr' >>$CONFIG_STATUS
9403  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9404  echo 'CEOF
9405  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9406  rm -f $tmp/in
9407  mv $tmp/out $tmp/in
9408' >>$CONFIG_STATUS
9409  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9410  rm -f conftest.undefs
9411  mv conftest.tail conftest.undefs
9412done
9413rm -f conftest.undefs
9414
9415cat >>$CONFIG_STATUS <<\_ACEOF
9416  # Let's still pretend it is `configure' which instantiates (i.e., don't
9417  # use $as_me), people would be surprised to read:
9418  #    /* config.h.  Generated by config.status.  */
9419  if test x"$ac_file" = x-; then
9420    echo "/* Generated by configure.  */" >$tmp/config.h
9421  else
9422    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9423  fi
9424  cat $tmp/in >>$tmp/config.h
9425  rm -f $tmp/in
9426  if test x"$ac_file" != x-; then
9427    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9428      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9429echo "$as_me: $ac_file is unchanged" >&6;}
9430    else
9431      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9432$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9433	 X"$ac_file" : 'X\(//\)[^/]' \| \
9434	 X"$ac_file" : 'X\(//\)$' \| \
9435	 X"$ac_file" : 'X\(/\)' \| \
9436	 .     : '\(.\)' 2>/dev/null ||
9437echo X"$ac_file" |
9438    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9439  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9440  	  /^X\(\/\/\)$/{ s//\1/; q; }
9441  	  /^X\(\/\).*/{ s//\1/; q; }
9442  	  s/.*/./; q'`
9443      { if $as_mkdir_p; then
9444    mkdir -p "$ac_dir"
9445  else
9446    as_dir="$ac_dir"
9447    as_dirs=
9448    while test ! -d "$as_dir"; do
9449      as_dirs="$as_dir $as_dirs"
9450      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9451$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9452	 X"$as_dir" : 'X\(//\)[^/]' \| \
9453	 X"$as_dir" : 'X\(//\)$' \| \
9454	 X"$as_dir" : 'X\(/\)' \| \
9455	 .     : '\(.\)' 2>/dev/null ||
9456echo X"$as_dir" |
9457    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9458  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9459  	  /^X\(\/\/\)$/{ s//\1/; q; }
9460  	  /^X\(\/\).*/{ s//\1/; q; }
9461  	  s/.*/./; q'`
9462    done
9463    test ! -n "$as_dirs" || mkdir $as_dirs
9464  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9465echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9466   { (exit 1); exit 1; }; }; }
9467
9468      rm -f $ac_file
9469      mv $tmp/config.h $ac_file
9470    fi
9471  else
9472    cat $tmp/config.h
9473    rm -f $tmp/config.h
9474  fi
9475# Compute $ac_file's index in $config_headers.
9476_am_stamp_count=1
9477for _am_header in $config_headers :; do
9478  case $_am_header in
9479    $ac_file | $ac_file:* )
9480      break ;;
9481    * )
9482      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9483  esac
9484done
9485echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9486$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9487	 X$ac_file : 'X\(//\)[^/]' \| \
9488	 X$ac_file : 'X\(//\)$' \| \
9489	 X$ac_file : 'X\(/\)' \| \
9490	 .     : '\(.\)' 2>/dev/null ||
9491echo X$ac_file |
9492    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9493  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9494  	  /^X\(\/\/\)$/{ s//\1/; q; }
9495  	  /^X\(\/\).*/{ s//\1/; q; }
9496  	  s/.*/./; q'`/stamp-h$_am_stamp_count
9497done
9498_ACEOF
9499cat >>$CONFIG_STATUS <<\_ACEOF
9500
9501#
9502# CONFIG_COMMANDS section.
9503#
9504for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9505  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9506  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9507  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9508$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9509	 X"$ac_dest" : 'X\(//\)[^/]' \| \
9510	 X"$ac_dest" : 'X\(//\)$' \| \
9511	 X"$ac_dest" : 'X\(/\)' \| \
9512	 .     : '\(.\)' 2>/dev/null ||
9513echo X"$ac_dest" |
9514    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9515  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9516  	  /^X\(\/\/\)$/{ s//\1/; q; }
9517  	  /^X\(\/\).*/{ s//\1/; q; }
9518  	  s/.*/./; q'`
9519  { if $as_mkdir_p; then
9520    mkdir -p "$ac_dir"
9521  else
9522    as_dir="$ac_dir"
9523    as_dirs=
9524    while test ! -d "$as_dir"; do
9525      as_dirs="$as_dir $as_dirs"
9526      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9527$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9528	 X"$as_dir" : 'X\(//\)[^/]' \| \
9529	 X"$as_dir" : 'X\(//\)$' \| \
9530	 X"$as_dir" : 'X\(/\)' \| \
9531	 .     : '\(.\)' 2>/dev/null ||
9532echo X"$as_dir" |
9533    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9534  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9535  	  /^X\(\/\/\)$/{ s//\1/; q; }
9536  	  /^X\(\/\).*/{ s//\1/; q; }
9537  	  s/.*/./; q'`
9538    done
9539    test ! -n "$as_dirs" || mkdir $as_dirs
9540  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9541echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9542   { (exit 1); exit 1; }; }; }
9543
9544  ac_builddir=.
9545
9546if test "$ac_dir" != .; then
9547  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9548  # A "../" for each directory in $ac_dir_suffix.
9549  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9550else
9551  ac_dir_suffix= ac_top_builddir=
9552fi
9553
9554case $srcdir in
9555  .)  # No --srcdir option.  We are building in place.
9556    ac_srcdir=.
9557    if test -z "$ac_top_builddir"; then
9558       ac_top_srcdir=.
9559    else
9560       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9561    fi ;;
9562  [\\/]* | ?:[\\/]* )  # Absolute path.
9563    ac_srcdir=$srcdir$ac_dir_suffix;
9564    ac_top_srcdir=$srcdir ;;
9565  *) # Relative path.
9566    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9567    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9568esac
9569
9570# Do not use `cd foo && pwd` to compute absolute paths, because
9571# the directories may not exist.
9572case `pwd` in
9573.) ac_abs_builddir="$ac_dir";;
9574*)
9575  case "$ac_dir" in
9576  .) ac_abs_builddir=`pwd`;;
9577  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9578  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9579  esac;;
9580esac
9581case $ac_abs_builddir in
9582.) ac_abs_top_builddir=${ac_top_builddir}.;;
9583*)
9584  case ${ac_top_builddir}. in
9585  .) ac_abs_top_builddir=$ac_abs_builddir;;
9586  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9587  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9588  esac;;
9589esac
9590case $ac_abs_builddir in
9591.) ac_abs_srcdir=$ac_srcdir;;
9592*)
9593  case $ac_srcdir in
9594  .) ac_abs_srcdir=$ac_abs_builddir;;
9595  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9596  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9597  esac;;
9598esac
9599case $ac_abs_builddir in
9600.) ac_abs_top_srcdir=$ac_top_srcdir;;
9601*)
9602  case $ac_top_srcdir in
9603  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9604  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9605  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9606  esac;;
9607esac
9608
9609
9610  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9611echo "$as_me: executing $ac_dest commands" >&6;}
9612  case $ac_dest in
9613    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9614  # Strip MF so we end up with the name of the file.
9615  mf=`echo "$mf" | sed -e 's/:.*$//'`
9616  # Check whether this is an Automake generated Makefile or not.
9617  # We used to match only the files named `Makefile.in', but
9618  # some people rename them; so instead we look at the file content.
9619  # Grep'ing the first line is not enough: some people post-process
9620  # each Makefile.in and add a new line on top of each file to say so.
9621  # So let's grep whole file.
9622  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9623    dirpart=`(dirname "$mf") 2>/dev/null ||
9624$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9625	 X"$mf" : 'X\(//\)[^/]' \| \
9626	 X"$mf" : 'X\(//\)$' \| \
9627	 X"$mf" : 'X\(/\)' \| \
9628	 .     : '\(.\)' 2>/dev/null ||
9629echo X"$mf" |
9630    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9631  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9632  	  /^X\(\/\/\)$/{ s//\1/; q; }
9633  	  /^X\(\/\).*/{ s//\1/; q; }
9634  	  s/.*/./; q'`
9635  else
9636    continue
9637  fi
9638  # Extract the definition of DEPDIR, am__include, and am__quote
9639  # from the Makefile without running `make'.
9640  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9641  test -z "$DEPDIR" && continue
9642  am__include=`sed -n 's/^am__include = //p' < "$mf"`
9643  test -z "am__include" && continue
9644  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9645  # When using ansi2knr, U may be empty or an underscore; expand it
9646  U=`sed -n 's/^U = //p' < "$mf"`
9647  # Find all dependency output files, they are included files with
9648  # $(DEPDIR) in their names.  We invoke sed twice because it is the
9649  # simplest approach to changing $(DEPDIR) to its actual value in the
9650  # expansion.
9651  for file in `sed -n "
9652    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9653       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9654    # Make sure the directory exists.
9655    test -f "$dirpart/$file" && continue
9656    fdir=`(dirname "$file") 2>/dev/null ||
9657$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9658	 X"$file" : 'X\(//\)[^/]' \| \
9659	 X"$file" : 'X\(//\)$' \| \
9660	 X"$file" : 'X\(/\)' \| \
9661	 .     : '\(.\)' 2>/dev/null ||
9662echo X"$file" |
9663    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9664  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9665  	  /^X\(\/\/\)$/{ s//\1/; q; }
9666  	  /^X\(\/\).*/{ s//\1/; q; }
9667  	  s/.*/./; q'`
9668    { if $as_mkdir_p; then
9669    mkdir -p $dirpart/$fdir
9670  else
9671    as_dir=$dirpart/$fdir
9672    as_dirs=
9673    while test ! -d "$as_dir"; do
9674      as_dirs="$as_dir $as_dirs"
9675      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9676$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9677	 X"$as_dir" : 'X\(//\)[^/]' \| \
9678	 X"$as_dir" : 'X\(//\)$' \| \
9679	 X"$as_dir" : 'X\(/\)' \| \
9680	 .     : '\(.\)' 2>/dev/null ||
9681echo X"$as_dir" |
9682    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9683  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9684  	  /^X\(\/\/\)$/{ s//\1/; q; }
9685  	  /^X\(\/\).*/{ s//\1/; q; }
9686  	  s/.*/./; q'`
9687    done
9688    test ! -n "$as_dirs" || mkdir $as_dirs
9689  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9690echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9691   { (exit 1); exit 1; }; }; }
9692
9693    # echo "creating $dirpart/$file"
9694    echo '# dummy' > "$dirpart/$file"
9695  done
9696done
9697 ;;
9698  esac
9699done
9700_ACEOF
9701
9702cat >>$CONFIG_STATUS <<\_ACEOF
9703
9704{ (exit 0); exit 0; }
9705_ACEOF
9706chmod +x $CONFIG_STATUS
9707ac_clean_files=$ac_clean_files_save
9708
9709
9710# configure is writing to config.log, and then calls config.status.
9711# config.status does its own redirection, appending to config.log.
9712# Unfortunately, on DOS this fails, as config.log is still kept open
9713# by configure, so config.status won't be able to write to it; its
9714# output is simply discarded.  So we exec the FD to /dev/null,
9715# effectively closing config.log, so it can be properly (re)opened and
9716# appended to by config.status.  When coming back to configure, we
9717# need to make the FD available again.
9718if test "$no_create" != yes; then
9719  ac_cs_success=:
9720  ac_config_status_args=
9721  test "$silent" = yes &&
9722    ac_config_status_args="$ac_config_status_args --quiet"
9723  exec 5>/dev/null
9724  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9725  exec 5>>config.log
9726  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9727  # would make configure fail if this is the last instruction.
9728  $ac_cs_success || { (exit 1); exit 1; }
9729fi
9730
9731