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