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