chiark / gitweb /
Update stressapptest to 1.0.3.
[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.3_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.3_autoconf'
578 PACKAGE_STRING='stressapptest 1.0.3_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.3_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.3_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.3_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.3_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   "xarmv7a")
1984
1985 cat >>confdefs.h <<\_ACEOF
1986 #define STRESSAPPTEST_CPU_ARMV7A
1987 _ACEOF
1988
1989     ;;
1990   *)
1991     { { echo "$as_me:$LINENO: error: $target_cpu is not supported! Try x86_64, i686, powerpc, or armv7a" >&5
1992 echo "$as_me: error: $target_cpu is not supported! Try x86_64, i686, powerpc, or armv7a" >&2;}
1993    { (exit 1); exit 1; }; }
1994     ;;
1995 esac
1996
1997 _os=`uname`
1998 ## The following allows like systems to share settings. This is not meant to
1999 ## imply that these OS are the same thing. From OpenOffice dmake configure.in
2000 case "$_os" in
2001   "Linux")
2002     OS_VERSION=linux
2003
2004 cat >>confdefs.h <<\_ACEOF
2005 #define STRESSAPPTEST_OS_LINUX
2006 _ACEOF
2007
2008     ;;
2009   "Darwin")
2010     OS_VERSION=macosx
2011
2012 cat >>confdefs.h <<\_ACEOF
2013 #define STRESSAPPTEST_OS_DARWIN
2014 _ACEOF
2015
2016     ;;
2017   "FreeBSD")
2018     OS_VERSION=bsd
2019
2020 cat >>confdefs.h <<\_ACEOF
2021 #define STRESSAPPTEST_OS_BSD
2022 _ACEOF
2023
2024     ;;
2025   "NetBSD")
2026     OS_VERSION=bsd
2027
2028 cat >>confdefs.h <<\_ACEOF
2029 #define STRESSAPPTEST_OS_BSD
2030 _ACEOF
2031
2032     ;;
2033   *)
2034     { { echo "$as_me:$LINENO: error: $_os operating system is not suitable to build dmake!" >&5
2035 echo "$as_me: error: $_os operating system is not suitable to build dmake!" >&2;}
2036    { (exit 1); exit 1; }; }
2037     ;;
2038 esac
2039
2040 am__api_version='1.10'
2041
2042 # Find a good install program.  We prefer a C program (faster),
2043 # so one script is as good as another.  But avoid the broken or
2044 # incompatible versions:
2045 # SysV /etc/install, /usr/sbin/install
2046 # SunOS /usr/etc/install
2047 # IRIX /sbin/install
2048 # AIX /bin/install
2049 # AmigaOS /C/install, which installs bootblocks on floppy discs
2050 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2051 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2052 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2053 # OS/2's system install, which has a completely different semantic
2054 # ./install, which can be erroneously created by make from ./install.sh.
2055 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2056 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2057 if test -z "$INSTALL"; then
2058 if test "${ac_cv_path_install+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064   IFS=$as_save_IFS
2065   test -z "$as_dir" && as_dir=.
2066   # Account for people who put trailing slashes in PATH elements.
2067 case $as_dir/ in
2068   ./ | .// | /cC/* | \
2069   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2070   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2071   /usr/ucb/* ) ;;
2072   *)
2073     # OSF1 and SCO ODT 3.0 have their own names for install.
2074     # Don't use installbsd from OSF since it installs stuff as root
2075     # by default.
2076     for ac_prog in ginstall scoinst install; do
2077       for ac_exec_ext in '' $ac_executable_extensions; do
2078         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2079           if test $ac_prog = install &&
2080             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2081             # AIX install.  It has an incompatible calling convention.
2082             :
2083           elif test $ac_prog = install &&
2084             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2085             # program-specific install script used by HP pwplus--don't use.
2086             :
2087           else
2088             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2089             break 3
2090           fi
2091         fi
2092       done
2093     done
2094     ;;
2095 esac
2096 done
2097 IFS=$as_save_IFS
2098
2099
2100 fi
2101   if test "${ac_cv_path_install+set}" = set; then
2102     INSTALL=$ac_cv_path_install
2103   else
2104     # As a last resort, use the slow shell script.  Don't cache a
2105     # value for INSTALL within a source directory, because that will
2106     # break other packages using the cache if that directory is
2107     # removed, or if the value is a relative name.
2108     INSTALL=$ac_install_sh
2109   fi
2110 fi
2111 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2112 echo "${ECHO_T}$INSTALL" >&6; }
2113
2114 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2115 # It thinks the first close brace ends the variable substitution.
2116 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2117
2118 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2119
2120 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2121
2122 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2123 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2124 # Just in case
2125 sleep 1
2126 echo timestamp > conftest.file
2127 # Do `set' in a subshell so we don't clobber the current shell's
2128 # arguments.  Must try -L first in case configure is actually a
2129 # symlink; some systems play weird games with the mod time of symlinks
2130 # (eg FreeBSD returns the mod time of the symlink's containing
2131 # directory).
2132 if (
2133    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2134    if test "$*" = "X"; then
2135       # -L didn't work.
2136       set X `ls -t $srcdir/configure conftest.file`
2137    fi
2138    rm -f conftest.file
2139    if test "$*" != "X $srcdir/configure conftest.file" \
2140       && test "$*" != "X conftest.file $srcdir/configure"; then
2141
2142       # If neither matched, then we have a broken ls.  This can happen
2143       # if, for instance, CONFIG_SHELL is bash and it inherits a
2144       # broken ls alias from the environment.  This has actually
2145       # happened.  Such a system could not be considered "sane".
2146       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2147 alias in your environment" >&5
2148 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2149 alias in your environment" >&2;}
2150    { (exit 1); exit 1; }; }
2151    fi
2152
2153    test "$2" = conftest.file
2154    )
2155 then
2156    # Ok.
2157    :
2158 else
2159    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2160 Check your system clock" >&5
2161 echo "$as_me: error: newly created file is older than distributed files!
2162 Check your system clock" >&2;}
2163    { (exit 1); exit 1; }; }
2164 fi
2165 { echo "$as_me:$LINENO: result: yes" >&5
2166 echo "${ECHO_T}yes" >&6; }
2167 test "$program_prefix" != NONE &&
2168   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2169 # Use a double $ so make ignores it.
2170 test "$program_suffix" != NONE &&
2171   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2172 # Double any \ or $.  echo might interpret backslashes.
2173 # By default was `s,x,x', remove it if useless.
2174 cat <<\_ACEOF >conftest.sed
2175 s/[\\$]/&&/g;s/;s,x,x,$//
2176 _ACEOF
2177 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2178 rm -f conftest.sed
2179
2180 # expand $ac_aux_dir to an absolute path
2181 am_aux_dir=`cd $ac_aux_dir && pwd`
2182
2183 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2184 # Use eval to expand $SHELL
2185 if eval "$MISSING --run true"; then
2186   am_missing_run="$MISSING --run "
2187 else
2188   am_missing_run=
2189   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2190 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2191 fi
2192
2193 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2194 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2195 if test -z "$MKDIR_P"; then
2196   if test "${ac_cv_path_mkdir+set}" = set; then
2197   echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2201 do
2202   IFS=$as_save_IFS
2203   test -z "$as_dir" && as_dir=.
2204   for ac_prog in mkdir gmkdir; do
2205          for ac_exec_ext in '' $ac_executable_extensions; do
2206            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2207            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2208              'mkdir (GNU coreutils) '* | \
2209              'mkdir (coreutils) '* | \
2210              'mkdir (fileutils) '4.1*)
2211                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2212                break 3;;
2213            esac
2214          done
2215        done
2216 done
2217 IFS=$as_save_IFS
2218
2219 fi
2220
2221   if test "${ac_cv_path_mkdir+set}" = set; then
2222     MKDIR_P="$ac_cv_path_mkdir -p"
2223   else
2224     # As a last resort, use the slow shell script.  Don't cache a
2225     # value for MKDIR_P within a source directory, because that will
2226     # break other packages using the cache if that directory is
2227     # removed, or if the value is a relative name.
2228     test -d ./--version && rmdir ./--version
2229     MKDIR_P="$ac_install_sh -d"
2230   fi
2231 fi
2232 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2233 echo "${ECHO_T}$MKDIR_P" >&6; }
2234
2235 mkdir_p="$MKDIR_P"
2236 case $mkdir_p in
2237   [\\/$]* | ?:[\\/]*) ;;
2238   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2239 esac
2240
2241 for ac_prog in gawk mawk nawk awk
2242 do
2243   # Extract the first word of "$ac_prog", so it can be a program name with args.
2244 set dummy $ac_prog; ac_word=$2
2245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2247 if test "${ac_cv_prog_AWK+set}" = set; then
2248   echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250   if test -n "$AWK"; then
2251   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2252 else
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2255 do
2256   IFS=$as_save_IFS
2257   test -z "$as_dir" && as_dir=.
2258   for ac_exec_ext in '' $ac_executable_extensions; do
2259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2260     ac_cv_prog_AWK="$ac_prog"
2261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262     break 2
2263   fi
2264 done
2265 done
2266 IFS=$as_save_IFS
2267
2268 fi
2269 fi
2270 AWK=$ac_cv_prog_AWK
2271 if test -n "$AWK"; then
2272   { echo "$as_me:$LINENO: result: $AWK" >&5
2273 echo "${ECHO_T}$AWK" >&6; }
2274 else
2275   { echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6; }
2277 fi
2278
2279
2280   test -n "$AWK" && break
2281 done
2282
2283 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2284 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2285 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2286 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2287   echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289   cat >conftest.make <<\_ACEOF
2290 SHELL = /bin/sh
2291 all:
2292         @echo '@@@%%%=$(MAKE)=@@@%%%'
2293 _ACEOF
2294 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2295 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2296   *@@@%%%=?*=@@@%%%*)
2297     eval ac_cv_prog_make_${ac_make}_set=yes;;
2298   *)
2299     eval ac_cv_prog_make_${ac_make}_set=no;;
2300 esac
2301 rm -f conftest.make
2302 fi
2303 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2304   { echo "$as_me:$LINENO: result: yes" >&5
2305 echo "${ECHO_T}yes" >&6; }
2306   SET_MAKE=
2307 else
2308   { echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6; }
2310   SET_MAKE="MAKE=${MAKE-make}"
2311 fi
2312
2313 rm -rf .tst 2>/dev/null
2314 mkdir .tst 2>/dev/null
2315 if test -d .tst; then
2316   am__leading_dot=.
2317 else
2318   am__leading_dot=_
2319 fi
2320 rmdir .tst 2>/dev/null
2321
2322 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2323   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2324   # is not polluted with repeated "-I."
2325   am__isrc=' -I$(srcdir)'
2326   # test to see if srcdir already configured
2327   if test -f $srcdir/config.status; then
2328     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2329 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2330    { (exit 1); exit 1; }; }
2331   fi
2332 fi
2333
2334 # test whether we have cygpath
2335 if test -z "$CYGPATH_W"; then
2336   if (cygpath --version) >/dev/null 2>/dev/null; then
2337     CYGPATH_W='cygpath -w'
2338   else
2339     CYGPATH_W=echo
2340   fi
2341 fi
2342
2343
2344 # Define the identity of the package.
2345  PACKAGE='stressapptest'
2346  VERSION='1.0.3_autoconf'
2347
2348
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE "$PACKAGE"
2351 _ACEOF
2352
2353
2354 cat >>confdefs.h <<_ACEOF
2355 #define VERSION "$VERSION"
2356 _ACEOF
2357
2358 # Some tools Automake needs.
2359
2360 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2361
2362
2363 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2364
2365
2366 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2367
2368
2369 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2370
2371
2372 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2373
2374 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2375
2376 # Installed binaries are usually stripped using `strip' when the user
2377 # run `make install-strip'.  However `strip' might not be the right
2378 # tool to use in cross-compilation environments, therefore Automake
2379 # will honor the `STRIP' environment variable to overrule this program.
2380 if test "$cross_compiling" != no; then
2381   if test -n "$ac_tool_prefix"; then
2382   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2383 set dummy ${ac_tool_prefix}strip; ac_word=$2
2384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2386 if test "${ac_cv_prog_STRIP+set}" = set; then
2387   echo $ECHO_N "(cached) $ECHO_C" >&6
2388 else
2389   if test -n "$STRIP"; then
2390   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2391 else
2392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 for as_dir in $PATH
2394 do
2395   IFS=$as_save_IFS
2396   test -z "$as_dir" && as_dir=.
2397   for ac_exec_ext in '' $ac_executable_extensions; do
2398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2399     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2401     break 2
2402   fi
2403 done
2404 done
2405 IFS=$as_save_IFS
2406
2407 fi
2408 fi
2409 STRIP=$ac_cv_prog_STRIP
2410 if test -n "$STRIP"; then
2411   { echo "$as_me:$LINENO: result: $STRIP" >&5
2412 echo "${ECHO_T}$STRIP" >&6; }
2413 else
2414   { echo "$as_me:$LINENO: result: no" >&5
2415 echo "${ECHO_T}no" >&6; }
2416 fi
2417
2418
2419 fi
2420 if test -z "$ac_cv_prog_STRIP"; then
2421   ac_ct_STRIP=$STRIP
2422   # Extract the first word of "strip", so it can be a program name with args.
2423 set dummy strip; ac_word=$2
2424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2426 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2427   echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429   if test -n "$ac_ct_STRIP"; then
2430   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2431 else
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435   IFS=$as_save_IFS
2436   test -z "$as_dir" && as_dir=.
2437   for ac_exec_ext in '' $ac_executable_extensions; do
2438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2439     ac_cv_prog_ac_ct_STRIP="strip"
2440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441     break 2
2442   fi
2443 done
2444 done
2445 IFS=$as_save_IFS
2446
2447 fi
2448 fi
2449 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2450 if test -n "$ac_ct_STRIP"; then
2451   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2452 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2453 else
2454   { echo "$as_me:$LINENO: result: no" >&5
2455 echo "${ECHO_T}no" >&6; }
2456 fi
2457
2458   if test "x$ac_ct_STRIP" = x; then
2459     STRIP=":"
2460   else
2461     case $cross_compiling:$ac_tool_warned in
2462 yes:)
2463 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2464 whose name does not start with the host triplet.  If you think this
2465 configuration is useful to you, please write to autoconf@gnu.org." >&5
2466 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2467 whose name does not start with the host triplet.  If you think this
2468 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2469 ac_tool_warned=yes ;;
2470 esac
2471     STRIP=$ac_ct_STRIP
2472   fi
2473 else
2474   STRIP="$ac_cv_prog_STRIP"
2475 fi
2476
2477 fi
2478 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2479
2480 # We need awk for the "check" target.  The system "awk" is bad on
2481 # some platforms.
2482 # Always define AMTAR for backward compatibility.
2483
2484 AMTAR=${AMTAR-"${am_missing_run}tar"}
2485
2486 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2487
2488
2489
2490
2491
2492
2493 ac_config_headers="$ac_config_headers src/stressapptest_config.h"
2494
2495
2496 # Checks for programs.
2497 #  Don't generate CXXFLAGS defaults: if CXXFLAGS are unset
2498 #  AC_PROG_CXX will override them with unwanted defaults.
2499 CXXFLAGS="$CXXFLAGS"
2500 ac_ext=cpp
2501 ac_cpp='$CXXCPP $CPPFLAGS'
2502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2505 if test -z "$CXX"; then
2506   if test -n "$CCC"; then
2507     CXX=$CCC
2508   else
2509     if test -n "$ac_tool_prefix"; then
2510   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2511   do
2512     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516 if test "${ac_cv_prog_CXX+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519   if test -n "$CXX"; then
2520   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525   IFS=$as_save_IFS
2526   test -z "$as_dir" && as_dir=.
2527   for ac_exec_ext in '' $ac_executable_extensions; do
2528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531     break 2
2532   fi
2533 done
2534 done
2535 IFS=$as_save_IFS
2536
2537 fi
2538 fi
2539 CXX=$ac_cv_prog_CXX
2540 if test -n "$CXX"; then
2541   { echo "$as_me:$LINENO: result: $CXX" >&5
2542 echo "${ECHO_T}$CXX" >&6; }
2543 else
2544   { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2546 fi
2547
2548
2549     test -n "$CXX" && break
2550   done
2551 fi
2552 if test -z "$CXX"; then
2553   ac_ct_CXX=$CXX
2554   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2555 do
2556   # Extract the first word of "$ac_prog", so it can be a program name with args.
2557 set dummy $ac_prog; ac_word=$2
2558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2560 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2561   echo $ECHO_N "(cached) $ECHO_C" >&6
2562 else
2563   if test -n "$ac_ct_CXX"; then
2564   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2568 do
2569   IFS=$as_save_IFS
2570   test -z "$as_dir" && as_dir=.
2571   for ac_exec_ext in '' $ac_executable_extensions; do
2572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573     ac_cv_prog_ac_ct_CXX="$ac_prog"
2574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2575     break 2
2576   fi
2577 done
2578 done
2579 IFS=$as_save_IFS
2580
2581 fi
2582 fi
2583 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2584 if test -n "$ac_ct_CXX"; then
2585   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2586 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2587 else
2588   { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2590 fi
2591
2592
2593   test -n "$ac_ct_CXX" && break
2594 done
2595
2596   if test "x$ac_ct_CXX" = x; then
2597     CXX="g++"
2598   else
2599     case $cross_compiling:$ac_tool_warned in
2600 yes:)
2601 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2602 whose name does not start with the host triplet.  If you think this
2603 configuration is useful to you, please write to autoconf@gnu.org." >&5
2604 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2605 whose name does not start with the host triplet.  If you think this
2606 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2607 ac_tool_warned=yes ;;
2608 esac
2609     CXX=$ac_ct_CXX
2610   fi
2611 fi
2612
2613   fi
2614 fi
2615 # Provide some information about the compiler.
2616 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2617 ac_compiler=`set X $ac_compile; echo $2`
2618 { (ac_try="$ac_compiler --version >&5"
2619 case "(($ac_try" in
2620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621   *) ac_try_echo=$ac_try;;
2622 esac
2623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2624   (eval "$ac_compiler --version >&5") 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); }
2628 { (ac_try="$ac_compiler -v >&5"
2629 case "(($ac_try" in
2630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631   *) ac_try_echo=$ac_try;;
2632 esac
2633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2634   (eval "$ac_compiler -v >&5") 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); }
2638 { (ac_try="$ac_compiler -V >&5"
2639 case "(($ac_try" in
2640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641   *) ac_try_echo=$ac_try;;
2642 esac
2643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2644   (eval "$ac_compiler -V >&5") 2>&5
2645   ac_status=$?
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); }
2648
2649 cat >conftest.$ac_ext <<_ACEOF
2650 /* confdefs.h.  */
2651 _ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h.  */
2655
2656 int
2657 main ()
2658 {
2659
2660   ;
2661   return 0;
2662 }
2663 _ACEOF
2664 ac_clean_files_save=$ac_clean_files
2665 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2666 # Try to create an executable without -o first, disregard a.out.
2667 # It will help us diagnose broken compilers, and finding out an intuition
2668 # of exeext.
2669 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2670 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2671 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2672 #
2673 # List of possible output files, starting from the most likely.
2674 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2675 # only as a last resort.  b.out is created by i960 compilers.
2676 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2677 #
2678 # The IRIX 6 linker writes into existing files which may not be
2679 # executable, retaining their permissions.  Remove them first so a
2680 # subsequent execution test works.
2681 ac_rmfiles=
2682 for ac_file in $ac_files
2683 do
2684   case $ac_file in
2685     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2686     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2687   esac
2688 done
2689 rm -f $ac_rmfiles
2690
2691 if { (ac_try="$ac_link_default"
2692 case "(($ac_try" in
2693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694   *) ac_try_echo=$ac_try;;
2695 esac
2696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697   (eval "$ac_link_default") 2>&5
2698   ac_status=$?
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); }; then
2701   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2702 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2703 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2704 # so that the user can short-circuit this test for compilers unknown to
2705 # Autoconf.
2706 for ac_file in $ac_files ''
2707 do
2708   test -f "$ac_file" || continue
2709   case $ac_file in
2710     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2711         ;;
2712     [ab].out )
2713         # We found the default executable, but exeext='' is most
2714         # certainly right.
2715         break;;
2716     *.* )
2717         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2718         then :; else
2719            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2720         fi
2721         # We set ac_cv_exeext here because the later test for it is not
2722         # safe: cross compilers may not add the suffix if given an `-o'
2723         # argument, so we may need to know it at that point already.
2724         # Even if this section looks crufty: it has the advantage of
2725         # actually working.
2726         break;;
2727     * )
2728         break;;
2729   esac
2730 done
2731 test "$ac_cv_exeext" = no && ac_cv_exeext=
2732
2733 else
2734   ac_file=''
2735 fi
2736
2737 { echo "$as_me:$LINENO: result: $ac_file" >&5
2738 echo "${ECHO_T}$ac_file" >&6; }
2739 if test -z "$ac_file"; then
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2744 See \`config.log' for more details." >&5
2745 echo "$as_me: error: C++ compiler cannot create executables
2746 See \`config.log' for more details." >&2;}
2747    { (exit 77); exit 77; }; }
2748 fi
2749
2750 ac_exeext=$ac_cv_exeext
2751
2752 # Check that the compiler produces executables we can run.  If not, either
2753 # the compiler is broken, or we cross compile.
2754 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2755 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2756 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2757 # If not cross compiling, check that we can run a simple program.
2758 if test "$cross_compiling" != yes; then
2759   if { ac_try='./$ac_file'
2760   { (case "(($ac_try" in
2761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762   *) ac_try_echo=$ac_try;;
2763 esac
2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765   (eval "$ac_try") 2>&5
2766   ac_status=$?
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); }; }; then
2769     cross_compiling=no
2770   else
2771     if test "$cross_compiling" = maybe; then
2772         cross_compiling=yes
2773     else
2774         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2775 If you meant to cross compile, use \`--host'.
2776 See \`config.log' for more details." >&5
2777 echo "$as_me: error: cannot run C++ compiled programs.
2778 If you meant to cross compile, use \`--host'.
2779 See \`config.log' for more details." >&2;}
2780    { (exit 1); exit 1; }; }
2781     fi
2782   fi
2783 fi
2784 { echo "$as_me:$LINENO: result: yes" >&5
2785 echo "${ECHO_T}yes" >&6; }
2786
2787 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2788 ac_clean_files=$ac_clean_files_save
2789 # Check that the compiler produces executables we can run.  If not, either
2790 # the compiler is broken, or we cross compile.
2791 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2792 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2793 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2794 echo "${ECHO_T}$cross_compiling" >&6; }
2795
2796 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2797 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2798 if { (ac_try="$ac_link"
2799 case "(($ac_try" in
2800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801   *) ac_try_echo=$ac_try;;
2802 esac
2803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804   (eval "$ac_link") 2>&5
2805   ac_status=$?
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); }; then
2808   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2809 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2810 # work properly (i.e., refer to `conftest.exe'), while it won't with
2811 # `rm'.
2812 for ac_file in conftest.exe conftest conftest.*; do
2813   test -f "$ac_file" || continue
2814   case $ac_file in
2815     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2816     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2817           break;;
2818     * ) break;;
2819   esac
2820 done
2821 else
2822   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2823 See \`config.log' for more details." >&5
2824 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2825 See \`config.log' for more details." >&2;}
2826    { (exit 1); exit 1; }; }
2827 fi
2828
2829 rm -f conftest$ac_cv_exeext
2830 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2831 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2832
2833 rm -f conftest.$ac_ext
2834 EXEEXT=$ac_cv_exeext
2835 ac_exeext=$EXEEXT
2836 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2837 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2838 if test "${ac_cv_objext+set}" = set; then
2839   echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841   cat >conftest.$ac_ext <<_ACEOF
2842 /* confdefs.h.  */
2843 _ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h.  */
2847
2848 int
2849 main ()
2850 {
2851
2852   ;
2853   return 0;
2854 }
2855 _ACEOF
2856 rm -f conftest.o conftest.obj
2857 if { (ac_try="$ac_compile"
2858 case "(($ac_try" in
2859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860   *) ac_try_echo=$ac_try;;
2861 esac
2862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863   (eval "$ac_compile") 2>&5
2864   ac_status=$?
2865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866   (exit $ac_status); }; then
2867   for ac_file in conftest.o conftest.obj conftest.*; do
2868   test -f "$ac_file" || continue;
2869   case $ac_file in
2870     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2871     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2872        break;;
2873   esac
2874 done
2875 else
2876   echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2878
2879 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2880 See \`config.log' for more details." >&5
2881 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2882 See \`config.log' for more details." >&2;}
2883    { (exit 1); exit 1; }; }
2884 fi
2885
2886 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2887 fi
2888 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2889 echo "${ECHO_T}$ac_cv_objext" >&6; }
2890 OBJEXT=$ac_cv_objext
2891 ac_objext=$OBJEXT
2892 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2893 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2894 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2895   echo $ECHO_N "(cached) $ECHO_C" >&6
2896 else
2897   cat >conftest.$ac_ext <<_ACEOF
2898 /* confdefs.h.  */
2899 _ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h.  */
2903
2904 int
2905 main ()
2906 {
2907 #ifndef __GNUC__
2908        choke me
2909 #endif
2910
2911   ;
2912   return 0;
2913 }
2914 _ACEOF
2915 rm -f conftest.$ac_objext
2916 if { (ac_try="$ac_compile"
2917 case "(($ac_try" in
2918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919   *) ac_try_echo=$ac_try;;
2920 esac
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922   (eval "$ac_compile") 2>conftest.er1
2923   ac_status=$?
2924   grep -v '^ *+' conftest.er1 >conftest.err
2925   rm -f conftest.er1
2926   cat conftest.err >&5
2927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928   (exit $ac_status); } && {
2929          test -z "$ac_cxx_werror_flag" ||
2930          test ! -s conftest.err
2931        } && test -s conftest.$ac_objext; then
2932   ac_compiler_gnu=yes
2933 else
2934   echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2936
2937         ac_compiler_gnu=no
2938 fi
2939
2940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2941 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2942
2943 fi
2944 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2945 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2946 GXX=`test $ac_compiler_gnu = yes && echo yes`
2947 ac_test_CXXFLAGS=${CXXFLAGS+set}
2948 ac_save_CXXFLAGS=$CXXFLAGS
2949 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2950 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2951 if test "${ac_cv_prog_cxx_g+set}" = set; then
2952   echo $ECHO_N "(cached) $ECHO_C" >&6
2953 else
2954   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2955    ac_cxx_werror_flag=yes
2956    ac_cv_prog_cxx_g=no
2957    CXXFLAGS="-g"
2958    cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h.  */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h.  */
2964
2965 int
2966 main ()
2967 {
2968
2969   ;
2970   return 0;
2971 }
2972 _ACEOF
2973 rm -f conftest.$ac_objext
2974 if { (ac_try="$ac_compile"
2975 case "(($ac_try" in
2976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977   *) ac_try_echo=$ac_try;;
2978 esac
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980   (eval "$ac_compile") 2>conftest.er1
2981   ac_status=$?
2982   grep -v '^ *+' conftest.er1 >conftest.err
2983   rm -f conftest.er1
2984   cat conftest.err >&5
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); } && {
2987          test -z "$ac_cxx_werror_flag" ||
2988          test ! -s conftest.err
2989        } && test -s conftest.$ac_objext; then
2990   ac_cv_prog_cxx_g=yes
2991 else
2992   echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2994
2995         CXXFLAGS=""
2996       cat >conftest.$ac_ext <<_ACEOF
2997 /* confdefs.h.  */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h.  */
3002
3003 int
3004 main ()
3005 {
3006
3007   ;
3008   return 0;
3009 }
3010 _ACEOF
3011 rm -f conftest.$ac_objext
3012 if { (ac_try="$ac_compile"
3013 case "(($ac_try" in
3014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015   *) ac_try_echo=$ac_try;;
3016 esac
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018   (eval "$ac_compile") 2>conftest.er1
3019   ac_status=$?
3020   grep -v '^ *+' conftest.er1 >conftest.err
3021   rm -f conftest.er1
3022   cat conftest.err >&5
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); } && {
3025          test -z "$ac_cxx_werror_flag" ||
3026          test ! -s conftest.err
3027        } && test -s conftest.$ac_objext; then
3028   :
3029 else
3030   echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3032
3033         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3034          CXXFLAGS="-g"
3035          cat >conftest.$ac_ext <<_ACEOF
3036 /* confdefs.h.  */
3037 _ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h.  */
3041
3042 int
3043 main ()
3044 {
3045
3046   ;
3047   return 0;
3048 }
3049 _ACEOF
3050 rm -f conftest.$ac_objext
3051 if { (ac_try="$ac_compile"
3052 case "(($ac_try" in
3053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054   *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057   (eval "$ac_compile") 2>conftest.er1
3058   ac_status=$?
3059   grep -v '^ *+' conftest.er1 >conftest.err
3060   rm -f conftest.er1
3061   cat conftest.err >&5
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); } && {
3064          test -z "$ac_cxx_werror_flag" ||
3065          test ! -s conftest.err
3066        } && test -s conftest.$ac_objext; then
3067   ac_cv_prog_cxx_g=yes
3068 else
3069   echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3071
3072
3073 fi
3074
3075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3076 fi
3077
3078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3079 fi
3080
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3083 fi
3084 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3085 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3086 if test "$ac_test_CXXFLAGS" = set; then
3087   CXXFLAGS=$ac_save_CXXFLAGS
3088 elif test $ac_cv_prog_cxx_g = yes; then
3089   if test "$GXX" = yes; then
3090     CXXFLAGS="-g -O2"
3091   else
3092     CXXFLAGS="-g"
3093   fi
3094 else
3095   if test "$GXX" = yes; then
3096     CXXFLAGS="-O2"
3097   else
3098     CXXFLAGS=
3099   fi
3100 fi
3101 ac_ext=c
3102 ac_cpp='$CPP $CPPFLAGS'
3103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3106 DEPDIR="${am__leading_dot}deps"
3107
3108 ac_config_commands="$ac_config_commands depfiles"
3109
3110
3111 am_make=${MAKE-make}
3112 cat > confinc << 'END'
3113 am__doit:
3114         @echo done
3115 .PHONY: am__doit
3116 END
3117 # If we don't find an include directive, just comment out the code.
3118 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3119 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3120 am__include="#"
3121 am__quote=
3122 _am_result=none
3123 # First try GNU make style include.
3124 echo "include confinc" > confmf
3125 # We grep out `Entering directory' and `Leaving directory'
3126 # messages which can occur if `w' ends up in MAKEFLAGS.
3127 # In particular we don't look at `^make:' because GNU make might
3128 # be invoked under some other name (usually "gmake"), in which
3129 # case it prints its new name instead of `make'.
3130 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3131    am__include=include
3132    am__quote=
3133    _am_result=GNU
3134 fi
3135 # Now try BSD make style include.
3136 if test "$am__include" = "#"; then
3137    echo '.include "confinc"' > confmf
3138    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3139       am__include=.include
3140       am__quote="\""
3141       _am_result=BSD
3142    fi
3143 fi
3144
3145
3146 { echo "$as_me:$LINENO: result: $_am_result" >&5
3147 echo "${ECHO_T}$_am_result" >&6; }
3148 rm -f confinc confmf
3149
3150 # Check whether --enable-dependency-tracking was given.
3151 if test "${enable_dependency_tracking+set}" = set; then
3152   enableval=$enable_dependency_tracking;
3153 fi
3154
3155 if test "x$enable_dependency_tracking" != xno; then
3156   am_depcomp="$ac_aux_dir/depcomp"
3157   AMDEPBACKSLASH='\'
3158 fi
3159  if test "x$enable_dependency_tracking" != xno; then
3160   AMDEP_TRUE=
3161   AMDEP_FALSE='#'
3162 else
3163   AMDEP_TRUE='#'
3164   AMDEP_FALSE=
3165 fi
3166
3167
3168
3169 depcc="$CXX"  am_compiler_list=
3170
3171 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3172 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3173 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3174   echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3177   # We make a subdir and do the tests there.  Otherwise we can end up
3178   # making bogus files that we don't know about and never remove.  For
3179   # instance it was reported that on HP-UX the gcc test will end up
3180   # making a dummy file named `D' -- because `-MD' means `put the output
3181   # in D'.
3182   mkdir conftest.dir
3183   # Copy depcomp to subdir because otherwise we won't find it if we're
3184   # using a relative directory.
3185   cp "$am_depcomp" conftest.dir
3186   cd conftest.dir
3187   # We will build objects and dependencies in a subdirectory because
3188   # it helps to detect inapplicable dependency modes.  For instance
3189   # both Tru64's cc and ICC support -MD to output dependencies as a
3190   # side effect of compilation, but ICC will put the dependencies in
3191   # the current directory while Tru64 will put them in the object
3192   # directory.
3193   mkdir sub
3194
3195   am_cv_CXX_dependencies_compiler_type=none
3196   if test "$am_compiler_list" = ""; then
3197      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3198   fi
3199   for depmode in $am_compiler_list; do
3200     # Setup a source with many dependencies, because some compilers
3201     # like to wrap large dependency lists on column 80 (with \), and
3202     # we should not choose a depcomp mode which is confused by this.
3203     #
3204     # We need to recreate these files for each test, as the compiler may
3205     # overwrite some of them when testing with obscure command lines.
3206     # This happens at least with the AIX C compiler.
3207     : > sub/conftest.c
3208     for i in 1 2 3 4 5 6; do
3209       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3210       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3211       # Solaris 8's {/usr,}/bin/sh.
3212       touch sub/conftst$i.h
3213     done
3214     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3215
3216     case $depmode in
3217     nosideeffect)
3218       # after this tag, mechanisms are not by side-effect, so they'll
3219       # only be used when explicitly requested
3220       if test "x$enable_dependency_tracking" = xyes; then
3221         continue
3222       else
3223         break
3224       fi
3225       ;;
3226     none) break ;;
3227     esac
3228     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3229     # mode.  It turns out that the SunPro C++ compiler does not properly
3230     # handle `-M -o', and we need to detect this.
3231     if depmode=$depmode \
3232        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3233        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3234        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3235          >/dev/null 2>conftest.err &&
3236        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3237        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3238        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3239        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3240       # icc doesn't choke on unknown options, it will just issue warnings
3241       # or remarks (even with -Werror).  So we grep stderr for any message
3242       # that says an option was ignored or not supported.
3243       # When given -MP, icc 7.0 and 7.1 complain thusly:
3244       #   icc: Command line warning: ignoring option '-M'; no argument required
3245       # The diagnosis changed in icc 8.0:
3246       #   icc: Command line remark: option '-MP' not supported
3247       if (grep 'ignoring option' conftest.err ||
3248           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3249         am_cv_CXX_dependencies_compiler_type=$depmode
3250         break
3251       fi
3252     fi
3253   done
3254
3255   cd ..
3256   rm -rf conftest.dir
3257 else
3258   am_cv_CXX_dependencies_compiler_type=none
3259 fi
3260
3261 fi
3262 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3263 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3264 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3265
3266  if
3267   test "x$enable_dependency_tracking" != xno \
3268   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3269   am__fastdepCXX_TRUE=
3270   am__fastdepCXX_FALSE='#'
3271 else
3272   am__fastdepCXX_TRUE='#'
3273   am__fastdepCXX_FALSE=
3274 fi
3275
3276
3277 ac_ext=c
3278 ac_cpp='$CPP $CPPFLAGS'
3279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3282 if test -n "$ac_tool_prefix"; then
3283   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3284 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then
3288   echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290   if test -n "$CC"; then
3291   ac_cv_prog_CC="$CC" # Let the user override the test.
3292 else
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH
3295 do
3296   IFS=$as_save_IFS
3297   test -z "$as_dir" && as_dir=.
3298   for ac_exec_ext in '' $ac_executable_extensions; do
3299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3302     break 2
3303   fi
3304 done
3305 done
3306 IFS=$as_save_IFS
3307
3308 fi
3309 fi
3310 CC=$ac_cv_prog_CC
3311 if test -n "$CC"; then
3312   { echo "$as_me:$LINENO: result: $CC" >&5
3313 echo "${ECHO_T}$CC" >&6; }
3314 else
3315   { echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6; }
3317 fi
3318
3319
3320 fi
3321 if test -z "$ac_cv_prog_CC"; then
3322   ac_ct_CC=$CC
3323   # Extract the first word of "gcc", so it can be a program name with args.
3324 set dummy gcc; ac_word=$2
3325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3327 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3328   echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330   if test -n "$ac_ct_CC"; then
3331   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3332 else
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3335 do
3336   IFS=$as_save_IFS
3337   test -z "$as_dir" && as_dir=.
3338   for ac_exec_ext in '' $ac_executable_extensions; do
3339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340     ac_cv_prog_ac_ct_CC="gcc"
3341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3342     break 2
3343   fi
3344 done
3345 done
3346 IFS=$as_save_IFS
3347
3348 fi
3349 fi
3350 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3351 if test -n "$ac_ct_CC"; then
3352   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3353 echo "${ECHO_T}$ac_ct_CC" >&6; }
3354 else
3355   { echo "$as_me:$LINENO: result: no" >&5
3356 echo "${ECHO_T}no" >&6; }
3357 fi
3358
3359   if test "x$ac_ct_CC" = x; then
3360     CC=""
3361   else
3362     case $cross_compiling:$ac_tool_warned in
3363 yes:)
3364 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3365 whose name does not start with the host triplet.  If you think this
3366 configuration is useful to you, please write to autoconf@gnu.org." >&5
3367 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3368 whose name does not start with the host triplet.  If you think this
3369 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3370 ac_tool_warned=yes ;;
3371 esac
3372     CC=$ac_ct_CC
3373   fi
3374 else
3375   CC="$ac_cv_prog_CC"
3376 fi
3377
3378 if test -z "$CC"; then
3379           if test -n "$ac_tool_prefix"; then
3380     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3381 set dummy ${ac_tool_prefix}cc; ac_word=$2
3382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3384 if test "${ac_cv_prog_CC+set}" = set; then
3385   echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387   if test -n "$CC"; then
3388   ac_cv_prog_CC="$CC" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393   IFS=$as_save_IFS
3394   test -z "$as_dir" && as_dir=.
3395   for ac_exec_ext in '' $ac_executable_extensions; do
3396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397     ac_cv_prog_CC="${ac_tool_prefix}cc"
3398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399     break 2
3400   fi
3401 done
3402 done
3403 IFS=$as_save_IFS
3404
3405 fi
3406 fi
3407 CC=$ac_cv_prog_CC
3408 if test -n "$CC"; then
3409   { echo "$as_me:$LINENO: result: $CC" >&5
3410 echo "${ECHO_T}$CC" >&6; }
3411 else
3412   { echo "$as_me:$LINENO: result: no" >&5
3413 echo "${ECHO_T}no" >&6; }
3414 fi
3415
3416
3417   fi
3418 fi
3419 if test -z "$CC"; then
3420   # Extract the first word of "cc", so it can be a program name with args.
3421 set dummy cc; ac_word=$2
3422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3424 if test "${ac_cv_prog_CC+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427   if test -n "$CC"; then
3428   ac_cv_prog_CC="$CC" # Let the user override the test.
3429 else
3430   ac_prog_rejected=no
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3433 do
3434   IFS=$as_save_IFS
3435   test -z "$as_dir" && as_dir=.
3436   for ac_exec_ext in '' $ac_executable_extensions; do
3437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3438     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3439        ac_prog_rejected=yes
3440        continue
3441      fi
3442     ac_cv_prog_CC="cc"
3443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444     break 2
3445   fi
3446 done
3447 done
3448 IFS=$as_save_IFS
3449
3450 if test $ac_prog_rejected = yes; then
3451   # We found a bogon in the path, so make sure we never use it.
3452   set dummy $ac_cv_prog_CC
3453   shift
3454   if test $# != 0; then
3455     # We chose a different compiler from the bogus one.
3456     # However, it has the same basename, so the bogon will be chosen
3457     # first if we set CC to just the basename; use the full file name.
3458     shift
3459     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3460   fi
3461 fi
3462 fi
3463 fi
3464 CC=$ac_cv_prog_CC
3465 if test -n "$CC"; then
3466   { echo "$as_me:$LINENO: result: $CC" >&5
3467 echo "${ECHO_T}$CC" >&6; }
3468 else
3469   { echo "$as_me:$LINENO: result: no" >&5
3470 echo "${ECHO_T}no" >&6; }
3471 fi
3472
3473
3474 fi
3475 if test -z "$CC"; then
3476   if test -n "$ac_tool_prefix"; then
3477   for ac_prog in cl.exe
3478   do
3479     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3480 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3483 if test "${ac_cv_prog_CC+set}" = set; then
3484   echo $ECHO_N "(cached) $ECHO_C" >&6
3485 else
3486   if test -n "$CC"; then
3487   ac_cv_prog_CC="$CC" # Let the user override the test.
3488 else
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492   IFS=$as_save_IFS
3493   test -z "$as_dir" && as_dir=.
3494   for ac_exec_ext in '' $ac_executable_extensions; do
3495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3498     break 2
3499   fi
3500 done
3501 done
3502 IFS=$as_save_IFS
3503
3504 fi
3505 fi
3506 CC=$ac_cv_prog_CC
3507 if test -n "$CC"; then
3508   { echo "$as_me:$LINENO: result: $CC" >&5
3509 echo "${ECHO_T}$CC" >&6; }
3510 else
3511   { echo "$as_me:$LINENO: result: no" >&5
3512 echo "${ECHO_T}no" >&6; }
3513 fi
3514
3515
3516     test -n "$CC" && break
3517   done
3518 fi
3519 if test -z "$CC"; then
3520   ac_ct_CC=$CC
3521   for ac_prog in cl.exe
3522 do
3523   # Extract the first word of "$ac_prog", so it can be a program name with args.
3524 set dummy $ac_prog; ac_word=$2
3525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3527 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3528   echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530   if test -n "$ac_ct_CC"; then
3531   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3532 else
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3535 do
3536   IFS=$as_save_IFS
3537   test -z "$as_dir" && as_dir=.
3538   for ac_exec_ext in '' $ac_executable_extensions; do
3539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3540     ac_cv_prog_ac_ct_CC="$ac_prog"
3541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3542     break 2
3543   fi
3544 done
3545 done
3546 IFS=$as_save_IFS
3547
3548 fi
3549 fi
3550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3551 if test -n "$ac_ct_CC"; then
3552   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3553 echo "${ECHO_T}$ac_ct_CC" >&6; }
3554 else
3555   { echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6; }
3557 fi
3558
3559
3560   test -n "$ac_ct_CC" && break
3561 done
3562
3563   if test "x$ac_ct_CC" = x; then
3564     CC=""
3565   else
3566     case $cross_compiling:$ac_tool_warned in
3567 yes:)
3568 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3569 whose name does not start with the host triplet.  If you think this
3570 configuration is useful to you, please write to autoconf@gnu.org." >&5
3571 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3572 whose name does not start with the host triplet.  If you think this
3573 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3574 ac_tool_warned=yes ;;
3575 esac
3576     CC=$ac_ct_CC
3577   fi
3578 fi
3579
3580 fi
3581
3582
3583 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3584 See \`config.log' for more details." >&5
3585 echo "$as_me: error: no acceptable C compiler found in \$PATH
3586 See \`config.log' for more details." >&2;}
3587    { (exit 1); exit 1; }; }
3588
3589 # Provide some information about the compiler.
3590 echo "$as_me:$LINENO: checking for C compiler version" >&5
3591 ac_compiler=`set X $ac_compile; echo $2`
3592 { (ac_try="$ac_compiler --version >&5"
3593 case "(($ac_try" in
3594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595   *) ac_try_echo=$ac_try;;
3596 esac
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598   (eval "$ac_compiler --version >&5") 2>&5
3599   ac_status=$?
3600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601   (exit $ac_status); }
3602 { (ac_try="$ac_compiler -v >&5"
3603 case "(($ac_try" in
3604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605   *) ac_try_echo=$ac_try;;
3606 esac
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608   (eval "$ac_compiler -v >&5") 2>&5
3609   ac_status=$?
3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); }
3612 { (ac_try="$ac_compiler -V >&5"
3613 case "(($ac_try" in
3614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615   *) ac_try_echo=$ac_try;;
3616 esac
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618   (eval "$ac_compiler -V >&5") 2>&5
3619   ac_status=$?
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); }
3622
3623 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3624 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3625 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3626   echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628   cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h.  */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h.  */
3634
3635 int
3636 main ()
3637 {
3638 #ifndef __GNUC__
3639        choke me
3640 #endif
3641
3642   ;
3643   return 0;
3644 }
3645 _ACEOF
3646 rm -f conftest.$ac_objext
3647 if { (ac_try="$ac_compile"
3648 case "(($ac_try" in
3649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650   *) ac_try_echo=$ac_try;;
3651 esac
3652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3653   (eval "$ac_compile") 2>conftest.er1
3654   ac_status=$?
3655   grep -v '^ *+' conftest.er1 >conftest.err
3656   rm -f conftest.er1
3657   cat conftest.err >&5
3658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659   (exit $ac_status); } && {
3660          test -z "$ac_c_werror_flag" ||
3661          test ! -s conftest.err
3662        } && test -s conftest.$ac_objext; then
3663   ac_compiler_gnu=yes
3664 else
3665   echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3667
3668         ac_compiler_gnu=no
3669 fi
3670
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3673
3674 fi
3675 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3676 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3677 GCC=`test $ac_compiler_gnu = yes && echo yes`
3678 ac_test_CFLAGS=${CFLAGS+set}
3679 ac_save_CFLAGS=$CFLAGS
3680 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3681 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3682 if test "${ac_cv_prog_cc_g+set}" = set; then
3683   echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685   ac_save_c_werror_flag=$ac_c_werror_flag
3686    ac_c_werror_flag=yes
3687    ac_cv_prog_cc_g=no
3688    CFLAGS="-g"
3689    cat >conftest.$ac_ext <<_ACEOF
3690 /* confdefs.h.  */
3691 _ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h.  */
3695
3696 int
3697 main ()
3698 {
3699
3700   ;
3701   return 0;
3702 }
3703 _ACEOF
3704 rm -f conftest.$ac_objext
3705 if { (ac_try="$ac_compile"
3706 case "(($ac_try" in
3707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708   *) ac_try_echo=$ac_try;;
3709 esac
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711   (eval "$ac_compile") 2>conftest.er1
3712   ac_status=$?
3713   grep -v '^ *+' conftest.er1 >conftest.err
3714   rm -f conftest.er1
3715   cat conftest.err >&5
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); } && {
3718          test -z "$ac_c_werror_flag" ||
3719          test ! -s conftest.err
3720        } && test -s conftest.$ac_objext; then
3721   ac_cv_prog_cc_g=yes
3722 else
3723   echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3725
3726         CFLAGS=""
3727       cat >conftest.$ac_ext <<_ACEOF
3728 /* confdefs.h.  */
3729 _ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h.  */
3733
3734 int
3735 main ()
3736 {
3737
3738   ;
3739   return 0;
3740 }
3741 _ACEOF
3742 rm -f conftest.$ac_objext
3743 if { (ac_try="$ac_compile"
3744 case "(($ac_try" in
3745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746   *) ac_try_echo=$ac_try;;
3747 esac
3748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3749   (eval "$ac_compile") 2>conftest.er1
3750   ac_status=$?
3751   grep -v '^ *+' conftest.er1 >conftest.err
3752   rm -f conftest.er1
3753   cat conftest.err >&5
3754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755   (exit $ac_status); } && {
3756          test -z "$ac_c_werror_flag" ||
3757          test ! -s conftest.err
3758        } && test -s conftest.$ac_objext; then
3759   :
3760 else
3761   echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3763
3764         ac_c_werror_flag=$ac_save_c_werror_flag
3765          CFLAGS="-g"
3766          cat >conftest.$ac_ext <<_ACEOF
3767 /* confdefs.h.  */
3768 _ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h.  */
3772
3773 int
3774 main ()
3775 {
3776
3777   ;
3778   return 0;
3779 }
3780 _ACEOF
3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3783 case "(($ac_try" in
3784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785   *) ac_try_echo=$ac_try;;
3786 esac
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788   (eval "$ac_compile") 2>conftest.er1
3789   ac_status=$?
3790   grep -v '^ *+' conftest.er1 >conftest.err
3791   rm -f conftest.er1
3792   cat conftest.err >&5
3793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); } && {
3795          test -z "$ac_c_werror_flag" ||
3796          test ! -s conftest.err
3797        } && test -s conftest.$ac_objext; then
3798   ac_cv_prog_cc_g=yes
3799 else
3800   echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3802
3803
3804 fi
3805
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 fi
3808
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 fi
3811
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813    ac_c_werror_flag=$ac_save_c_werror_flag
3814 fi
3815 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3816 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3817 if test "$ac_test_CFLAGS" = set; then
3818   CFLAGS=$ac_save_CFLAGS
3819 elif test $ac_cv_prog_cc_g = yes; then
3820   if test "$GCC" = yes; then
3821     CFLAGS="-g -O2"
3822   else
3823     CFLAGS="-g"
3824   fi
3825 else
3826   if test "$GCC" = yes; then
3827     CFLAGS="-O2"
3828   else
3829     CFLAGS=
3830   fi
3831 fi
3832 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3833 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3834 if test "${ac_cv_prog_cc_c89+set}" = set; then
3835   echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837   ac_cv_prog_cc_c89=no
3838 ac_save_CC=$CC
3839 cat >conftest.$ac_ext <<_ACEOF
3840 /* confdefs.h.  */
3841 _ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h.  */
3845 #include <stdarg.h>
3846 #include <stdio.h>
3847 #include <sys/types.h>
3848 #include <sys/stat.h>
3849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3850 struct buf { int x; };
3851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3852 static char *e (p, i)
3853      char **p;
3854      int i;
3855 {
3856   return p[i];
3857 }
3858 static char *f (char * (*g) (char **, int), char **p, ...)
3859 {
3860   char *s;
3861   va_list v;
3862   va_start (v,p);
3863   s = g (p, va_arg (v,int));
3864   va_end (v);
3865   return s;
3866 }
3867
3868 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3869    function prototypes and stuff, but not '\xHH' hex character constants.
3870    These don't provoke an error unfortunately, instead are silently treated
3871    as 'x'.  The following induces an error, until -std is added to get
3872    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3873    array size at least.  It's necessary to write '\x00'==0 to get something
3874    that's true only with -std.  */
3875 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3876
3877 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3878    inside strings and character constants.  */
3879 #define FOO(x) 'x'
3880 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3881
3882 int test (int i, double x);
3883 struct s1 {int (*f) (int a);};
3884 struct s2 {int (*f) (double a);};
3885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3886 int argc;
3887 char **argv;
3888 int
3889 main ()
3890 {
3891 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3892   ;
3893   return 0;
3894 }
3895 _ACEOF
3896 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3897         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3898 do
3899   CC="$ac_save_CC $ac_arg"
3900   rm -f conftest.$ac_objext
3901 if { (ac_try="$ac_compile"
3902 case "(($ac_try" in
3903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904   *) ac_try_echo=$ac_try;;
3905 esac
3906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3907   (eval "$ac_compile") 2>conftest.er1
3908   ac_status=$?
3909   grep -v '^ *+' conftest.er1 >conftest.err
3910   rm -f conftest.er1
3911   cat conftest.err >&5
3912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913   (exit $ac_status); } && {
3914          test -z "$ac_c_werror_flag" ||
3915          test ! -s conftest.err
3916        } && test -s conftest.$ac_objext; then
3917   ac_cv_prog_cc_c89=$ac_arg
3918 else
3919   echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3921
3922
3923 fi
3924
3925 rm -f core conftest.err conftest.$ac_objext
3926   test "x$ac_cv_prog_cc_c89" != "xno" && break
3927 done
3928 rm -f conftest.$ac_ext
3929 CC=$ac_save_CC
3930
3931 fi
3932 # AC_CACHE_VAL
3933 case "x$ac_cv_prog_cc_c89" in
3934   x)
3935     { echo "$as_me:$LINENO: result: none needed" >&5
3936 echo "${ECHO_T}none needed" >&6; } ;;
3937   xno)
3938     { echo "$as_me:$LINENO: result: unsupported" >&5
3939 echo "${ECHO_T}unsupported" >&6; } ;;
3940   *)
3941     CC="$CC $ac_cv_prog_cc_c89"
3942     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3943 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3944 esac
3945
3946
3947 ac_ext=c
3948 ac_cpp='$CPP $CPPFLAGS'
3949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952
3953 depcc="$CC"   am_compiler_list=
3954
3955 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3956 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3957 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3958   echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3961   # We make a subdir and do the tests there.  Otherwise we can end up
3962   # making bogus files that we don't know about and never remove.  For
3963   # instance it was reported that on HP-UX the gcc test will end up
3964   # making a dummy file named `D' -- because `-MD' means `put the output
3965   # in D'.
3966   mkdir conftest.dir
3967   # Copy depcomp to subdir because otherwise we won't find it if we're
3968   # using a relative directory.
3969   cp "$am_depcomp" conftest.dir
3970   cd conftest.dir
3971   # We will build objects and dependencies in a subdirectory because
3972   # it helps to detect inapplicable dependency modes.  For instance
3973   # both Tru64's cc and ICC support -MD to output dependencies as a
3974   # side effect of compilation, but ICC will put the dependencies in
3975   # the current directory while Tru64 will put them in the object
3976   # directory.
3977   mkdir sub
3978
3979   am_cv_CC_dependencies_compiler_type=none
3980   if test "$am_compiler_list" = ""; then
3981      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3982   fi
3983   for depmode in $am_compiler_list; do
3984     # Setup a source with many dependencies, because some compilers
3985     # like to wrap large dependency lists on column 80 (with \), and
3986     # we should not choose a depcomp mode which is confused by this.
3987     #
3988     # We need to recreate these files for each test, as the compiler may
3989     # overwrite some of them when testing with obscure command lines.
3990     # This happens at least with the AIX C compiler.
3991     : > sub/conftest.c
3992     for i in 1 2 3 4 5 6; do
3993       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3994       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3995       # Solaris 8's {/usr,}/bin/sh.
3996       touch sub/conftst$i.h
3997     done
3998     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3999
4000     case $depmode in
4001     nosideeffect)
4002       # after this tag, mechanisms are not by side-effect, so they'll
4003       # only be used when explicitly requested
4004       if test "x$enable_dependency_tracking" = xyes; then
4005         continue
4006       else
4007         break
4008       fi
4009       ;;
4010     none) break ;;
4011     esac
4012     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4013     # mode.  It turns out that the SunPro C++ compiler does not properly
4014     # handle `-M -o', and we need to detect this.
4015     if depmode=$depmode \
4016        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4017        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4018        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4019          >/dev/null 2>conftest.err &&
4020        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4021        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4022        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4023        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4024       # icc doesn't choke on unknown options, it will just issue warnings
4025       # or remarks (even with -Werror).  So we grep stderr for any message
4026       # that says an option was ignored or not supported.
4027       # When given -MP, icc 7.0 and 7.1 complain thusly:
4028       #   icc: Command line warning: ignoring option '-M'; no argument required
4029       # The diagnosis changed in icc 8.0:
4030       #   icc: Command line remark: option '-MP' not supported
4031       if (grep 'ignoring option' conftest.err ||
4032           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4033         am_cv_CC_dependencies_compiler_type=$depmode
4034         break
4035       fi
4036     fi
4037   done
4038
4039   cd ..
4040   rm -rf conftest.dir
4041 else
4042   am_cv_CC_dependencies_compiler_type=none
4043 fi
4044
4045 fi
4046 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4047 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4048 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4049
4050  if
4051   test "x$enable_dependency_tracking" != xno \
4052   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4053   am__fastdepCC_TRUE=
4054   am__fastdepCC_FALSE='#'
4055 else
4056   am__fastdepCC_TRUE='#'
4057   am__fastdepCC_FALSE=
4058 fi
4059
4060
4061
4062 #Getting user and host info
4063 username=$(whoami)
4064 { echo "$as_me:$LINENO: checking user ID" >&5
4065 echo $ECHO_N "checking user ID... $ECHO_C" >&6; }
4066 { echo "$as_me:$LINENO: result: $username" >&5
4067 echo "${ECHO_T}$username" >&6; }
4068
4069 hostname=$(uname -n)
4070 { echo "$as_me:$LINENO: checking host name" >&5
4071 echo $ECHO_N "checking host name... $ECHO_C" >&6; }
4072 { echo "$as_me:$LINENO: result: $hostname" >&5
4073 echo "${ECHO_T}$hostname" >&6; }
4074
4075 timestamp=$(date)
4076 { echo "$as_me:$LINENO: checking current timestamp" >&5
4077 echo $ECHO_N "checking current timestamp... $ECHO_C" >&6; }
4078 { echo "$as_me:$LINENO: result: $timestamp" >&5
4079 echo "${ECHO_T}$timestamp" >&6; }
4080
4081
4082 cat >>confdefs.h <<_ACEOF
4083 #define STRESSAPPTEST_TIMESTAMP "$username @ $hostname on $timestamp"
4084 _ACEOF
4085
4086
4087 #Default cxxflags
4088 CXXFLAGS="$CXXFLAGS -DCHECKOPTS"
4089 CXXFLAGS="$CXXFLAGS -Wreturn-type -Wunused -Wuninitialized -Wall -Wno-psabi"
4090 CXXFLAGS="$CXXFLAGS -O3 -funroll-all-loops  -funroll-loops -DNDEBUG"
4091
4092 # Checks for header files.
4093
4094
4095
4096
4097
4098
4099 ac_header_dirent=no
4100 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4101   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4102 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4103 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4105   echo $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107   cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h.  */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h.  */
4113 #include <sys/types.h>
4114 #include <$ac_hdr>
4115
4116 int
4117 main ()
4118 {
4119 if ((DIR *) 0)
4120 return 0;
4121   ;
4122   return 0;
4123 }
4124 _ACEOF
4125 rm -f conftest.$ac_objext
4126 if { (ac_try="$ac_compile"
4127 case "(($ac_try" in
4128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129   *) ac_try_echo=$ac_try;;
4130 esac
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132   (eval "$ac_compile") 2>conftest.er1
4133   ac_status=$?
4134   grep -v '^ *+' conftest.er1 >conftest.err
4135   rm -f conftest.er1
4136   cat conftest.err >&5
4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138   (exit $ac_status); } && {
4139          test -z "$ac_c_werror_flag" ||
4140          test ! -s conftest.err
4141        } && test -s conftest.$ac_objext; then
4142   eval "$as_ac_Header=yes"
4143 else
4144   echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4146
4147         eval "$as_ac_Header=no"
4148 fi
4149
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151 fi
4152 ac_res=`eval echo '${'$as_ac_Header'}'`
4153                { echo "$as_me:$LINENO: result: $ac_res" >&5
4154 echo "${ECHO_T}$ac_res" >&6; }
4155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4156   cat >>confdefs.h <<_ACEOF
4157 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4158 _ACEOF
4159
4160 ac_header_dirent=$ac_hdr; break
4161 fi
4162
4163 done
4164 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4165 if test $ac_header_dirent = dirent.h; then
4166   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4167 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4168 if test "${ac_cv_search_opendir+set}" = set; then
4169   echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171   ac_func_search_save_LIBS=$LIBS
4172 cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h.  */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h.  */
4178
4179 /* Override any GCC internal prototype to avoid an error.
4180    Use char because int might match the return type of a GCC
4181    builtin and then its argument prototype would still apply.  */
4182 #ifdef __cplusplus
4183 extern "C"
4184 #endif
4185 char opendir ();
4186 int
4187 main ()
4188 {
4189 return opendir ();
4190   ;
4191   return 0;
4192 }
4193 _ACEOF
4194 for ac_lib in '' dir; do
4195   if test -z "$ac_lib"; then
4196     ac_res="none required"
4197   else
4198     ac_res=-l$ac_lib
4199     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4200   fi
4201   rm -f conftest.$ac_objext conftest$ac_exeext
4202 if { (ac_try="$ac_link"
4203 case "(($ac_try" in
4204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205   *) ac_try_echo=$ac_try;;
4206 esac
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208   (eval "$ac_link") 2>conftest.er1
4209   ac_status=$?
4210   grep -v '^ *+' conftest.er1 >conftest.err
4211   rm -f conftest.er1
4212   cat conftest.err >&5
4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214   (exit $ac_status); } && {
4215          test -z "$ac_c_werror_flag" ||
4216          test ! -s conftest.err
4217        } && test -s conftest$ac_exeext &&
4218        $as_test_x conftest$ac_exeext; then
4219   ac_cv_search_opendir=$ac_res
4220 else
4221   echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4223
4224
4225 fi
4226
4227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4228       conftest$ac_exeext
4229   if test "${ac_cv_search_opendir+set}" = set; then
4230   break
4231 fi
4232 done
4233 if test "${ac_cv_search_opendir+set}" = set; then
4234   :
4235 else
4236   ac_cv_search_opendir=no
4237 fi
4238 rm conftest.$ac_ext
4239 LIBS=$ac_func_search_save_LIBS
4240 fi
4241 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4242 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4243 ac_res=$ac_cv_search_opendir
4244 if test "$ac_res" != no; then
4245   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4246
4247 fi
4248
4249 else
4250   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4251 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4252 if test "${ac_cv_search_opendir+set}" = set; then
4253   echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255   ac_func_search_save_LIBS=$LIBS
4256 cat >conftest.$ac_ext <<_ACEOF
4257 /* confdefs.h.  */
4258 _ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h.  */
4262
4263 /* Override any GCC internal prototype to avoid an error.
4264    Use char because int might match the return type of a GCC
4265    builtin and then its argument prototype would still apply.  */
4266 #ifdef __cplusplus
4267 extern "C"
4268 #endif
4269 char opendir ();
4270 int
4271 main ()
4272 {
4273 return opendir ();
4274   ;
4275   return 0;
4276 }
4277 _ACEOF
4278 for ac_lib in '' x; do
4279   if test -z "$ac_lib"; then
4280     ac_res="none required"
4281   else
4282     ac_res=-l$ac_lib
4283     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4284   fi
4285   rm -f conftest.$ac_objext conftest$ac_exeext
4286 if { (ac_try="$ac_link"
4287 case "(($ac_try" in
4288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289   *) ac_try_echo=$ac_try;;
4290 esac
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292   (eval "$ac_link") 2>conftest.er1
4293   ac_status=$?
4294   grep -v '^ *+' conftest.er1 >conftest.err
4295   rm -f conftest.er1
4296   cat conftest.err >&5
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); } && {
4299          test -z "$ac_c_werror_flag" ||
4300          test ! -s conftest.err
4301        } && test -s conftest$ac_exeext &&
4302        $as_test_x conftest$ac_exeext; then
4303   ac_cv_search_opendir=$ac_res
4304 else
4305   echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4307
4308
4309 fi
4310
4311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4312       conftest$ac_exeext
4313   if test "${ac_cv_search_opendir+set}" = set; then
4314   break
4315 fi
4316 done
4317 if test "${ac_cv_search_opendir+set}" = set; then
4318   :
4319 else
4320   ac_cv_search_opendir=no
4321 fi
4322 rm conftest.$ac_ext
4323 LIBS=$ac_func_search_save_LIBS
4324 fi
4325 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4326 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4327 ac_res=$ac_cv_search_opendir
4328 if test "$ac_res" != no; then
4329   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4330
4331 fi
4332
4333 fi
4334
4335 ac_ext=c
4336 ac_cpp='$CPP $CPPFLAGS'
4337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4341 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4342 # On Suns, sometimes $CPP names a directory.
4343 if test -n "$CPP" && test -d "$CPP"; then
4344   CPP=
4345 fi
4346 if test -z "$CPP"; then
4347   if test "${ac_cv_prog_CPP+set}" = set; then
4348   echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350       # Double quotes because CPP needs to be expanded
4351     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4352     do
4353       ac_preproc_ok=false
4354 for ac_c_preproc_warn_flag in '' yes
4355 do
4356   # Use a header file that comes with gcc, so configuring glibc
4357   # with a fresh cross-compiler works.
4358   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4359   # <limits.h> exists even on freestanding compilers.
4360   # On the NeXT, cc -E runs the code through the compiler's parser,
4361   # not just through cpp. "Syntax error" is here to catch this case.
4362   cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h.  */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h.  */
4368 #ifdef __STDC__
4369 # include <limits.h>
4370 #else
4371 # include <assert.h>
4372 #endif
4373                      Syntax error
4374 _ACEOF
4375 if { (ac_try="$ac_cpp conftest.$ac_ext"
4376 case "(($ac_try" in
4377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378   *) ac_try_echo=$ac_try;;
4379 esac
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4382   ac_status=$?
4383   grep -v '^ *+' conftest.er1 >conftest.err
4384   rm -f conftest.er1
4385   cat conftest.err >&5
4386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387   (exit $ac_status); } >/dev/null && {
4388          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4389          test ! -s conftest.err
4390        }; then
4391   :
4392 else
4393   echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.$ac_ext >&5
4395
4396   # Broken: fails on valid input.
4397 continue
4398 fi
4399
4400 rm -f conftest.err conftest.$ac_ext
4401
4402   # OK, works on sane cases.  Now check whether nonexistent headers
4403   # can be detected and how.
4404   cat >conftest.$ac_ext <<_ACEOF
4405 /* confdefs.h.  */
4406 _ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h.  */
4410 #include <ac_nonexistent.h>
4411 _ACEOF
4412 if { (ac_try="$ac_cpp conftest.$ac_ext"
4413 case "(($ac_try" in
4414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415   *) ac_try_echo=$ac_try;;
4416 esac
4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4419   ac_status=$?
4420   grep -v '^ *+' conftest.er1 >conftest.err
4421   rm -f conftest.er1
4422   cat conftest.err >&5
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); } >/dev/null && {
4425          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4426          test ! -s conftest.err
4427        }; then
4428   # Broken: success on invalid input.
4429 continue
4430 else
4431   echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4433
4434   # Passes both tests.
4435 ac_preproc_ok=:
4436 break
4437 fi
4438
4439 rm -f conftest.err conftest.$ac_ext
4440
4441 done
4442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4443 rm -f conftest.err conftest.$ac_ext
4444 if $ac_preproc_ok; then
4445   break
4446 fi
4447
4448     done
4449     ac_cv_prog_CPP=$CPP
4450
4451 fi
4452   CPP=$ac_cv_prog_CPP
4453 else
4454   ac_cv_prog_CPP=$CPP
4455 fi
4456 { echo "$as_me:$LINENO: result: $CPP" >&5
4457 echo "${ECHO_T}$CPP" >&6; }
4458 ac_preproc_ok=false
4459 for ac_c_preproc_warn_flag in '' yes
4460 do
4461   # Use a header file that comes with gcc, so configuring glibc
4462   # with a fresh cross-compiler works.
4463   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4464   # <limits.h> exists even on freestanding compilers.
4465   # On the NeXT, cc -E runs the code through the compiler's parser,
4466   # not just through cpp. "Syntax error" is here to catch this case.
4467   cat >conftest.$ac_ext <<_ACEOF
4468 /* confdefs.h.  */
4469 _ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h.  */
4473 #ifdef __STDC__
4474 # include <limits.h>
4475 #else
4476 # include <assert.h>
4477 #endif
4478                      Syntax error
4479 _ACEOF
4480 if { (ac_try="$ac_cpp conftest.$ac_ext"
4481 case "(($ac_try" in
4482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483   *) ac_try_echo=$ac_try;;
4484 esac
4485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4487   ac_status=$?
4488   grep -v '^ *+' conftest.er1 >conftest.err
4489   rm -f conftest.er1
4490   cat conftest.err >&5
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); } >/dev/null && {
4493          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4494          test ! -s conftest.err
4495        }; then
4496   :
4497 else
4498   echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4500
4501   # Broken: fails on valid input.
4502 continue
4503 fi
4504
4505 rm -f conftest.err conftest.$ac_ext
4506
4507   # OK, works on sane cases.  Now check whether nonexistent headers
4508   # can be detected and how.
4509   cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h.  */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h.  */
4515 #include <ac_nonexistent.h>
4516 _ACEOF
4517 if { (ac_try="$ac_cpp conftest.$ac_ext"
4518 case "(($ac_try" in
4519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520   *) ac_try_echo=$ac_try;;
4521 esac
4522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4523   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4524   ac_status=$?
4525   grep -v '^ *+' conftest.er1 >conftest.err
4526   rm -f conftest.er1
4527   cat conftest.err >&5
4528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529   (exit $ac_status); } >/dev/null && {
4530          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4531          test ! -s conftest.err
4532        }; then
4533   # Broken: success on invalid input.
4534 continue
4535 else
4536   echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539   # Passes both tests.
4540 ac_preproc_ok=:
4541 break
4542 fi
4543
4544 rm -f conftest.err conftest.$ac_ext
4545
4546 done
4547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4548 rm -f conftest.err conftest.$ac_ext
4549 if $ac_preproc_ok; then
4550   :
4551 else
4552   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4553 See \`config.log' for more details." >&5
4554 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4555 See \`config.log' for more details." >&2;}
4556    { (exit 1); exit 1; }; }
4557 fi
4558
4559 ac_ext=c
4560 ac_cpp='$CPP $CPPFLAGS'
4561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4564
4565
4566 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4567 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4568 if test "${ac_cv_path_GREP+set}" = set; then
4569   echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571   # Extract the first word of "grep ggrep" to use in msg output
4572 if test -z "$GREP"; then
4573 set dummy grep ggrep; ac_prog_name=$2
4574 if test "${ac_cv_path_GREP+set}" = set; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   ac_path_GREP_found=false
4578 # Loop through the user's path and test for each of PROGNAME-LIST
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4581 do
4582   IFS=$as_save_IFS
4583   test -z "$as_dir" && as_dir=.
4584   for ac_prog in grep ggrep; do
4585   for ac_exec_ext in '' $ac_executable_extensions; do
4586     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4587     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4588     # Check for GNU ac_path_GREP and select it if it is found.
4589   # Check for GNU $ac_path_GREP
4590 case `"$ac_path_GREP" --version 2>&1` in
4591 *GNU*)
4592   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4593 *)
4594   ac_count=0
4595   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4596   while :
4597   do
4598     cat "conftest.in" "conftest.in" >"conftest.tmp"
4599     mv "conftest.tmp" "conftest.in"
4600     cp "conftest.in" "conftest.nl"
4601     echo 'GREP' >> "conftest.nl"
4602     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4603     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4604     ac_count=`expr $ac_count + 1`
4605     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4606       # Best one so far, save it but keep looking for a better one
4607       ac_cv_path_GREP="$ac_path_GREP"
4608       ac_path_GREP_max=$ac_count
4609     fi
4610     # 10*(2^10) chars as input seems more than enough
4611     test $ac_count -gt 10 && break
4612   done
4613   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4614 esac
4615
4616
4617     $ac_path_GREP_found && break 3
4618   done
4619 done
4620
4621 done
4622 IFS=$as_save_IFS
4623
4624
4625 fi
4626
4627 GREP="$ac_cv_path_GREP"
4628 if test -z "$GREP"; then
4629   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4630 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4631    { (exit 1); exit 1; }; }
4632 fi
4633
4634 else
4635   ac_cv_path_GREP=$GREP
4636 fi
4637
4638
4639 fi
4640 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4641 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4642  GREP="$ac_cv_path_GREP"
4643
4644
4645 { echo "$as_me:$LINENO: checking for egrep" >&5
4646 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4647 if test "${ac_cv_path_EGREP+set}" = set; then
4648   echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4651    then ac_cv_path_EGREP="$GREP -E"
4652    else
4653      # Extract the first word of "egrep" to use in msg output
4654 if test -z "$EGREP"; then
4655 set dummy egrep; ac_prog_name=$2
4656 if test "${ac_cv_path_EGREP+set}" = set; then
4657   echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659   ac_path_EGREP_found=false
4660 # Loop through the user's path and test for each of PROGNAME-LIST
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4663 do
4664   IFS=$as_save_IFS
4665   test -z "$as_dir" && as_dir=.
4666   for ac_prog in egrep; do
4667   for ac_exec_ext in '' $ac_executable_extensions; do
4668     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4669     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4670     # Check for GNU ac_path_EGREP and select it if it is found.
4671   # Check for GNU $ac_path_EGREP
4672 case `"$ac_path_EGREP" --version 2>&1` in
4673 *GNU*)
4674   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4675 *)
4676   ac_count=0
4677   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4678   while :
4679   do
4680     cat "conftest.in" "conftest.in" >"conftest.tmp"
4681     mv "conftest.tmp" "conftest.in"
4682     cp "conftest.in" "conftest.nl"
4683     echo 'EGREP' >> "conftest.nl"
4684     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4685     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4686     ac_count=`expr $ac_count + 1`
4687     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4688       # Best one so far, save it but keep looking for a better one
4689       ac_cv_path_EGREP="$ac_path_EGREP"
4690       ac_path_EGREP_max=$ac_count
4691     fi
4692     # 10*(2^10) chars as input seems more than enough
4693     test $ac_count -gt 10 && break
4694   done
4695   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4696 esac
4697
4698
4699     $ac_path_EGREP_found && break 3
4700   done
4701 done
4702
4703 done
4704 IFS=$as_save_IFS
4705
4706
4707 fi
4708
4709 EGREP="$ac_cv_path_EGREP"
4710 if test -z "$EGREP"; then
4711   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4712 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4713    { (exit 1); exit 1; }; }
4714 fi
4715
4716 else
4717   ac_cv_path_EGREP=$EGREP
4718 fi
4719
4720
4721    fi
4722 fi
4723 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4724 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4725  EGREP="$ac_cv_path_EGREP"
4726
4727
4728 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4729 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4730 if test "${ac_cv_header_stdc+set}" = set; then
4731   echo $ECHO_N "(cached) $ECHO_C" >&6
4732 else
4733   cat >conftest.$ac_ext <<_ACEOF
4734 /* confdefs.h.  */
4735 _ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h.  */
4739 #include <stdlib.h>
4740 #include <stdarg.h>
4741 #include <string.h>
4742 #include <float.h>
4743
4744 int
4745 main ()
4746 {
4747
4748   ;
4749   return 0;
4750 }
4751 _ACEOF
4752 rm -f conftest.$ac_objext
4753 if { (ac_try="$ac_compile"
4754 case "(($ac_try" in
4755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756   *) ac_try_echo=$ac_try;;
4757 esac
4758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759   (eval "$ac_compile") 2>conftest.er1
4760   ac_status=$?
4761   grep -v '^ *+' conftest.er1 >conftest.err
4762   rm -f conftest.er1
4763   cat conftest.err >&5
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); } && {
4766          test -z "$ac_c_werror_flag" ||
4767          test ! -s conftest.err
4768        } && test -s conftest.$ac_objext; then
4769   ac_cv_header_stdc=yes
4770 else
4771   echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4773
4774         ac_cv_header_stdc=no
4775 fi
4776
4777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778
4779 if test $ac_cv_header_stdc = yes; then
4780   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4781   cat >conftest.$ac_ext <<_ACEOF
4782 /* confdefs.h.  */
4783 _ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h.  */
4787 #include <string.h>
4788
4789 _ACEOF
4790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4791   $EGREP "memchr" >/dev/null 2>&1; then
4792   :
4793 else
4794   ac_cv_header_stdc=no
4795 fi
4796 rm -f conftest*
4797
4798 fi
4799
4800 if test $ac_cv_header_stdc = yes; then
4801   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4802   cat >conftest.$ac_ext <<_ACEOF
4803 /* confdefs.h.  */
4804 _ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h.  */
4808 #include <stdlib.h>
4809
4810 _ACEOF
4811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4812   $EGREP "free" >/dev/null 2>&1; then
4813   :
4814 else
4815   ac_cv_header_stdc=no
4816 fi
4817 rm -f conftest*
4818
4819 fi
4820
4821 if test $ac_cv_header_stdc = yes; then
4822   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4823   if test "$cross_compiling" = yes; then
4824   :
4825 else
4826   cat >conftest.$ac_ext <<_ACEOF
4827 /* confdefs.h.  */
4828 _ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h.  */
4832 #include <ctype.h>
4833 #include <stdlib.h>
4834 #if ((' ' & 0x0FF) == 0x020)
4835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4837 #else
4838 # define ISLOWER(c) \
4839                    (('a' <= (c) && (c) <= 'i') \
4840                      || ('j' <= (c) && (c) <= 'r') \
4841                      || ('s' <= (c) && (c) <= 'z'))
4842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4843 #endif
4844
4845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4846 int
4847 main ()
4848 {
4849   int i;
4850   for (i = 0; i < 256; i++)
4851     if (XOR (islower (i), ISLOWER (i))
4852         || toupper (i) != TOUPPER (i))
4853       return 2;
4854   return 0;
4855 }
4856 _ACEOF
4857 rm -f conftest$ac_exeext
4858 if { (ac_try="$ac_link"
4859 case "(($ac_try" in
4860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861   *) ac_try_echo=$ac_try;;
4862 esac
4863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864   (eval "$ac_link") 2>&5
4865   ac_status=$?
4866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4868   { (case "(($ac_try" in
4869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870   *) ac_try_echo=$ac_try;;
4871 esac
4872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873   (eval "$ac_try") 2>&5
4874   ac_status=$?
4875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876   (exit $ac_status); }; }; then
4877   :
4878 else
4879   echo "$as_me: program exited with status $ac_status" >&5
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 ( exit $ac_status )
4884 ac_cv_header_stdc=no
4885 fi
4886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4887 fi
4888
4889
4890 fi
4891 fi
4892 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4893 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4894 if test $ac_cv_header_stdc = yes; then
4895
4896 cat >>confdefs.h <<\_ACEOF
4897 #define STDC_HEADERS 1
4898 _ACEOF
4899
4900 fi
4901
4902 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4913                   inttypes.h stdint.h unistd.h
4914 do
4915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4919   echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921   cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h.  */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h.  */
4927 $ac_includes_default
4928
4929 #include <$ac_header>
4930 _ACEOF
4931 rm -f conftest.$ac_objext
4932 if { (ac_try="$ac_compile"
4933 case "(($ac_try" in
4934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935   *) ac_try_echo=$ac_try;;
4936 esac
4937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4938   (eval "$ac_compile") 2>conftest.er1
4939   ac_status=$?
4940   grep -v '^ *+' conftest.er1 >conftest.err
4941   rm -f conftest.er1
4942   cat conftest.err >&5
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); } && {
4945          test -z "$ac_c_werror_flag" ||
4946          test ! -s conftest.err
4947        } && test -s conftest.$ac_objext; then
4948   eval "$as_ac_Header=yes"
4949 else
4950   echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4952
4953         eval "$as_ac_Header=no"
4954 fi
4955
4956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957 fi
4958 ac_res=`eval echo '${'$as_ac_Header'}'`
4959                { echo "$as_me:$LINENO: result: $ac_res" >&5
4960 echo "${ECHO_T}$ac_res" >&6; }
4961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4962   cat >>confdefs.h <<_ACEOF
4963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4964 _ACEOF
4965
4966 fi
4967
4968 done
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982 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
4983 do
4984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4986   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4989   echo $ECHO_N "(cached) $ECHO_C" >&6
4990 fi
4991 ac_res=`eval echo '${'$as_ac_Header'}'`
4992                { echo "$as_me:$LINENO: result: $ac_res" >&5
4993 echo "${ECHO_T}$ac_res" >&6; }
4994 else
4995   # Is the header compilable?
4996 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4998 cat >conftest.$ac_ext <<_ACEOF
4999 /* confdefs.h.  */
5000 _ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h.  */
5004 $ac_includes_default
5005 #include <$ac_header>
5006 _ACEOF
5007 rm -f conftest.$ac_objext
5008 if { (ac_try="$ac_compile"
5009 case "(($ac_try" in
5010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011   *) ac_try_echo=$ac_try;;
5012 esac
5013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014   (eval "$ac_compile") 2>conftest.er1
5015   ac_status=$?
5016   grep -v '^ *+' conftest.er1 >conftest.err
5017   rm -f conftest.er1
5018   cat conftest.err >&5
5019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020   (exit $ac_status); } && {
5021          test -z "$ac_c_werror_flag" ||
5022          test ! -s conftest.err
5023        } && test -s conftest.$ac_objext; then
5024   ac_header_compiler=yes
5025 else
5026   echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5028
5029         ac_header_compiler=no
5030 fi
5031
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5034 echo "${ECHO_T}$ac_header_compiler" >&6; }
5035
5036 # Is the header present?
5037 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5039 cat >conftest.$ac_ext <<_ACEOF
5040 /* confdefs.h.  */
5041 _ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h.  */
5045 #include <$ac_header>
5046 _ACEOF
5047 if { (ac_try="$ac_cpp conftest.$ac_ext"
5048 case "(($ac_try" in
5049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050   *) ac_try_echo=$ac_try;;
5051 esac
5052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5054   ac_status=$?
5055   grep -v '^ *+' conftest.er1 >conftest.err
5056   rm -f conftest.er1
5057   cat conftest.err >&5
5058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059   (exit $ac_status); } >/dev/null && {
5060          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5061          test ! -s conftest.err
5062        }; then
5063   ac_header_preproc=yes
5064 else
5065   echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5067
5068   ac_header_preproc=no
5069 fi
5070
5071 rm -f conftest.err conftest.$ac_ext
5072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5073 echo "${ECHO_T}$ac_header_preproc" >&6; }
5074
5075 # So?  What about this header?
5076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5077   yes:no: )
5078     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5080     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5082     ac_header_preproc=yes
5083     ;;
5084   no:yes:* )
5085     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5087     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5088 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5089     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5091     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5092 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5095     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5097     ( cat <<\_ASBOX
5098 ## ------------------------------------ ##
5099 ## Report this to opensource@google.com ##
5100 ## ------------------------------------ ##
5101 _ASBOX
5102      ) | sed "s/^/$as_me: WARNING:     /" >&2
5103     ;;
5104 esac
5105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5108   echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110   eval "$as_ac_Header=\$ac_header_preproc"
5111 fi
5112 ac_res=`eval echo '${'$as_ac_Header'}'`
5113                { echo "$as_me:$LINENO: result: $ac_res" >&5
5114 echo "${ECHO_T}$ac_res" >&6; }
5115
5116 fi
5117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5118   cat >>confdefs.h <<_ACEOF
5119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5120 _ACEOF
5121
5122 fi
5123
5124 done
5125
5126
5127
5128 for ac_header in pthread.h libaio.h
5129 do
5130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5132   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 fi
5137 ac_res=`eval echo '${'$as_ac_Header'}'`
5138                { echo "$as_me:$LINENO: result: $ac_res" >&5
5139 echo "${ECHO_T}$ac_res" >&6; }
5140 else
5141   # Is the header compilable?
5142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5144 cat >conftest.$ac_ext <<_ACEOF
5145 /* confdefs.h.  */
5146 _ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h.  */
5150 $ac_includes_default
5151 #include <$ac_header>
5152 _ACEOF
5153 rm -f conftest.$ac_objext
5154 if { (ac_try="$ac_compile"
5155 case "(($ac_try" in
5156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157   *) ac_try_echo=$ac_try;;
5158 esac
5159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5160   (eval "$ac_compile") 2>conftest.er1
5161   ac_status=$?
5162   grep -v '^ *+' conftest.er1 >conftest.err
5163   rm -f conftest.er1
5164   cat conftest.err >&5
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); } && {
5167          test -z "$ac_c_werror_flag" ||
5168          test ! -s conftest.err
5169        } && test -s conftest.$ac_objext; then
5170   ac_header_compiler=yes
5171 else
5172   echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5174
5175         ac_header_compiler=no
5176 fi
5177
5178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5180 echo "${ECHO_T}$ac_header_compiler" >&6; }
5181
5182 # Is the header present?
5183 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5185 cat >conftest.$ac_ext <<_ACEOF
5186 /* confdefs.h.  */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h.  */
5191 #include <$ac_header>
5192 _ACEOF
5193 if { (ac_try="$ac_cpp conftest.$ac_ext"
5194 case "(($ac_try" in
5195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196   *) ac_try_echo=$ac_try;;
5197 esac
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5200   ac_status=$?
5201   grep -v '^ *+' conftest.er1 >conftest.err
5202   rm -f conftest.er1
5203   cat conftest.err >&5
5204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205   (exit $ac_status); } >/dev/null && {
5206          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5207          test ! -s conftest.err
5208        }; then
5209   ac_header_preproc=yes
5210 else
5211   echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5213
5214   ac_header_preproc=no
5215 fi
5216
5217 rm -f conftest.err conftest.$ac_ext
5218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5219 echo "${ECHO_T}$ac_header_preproc" >&6; }
5220
5221 # So?  What about this header?
5222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5223   yes:no: )
5224     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5228     ac_header_preproc=yes
5229     ;;
5230   no:yes:* )
5231     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5233     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5234 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5235     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5237     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5238 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5239     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5241     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5243     ( cat <<\_ASBOX
5244 ## ------------------------------------ ##
5245 ## Report this to opensource@google.com ##
5246 ## ------------------------------------ ##
5247 _ASBOX
5248      ) | sed "s/^/$as_me: WARNING:     /" >&2
5249     ;;
5250 esac
5251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5254   echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256   eval "$as_ac_Header=\$ac_header_preproc"
5257 fi
5258 ac_res=`eval echo '${'$as_ac_Header'}'`
5259                { echo "$as_me:$LINENO: result: $ac_res" >&5
5260 echo "${ECHO_T}$ac_res" >&6; }
5261
5262 fi
5263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5264   cat >>confdefs.h <<_ACEOF
5265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5266 _ACEOF
5267
5268 fi
5269
5270 done
5271
5272
5273 # Checks for typedefs, structures, and compiler characteristics.
5274 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
5275 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
5276 if test "${ac_cv_header_stdbool_h+set}" = set; then
5277   echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279   cat >conftest.$ac_ext <<_ACEOF
5280 /* confdefs.h.  */
5281 _ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h.  */
5285
5286 #include <stdbool.h>
5287 #ifndef bool
5288  "error: bool is not defined"
5289 #endif
5290 #ifndef false
5291  "error: false is not defined"
5292 #endif
5293 #if false
5294  "error: false is not 0"
5295 #endif
5296 #ifndef true
5297  "error: true is not defined"
5298 #endif
5299 #if true != 1
5300  "error: true is not 1"
5301 #endif
5302 #ifndef __bool_true_false_are_defined
5303  "error: __bool_true_false_are_defined is not defined"
5304 #endif
5305
5306         struct s { _Bool s: 1; _Bool t; } s;
5307
5308         char a[true == 1 ? 1 : -1];
5309         char b[false == 0 ? 1 : -1];
5310         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5311         char d[(bool) 0.5 == true ? 1 : -1];
5312         bool e = &s;
5313         char f[(_Bool) 0.0 == false ? 1 : -1];
5314         char g[true];
5315         char h[sizeof (_Bool)];
5316         char i[sizeof s.t];
5317         enum { j = false, k = true, l = false * true, m = true * 256 };
5318         _Bool n[m];
5319         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5320         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
5321 #       if defined __xlc__ || defined __GNUC__
5322          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
5323             reported by James Lemley on 2005-10-05; see
5324             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
5325             This test is not quite right, since xlc is allowed to
5326             reject this program, as the initializer for xlcbug is
5327             not one of the forms that C requires support for.
5328             However, doing the test right would require a runtime
5329             test, and that would make cross-compilation harder.
5330             Let us hope that IBM fixes the xlc bug, and also adds
5331             support for this kind of constant expression.  In the
5332             meantime, this test will reject xlc, which is OK, since
5333             our stdbool.h substitute should suffice.  We also test
5334             this with GCC, where it should work, to detect more
5335             quickly whether someone messes up the test in the
5336             future.  */
5337          char digs[] = "0123456789";
5338          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
5339 #       endif
5340         /* Catch a bug in an HP-UX C compiler.  See
5341            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5342            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5343          */
5344         _Bool q = true;
5345         _Bool *pq = &q;
5346
5347 int
5348 main ()
5349 {
5350
5351         *pq |= q;
5352         *pq |= ! q;
5353         /* Refer to every declared value, to avoid compiler optimizations.  */
5354         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5355                 + !m + !n + !o + !p + !q + !pq);
5356
5357   ;
5358   return 0;
5359 }
5360 _ACEOF
5361 rm -f conftest.$ac_objext
5362 if { (ac_try="$ac_compile"
5363 case "(($ac_try" in
5364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365   *) ac_try_echo=$ac_try;;
5366 esac
5367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368   (eval "$ac_compile") 2>conftest.er1
5369   ac_status=$?
5370   grep -v '^ *+' conftest.er1 >conftest.err
5371   rm -f conftest.er1
5372   cat conftest.err >&5
5373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374   (exit $ac_status); } && {
5375          test -z "$ac_c_werror_flag" ||
5376          test ! -s conftest.err
5377        } && test -s conftest.$ac_objext; then
5378   ac_cv_header_stdbool_h=yes
5379 else
5380   echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5382
5383         ac_cv_header_stdbool_h=no
5384 fi
5385
5386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387 fi
5388 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5389 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
5390 { echo "$as_me:$LINENO: checking for _Bool" >&5
5391 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
5392 if test "${ac_cv_type__Bool+set}" = set; then
5393   echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395   cat >conftest.$ac_ext <<_ACEOF
5396 /* confdefs.h.  */
5397 _ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h.  */
5401 $ac_includes_default
5402 typedef _Bool ac__type_new_;
5403 int
5404 main ()
5405 {
5406 if ((ac__type_new_ *) 0)
5407   return 0;
5408 if (sizeof (ac__type_new_))
5409   return 0;
5410   ;
5411   return 0;
5412 }
5413 _ACEOF
5414 rm -f conftest.$ac_objext
5415 if { (ac_try="$ac_compile"
5416 case "(($ac_try" in
5417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418   *) ac_try_echo=$ac_try;;
5419 esac
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421   (eval "$ac_compile") 2>conftest.er1
5422   ac_status=$?
5423   grep -v '^ *+' conftest.er1 >conftest.err
5424   rm -f conftest.er1
5425   cat conftest.err >&5
5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); } && {
5428          test -z "$ac_c_werror_flag" ||
5429          test ! -s conftest.err
5430        } && test -s conftest.$ac_objext; then
5431   ac_cv_type__Bool=yes
5432 else
5433   echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5435
5436         ac_cv_type__Bool=no
5437 fi
5438
5439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 fi
5441 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
5442 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
5443 if test $ac_cv_type__Bool = yes; then
5444
5445 cat >>confdefs.h <<_ACEOF
5446 #define HAVE__BOOL 1
5447 _ACEOF
5448
5449
5450 fi
5451
5452 if test $ac_cv_header_stdbool_h = yes; then
5453
5454 cat >>confdefs.h <<\_ACEOF
5455 #define HAVE_STDBOOL_H 1
5456 _ACEOF
5457
5458 fi
5459
5460 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5461 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5462 if test "${ac_cv_c_const+set}" = set; then
5463   echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465   cat >conftest.$ac_ext <<_ACEOF
5466 /* confdefs.h.  */
5467 _ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h.  */
5471
5472 int
5473 main ()
5474 {
5475 /* FIXME: Include the comments suggested by Paul. */
5476 #ifndef __cplusplus
5477   /* Ultrix mips cc rejects this.  */
5478   typedef int charset[2];
5479   const charset cs;
5480   /* SunOS 4.1.1 cc rejects this.  */
5481   char const *const *pcpcc;
5482   char **ppc;
5483   /* NEC SVR4.0.2 mips cc rejects this.  */
5484   struct point {int x, y;};
5485   static struct point const zero = {0,0};
5486   /* AIX XL C 1.02.0.0 rejects this.
5487      It does not let you subtract one const X* pointer from another in
5488      an arm of an if-expression whose if-part is not a constant
5489      expression */
5490   const char *g = "string";
5491   pcpcc = &g + (g ? g-g : 0);
5492   /* HPUX 7.0 cc rejects these. */
5493   ++pcpcc;
5494   ppc = (char**) pcpcc;
5495   pcpcc = (char const *const *) ppc;
5496   { /* SCO 3.2v4 cc rejects this.  */
5497     char *t;
5498     char const *s = 0 ? (char *) 0 : (char const *) 0;
5499
5500     *t++ = 0;
5501     if (s) return 0;
5502   }
5503   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5504     int x[] = {25, 17};
5505     const int *foo = &x[0];
5506     ++foo;
5507   }
5508   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5509     typedef const int *iptr;
5510     iptr p = 0;
5511     ++p;
5512   }
5513   { /* AIX XL C 1.02.0.0 rejects this saying
5514        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5515     struct s { int j; const int *ap[3]; };
5516     struct s *b; b->j = 5;
5517   }
5518   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5519     const int foo = 10;
5520     if (!foo) return 0;
5521   }
5522   return !cs[0] && !zero.x;
5523 #endif
5524
5525   ;
5526   return 0;
5527 }
5528 _ACEOF
5529 rm -f conftest.$ac_objext
5530 if { (ac_try="$ac_compile"
5531 case "(($ac_try" in
5532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533   *) ac_try_echo=$ac_try;;
5534 esac
5535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536   (eval "$ac_compile") 2>conftest.er1
5537   ac_status=$?
5538   grep -v '^ *+' conftest.er1 >conftest.err
5539   rm -f conftest.er1
5540   cat conftest.err >&5
5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); } && {
5543          test -z "$ac_c_werror_flag" ||
5544          test ! -s conftest.err
5545        } && test -s conftest.$ac_objext; then
5546   ac_cv_c_const=yes
5547 else
5548   echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5550
5551         ac_cv_c_const=no
5552 fi
5553
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 fi
5556 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5557 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5558 if test $ac_cv_c_const = no; then
5559
5560 cat >>confdefs.h <<\_ACEOF
5561 #define const
5562 _ACEOF
5563
5564 fi
5565
5566 { echo "$as_me:$LINENO: checking for inline" >&5
5567 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5568 if test "${ac_cv_c_inline+set}" = set; then
5569   echo $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571   ac_cv_c_inline=no
5572 for ac_kw in inline __inline__ __inline; do
5573   cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h.  */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h.  */
5579 #ifndef __cplusplus
5580 typedef int foo_t;
5581 static $ac_kw foo_t static_foo () {return 0; }
5582 $ac_kw foo_t foo () {return 0; }
5583 #endif
5584
5585 _ACEOF
5586 rm -f conftest.$ac_objext
5587 if { (ac_try="$ac_compile"
5588 case "(($ac_try" in
5589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590   *) ac_try_echo=$ac_try;;
5591 esac
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593   (eval "$ac_compile") 2>conftest.er1
5594   ac_status=$?
5595   grep -v '^ *+' conftest.er1 >conftest.err
5596   rm -f conftest.er1
5597   cat conftest.err >&5
5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); } && {
5600          test -z "$ac_c_werror_flag" ||
5601          test ! -s conftest.err
5602        } && test -s conftest.$ac_objext; then
5603   ac_cv_c_inline=$ac_kw
5604 else
5605   echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5607
5608
5609 fi
5610
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612   test "$ac_cv_c_inline" != no && break
5613 done
5614
5615 fi
5616 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5617 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5618
5619
5620 case $ac_cv_c_inline in
5621   inline | yes) ;;
5622   *)
5623     case $ac_cv_c_inline in
5624       no) ac_val=;;
5625       *) ac_val=$ac_cv_c_inline;;
5626     esac
5627     cat >>confdefs.h <<_ACEOF
5628 #ifndef __cplusplus
5629 #define inline $ac_val
5630 #endif
5631 _ACEOF
5632     ;;
5633 esac
5634
5635 { echo "$as_me:$LINENO: checking for pid_t" >&5
5636 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5637 if test "${ac_cv_type_pid_t+set}" = set; then
5638   echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640   cat >conftest.$ac_ext <<_ACEOF
5641 /* confdefs.h.  */
5642 _ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h.  */
5646 $ac_includes_default
5647 typedef pid_t ac__type_new_;
5648 int
5649 main ()
5650 {
5651 if ((ac__type_new_ *) 0)
5652   return 0;
5653 if (sizeof (ac__type_new_))
5654   return 0;
5655   ;
5656   return 0;
5657 }
5658 _ACEOF
5659 rm -f conftest.$ac_objext
5660 if { (ac_try="$ac_compile"
5661 case "(($ac_try" in
5662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663   *) ac_try_echo=$ac_try;;
5664 esac
5665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5666   (eval "$ac_compile") 2>conftest.er1
5667   ac_status=$?
5668   grep -v '^ *+' conftest.er1 >conftest.err
5669   rm -f conftest.er1
5670   cat conftest.err >&5
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); } && {
5673          test -z "$ac_c_werror_flag" ||
5674          test ! -s conftest.err
5675        } && test -s conftest.$ac_objext; then
5676   ac_cv_type_pid_t=yes
5677 else
5678   echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5680
5681         ac_cv_type_pid_t=no
5682 fi
5683
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685 fi
5686 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5687 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
5688 if test $ac_cv_type_pid_t = yes; then
5689   :
5690 else
5691
5692 cat >>confdefs.h <<_ACEOF
5693 #define pid_t int
5694 _ACEOF
5695
5696 fi
5697
5698 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
5699 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
5700 if test "${ac_cv_c_restrict+set}" = set; then
5701   echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703   ac_cv_c_restrict=no
5704    # Try the official restrict keyword, then gcc's __restrict, and
5705    # the less common variants.
5706    for ac_kw in restrict __restrict __restrict__ _Restrict; do
5707      cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h.  */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h.  */
5713 typedef int * int_ptr;
5714         int foo (int_ptr $ac_kw ip) {
5715         return ip[0];
5716        }
5717 int
5718 main ()
5719 {
5720 int s[1];
5721         int * $ac_kw t = s;
5722         t[0] = 0;
5723         return foo(t)
5724   ;
5725   return 0;
5726 }
5727 _ACEOF
5728 rm -f conftest.$ac_objext
5729 if { (ac_try="$ac_compile"
5730 case "(($ac_try" in
5731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732   *) ac_try_echo=$ac_try;;
5733 esac
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735   (eval "$ac_compile") 2>conftest.er1
5736   ac_status=$?
5737   grep -v '^ *+' conftest.er1 >conftest.err
5738   rm -f conftest.er1
5739   cat conftest.err >&5
5740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741   (exit $ac_status); } && {
5742          test -z "$ac_c_werror_flag" ||
5743          test ! -s conftest.err
5744        } && test -s conftest.$ac_objext; then
5745   ac_cv_c_restrict=$ac_kw
5746 else
5747   echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5749
5750
5751 fi
5752
5753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5754      test "$ac_cv_c_restrict" != no && break
5755    done
5756
5757 fi
5758 { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
5759 echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
5760  case $ac_cv_c_restrict in
5761    restrict) ;;
5762    no)
5763 cat >>confdefs.h <<\_ACEOF
5764 #define restrict
5765 _ACEOF
5766  ;;
5767    *)  cat >>confdefs.h <<_ACEOF
5768 #define restrict $ac_cv_c_restrict
5769 _ACEOF
5770  ;;
5771  esac
5772
5773 { echo "$as_me:$LINENO: checking for ssize_t" >&5
5774 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
5775 if test "${ac_cv_type_ssize_t+set}" = set; then
5776   echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778   cat >conftest.$ac_ext <<_ACEOF
5779 /* confdefs.h.  */
5780 _ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h.  */
5784 $ac_includes_default
5785 typedef ssize_t ac__type_new_;
5786 int
5787 main ()
5788 {
5789 if ((ac__type_new_ *) 0)
5790   return 0;
5791 if (sizeof (ac__type_new_))
5792   return 0;
5793   ;
5794   return 0;
5795 }
5796 _ACEOF
5797 rm -f conftest.$ac_objext
5798 if { (ac_try="$ac_compile"
5799 case "(($ac_try" in
5800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801   *) ac_try_echo=$ac_try;;
5802 esac
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804   (eval "$ac_compile") 2>conftest.er1
5805   ac_status=$?
5806   grep -v '^ *+' conftest.er1 >conftest.err
5807   rm -f conftest.er1
5808   cat conftest.err >&5
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); } && {
5811          test -z "$ac_c_werror_flag" ||
5812          test ! -s conftest.err
5813        } && test -s conftest.$ac_objext; then
5814   ac_cv_type_ssize_t=yes
5815 else
5816   echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5818
5819         ac_cv_type_ssize_t=no
5820 fi
5821
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823 fi
5824 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
5825 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
5826 if test $ac_cv_type_ssize_t = yes; then
5827   :
5828 else
5829
5830 cat >>confdefs.h <<_ACEOF
5831 #define ssize_t int
5832 _ACEOF
5833
5834 fi
5835
5836 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5837 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5838 if test "${ac_cv_header_time+set}" = set; then
5839   echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841   cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h.  */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h.  */
5847 #include <sys/types.h>
5848 #include <sys/time.h>
5849 #include <time.h>
5850
5851 int
5852 main ()
5853 {
5854 if ((struct tm *) 0)
5855 return 0;
5856   ;
5857   return 0;
5858 }
5859 _ACEOF
5860 rm -f conftest.$ac_objext
5861 if { (ac_try="$ac_compile"
5862 case "(($ac_try" in
5863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864   *) ac_try_echo=$ac_try;;
5865 esac
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867   (eval "$ac_compile") 2>conftest.er1
5868   ac_status=$?
5869   grep -v '^ *+' conftest.er1 >conftest.err
5870   rm -f conftest.er1
5871   cat conftest.err >&5
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); } && {
5874          test -z "$ac_c_werror_flag" ||
5875          test ! -s conftest.err
5876        } && test -s conftest.$ac_objext; then
5877   ac_cv_header_time=yes
5878 else
5879   echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5881
5882         ac_cv_header_time=no
5883 fi
5884
5885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886 fi
5887 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5888 echo "${ECHO_T}$ac_cv_header_time" >&6; }
5889 if test $ac_cv_header_time = yes; then
5890
5891 cat >>confdefs.h <<\_ACEOF
5892 #define TIME_WITH_SYS_TIME 1
5893 _ACEOF
5894
5895 fi
5896
5897
5898   { echo "$as_me:$LINENO: checking for uint16_t" >&5
5899 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
5900 if test "${ac_cv_c_uint16_t+set}" = set; then
5901   echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903   ac_cv_c_uint16_t=no
5904      for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
5905          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
5906        cat >conftest.$ac_ext <<_ACEOF
5907 /* confdefs.h.  */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h.  */
5912 $ac_includes_default
5913 int
5914 main ()
5915 {
5916 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
5917 test_array [0] = 0
5918
5919   ;
5920   return 0;
5921 }
5922 _ACEOF
5923 rm -f conftest.$ac_objext
5924 if { (ac_try="$ac_compile"
5925 case "(($ac_try" in
5926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927   *) ac_try_echo=$ac_try;;
5928 esac
5929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930   (eval "$ac_compile") 2>conftest.er1
5931   ac_status=$?
5932   grep -v '^ *+' conftest.er1 >conftest.err
5933   rm -f conftest.er1
5934   cat conftest.err >&5
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); } && {
5937          test -z "$ac_c_werror_flag" ||
5938          test ! -s conftest.err
5939        } && test -s conftest.$ac_objext; then
5940   case $ac_type in
5941   uint16_t) ac_cv_c_uint16_t=yes ;;
5942   *) ac_cv_c_uint16_t=$ac_type ;;
5943 esac
5944
5945 else
5946   echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.$ac_ext >&5
5948
5949
5950 fi
5951
5952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953        test "$ac_cv_c_uint16_t" != no && break
5954      done
5955 fi
5956 { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
5957 echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
5958   case $ac_cv_c_uint16_t in #(
5959   no|yes) ;; #(
5960   *)
5961
5962
5963 cat >>confdefs.h <<_ACEOF
5964 #define uint16_t $ac_cv_c_uint16_t
5965 _ACEOF
5966 ;;
5967   esac
5968
5969 { echo "$as_me:$LINENO: checking for working volatile" >&5
5970 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
5971 if test "${ac_cv_c_volatile+set}" = set; then
5972   echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974   cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h.  */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h.  */
5980
5981 int
5982 main ()
5983 {
5984
5985 volatile int x;
5986 int * volatile y = (int *) 0;
5987 return !x && !y;
5988   ;
5989   return 0;
5990 }
5991 _ACEOF
5992 rm -f conftest.$ac_objext
5993 if { (ac_try="$ac_compile"
5994 case "(($ac_try" in
5995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996   *) ac_try_echo=$ac_try;;
5997 esac
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999   (eval "$ac_compile") 2>conftest.er1
6000   ac_status=$?
6001   grep -v '^ *+' conftest.er1 >conftest.err
6002   rm -f conftest.er1
6003   cat conftest.err >&5
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); } && {
6006          test -z "$ac_c_werror_flag" ||
6007          test ! -s conftest.err
6008        } && test -s conftest.$ac_objext; then
6009   ac_cv_c_volatile=yes
6010 else
6011   echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014         ac_cv_c_volatile=no
6015 fi
6016
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 fi
6019 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6020 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
6021 if test $ac_cv_c_volatile = no; then
6022
6023 cat >>confdefs.h <<\_ACEOF
6024 #define volatile
6025 _ACEOF
6026
6027 fi
6028
6029
6030
6031 # These are the libraries stressapptest requires to build.
6032 # We'll check that they work, and fail otherwise.
6033 # In the future we may provide for testing alternate
6034 # arguments, but that's not necessary now.
6035 LIBS="$LIBS -static -lrt -pthread -laio"
6036
6037 # Checking for pthreads
6038 pthread_arg="not_available"
6039 { echo "$as_me:$LINENO: checking if pthreads is supported" >&5
6040 echo $ECHO_N "checking if pthreads is supported... $ECHO_C" >&6; }
6041
6042 pthread_header="#include<pthread.h>"
6043 pthread_body="pthread_create(0,0,0,0)"
6044 # Check if compile with no extra argument
6045 cat >conftest.$ac_ext <<_ACEOF
6046 /* confdefs.h.  */
6047 _ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h.  */
6051 $pthread_header
6052 int
6053 main ()
6054 {
6055 $pthread_body
6056   ;
6057   return 0;
6058 }
6059 _ACEOF
6060 rm -f conftest.$ac_objext conftest$ac_exeext
6061 if { (ac_try="$ac_link"
6062 case "(($ac_try" in
6063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064   *) ac_try_echo=$ac_try;;
6065 esac
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067   (eval "$ac_link") 2>conftest.er1
6068   ac_status=$?
6069   grep -v '^ *+' conftest.er1 >conftest.err
6070   rm -f conftest.er1
6071   cat conftest.err >&5
6072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073   (exit $ac_status); } && {
6074          test -z "$ac_c_werror_flag" ||
6075          test ! -s conftest.err
6076        } && test -s conftest$ac_exeext &&
6077        $as_test_x conftest$ac_exeext; then
6078   pthread_arg=""
6079 else
6080   echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6082
6083
6084 fi
6085
6086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6087       conftest$ac_exeext conftest.$ac_ext
6088
6089 if test x"$pthread_arg" = x"not_available"; then
6090   { { echo "$as_me:$LINENO: error: Cannot find a proper pthread library
6091 See \`config.log' for more details." >&5
6092 echo "$as_me: error: Cannot find a proper pthread library
6093 See \`config.log' for more details." >&2;}
6094    { (exit 1); exit 1; }; }
6095 else
6096   { echo "$as_me:$LINENO: result: yes" >&5
6097 echo "${ECHO_T}yes" >&6; }
6098 fi
6099
6100 # Checking for libaio
6101 libaio_arg="not_available"
6102 { echo "$as_me:$LINENO: checking if libaio is supported" >&5
6103 echo $ECHO_N "checking if libaio is supported... $ECHO_C" >&6; }
6104
6105 libaio_header="#include<libaio.h>"
6106 libaio_body="io_submit(0,0,0)"
6107 # Check if compile with no extra argument
6108 cat >conftest.$ac_ext <<_ACEOF
6109 /* confdefs.h.  */
6110 _ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h.  */
6114 $libaio_header
6115 int
6116 main ()
6117 {
6118 $libaio_body
6119   ;
6120   return 0;
6121 }
6122 _ACEOF
6123 rm -f conftest.$ac_objext conftest$ac_exeext
6124 if { (ac_try="$ac_link"
6125 case "(($ac_try" in
6126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127   *) ac_try_echo=$ac_try;;
6128 esac
6129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6130   (eval "$ac_link") 2>conftest.er1
6131   ac_status=$?
6132   grep -v '^ *+' conftest.er1 >conftest.err
6133   rm -f conftest.er1
6134   cat conftest.err >&5
6135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136   (exit $ac_status); } && {
6137          test -z "$ac_c_werror_flag" ||
6138          test ! -s conftest.err
6139        } && test -s conftest$ac_exeext &&
6140        $as_test_x conftest$ac_exeext; then
6141   libaio_arg=""
6142 else
6143   echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6145
6146
6147 fi
6148
6149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6150       conftest$ac_exeext conftest.$ac_ext
6151
6152 if test x"$libaio_arg" = x"not_available"; then
6153   { { echo "$as_me:$LINENO: error: Cannot find libaio library, please install libaio-dev
6154 See \`config.log' for more details." >&5
6155 echo "$as_me: error: Cannot find libaio library, please install libaio-dev
6156 See \`config.log' for more details." >&2;}
6157    { (exit 1); exit 1; }; }
6158 else
6159   { echo "$as_me:$LINENO: result: yes" >&5
6160 echo "${ECHO_T}yes" >&6; }
6161 fi
6162
6163 # Checking for librt
6164 librt_arg="not_available"
6165 { echo "$as_me:$LINENO: checking if librt is supported" >&5
6166 echo $ECHO_N "checking if librt is supported... $ECHO_C" >&6; }
6167
6168 librt_header="#include<sys/shm.h>"
6169 librt_body="shm_open(0, 0, 0)"
6170 # Check if compile with no extra argument
6171 cat >conftest.$ac_ext <<_ACEOF
6172 /* confdefs.h.  */
6173 _ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h.  */
6177 $librt_header
6178 int
6179 main ()
6180 {
6181 $librt_body
6182   ;
6183   return 0;
6184 }
6185 _ACEOF
6186 rm -f conftest.$ac_objext conftest$ac_exeext
6187 if { (ac_try="$ac_link"
6188 case "(($ac_try" in
6189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190   *) ac_try_echo=$ac_try;;
6191 esac
6192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193   (eval "$ac_link") 2>conftest.er1
6194   ac_status=$?
6195   grep -v '^ *+' conftest.er1 >conftest.err
6196   rm -f conftest.er1
6197   cat conftest.err >&5
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); } && {
6200          test -z "$ac_c_werror_flag" ||
6201          test ! -s conftest.err
6202        } && test -s conftest$ac_exeext &&
6203        $as_test_x conftest$ac_exeext; then
6204   librt_arg=""
6205 else
6206   echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6208
6209
6210 fi
6211
6212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6213       conftest$ac_exeext conftest.$ac_ext
6214
6215 if test x"$librt_arg" = x"not_available"; then
6216   { { echo "$as_me:$LINENO: error: Cannot find librt library
6217 See \`config.log' for more details." >&5
6218 echo "$as_me: error: Cannot find librt library
6219 See \`config.log' for more details." >&2;}
6220    { (exit 1); exit 1; }; }
6221 else
6222   { echo "$as_me:$LINENO: result: yes" >&5
6223 echo "${ECHO_T}yes" >&6; }
6224 fi
6225
6226
6227 # Checks for library functions.
6228 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6229 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
6230 if test "${ac_cv_func_closedir_void+set}" = set; then
6231   echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233   if test "$cross_compiling" = yes; then
6234   ac_cv_func_closedir_void=yes
6235 else
6236   cat >conftest.$ac_ext <<_ACEOF
6237 /* confdefs.h.  */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h.  */
6242 $ac_includes_default
6243 #include <$ac_header_dirent>
6244 #ifndef __cplusplus
6245 int closedir ();
6246 #endif
6247
6248 int
6249 main ()
6250 {
6251 return closedir (opendir (".")) != 0;
6252   ;
6253   return 0;
6254 }
6255 _ACEOF
6256 rm -f conftest$ac_exeext
6257 if { (ac_try="$ac_link"
6258 case "(($ac_try" in
6259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260   *) ac_try_echo=$ac_try;;
6261 esac
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263   (eval "$ac_link") 2>&5
6264   ac_status=$?
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6267   { (case "(($ac_try" in
6268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269   *) ac_try_echo=$ac_try;;
6270 esac
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272   (eval "$ac_try") 2>&5
6273   ac_status=$?
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); }; }; then
6276   ac_cv_func_closedir_void=no
6277 else
6278   echo "$as_me: program exited with status $ac_status" >&5
6279 echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6281
6282 ( exit $ac_status )
6283 ac_cv_func_closedir_void=yes
6284 fi
6285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6286 fi
6287
6288
6289 fi
6290 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6291 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
6292 if test $ac_cv_func_closedir_void = yes; then
6293
6294 cat >>confdefs.h <<\_ACEOF
6295 #define CLOSEDIR_VOID 1
6296 _ACEOF
6297
6298 fi
6299
6300 if test $ac_cv_c_compiler_gnu = yes; then
6301     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
6302 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
6303 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6304   echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306     ac_pattern="Autoconf.*'x'"
6307   cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h.  */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h.  */
6313 #include <sgtty.h>
6314 Autoconf TIOCGETP
6315 _ACEOF
6316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6317   $EGREP "$ac_pattern" >/dev/null 2>&1; then
6318   ac_cv_prog_gcc_traditional=yes
6319 else
6320   ac_cv_prog_gcc_traditional=no
6321 fi
6322 rm -f conftest*
6323
6324
6325   if test $ac_cv_prog_gcc_traditional = no; then
6326     cat >conftest.$ac_ext <<_ACEOF
6327 /* confdefs.h.  */
6328 _ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h.  */
6332 #include <termio.h>
6333 Autoconf TCGETA
6334 _ACEOF
6335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6336   $EGREP "$ac_pattern" >/dev/null 2>&1; then
6337   ac_cv_prog_gcc_traditional=yes
6338 fi
6339 rm -f conftest*
6340
6341   fi
6342 fi
6343 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6344 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
6345   if test $ac_cv_prog_gcc_traditional = yes; then
6346     CC="$CC -traditional"
6347   fi
6348 fi
6349
6350
6351
6352 for ac_header in sys/select.h sys/socket.h
6353 do
6354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6356   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6359   echo $ECHO_N "(cached) $ECHO_C" >&6
6360 fi
6361 ac_res=`eval echo '${'$as_ac_Header'}'`
6362                { echo "$as_me:$LINENO: result: $ac_res" >&5
6363 echo "${ECHO_T}$ac_res" >&6; }
6364 else
6365   # Is the header compilable?
6366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6368 cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h.  */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h.  */
6374 $ac_includes_default
6375 #include <$ac_header>
6376 _ACEOF
6377 rm -f conftest.$ac_objext
6378 if { (ac_try="$ac_compile"
6379 case "(($ac_try" in
6380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381   *) ac_try_echo=$ac_try;;
6382 esac
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384   (eval "$ac_compile") 2>conftest.er1
6385   ac_status=$?
6386   grep -v '^ *+' conftest.er1 >conftest.err
6387   rm -f conftest.er1
6388   cat conftest.err >&5
6389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390   (exit $ac_status); } && {
6391          test -z "$ac_c_werror_flag" ||
6392          test ! -s conftest.err
6393        } && test -s conftest.$ac_objext; then
6394   ac_header_compiler=yes
6395 else
6396   echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6398
6399         ac_header_compiler=no
6400 fi
6401
6402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6404 echo "${ECHO_T}$ac_header_compiler" >&6; }
6405
6406 # Is the header present?
6407 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6409 cat >conftest.$ac_ext <<_ACEOF
6410 /* confdefs.h.  */
6411 _ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h.  */
6415 #include <$ac_header>
6416 _ACEOF
6417 if { (ac_try="$ac_cpp conftest.$ac_ext"
6418 case "(($ac_try" in
6419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6420   *) ac_try_echo=$ac_try;;
6421 esac
6422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6423   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6424   ac_status=$?
6425   grep -v '^ *+' conftest.er1 >conftest.err
6426   rm -f conftest.er1
6427   cat conftest.err >&5
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); } >/dev/null && {
6430          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6431          test ! -s conftest.err
6432        }; then
6433   ac_header_preproc=yes
6434 else
6435   echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6437
6438   ac_header_preproc=no
6439 fi
6440
6441 rm -f conftest.err conftest.$ac_ext
6442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6443 echo "${ECHO_T}$ac_header_preproc" >&6; }
6444
6445 # So?  What about this header?
6446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6447   yes:no: )
6448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6452     ac_header_preproc=yes
6453     ;;
6454   no:yes:* )
6455     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6457     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6458 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6459     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6461     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6462 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6465     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6467     ( cat <<\_ASBOX
6468 ## ------------------------------------ ##
6469 ## Report this to opensource@google.com ##
6470 ## ------------------------------------ ##
6471 _ASBOX
6472      ) | sed "s/^/$as_me: WARNING:     /" >&2
6473     ;;
6474 esac
6475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6478   echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480   eval "$as_ac_Header=\$ac_header_preproc"
6481 fi
6482 ac_res=`eval echo '${'$as_ac_Header'}'`
6483                { echo "$as_me:$LINENO: result: $ac_res" >&5
6484 echo "${ECHO_T}$ac_res" >&6; }
6485
6486 fi
6487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6488   cat >>confdefs.h <<_ACEOF
6489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6490 _ACEOF
6491
6492 fi
6493
6494 done
6495
6496 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
6497 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
6498 if test "${ac_cv_func_select_args+set}" = set; then
6499   echo $ECHO_N "(cached) $ECHO_C" >&6
6500 else
6501   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
6502  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
6503   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
6504    cat >conftest.$ac_ext <<_ACEOF
6505 /* confdefs.h.  */
6506 _ACEOF
6507 cat confdefs.h >>conftest.$ac_ext
6508 cat >>conftest.$ac_ext <<_ACEOF
6509 /* end confdefs.h.  */
6510 $ac_includes_default
6511 #ifdef HAVE_SYS_SELECT_H
6512 # include <sys/select.h>
6513 #endif
6514 #ifdef HAVE_SYS_SOCKET_H
6515 # include <sys/socket.h>
6516 #endif
6517
6518 int
6519 main ()
6520 {
6521 extern int select ($ac_arg1,
6522                                             $ac_arg234, $ac_arg234, $ac_arg234,
6523                                             $ac_arg5);
6524   ;
6525   return 0;
6526 }
6527 _ACEOF
6528 rm -f conftest.$ac_objext
6529 if { (ac_try="$ac_compile"
6530 case "(($ac_try" in
6531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6532   *) ac_try_echo=$ac_try;;
6533 esac
6534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6535   (eval "$ac_compile") 2>conftest.er1
6536   ac_status=$?
6537   grep -v '^ *+' conftest.er1 >conftest.err
6538   rm -f conftest.er1
6539   cat conftest.err >&5
6540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541   (exit $ac_status); } && {
6542          test -z "$ac_c_werror_flag" ||
6543          test ! -s conftest.err
6544        } && test -s conftest.$ac_objext; then
6545   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
6546 else
6547   echo "$as_me: failed program was:" >&5
6548 sed 's/^/| /' conftest.$ac_ext >&5
6549
6550
6551 fi
6552
6553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554   done
6555  done
6556 done
6557 # Provide a safe default value.
6558 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
6559
6560 fi
6561 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
6562 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
6563 ac_save_IFS=$IFS; IFS=','
6564 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
6565 IFS=$ac_save_IFS
6566 shift
6567
6568 cat >>confdefs.h <<_ACEOF
6569 #define SELECT_TYPE_ARG1 $1
6570 _ACEOF
6571
6572
6573 cat >>confdefs.h <<_ACEOF
6574 #define SELECT_TYPE_ARG234 ($2)
6575 _ACEOF
6576
6577
6578 cat >>confdefs.h <<_ACEOF
6579 #define SELECT_TYPE_ARG5 ($3)
6580 _ACEOF
6581
6582 rm -f conftest*
6583
6584 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6585 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6586 if test "${ac_cv_type_signal+set}" = set; then
6587   echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589   cat >conftest.$ac_ext <<_ACEOF
6590 /* confdefs.h.  */
6591 _ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h.  */
6595 #include <sys/types.h>
6596 #include <signal.h>
6597
6598 int
6599 main ()
6600 {
6601 return *(signal (0, 0)) (0) == 1;
6602   ;
6603   return 0;
6604 }
6605 _ACEOF
6606 rm -f conftest.$ac_objext
6607 if { (ac_try="$ac_compile"
6608 case "(($ac_try" in
6609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610   *) ac_try_echo=$ac_try;;
6611 esac
6612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613   (eval "$ac_compile") 2>conftest.er1
6614   ac_status=$?
6615   grep -v '^ *+' conftest.er1 >conftest.err
6616   rm -f conftest.er1
6617   cat conftest.err >&5
6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619   (exit $ac_status); } && {
6620          test -z "$ac_c_werror_flag" ||
6621          test ! -s conftest.err
6622        } && test -s conftest.$ac_objext; then
6623   ac_cv_type_signal=int
6624 else
6625   echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6627
6628         ac_cv_type_signal=void
6629 fi
6630
6631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6632 fi
6633 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6634 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6635
6636 cat >>confdefs.h <<_ACEOF
6637 #define RETSIGTYPE $ac_cv_type_signal
6638 _ACEOF
6639
6640
6641 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6642 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
6643 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6644   echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646   cat >conftest.$ac_ext <<_ACEOF
6647 /* confdefs.h.  */
6648 _ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h.  */
6652 $ac_includes_default
6653 int
6654 main ()
6655 {
6656 #ifndef strerror_r
6657   (void) strerror_r;
6658 #endif
6659
6660   ;
6661   return 0;
6662 }
6663 _ACEOF
6664 rm -f conftest.$ac_objext
6665 if { (ac_try="$ac_compile"
6666 case "(($ac_try" in
6667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6668   *) ac_try_echo=$ac_try;;
6669 esac
6670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6671   (eval "$ac_compile") 2>conftest.er1
6672   ac_status=$?
6673   grep -v '^ *+' conftest.er1 >conftest.err
6674   rm -f conftest.er1
6675   cat conftest.err >&5
6676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677   (exit $ac_status); } && {
6678          test -z "$ac_c_werror_flag" ||
6679          test ! -s conftest.err
6680        } && test -s conftest.$ac_objext; then
6681   ac_cv_have_decl_strerror_r=yes
6682 else
6683   echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6685
6686         ac_cv_have_decl_strerror_r=no
6687 fi
6688
6689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690 fi
6691 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6692 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
6693 if test $ac_cv_have_decl_strerror_r = yes; then
6694
6695 cat >>confdefs.h <<_ACEOF
6696 #define HAVE_DECL_STRERROR_R 1
6697 _ACEOF
6698
6699
6700 else
6701   cat >>confdefs.h <<_ACEOF
6702 #define HAVE_DECL_STRERROR_R 0
6703 _ACEOF
6704
6705
6706 fi
6707
6708
6709
6710 for ac_func in strerror_r
6711 do
6712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6713 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6715 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6716   echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718   cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h.  */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h.  */
6724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6726 #define $ac_func innocuous_$ac_func
6727
6728 /* System header to define __stub macros and hopefully few prototypes,
6729     which can conflict with char $ac_func (); below.
6730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6731     <limits.h> exists even on freestanding compilers.  */
6732
6733 #ifdef __STDC__
6734 # include <limits.h>
6735 #else
6736 # include <assert.h>
6737 #endif
6738
6739 #undef $ac_func
6740
6741 /* Override any GCC internal prototype to avoid an error.
6742    Use char because int might match the return type of a GCC
6743    builtin and then its argument prototype would still apply.  */
6744 #ifdef __cplusplus
6745 extern "C"
6746 #endif
6747 char $ac_func ();
6748 /* The GNU C library defines this for functions which it implements
6749     to always fail with ENOSYS.  Some functions are actually named
6750     something starting with __ and the normal name is an alias.  */
6751 #if defined __stub_$ac_func || defined __stub___$ac_func
6752 choke me
6753 #endif
6754
6755 int
6756 main ()
6757 {
6758 return $ac_func ();
6759   ;
6760   return 0;
6761 }
6762 _ACEOF
6763 rm -f conftest.$ac_objext conftest$ac_exeext
6764 if { (ac_try="$ac_link"
6765 case "(($ac_try" in
6766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6767   *) ac_try_echo=$ac_try;;
6768 esac
6769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6770   (eval "$ac_link") 2>conftest.er1
6771   ac_status=$?
6772   grep -v '^ *+' conftest.er1 >conftest.err
6773   rm -f conftest.er1
6774   cat conftest.err >&5
6775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776   (exit $ac_status); } && {
6777          test -z "$ac_c_werror_flag" ||
6778          test ! -s conftest.err
6779        } && test -s conftest$ac_exeext &&
6780        $as_test_x conftest$ac_exeext; then
6781   eval "$as_ac_var=yes"
6782 else
6783   echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6785
6786         eval "$as_ac_var=no"
6787 fi
6788
6789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6790       conftest$ac_exeext conftest.$ac_ext
6791 fi
6792 ac_res=`eval echo '${'$as_ac_var'}'`
6793                { echo "$as_me:$LINENO: result: $ac_res" >&5
6794 echo "${ECHO_T}$ac_res" >&6; }
6795 if test `eval echo '${'$as_ac_var'}'` = yes; then
6796   cat >>confdefs.h <<_ACEOF
6797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6798 _ACEOF
6799
6800 fi
6801 done
6802
6803 { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
6804 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
6805 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
6806   echo $ECHO_N "(cached) $ECHO_C" >&6
6807 else
6808
6809     ac_cv_func_strerror_r_char_p=no
6810     if test $ac_cv_have_decl_strerror_r = yes; then
6811       cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h.  */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h.  */
6817 $ac_includes_default
6818 int
6819 main ()
6820 {
6821
6822           char buf[100];
6823           char x = *strerror_r (0, buf, sizeof buf);
6824           char *p = strerror_r (0, buf, sizeof buf);
6825           return !p || x;
6826
6827   ;
6828   return 0;
6829 }
6830 _ACEOF
6831 rm -f conftest.$ac_objext
6832 if { (ac_try="$ac_compile"
6833 case "(($ac_try" in
6834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6835   *) ac_try_echo=$ac_try;;
6836 esac
6837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6838   (eval "$ac_compile") 2>conftest.er1
6839   ac_status=$?
6840   grep -v '^ *+' conftest.er1 >conftest.err
6841   rm -f conftest.er1
6842   cat conftest.err >&5
6843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844   (exit $ac_status); } && {
6845          test -z "$ac_c_werror_flag" ||
6846          test ! -s conftest.err
6847        } && test -s conftest.$ac_objext; then
6848   ac_cv_func_strerror_r_char_p=yes
6849 else
6850   echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6852
6853
6854 fi
6855
6856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857     else
6858       # strerror_r is not declared.  Choose between
6859       # systems that have relatively inaccessible declarations for the
6860       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
6861       # former has a strerror_r that returns char*, while the latter
6862       # has a strerror_r that returns `int'.
6863       # This test should segfault on the DEC system.
6864       if test "$cross_compiling" = yes; then
6865   :
6866 else
6867   cat >conftest.$ac_ext <<_ACEOF
6868 /* confdefs.h.  */
6869 _ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h.  */
6873 $ac_includes_default
6874         extern char *strerror_r ();
6875 int
6876 main ()
6877 {
6878 char buf[100];
6879           char x = *strerror_r (0, buf, sizeof buf);
6880           return ! isalpha (x);
6881   ;
6882   return 0;
6883 }
6884 _ACEOF
6885 rm -f conftest$ac_exeext
6886 if { (ac_try="$ac_link"
6887 case "(($ac_try" in
6888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889   *) ac_try_echo=$ac_try;;
6890 esac
6891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6892   (eval "$ac_link") 2>&5
6893   ac_status=$?
6894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6896   { (case "(($ac_try" in
6897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6898   *) ac_try_echo=$ac_try;;
6899 esac
6900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6901   (eval "$ac_try") 2>&5
6902   ac_status=$?
6903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904   (exit $ac_status); }; }; then
6905   ac_cv_func_strerror_r_char_p=yes
6906 else
6907   echo "$as_me: program exited with status $ac_status" >&5
6908 echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6910
6911 fi
6912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6913 fi
6914
6915
6916     fi
6917
6918 fi
6919 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
6920 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
6921 if test $ac_cv_func_strerror_r_char_p = yes; then
6922
6923 cat >>confdefs.h <<\_ACEOF
6924 #define STRERROR_R_CHAR_P 1
6925 _ACEOF
6926
6927 fi
6928
6929
6930 for ac_func in vprintf
6931 do
6932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6933 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6936   echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938   cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h.  */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h.  */
6944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6946 #define $ac_func innocuous_$ac_func
6947
6948 /* System header to define __stub macros and hopefully few prototypes,
6949     which can conflict with char $ac_func (); below.
6950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6951     <limits.h> exists even on freestanding compilers.  */
6952
6953 #ifdef __STDC__
6954 # include <limits.h>
6955 #else
6956 # include <assert.h>
6957 #endif
6958
6959 #undef $ac_func
6960
6961 /* Override any GCC internal prototype to avoid an error.
6962    Use char because int might match the return type of a GCC
6963    builtin and then its argument prototype would still apply.  */
6964 #ifdef __cplusplus
6965 extern "C"
6966 #endif
6967 char $ac_func ();
6968 /* The GNU C library defines this for functions which it implements
6969     to always fail with ENOSYS.  Some functions are actually named
6970     something starting with __ and the normal name is an alias.  */
6971 #if defined __stub_$ac_func || defined __stub___$ac_func
6972 choke me
6973 #endif
6974
6975 int
6976 main ()
6977 {
6978 return $ac_func ();
6979   ;
6980   return 0;
6981 }
6982 _ACEOF
6983 rm -f conftest.$ac_objext conftest$ac_exeext
6984 if { (ac_try="$ac_link"
6985 case "(($ac_try" in
6986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987   *) ac_try_echo=$ac_try;;
6988 esac
6989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6990   (eval "$ac_link") 2>conftest.er1
6991   ac_status=$?
6992   grep -v '^ *+' conftest.er1 >conftest.err
6993   rm -f conftest.er1
6994   cat conftest.err >&5
6995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996   (exit $ac_status); } && {
6997          test -z "$ac_c_werror_flag" ||
6998          test ! -s conftest.err
6999        } && test -s conftest$ac_exeext &&
7000        $as_test_x conftest$ac_exeext; then
7001   eval "$as_ac_var=yes"
7002 else
7003   echo "$as_me: failed program was:" >&5
7004 sed 's/^/| /' conftest.$ac_ext >&5
7005
7006         eval "$as_ac_var=no"
7007 fi
7008
7009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7010       conftest$ac_exeext conftest.$ac_ext
7011 fi
7012 ac_res=`eval echo '${'$as_ac_var'}'`
7013                { echo "$as_me:$LINENO: result: $ac_res" >&5
7014 echo "${ECHO_T}$ac_res" >&6; }
7015 if test `eval echo '${'$as_ac_var'}'` = yes; then
7016   cat >>confdefs.h <<_ACEOF
7017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7018 _ACEOF
7019
7020 { echo "$as_me:$LINENO: checking for _doprnt" >&5
7021 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
7022 if test "${ac_cv_func__doprnt+set}" = set; then
7023   echo $ECHO_N "(cached) $ECHO_C" >&6
7024 else
7025   cat >conftest.$ac_ext <<_ACEOF
7026 /* confdefs.h.  */
7027 _ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h.  */
7031 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
7032    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7033 #define _doprnt innocuous__doprnt
7034
7035 /* System header to define __stub macros and hopefully few prototypes,
7036     which can conflict with char _doprnt (); below.
7037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7038     <limits.h> exists even on freestanding compilers.  */
7039
7040 #ifdef __STDC__
7041 # include <limits.h>
7042 #else
7043 # include <assert.h>
7044 #endif
7045
7046 #undef _doprnt
7047
7048 /* Override any GCC internal prototype to avoid an error.
7049    Use char because int might match the return type of a GCC
7050    builtin and then its argument prototype would still apply.  */
7051 #ifdef __cplusplus
7052 extern "C"
7053 #endif
7054 char _doprnt ();
7055 /* The GNU C library defines this for functions which it implements
7056     to always fail with ENOSYS.  Some functions are actually named
7057     something starting with __ and the normal name is an alias.  */
7058 #if defined __stub__doprnt || defined __stub____doprnt
7059 choke me
7060 #endif
7061
7062 int
7063 main ()
7064 {
7065 return _doprnt ();
7066   ;
7067   return 0;
7068 }
7069 _ACEOF
7070 rm -f conftest.$ac_objext conftest$ac_exeext
7071 if { (ac_try="$ac_link"
7072 case "(($ac_try" in
7073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074   *) ac_try_echo=$ac_try;;
7075 esac
7076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7077   (eval "$ac_link") 2>conftest.er1
7078   ac_status=$?
7079   grep -v '^ *+' conftest.er1 >conftest.err
7080   rm -f conftest.er1
7081   cat conftest.err >&5
7082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083   (exit $ac_status); } && {
7084          test -z "$ac_c_werror_flag" ||
7085          test ! -s conftest.err
7086        } && test -s conftest$ac_exeext &&
7087        $as_test_x conftest$ac_exeext; then
7088   ac_cv_func__doprnt=yes
7089 else
7090   echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.$ac_ext >&5
7092
7093         ac_cv_func__doprnt=no
7094 fi
7095
7096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7097       conftest$ac_exeext conftest.$ac_ext
7098 fi
7099 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7100 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
7101 if test $ac_cv_func__doprnt = yes; then
7102
7103 cat >>confdefs.h <<\_ACEOF
7104 #define HAVE_DOPRNT 1
7105 _ACEOF
7106
7107 fi
7108
7109 fi
7110 done
7111
7112
7113
7114
7115
7116
7117
7118
7119 for ac_func in gettimeofday memset select socket strtol strtoull
7120 do
7121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7125   echo $ECHO_N "(cached) $ECHO_C" >&6
7126 else
7127   cat >conftest.$ac_ext <<_ACEOF
7128 /* confdefs.h.  */
7129 _ACEOF
7130 cat confdefs.h >>conftest.$ac_ext
7131 cat >>conftest.$ac_ext <<_ACEOF
7132 /* end confdefs.h.  */
7133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7135 #define $ac_func innocuous_$ac_func
7136
7137 /* System header to define __stub macros and hopefully few prototypes,
7138     which can conflict with char $ac_func (); below.
7139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7140     <limits.h> exists even on freestanding compilers.  */
7141
7142 #ifdef __STDC__
7143 # include <limits.h>
7144 #else
7145 # include <assert.h>
7146 #endif
7147
7148 #undef $ac_func
7149
7150 /* Override any GCC internal prototype to avoid an error.
7151    Use char because int might match the return type of a GCC
7152    builtin and then its argument prototype would still apply.  */
7153 #ifdef __cplusplus
7154 extern "C"
7155 #endif
7156 char $ac_func ();
7157 /* The GNU C library defines this for functions which it implements
7158     to always fail with ENOSYS.  Some functions are actually named
7159     something starting with __ and the normal name is an alias.  */
7160 #if defined __stub_$ac_func || defined __stub___$ac_func
7161 choke me
7162 #endif
7163
7164 int
7165 main ()
7166 {
7167 return $ac_func ();
7168   ;
7169   return 0;
7170 }
7171 _ACEOF
7172 rm -f conftest.$ac_objext conftest$ac_exeext
7173 if { (ac_try="$ac_link"
7174 case "(($ac_try" in
7175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176   *) ac_try_echo=$ac_try;;
7177 esac
7178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7179   (eval "$ac_link") 2>conftest.er1
7180   ac_status=$?
7181   grep -v '^ *+' conftest.er1 >conftest.err
7182   rm -f conftest.er1
7183   cat conftest.err >&5
7184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185   (exit $ac_status); } && {
7186          test -z "$ac_c_werror_flag" ||
7187          test ! -s conftest.err
7188        } && test -s conftest$ac_exeext &&
7189        $as_test_x conftest$ac_exeext; then
7190   eval "$as_ac_var=yes"
7191 else
7192   echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7194
7195         eval "$as_ac_var=no"
7196 fi
7197
7198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7199       conftest$ac_exeext conftest.$ac_ext
7200 fi
7201 ac_res=`eval echo '${'$as_ac_var'}'`
7202                { echo "$as_me:$LINENO: result: $ac_res" >&5
7203 echo "${ECHO_T}$ac_res" >&6; }
7204 if test `eval echo '${'$as_ac_var'}'` = yes; then
7205   cat >>confdefs.h <<_ACEOF
7206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7207 _ACEOF
7208
7209 fi
7210 done
7211
7212
7213 ac_config_files="$ac_config_files Makefile src/Makefile"
7214
7215 cat >confcache <<\_ACEOF
7216 # This file is a shell script that caches the results of configure
7217 # tests run on this system so they can be shared between configure
7218 # scripts and configure runs, see configure's option --config-cache.
7219 # It is not useful on other systems.  If it contains results you don't
7220 # want to keep, you may remove or edit it.
7221 #
7222 # config.status only pays attention to the cache file if you give it
7223 # the --recheck option to rerun configure.
7224 #
7225 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7226 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7227 # following values.
7228
7229 _ACEOF
7230
7231 # The following way of writing the cache mishandles newlines in values,
7232 # but we know of no workaround that is simple, portable, and efficient.
7233 # So, we kill variables containing newlines.
7234 # Ultrix sh set writes to stderr and can't be redirected directly,
7235 # and sets the high bit in the cache file unless we assign to the vars.
7236 (
7237   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7238     eval ac_val=\$$ac_var
7239     case $ac_val in #(
7240     *${as_nl}*)
7241       case $ac_var in #(
7242       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7243 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7244       esac
7245       case $ac_var in #(
7246       _ | IFS | as_nl) ;; #(
7247       *) $as_unset $ac_var ;;
7248       esac ;;
7249     esac
7250   done
7251
7252   (set) 2>&1 |
7253     case $as_nl`(ac_space=' '; set) 2>&1` in #(
7254     *${as_nl}ac_space=\ *)
7255       # `set' does not quote correctly, so add quotes (double-quote
7256       # substitution turns \\\\ into \\, and sed turns \\ into \).
7257       sed -n \
7258         "s/'/'\\\\''/g;
7259           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7260       ;; #(
7261     *)
7262       # `set' quotes correctly as required by POSIX, so do not add quotes.
7263       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7264       ;;
7265     esac |
7266     sort
7267 ) |
7268   sed '
7269      /^ac_cv_env_/b end
7270      t clear
7271      :clear
7272      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7273      t end
7274      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7275      :end' >>confcache
7276 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7277   if test -w "$cache_file"; then
7278     test "x$cache_file" != "x/dev/null" &&
7279       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7280 echo "$as_me: updating cache $cache_file" >&6;}
7281     cat confcache >$cache_file
7282   else
7283     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7284 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7285   fi
7286 fi
7287 rm -f confcache
7288
7289 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7290 # Let make expand exec_prefix.
7291 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7292
7293 DEFS=-DHAVE_CONFIG_H
7294
7295 ac_libobjs=
7296 ac_ltlibobjs=
7297 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7298   # 1. Remove the extension, and $U if already installed.
7299   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7300   ac_i=`echo "$ac_i" | sed "$ac_script"`
7301   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7302   #    will be set to the directory where LIBOBJS objects are built.
7303   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7304   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7305 done
7306 LIBOBJS=$ac_libobjs
7307
7308 LTLIBOBJS=$ac_ltlibobjs
7309
7310
7311 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7312   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7313 Usually this means the macro was only invoked conditionally." >&5
7314 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7315 Usually this means the macro was only invoked conditionally." >&2;}
7316    { (exit 1); exit 1; }; }
7317 fi
7318 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7319   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
7320 Usually this means the macro was only invoked conditionally." >&5
7321 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
7322 Usually this means the macro was only invoked conditionally." >&2;}
7323    { (exit 1); exit 1; }; }
7324 fi
7325 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7326   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7327 Usually this means the macro was only invoked conditionally." >&5
7328 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7329 Usually this means the macro was only invoked conditionally." >&2;}
7330    { (exit 1); exit 1; }; }
7331 fi
7332
7333 : ${CONFIG_STATUS=./config.status}
7334 ac_clean_files_save=$ac_clean_files
7335 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7336 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7337 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7338 cat >$CONFIG_STATUS <<_ACEOF
7339 #! $SHELL
7340 # Generated by $as_me.
7341 # Run this file to recreate the current configuration.
7342 # Compiler output produced by configure, useful for debugging
7343 # configure, is in config.log if it exists.
7344
7345 debug=false
7346 ac_cs_recheck=false
7347 ac_cs_silent=false
7348 SHELL=\${CONFIG_SHELL-$SHELL}
7349 _ACEOF
7350
7351 cat >>$CONFIG_STATUS <<\_ACEOF
7352 ## --------------------- ##
7353 ## M4sh Initialization.  ##
7354 ## --------------------- ##
7355
7356 # Be more Bourne compatible
7357 DUALCASE=1; export DUALCASE # for MKS sh
7358 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7359   emulate sh
7360   NULLCMD=:
7361   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7362   # is contrary to our usage.  Disable this feature.
7363   alias -g '${1+"$@"}'='"$@"'
7364   setopt NO_GLOB_SUBST
7365 else
7366   case `(set -o) 2>/dev/null` in
7367   *posix*) set -o posix ;;
7368 esac
7369
7370 fi
7371
7372
7373
7374
7375 # PATH needs CR
7376 # Avoid depending upon Character Ranges.
7377 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7378 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7379 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7380 as_cr_digits='0123456789'
7381 as_cr_alnum=$as_cr_Letters$as_cr_digits
7382
7383 # The user is always right.
7384 if test "${PATH_SEPARATOR+set}" != set; then
7385   echo "#! /bin/sh" >conf$$.sh
7386   echo  "exit 0"   >>conf$$.sh
7387   chmod +x conf$$.sh
7388   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7389     PATH_SEPARATOR=';'
7390   else
7391     PATH_SEPARATOR=:
7392   fi
7393   rm -f conf$$.sh
7394 fi
7395
7396 # Support unset when possible.
7397 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7398   as_unset=unset
7399 else
7400   as_unset=false
7401 fi
7402
7403
7404 # IFS
7405 # We need space, tab and new line, in precisely that order.  Quoting is
7406 # there to prevent editors from complaining about space-tab.
7407 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7408 # splitting by setting IFS to empty value.)
7409 as_nl='
7410 '
7411 IFS=" ""        $as_nl"
7412
7413 # Find who we are.  Look in the path if we contain no directory separator.
7414 case $0 in
7415   *[\\/]* ) as_myself=$0 ;;
7416   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7418 do
7419   IFS=$as_save_IFS
7420   test -z "$as_dir" && as_dir=.
7421   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7422 done
7423 IFS=$as_save_IFS
7424
7425      ;;
7426 esac
7427 # We did not find ourselves, most probably we were run as `sh COMMAND'
7428 # in which case we are not to be found in the path.
7429 if test "x$as_myself" = x; then
7430   as_myself=$0
7431 fi
7432 if test ! -f "$as_myself"; then
7433   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7434   { (exit 1); exit 1; }
7435 fi
7436
7437 # Work around bugs in pre-3.0 UWIN ksh.
7438 for as_var in ENV MAIL MAILPATH
7439 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7440 done
7441 PS1='$ '
7442 PS2='> '
7443 PS4='+ '
7444
7445 # NLS nuisances.
7446 for as_var in \
7447   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7448   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7449   LC_TELEPHONE LC_TIME
7450 do
7451   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7452     eval $as_var=C; export $as_var
7453   else
7454     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7455   fi
7456 done
7457
7458 # Required to use basename.
7459 if expr a : '\(a\)' >/dev/null 2>&1 &&
7460    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7461   as_expr=expr
7462 else
7463   as_expr=false
7464 fi
7465
7466 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7467   as_basename=basename
7468 else
7469   as_basename=false
7470 fi
7471
7472
7473 # Name of the executable.
7474 as_me=`$as_basename -- "$0" ||
7475 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7476          X"$0" : 'X\(//\)$' \| \
7477          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7478 echo X/"$0" |
7479     sed '/^.*\/\([^/][^/]*\)\/*$/{
7480             s//\1/
7481             q
7482           }
7483           /^X\/\(\/\/\)$/{
7484             s//\1/
7485             q
7486           }
7487           /^X\/\(\/\).*/{
7488             s//\1/
7489             q
7490           }
7491           s/.*/./; q'`
7492
7493 # CDPATH.
7494 $as_unset CDPATH
7495
7496
7497
7498   as_lineno_1=$LINENO
7499   as_lineno_2=$LINENO
7500   test "x$as_lineno_1" != "x$as_lineno_2" &&
7501   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7502
7503   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7504   # uniformly replaced by the line number.  The first 'sed' inserts a
7505   # line-number line after each line using $LINENO; the second 'sed'
7506   # does the real work.  The second script uses 'N' to pair each
7507   # line-number line with the line containing $LINENO, and appends
7508   # trailing '-' during substitution so that $LINENO is not a special
7509   # case at line end.
7510   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7511   # scripts with optimization help from Paolo Bonzini.  Blame Lee
7512   # E. McMahon (1931-1989) for sed's syntax.  :-)
7513   sed -n '
7514     p
7515     /[$]LINENO/=
7516   ' <$as_myself |
7517     sed '
7518       s/[$]LINENO.*/&-/
7519       t lineno
7520       b
7521       :lineno
7522       N
7523       :loop
7524       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7525       t loop
7526       s/-\n.*//
7527     ' >$as_me.lineno &&
7528   chmod +x "$as_me.lineno" ||
7529     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7530    { (exit 1); exit 1; }; }
7531
7532   # Don't try to exec as it changes $[0], causing all sort of problems
7533   # (the dirname of $[0] is not the place where we might find the
7534   # original and so on.  Autoconf is especially sensitive to this).
7535   . "./$as_me.lineno"
7536   # Exit status is that of the last command.
7537   exit
7538 }
7539
7540
7541 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7542   as_dirname=dirname
7543 else
7544   as_dirname=false
7545 fi
7546
7547 ECHO_C= ECHO_N= ECHO_T=
7548 case `echo -n x` in
7549 -n*)
7550   case `echo 'x\c'` in
7551   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7552   *)   ECHO_C='\c';;
7553   esac;;
7554 *)
7555   ECHO_N='-n';;
7556 esac
7557
7558 if expr a : '\(a\)' >/dev/null 2>&1 &&
7559    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7560   as_expr=expr
7561 else
7562   as_expr=false
7563 fi
7564
7565 rm -f conf$$ conf$$.exe conf$$.file
7566 if test -d conf$$.dir; then
7567   rm -f conf$$.dir/conf$$.file
7568 else
7569   rm -f conf$$.dir
7570   mkdir conf$$.dir
7571 fi
7572 echo >conf$$.file
7573 if ln -s conf$$.file conf$$ 2>/dev/null; then
7574   as_ln_s='ln -s'
7575   # ... but there are two gotchas:
7576   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7577   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7578   # In both cases, we have to default to `cp -p'.
7579   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7580     as_ln_s='cp -p'
7581 elif ln conf$$.file conf$$ 2>/dev/null; then
7582   as_ln_s=ln
7583 else
7584   as_ln_s='cp -p'
7585 fi
7586 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7587 rmdir conf$$.dir 2>/dev/null
7588
7589 if mkdir -p . 2>/dev/null; then
7590   as_mkdir_p=:
7591 else
7592   test -d ./-p && rmdir ./-p
7593   as_mkdir_p=false
7594 fi
7595
7596 if test -x / >/dev/null 2>&1; then
7597   as_test_x='test -x'
7598 else
7599   if ls -dL / >/dev/null 2>&1; then
7600     as_ls_L_option=L
7601   else
7602     as_ls_L_option=
7603   fi
7604   as_test_x='
7605     eval sh -c '\''
7606       if test -d "$1"; then
7607         test -d "$1/.";
7608       else
7609         case $1 in
7610         -*)set "./$1";;
7611         esac;
7612         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7613         ???[sx]*):;;*)false;;esac;fi
7614     '\'' sh
7615   '
7616 fi
7617 as_executable_p=$as_test_x
7618
7619 # Sed expression to map a string onto a valid CPP name.
7620 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7621
7622 # Sed expression to map a string onto a valid variable name.
7623 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7624
7625
7626 exec 6>&1
7627
7628 # Save the log message, to keep $[0] and so on meaningful, and to
7629 # report actual input values of CONFIG_FILES etc. instead of their
7630 # values after options handling.
7631 ac_log="
7632 This file was extended by stressapptest $as_me 1.0.3_autoconf, which was
7633 generated by GNU Autoconf 2.61.  Invocation command line was
7634
7635   CONFIG_FILES    = $CONFIG_FILES
7636   CONFIG_HEADERS  = $CONFIG_HEADERS
7637   CONFIG_LINKS    = $CONFIG_LINKS
7638   CONFIG_COMMANDS = $CONFIG_COMMANDS
7639   $ $0 $@
7640
7641 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7642 "
7643
7644 _ACEOF
7645
7646 cat >>$CONFIG_STATUS <<_ACEOF
7647 # Files that config.status was made for.
7648 config_files="$ac_config_files"
7649 config_headers="$ac_config_headers"
7650 config_commands="$ac_config_commands"
7651
7652 _ACEOF
7653
7654 cat >>$CONFIG_STATUS <<\_ACEOF
7655 ac_cs_usage="\
7656 \`$as_me' instantiates files from templates according to the
7657 current configuration.
7658
7659 Usage: $0 [OPTIONS] [FILE]...
7660
7661   -h, --help       print this help, then exit
7662   -V, --version    print version number and configuration settings, then exit
7663   -q, --quiet      do not print progress messages
7664   -d, --debug      don't remove temporary files
7665       --recheck    update $as_me by reconfiguring in the same conditions
7666   --file=FILE[:TEMPLATE]
7667                    instantiate the configuration file FILE
7668   --header=FILE[:TEMPLATE]
7669                    instantiate the configuration header FILE
7670
7671 Configuration files:
7672 $config_files
7673
7674 Configuration headers:
7675 $config_headers
7676
7677 Configuration commands:
7678 $config_commands
7679
7680 Report bugs to <bug-autoconf@gnu.org>."
7681
7682 _ACEOF
7683 cat >>$CONFIG_STATUS <<_ACEOF
7684 ac_cs_version="\\
7685 stressapptest config.status 1.0.3_autoconf
7686 configured by $0, generated by GNU Autoconf 2.61,
7687   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7688
7689 Copyright (C) 2006 Free Software Foundation, Inc.
7690 This config.status script is free software; the Free Software Foundation
7691 gives unlimited permission to copy, distribute and modify it."
7692
7693 ac_pwd='$ac_pwd'
7694 srcdir='$srcdir'
7695 INSTALL='$INSTALL'
7696 MKDIR_P='$MKDIR_P'
7697 _ACEOF
7698
7699 cat >>$CONFIG_STATUS <<\_ACEOF
7700 # If no file are specified by the user, then we need to provide default
7701 # value.  By we need to know if files were specified by the user.
7702 ac_need_defaults=:
7703 while test $# != 0
7704 do
7705   case $1 in
7706   --*=*)
7707     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7708     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7709     ac_shift=:
7710     ;;
7711   *)
7712     ac_option=$1
7713     ac_optarg=$2
7714     ac_shift=shift
7715     ;;
7716   esac
7717
7718   case $ac_option in
7719   # Handling of the options.
7720   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7721     ac_cs_recheck=: ;;
7722   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7723     echo "$ac_cs_version"; exit ;;
7724   --debug | --debu | --deb | --de | --d | -d )
7725     debug=: ;;
7726   --file | --fil | --fi | --f )
7727     $ac_shift
7728     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7729     ac_need_defaults=false;;
7730   --header | --heade | --head | --hea )
7731     $ac_shift
7732     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7733     ac_need_defaults=false;;
7734   --he | --h)
7735     # Conflict between --help and --header
7736     { echo "$as_me: error: ambiguous option: $1
7737 Try \`$0 --help' for more information." >&2
7738    { (exit 1); exit 1; }; };;
7739   --help | --hel | -h )
7740     echo "$ac_cs_usage"; exit ;;
7741   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7742   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7743     ac_cs_silent=: ;;
7744
7745   # This is an error.
7746   -*) { echo "$as_me: error: unrecognized option: $1
7747 Try \`$0 --help' for more information." >&2
7748    { (exit 1); exit 1; }; } ;;
7749
7750   *) ac_config_targets="$ac_config_targets $1"
7751      ac_need_defaults=false ;;
7752
7753   esac
7754   shift
7755 done
7756
7757 ac_configure_extra_args=
7758
7759 if $ac_cs_silent; then
7760   exec 6>/dev/null
7761   ac_configure_extra_args="$ac_configure_extra_args --silent"
7762 fi
7763
7764 _ACEOF
7765 cat >>$CONFIG_STATUS <<_ACEOF
7766 if \$ac_cs_recheck; then
7767   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7768   CONFIG_SHELL=$SHELL
7769   export CONFIG_SHELL
7770   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7771 fi
7772
7773 _ACEOF
7774 cat >>$CONFIG_STATUS <<\_ACEOF
7775 exec 5>>config.log
7776 {
7777   echo
7778   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7779 ## Running $as_me. ##
7780 _ASBOX
7781   echo "$ac_log"
7782 } >&5
7783
7784 _ACEOF
7785 cat >>$CONFIG_STATUS <<_ACEOF
7786 #
7787 # INIT-COMMANDS
7788 #
7789 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7790
7791 _ACEOF
7792
7793 cat >>$CONFIG_STATUS <<\_ACEOF
7794
7795 # Handling of arguments.
7796 for ac_config_target in $ac_config_targets
7797 do
7798   case $ac_config_target in
7799     "src/stressapptest_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/stressapptest_config.h" ;;
7800     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7801     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7802     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7803
7804   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7805 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7806    { (exit 1); exit 1; }; };;
7807   esac
7808 done
7809
7810
7811 # If the user did not use the arguments to specify the items to instantiate,
7812 # then the envvar interface is used.  Set only those that are not.
7813 # We use the long form for the default assignment because of an extremely
7814 # bizarre bug on SunOS 4.1.3.
7815 if $ac_need_defaults; then
7816   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7817   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7818   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7819 fi
7820
7821 # Have a temporary directory for convenience.  Make it in the build tree
7822 # simply because there is no reason against having it here, and in addition,
7823 # creating and moving files from /tmp can sometimes cause problems.
7824 # Hook for its removal unless debugging.
7825 # Note that there is a small window in which the directory will not be cleaned:
7826 # after its creation but before its name has been assigned to `$tmp'.
7827 $debug ||
7828 {
7829   tmp=
7830   trap 'exit_status=$?
7831   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7832 ' 0
7833   trap '{ (exit 1); exit 1; }' 1 2 13 15
7834 }
7835 # Create a (secure) tmp directory for tmp files.
7836
7837 {
7838   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7839   test -n "$tmp" && test -d "$tmp"
7840 }  ||
7841 {
7842   tmp=./conf$$-$RANDOM
7843   (umask 077 && mkdir "$tmp")
7844 } ||
7845 {
7846    echo "$me: cannot create a temporary directory in ." >&2
7847    { (exit 1); exit 1; }
7848 }
7849
7850 #
7851 # Set up the sed scripts for CONFIG_FILES section.
7852 #
7853
7854 # No need to generate the scripts if there are no CONFIG_FILES.
7855 # This happens for instance when ./config.status config.h
7856 if test -n "$CONFIG_FILES"; then
7857
7858 _ACEOF
7859
7860
7861
7862 ac_delim='%!_!# '
7863 for ac_last_try in false false false false false :; do
7864   cat >conf$$subs.sed <<_ACEOF
7865 SHELL!$SHELL$ac_delim
7866 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7867 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7868 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7869 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7870 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7871 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7872 exec_prefix!$exec_prefix$ac_delim
7873 prefix!$prefix$ac_delim
7874 program_transform_name!$program_transform_name$ac_delim
7875 bindir!$bindir$ac_delim
7876 sbindir!$sbindir$ac_delim
7877 libexecdir!$libexecdir$ac_delim
7878 datarootdir!$datarootdir$ac_delim
7879 datadir!$datadir$ac_delim
7880 sysconfdir!$sysconfdir$ac_delim
7881 sharedstatedir!$sharedstatedir$ac_delim
7882 localstatedir!$localstatedir$ac_delim
7883 includedir!$includedir$ac_delim
7884 oldincludedir!$oldincludedir$ac_delim
7885 docdir!$docdir$ac_delim
7886 infodir!$infodir$ac_delim
7887 htmldir!$htmldir$ac_delim
7888 dvidir!$dvidir$ac_delim
7889 pdfdir!$pdfdir$ac_delim
7890 psdir!$psdir$ac_delim
7891 libdir!$libdir$ac_delim
7892 localedir!$localedir$ac_delim
7893 mandir!$mandir$ac_delim
7894 DEFS!$DEFS$ac_delim
7895 ECHO_C!$ECHO_C$ac_delim
7896 ECHO_N!$ECHO_N$ac_delim
7897 ECHO_T!$ECHO_T$ac_delim
7898 LIBS!$LIBS$ac_delim
7899 build_alias!$build_alias$ac_delim
7900 host_alias!$host_alias$ac_delim
7901 target_alias!$target_alias$ac_delim
7902 build!$build$ac_delim
7903 build_cpu!$build_cpu$ac_delim
7904 build_vendor!$build_vendor$ac_delim
7905 build_os!$build_os$ac_delim
7906 host!$host$ac_delim
7907 host_cpu!$host_cpu$ac_delim
7908 host_vendor!$host_vendor$ac_delim
7909 host_os!$host_os$ac_delim
7910 target!$target$ac_delim
7911 target_cpu!$target_cpu$ac_delim
7912 target_vendor!$target_vendor$ac_delim
7913 target_os!$target_os$ac_delim
7914 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7915 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7916 INSTALL_DATA!$INSTALL_DATA$ac_delim
7917 am__isrc!$am__isrc$ac_delim
7918 CYGPATH_W!$CYGPATH_W$ac_delim
7919 PACKAGE!$PACKAGE$ac_delim
7920 VERSION!$VERSION$ac_delim
7921 ACLOCAL!$ACLOCAL$ac_delim
7922 AUTOCONF!$AUTOCONF$ac_delim
7923 AUTOMAKE!$AUTOMAKE$ac_delim
7924 AUTOHEADER!$AUTOHEADER$ac_delim
7925 MAKEINFO!$MAKEINFO$ac_delim
7926 install_sh!$install_sh$ac_delim
7927 STRIP!$STRIP$ac_delim
7928 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
7929 mkdir_p!$mkdir_p$ac_delim
7930 AWK!$AWK$ac_delim
7931 SET_MAKE!$SET_MAKE$ac_delim
7932 am__leading_dot!$am__leading_dot$ac_delim
7933 AMTAR!$AMTAR$ac_delim
7934 am__tar!$am__tar$ac_delim
7935 am__untar!$am__untar$ac_delim
7936 CXX!$CXX$ac_delim
7937 CXXFLAGS!$CXXFLAGS$ac_delim
7938 LDFLAGS!$LDFLAGS$ac_delim
7939 CPPFLAGS!$CPPFLAGS$ac_delim
7940 ac_ct_CXX!$ac_ct_CXX$ac_delim
7941 EXEEXT!$EXEEXT$ac_delim
7942 OBJEXT!$OBJEXT$ac_delim
7943 DEPDIR!$DEPDIR$ac_delim
7944 am__include!$am__include$ac_delim
7945 am__quote!$am__quote$ac_delim
7946 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
7947 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
7948 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
7949 CXXDEPMODE!$CXXDEPMODE$ac_delim
7950 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
7951 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
7952 CC!$CC$ac_delim
7953 CFLAGS!$CFLAGS$ac_delim
7954 ac_ct_CC!$ac_ct_CC$ac_delim
7955 CCDEPMODE!$CCDEPMODE$ac_delim
7956 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
7957 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
7958 CPP!$CPP$ac_delim
7959 GREP!$GREP$ac_delim
7960 EGREP!$EGREP$ac_delim
7961 LIBOBJS!$LIBOBJS$ac_delim
7962 _ACEOF
7963
7964   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
7965     break
7966   elif $ac_last_try; then
7967     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7968 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7969    { (exit 1); exit 1; }; }
7970   else
7971     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7972   fi
7973 done
7974
7975 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7976 if test -n "$ac_eof"; then
7977   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7978   ac_eof=`expr $ac_eof + 1`
7979 fi
7980
7981 cat >>$CONFIG_STATUS <<_ACEOF
7982 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7983 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7984 _ACEOF
7985 sed '
7986 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7987 s/^/s,@/; s/!/@,|#_!!_#|/
7988 :n
7989 t n
7990 s/'"$ac_delim"'$/,g/; t
7991 s/$/\\/; p
7992 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7993 ' >>$CONFIG_STATUS <conf$$subs.sed
7994 rm -f conf$$subs.sed
7995 cat >>$CONFIG_STATUS <<_ACEOF
7996 CEOF$ac_eof
7997 _ACEOF
7998
7999
8000 ac_delim='%!_!# '
8001 for ac_last_try in false false false false false :; do
8002   cat >conf$$subs.sed <<_ACEOF
8003 LTLIBOBJS!$LTLIBOBJS$ac_delim
8004 _ACEOF
8005
8006   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 1; then
8007     break
8008   elif $ac_last_try; then
8009     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8010 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8011    { (exit 1); exit 1; }; }
8012   else
8013     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8014   fi
8015 done
8016
8017 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8018 if test -n "$ac_eof"; then
8019   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8020   ac_eof=`expr $ac_eof + 1`
8021 fi
8022
8023 cat >>$CONFIG_STATUS <<_ACEOF
8024 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
8025 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8026 _ACEOF
8027 sed '
8028 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8029 s/^/s,@/; s/!/@,|#_!!_#|/
8030 :n
8031 t n
8032 s/'"$ac_delim"'$/,g/; t
8033 s/$/\\/; p
8034 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8035 ' >>$CONFIG_STATUS <conf$$subs.sed
8036 rm -f conf$$subs.sed
8037 cat >>$CONFIG_STATUS <<_ACEOF
8038 :end
8039 s/|#_!!_#|//g
8040 CEOF$ac_eof
8041 _ACEOF
8042
8043
8044 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8045 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8046 # trailing colons and then remove the whole line if VPATH becomes empty
8047 # (actually we leave an empty line to preserve line numbers).
8048 if test "x$srcdir" = x.; then
8049   ac_vpsub='/^[  ]*VPATH[        ]*=/{
8050 s/:*\$(srcdir):*/:/
8051 s/:*\${srcdir}:*/:/
8052 s/:*@srcdir@:*/:/
8053 s/^\([^=]*=[     ]*\):*/\1/
8054 s/:*$//
8055 s/^[^=]*=[       ]*$//
8056 }'
8057 fi
8058
8059 cat >>$CONFIG_STATUS <<\_ACEOF
8060 fi # test -n "$CONFIG_FILES"
8061
8062
8063 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
8064 do
8065   case $ac_tag in
8066   :[FHLC]) ac_mode=$ac_tag; continue;;
8067   esac
8068   case $ac_mode$ac_tag in
8069   :[FHL]*:*);;
8070   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8071 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8072    { (exit 1); exit 1; }; };;
8073   :[FH]-) ac_tag=-:-;;
8074   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8075   esac
8076   ac_save_IFS=$IFS
8077   IFS=:
8078   set x $ac_tag
8079   IFS=$ac_save_IFS
8080   shift
8081   ac_file=$1
8082   shift
8083
8084   case $ac_mode in
8085   :L) ac_source=$1;;
8086   :[FH])
8087     ac_file_inputs=
8088     for ac_f
8089     do
8090       case $ac_f in
8091       -) ac_f="$tmp/stdin";;
8092       *) # Look for the file first in the build tree, then in the source tree
8093          # (if the path is not absolute).  The absolute path cannot be DOS-style,
8094          # because $ac_f cannot contain `:'.
8095          test -f "$ac_f" ||
8096            case $ac_f in
8097            [\\/$]*) false;;
8098            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8099            esac ||
8100            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8101 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8102    { (exit 1); exit 1; }; };;
8103       esac
8104       ac_file_inputs="$ac_file_inputs $ac_f"
8105     done
8106
8107     # Let's still pretend it is `configure' which instantiates (i.e., don't
8108     # use $as_me), people would be surprised to read:
8109     #    /* config.h.  Generated by config.status.  */
8110     configure_input="Generated from "`IFS=:
8111           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8112     if test x"$ac_file" != x-; then
8113       configure_input="$ac_file.  $configure_input"
8114       { echo "$as_me:$LINENO: creating $ac_file" >&5
8115 echo "$as_me: creating $ac_file" >&6;}
8116     fi
8117
8118     case $ac_tag in
8119     *:-:* | *:-) cat >"$tmp/stdin";;
8120     esac
8121     ;;
8122   esac
8123
8124   ac_dir=`$as_dirname -- "$ac_file" ||
8125 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8126          X"$ac_file" : 'X\(//\)[^/]' \| \
8127          X"$ac_file" : 'X\(//\)$' \| \
8128          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8129 echo X"$ac_file" |
8130     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8131             s//\1/
8132             q
8133           }
8134           /^X\(\/\/\)[^/].*/{
8135             s//\1/
8136             q
8137           }
8138           /^X\(\/\/\)$/{
8139             s//\1/
8140             q
8141           }
8142           /^X\(\/\).*/{
8143             s//\1/
8144             q
8145           }
8146           s/.*/./; q'`
8147   { as_dir="$ac_dir"
8148   case $as_dir in #(
8149   -*) as_dir=./$as_dir;;
8150   esac
8151   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8152     as_dirs=
8153     while :; do
8154       case $as_dir in #(
8155       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8156       *) as_qdir=$as_dir;;
8157       esac
8158       as_dirs="'$as_qdir' $as_dirs"
8159       as_dir=`$as_dirname -- "$as_dir" ||
8160 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8161          X"$as_dir" : 'X\(//\)[^/]' \| \
8162          X"$as_dir" : 'X\(//\)$' \| \
8163          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8164 echo X"$as_dir" |
8165     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8166             s//\1/
8167             q
8168           }
8169           /^X\(\/\/\)[^/].*/{
8170             s//\1/
8171             q
8172           }
8173           /^X\(\/\/\)$/{
8174             s//\1/
8175             q
8176           }
8177           /^X\(\/\).*/{
8178             s//\1/
8179             q
8180           }
8181           s/.*/./; q'`
8182       test -d "$as_dir" && break
8183     done
8184     test -z "$as_dirs" || eval "mkdir $as_dirs"
8185   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8186 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8187    { (exit 1); exit 1; }; }; }
8188   ac_builddir=.
8189
8190 case "$ac_dir" in
8191 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8192 *)
8193   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8194   # A ".." for each directory in $ac_dir_suffix.
8195   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8196   case $ac_top_builddir_sub in
8197   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8198   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8199   esac ;;
8200 esac
8201 ac_abs_top_builddir=$ac_pwd
8202 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8203 # for backward compatibility:
8204 ac_top_builddir=$ac_top_build_prefix
8205
8206 case $srcdir in
8207   .)  # We are building in place.
8208     ac_srcdir=.
8209     ac_top_srcdir=$ac_top_builddir_sub
8210     ac_abs_top_srcdir=$ac_pwd ;;
8211   [\\/]* | ?:[\\/]* )  # Absolute name.
8212     ac_srcdir=$srcdir$ac_dir_suffix;
8213     ac_top_srcdir=$srcdir
8214     ac_abs_top_srcdir=$srcdir ;;
8215   *) # Relative name.
8216     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8217     ac_top_srcdir=$ac_top_build_prefix$srcdir
8218     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8219 esac
8220 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8221
8222
8223   case $ac_mode in
8224   :F)
8225   #
8226   # CONFIG_FILE
8227   #
8228
8229   case $INSTALL in
8230   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8231   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8232   esac
8233   ac_MKDIR_P=$MKDIR_P
8234   case $MKDIR_P in
8235   [\\/$]* | ?:[\\/]* ) ;;
8236   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8237   esac
8238 _ACEOF
8239
8240 cat >>$CONFIG_STATUS <<\_ACEOF
8241 # If the template does not know about datarootdir, expand it.
8242 # FIXME: This hack should be removed a few years after 2.60.
8243 ac_datarootdir_hack=; ac_datarootdir_seen=
8244
8245 case `sed -n '/datarootdir/ {
8246   p
8247   q
8248 }
8249 /@datadir@/p
8250 /@docdir@/p
8251 /@infodir@/p
8252 /@localedir@/p
8253 /@mandir@/p
8254 ' $ac_file_inputs` in
8255 *datarootdir*) ac_datarootdir_seen=yes;;
8256 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8257   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8258 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8259 _ACEOF
8260 cat >>$CONFIG_STATUS <<_ACEOF
8261   ac_datarootdir_hack='
8262   s&@datadir@&$datadir&g
8263   s&@docdir@&$docdir&g
8264   s&@infodir@&$infodir&g
8265   s&@localedir@&$localedir&g
8266   s&@mandir@&$mandir&g
8267     s&\\\${datarootdir}&$datarootdir&g' ;;
8268 esac
8269 _ACEOF
8270
8271 # Neutralize VPATH when `$srcdir' = `.'.
8272 # Shell code in configure.ac might set extrasub.
8273 # FIXME: do we really want to maintain this feature?
8274 cat >>$CONFIG_STATUS <<_ACEOF
8275   sed "$ac_vpsub
8276 $extrasub
8277 _ACEOF
8278 cat >>$CONFIG_STATUS <<\_ACEOF
8279 :t
8280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8281 s&@configure_input@&$configure_input&;t t
8282 s&@top_builddir@&$ac_top_builddir_sub&;t t
8283 s&@srcdir@&$ac_srcdir&;t t
8284 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8285 s&@top_srcdir@&$ac_top_srcdir&;t t
8286 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8287 s&@builddir@&$ac_builddir&;t t
8288 s&@abs_builddir@&$ac_abs_builddir&;t t
8289 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8290 s&@INSTALL@&$ac_INSTALL&;t t
8291 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8292 $ac_datarootdir_hack
8293 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
8294
8295 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8296   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8297   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8298   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8299 which seems to be undefined.  Please make sure it is defined." >&5
8300 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8301 which seems to be undefined.  Please make sure it is defined." >&2;}
8302
8303   rm -f "$tmp/stdin"
8304   case $ac_file in
8305   -) cat "$tmp/out"; rm -f "$tmp/out";;
8306   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8307   esac
8308  ;;
8309   :H)
8310   #
8311   # CONFIG_HEADER
8312   #
8313 _ACEOF
8314
8315 # Transform confdefs.h into a sed script `conftest.defines', that
8316 # substitutes the proper values into config.h.in to produce config.h.
8317 rm -f conftest.defines conftest.tail
8318 # First, append a space to every undef/define line, to ease matching.
8319 echo 's/$/ /' >conftest.defines
8320 # Then, protect against being on the right side of a sed subst, or in
8321 # an unquoted here document, in config.status.  If some macros were
8322 # called several times there might be several #defines for the same
8323 # symbol, which is useless.  But do not sort them, since the last
8324 # AC_DEFINE must be honored.
8325 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8326 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8327 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8328 # PARAMS is the parameter list in the macro definition--in most cases, it's
8329 # just an empty string.
8330 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
8331 ac_dB='\\)[      (].*,\\1define\\2'
8332 ac_dC=' '
8333 ac_dD=' ,'
8334
8335 uniq confdefs.h |
8336   sed -n '
8337         t rset
8338         :rset
8339         s/^[     ]*#[    ]*define[       ][      ]*//
8340         t ok
8341         d
8342         :ok
8343         s/[\\&,]/\\&/g
8344         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8345         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8346   ' >>conftest.defines
8347
8348 # Remove the space that was appended to ease matching.
8349 # Then replace #undef with comments.  This is necessary, for
8350 # example, in the case of _POSIX_SOURCE, which is predefined and required
8351 # on some systems where configure will not decide to define it.
8352 # (The regexp can be short, since the line contains either #define or #undef.)
8353 echo 's/ $//
8354 s,^[     #]*u.*,/* & */,' >>conftest.defines
8355
8356 # Break up conftest.defines:
8357 ac_max_sed_lines=50
8358
8359 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8360 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8361 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8362 # et cetera.
8363 ac_in='$ac_file_inputs'
8364 ac_out='"$tmp/out1"'
8365 ac_nxt='"$tmp/out2"'
8366
8367 while :
8368 do
8369   # Write a here document:
8370     cat >>$CONFIG_STATUS <<_ACEOF
8371     # First, check the format of the line:
8372     cat >"\$tmp/defines.sed" <<\\CEOF
8373 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
8374 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
8375 b
8376 :def
8377 _ACEOF
8378   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8379   echo 'CEOF
8380     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8381   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8382   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8383   grep . conftest.tail >/dev/null || break
8384   rm -f conftest.defines
8385   mv conftest.tail conftest.defines
8386 done
8387 rm -f conftest.defines conftest.tail
8388
8389 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8390 cat >>$CONFIG_STATUS <<\_ACEOF
8391   if test x"$ac_file" != x-; then
8392     echo "/* $configure_input  */" >"$tmp/config.h"
8393     cat "$ac_result" >>"$tmp/config.h"
8394     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8395       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8396 echo "$as_me: $ac_file is unchanged" >&6;}
8397     else
8398       rm -f $ac_file
8399       mv "$tmp/config.h" $ac_file
8400     fi
8401   else
8402     echo "/* $configure_input  */"
8403     cat "$ac_result"
8404   fi
8405   rm -f "$tmp/out12"
8406 # Compute $ac_file's index in $config_headers.
8407 _am_arg=$ac_file
8408 _am_stamp_count=1
8409 for _am_header in $config_headers :; do
8410   case $_am_header in
8411     $_am_arg | $_am_arg:* )
8412       break ;;
8413     * )
8414       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8415   esac
8416 done
8417 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8418 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8419          X"$_am_arg" : 'X\(//\)[^/]' \| \
8420          X"$_am_arg" : 'X\(//\)$' \| \
8421          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8422 echo X"$_am_arg" |
8423     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8424             s//\1/
8425             q
8426           }
8427           /^X\(\/\/\)[^/].*/{
8428             s//\1/
8429             q
8430           }
8431           /^X\(\/\/\)$/{
8432             s//\1/
8433             q
8434           }
8435           /^X\(\/\).*/{
8436             s//\1/
8437             q
8438           }
8439           s/.*/./; q'`/stamp-h$_am_stamp_count
8440  ;;
8441
8442   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
8443 echo "$as_me: executing $ac_file commands" >&6;}
8444  ;;
8445   esac
8446
8447
8448   case $ac_file$ac_mode in
8449     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8450   # Strip MF so we end up with the name of the file.
8451   mf=`echo "$mf" | sed -e 's/:.*$//'`
8452   # Check whether this is an Automake generated Makefile or not.
8453   # We used to match only the files named `Makefile.in', but
8454   # some people rename them; so instead we look at the file content.
8455   # Grep'ing the first line is not enough: some people post-process
8456   # each Makefile.in and add a new line on top of each file to say so.
8457   # Grep'ing the whole file is not good either: AIX grep has a line
8458   # limit of 2048, but all sed's we know have understand at least 4000.
8459   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8460     dirpart=`$as_dirname -- "$mf" ||
8461 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8462          X"$mf" : 'X\(//\)[^/]' \| \
8463          X"$mf" : 'X\(//\)$' \| \
8464          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8465 echo X"$mf" |
8466     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8467             s//\1/
8468             q
8469           }
8470           /^X\(\/\/\)[^/].*/{
8471             s//\1/
8472             q
8473           }
8474           /^X\(\/\/\)$/{
8475             s//\1/
8476             q
8477           }
8478           /^X\(\/\).*/{
8479             s//\1/
8480             q
8481           }
8482           s/.*/./; q'`
8483   else
8484     continue
8485   fi
8486   # Extract the definition of DEPDIR, am__include, and am__quote
8487   # from the Makefile without running `make'.
8488   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8489   test -z "$DEPDIR" && continue
8490   am__include=`sed -n 's/^am__include = //p' < "$mf"`
8491   test -z "am__include" && continue
8492   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8493   # When using ansi2knr, U may be empty or an underscore; expand it
8494   U=`sed -n 's/^U = //p' < "$mf"`
8495   # Find all dependency output files, they are included files with
8496   # $(DEPDIR) in their names.  We invoke sed twice because it is the
8497   # simplest approach to changing $(DEPDIR) to its actual value in the
8498   # expansion.
8499   for file in `sed -n "
8500     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8501        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8502     # Make sure the directory exists.
8503     test -f "$dirpart/$file" && continue
8504     fdir=`$as_dirname -- "$file" ||
8505 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8506          X"$file" : 'X\(//\)[^/]' \| \
8507          X"$file" : 'X\(//\)$' \| \
8508          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8509 echo X"$file" |
8510     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8511             s//\1/
8512             q
8513           }
8514           /^X\(\/\/\)[^/].*/{
8515             s//\1/
8516             q
8517           }
8518           /^X\(\/\/\)$/{
8519             s//\1/
8520             q
8521           }
8522           /^X\(\/\).*/{
8523             s//\1/
8524             q
8525           }
8526           s/.*/./; q'`
8527     { as_dir=$dirpart/$fdir
8528   case $as_dir in #(
8529   -*) as_dir=./$as_dir;;
8530   esac
8531   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8532     as_dirs=
8533     while :; do
8534       case $as_dir in #(
8535       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8536       *) as_qdir=$as_dir;;
8537       esac
8538       as_dirs="'$as_qdir' $as_dirs"
8539       as_dir=`$as_dirname -- "$as_dir" ||
8540 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8541          X"$as_dir" : 'X\(//\)[^/]' \| \
8542          X"$as_dir" : 'X\(//\)$' \| \
8543          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8544 echo X"$as_dir" |
8545     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8546             s//\1/
8547             q
8548           }
8549           /^X\(\/\/\)[^/].*/{
8550             s//\1/
8551             q
8552           }
8553           /^X\(\/\/\)$/{
8554             s//\1/
8555             q
8556           }
8557           /^X\(\/\).*/{
8558             s//\1/
8559             q
8560           }
8561           s/.*/./; q'`
8562       test -d "$as_dir" && break
8563     done
8564     test -z "$as_dirs" || eval "mkdir $as_dirs"
8565   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8566 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8567    { (exit 1); exit 1; }; }; }
8568     # echo "creating $dirpart/$file"
8569     echo '# dummy' > "$dirpart/$file"
8570   done
8571 done
8572  ;;
8573
8574   esac
8575 done # for ac_tag
8576
8577
8578 { (exit 0); exit 0; }
8579 _ACEOF
8580 chmod +x $CONFIG_STATUS
8581 ac_clean_files=$ac_clean_files_save
8582
8583
8584 # configure is writing to config.log, and then calls config.status.
8585 # config.status does its own redirection, appending to config.log.
8586 # Unfortunately, on DOS this fails, as config.log is still kept open
8587 # by configure, so config.status won't be able to write to it; its
8588 # output is simply discarded.  So we exec the FD to /dev/null,
8589 # effectively closing config.log, so it can be properly (re)opened and
8590 # appended to by config.status.  When coming back to configure, we
8591 # need to make the FD available again.
8592 if test "$no_create" != yes; then
8593   ac_cs_success=:
8594   ac_config_status_args=
8595   test "$silent" = yes &&
8596     ac_config_status_args="$ac_config_status_args --quiet"
8597   exec 5>/dev/null
8598   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8599   exec 5>>config.log
8600   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8601   # would make configure fail if this is the last instruction.
8602   $ac_cs_success || { (exit 1); exit 1; }
8603 fi
8604