blob: 985b54c4b48ad5e0f533709ee7ccdc76bb5d6fae [file] [log] [blame]
menderico4861bb82009-09-29 00:31:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003# Generated by GNU Autoconf 2.65 for stressapptest 1.0.7_autoconf.
menderico4861bb82009-09-29 00:31:36 +00004#
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00005# Report bugs to <opensource@google.com>.
menderico4861bb82009-09-29 00:31:36 +00006#
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007#
menderico4861bb82009-09-29 00:31:36 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
nick.j.sanders00fa12e2014-08-04 21:04:06 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
nick.j.sanders3f2289d2011-11-11 00:34:37 +000011#
12#
menderico4861bb82009-09-29 00:31:36 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
nick.j.sanders3f2289d2011-11-11 00:34:37 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
menderico4861bb82009-09-29 00:31:36 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
nick.j.sanders3f2289d2011-11-11 00:34:37 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
menderico4861bb82009-09-29 00:31:36 +000022 emulate sh
23 NULLCMD=:
nick.j.sanders3f2289d2011-11-11 00:34:37 +000024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
menderico4861bb82009-09-29 00:31:36 +000025 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
nick.j.sanders3f2289d2011-11-11 00:34:37 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
menderico4861bb82009-09-29 00:31:36 +000034esac
menderico4861bb82009-09-29 00:31:36 +000035fi
36
37
nick.j.sanders3f2289d2011-11-11 00:34:37 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
menderico4861bb82009-09-29 00:31:36 +000075
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +000078 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
menderico4861bb82009-09-29 00:31:36 +000083fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
menderico4861bb82009-09-29 00:31:36 +000091IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
nick.j.sanders3f2289d2011-11-11 00:34:37 +000094case $0 in #((
menderico4861bb82009-09-29 00:31:36 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
menderico4861bb82009-09-29 00:31:36 +0000103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
menderico4861bb82009-09-29 00:31:36 +0000115fi
116
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
menderico4861bb82009-09-29 00:31:36 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
menderico4861bb82009-09-29 00:31:36 +0000134
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
nick.j.sanders00fa12e2014-08-04 21:04:06 +0000223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: opensource@google.com about your system, including any
235$0: error possibly output before this message. Then install
236$0: a modern shell, or manually run the script under such a
237$0: shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
nick.j.sanders00fa12e2014-08-04 21:04:06 +0000322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
nick.j.sanders00fa12e2014-08-04 21:04:06 +0000362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
nick.j.sanders00fa12e2014-08-04 21:04:06 +0000366# script with status $?, using 1 if that was 0.
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000367as_fn_error ()
368{
nick.j.sanders00fa12e2014-08-04 21:04:06 +0000369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000373 fi
nick.j.sanders00fa12e2014-08-04 21:04:06 +0000374 $as_echo "$as_me: error: $1" >&2
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000375 as_fn_exit $as_status
376} # as_fn_error
377
menderico4861bb82009-09-29 00:31:36 +0000378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
menderico4861bb82009-09-29 00:31:36 +0000396
menderico4861bb82009-09-29 00:31:36 +0000397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000401$as_echo X/"$0" |
menderico4861bb82009-09-29 00:31:36 +0000402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
menderico4861bb82009-09-29 00:31:36 +0000422
423
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
menderico4861bb82009-09-29 00:31:36 +0000429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
menderico4861bb82009-09-29 00:31:36 +0000446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
menderico4861bb82009-09-29 00:31:36 +0000455ECHO_C= ECHO_N= ECHO_T=
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000456case `echo -n x` in #(((((
menderico4861bb82009-09-29 00:31:36 +0000457-n*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000458 case `echo 'xy\c'` in
menderico4861bb82009-09-29 00:31:36 +0000459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
menderico4861bb82009-09-29 00:31:36 +0000463 esac;;
464*)
465 ECHO_N='-n';;
466esac
467
menderico4861bb82009-09-29 00:31:36 +0000468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000473 mkdir conf$$.dir 2>/dev/null
menderico4861bb82009-09-29 00:31:36 +0000474fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
menderico4861bb82009-09-29 00:31:36 +0000487 as_ln_s='cp -p'
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000488 fi
menderico4861bb82009-09-29 00:31:36 +0000489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000496 as_mkdir_p='mkdir -p "$as_dir"'
menderico4861bb82009-09-29 00:31:36 +0000497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000513 test -d "$1/.";
menderico4861bb82009-09-29 00:31:36 +0000514 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000515 case $1 in #(
516 -*)set "./$1";;
menderico4861bb82009-09-29 00:31:36 +0000517 esac;
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
menderico4861bb82009-09-29 00:31:36 +0000519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000532test -n "$DJDIR" || exec 7<&0 </dev/null
533exec 6>&1
menderico4861bb82009-09-29 00:31:36 +0000534
535# Name of the host.
nick.j.sanders00fa12e2014-08-04 21:04:06 +0000536# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
menderico4861bb82009-09-29 00:31:36 +0000537# so uname gets run too.
538ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540#
541# Initializations.
542#
543ac_default_prefix=/usr/local
544ac_clean_files=
545ac_config_libobj_dir=.
546LIBOBJS=
547cross_compiling=no
548subdirs=
549MFLAGS=
550MAKEFLAGS=
menderico4861bb82009-09-29 00:31:36 +0000551
552# Identity of this package.
553PACKAGE_NAME='stressapptest'
554PACKAGE_TARNAME='stressapptest'
nick.j.sanders318caaf2014-02-11 09:02:48 +0000555PACKAGE_VERSION='1.0.7_autoconf'
556PACKAGE_STRING='stressapptest 1.0.7_autoconf'
nick.j.sandersb4c2ce32009-10-27 05:56:42 +0000557PACKAGE_BUGREPORT='opensource@google.com'
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000558PACKAGE_URL=''
menderico4861bb82009-09-29 00:31:36 +0000559
560ac_unique_file="src/"
561# Factoring default headers for most tests.
562ac_includes_default="\
563#include <stdio.h>
564#ifdef HAVE_SYS_TYPES_H
565# include <sys/types.h>
566#endif
567#ifdef HAVE_SYS_STAT_H
568# include <sys/stat.h>
569#endif
570#ifdef STDC_HEADERS
571# include <stdlib.h>
572# include <stddef.h>
573#else
574# ifdef HAVE_STDLIB_H
575# include <stdlib.h>
576# endif
577#endif
578#ifdef HAVE_STRING_H
579# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580# include <memory.h>
581# endif
582# include <string.h>
583#endif
584#ifdef HAVE_STRINGS_H
585# include <strings.h>
586#endif
587#ifdef HAVE_INTTYPES_H
588# include <inttypes.h>
589#endif
590#ifdef HAVE_STDINT_H
591# include <stdint.h>
592#endif
593#ifdef HAVE_UNISTD_H
594# include <unistd.h>
595#endif"
596
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000597ac_subst_vars='am__EXEEXT_FALSE
598am__EXEEXT_TRUE
599LTLIBOBJS
menderico4861bb82009-09-29 00:31:36 +0000600LIBOBJS
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000601EGREP
602GREP
603CPP
604am__fastdepCC_FALSE
605am__fastdepCC_TRUE
606CCDEPMODE
607ac_ct_CC
608CFLAGS
609CC
610am__fastdepCXX_FALSE
611am__fastdepCXX_TRUE
612CXXDEPMODE
613AMDEPBACKSLASH
614AMDEP_FALSE
615AMDEP_TRUE
616am__quote
617am__include
618DEPDIR
619OBJEXT
620EXEEXT
621ac_ct_CXX
622CPPFLAGS
623LDFLAGS
624CXXFLAGS
625CXX
626am__untar
627am__tar
628AMTAR
629am__leading_dot
630SET_MAKE
631AWK
632mkdir_p
633MKDIR_P
634INSTALL_STRIP_PROGRAM
635STRIP
636install_sh
637MAKEINFO
638AUTOHEADER
639AUTOMAKE
640AUTOCONF
641ACLOCAL
642VERSION
643PACKAGE
644CYGPATH_W
645am__isrc
646INSTALL_DATA
647INSTALL_SCRIPT
648INSTALL_PROGRAM
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000649host_os
650host_vendor
651host_cpu
652host
653build_os
654build_vendor
655build_cpu
656build
657target_alias
658host_alias
659build_alias
660LIBS
661ECHO_T
662ECHO_N
663ECHO_C
664DEFS
665mandir
666localedir
667libdir
668psdir
669pdfdir
670dvidir
671htmldir
672infodir
673docdir
674oldincludedir
675includedir
676localstatedir
677sharedstatedir
678sysconfdir
679datadir
680datarootdir
681libexecdir
682sbindir
683bindir
684program_transform_name
685prefix
686exec_prefix
687PACKAGE_URL
688PACKAGE_BUGREPORT
689PACKAGE_STRING
690PACKAGE_VERSION
691PACKAGE_TARNAME
692PACKAGE_NAME
693PATH_SEPARATOR
694SHELL'
menderico4861bb82009-09-29 00:31:36 +0000695ac_subst_files=''
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000696ac_user_opts='
697enable_option_checking
698with_static
699enable_dependency_tracking
nick.j.sanders7a6b2522014-02-11 08:53:31 +0000700enable_default_optimizations
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000701'
menderico4861bb82009-09-29 00:31:36 +0000702 ac_precious_vars='build_alias
703host_alias
704target_alias
705CXX
706CXXFLAGS
707LDFLAGS
708LIBS
709CPPFLAGS
710CCC
711CC
712CFLAGS
713CPP'
714
715
716# Initialize some variables set by options.
717ac_init_help=
718ac_init_version=false
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000719ac_unrecognized_opts=
720ac_unrecognized_sep=
menderico4861bb82009-09-29 00:31:36 +0000721# The variables have the same names as the options, with
722# dashes changed to underlines.
723cache_file=/dev/null
724exec_prefix=NONE
725no_create=
726no_recursion=
727prefix=NONE
728program_prefix=NONE
729program_suffix=NONE
730program_transform_name=s,x,x,
731silent=
732site=
733srcdir=
734verbose=
735x_includes=NONE
736x_libraries=NONE
737
738# Installation directory options.
739# These are left unexpanded so users can "make install exec_prefix=/foo"
740# and all the variables that are supposed to be based on exec_prefix
741# by default will actually change.
742# Use braces instead of parens because sh, perl, etc. also accept them.
743# (The list follows the same order as the GNU Coding Standards.)
744bindir='${exec_prefix}/bin'
745sbindir='${exec_prefix}/sbin'
746libexecdir='${exec_prefix}/libexec'
747datarootdir='${prefix}/share'
748datadir='${datarootdir}'
749sysconfdir='${prefix}/etc'
750sharedstatedir='${prefix}/com'
751localstatedir='${prefix}/var'
752includedir='${prefix}/include'
753oldincludedir='/usr/include'
754docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
755infodir='${datarootdir}/info'
756htmldir='${docdir}'
757dvidir='${docdir}'
758pdfdir='${docdir}'
759psdir='${docdir}'
760libdir='${exec_prefix}/lib'
761localedir='${datarootdir}/locale'
762mandir='${datarootdir}/man'
763
764ac_prev=
765ac_dashdash=
766for ac_option
767do
768 # If the previous option needs an argument, assign it.
769 if test -n "$ac_prev"; then
770 eval $ac_prev=\$ac_option
771 ac_prev=
772 continue
773 fi
774
775 case $ac_option in
nick.j.sanders00fa12e2014-08-04 21:04:06 +0000776 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
777 *) ac_optarg=yes ;;
menderico4861bb82009-09-29 00:31:36 +0000778 esac
779
780 # Accept the important Cygnus configure options, so we can diagnose typos.
781
782 case $ac_dashdash$ac_option in
783 --)
784 ac_dashdash=yes ;;
785
786 -bindir | --bindir | --bindi | --bind | --bin | --bi)
787 ac_prev=bindir ;;
788 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
789 bindir=$ac_optarg ;;
790
791 -build | --build | --buil | --bui | --bu)
792 ac_prev=build_alias ;;
793 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
794 build_alias=$ac_optarg ;;
795
796 -cache-file | --cache-file | --cache-fil | --cache-fi \
797 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
798 ac_prev=cache_file ;;
799 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
800 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
801 cache_file=$ac_optarg ;;
802
803 --config-cache | -C)
804 cache_file=config.cache ;;
805
806 -datadir | --datadir | --datadi | --datad)
807 ac_prev=datadir ;;
808 -datadir=* | --datadir=* | --datadi=* | --datad=*)
809 datadir=$ac_optarg ;;
810
811 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
812 | --dataroo | --dataro | --datar)
813 ac_prev=datarootdir ;;
814 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
815 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
816 datarootdir=$ac_optarg ;;
817
818 -disable-* | --disable-*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000819 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
menderico4861bb82009-09-29 00:31:36 +0000820 # Reject names that are not valid shell variable names.
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000821 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
nick.j.sanders00fa12e2014-08-04 21:04:06 +0000822 as_fn_error "invalid feature name: $ac_useropt"
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000823 ac_useropt_orig=$ac_useropt
824 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
825 case $ac_user_opts in
826 *"
827"enable_$ac_useropt"
828"*) ;;
829 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
830 ac_unrecognized_sep=', ';;
831 esac
832 eval enable_$ac_useropt=no ;;
menderico4861bb82009-09-29 00:31:36 +0000833
834 -docdir | --docdir | --docdi | --doc | --do)
835 ac_prev=docdir ;;
836 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
837 docdir=$ac_optarg ;;
838
839 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
840 ac_prev=dvidir ;;
841 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
842 dvidir=$ac_optarg ;;
843
844 -enable-* | --enable-*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000845 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
menderico4861bb82009-09-29 00:31:36 +0000846 # Reject names that are not valid shell variable names.
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000847 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
nick.j.sanders00fa12e2014-08-04 21:04:06 +0000848 as_fn_error "invalid feature name: $ac_useropt"
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000849 ac_useropt_orig=$ac_useropt
850 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
851 case $ac_user_opts in
852 *"
853"enable_$ac_useropt"
854"*) ;;
855 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
856 ac_unrecognized_sep=', ';;
857 esac
858 eval enable_$ac_useropt=\$ac_optarg ;;
menderico4861bb82009-09-29 00:31:36 +0000859
860 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
861 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
862 | --exec | --exe | --ex)
863 ac_prev=exec_prefix ;;
864 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
865 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
866 | --exec=* | --exe=* | --ex=*)
867 exec_prefix=$ac_optarg ;;
868
869 -gas | --gas | --ga | --g)
870 # Obsolete; use --with-gas.
871 with_gas=yes ;;
872
873 -help | --help | --hel | --he | -h)
874 ac_init_help=long ;;
875 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
876 ac_init_help=recursive ;;
877 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
878 ac_init_help=short ;;
879
880 -host | --host | --hos | --ho)
881 ac_prev=host_alias ;;
882 -host=* | --host=* | --hos=* | --ho=*)
883 host_alias=$ac_optarg ;;
884
885 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
886 ac_prev=htmldir ;;
887 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
888 | --ht=*)
889 htmldir=$ac_optarg ;;
890
891 -includedir | --includedir | --includedi | --included | --include \
892 | --includ | --inclu | --incl | --inc)
893 ac_prev=includedir ;;
894 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
895 | --includ=* | --inclu=* | --incl=* | --inc=*)
896 includedir=$ac_optarg ;;
897
898 -infodir | --infodir | --infodi | --infod | --info | --inf)
899 ac_prev=infodir ;;
900 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
901 infodir=$ac_optarg ;;
902
903 -libdir | --libdir | --libdi | --libd)
904 ac_prev=libdir ;;
905 -libdir=* | --libdir=* | --libdi=* | --libd=*)
906 libdir=$ac_optarg ;;
907
908 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
909 | --libexe | --libex | --libe)
910 ac_prev=libexecdir ;;
911 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
912 | --libexe=* | --libex=* | --libe=*)
913 libexecdir=$ac_optarg ;;
914
915 -localedir | --localedir | --localedi | --localed | --locale)
916 ac_prev=localedir ;;
917 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
918 localedir=$ac_optarg ;;
919
920 -localstatedir | --localstatedir | --localstatedi | --localstated \
921 | --localstate | --localstat | --localsta | --localst | --locals)
922 ac_prev=localstatedir ;;
923 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
924 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
925 localstatedir=$ac_optarg ;;
926
927 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
928 ac_prev=mandir ;;
929 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
930 mandir=$ac_optarg ;;
931
932 -nfp | --nfp | --nf)
933 # Obsolete; use --without-fp.
934 with_fp=no ;;
935
936 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
937 | --no-cr | --no-c | -n)
938 no_create=yes ;;
939
940 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
941 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
942 no_recursion=yes ;;
943
944 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
945 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
946 | --oldin | --oldi | --old | --ol | --o)
947 ac_prev=oldincludedir ;;
948 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
949 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
950 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
951 oldincludedir=$ac_optarg ;;
952
953 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
954 ac_prev=prefix ;;
955 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
956 prefix=$ac_optarg ;;
957
958 -program-prefix | --program-prefix | --program-prefi | --program-pref \
959 | --program-pre | --program-pr | --program-p)
960 ac_prev=program_prefix ;;
961 -program-prefix=* | --program-prefix=* | --program-prefi=* \
962 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
963 program_prefix=$ac_optarg ;;
964
965 -program-suffix | --program-suffix | --program-suffi | --program-suff \
966 | --program-suf | --program-su | --program-s)
967 ac_prev=program_suffix ;;
968 -program-suffix=* | --program-suffix=* | --program-suffi=* \
969 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
970 program_suffix=$ac_optarg ;;
971
972 -program-transform-name | --program-transform-name \
973 | --program-transform-nam | --program-transform-na \
974 | --program-transform-n | --program-transform- \
975 | --program-transform | --program-transfor \
976 | --program-transfo | --program-transf \
977 | --program-trans | --program-tran \
978 | --progr-tra | --program-tr | --program-t)
979 ac_prev=program_transform_name ;;
980 -program-transform-name=* | --program-transform-name=* \
981 | --program-transform-nam=* | --program-transform-na=* \
982 | --program-transform-n=* | --program-transform-=* \
983 | --program-transform=* | --program-transfor=* \
984 | --program-transfo=* | --program-transf=* \
985 | --program-trans=* | --program-tran=* \
986 | --progr-tra=* | --program-tr=* | --program-t=*)
987 program_transform_name=$ac_optarg ;;
988
989 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
990 ac_prev=pdfdir ;;
991 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
992 pdfdir=$ac_optarg ;;
993
994 -psdir | --psdir | --psdi | --psd | --ps)
995 ac_prev=psdir ;;
996 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
997 psdir=$ac_optarg ;;
998
999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1000 | -silent | --silent | --silen | --sile | --sil)
1001 silent=yes ;;
1002
1003 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1004 ac_prev=sbindir ;;
1005 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1006 | --sbi=* | --sb=*)
1007 sbindir=$ac_optarg ;;
1008
1009 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1010 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1011 | --sharedst | --shareds | --shared | --share | --shar \
1012 | --sha | --sh)
1013 ac_prev=sharedstatedir ;;
1014 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1015 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1016 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1017 | --sha=* | --sh=*)
1018 sharedstatedir=$ac_optarg ;;
1019
1020 -site | --site | --sit)
1021 ac_prev=site ;;
1022 -site=* | --site=* | --sit=*)
1023 site=$ac_optarg ;;
1024
1025 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1026 ac_prev=srcdir ;;
1027 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1028 srcdir=$ac_optarg ;;
1029
1030 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1031 | --syscon | --sysco | --sysc | --sys | --sy)
1032 ac_prev=sysconfdir ;;
1033 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1034 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1035 sysconfdir=$ac_optarg ;;
1036
1037 -target | --target | --targe | --targ | --tar | --ta | --t)
1038 ac_prev=target_alias ;;
1039 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1040 target_alias=$ac_optarg ;;
1041
1042 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1043 verbose=yes ;;
1044
1045 -version | --version | --versio | --versi | --vers | -V)
1046 ac_init_version=: ;;
1047
1048 -with-* | --with-*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001049 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
menderico4861bb82009-09-29 00:31:36 +00001050 # Reject names that are not valid shell variable names.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001052 as_fn_error "invalid package name: $ac_useropt"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1056 *"
1057"with_$ac_useropt"
1058"*) ;;
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1061 esac
1062 eval with_$ac_useropt=\$ac_optarg ;;
menderico4861bb82009-09-29 00:31:36 +00001063
1064 -without-* | --without-*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001065 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
menderico4861bb82009-09-29 00:31:36 +00001066 # Reject names that are not valid shell variable names.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001068 as_fn_error "invalid package name: $ac_useropt"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1072 *"
1073"with_$ac_useropt"
1074"*) ;;
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1077 esac
1078 eval with_$ac_useropt=no ;;
menderico4861bb82009-09-29 00:31:36 +00001079
1080 --x)
1081 # Obsolete; use --with-x.
1082 with_x=yes ;;
1083
1084 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1085 | --x-incl | --x-inc | --x-in | --x-i)
1086 ac_prev=x_includes ;;
1087 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1088 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1089 x_includes=$ac_optarg ;;
1090
1091 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1092 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1093 ac_prev=x_libraries ;;
1094 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1095 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1096 x_libraries=$ac_optarg ;;
1097
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001098 -*) as_fn_error "unrecognized option: \`$ac_option'
1099Try \`$0 --help' for more information."
menderico4861bb82009-09-29 00:31:36 +00001100 ;;
1101
1102 *=*)
1103 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001105 case $ac_envvar in #(
1106 '' | [0-9]* | *[!_$as_cr_alnum]* )
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001107 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001108 esac
menderico4861bb82009-09-29 00:31:36 +00001109 eval $ac_envvar=\$ac_optarg
1110 export $ac_envvar ;;
1111
1112 *)
1113 # FIXME: should be removed in autoconf 3.0.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001114 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
menderico4861bb82009-09-29 00:31:36 +00001115 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001116 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001117 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
menderico4861bb82009-09-29 00:31:36 +00001118 ;;
1119
1120 esac
1121done
1122
1123if test -n "$ac_prev"; then
1124 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001125 as_fn_error "missing argument to $ac_option"
menderico4861bb82009-09-29 00:31:36 +00001126fi
1127
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001128if test -n "$ac_unrecognized_opts"; then
1129 case $enable_option_checking in
1130 no) ;;
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001131 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001132 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1133 esac
1134fi
1135
1136# Check all directory arguments for consistency.
menderico4861bb82009-09-29 00:31:36 +00001137for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1138 datadir sysconfdir sharedstatedir localstatedir includedir \
1139 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1140 libdir localedir mandir
1141do
1142 eval ac_val=\$$ac_var
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001143 # Remove trailing slashes.
1144 case $ac_val in
1145 */ )
1146 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1147 eval $ac_var=\$ac_val;;
1148 esac
1149 # Be sure to have absolute directory names.
menderico4861bb82009-09-29 00:31:36 +00001150 case $ac_val in
1151 [\\/$]* | ?:[\\/]* ) continue;;
1152 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1153 esac
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001154 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
menderico4861bb82009-09-29 00:31:36 +00001155done
1156
1157# There might be people who depend on the old broken behavior: `$host'
1158# used to hold the argument of --host etc.
1159# FIXME: To remove some day.
1160build=$build_alias
1161host=$host_alias
1162target=$target_alias
1163
1164# FIXME: To remove some day.
1165if test "x$host_alias" != x; then
1166 if test "x$build_alias" = x; then
1167 cross_compiling=maybe
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001168 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1169 If a cross compiler is detected then cross compile mode will be used." >&2
menderico4861bb82009-09-29 00:31:36 +00001170 elif test "x$build_alias" != "x$host_alias"; then
1171 cross_compiling=yes
1172 fi
1173fi
1174
1175ac_tool_prefix=
1176test -n "$host_alias" && ac_tool_prefix=$host_alias-
1177
1178test "$silent" = yes && exec 6>/dev/null
1179
1180
1181ac_pwd=`pwd` && test -n "$ac_pwd" &&
1182ac_ls_di=`ls -di .` &&
1183ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001184 as_fn_error "working directory cannot be determined"
menderico4861bb82009-09-29 00:31:36 +00001185test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001186 as_fn_error "pwd does not report name of working directory"
menderico4861bb82009-09-29 00:31:36 +00001187
1188
1189# Find the source files, if location was not specified.
1190if test -z "$srcdir"; then
1191 ac_srcdir_defaulted=yes
1192 # Try the directory containing this script, then the parent directory.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001193 ac_confdir=`$as_dirname -- "$as_myself" ||
1194$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1195 X"$as_myself" : 'X\(//\)[^/]' \| \
1196 X"$as_myself" : 'X\(//\)$' \| \
1197 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1198$as_echo X"$as_myself" |
menderico4861bb82009-09-29 00:31:36 +00001199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1200 s//\1/
1201 q
1202 }
1203 /^X\(\/\/\)[^/].*/{
1204 s//\1/
1205 q
1206 }
1207 /^X\(\/\/\)$/{
1208 s//\1/
1209 q
1210 }
1211 /^X\(\/\).*/{
1212 s//\1/
1213 q
1214 }
1215 s/.*/./; q'`
1216 srcdir=$ac_confdir
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 srcdir=..
1219 fi
1220else
1221 ac_srcdir_defaulted=no
1222fi
1223if test ! -r "$srcdir/$ac_unique_file"; then
1224 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001225 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
menderico4861bb82009-09-29 00:31:36 +00001226fi
1227ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1228ac_abs_confdir=`(
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001229 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
menderico4861bb82009-09-29 00:31:36 +00001230 pwd)`
1231# When building in place, set srcdir=.
1232if test "$ac_abs_confdir" = "$ac_pwd"; then
1233 srcdir=.
1234fi
1235# Remove unnecessary trailing slashes from srcdir.
1236# Double slashes in file names in object file debugging info
1237# mess up M-x gdb in Emacs.
1238case $srcdir in
1239*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1240esac
1241for ac_var in $ac_precious_vars; do
1242 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_env_${ac_var}_value=\$${ac_var}
1244 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1245 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1246done
1247
1248#
1249# Report the --help message.
1250#
1251if test "$ac_init_help" = "long"; then
1252 # Omit some internal or obsolete options to make the list less imposing.
1253 # This message is too long to be a string in the A/UX 3.1 sh.
1254 cat <<_ACEOF
nick.j.sanders318caaf2014-02-11 09:02:48 +00001255\`configure' configures stressapptest 1.0.7_autoconf to adapt to many kinds of systems.
menderico4861bb82009-09-29 00:31:36 +00001256
1257Usage: $0 [OPTION]... [VAR=VALUE]...
1258
1259To assign environment variables (e.g., CC, CFLAGS...), specify them as
1260VAR=VALUE. See below for descriptions of some of the useful variables.
1261
1262Defaults for the options are specified in brackets.
1263
1264Configuration:
1265 -h, --help display this help and exit
1266 --help=short display options specific to this package
1267 --help=recursive display the short help of all the included packages
1268 -V, --version display version information and exit
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001269 -q, --quiet, --silent do not print \`checking...' messages
menderico4861bb82009-09-29 00:31:36 +00001270 --cache-file=FILE cache test results in FILE [disabled]
1271 -C, --config-cache alias for \`--cache-file=config.cache'
1272 -n, --no-create do not create output files
1273 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1274
1275Installation directories:
1276 --prefix=PREFIX install architecture-independent files in PREFIX
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001277 [$ac_default_prefix]
menderico4861bb82009-09-29 00:31:36 +00001278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001279 [PREFIX]
menderico4861bb82009-09-29 00:31:36 +00001280
1281By default, \`make install' will install all the files in
1282\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1283an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1284for instance \`--prefix=\$HOME'.
1285
1286For better control, use the options below.
1287
1288Fine tuning of the installation directories:
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001289 --bindir=DIR user executables [EPREFIX/bin]
1290 --sbindir=DIR system admin executables [EPREFIX/sbin]
1291 --libexecdir=DIR program executables [EPREFIX/libexec]
1292 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1293 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1294 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1295 --libdir=DIR object code libraries [EPREFIX/lib]
1296 --includedir=DIR C header files [PREFIX/include]
1297 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1298 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1299 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1300 --infodir=DIR info documentation [DATAROOTDIR/info]
1301 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1302 --mandir=DIR man documentation [DATAROOTDIR/man]
1303 --docdir=DIR documentation root [DATAROOTDIR/doc/stressapptest]
1304 --htmldir=DIR html documentation [DOCDIR]
1305 --dvidir=DIR dvi documentation [DOCDIR]
1306 --pdfdir=DIR pdf documentation [DOCDIR]
1307 --psdir=DIR ps documentation [DOCDIR]
menderico4861bb82009-09-29 00:31:36 +00001308_ACEOF
1309
1310 cat <<\_ACEOF
1311
1312Program names:
1313 --program-prefix=PREFIX prepend PREFIX to installed program names
1314 --program-suffix=SUFFIX append SUFFIX to installed program names
1315 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1316
1317System types:
1318 --build=BUILD configure for building on BUILD [guessed]
1319 --host=HOST cross-compile to build programs to run on HOST [BUILD]
menderico4861bb82009-09-29 00:31:36 +00001320_ACEOF
1321fi
1322
1323if test -n "$ac_init_help"; then
1324 case $ac_init_help in
nick.j.sanders318caaf2014-02-11 09:02:48 +00001325 short | recursive ) echo "Configuration of stressapptest 1.0.7_autoconf:";;
menderico4861bb82009-09-29 00:31:36 +00001326 esac
1327 cat <<\_ACEOF
1328
1329Optional Features:
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001330 --disable-option-checking ignore unrecognized --enable/--with options
menderico4861bb82009-09-29 00:31:36 +00001331 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1332 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1333 --disable-dependency-tracking speeds up one-time build
1334 --enable-dependency-tracking do not reject slow dependency extractors
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001335 --disable-default-optimizations
1336 Disable default optimization flag overrides
menderico4861bb82009-09-29 00:31:36 +00001337
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001338Optional Packages:
1339 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1340 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1341 --with-static enable static linking
1342
menderico4861bb82009-09-29 00:31:36 +00001343Some influential environment variables:
1344 CXX C++ compiler command
1345 CXXFLAGS C++ compiler flags
1346 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1347 nonstandard directory <lib dir>
1348 LIBS libraries to pass to the linker, e.g. -l<library>
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001349 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
menderico4861bb82009-09-29 00:31:36 +00001350 you have headers in a nonstandard directory <include dir>
1351 CC C compiler command
1352 CFLAGS C compiler flags
1353 CPP C preprocessor
1354
1355Use these variables to override the choices made by `configure' or to help
1356it to find libraries and programs with nonstandard names/locations.
1357
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00001358Report bugs to <opensource@google.com>.
menderico4861bb82009-09-29 00:31:36 +00001359_ACEOF
1360ac_status=$?
1361fi
1362
1363if test "$ac_init_help" = "recursive"; then
1364 # If there are subdirs, report their specific --help.
1365 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001366 test -d "$ac_dir" ||
1367 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1368 continue
menderico4861bb82009-09-29 00:31:36 +00001369 ac_builddir=.
1370
1371case "$ac_dir" in
1372.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1373*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001374 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
menderico4861bb82009-09-29 00:31:36 +00001375 # A ".." for each directory in $ac_dir_suffix.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001376 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
menderico4861bb82009-09-29 00:31:36 +00001377 case $ac_top_builddir_sub in
1378 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1380 esac ;;
1381esac
1382ac_abs_top_builddir=$ac_pwd
1383ac_abs_builddir=$ac_pwd$ac_dir_suffix
1384# for backward compatibility:
1385ac_top_builddir=$ac_top_build_prefix
1386
1387case $srcdir in
1388 .) # We are building in place.
1389 ac_srcdir=.
1390 ac_top_srcdir=$ac_top_builddir_sub
1391 ac_abs_top_srcdir=$ac_pwd ;;
1392 [\\/]* | ?:[\\/]* ) # Absolute name.
1393 ac_srcdir=$srcdir$ac_dir_suffix;
1394 ac_top_srcdir=$srcdir
1395 ac_abs_top_srcdir=$srcdir ;;
1396 *) # Relative name.
1397 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1398 ac_top_srcdir=$ac_top_build_prefix$srcdir
1399 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1400esac
1401ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1402
1403 cd "$ac_dir" || { ac_status=$?; continue; }
1404 # Check for guested configure.
1405 if test -f "$ac_srcdir/configure.gnu"; then
1406 echo &&
1407 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1408 elif test -f "$ac_srcdir/configure"; then
1409 echo &&
1410 $SHELL "$ac_srcdir/configure" --help=recursive
1411 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001412 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
menderico4861bb82009-09-29 00:31:36 +00001413 fi || ac_status=$?
1414 cd "$ac_pwd" || { ac_status=$?; break; }
1415 done
1416fi
1417
1418test -n "$ac_init_help" && exit $ac_status
1419if $ac_init_version; then
1420 cat <<\_ACEOF
nick.j.sanders318caaf2014-02-11 09:02:48 +00001421stressapptest configure 1.0.7_autoconf
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001422generated by GNU Autoconf 2.65
menderico4861bb82009-09-29 00:31:36 +00001423
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001424Copyright (C) 2009 Free Software Foundation, Inc.
menderico4861bb82009-09-29 00:31:36 +00001425This configure script is free software; the Free Software Foundation
1426gives unlimited permission to copy, distribute and modify it.
1427_ACEOF
1428 exit
1429fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001430
1431## ------------------------ ##
1432## Autoconf initialization. ##
1433## ------------------------ ##
1434
1435# ac_fn_cxx_try_compile LINENO
1436# ----------------------------
1437# Try to compile conftest.$ac_ext, and return whether this succeeded.
1438ac_fn_cxx_try_compile ()
1439{
1440 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1441 rm -f conftest.$ac_objext
1442 if { { ac_try="$ac_compile"
1443case "(($ac_try" in
1444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1445 *) ac_try_echo=$ac_try;;
1446esac
1447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1448$as_echo "$ac_try_echo"; } >&5
1449 (eval "$ac_compile") 2>conftest.err
1450 ac_status=$?
1451 if test -s conftest.err; then
1452 grep -v '^ *+' conftest.err >conftest.er1
1453 cat conftest.er1 >&5
1454 mv -f conftest.er1 conftest.err
1455 fi
1456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1457 test $ac_status = 0; } && {
1458 test -z "$ac_cxx_werror_flag" ||
1459 test ! -s conftest.err
1460 } && test -s conftest.$ac_objext; then :
1461 ac_retval=0
1462else
1463 $as_echo "$as_me: failed program was:" >&5
1464sed 's/^/| /' conftest.$ac_ext >&5
1465
1466 ac_retval=1
1467fi
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001468 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001469 as_fn_set_status $ac_retval
1470
1471} # ac_fn_cxx_try_compile
1472
1473# ac_fn_c_try_compile LINENO
1474# --------------------------
1475# Try to compile conftest.$ac_ext, and return whether this succeeded.
1476ac_fn_c_try_compile ()
1477{
1478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1479 rm -f conftest.$ac_objext
1480 if { { ac_try="$ac_compile"
1481case "(($ac_try" in
1482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1483 *) ac_try_echo=$ac_try;;
1484esac
1485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1486$as_echo "$ac_try_echo"; } >&5
1487 (eval "$ac_compile") 2>conftest.err
1488 ac_status=$?
1489 if test -s conftest.err; then
1490 grep -v '^ *+' conftest.err >conftest.er1
1491 cat conftest.er1 >&5
1492 mv -f conftest.er1 conftest.err
1493 fi
1494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1495 test $ac_status = 0; } && {
1496 test -z "$ac_c_werror_flag" ||
1497 test ! -s conftest.err
1498 } && test -s conftest.$ac_objext; then :
1499 ac_retval=0
1500else
1501 $as_echo "$as_me: failed program was:" >&5
1502sed 's/^/| /' conftest.$ac_ext >&5
1503
1504 ac_retval=1
1505fi
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001506 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001507 as_fn_set_status $ac_retval
1508
1509} # ac_fn_c_try_compile
1510
1511# ac_fn_c_try_link LINENO
1512# -----------------------
1513# Try to link conftest.$ac_ext, and return whether this succeeded.
1514ac_fn_c_try_link ()
1515{
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517 rm -f conftest.$ac_objext conftest$ac_exeext
1518 if { { ac_try="$ac_link"
1519case "(($ac_try" in
1520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1521 *) ac_try_echo=$ac_try;;
1522esac
1523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524$as_echo "$ac_try_echo"; } >&5
1525 (eval "$ac_link") 2>conftest.err
1526 ac_status=$?
1527 if test -s conftest.err; then
1528 grep -v '^ *+' conftest.err >conftest.er1
1529 cat conftest.er1 >&5
1530 mv -f conftest.er1 conftest.err
1531 fi
1532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533 test $ac_status = 0; } && {
1534 test -z "$ac_c_werror_flag" ||
1535 test ! -s conftest.err
1536 } && test -s conftest$ac_exeext && {
1537 test "$cross_compiling" = yes ||
1538 $as_test_x conftest$ac_exeext
1539 }; then :
1540 ac_retval=0
1541else
1542 $as_echo "$as_me: failed program was:" >&5
1543sed 's/^/| /' conftest.$ac_ext >&5
1544
1545 ac_retval=1
1546fi
1547 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1548 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1549 # interfere with the next link command; also delete a directory that is
1550 # left behind by Apple's compiler. We do this before executing the actions.
1551 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001552 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001553 as_fn_set_status $ac_retval
1554
1555} # ac_fn_c_try_link
1556
1557# ac_fn_c_try_cpp LINENO
1558# ----------------------
1559# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1560ac_fn_c_try_cpp ()
1561{
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 if { { ac_try="$ac_cpp conftest.$ac_ext"
1564case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567esac
1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569$as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1576 fi
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001578 test $ac_status = 0; } >/dev/null && {
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 }; then :
1582 ac_retval=0
1583else
1584 $as_echo "$as_me: failed program was:" >&5
1585sed 's/^/| /' conftest.$ac_ext >&5
1586
1587 ac_retval=1
1588fi
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001590 as_fn_set_status $ac_retval
1591
1592} # ac_fn_c_try_cpp
1593
1594# ac_fn_c_try_run LINENO
1595# ----------------------
1596# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1597# that executables *can* be run.
1598ac_fn_c_try_run ()
1599{
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_link"
1602case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605esac
1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607$as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_link") 2>&5
1609 ac_status=$?
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1612 { { case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615esac
1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617$as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_try") 2>&5
1619 ac_status=$?
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; }; }; then :
1622 ac_retval=0
1623else
1624 $as_echo "$as_me: program exited with status $ac_status" >&5
1625 $as_echo "$as_me: failed program was:" >&5
1626sed 's/^/| /' conftest.$ac_ext >&5
1627
1628 ac_retval=$ac_status
1629fi
1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001631 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001632 as_fn_set_status $ac_retval
1633
1634} # ac_fn_c_try_run
1635
1636# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1637# -------------------------------------------------------
1638# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1639# the include files in INCLUDES and setting the cache variable VAR
1640# accordingly.
1641ac_fn_c_check_header_mongrel ()
1642{
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001644 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646$as_echo_n "checking for $2... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001647if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001648 $as_echo_n "(cached) " >&6
1649fi
1650eval ac_res=\$$3
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652$as_echo "$ac_res" >&6; }
1653else
1654 # Is the header compilable?
1655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1656$as_echo_n "checking $2 usability... " >&6; }
1657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658/* end confdefs.h. */
1659$4
1660#include <$2>
1661_ACEOF
1662if ac_fn_c_try_compile "$LINENO"; then :
1663 ac_header_compiler=yes
1664else
1665 ac_header_compiler=no
1666fi
1667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1669$as_echo "$ac_header_compiler" >&6; }
1670
1671# Is the header present?
1672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1673$as_echo_n "checking $2 presence... " >&6; }
1674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675/* end confdefs.h. */
1676#include <$2>
1677_ACEOF
1678if ac_fn_c_try_cpp "$LINENO"; then :
1679 ac_header_preproc=yes
1680else
1681 ac_header_preproc=no
1682fi
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001683rm -f conftest.err conftest.$ac_ext
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1685$as_echo "$ac_header_preproc" >&6; }
1686
1687# So? What about this header?
1688case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1689 yes:no: )
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1691$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1693$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1694 ;;
1695 no:yes:* )
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1697$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1699$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1701$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1703$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1705$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001706( cat <<\_ASBOX
1707## ------------------------------------ ##
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001708## Report this to opensource@google.com ##
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001709## ------------------------------------ ##
1710_ASBOX
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001711 ) | sed "s/^/$as_me: WARNING: /" >&2
1712 ;;
1713esac
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715$as_echo_n "checking for $2... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001716if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001717 $as_echo_n "(cached) " >&6
1718else
1719 eval "$3=\$ac_header_compiler"
1720fi
1721eval ac_res=\$$3
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723$as_echo "$ac_res" >&6; }
1724fi
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001726
1727} # ac_fn_c_check_header_mongrel
1728
1729# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1730# -------------------------------------------------------
1731# Tests whether HEADER exists and can be compiled using the include files in
1732# INCLUDES, setting the cache variable VAR accordingly.
1733ac_fn_c_check_header_compile ()
1734{
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737$as_echo_n "checking for $2... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001738if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001739 $as_echo_n "(cached) " >&6
1740else
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742/* end confdefs.h. */
1743$4
1744#include <$2>
1745_ACEOF
1746if ac_fn_c_try_compile "$LINENO"; then :
1747 eval "$3=yes"
1748else
1749 eval "$3=no"
1750fi
1751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752fi
1753eval ac_res=\$$3
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755$as_echo "$ac_res" >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001757
1758} # ac_fn_c_check_header_compile
1759
1760# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1761# -------------------------------------------
1762# Tests whether TYPE exists after having included INCLUDES, setting cache
1763# variable VAR accordingly.
1764ac_fn_c_check_type ()
1765{
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768$as_echo_n "checking for $2... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001769if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001770 $as_echo_n "(cached) " >&6
1771else
1772 eval "$3=no"
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h. */
1775$4
1776int
1777main ()
1778{
1779if (sizeof ($2))
1780 return 0;
1781 ;
1782 return 0;
1783}
1784_ACEOF
1785if ac_fn_c_try_compile "$LINENO"; then :
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787/* end confdefs.h. */
1788$4
1789int
1790main ()
1791{
1792if (sizeof (($2)))
1793 return 0;
1794 ;
1795 return 0;
1796}
1797_ACEOF
1798if ac_fn_c_try_compile "$LINENO"; then :
1799
1800else
1801 eval "$3=yes"
1802fi
1803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804fi
1805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806fi
1807eval ac_res=\$$3
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809$as_echo "$ac_res" >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001811
1812} # ac_fn_c_check_type
1813
1814# ac_fn_c_find_uintX_t LINENO BITS VAR
1815# ------------------------------------
1816# Finds an unsigned integer type with width BITS, setting cache variable VAR
1817# accordingly.
1818ac_fn_c_find_uintX_t ()
1819{
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1822$as_echo_n "checking for uint$2_t... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001823if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001824 $as_echo_n "(cached) " >&6
1825else
1826 eval "$3=no"
1827 # Order is important - never check a type that is potentially smaller
1828 # than half of the expected target width.
1829 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1830 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832/* end confdefs.h. */
1833$ac_includes_default
1834int
1835main ()
1836{
1837static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1838test_array [0] = 0
1839
1840 ;
1841 return 0;
1842}
1843_ACEOF
1844if ac_fn_c_try_compile "$LINENO"; then :
1845 case $ac_type in #(
1846 uint$2_t) :
1847 eval "$3=yes" ;; #(
1848 *) :
1849 eval "$3=\$ac_type" ;;
1850esac
1851fi
1852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001853 eval as_val=\$$3
1854 if test "x$as_val" = x""no; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001855
1856else
1857 break
1858fi
1859 done
1860fi
1861eval ac_res=\$$3
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863$as_echo "$ac_res" >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001864 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001865
1866} # ac_fn_c_find_uintX_t
1867
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001868# ac_fn_c_check_decl LINENO SYMBOL VAR
1869# ------------------------------------
1870# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001871ac_fn_c_check_decl ()
1872{
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1875$as_echo_n "checking whether $2 is declared... " >&6; }
1876if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001877 $as_echo_n "(cached) " >&6
1878else
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h. */
1881$4
1882int
1883main ()
1884{
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001885#ifndef $2
1886 (void) $2;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001887#endif
1888
1889 ;
1890 return 0;
1891}
1892_ACEOF
1893if ac_fn_c_try_compile "$LINENO"; then :
1894 eval "$3=yes"
1895else
1896 eval "$3=no"
1897fi
1898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899fi
1900eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902$as_echo "$ac_res" >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001904
1905} # ac_fn_c_check_decl
1906
1907# ac_fn_c_check_func LINENO FUNC VAR
1908# ----------------------------------
1909# Tests whether FUNC exists, setting the cache variable VAR accordingly
1910ac_fn_c_check_func ()
1911{
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914$as_echo_n "checking for $2... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001915if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001916 $as_echo_n "(cached) " >&6
1917else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h. */
1920/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1922#define $2 innocuous_$2
1923
1924/* System header to define __stub macros and hopefully few prototypes,
1925 which can conflict with char $2 (); below.
1926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1927 <limits.h> exists even on freestanding compilers. */
1928
1929#ifdef __STDC__
1930# include <limits.h>
1931#else
1932# include <assert.h>
1933#endif
1934
1935#undef $2
1936
1937/* Override any GCC internal prototype to avoid an error.
1938 Use char because int might match the return type of a GCC
1939 builtin and then its argument prototype would still apply. */
1940#ifdef __cplusplus
1941extern "C"
1942#endif
1943char $2 ();
1944/* The GNU C library defines this for functions which it implements
1945 to always fail with ENOSYS. Some functions are actually named
1946 something starting with __ and the normal name is an alias. */
1947#if defined __stub_$2 || defined __stub___$2
1948choke me
1949#endif
1950
1951int
1952main ()
1953{
1954return $2 ();
1955 ;
1956 return 0;
1957}
1958_ACEOF
1959if ac_fn_c_try_link "$LINENO"; then :
1960 eval "$3=yes"
1961else
1962 eval "$3=no"
1963fi
1964rm -f core conftest.err conftest.$ac_objext \
1965 conftest$ac_exeext conftest.$ac_ext
1966fi
1967eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969$as_echo "$ac_res" >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001971
1972} # ac_fn_c_check_func
menderico4861bb82009-09-29 00:31:36 +00001973cat >config.log <<_ACEOF
1974This file contains any messages produced by compilers while
1975running configure, to aid debugging if configure makes a mistake.
1976
nick.j.sanders318caaf2014-02-11 09:02:48 +00001977It was created by stressapptest $as_me 1.0.7_autoconf, which was
nick.j.sanders00fa12e2014-08-04 21:04:06 +00001978generated by GNU Autoconf 2.65. Invocation command line was
menderico4861bb82009-09-29 00:31:36 +00001979
1980 $ $0 $@
1981
1982_ACEOF
1983exec 5>>config.log
1984{
1985cat <<_ASUNAME
1986## --------- ##
1987## Platform. ##
1988## --------- ##
1989
1990hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1991uname -m = `(uname -m) 2>/dev/null || echo unknown`
1992uname -r = `(uname -r) 2>/dev/null || echo unknown`
1993uname -s = `(uname -s) 2>/dev/null || echo unknown`
1994uname -v = `(uname -v) 2>/dev/null || echo unknown`
1995
1996/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1997/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1998
1999/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2000/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2001/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2002/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2003/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2004/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2005/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2006
2007_ASUNAME
2008
2009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010for as_dir in $PATH
2011do
2012 IFS=$as_save_IFS
2013 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002014 $as_echo "PATH: $as_dir"
2015 done
menderico4861bb82009-09-29 00:31:36 +00002016IFS=$as_save_IFS
2017
2018} >&5
2019
2020cat >&5 <<_ACEOF
2021
2022
2023## ----------- ##
2024## Core tests. ##
2025## ----------- ##
2026
2027_ACEOF
2028
2029
2030# Keep a trace of the command line.
2031# Strip out --no-create and --no-recursion so they do not pile up.
2032# Strip out --silent because we don't want to record it for future runs.
2033# Also quote any args containing shell meta-characters.
2034# Make two passes to allow for proper duplicate-argument suppression.
2035ac_configure_args=
2036ac_configure_args0=
2037ac_configure_args1=
2038ac_must_keep_next=false
2039for ac_pass in 1 2
2040do
2041 for ac_arg
2042 do
2043 case $ac_arg in
2044 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2046 | -silent | --silent | --silen | --sile | --sil)
2047 continue ;;
2048 *\'*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002049 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
menderico4861bb82009-09-29 00:31:36 +00002050 esac
2051 case $ac_pass in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002052 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
menderico4861bb82009-09-29 00:31:36 +00002053 2)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002054 as_fn_append ac_configure_args1 " '$ac_arg'"
menderico4861bb82009-09-29 00:31:36 +00002055 if test $ac_must_keep_next = true; then
2056 ac_must_keep_next=false # Got value, back to normal.
2057 else
2058 case $ac_arg in
2059 *=* | --config-cache | -C | -disable-* | --disable-* \
2060 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2061 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2062 | -with-* | --with-* | -without-* | --without-* | --x)
2063 case "$ac_configure_args0 " in
2064 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2065 esac
2066 ;;
2067 -* ) ac_must_keep_next=true ;;
2068 esac
2069 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002070 as_fn_append ac_configure_args " '$ac_arg'"
menderico4861bb82009-09-29 00:31:36 +00002071 ;;
2072 esac
2073 done
2074done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002075{ ac_configure_args0=; unset ac_configure_args0;}
2076{ ac_configure_args1=; unset ac_configure_args1;}
menderico4861bb82009-09-29 00:31:36 +00002077
2078# When interrupted or exit'd, cleanup temporary files, and complete
2079# config.log. We remove comments because anyway the quotes in there
2080# would cause problems or look ugly.
2081# WARNING: Use '\'' to represent an apostrophe within the trap.
2082# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2083trap 'exit_status=$?
2084 # Save into config.log some information that might help in debugging.
2085 {
2086 echo
2087
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002088 cat <<\_ASBOX
2089## ---------------- ##
menderico4861bb82009-09-29 00:31:36 +00002090## Cache variables. ##
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002091## ---------------- ##
2092_ASBOX
menderico4861bb82009-09-29 00:31:36 +00002093 echo
2094 # The following way of writing the cache mishandles newlines in values,
2095(
2096 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2097 eval ac_val=\$$ac_var
2098 case $ac_val in #(
2099 *${as_nl}*)
2100 case $ac_var in #(
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002101 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2102$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
menderico4861bb82009-09-29 00:31:36 +00002103 esac
2104 case $ac_var in #(
2105 _ | IFS | as_nl) ;; #(
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002106 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2107 *) { eval $ac_var=; unset $ac_var;} ;;
menderico4861bb82009-09-29 00:31:36 +00002108 esac ;;
2109 esac
2110 done
2111 (set) 2>&1 |
2112 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2113 *${as_nl}ac_space=\ *)
2114 sed -n \
2115 "s/'\''/'\''\\\\'\'''\''/g;
2116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2117 ;; #(
2118 *)
2119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2120 ;;
2121 esac |
2122 sort
2123)
2124 echo
2125
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002126 cat <<\_ASBOX
2127## ----------------- ##
menderico4861bb82009-09-29 00:31:36 +00002128## Output variables. ##
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002129## ----------------- ##
2130_ASBOX
menderico4861bb82009-09-29 00:31:36 +00002131 echo
2132 for ac_var in $ac_subst_vars
2133 do
2134 eval ac_val=\$$ac_var
2135 case $ac_val in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002136 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
menderico4861bb82009-09-29 00:31:36 +00002137 esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002138 $as_echo "$ac_var='\''$ac_val'\''"
menderico4861bb82009-09-29 00:31:36 +00002139 done | sort
2140 echo
2141
2142 if test -n "$ac_subst_files"; then
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002143 cat <<\_ASBOX
2144## ------------------- ##
menderico4861bb82009-09-29 00:31:36 +00002145## File substitutions. ##
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002146## ------------------- ##
2147_ASBOX
menderico4861bb82009-09-29 00:31:36 +00002148 echo
2149 for ac_var in $ac_subst_files
2150 do
2151 eval ac_val=\$$ac_var
2152 case $ac_val in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002153 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
menderico4861bb82009-09-29 00:31:36 +00002154 esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002155 $as_echo "$ac_var='\''$ac_val'\''"
menderico4861bb82009-09-29 00:31:36 +00002156 done | sort
2157 echo
2158 fi
2159
2160 if test -s confdefs.h; then
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002161 cat <<\_ASBOX
2162## ----------- ##
menderico4861bb82009-09-29 00:31:36 +00002163## confdefs.h. ##
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002164## ----------- ##
2165_ASBOX
menderico4861bb82009-09-29 00:31:36 +00002166 echo
2167 cat confdefs.h
2168 echo
2169 fi
2170 test "$ac_signal" != 0 &&
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002171 $as_echo "$as_me: caught signal $ac_signal"
2172 $as_echo "$as_me: exit $exit_status"
menderico4861bb82009-09-29 00:31:36 +00002173 } >&5
2174 rm -f core *.core core.conftest.* &&
2175 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2176 exit $exit_status
2177' 0
2178for ac_signal in 1 2 13 15; do
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002179 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
menderico4861bb82009-09-29 00:31:36 +00002180done
2181ac_signal=0
2182
2183# confdefs.h avoids OS command line length limits that DEFS can exceed.
2184rm -f -r conftest* confdefs.h
2185
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002186$as_echo "/* confdefs.h */" > confdefs.h
2187
menderico4861bb82009-09-29 00:31:36 +00002188# Predefined preprocessor variables.
2189
2190cat >>confdefs.h <<_ACEOF
2191#define PACKAGE_NAME "$PACKAGE_NAME"
2192_ACEOF
2193
menderico4861bb82009-09-29 00:31:36 +00002194cat >>confdefs.h <<_ACEOF
2195#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2196_ACEOF
2197
menderico4861bb82009-09-29 00:31:36 +00002198cat >>confdefs.h <<_ACEOF
2199#define PACKAGE_VERSION "$PACKAGE_VERSION"
2200_ACEOF
2201
menderico4861bb82009-09-29 00:31:36 +00002202cat >>confdefs.h <<_ACEOF
2203#define PACKAGE_STRING "$PACKAGE_STRING"
2204_ACEOF
2205
menderico4861bb82009-09-29 00:31:36 +00002206cat >>confdefs.h <<_ACEOF
2207#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2208_ACEOF
2209
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002210cat >>confdefs.h <<_ACEOF
2211#define PACKAGE_URL "$PACKAGE_URL"
2212_ACEOF
2213
menderico4861bb82009-09-29 00:31:36 +00002214
2215# Let the site file select an alternate cache file if it wants to.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002216# Prefer an explicitly selected file to automatically selected ones.
2217ac_site_file1=NONE
2218ac_site_file2=NONE
menderico4861bb82009-09-29 00:31:36 +00002219if test -n "$CONFIG_SITE"; then
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002220 ac_site_file1=$CONFIG_SITE
menderico4861bb82009-09-29 00:31:36 +00002221elif test "x$prefix" != xNONE; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002222 ac_site_file1=$prefix/share/config.site
2223 ac_site_file2=$prefix/etc/config.site
menderico4861bb82009-09-29 00:31:36 +00002224else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002225 ac_site_file1=$ac_default_prefix/share/config.site
2226 ac_site_file2=$ac_default_prefix/etc/config.site
menderico4861bb82009-09-29 00:31:36 +00002227fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002228for ac_site_file in "$ac_site_file1" "$ac_site_file2"
menderico4861bb82009-09-29 00:31:36 +00002229do
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002230 test "x$ac_site_file" = xNONE && continue
2231 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2233$as_echo "$as_me: loading site script $ac_site_file" >&6;}
menderico4861bb82009-09-29 00:31:36 +00002234 sed 's/^/| /' "$ac_site_file" >&5
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002235 . "$ac_site_file"
menderico4861bb82009-09-29 00:31:36 +00002236 fi
2237done
2238
2239if test -r "$cache_file"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002240 # Some versions of bash will fail to source /dev/null (special files
2241 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2242 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2244$as_echo "$as_me: loading cache $cache_file" >&6;}
menderico4861bb82009-09-29 00:31:36 +00002245 case $cache_file in
2246 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2247 *) . "./$cache_file";;
2248 esac
2249 fi
2250else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002251 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2252$as_echo "$as_me: creating cache $cache_file" >&6;}
menderico4861bb82009-09-29 00:31:36 +00002253 >$cache_file
2254fi
2255
2256# Check that the precious variables saved in the cache have kept the same
2257# value.
2258ac_cache_corrupted=false
2259for ac_var in $ac_precious_vars; do
2260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2261 eval ac_new_set=\$ac_env_${ac_var}_set
2262 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2263 eval ac_new_val=\$ac_env_${ac_var}_value
2264 case $ac_old_set,$ac_new_set in
2265 set,)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2267$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
menderico4861bb82009-09-29 00:31:36 +00002268 ac_cache_corrupted=: ;;
2269 ,set)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2271$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
menderico4861bb82009-09-29 00:31:36 +00002272 ac_cache_corrupted=: ;;
2273 ,);;
2274 *)
2275 if test "x$ac_old_val" != "x$ac_new_val"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002276 # differences in whitespace do not lead to failure.
2277 ac_old_val_w=`echo x $ac_old_val`
2278 ac_new_val_w=`echo x $ac_new_val`
2279 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2281$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2282 ac_cache_corrupted=:
2283 else
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2285$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2286 eval $ac_var=\$ac_old_val
2287 fi
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2289$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2291$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
menderico4861bb82009-09-29 00:31:36 +00002292 fi;;
2293 esac
2294 # Pass precious variables to config.status.
2295 if test "$ac_new_set" = set; then
2296 case $ac_new_val in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002297 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
menderico4861bb82009-09-29 00:31:36 +00002298 *) ac_arg=$ac_var=$ac_new_val ;;
2299 esac
2300 case " $ac_configure_args " in
2301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002302 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
menderico4861bb82009-09-29 00:31:36 +00002303 esac
2304 fi
2305done
2306if $ac_cache_corrupted; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2310$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002311 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002312fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002313## -------------------- ##
2314## Main body of script. ##
2315## -------------------- ##
menderico4861bb82009-09-29 00:31:36 +00002316
2317ac_ext=c
2318ac_cpp='$CPP $CPPFLAGS'
2319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322
2323
2324
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002325
2326# Check whether --with-static was given.
2327if test "${with_static+set}" = set; then :
2328 withval=$with_static;
2329fi
2330
2331
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002332if test "$with_static" = "yes"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002333then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002334 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with staticaly linked libraries." >&5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002335$as_echo "$as_me: Compiling with staticaly linked libraries." >&6;}
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002336 LIBS="$LIBS -static"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002337else
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002338 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with dynamically linked libraries." >&5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002339$as_echo "$as_me: Compiling with dynamically linked libraries." >&6;}
2340fi
2341
menderico4861bb82009-09-29 00:31:36 +00002342ac_aux_dir=
2343for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002344 for ac_t in install-sh install.sh shtool; do
2345 if test -f "$ac_dir/$ac_t"; then
2346 ac_aux_dir=$ac_dir
2347 ac_install_sh="$ac_aux_dir/$ac_t -c"
2348 break 2
2349 fi
2350 done
menderico4861bb82009-09-29 00:31:36 +00002351done
2352if test -z "$ac_aux_dir"; then
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002353 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002354fi
2355
2356# These three variables are undocumented and unsupported,
2357# and are intended to be withdrawn in a future Autoconf release.
2358# They can cause serious problems if a builder's source tree is in a directory
2359# whose full name contains unusual characters.
2360ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2361ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2362ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2363
2364
2365# Make sure we can run config.sub.
2366$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002367 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002368
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2370$as_echo_n "checking build system type... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002371if test "${ac_cv_build+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002372 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00002373else
2374 ac_build_alias=$build_alias
2375test "x$ac_build_alias" = x &&
2376 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2377test "x$ac_build_alias" = x &&
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002378 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002379ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002380 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002381
2382fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2384$as_echo "$ac_cv_build" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002385case $ac_cv_build in
2386*-*-*) ;;
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002387*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
menderico4861bb82009-09-29 00:31:36 +00002388esac
2389build=$ac_cv_build
2390ac_save_IFS=$IFS; IFS='-'
2391set x $ac_cv_build
2392shift
2393build_cpu=$1
2394build_vendor=$2
2395shift; shift
2396# Remember, the first character of IFS is used to create $*,
2397# except with old shells:
2398build_os=$*
2399IFS=$ac_save_IFS
2400case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2401
2402
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2404$as_echo_n "checking host system type... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002405if test "${ac_cv_host+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002406 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00002407else
2408 if test "x$host_alias" = x; then
2409 ac_cv_host=$ac_cv_build
2410else
2411 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002412 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002413fi
2414
2415fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2417$as_echo "$ac_cv_host" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002418case $ac_cv_host in
2419*-*-*) ;;
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002420*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
menderico4861bb82009-09-29 00:31:36 +00002421esac
2422host=$ac_cv_host
2423ac_save_IFS=$IFS; IFS='-'
2424set x $ac_cv_host
2425shift
2426host_cpu=$1
2427host_vendor=$2
2428shift; shift
2429# Remember, the first character of IFS is used to create $*,
2430# except with old shells:
2431host_os=$*
2432IFS=$ac_save_IFS
2433case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2434
2435
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002436# Checking for target cpu and setting custom configuration
2437# for the different platforms
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002438case "$host_cpu" in #(
2439 *x86_64*) :
menderico4861bb82009-09-29 00:31:36 +00002440
menderico4861bb82009-09-29 00:31:36 +00002441
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002442$as_echo "#define STRESSAPPTEST_CPU_X86_64 /**/" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00002443
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002444 ;; #(
2445 *i686*) :
2446
menderico4861bb82009-09-29 00:31:36 +00002447
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002448$as_echo "#define STRESSAPPTEST_CPU_I686 /**/" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00002449
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002450 ;; #(
2451 *powerpc*) :
2452
menderico4861bb82009-09-29 00:31:36 +00002453
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002454$as_echo "#define STRESSAPPTEST_CPU_PPC /**/" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00002455
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002456 ;; #(
2457 *armv7a*) :
2458
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00002459
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002460$as_echo "#define STRESSAPPTEST_CPU_ARMV7A /**/" >>confdefs.h
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00002461
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002462 ;; #(
Wei Huang83451452017-11-20 23:40:54 -05002463 *aarch64*) :
2464
2465
2466$as_echo "#define STRESSAPPTEST_CPU_AARCH64 /**/" >>confdefs.h
2467
2468 ;; #(
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002469 *) :
Wei Huang83451452017-11-20 23:40:54 -05002470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, armv7a, or aarch64" >&5
2471$as_echo "$as_me: WARNING: Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, armv7a, or aarch64" >&2;}
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002472 ;;
menderico4861bb82009-09-29 00:31:36 +00002473esac
2474
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002475## The following allows like systems to share settings. This is not meant to
2476## imply that these OS are the same thing. From OpenOffice dmake configure.in
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002477case "$host_os" in #(
2478 *linux*) :
2479
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00002480 OS_VERSION=linux
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002481
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002482$as_echo "#define STRESSAPPTEST_OS_LINUX /**/" >>confdefs.h
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002483
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002484 ;; #(
2485 *darwin*) :
2486
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00002487 OS_VERSION=macosx
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002488
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002489$as_echo "#define STRESSAPPTEST_OS_DARWIN /**/" >>confdefs.h
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002490
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002491 ;; #(
2492 *freebsd*) :
2493
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00002494 OS_VERSION=bsd
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002495
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002496$as_echo "#define STRESSAPPTEST_OS_BSD /**/" >>confdefs.h
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002497
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002498 ;; #(
2499 *netbsd*) :
2500
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00002501 OS_VERSION=bsd
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002502
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002503$as_echo "#define STRESSAPPTEST_OS_BSD /**/" >>confdefs.h
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002504
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002505 ;; #(
2506 *) :
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported system: $host_os" >&5
2508$as_echo "$as_me: WARNING: unsupported system: $host_os" >&2;}
2509 ;;
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002510esac
2511
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002512am__api_version='1.11'
menderico4861bb82009-09-29 00:31:36 +00002513
2514# Find a good install program. We prefer a C program (faster),
2515# so one script is as good as another. But avoid the broken or
2516# incompatible versions:
2517# SysV /etc/install, /usr/sbin/install
2518# SunOS /usr/etc/install
2519# IRIX /sbin/install
2520# AIX /bin/install
2521# AmigaOS /C/install, which installs bootblocks on floppy discs
2522# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2523# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2524# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2525# OS/2's system install, which has a completely different semantic
2526# ./install, which can be erroneously created by make from ./install.sh.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002527# Reject install programs that cannot install multiple files.
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2529$as_echo_n "checking for a BSD-compatible install... " >&6; }
menderico4861bb82009-09-29 00:31:36 +00002530if test -z "$INSTALL"; then
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002531if test "${ac_cv_path_install+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002532 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00002533else
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535for as_dir in $PATH
2536do
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002539 # Account for people who put trailing slashes in PATH elements.
2540case $as_dir/ in #((
2541 ./ | .// | /[cC]/* | \
menderico4861bb82009-09-29 00:31:36 +00002542 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002543 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
menderico4861bb82009-09-29 00:31:36 +00002544 /usr/ucb/* ) ;;
2545 *)
2546 # OSF1 and SCO ODT 3.0 have their own names for install.
2547 # Don't use installbsd from OSF since it installs stuff as root
2548 # by default.
2549 for ac_prog in ginstall scoinst install; do
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2552 if test $ac_prog = install &&
2553 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2554 # AIX install. It has an incompatible calling convention.
2555 :
2556 elif test $ac_prog = install &&
2557 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2558 # program-specific install script used by HP pwplus--don't use.
2559 :
2560 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002561 rm -rf conftest.one conftest.two conftest.dir
2562 echo one > conftest.one
2563 echo two > conftest.two
2564 mkdir conftest.dir
2565 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2566 test -s conftest.one && test -s conftest.two &&
2567 test -s conftest.dir/conftest.one &&
2568 test -s conftest.dir/conftest.two
2569 then
2570 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2571 break 3
2572 fi
menderico4861bb82009-09-29 00:31:36 +00002573 fi
2574 fi
2575 done
2576 done
2577 ;;
2578esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002579
2580 done
menderico4861bb82009-09-29 00:31:36 +00002581IFS=$as_save_IFS
2582
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002583rm -rf conftest.one conftest.two conftest.dir
menderico4861bb82009-09-29 00:31:36 +00002584
2585fi
2586 if test "${ac_cv_path_install+set}" = set; then
2587 INSTALL=$ac_cv_path_install
2588 else
2589 # As a last resort, use the slow shell script. Don't cache a
2590 # value for INSTALL within a source directory, because that will
2591 # break other packages using the cache if that directory is
2592 # removed, or if the value is a relative name.
2593 INSTALL=$ac_install_sh
2594 fi
2595fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2597$as_echo "$INSTALL" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002598
2599# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2600# It thinks the first close brace ends the variable substitution.
2601test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2602
2603test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2604
2605test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2606
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2608$as_echo_n "checking whether build environment is sane... " >&6; }
menderico4861bb82009-09-29 00:31:36 +00002609# Just in case
2610sleep 1
2611echo timestamp > conftest.file
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002612# Reject unsafe characters in $srcdir or the absolute working directory
2613# name. Accept space and tab only in the latter.
2614am_lf='
2615'
2616case `pwd` in
2617 *[\\\"\#\$\&\'\`$am_lf]*)
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002618 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002619esac
2620case $srcdir in
2621 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002622 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002623esac
2624
menderico4861bb82009-09-29 00:31:36 +00002625# Do `set' in a subshell so we don't clobber the current shell's
2626# arguments. Must try -L first in case configure is actually a
2627# symlink; some systems play weird games with the mod time of symlinks
2628# (eg FreeBSD returns the mod time of the symlink's containing
2629# directory).
2630if (
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002631 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
menderico4861bb82009-09-29 00:31:36 +00002632 if test "$*" = "X"; then
2633 # -L didn't work.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002634 set X `ls -t "$srcdir/configure" conftest.file`
menderico4861bb82009-09-29 00:31:36 +00002635 fi
2636 rm -f conftest.file
2637 if test "$*" != "X $srcdir/configure conftest.file" \
2638 && test "$*" != "X conftest.file $srcdir/configure"; then
2639
2640 # If neither matched, then we have a broken ls. This can happen
2641 # if, for instance, CONFIG_SHELL is bash and it inherits a
2642 # broken ls alias from the environment. This has actually
2643 # happened. Such a system could not be considered "sane".
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002644 as_fn_error "ls -t appears to fail. Make sure there is not a broken
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002645alias in your environment" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002646 fi
2647
2648 test "$2" = conftest.file
2649 )
2650then
2651 # Ok.
2652 :
2653else
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002654 as_fn_error "newly created file is older than distributed files!
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002655Check your system clock" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002656fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2658$as_echo "yes" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002659test "$program_prefix" != NONE &&
2660 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2661# Use a double $ so make ignores it.
2662test "$program_suffix" != NONE &&
2663 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002664# Double any \ or $.
menderico4861bb82009-09-29 00:31:36 +00002665# By default was `s,x,x', remove it if useless.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002666ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2667program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
menderico4861bb82009-09-29 00:31:36 +00002668
2669# expand $ac_aux_dir to an absolute path
2670am_aux_dir=`cd $ac_aux_dir && pwd`
2671
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002672if test x"${MISSING+set}" != xset; then
2673 case $am_aux_dir in
2674 *\ * | *\ *)
2675 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2676 *)
2677 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2678 esac
2679fi
menderico4861bb82009-09-29 00:31:36 +00002680# Use eval to expand $SHELL
2681if eval "$MISSING --run true"; then
2682 am_missing_run="$MISSING --run "
2683else
2684 am_missing_run=
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2686$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
menderico4861bb82009-09-29 00:31:36 +00002687fi
2688
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002689if test x"${install_sh}" != xset; then
2690 case $am_aux_dir in
2691 *\ * | *\ *)
2692 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2693 *)
2694 install_sh="\${SHELL} $am_aux_dir/install-sh"
2695 esac
2696fi
2697
2698# Installed binaries are usually stripped using `strip' when the user
2699# run `make install-strip'. However `strip' might not be the right
2700# tool to use in cross-compilation environments, therefore Automake
2701# will honor the `STRIP' environment variable to overrule this program.
2702if test "$cross_compiling" != no; then
2703 if test -n "$ac_tool_prefix"; then
2704 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2705set dummy ${ac_tool_prefix}strip; ac_word=$2
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002708if test "${ac_cv_prog_STRIP+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002709 $as_echo_n "(cached) " >&6
2710else
2711 if test -n "$STRIP"; then
2712 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2713else
2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715for as_dir in $PATH
2716do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 break 2
2724 fi
2725done
2726 done
2727IFS=$as_save_IFS
2728
2729fi
2730fi
2731STRIP=$ac_cv_prog_STRIP
2732if test -n "$STRIP"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2734$as_echo "$STRIP" >&6; }
2735else
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737$as_echo "no" >&6; }
2738fi
2739
2740
2741fi
2742if test -z "$ac_cv_prog_STRIP"; then
2743 ac_ct_STRIP=$STRIP
2744 # Extract the first word of "strip", so it can be a program name with args.
2745set dummy strip; ac_word=$2
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002748if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002749 $as_echo_n "(cached) " >&6
2750else
2751 if test -n "$ac_ct_STRIP"; then
2752 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2753else
2754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755for as_dir in $PATH
2756do
2757 IFS=$as_save_IFS
2758 test -z "$as_dir" && as_dir=.
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2761 ac_cv_prog_ac_ct_STRIP="strip"
2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 break 2
2764 fi
2765done
2766 done
2767IFS=$as_save_IFS
2768
2769fi
2770fi
2771ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2772if test -n "$ac_ct_STRIP"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2774$as_echo "$ac_ct_STRIP" >&6; }
2775else
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777$as_echo "no" >&6; }
2778fi
2779
2780 if test "x$ac_ct_STRIP" = x; then
2781 STRIP=":"
2782 else
2783 case $cross_compiling:$ac_tool_warned in
2784yes:)
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2787ac_tool_warned=yes ;;
2788esac
2789 STRIP=$ac_ct_STRIP
2790 fi
2791else
2792 STRIP="$ac_cv_prog_STRIP"
2793fi
2794
2795fi
2796INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2797
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2799$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
menderico4861bb82009-09-29 00:31:36 +00002800if test -z "$MKDIR_P"; then
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002801 if test "${ac_cv_path_mkdir+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002802 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00002803else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2806do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002809 for ac_prog in mkdir gmkdir; do
menderico4861bb82009-09-29 00:31:36 +00002810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2812 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2813 'mkdir (GNU coreutils) '* | \
2814 'mkdir (coreutils) '* | \
2815 'mkdir (fileutils) '4.1*)
2816 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2817 break 3;;
2818 esac
2819 done
2820 done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002821 done
menderico4861bb82009-09-29 00:31:36 +00002822IFS=$as_save_IFS
2823
2824fi
2825
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002826 test -d ./--version && rmdir ./--version
menderico4861bb82009-09-29 00:31:36 +00002827 if test "${ac_cv_path_mkdir+set}" = set; then
2828 MKDIR_P="$ac_cv_path_mkdir -p"
2829 else
2830 # As a last resort, use the slow shell script. Don't cache a
2831 # value for MKDIR_P within a source directory, because that will
2832 # break other packages using the cache if that directory is
2833 # removed, or if the value is a relative name.
menderico4861bb82009-09-29 00:31:36 +00002834 MKDIR_P="$ac_install_sh -d"
2835 fi
2836fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2838$as_echo "$MKDIR_P" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002839
2840mkdir_p="$MKDIR_P"
2841case $mkdir_p in
2842 [\\/$]* | ?:[\\/]*) ;;
2843 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2844esac
2845
2846for ac_prog in gawk mawk nawk awk
2847do
2848 # Extract the first word of "$ac_prog", so it can be a program name with args.
2849set dummy $ac_prog; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002852if test "${ac_cv_prog_AWK+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002853 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00002854else
2855 if test -n "$AWK"; then
2856 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2857else
2858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859for as_dir in $PATH
2860do
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002863 for ac_exec_ext in '' $ac_executable_extensions; do
menderico4861bb82009-09-29 00:31:36 +00002864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865 ac_cv_prog_AWK="$ac_prog"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00002867 break 2
2868 fi
2869done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002870 done
menderico4861bb82009-09-29 00:31:36 +00002871IFS=$as_save_IFS
2872
2873fi
2874fi
2875AWK=$ac_cv_prog_AWK
2876if test -n "$AWK"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2878$as_echo "$AWK" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002879else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002882fi
2883
2884
2885 test -n "$AWK" && break
2886done
2887
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2889$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2890set x ${MAKE-make}
2891ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002892if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002893 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00002894else
2895 cat >conftest.make <<\_ACEOF
2896SHELL = /bin/sh
2897all:
2898 @echo '@@@%%%=$(MAKE)=@@@%%%'
2899_ACEOF
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002900# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
menderico4861bb82009-09-29 00:31:36 +00002901case `${MAKE-make} -f conftest.make 2>/dev/null` in
2902 *@@@%%%=?*=@@@%%%*)
2903 eval ac_cv_prog_make_${ac_make}_set=yes;;
2904 *)
2905 eval ac_cv_prog_make_${ac_make}_set=no;;
2906esac
2907rm -f conftest.make
2908fi
2909if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2911$as_echo "yes" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002912 SET_MAKE=
2913else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002916 SET_MAKE="MAKE=${MAKE-make}"
2917fi
2918
2919rm -rf .tst 2>/dev/null
2920mkdir .tst 2>/dev/null
2921if test -d .tst; then
2922 am__leading_dot=.
2923else
2924 am__leading_dot=_
2925fi
2926rmdir .tst 2>/dev/null
2927
2928if test "`cd $srcdir && pwd`" != "`pwd`"; then
2929 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2930 # is not polluted with repeated "-I."
2931 am__isrc=' -I$(srcdir)'
2932 # test to see if srcdir already configured
2933 if test -f $srcdir/config.status; then
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002934 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002935 fi
2936fi
2937
2938# test whether we have cygpath
2939if test -z "$CYGPATH_W"; then
2940 if (cygpath --version) >/dev/null 2>/dev/null; then
2941 CYGPATH_W='cygpath -w'
2942 else
2943 CYGPATH_W=echo
2944 fi
2945fi
2946
2947
2948# Define the identity of the package.
2949 PACKAGE='stressapptest'
nick.j.sanders318caaf2014-02-11 09:02:48 +00002950 VERSION='1.0.7_autoconf'
menderico4861bb82009-09-29 00:31:36 +00002951
2952
2953cat >>confdefs.h <<_ACEOF
2954#define PACKAGE "$PACKAGE"
2955_ACEOF
2956
2957
2958cat >>confdefs.h <<_ACEOF
2959#define VERSION "$VERSION"
2960_ACEOF
2961
2962# Some tools Automake needs.
2963
2964ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2965
2966
2967AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2968
2969
2970AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2971
2972
2973AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2974
2975
2976MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2977
menderico4861bb82009-09-29 00:31:36 +00002978# We need awk for the "check" target. The system "awk" is bad on
2979# some platforms.
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002980# Always define AMTAR for backward compatibility.
menderico4861bb82009-09-29 00:31:36 +00002981
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002982AMTAR=${AMTAR-"${am_missing_run}tar"}
2983
2984am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
menderico4861bb82009-09-29 00:31:36 +00002985
2986
2987
2988
2989
2990
2991ac_config_headers="$ac_config_headers src/stressapptest_config.h"
2992
2993
2994# Checks for programs.
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002995# Don't generate CXXFLAGS defaults: if CXXFLAGS are unset
2996# AC_PROG_CXX will override them with unwanted defaults.
2997CXXFLAGS="$CXXFLAGS"
menderico4861bb82009-09-29 00:31:36 +00002998ac_ext=cpp
2999ac_cpp='$CXXCPP $CPPFLAGS'
3000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3003if test -z "$CXX"; then
3004 if test -n "$CCC"; then
3005 CXX=$CCC
3006 else
3007 if test -n "$ac_tool_prefix"; then
3008 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3009 do
3010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3011set dummy $ac_tool_prefix$ac_prog; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003014if test "${ac_cv_prog_CXX+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003015 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003016else
3017 if test -n "$CXX"; then
3018 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3019else
3020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021for as_dir in $PATH
3022do
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003025 for ac_exec_ext in '' $ac_executable_extensions; do
menderico4861bb82009-09-29 00:31:36 +00003026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3027 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003029 break 2
3030 fi
3031done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003032 done
menderico4861bb82009-09-29 00:31:36 +00003033IFS=$as_save_IFS
3034
3035fi
3036fi
3037CXX=$ac_cv_prog_CXX
3038if test -n "$CXX"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3040$as_echo "$CXX" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003041else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003044fi
3045
3046
3047 test -n "$CXX" && break
3048 done
3049fi
3050if test -z "$CXX"; then
3051 ac_ct_CXX=$CXX
3052 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3053do
3054 # Extract the first word of "$ac_prog", so it can be a program name with args.
3055set dummy $ac_prog; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003058if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003059 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003060else
3061 if test -n "$ac_ct_CXX"; then
3062 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3063else
3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065for as_dir in $PATH
3066do
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003069 for ac_exec_ext in '' $ac_executable_extensions; do
menderico4861bb82009-09-29 00:31:36 +00003070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071 ac_cv_prog_ac_ct_CXX="$ac_prog"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003073 break 2
3074 fi
3075done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003076 done
menderico4861bb82009-09-29 00:31:36 +00003077IFS=$as_save_IFS
3078
3079fi
3080fi
3081ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3082if test -n "$ac_ct_CXX"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3084$as_echo "$ac_ct_CXX" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003085else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003088fi
3089
3090
3091 test -n "$ac_ct_CXX" && break
3092done
3093
3094 if test "x$ac_ct_CXX" = x; then
3095 CXX="g++"
3096 else
3097 case $cross_compiling:$ac_tool_warned in
3098yes:)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
menderico4861bb82009-09-29 00:31:36 +00003101ac_tool_warned=yes ;;
3102esac
3103 CXX=$ac_ct_CXX
3104 fi
3105fi
3106
3107 fi
3108fi
3109# Provide some information about the compiler.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003110$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3111set X $ac_compile
3112ac_compiler=$2
3113for ac_option in --version -v -V -qversion; do
3114 { { ac_try="$ac_compiler $ac_option >&5"
menderico4861bb82009-09-29 00:31:36 +00003115case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3120$as_echo "$ac_try_echo"; } >&5
3121 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
menderico4861bb82009-09-29 00:31:36 +00003122 ac_status=$?
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003123 if test -s conftest.err; then
3124 sed '10a\
3125... rest of stderr output deleted ...
3126 10q' conftest.err >conftest.er1
3127 cat conftest.er1 >&5
3128 fi
3129 rm -f conftest.er1 conftest.err
3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131 test $ac_status = 0; }
3132done
menderico4861bb82009-09-29 00:31:36 +00003133
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00003135/* end confdefs.h. */
3136
3137int
3138main ()
3139{
3140
3141 ;
3142 return 0;
3143}
3144_ACEOF
3145ac_clean_files_save=$ac_clean_files
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003146ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
menderico4861bb82009-09-29 00:31:36 +00003147# Try to create an executable without -o first, disregard a.out.
3148# It will help us diagnose broken compilers, and finding out an intuition
3149# of exeext.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3151$as_echo_n "checking whether the C++ compiler works... " >&6; }
3152ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3153
3154# The possible output files:
3155ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3156
menderico4861bb82009-09-29 00:31:36 +00003157ac_rmfiles=
3158for ac_file in $ac_files
3159do
3160 case $ac_file in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
menderico4861bb82009-09-29 00:31:36 +00003162 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3163 esac
3164done
3165rm -f $ac_rmfiles
3166
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003167if { { ac_try="$ac_link_default"
menderico4861bb82009-09-29 00:31:36 +00003168case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3173$as_echo "$ac_try_echo"; } >&5
menderico4861bb82009-09-29 00:31:36 +00003174 (eval "$ac_link_default") 2>&5
3175 ac_status=$?
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3177 test $ac_status = 0; }; then :
menderico4861bb82009-09-29 00:31:36 +00003178 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3179# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3180# in a Makefile. We should not override ac_cv_exeext if it was cached,
3181# so that the user can short-circuit this test for compilers unknown to
3182# Autoconf.
3183for ac_file in $ac_files ''
3184do
3185 test -f "$ac_file" || continue
3186 case $ac_file in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
menderico4861bb82009-09-29 00:31:36 +00003188 ;;
3189 [ab].out )
3190 # We found the default executable, but exeext='' is most
3191 # certainly right.
3192 break;;
3193 *.* )
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003194 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
menderico4861bb82009-09-29 00:31:36 +00003195 then :; else
3196 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3197 fi
3198 # We set ac_cv_exeext here because the later test for it is not
3199 # safe: cross compilers may not add the suffix if given an `-o'
3200 # argument, so we may need to know it at that point already.
3201 # Even if this section looks crufty: it has the advantage of
3202 # actually working.
3203 break;;
3204 * )
3205 break;;
3206 esac
3207done
3208test "$ac_cv_exeext" = no && ac_cv_exeext=
3209
3210else
3211 ac_file=''
3212fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003213if test -z "$ac_file"; then :
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215$as_echo "no" >&6; }
3216$as_echo "$as_me: failed program was:" >&5
menderico4861bb82009-09-29 00:31:36 +00003217sed 's/^/| /' conftest.$ac_ext >&5
3218
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003219{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003221{ as_fn_set_status 77
3222as_fn_error "C++ compiler cannot create executables
3223See \`config.log' for more details." "$LINENO" 5; }; }
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003224else
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226$as_echo "yes" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003227fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3229$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3231$as_echo "$ac_file" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003232ac_exeext=$ac_cv_exeext
3233
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003234rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
menderico4861bb82009-09-29 00:31:36 +00003235ac_clean_files=$ac_clean_files_save
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3237$as_echo_n "checking for suffix of executables... " >&6; }
3238if { { ac_try="$ac_link"
menderico4861bb82009-09-29 00:31:36 +00003239case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244$as_echo "$ac_try_echo"; } >&5
menderico4861bb82009-09-29 00:31:36 +00003245 (eval "$ac_link") 2>&5
3246 ac_status=$?
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }; then :
menderico4861bb82009-09-29 00:31:36 +00003249 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3250# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3251# work properly (i.e., refer to `conftest.exe'), while it won't with
3252# `rm'.
3253for ac_file in conftest.exe conftest conftest.*; do
3254 test -f "$ac_file" || continue
3255 case $ac_file in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
menderico4861bb82009-09-29 00:31:36 +00003257 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3258 break;;
3259 * ) break;;
3260 esac
3261done
3262else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003265as_fn_error "cannot compute suffix of executables: cannot compile and link
3266See \`config.log' for more details." "$LINENO" 5; }
menderico4861bb82009-09-29 00:31:36 +00003267fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003268rm -f conftest conftest$ac_cv_exeext
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3270$as_echo "$ac_cv_exeext" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003271
3272rm -f conftest.$ac_ext
3273EXEEXT=$ac_cv_exeext
3274ac_exeext=$EXEEXT
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276/* end confdefs.h. */
3277#include <stdio.h>
3278int
3279main ()
3280{
3281FILE *f = fopen ("conftest.out", "w");
3282 return ferror (f) || fclose (f) != 0;
3283
3284 ;
3285 return 0;
3286}
menderico4861bb82009-09-29 00:31:36 +00003287_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003288ac_clean_files="$ac_clean_files conftest.out"
3289# Check that the compiler produces executables we can run. If not, either
3290# the compiler is broken, or we cross compile.
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3292$as_echo_n "checking whether we are cross compiling... " >&6; }
3293if test "$cross_compiling" != yes; then
3294 { { ac_try="$ac_link"
3295case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298esac
3299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300$as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_link") 2>&5
3302 ac_status=$?
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }
3305 if { ac_try='./conftest$ac_cv_exeext'
3306 { { case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309esac
3310eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3311$as_echo "$ac_try_echo"; } >&5
3312 (eval "$ac_try") 2>&5
3313 ac_status=$?
3314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3315 test $ac_status = 0; }; }; then
3316 cross_compiling=no
3317 else
3318 if test "$cross_compiling" = maybe; then
3319 cross_compiling=yes
3320 else
3321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003323as_fn_error "cannot run C++ compiled programs.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003324If you meant to cross compile, use \`--host'.
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003325See \`config.log' for more details." "$LINENO" 5; }
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003326 fi
3327 fi
3328fi
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3330$as_echo "$cross_compiling" >&6; }
3331
3332rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3333ac_clean_files=$ac_clean_files_save
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3335$as_echo_n "checking for suffix of object files... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003336if test "${ac_cv_objext+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003337 $as_echo_n "(cached) " >&6
3338else
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00003340/* end confdefs.h. */
3341
3342int
3343main ()
3344{
3345
3346 ;
3347 return 0;
3348}
3349_ACEOF
3350rm -f conftest.o conftest.obj
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003351if { { ac_try="$ac_compile"
menderico4861bb82009-09-29 00:31:36 +00003352case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357$as_echo "$ac_try_echo"; } >&5
menderico4861bb82009-09-29 00:31:36 +00003358 (eval "$ac_compile") 2>&5
3359 ac_status=$?
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }; then :
menderico4861bb82009-09-29 00:31:36 +00003362 for ac_file in conftest.o conftest.obj conftest.*; do
3363 test -f "$ac_file" || continue;
3364 case $ac_file in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
menderico4861bb82009-09-29 00:31:36 +00003366 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3367 break;;
3368 esac
3369done
3370else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003371 $as_echo "$as_me: failed program was:" >&5
menderico4861bb82009-09-29 00:31:36 +00003372sed 's/^/| /' conftest.$ac_ext >&5
3373
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003374{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003376as_fn_error "cannot compute suffix of object files: cannot compile
3377See \`config.log' for more details." "$LINENO" 5; }
menderico4861bb82009-09-29 00:31:36 +00003378fi
menderico4861bb82009-09-29 00:31:36 +00003379rm -f conftest.$ac_cv_objext conftest.$ac_ext
3380fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3382$as_echo "$ac_cv_objext" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003383OBJEXT=$ac_cv_objext
3384ac_objext=$OBJEXT
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3386$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003387if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003388 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003389else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00003391/* end confdefs.h. */
3392
3393int
3394main ()
3395{
3396#ifndef __GNUC__
3397 choke me
3398#endif
3399
3400 ;
3401 return 0;
3402}
3403_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003404if ac_fn_cxx_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00003405 ac_compiler_gnu=yes
3406else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003407 ac_compiler_gnu=no
menderico4861bb82009-09-29 00:31:36 +00003408fi
menderico4861bb82009-09-29 00:31:36 +00003409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3411
3412fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3414$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3415if test $ac_compiler_gnu = yes; then
3416 GXX=yes
3417else
3418 GXX=
3419fi
menderico4861bb82009-09-29 00:31:36 +00003420ac_test_CXXFLAGS=${CXXFLAGS+set}
3421ac_save_CXXFLAGS=$CXXFLAGS
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3423$as_echo_n "checking whether $CXX accepts -g... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003424if test "${ac_cv_prog_cxx_g+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003425 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003426else
3427 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3428 ac_cxx_werror_flag=yes
3429 ac_cv_prog_cxx_g=no
3430 CXXFLAGS="-g"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00003432/* end confdefs.h. */
3433
3434int
3435main ()
3436{
3437
3438 ;
3439 return 0;
3440}
3441_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003442if ac_fn_cxx_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00003443 ac_cv_prog_cxx_g=yes
3444else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003445 CXXFLAGS=""
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00003447/* end confdefs.h. */
3448
3449int
3450main ()
3451{
3452
3453 ;
3454 return 0;
3455}
3456_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003457if ac_fn_cxx_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00003458
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003459else
3460 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
menderico4861bb82009-09-29 00:31:36 +00003461 CXXFLAGS="-g"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00003463/* end confdefs.h. */
3464
3465int
3466main ()
3467{
3468
3469 ;
3470 return 0;
3471}
3472_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003473if ac_fn_cxx_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00003474 ac_cv_prog_cxx_g=yes
menderico4861bb82009-09-29 00:31:36 +00003475fi
menderico4861bb82009-09-29 00:31:36 +00003476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477fi
menderico4861bb82009-09-29 00:31:36 +00003478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479fi
menderico4861bb82009-09-29 00:31:36 +00003480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3482fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3484$as_echo "$ac_cv_prog_cxx_g" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003485if test "$ac_test_CXXFLAGS" = set; then
3486 CXXFLAGS=$ac_save_CXXFLAGS
3487elif test $ac_cv_prog_cxx_g = yes; then
3488 if test "$GXX" = yes; then
3489 CXXFLAGS="-g -O2"
3490 else
3491 CXXFLAGS="-g"
3492 fi
3493else
3494 if test "$GXX" = yes; then
3495 CXXFLAGS="-O2"
3496 else
3497 CXXFLAGS=
3498 fi
3499fi
3500ac_ext=c
3501ac_cpp='$CPP $CPPFLAGS'
3502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505DEPDIR="${am__leading_dot}deps"
3506
3507ac_config_commands="$ac_config_commands depfiles"
3508
3509
3510am_make=${MAKE-make}
3511cat > confinc << 'END'
3512am__doit:
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003513 @echo this is the am__doit target
menderico4861bb82009-09-29 00:31:36 +00003514.PHONY: am__doit
3515END
3516# If we don't find an include directive, just comment out the code.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3518$as_echo_n "checking for style of include used by $am_make... " >&6; }
menderico4861bb82009-09-29 00:31:36 +00003519am__include="#"
3520am__quote=
3521_am_result=none
3522# First try GNU make style include.
3523echo "include confinc" > confmf
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003524# Ignore all kinds of additional output from `make'.
3525case `$am_make -s -f confmf 2> /dev/null` in #(
3526*the\ am__doit\ target*)
3527 am__include=include
3528 am__quote=
3529 _am_result=GNU
3530 ;;
3531esac
menderico4861bb82009-09-29 00:31:36 +00003532# Now try BSD make style include.
3533if test "$am__include" = "#"; then
3534 echo '.include "confinc"' > confmf
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003535 case `$am_make -s -f confmf 2> /dev/null` in #(
3536 *the\ am__doit\ target*)
3537 am__include=.include
3538 am__quote="\""
3539 _am_result=BSD
3540 ;;
3541 esac
menderico4861bb82009-09-29 00:31:36 +00003542fi
3543
3544
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3546$as_echo "$_am_result" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003547rm -f confinc confmf
3548
3549# Check whether --enable-dependency-tracking was given.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003550if test "${enable_dependency_tracking+set}" = set; then :
menderico4861bb82009-09-29 00:31:36 +00003551 enableval=$enable_dependency_tracking;
3552fi
3553
3554if test "x$enable_dependency_tracking" != xno; then
3555 am_depcomp="$ac_aux_dir/depcomp"
3556 AMDEPBACKSLASH='\'
3557fi
3558 if test "x$enable_dependency_tracking" != xno; then
3559 AMDEP_TRUE=
3560 AMDEP_FALSE='#'
3561else
3562 AMDEP_TRUE='#'
3563 AMDEP_FALSE=
3564fi
3565
3566
3567
3568depcc="$CXX" am_compiler_list=
3569
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3571$as_echo_n "checking dependency style of $depcc... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003572if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003573 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003574else
3575 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3576 # We make a subdir and do the tests there. Otherwise we can end up
3577 # making bogus files that we don't know about and never remove. For
3578 # instance it was reported that on HP-UX the gcc test will end up
3579 # making a dummy file named `D' -- because `-MD' means `put the output
3580 # in D'.
3581 mkdir conftest.dir
3582 # Copy depcomp to subdir because otherwise we won't find it if we're
3583 # using a relative directory.
3584 cp "$am_depcomp" conftest.dir
3585 cd conftest.dir
3586 # We will build objects and dependencies in a subdirectory because
3587 # it helps to detect inapplicable dependency modes. For instance
3588 # both Tru64's cc and ICC support -MD to output dependencies as a
3589 # side effect of compilation, but ICC will put the dependencies in
3590 # the current directory while Tru64 will put them in the object
3591 # directory.
3592 mkdir sub
3593
3594 am_cv_CXX_dependencies_compiler_type=none
3595 if test "$am_compiler_list" = ""; then
3596 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3597 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003598 am__universal=false
3599 case " $depcc " in #(
3600 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3601 esac
3602
menderico4861bb82009-09-29 00:31:36 +00003603 for depmode in $am_compiler_list; do
3604 # Setup a source with many dependencies, because some compilers
3605 # like to wrap large dependency lists on column 80 (with \), and
3606 # we should not choose a depcomp mode which is confused by this.
3607 #
3608 # We need to recreate these files for each test, as the compiler may
3609 # overwrite some of them when testing with obscure command lines.
3610 # This happens at least with the AIX C compiler.
3611 : > sub/conftest.c
3612 for i in 1 2 3 4 5 6; do
3613 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3614 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3615 # Solaris 8's {/usr,}/bin/sh.
3616 touch sub/conftst$i.h
3617 done
3618 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3619
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003620 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3621 # mode. It turns out that the SunPro C++ compiler does not properly
3622 # handle `-M -o', and we need to detect this. Also, some Intel
3623 # versions had trouble with output in subdirs
3624 am__obj=sub/conftest.${OBJEXT-o}
3625 am__minus_obj="-o $am__obj"
menderico4861bb82009-09-29 00:31:36 +00003626 case $depmode in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003627 gcc)
3628 # This depmode causes a compiler race in universal mode.
3629 test "$am__universal" = false || continue
3630 ;;
menderico4861bb82009-09-29 00:31:36 +00003631 nosideeffect)
3632 # after this tag, mechanisms are not by side-effect, so they'll
3633 # only be used when explicitly requested
3634 if test "x$enable_dependency_tracking" = xyes; then
3635 continue
3636 else
3637 break
3638 fi
3639 ;;
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003640 msvisualcpp | msvcmsys)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003641 # This compiler won't grok `-c -o', but also, the minuso test has
3642 # not run yet. These depmodes are late enough in the game, and
3643 # so weak that their functioning should not be impacted.
3644 am__obj=conftest.${OBJEXT-o}
3645 am__minus_obj=
3646 ;;
menderico4861bb82009-09-29 00:31:36 +00003647 none) break ;;
3648 esac
menderico4861bb82009-09-29 00:31:36 +00003649 if depmode=$depmode \
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003650 source=sub/conftest.c object=$am__obj \
menderico4861bb82009-09-29 00:31:36 +00003651 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003652 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
menderico4861bb82009-09-29 00:31:36 +00003653 >/dev/null 2>conftest.err &&
3654 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3655 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003656 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
menderico4861bb82009-09-29 00:31:36 +00003657 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3658 # icc doesn't choke on unknown options, it will just issue warnings
3659 # or remarks (even with -Werror). So we grep stderr for any message
3660 # that says an option was ignored or not supported.
3661 # When given -MP, icc 7.0 and 7.1 complain thusly:
3662 # icc: Command line warning: ignoring option '-M'; no argument required
3663 # The diagnosis changed in icc 8.0:
3664 # icc: Command line remark: option '-MP' not supported
3665 if (grep 'ignoring option' conftest.err ||
3666 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3667 am_cv_CXX_dependencies_compiler_type=$depmode
3668 break
3669 fi
3670 fi
3671 done
3672
3673 cd ..
3674 rm -rf conftest.dir
3675else
3676 am_cv_CXX_dependencies_compiler_type=none
3677fi
3678
3679fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3681$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003682CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3683
3684 if
3685 test "x$enable_dependency_tracking" != xno \
3686 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3687 am__fastdepCXX_TRUE=
3688 am__fastdepCXX_FALSE='#'
3689else
3690 am__fastdepCXX_TRUE='#'
3691 am__fastdepCXX_FALSE=
3692fi
3693
3694
3695ac_ext=c
3696ac_cpp='$CPP $CPPFLAGS'
3697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699ac_compiler_gnu=$ac_cv_c_compiler_gnu
3700if test -n "$ac_tool_prefix"; then
3701 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3702set dummy ${ac_tool_prefix}gcc; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003705if test "${ac_cv_prog_CC+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003706 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003707else
3708 if test -n "$CC"; then
3709 ac_cv_prog_CC="$CC" # Let the user override the test.
3710else
3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712for as_dir in $PATH
3713do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003716 for ac_exec_ext in '' $ac_executable_extensions; do
menderico4861bb82009-09-29 00:31:36 +00003717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3718 ac_cv_prog_CC="${ac_tool_prefix}gcc"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003720 break 2
3721 fi
3722done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003723 done
menderico4861bb82009-09-29 00:31:36 +00003724IFS=$as_save_IFS
3725
3726fi
3727fi
3728CC=$ac_cv_prog_CC
3729if test -n "$CC"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731$as_echo "$CC" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003732else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003735fi
3736
3737
3738fi
3739if test -z "$ac_cv_prog_CC"; then
3740 ac_ct_CC=$CC
3741 # Extract the first word of "gcc", so it can be a program name with args.
3742set dummy gcc; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003745if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003746 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003747else
3748 if test -n "$ac_ct_CC"; then
3749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3750else
3751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752for as_dir in $PATH
3753do
3754 IFS=$as_save_IFS
3755 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003756 for ac_exec_ext in '' $ac_executable_extensions; do
menderico4861bb82009-09-29 00:31:36 +00003757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3758 ac_cv_prog_ac_ct_CC="gcc"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003760 break 2
3761 fi
3762done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003763 done
menderico4861bb82009-09-29 00:31:36 +00003764IFS=$as_save_IFS
3765
3766fi
3767fi
3768ac_ct_CC=$ac_cv_prog_ac_ct_CC
3769if test -n "$ac_ct_CC"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3771$as_echo "$ac_ct_CC" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003772else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003775fi
3776
3777 if test "x$ac_ct_CC" = x; then
3778 CC=""
3779 else
3780 case $cross_compiling:$ac_tool_warned in
3781yes:)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
menderico4861bb82009-09-29 00:31:36 +00003784ac_tool_warned=yes ;;
3785esac
3786 CC=$ac_ct_CC
3787 fi
3788else
3789 CC="$ac_cv_prog_CC"
3790fi
3791
3792if test -z "$CC"; then
3793 if test -n "$ac_tool_prefix"; then
3794 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3795set dummy ${ac_tool_prefix}cc; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003798if test "${ac_cv_prog_CC+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003799 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003800else
3801 if test -n "$CC"; then
3802 ac_cv_prog_CC="$CC" # Let the user override the test.
3803else
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003809 for ac_exec_ext in '' $ac_executable_extensions; do
menderico4861bb82009-09-29 00:31:36 +00003810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3811 ac_cv_prog_CC="${ac_tool_prefix}cc"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003813 break 2
3814 fi
3815done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003816 done
menderico4861bb82009-09-29 00:31:36 +00003817IFS=$as_save_IFS
3818
3819fi
3820fi
3821CC=$ac_cv_prog_CC
3822if test -n "$CC"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3824$as_echo "$CC" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003825else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003828fi
3829
3830
3831 fi
3832fi
3833if test -z "$CC"; then
3834 # Extract the first word of "cc", so it can be a program name with args.
3835set dummy cc; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003838if test "${ac_cv_prog_CC+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003839 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003840else
3841 if test -n "$CC"; then
3842 ac_cv_prog_CC="$CC" # Let the user override the test.
3843else
3844 ac_prog_rejected=no
3845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846for as_dir in $PATH
3847do
3848 IFS=$as_save_IFS
3849 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003850 for ac_exec_ext in '' $ac_executable_extensions; do
menderico4861bb82009-09-29 00:31:36 +00003851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3852 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3853 ac_prog_rejected=yes
3854 continue
3855 fi
3856 ac_cv_prog_CC="cc"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003858 break 2
3859 fi
3860done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003861 done
menderico4861bb82009-09-29 00:31:36 +00003862IFS=$as_save_IFS
3863
3864if test $ac_prog_rejected = yes; then
3865 # We found a bogon in the path, so make sure we never use it.
3866 set dummy $ac_cv_prog_CC
3867 shift
3868 if test $# != 0; then
3869 # We chose a different compiler from the bogus one.
3870 # However, it has the same basename, so the bogon will be chosen
3871 # first if we set CC to just the basename; use the full file name.
3872 shift
3873 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3874 fi
3875fi
3876fi
3877fi
3878CC=$ac_cv_prog_CC
3879if test -n "$CC"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3881$as_echo "$CC" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003882else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003885fi
3886
3887
3888fi
3889if test -z "$CC"; then
3890 if test -n "$ac_tool_prefix"; then
3891 for ac_prog in cl.exe
3892 do
3893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3894set dummy $ac_tool_prefix$ac_prog; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003897if test "${ac_cv_prog_CC+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003898 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003899else
3900 if test -n "$CC"; then
3901 ac_cv_prog_CC="$CC" # Let the user override the test.
3902else
3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH
3905do
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003908 for ac_exec_ext in '' $ac_executable_extensions; do
menderico4861bb82009-09-29 00:31:36 +00003909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3910 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003912 break 2
3913 fi
3914done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003915 done
menderico4861bb82009-09-29 00:31:36 +00003916IFS=$as_save_IFS
3917
3918fi
3919fi
3920CC=$ac_cv_prog_CC
3921if test -n "$CC"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3923$as_echo "$CC" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003924else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003927fi
3928
3929
3930 test -n "$CC" && break
3931 done
3932fi
3933if test -z "$CC"; then
3934 ac_ct_CC=$CC
3935 for ac_prog in cl.exe
3936do
3937 # Extract the first word of "$ac_prog", so it can be a program name with args.
3938set dummy $ac_prog; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003941if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003942 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003943else
3944 if test -n "$ac_ct_CC"; then
3945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3946else
3947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948for as_dir in $PATH
3949do
3950 IFS=$as_save_IFS
3951 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003952 for ac_exec_ext in '' $ac_executable_extensions; do
menderico4861bb82009-09-29 00:31:36 +00003953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3954 ac_cv_prog_ac_ct_CC="$ac_prog"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003956 break 2
3957 fi
3958done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003959 done
menderico4861bb82009-09-29 00:31:36 +00003960IFS=$as_save_IFS
3961
3962fi
3963fi
3964ac_ct_CC=$ac_cv_prog_ac_ct_CC
3965if test -n "$ac_ct_CC"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3967$as_echo "$ac_ct_CC" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003968else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003971fi
3972
3973
3974 test -n "$ac_ct_CC" && break
3975done
3976
3977 if test "x$ac_ct_CC" = x; then
3978 CC=""
3979 else
3980 case $cross_compiling:$ac_tool_warned in
3981yes:)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
menderico4861bb82009-09-29 00:31:36 +00003984ac_tool_warned=yes ;;
3985esac
3986 CC=$ac_ct_CC
3987 fi
3988fi
3989
3990fi
3991
3992
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003993test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003995as_fn_error "no acceptable C compiler found in \$PATH
3996See \`config.log' for more details." "$LINENO" 5; }
menderico4861bb82009-09-29 00:31:36 +00003997
3998# Provide some information about the compiler.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003999$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4000set X $ac_compile
4001ac_compiler=$2
4002for ac_option in --version -v -V -qversion; do
4003 { { ac_try="$ac_compiler $ac_option >&5"
menderico4861bb82009-09-29 00:31:36 +00004004case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009$as_echo "$ac_try_echo"; } >&5
4010 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
menderico4861bb82009-09-29 00:31:36 +00004011 ac_status=$?
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004012 if test -s conftest.err; then
4013 sed '10a\
4014... rest of stderr output deleted ...
4015 10q' conftest.err >conftest.er1
4016 cat conftest.er1 >&5
4017 fi
4018 rm -f conftest.er1 conftest.err
4019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020 test $ac_status = 0; }
4021done
menderico4861bb82009-09-29 00:31:36 +00004022
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4024$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004025if test "${ac_cv_c_compiler_gnu+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004026 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004027else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004029/* end confdefs.h. */
4030
4031int
4032main ()
4033{
4034#ifndef __GNUC__
4035 choke me
4036#endif
4037
4038 ;
4039 return 0;
4040}
4041_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004042if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004043 ac_compiler_gnu=yes
4044else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004045 ac_compiler_gnu=no
menderico4861bb82009-09-29 00:31:36 +00004046fi
menderico4861bb82009-09-29 00:31:36 +00004047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048ac_cv_c_compiler_gnu=$ac_compiler_gnu
4049
4050fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4052$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4053if test $ac_compiler_gnu = yes; then
4054 GCC=yes
4055else
4056 GCC=
4057fi
menderico4861bb82009-09-29 00:31:36 +00004058ac_test_CFLAGS=${CFLAGS+set}
4059ac_save_CFLAGS=$CFLAGS
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4061$as_echo_n "checking whether $CC accepts -g... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004062if test "${ac_cv_prog_cc_g+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004063 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004064else
4065 ac_save_c_werror_flag=$ac_c_werror_flag
4066 ac_c_werror_flag=yes
4067 ac_cv_prog_cc_g=no
4068 CFLAGS="-g"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004070/* end confdefs.h. */
4071
4072int
4073main ()
4074{
4075
4076 ;
4077 return 0;
4078}
4079_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004080if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004081 ac_cv_prog_cc_g=yes
4082else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004083 CFLAGS=""
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004085/* end confdefs.h. */
4086
4087int
4088main ()
4089{
4090
4091 ;
4092 return 0;
4093}
4094_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004095if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004096
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004097else
4098 ac_c_werror_flag=$ac_save_c_werror_flag
menderico4861bb82009-09-29 00:31:36 +00004099 CFLAGS="-g"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004101/* end confdefs.h. */
4102
4103int
4104main ()
4105{
4106
4107 ;
4108 return 0;
4109}
4110_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004111if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004112 ac_cv_prog_cc_g=yes
menderico4861bb82009-09-29 00:31:36 +00004113fi
menderico4861bb82009-09-29 00:31:36 +00004114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115fi
menderico4861bb82009-09-29 00:31:36 +00004116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117fi
menderico4861bb82009-09-29 00:31:36 +00004118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119 ac_c_werror_flag=$ac_save_c_werror_flag
4120fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4122$as_echo "$ac_cv_prog_cc_g" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004123if test "$ac_test_CFLAGS" = set; then
4124 CFLAGS=$ac_save_CFLAGS
4125elif test $ac_cv_prog_cc_g = yes; then
4126 if test "$GCC" = yes; then
4127 CFLAGS="-g -O2"
4128 else
4129 CFLAGS="-g"
4130 fi
4131else
4132 if test "$GCC" = yes; then
4133 CFLAGS="-O2"
4134 else
4135 CFLAGS=
4136 fi
4137fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4139$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004140if test "${ac_cv_prog_cc_c89+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004141 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004142else
4143 ac_cv_prog_cc_c89=no
4144ac_save_CC=$CC
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004146/* end confdefs.h. */
4147#include <stdarg.h>
4148#include <stdio.h>
4149#include <sys/types.h>
4150#include <sys/stat.h>
4151/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4152struct buf { int x; };
4153FILE * (*rcsopen) (struct buf *, struct stat *, int);
4154static char *e (p, i)
4155 char **p;
4156 int i;
4157{
4158 return p[i];
4159}
4160static char *f (char * (*g) (char **, int), char **p, ...)
4161{
4162 char *s;
4163 va_list v;
4164 va_start (v,p);
4165 s = g (p, va_arg (v,int));
4166 va_end (v);
4167 return s;
4168}
4169
4170/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4171 function prototypes and stuff, but not '\xHH' hex character constants.
4172 These don't provoke an error unfortunately, instead are silently treated
4173 as 'x'. The following induces an error, until -std is added to get
4174 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4175 array size at least. It's necessary to write '\x00'==0 to get something
4176 that's true only with -std. */
4177int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4178
4179/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4180 inside strings and character constants. */
4181#define FOO(x) 'x'
4182int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4183
4184int test (int i, double x);
4185struct s1 {int (*f) (int a);};
4186struct s2 {int (*f) (double a);};
4187int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4188int argc;
4189char **argv;
4190int
4191main ()
4192{
4193return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4194 ;
4195 return 0;
4196}
4197_ACEOF
4198for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4199 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4200do
4201 CC="$ac_save_CC $ac_arg"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004202 if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004203 ac_cv_prog_cc_c89=$ac_arg
menderico4861bb82009-09-29 00:31:36 +00004204fi
menderico4861bb82009-09-29 00:31:36 +00004205rm -f core conftest.err conftest.$ac_objext
4206 test "x$ac_cv_prog_cc_c89" != "xno" && break
4207done
4208rm -f conftest.$ac_ext
4209CC=$ac_save_CC
4210
4211fi
4212# AC_CACHE_VAL
4213case "x$ac_cv_prog_cc_c89" in
4214 x)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4216$as_echo "none needed" >&6; } ;;
menderico4861bb82009-09-29 00:31:36 +00004217 xno)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4219$as_echo "unsupported" >&6; } ;;
menderico4861bb82009-09-29 00:31:36 +00004220 *)
4221 CC="$CC $ac_cv_prog_cc_c89"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4223$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
menderico4861bb82009-09-29 00:31:36 +00004224esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004225if test "x$ac_cv_prog_cc_c89" != xno; then :
menderico4861bb82009-09-29 00:31:36 +00004226
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004227fi
menderico4861bb82009-09-29 00:31:36 +00004228
4229ac_ext=c
4230ac_cpp='$CPP $CPPFLAGS'
4231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234
4235depcc="$CC" am_compiler_list=
4236
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4238$as_echo_n "checking dependency style of $depcc... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004239if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004240 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004241else
4242 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4243 # We make a subdir and do the tests there. Otherwise we can end up
4244 # making bogus files that we don't know about and never remove. For
4245 # instance it was reported that on HP-UX the gcc test will end up
4246 # making a dummy file named `D' -- because `-MD' means `put the output
4247 # in D'.
4248 mkdir conftest.dir
4249 # Copy depcomp to subdir because otherwise we won't find it if we're
4250 # using a relative directory.
4251 cp "$am_depcomp" conftest.dir
4252 cd conftest.dir
4253 # We will build objects and dependencies in a subdirectory because
4254 # it helps to detect inapplicable dependency modes. For instance
4255 # both Tru64's cc and ICC support -MD to output dependencies as a
4256 # side effect of compilation, but ICC will put the dependencies in
4257 # the current directory while Tru64 will put them in the object
4258 # directory.
4259 mkdir sub
4260
4261 am_cv_CC_dependencies_compiler_type=none
4262 if test "$am_compiler_list" = ""; then
4263 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4264 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004265 am__universal=false
4266 case " $depcc " in #(
4267 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4268 esac
4269
menderico4861bb82009-09-29 00:31:36 +00004270 for depmode in $am_compiler_list; do
4271 # Setup a source with many dependencies, because some compilers
4272 # like to wrap large dependency lists on column 80 (with \), and
4273 # we should not choose a depcomp mode which is confused by this.
4274 #
4275 # We need to recreate these files for each test, as the compiler may
4276 # overwrite some of them when testing with obscure command lines.
4277 # This happens at least with the AIX C compiler.
4278 : > sub/conftest.c
4279 for i in 1 2 3 4 5 6; do
4280 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4281 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4282 # Solaris 8's {/usr,}/bin/sh.
4283 touch sub/conftst$i.h
4284 done
4285 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4286
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004287 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4288 # mode. It turns out that the SunPro C++ compiler does not properly
4289 # handle `-M -o', and we need to detect this. Also, some Intel
4290 # versions had trouble with output in subdirs
4291 am__obj=sub/conftest.${OBJEXT-o}
4292 am__minus_obj="-o $am__obj"
menderico4861bb82009-09-29 00:31:36 +00004293 case $depmode in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004294 gcc)
4295 # This depmode causes a compiler race in universal mode.
4296 test "$am__universal" = false || continue
4297 ;;
menderico4861bb82009-09-29 00:31:36 +00004298 nosideeffect)
4299 # after this tag, mechanisms are not by side-effect, so they'll
4300 # only be used when explicitly requested
4301 if test "x$enable_dependency_tracking" = xyes; then
4302 continue
4303 else
4304 break
4305 fi
4306 ;;
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004307 msvisualcpp | msvcmsys)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004308 # This compiler won't grok `-c -o', but also, the minuso test has
4309 # not run yet. These depmodes are late enough in the game, and
4310 # so weak that their functioning should not be impacted.
4311 am__obj=conftest.${OBJEXT-o}
4312 am__minus_obj=
4313 ;;
menderico4861bb82009-09-29 00:31:36 +00004314 none) break ;;
4315 esac
menderico4861bb82009-09-29 00:31:36 +00004316 if depmode=$depmode \
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004317 source=sub/conftest.c object=$am__obj \
menderico4861bb82009-09-29 00:31:36 +00004318 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004319 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
menderico4861bb82009-09-29 00:31:36 +00004320 >/dev/null 2>conftest.err &&
4321 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4322 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004323 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
menderico4861bb82009-09-29 00:31:36 +00004324 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4325 # icc doesn't choke on unknown options, it will just issue warnings
4326 # or remarks (even with -Werror). So we grep stderr for any message
4327 # that says an option was ignored or not supported.
4328 # When given -MP, icc 7.0 and 7.1 complain thusly:
4329 # icc: Command line warning: ignoring option '-M'; no argument required
4330 # The diagnosis changed in icc 8.0:
4331 # icc: Command line remark: option '-MP' not supported
4332 if (grep 'ignoring option' conftest.err ||
4333 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4334 am_cv_CC_dependencies_compiler_type=$depmode
4335 break
4336 fi
4337 fi
4338 done
4339
4340 cd ..
4341 rm -rf conftest.dir
4342else
4343 am_cv_CC_dependencies_compiler_type=none
4344fi
4345
4346fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4348$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004349CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4350
4351 if
4352 test "x$enable_dependency_tracking" != xno \
4353 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4354 am__fastdepCC_TRUE=
4355 am__fastdepCC_FALSE='#'
4356else
4357 am__fastdepCC_TRUE='#'
4358 am__fastdepCC_FALSE=
4359fi
4360
4361
4362
4363#Getting user and host info
4364username=$(whoami)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking user ID" >&5
4366$as_echo_n "checking user ID... " >&6; }
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $username" >&5
4368$as_echo "$username" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004369
4370hostname=$(uname -n)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host name" >&5
4372$as_echo_n "checking host name... " >&6; }
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hostname" >&5
4374$as_echo "$hostname" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004375
4376timestamp=$(date)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking current timestamp" >&5
4378$as_echo_n "checking current timestamp... " >&6; }
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $timestamp" >&5
4380$as_echo "$timestamp" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004381
4382
4383cat >>confdefs.h <<_ACEOF
4384#define STRESSAPPTEST_TIMESTAMP "$username @ $hostname on $timestamp"
4385_ACEOF
4386
4387
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004388# Check whether --enable-default-optimizations was given.
4389if test "${enable_default_optimizations+set}" = set; then :
4390 enableval=$enable_default_optimizations;
4391fi
4392
4393if test x"$enable_default_optimizations" != xno; then :
4394
4395 #Default cxxflags
4396 CXXFLAGS="$CXXFLAGS -DCHECKOPTS"
nick.j.sanders72851352014-04-11 23:28:56 +00004397 CXXFLAGS="$CXXFLAGS -Wreturn-type -Wunused -Wuninitialized -Wall"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004398 CXXFLAGS="$CXXFLAGS -O3 -funroll-all-loops -funroll-loops -DNDEBUG"
4399
4400fi
menderico4861bb82009-09-29 00:31:36 +00004401
4402# Checks for header files.
4403
menderico4861bb82009-09-29 00:31:36 +00004404ac_header_dirent=no
4405for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004406 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4408$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004410 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004411else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004413/* end confdefs.h. */
4414#include <sys/types.h>
4415#include <$ac_hdr>
4416
4417int
4418main ()
4419{
4420if ((DIR *) 0)
4421return 0;
4422 ;
4423 return 0;
4424}
4425_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004426if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004427 eval "$as_ac_Header=yes"
4428else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004429 eval "$as_ac_Header=no"
menderico4861bb82009-09-29 00:31:36 +00004430fi
menderico4861bb82009-09-29 00:31:36 +00004431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004433eval ac_res=\$$as_ac_Header
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4435$as_echo "$ac_res" >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004436eval as_val=\$$as_ac_Header
4437 if test "x$as_val" = x""yes; then :
menderico4861bb82009-09-29 00:31:36 +00004438 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004439#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
menderico4861bb82009-09-29 00:31:36 +00004440_ACEOF
4441
4442ac_header_dirent=$ac_hdr; break
4443fi
4444
4445done
4446# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4447if test $ac_header_dirent = dirent.h; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4449$as_echo_n "checking for library containing opendir... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004450if test "${ac_cv_search_opendir+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004451 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004452else
4453 ac_func_search_save_LIBS=$LIBS
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004455/* end confdefs.h. */
4456
4457/* Override any GCC internal prototype to avoid an error.
4458 Use char because int might match the return type of a GCC
4459 builtin and then its argument prototype would still apply. */
4460#ifdef __cplusplus
4461extern "C"
4462#endif
4463char opendir ();
4464int
4465main ()
4466{
4467return opendir ();
4468 ;
4469 return 0;
4470}
4471_ACEOF
4472for ac_lib in '' dir; do
4473 if test -z "$ac_lib"; then
4474 ac_res="none required"
4475 else
4476 ac_res=-l$ac_lib
4477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4478 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004479 if ac_fn_c_try_link "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004480 ac_cv_search_opendir=$ac_res
menderico4861bb82009-09-29 00:31:36 +00004481fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004482rm -f core conftest.err conftest.$ac_objext \
4483 conftest$ac_exeext
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004484 if test "${ac_cv_search_opendir+set}" = set; then :
menderico4861bb82009-09-29 00:31:36 +00004485 break
4486fi
4487done
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004488if test "${ac_cv_search_opendir+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004489
menderico4861bb82009-09-29 00:31:36 +00004490else
4491 ac_cv_search_opendir=no
4492fi
4493rm conftest.$ac_ext
4494LIBS=$ac_func_search_save_LIBS
4495fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4497$as_echo "$ac_cv_search_opendir" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004498ac_res=$ac_cv_search_opendir
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004499if test "$ac_res" != no; then :
menderico4861bb82009-09-29 00:31:36 +00004500 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4501
4502fi
4503
4504else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4506$as_echo_n "checking for library containing opendir... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004507if test "${ac_cv_search_opendir+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004508 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004509else
4510 ac_func_search_save_LIBS=$LIBS
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004512/* end confdefs.h. */
4513
4514/* Override any GCC internal prototype to avoid an error.
4515 Use char because int might match the return type of a GCC
4516 builtin and then its argument prototype would still apply. */
4517#ifdef __cplusplus
4518extern "C"
4519#endif
4520char opendir ();
4521int
4522main ()
4523{
4524return opendir ();
4525 ;
4526 return 0;
4527}
4528_ACEOF
4529for ac_lib in '' x; do
4530 if test -z "$ac_lib"; then
4531 ac_res="none required"
4532 else
4533 ac_res=-l$ac_lib
4534 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4535 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004536 if ac_fn_c_try_link "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004537 ac_cv_search_opendir=$ac_res
menderico4861bb82009-09-29 00:31:36 +00004538fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004539rm -f core conftest.err conftest.$ac_objext \
4540 conftest$ac_exeext
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004541 if test "${ac_cv_search_opendir+set}" = set; then :
menderico4861bb82009-09-29 00:31:36 +00004542 break
4543fi
4544done
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004545if test "${ac_cv_search_opendir+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004546
menderico4861bb82009-09-29 00:31:36 +00004547else
4548 ac_cv_search_opendir=no
4549fi
4550rm conftest.$ac_ext
4551LIBS=$ac_func_search_save_LIBS
4552fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4554$as_echo "$ac_cv_search_opendir" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004555ac_res=$ac_cv_search_opendir
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004556if test "$ac_res" != no; then :
menderico4861bb82009-09-29 00:31:36 +00004557 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4558
4559fi
4560
4561fi
4562
4563ac_ext=c
4564ac_cpp='$CPP $CPPFLAGS'
4565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4567ac_compiler_gnu=$ac_cv_c_compiler_gnu
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4569$as_echo_n "checking how to run the C preprocessor... " >&6; }
menderico4861bb82009-09-29 00:31:36 +00004570# On Suns, sometimes $CPP names a directory.
4571if test -n "$CPP" && test -d "$CPP"; then
4572 CPP=
4573fi
4574if test -z "$CPP"; then
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004575 if test "${ac_cv_prog_CPP+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004576 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004577else
4578 # Double quotes because CPP needs to be expanded
4579 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4580 do
4581 ac_preproc_ok=false
4582for ac_c_preproc_warn_flag in '' yes
4583do
4584 # Use a header file that comes with gcc, so configuring glibc
4585 # with a fresh cross-compiler works.
4586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4587 # <limits.h> exists even on freestanding compilers.
4588 # On the NeXT, cc -E runs the code through the compiler's parser,
4589 # not just through cpp. "Syntax error" is here to catch this case.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004591/* end confdefs.h. */
4592#ifdef __STDC__
4593# include <limits.h>
4594#else
4595# include <assert.h>
4596#endif
4597 Syntax error
4598_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004599if ac_fn_c_try_cpp "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004600
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004601else
menderico4861bb82009-09-29 00:31:36 +00004602 # Broken: fails on valid input.
4603continue
4604fi
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004605rm -f conftest.err conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004606
4607 # OK, works on sane cases. Now check whether nonexistent headers
4608 # can be detected and how.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004610/* end confdefs.h. */
4611#include <ac_nonexistent.h>
4612_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004613if ac_fn_c_try_cpp "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004614 # Broken: success on invalid input.
4615continue
4616else
menderico4861bb82009-09-29 00:31:36 +00004617 # Passes both tests.
4618ac_preproc_ok=:
4619break
4620fi
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004621rm -f conftest.err conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004622
4623done
4624# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004625rm -f conftest.err conftest.$ac_ext
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004626if $ac_preproc_ok; then :
menderico4861bb82009-09-29 00:31:36 +00004627 break
4628fi
4629
4630 done
4631 ac_cv_prog_CPP=$CPP
4632
4633fi
4634 CPP=$ac_cv_prog_CPP
4635else
4636 ac_cv_prog_CPP=$CPP
4637fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4639$as_echo "$CPP" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004640ac_preproc_ok=false
4641for ac_c_preproc_warn_flag in '' yes
4642do
4643 # Use a header file that comes with gcc, so configuring glibc
4644 # with a fresh cross-compiler works.
4645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4646 # <limits.h> exists even on freestanding compilers.
4647 # On the NeXT, cc -E runs the code through the compiler's parser,
4648 # not just through cpp. "Syntax error" is here to catch this case.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004650/* end confdefs.h. */
4651#ifdef __STDC__
4652# include <limits.h>
4653#else
4654# include <assert.h>
4655#endif
4656 Syntax error
4657_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004658if ac_fn_c_try_cpp "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004659
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004660else
menderico4861bb82009-09-29 00:31:36 +00004661 # Broken: fails on valid input.
4662continue
4663fi
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004664rm -f conftest.err conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004665
4666 # OK, works on sane cases. Now check whether nonexistent headers
4667 # can be detected and how.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004669/* end confdefs.h. */
4670#include <ac_nonexistent.h>
4671_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004672if ac_fn_c_try_cpp "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004673 # Broken: success on invalid input.
4674continue
4675else
menderico4861bb82009-09-29 00:31:36 +00004676 # Passes both tests.
4677ac_preproc_ok=:
4678break
4679fi
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004680rm -f conftest.err conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004681
4682done
4683# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004684rm -f conftest.err conftest.$ac_ext
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004685if $ac_preproc_ok; then :
4686
menderico4861bb82009-09-29 00:31:36 +00004687else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004690as_fn_error "C preprocessor \"$CPP\" fails sanity check
4691See \`config.log' for more details." "$LINENO" 5; }
menderico4861bb82009-09-29 00:31:36 +00004692fi
4693
4694ac_ext=c
4695ac_cpp='$CPP $CPPFLAGS'
4696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4698ac_compiler_gnu=$ac_cv_c_compiler_gnu
4699
4700
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4702$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004703if test "${ac_cv_path_GREP+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004704 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004705else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004706 if test -z "$GREP"; then
menderico4861bb82009-09-29 00:31:36 +00004707 ac_path_GREP_found=false
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004708 # Loop through the user's path and test for each of PROGNAME-LIST
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
menderico4861bb82009-09-29 00:31:36 +00004710for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4711do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004714 for ac_prog in grep ggrep; do
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4717 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4718# Check for GNU ac_path_GREP and select it if it is found.
menderico4861bb82009-09-29 00:31:36 +00004719 # Check for GNU $ac_path_GREP
4720case `"$ac_path_GREP" --version 2>&1` in
4721*GNU*)
4722 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4723*)
4724 ac_count=0
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004725 $as_echo_n 0123456789 >"conftest.in"
menderico4861bb82009-09-29 00:31:36 +00004726 while :
4727 do
4728 cat "conftest.in" "conftest.in" >"conftest.tmp"
4729 mv "conftest.tmp" "conftest.in"
4730 cp "conftest.in" "conftest.nl"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004731 $as_echo 'GREP' >> "conftest.nl"
menderico4861bb82009-09-29 00:31:36 +00004732 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004734 as_fn_arith $ac_count + 1 && ac_count=$as_val
menderico4861bb82009-09-29 00:31:36 +00004735 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4736 # Best one so far, save it but keep looking for a better one
4737 ac_cv_path_GREP="$ac_path_GREP"
4738 ac_path_GREP_max=$ac_count
4739 fi
4740 # 10*(2^10) chars as input seems more than enough
4741 test $ac_count -gt 10 && break
4742 done
4743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4744esac
4745
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004746 $ac_path_GREP_found && break 3
4747 done
menderico4861bb82009-09-29 00:31:36 +00004748 done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004749 done
menderico4861bb82009-09-29 00:31:36 +00004750IFS=$as_save_IFS
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004751 if test -z "$ac_cv_path_GREP"; then
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004752 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004753 fi
menderico4861bb82009-09-29 00:31:36 +00004754else
4755 ac_cv_path_GREP=$GREP
4756fi
4757
menderico4861bb82009-09-29 00:31:36 +00004758fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4760$as_echo "$ac_cv_path_GREP" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004761 GREP="$ac_cv_path_GREP"
4762
4763
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4765$as_echo_n "checking for egrep... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004766if test "${ac_cv_path_EGREP+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004767 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004768else
4769 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4770 then ac_cv_path_EGREP="$GREP -E"
4771 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004772 if test -z "$EGREP"; then
menderico4861bb82009-09-29 00:31:36 +00004773 ac_path_EGREP_found=false
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004774 # Loop through the user's path and test for each of PROGNAME-LIST
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
menderico4861bb82009-09-29 00:31:36 +00004776for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4777do
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004780 for ac_prog in egrep; do
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4783 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4784# Check for GNU ac_path_EGREP and select it if it is found.
menderico4861bb82009-09-29 00:31:36 +00004785 # Check for GNU $ac_path_EGREP
4786case `"$ac_path_EGREP" --version 2>&1` in
4787*GNU*)
4788 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4789*)
4790 ac_count=0
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004791 $as_echo_n 0123456789 >"conftest.in"
menderico4861bb82009-09-29 00:31:36 +00004792 while :
4793 do
4794 cat "conftest.in" "conftest.in" >"conftest.tmp"
4795 mv "conftest.tmp" "conftest.in"
4796 cp "conftest.in" "conftest.nl"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004797 $as_echo 'EGREP' >> "conftest.nl"
menderico4861bb82009-09-29 00:31:36 +00004798 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4799 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004800 as_fn_arith $ac_count + 1 && ac_count=$as_val
menderico4861bb82009-09-29 00:31:36 +00004801 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4802 # Best one so far, save it but keep looking for a better one
4803 ac_cv_path_EGREP="$ac_path_EGREP"
4804 ac_path_EGREP_max=$ac_count
4805 fi
4806 # 10*(2^10) chars as input seems more than enough
4807 test $ac_count -gt 10 && break
4808 done
4809 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4810esac
4811
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004812 $ac_path_EGREP_found && break 3
4813 done
menderico4861bb82009-09-29 00:31:36 +00004814 done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004815 done
menderico4861bb82009-09-29 00:31:36 +00004816IFS=$as_save_IFS
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004817 if test -z "$ac_cv_path_EGREP"; then
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004818 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004819 fi
menderico4861bb82009-09-29 00:31:36 +00004820else
4821 ac_cv_path_EGREP=$EGREP
4822fi
4823
menderico4861bb82009-09-29 00:31:36 +00004824 fi
4825fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4827$as_echo "$ac_cv_path_EGREP" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004828 EGREP="$ac_cv_path_EGREP"
4829
4830
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4832$as_echo_n "checking for ANSI C header files... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004833if test "${ac_cv_header_stdc+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004834 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004835else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004837/* end confdefs.h. */
4838#include <stdlib.h>
4839#include <stdarg.h>
4840#include <string.h>
4841#include <float.h>
4842
4843int
4844main ()
4845{
4846
4847 ;
4848 return 0;
4849}
4850_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004851if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004852 ac_cv_header_stdc=yes
4853else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004854 ac_cv_header_stdc=no
menderico4861bb82009-09-29 00:31:36 +00004855fi
menderico4861bb82009-09-29 00:31:36 +00004856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857
4858if test $ac_cv_header_stdc = yes; then
4859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004861/* end confdefs.h. */
4862#include <string.h>
4863
4864_ACEOF
4865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004866 $EGREP "memchr" >/dev/null 2>&1; then :
4867
menderico4861bb82009-09-29 00:31:36 +00004868else
4869 ac_cv_header_stdc=no
4870fi
4871rm -f conftest*
4872
4873fi
4874
4875if test $ac_cv_header_stdc = yes; then
4876 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004878/* end confdefs.h. */
4879#include <stdlib.h>
4880
4881_ACEOF
4882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004883 $EGREP "free" >/dev/null 2>&1; then :
4884
menderico4861bb82009-09-29 00:31:36 +00004885else
4886 ac_cv_header_stdc=no
4887fi
4888rm -f conftest*
4889
4890fi
4891
4892if test $ac_cv_header_stdc = yes; then
4893 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004894 if test "$cross_compiling" = yes; then :
menderico4861bb82009-09-29 00:31:36 +00004895 :
4896else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004898/* end confdefs.h. */
4899#include <ctype.h>
4900#include <stdlib.h>
4901#if ((' ' & 0x0FF) == 0x020)
4902# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4903# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4904#else
4905# define ISLOWER(c) \
4906 (('a' <= (c) && (c) <= 'i') \
4907 || ('j' <= (c) && (c) <= 'r') \
4908 || ('s' <= (c) && (c) <= 'z'))
4909# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4910#endif
4911
4912#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4913int
4914main ()
4915{
4916 int i;
4917 for (i = 0; i < 256; i++)
4918 if (XOR (islower (i), ISLOWER (i))
4919 || toupper (i) != TOUPPER (i))
4920 return 2;
4921 return 0;
4922}
4923_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004924if ac_fn_c_try_run "$LINENO"; then :
4925
menderico4861bb82009-09-29 00:31:36 +00004926else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004927 ac_cv_header_stdc=no
menderico4861bb82009-09-29 00:31:36 +00004928fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4930 conftest.$ac_objext conftest.beam conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004931fi
4932
menderico4861bb82009-09-29 00:31:36 +00004933fi
4934fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4936$as_echo "$ac_cv_header_stdc" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004937if test $ac_cv_header_stdc = yes; then
4938
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004939$as_echo "#define STDC_HEADERS 1" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00004940
4941fi
4942
nick.j.sandersaeef0912013-01-07 20:07:28 +00004943# Skip malloc.h to prevent redefinition of HAVE_MALLOC_H on some platforms
menderico4861bb82009-09-29 00:31:36 +00004944# On IRIX 5.3, sys/types and inttypes.h are conflicting.
menderico4861bb82009-09-29 00:31:36 +00004945for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4946 inttypes.h stdint.h unistd.h
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004947do :
4948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4949ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4950"
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004951eval as_val=\$$as_ac_Header
4952 if test "x$as_val" = x""yes; then :
menderico4861bb82009-09-29 00:31:36 +00004953 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004954#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
menderico4861bb82009-09-29 00:31:36 +00004955_ACEOF
4956
4957fi
4958
4959done
4960
4961
nick.j.sandersaeef0912013-01-07 20:07:28 +00004962for ac_header in arpa/inet.h fcntl.h netdb.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004963do :
4964 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4965ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004966eval as_val=\$$as_ac_Header
4967 if test "x$as_val" = x""yes; then :
menderico4861bb82009-09-29 00:31:36 +00004968 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004969#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
menderico4861bb82009-09-29 00:31:36 +00004970_ACEOF
4971
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004972else
4973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004975as_fn_error "Missing some header files.
4976See \`config.log' for more details." "$LINENO" 5; }
menderico4861bb82009-09-29 00:31:36 +00004977fi
4978
4979done
4980
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004981for ac_header in pthread.h
4982do :
4983 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004984if test "x$ac_cv_header_pthread_h" = x""yes; then :
nick.j.sanderseea0aac2010-03-12 03:35:04 +00004985 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004986#define HAVE_PTHREAD_H 1
nick.j.sanderseea0aac2010-03-12 03:35:04 +00004987_ACEOF
4988
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004989fi
4990
4991done
4992
nick.j.sandersaeef0912013-01-07 20:07:28 +00004993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
4994$as_echo_n "checking for library containing pthread_create... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004995if test "${ac_cv_search_pthread_create+set}" = set; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00004996 $as_echo_n "(cached) " >&6
4997else
4998 ac_func_search_save_LIBS=$LIBS
4999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000/* end confdefs.h. */
5001
5002/* Override any GCC internal prototype to avoid an error.
5003 Use char because int might match the return type of a GCC
5004 builtin and then its argument prototype would still apply. */
5005#ifdef __cplusplus
5006extern "C"
5007#endif
5008char pthread_create ();
5009int
5010main ()
5011{
5012return pthread_create ();
5013 ;
5014 return 0;
5015}
5016_ACEOF
5017for ac_lib in '' pthread; do
5018 if test -z "$ac_lib"; then
5019 ac_res="none required"
5020 else
5021 ac_res=-l$ac_lib
5022 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5023 fi
5024 if ac_fn_c_try_link "$LINENO"; then :
5025 ac_cv_search_pthread_create=$ac_res
5026fi
5027rm -f core conftest.err conftest.$ac_objext \
5028 conftest$ac_exeext
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005029 if test "${ac_cv_search_pthread_create+set}" = set; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005030 break
5031fi
5032done
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005033if test "${ac_cv_search_pthread_create+set}" = set; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005034
5035else
5036 ac_cv_search_pthread_create=no
5037fi
5038rm conftest.$ac_ext
5039LIBS=$ac_func_search_save_LIBS
5040fi
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
5042$as_echo "$ac_cv_search_pthread_create" >&6; }
5043ac_res=$ac_cv_search_pthread_create
5044if test "$ac_res" != no; then :
5045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5046
5047fi
5048
nick.j.sanders34f025d2013-01-09 21:13:13 +00005049ac_fn_c_check_type "$LINENO" "pthread_barrier_t" "ac_cv_type_pthread_barrier_t" "$ac_includes_default"
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005050if test "x$ac_cv_type_pthread_barrier_t" = x""yes; then :
nick.j.sanders34f025d2013-01-09 21:13:13 +00005051
5052$as_echo "#define HAVE_PTHREAD_BARRIERS 1" >>confdefs.h
5053
5054fi
5055
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005056for ac_header in libaio.h
5057do :
5058 ac_fn_c_check_header_mongrel "$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005059if test "x$ac_cv_header_libaio_h" = x""yes; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005060 cat >>confdefs.h <<_ACEOF
5061#define HAVE_LIBAIO_H 1
5062_ACEOF
5063
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005064fi
5065
5066done
5067
nick.j.sandersaeef0912013-01-07 20:07:28 +00005068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing io_setup" >&5
5069$as_echo_n "checking for library containing io_setup... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005070if test "${ac_cv_search_io_setup+set}" = set; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005071 $as_echo_n "(cached) " >&6
5072else
5073 ac_func_search_save_LIBS=$LIBS
5074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075/* end confdefs.h. */
5076
5077/* Override any GCC internal prototype to avoid an error.
5078 Use char because int might match the return type of a GCC
5079 builtin and then its argument prototype would still apply. */
5080#ifdef __cplusplus
5081extern "C"
5082#endif
5083char io_setup ();
5084int
5085main ()
5086{
5087return io_setup ();
5088 ;
5089 return 0;
5090}
5091_ACEOF
5092for ac_lib in '' aio; do
5093 if test -z "$ac_lib"; then
5094 ac_res="none required"
5095 else
5096 ac_res=-l$ac_lib
5097 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5098 fi
5099 if ac_fn_c_try_link "$LINENO"; then :
5100 ac_cv_search_io_setup=$ac_res
5101fi
5102rm -f core conftest.err conftest.$ac_objext \
5103 conftest$ac_exeext
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005104 if test "${ac_cv_search_io_setup+set}" = set; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005105 break
5106fi
5107done
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005108if test "${ac_cv_search_io_setup+set}" = set; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005109
5110else
5111 ac_cv_search_io_setup=no
5112fi
5113rm conftest.$ac_ext
5114LIBS=$ac_func_search_save_LIBS
5115fi
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_io_setup" >&5
5117$as_echo "$ac_cv_search_io_setup" >&6; }
5118ac_res=$ac_cv_search_io_setup
5119if test "$ac_res" != no; then :
5120 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5121
5122fi
5123
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005124for ac_header in sys/shm.h
5125do :
5126 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005127if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005128 cat >>confdefs.h <<_ACEOF
5129#define HAVE_SYS_SHM_H 1
5130_ACEOF
5131
nick.j.sanderseea0aac2010-03-12 03:35:04 +00005132fi
5133
5134done
5135
nick.j.sandersaeef0912013-01-07 20:07:28 +00005136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
5137$as_echo_n "checking for library containing shm_open... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005138if test "${ac_cv_search_shm_open+set}" = set; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005139 $as_echo_n "(cached) " >&6
5140else
5141 ac_func_search_save_LIBS=$LIBS
5142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143/* end confdefs.h. */
5144
5145/* Override any GCC internal prototype to avoid an error.
5146 Use char because int might match the return type of a GCC
5147 builtin and then its argument prototype would still apply. */
5148#ifdef __cplusplus
5149extern "C"
5150#endif
5151char shm_open ();
5152int
5153main ()
5154{
5155return shm_open ();
5156 ;
5157 return 0;
5158}
5159_ACEOF
5160for ac_lib in '' rt; do
5161 if test -z "$ac_lib"; then
5162 ac_res="none required"
5163 else
5164 ac_res=-l$ac_lib
5165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5166 fi
5167 if ac_fn_c_try_link "$LINENO"; then :
5168 ac_cv_search_shm_open=$ac_res
5169fi
5170rm -f core conftest.err conftest.$ac_objext \
5171 conftest$ac_exeext
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005172 if test "${ac_cv_search_shm_open+set}" = set; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005173 break
5174fi
5175done
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005176if test "${ac_cv_search_shm_open+set}" = set; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005177
5178else
5179 ac_cv_search_shm_open=no
5180fi
5181rm conftest.$ac_ext
5182LIBS=$ac_func_search_save_LIBS
5183fi
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
5185$as_echo "$ac_cv_search_shm_open" >&6; }
5186ac_res=$ac_cv_search_shm_open
5187if test "$ac_res" != no; then :
5188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5189
5190fi
5191
nick.j.sanderseea0aac2010-03-12 03:35:04 +00005192
nick.j.sandersef1c9352013-01-09 09:10:08 +00005193
menderico4861bb82009-09-29 00:31:36 +00005194# Checks for typedefs, structures, and compiler characteristics.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
5196$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005197if test "${ac_cv_header_stdbool_h+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005198 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005199else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005201/* end confdefs.h. */
5202
5203#include <stdbool.h>
5204#ifndef bool
5205 "error: bool is not defined"
5206#endif
5207#ifndef false
5208 "error: false is not defined"
5209#endif
5210#if false
5211 "error: false is not 0"
5212#endif
5213#ifndef true
5214 "error: true is not defined"
5215#endif
5216#if true != 1
5217 "error: true is not 1"
5218#endif
5219#ifndef __bool_true_false_are_defined
5220 "error: __bool_true_false_are_defined is not defined"
5221#endif
5222
5223 struct s { _Bool s: 1; _Bool t; } s;
5224
5225 char a[true == 1 ? 1 : -1];
5226 char b[false == 0 ? 1 : -1];
5227 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5228 char d[(bool) 0.5 == true ? 1 : -1];
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005229 bool e = &s;
menderico4861bb82009-09-29 00:31:36 +00005230 char f[(_Bool) 0.0 == false ? 1 : -1];
5231 char g[true];
5232 char h[sizeof (_Bool)];
5233 char i[sizeof s.t];
5234 enum { j = false, k = true, l = false * true, m = true * 256 };
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005235 /* The following fails for
5236 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
menderico4861bb82009-09-29 00:31:36 +00005237 _Bool n[m];
5238 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5239 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005240# if defined __xlc__ || defined __GNUC__
5241 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
5242 reported by James Lemley on 2005-10-05; see
5243 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
5244 This test is not quite right, since xlc is allowed to
5245 reject this program, as the initializer for xlcbug is
5246 not one of the forms that C requires support for.
5247 However, doing the test right would require a runtime
5248 test, and that would make cross-compilation harder.
5249 Let us hope that IBM fixes the xlc bug, and also adds
5250 support for this kind of constant expression. In the
5251 meantime, this test will reject xlc, which is OK, since
5252 our stdbool.h substitute should suffice. We also test
5253 this with GCC, where it should work, to detect more
5254 quickly whether someone messes up the test in the
5255 future. */
5256 char digs[] = "0123456789";
5257 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
5258# endif
menderico4861bb82009-09-29 00:31:36 +00005259 /* Catch a bug in an HP-UX C compiler. See
5260 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5261 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5262 */
5263 _Bool q = true;
5264 _Bool *pq = &q;
5265
5266int
5267main ()
5268{
5269
5270 *pq |= q;
5271 *pq |= ! q;
5272 /* Refer to every declared value, to avoid compiler optimizations. */
5273 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5274 + !m + !n + !o + !p + !q + !pq);
5275
5276 ;
5277 return 0;
5278}
5279_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005280if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005281 ac_cv_header_stdbool_h=yes
5282else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005283 ac_cv_header_stdbool_h=no
menderico4861bb82009-09-29 00:31:36 +00005284fi
menderico4861bb82009-09-29 00:31:36 +00005285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
5288$as_echo "$ac_cv_header_stdbool_h" >&6; }
5289ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005290if test "x$ac_cv_type__Bool" = x""yes; then :
menderico4861bb82009-09-29 00:31:36 +00005291
5292cat >>confdefs.h <<_ACEOF
5293#define HAVE__BOOL 1
5294_ACEOF
5295
5296
5297fi
5298
5299if test $ac_cv_header_stdbool_h = yes; then
5300
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005301$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005302
5303fi
5304
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5306$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005307if test "${ac_cv_c_const+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005308 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005309else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005311/* end confdefs.h. */
5312
5313int
5314main ()
5315{
5316/* FIXME: Include the comments suggested by Paul. */
5317#ifndef __cplusplus
5318 /* Ultrix mips cc rejects this. */
5319 typedef int charset[2];
5320 const charset cs;
5321 /* SunOS 4.1.1 cc rejects this. */
5322 char const *const *pcpcc;
5323 char **ppc;
5324 /* NEC SVR4.0.2 mips cc rejects this. */
5325 struct point {int x, y;};
5326 static struct point const zero = {0,0};
5327 /* AIX XL C 1.02.0.0 rejects this.
5328 It does not let you subtract one const X* pointer from another in
5329 an arm of an if-expression whose if-part is not a constant
5330 expression */
5331 const char *g = "string";
5332 pcpcc = &g + (g ? g-g : 0);
5333 /* HPUX 7.0 cc rejects these. */
5334 ++pcpcc;
5335 ppc = (char**) pcpcc;
5336 pcpcc = (char const *const *) ppc;
5337 { /* SCO 3.2v4 cc rejects this. */
5338 char *t;
5339 char const *s = 0 ? (char *) 0 : (char const *) 0;
5340
5341 *t++ = 0;
5342 if (s) return 0;
5343 }
5344 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5345 int x[] = {25, 17};
5346 const int *foo = &x[0];
5347 ++foo;
5348 }
5349 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5350 typedef const int *iptr;
5351 iptr p = 0;
5352 ++p;
5353 }
5354 { /* AIX XL C 1.02.0.0 rejects this saying
5355 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5356 struct s { int j; const int *ap[3]; };
5357 struct s *b; b->j = 5;
5358 }
5359 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5360 const int foo = 10;
5361 if (!foo) return 0;
5362 }
5363 return !cs[0] && !zero.x;
5364#endif
5365
5366 ;
5367 return 0;
5368}
5369_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005370if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005371 ac_cv_c_const=yes
5372else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005373 ac_cv_c_const=no
menderico4861bb82009-09-29 00:31:36 +00005374fi
menderico4861bb82009-09-29 00:31:36 +00005375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5378$as_echo "$ac_cv_c_const" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005379if test $ac_cv_c_const = no; then
5380
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005381$as_echo "#define const /**/" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005382
5383fi
5384
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5386$as_echo_n "checking for inline... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005387if test "${ac_cv_c_inline+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005388 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005389else
5390 ac_cv_c_inline=no
5391for ac_kw in inline __inline__ __inline; do
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005393/* end confdefs.h. */
5394#ifndef __cplusplus
5395typedef int foo_t;
5396static $ac_kw foo_t static_foo () {return 0; }
5397$ac_kw foo_t foo () {return 0; }
5398#endif
5399
5400_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005401if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005402 ac_cv_c_inline=$ac_kw
menderico4861bb82009-09-29 00:31:36 +00005403fi
menderico4861bb82009-09-29 00:31:36 +00005404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 test "$ac_cv_c_inline" != no && break
5406done
5407
5408fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5410$as_echo "$ac_cv_c_inline" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005411
5412case $ac_cv_c_inline in
5413 inline | yes) ;;
5414 *)
5415 case $ac_cv_c_inline in
5416 no) ac_val=;;
5417 *) ac_val=$ac_cv_c_inline;;
5418 esac
5419 cat >>confdefs.h <<_ACEOF
5420#ifndef __cplusplus
5421#define inline $ac_val
5422#endif
5423_ACEOF
5424 ;;
5425esac
5426
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005427ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005428if test "x$ac_cv_type_pid_t" = x""yes; then :
menderico4861bb82009-09-29 00:31:36 +00005429
menderico4861bb82009-09-29 00:31:36 +00005430else
5431
5432cat >>confdefs.h <<_ACEOF
5433#define pid_t int
5434_ACEOF
5435
5436fi
5437
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5439$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005440if test "${ac_cv_c_restrict+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005441 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005442else
5443 ac_cv_c_restrict=no
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005444 # The order here caters to the fact that C++ does not require restrict.
5445 for ac_kw in __restrict __restrict__ _Restrict restrict; do
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005447/* end confdefs.h. */
5448typedef int * int_ptr;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005449 int foo (int_ptr $ac_kw ip) {
5450 return ip[0];
menderico4861bb82009-09-29 00:31:36 +00005451 }
5452int
5453main ()
5454{
5455int s[1];
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005456 int * $ac_kw t = s;
5457 t[0] = 0;
5458 return foo(t)
menderico4861bb82009-09-29 00:31:36 +00005459 ;
5460 return 0;
5461}
5462_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005463if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005464 ac_cv_c_restrict=$ac_kw
menderico4861bb82009-09-29 00:31:36 +00005465fi
menderico4861bb82009-09-29 00:31:36 +00005466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467 test "$ac_cv_c_restrict" != no && break
5468 done
5469
5470fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5472$as_echo "$ac_cv_c_restrict" >&6; }
5473
menderico4861bb82009-09-29 00:31:36 +00005474 case $ac_cv_c_restrict in
5475 restrict) ;;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005476 no) $as_echo "#define restrict /**/" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005477 ;;
5478 *) cat >>confdefs.h <<_ACEOF
5479#define restrict $ac_cv_c_restrict
5480_ACEOF
5481 ;;
5482 esac
5483
nick.j.sandersaeef0912013-01-07 20:07:28 +00005484ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005485if test "x$ac_cv_type_size_t" = x""yes; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005486
5487else
5488
5489cat >>confdefs.h <<_ACEOF
5490#define size_t unsigned int
5491_ACEOF
5492
5493fi
5494
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005495ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005496if test "x$ac_cv_type_ssize_t" = x""yes; then :
menderico4861bb82009-09-29 00:31:36 +00005497
menderico4861bb82009-09-29 00:31:36 +00005498else
5499
5500cat >>confdefs.h <<_ACEOF
5501#define ssize_t int
5502_ACEOF
5503
5504fi
5505
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5507$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005508if test "${ac_cv_header_time+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005509 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005510else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005512/* end confdefs.h. */
5513#include <sys/types.h>
5514#include <sys/time.h>
5515#include <time.h>
5516
5517int
5518main ()
5519{
5520if ((struct tm *) 0)
5521return 0;
5522 ;
5523 return 0;
5524}
5525_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005526if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005527 ac_cv_header_time=yes
5528else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005529 ac_cv_header_time=no
menderico4861bb82009-09-29 00:31:36 +00005530fi
menderico4861bb82009-09-29 00:31:36 +00005531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5532fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5534$as_echo "$ac_cv_header_time" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005535if test $ac_cv_header_time = yes; then
5536
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005537$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005538
5539fi
5540
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005541ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5542case $ac_cv_c_uint16_t in #(
menderico4861bb82009-09-29 00:31:36 +00005543 no|yes) ;; #(
5544 *)
5545
5546
5547cat >>confdefs.h <<_ACEOF
5548#define uint16_t $ac_cv_c_uint16_t
5549_ACEOF
5550;;
5551 esac
5552
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5554$as_echo_n "checking for working volatile... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005555if test "${ac_cv_c_volatile+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005556 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005557else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005559/* end confdefs.h. */
5560
5561int
5562main ()
5563{
5564
5565volatile int x;
5566int * volatile y = (int *) 0;
5567return !x && !y;
5568 ;
5569 return 0;
5570}
5571_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005572if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005573 ac_cv_c_volatile=yes
5574else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005575 ac_cv_c_volatile=no
menderico4861bb82009-09-29 00:31:36 +00005576fi
menderico4861bb82009-09-29 00:31:36 +00005577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5580$as_echo "$ac_cv_c_volatile" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005581if test $ac_cv_c_volatile = no; then
5582
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005583$as_echo "#define volatile /**/" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005584
5585fi
5586
5587
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00005588
menderico4861bb82009-09-29 00:31:36 +00005589# Checks for library functions.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5591$as_echo_n "checking whether closedir returns void... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005592if test "${ac_cv_func_closedir_void+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005593 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005594else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005595 if test "$cross_compiling" = yes; then :
menderico4861bb82009-09-29 00:31:36 +00005596 ac_cv_func_closedir_void=yes
5597else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005599/* end confdefs.h. */
5600$ac_includes_default
5601#include <$ac_header_dirent>
5602#ifndef __cplusplus
5603int closedir ();
5604#endif
5605
5606int
5607main ()
5608{
5609return closedir (opendir (".")) != 0;
5610 ;
5611 return 0;
5612}
5613_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005614if ac_fn_c_try_run "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005615 ac_cv_func_closedir_void=no
5616else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005617 ac_cv_func_closedir_void=yes
menderico4861bb82009-09-29 00:31:36 +00005618fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5620 conftest.$ac_objext conftest.beam conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005621fi
5622
menderico4861bb82009-09-29 00:31:36 +00005623fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5625$as_echo "$ac_cv_func_closedir_void" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005626if test $ac_cv_func_closedir_void = yes; then
5627
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005628$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005629
5630fi
5631
5632if test $ac_cv_c_compiler_gnu = yes; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5634$as_echo_n "checking whether $CC needs -traditional... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005635if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005636 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005637else
5638 ac_pattern="Autoconf.*'x'"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005640/* end confdefs.h. */
5641#include <sgtty.h>
5642Autoconf TIOCGETP
5643_ACEOF
5644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005645 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
menderico4861bb82009-09-29 00:31:36 +00005646 ac_cv_prog_gcc_traditional=yes
5647else
5648 ac_cv_prog_gcc_traditional=no
5649fi
5650rm -f conftest*
5651
5652
5653 if test $ac_cv_prog_gcc_traditional = no; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005655/* end confdefs.h. */
5656#include <termio.h>
5657Autoconf TCGETA
5658_ACEOF
5659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005660 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
menderico4861bb82009-09-29 00:31:36 +00005661 ac_cv_prog_gcc_traditional=yes
5662fi
5663rm -f conftest*
5664
5665 fi
5666fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5668$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005669 if test $ac_cv_prog_gcc_traditional = yes; then
5670 CC="$CC -traditional"
5671 fi
5672fi
5673
menderico4861bb82009-09-29 00:31:36 +00005674for ac_header in sys/select.h sys/socket.h
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005675do :
5676 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5677ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005678eval as_val=\$$as_ac_Header
5679 if test "x$as_val" = x""yes; then :
menderico4861bb82009-09-29 00:31:36 +00005680 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005681#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
menderico4861bb82009-09-29 00:31:36 +00005682_ACEOF
5683
5684fi
5685
5686done
5687
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
5689$as_echo_n "checking types of arguments for select... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005690if test "${ac_cv_func_select_args+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005691 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005692else
5693 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
5694 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
5695 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005697/* end confdefs.h. */
5698$ac_includes_default
5699#ifdef HAVE_SYS_SELECT_H
5700# include <sys/select.h>
5701#endif
5702#ifdef HAVE_SYS_SOCKET_H
5703# include <sys/socket.h>
5704#endif
5705
5706int
5707main ()
5708{
5709extern int select ($ac_arg1,
5710 $ac_arg234, $ac_arg234, $ac_arg234,
5711 $ac_arg5);
5712 ;
5713 return 0;
5714}
5715_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005716if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005717 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
menderico4861bb82009-09-29 00:31:36 +00005718fi
menderico4861bb82009-09-29 00:31:36 +00005719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720 done
5721 done
5722done
5723# Provide a safe default value.
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005724: ${ac_cv_func_select_args='int,int *,struct timeval *'}
menderico4861bb82009-09-29 00:31:36 +00005725
5726fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
5728$as_echo "$ac_cv_func_select_args" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005729ac_save_IFS=$IFS; IFS=','
5730set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
5731IFS=$ac_save_IFS
5732shift
5733
5734cat >>confdefs.h <<_ACEOF
5735#define SELECT_TYPE_ARG1 $1
5736_ACEOF
5737
5738
5739cat >>confdefs.h <<_ACEOF
5740#define SELECT_TYPE_ARG234 ($2)
5741_ACEOF
5742
5743
5744cat >>confdefs.h <<_ACEOF
5745#define SELECT_TYPE_ARG5 ($3)
5746_ACEOF
5747
5748rm -f conftest*
5749
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5751$as_echo_n "checking return type of signal handlers... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005752if test "${ac_cv_type_signal+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005753 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005754else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005756/* end confdefs.h. */
5757#include <sys/types.h>
5758#include <signal.h>
5759
5760int
5761main ()
5762{
5763return *(signal (0, 0)) (0) == 1;
5764 ;
5765 return 0;
5766}
5767_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005768if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005769 ac_cv_type_signal=int
5770else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005771 ac_cv_type_signal=void
menderico4861bb82009-09-29 00:31:36 +00005772fi
menderico4861bb82009-09-29 00:31:36 +00005773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5776$as_echo "$ac_cv_type_signal" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005777
5778cat >>confdefs.h <<_ACEOF
5779#define RETSIGTYPE $ac_cv_type_signal
5780_ACEOF
5781
5782
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005783ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005784if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005785 ac_have_decl=1
menderico4861bb82009-09-29 00:31:36 +00005786else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005787 ac_have_decl=0
menderico4861bb82009-09-29 00:31:36 +00005788fi
5789
menderico4861bb82009-09-29 00:31:36 +00005790cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005791#define HAVE_DECL_STRERROR_R $ac_have_decl
menderico4861bb82009-09-29 00:31:36 +00005792_ACEOF
5793
menderico4861bb82009-09-29 00:31:36 +00005794for ac_func in strerror_r
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005795do :
5796 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005797if test "x$ac_cv_func_strerror_r" = x""yes; then :
menderico4861bb82009-09-29 00:31:36 +00005798 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005799#define HAVE_STRERROR_R 1
menderico4861bb82009-09-29 00:31:36 +00005800_ACEOF
5801
5802fi
5803done
5804
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
5806$as_echo_n "checking whether strerror_r returns char *... " >&6; }
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005807if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005808 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005809else
5810
5811 ac_cv_func_strerror_r_char_p=no
5812 if test $ac_cv_have_decl_strerror_r = yes; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005814/* end confdefs.h. */
5815$ac_includes_default
5816int
5817main ()
5818{
5819
5820 char buf[100];
5821 char x = *strerror_r (0, buf, sizeof buf);
5822 char *p = strerror_r (0, buf, sizeof buf);
5823 return !p || x;
5824
5825 ;
5826 return 0;
5827}
5828_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005829if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005830 ac_cv_func_strerror_r_char_p=yes
menderico4861bb82009-09-29 00:31:36 +00005831fi
menderico4861bb82009-09-29 00:31:36 +00005832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833 else
5834 # strerror_r is not declared. Choose between
5835 # systems that have relatively inaccessible declarations for the
5836 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
5837 # former has a strerror_r that returns char*, while the latter
5838 # has a strerror_r that returns `int'.
5839 # This test should segfault on the DEC system.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005840 if test "$cross_compiling" = yes; then :
menderico4861bb82009-09-29 00:31:36 +00005841 :
5842else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005844/* end confdefs.h. */
5845$ac_includes_default
5846 extern char *strerror_r ();
5847int
5848main ()
5849{
5850char buf[100];
5851 char x = *strerror_r (0, buf, sizeof buf);
5852 return ! isalpha (x);
5853 ;
5854 return 0;
5855}
5856_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005857if ac_fn_c_try_run "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005858 ac_cv_func_strerror_r_char_p=yes
menderico4861bb82009-09-29 00:31:36 +00005859fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5861 conftest.$ac_objext conftest.beam conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005862fi
5863
menderico4861bb82009-09-29 00:31:36 +00005864 fi
5865
5866fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
5868$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005869if test $ac_cv_func_strerror_r_char_p = yes; then
5870
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005871$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005872
5873fi
5874
menderico4861bb82009-09-29 00:31:36 +00005875for ac_func in vprintf
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005876do :
5877 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005878if test "x$ac_cv_func_vprintf" = x""yes; then :
menderico4861bb82009-09-29 00:31:36 +00005879 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005880#define HAVE_VPRINTF 1
menderico4861bb82009-09-29 00:31:36 +00005881_ACEOF
5882
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005883ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005884if test "x$ac_cv_func__doprnt" = x""yes; then :
menderico4861bb82009-09-29 00:31:36 +00005885
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005886$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005887
5888fi
5889
5890fi
5891done
5892
5893
nick.j.sandersaeef0912013-01-07 20:07:28 +00005894for ac_func in ftruncate gettimeofday memset munmap select socket strtol strtoull
5895do :
5896 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5897ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005898eval as_val=\$$as_ac_var
5899 if test "x$as_val" = x""yes; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005900 cat >>confdefs.h <<_ACEOF
5901#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5902_ACEOF
5903
5904fi
5905done
5906
5907for ac_func in mmap64 posix_memalign rand_r sched_getaffinity
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005908do :
5909 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5910ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005911eval as_val=\$$as_ac_var
5912 if test "x$as_val" = x""yes; then :
menderico4861bb82009-09-29 00:31:36 +00005913 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005914#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
menderico4861bb82009-09-29 00:31:36 +00005915_ACEOF
5916
5917fi
5918done
5919
5920
5921ac_config_files="$ac_config_files Makefile src/Makefile"
5922
5923cat >confcache <<\_ACEOF
5924# This file is a shell script that caches the results of configure
5925# tests run on this system so they can be shared between configure
5926# scripts and configure runs, see configure's option --config-cache.
5927# It is not useful on other systems. If it contains results you don't
5928# want to keep, you may remove or edit it.
5929#
5930# config.status only pays attention to the cache file if you give it
5931# the --recheck option to rerun configure.
5932#
5933# `ac_cv_env_foo' variables (set or unset) will be overridden when
5934# loading this file, other *unset* `ac_cv_foo' will be assigned the
5935# following values.
5936
5937_ACEOF
5938
5939# The following way of writing the cache mishandles newlines in values,
5940# but we know of no workaround that is simple, portable, and efficient.
5941# So, we kill variables containing newlines.
5942# Ultrix sh set writes to stderr and can't be redirected directly,
5943# and sets the high bit in the cache file unless we assign to the vars.
5944(
5945 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5946 eval ac_val=\$$ac_var
5947 case $ac_val in #(
5948 *${as_nl}*)
5949 case $ac_var in #(
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005950 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5951$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
menderico4861bb82009-09-29 00:31:36 +00005952 esac
5953 case $ac_var in #(
5954 _ | IFS | as_nl) ;; #(
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005955 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5956 *) { eval $ac_var=; unset $ac_var;} ;;
menderico4861bb82009-09-29 00:31:36 +00005957 esac ;;
5958 esac
5959 done
5960
5961 (set) 2>&1 |
5962 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5963 *${as_nl}ac_space=\ *)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005964 # `set' does not quote correctly, so add quotes: double-quote
5965 # substitution turns \\\\ into \\, and sed turns \\ into \.
menderico4861bb82009-09-29 00:31:36 +00005966 sed -n \
5967 "s/'/'\\\\''/g;
5968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5969 ;; #(
5970 *)
5971 # `set' quotes correctly as required by POSIX, so do not add quotes.
5972 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5973 ;;
5974 esac |
5975 sort
5976) |
5977 sed '
5978 /^ac_cv_env_/b end
5979 t clear
5980 :clear
5981 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5982 t end
5983 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5984 :end' >>confcache
5985if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5986 if test -w "$cache_file"; then
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005987 test "x$cache_file" != "x/dev/null" &&
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005988 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5989$as_echo "$as_me: updating cache $cache_file" >&6;}
nick.j.sanders00fa12e2014-08-04 21:04:06 +00005990 cat confcache >$cache_file
menderico4861bb82009-09-29 00:31:36 +00005991 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005992 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5993$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
menderico4861bb82009-09-29 00:31:36 +00005994 fi
5995fi
5996rm -f confcache
5997
5998test "x$prefix" = xNONE && prefix=$ac_default_prefix
5999# Let make expand exec_prefix.
6000test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6001
6002DEFS=-DHAVE_CONFIG_H
6003
6004ac_libobjs=
6005ac_ltlibobjs=
6006for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6007 # 1. Remove the extension, and $U if already installed.
6008 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006009 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
menderico4861bb82009-09-29 00:31:36 +00006010 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6011 # will be set to the directory where LIBOBJS objects are built.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006012 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6013 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
menderico4861bb82009-09-29 00:31:36 +00006014done
6015LIBOBJS=$ac_libobjs
6016
6017LTLIBOBJS=$ac_ltlibobjs
6018
6019
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006020 if test -n "$EXEEXT"; then
6021 am__EXEEXT_TRUE=
6022 am__EXEEXT_FALSE='#'
6023else
6024 am__EXEEXT_TRUE='#'
6025 am__EXEEXT_FALSE=
6026fi
6027
menderico4861bb82009-09-29 00:31:36 +00006028if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006029 as_fn_error "conditional \"AMDEP\" was never defined.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006030Usually this means the macro was only invoked conditionally." "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00006031fi
6032if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006033 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006034Usually this means the macro was only invoked conditionally." "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00006035fi
6036if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006037 as_fn_error "conditional \"am__fastdepCC\" was never defined.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006038Usually this means the macro was only invoked conditionally." "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00006039fi
6040
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006041: ${CONFIG_STATUS=./config.status}
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006042ac_write_fail=0
menderico4861bb82009-09-29 00:31:36 +00006043ac_clean_files_save=$ac_clean_files
6044ac_clean_files="$ac_clean_files $CONFIG_STATUS"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006045{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6046$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6047as_write_fail=0
6048cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006049#! $SHELL
6050# Generated by $as_me.
6051# Run this file to recreate the current configuration.
6052# Compiler output produced by configure, useful for debugging
6053# configure, is in config.log if it exists.
6054
6055debug=false
6056ac_cs_recheck=false
6057ac_cs_silent=false
menderico4861bb82009-09-29 00:31:36 +00006058
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006059SHELL=\${CONFIG_SHELL-$SHELL}
6060export SHELL
6061_ASEOF
6062cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6063## -------------------- ##
6064## M4sh Initialization. ##
6065## -------------------- ##
menderico4861bb82009-09-29 00:31:36 +00006066
6067# Be more Bourne compatible
6068DUALCASE=1; export DUALCASE # for MKS sh
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006069if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
menderico4861bb82009-09-29 00:31:36 +00006070 emulate sh
6071 NULLCMD=:
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006072 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
menderico4861bb82009-09-29 00:31:36 +00006073 # is contrary to our usage. Disable this feature.
6074 alias -g '${1+"$@"}'='"$@"'
6075 setopt NO_GLOB_SUBST
6076else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006077 case `(set -o) 2>/dev/null` in #(
6078 *posix*) :
6079 set -o posix ;; #(
6080 *) :
6081 ;;
menderico4861bb82009-09-29 00:31:36 +00006082esac
menderico4861bb82009-09-29 00:31:36 +00006083fi
6084
6085
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006086as_nl='
6087'
6088export as_nl
6089# Printing a long string crashes Solaris 7 /usr/bin/printf.
6090as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6091as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6092as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6093# Prefer a ksh shell builtin over an external printf program on Solaris,
6094# but without wasting forks for bash or zsh.
6095if test -z "$BASH_VERSION$ZSH_VERSION" \
6096 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6097 as_echo='print -r --'
6098 as_echo_n='print -rn --'
6099elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6100 as_echo='printf %s\n'
6101 as_echo_n='printf %s'
6102else
6103 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6104 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6105 as_echo_n='/usr/ucb/echo -n'
6106 else
6107 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6108 as_echo_n_body='eval
6109 arg=$1;
6110 case $arg in #(
6111 *"$as_nl"*)
6112 expr "X$arg" : "X\\(.*\\)$as_nl";
6113 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6114 esac;
6115 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6116 '
6117 export as_echo_n_body
6118 as_echo_n='sh -c $as_echo_n_body as_echo'
6119 fi
6120 export as_echo_body
6121 as_echo='sh -c $as_echo_body as_echo'
6122fi
menderico4861bb82009-09-29 00:31:36 +00006123
6124# The user is always right.
6125if test "${PATH_SEPARATOR+set}" != set; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006126 PATH_SEPARATOR=:
6127 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6128 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6129 PATH_SEPARATOR=';'
6130 }
menderico4861bb82009-09-29 00:31:36 +00006131fi
6132
6133
6134# IFS
6135# We need space, tab and new line, in precisely that order. Quoting is
6136# there to prevent editors from complaining about space-tab.
6137# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6138# splitting by setting IFS to empty value.)
menderico4861bb82009-09-29 00:31:36 +00006139IFS=" "" $as_nl"
6140
6141# Find who we are. Look in the path if we contain no directory separator.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006142case $0 in #((
menderico4861bb82009-09-29 00:31:36 +00006143 *[\\/]* ) as_myself=$0 ;;
6144 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145for as_dir in $PATH
6146do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006149 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6150 done
menderico4861bb82009-09-29 00:31:36 +00006151IFS=$as_save_IFS
6152
6153 ;;
6154esac
6155# We did not find ourselves, most probably we were run as `sh COMMAND'
6156# in which case we are not to be found in the path.
6157if test "x$as_myself" = x; then
6158 as_myself=$0
6159fi
6160if test ! -f "$as_myself"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006161 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6162 exit 1
menderico4861bb82009-09-29 00:31:36 +00006163fi
6164
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006165# Unset variables that we do not need and which cause bugs (e.g. in
6166# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6167# suppresses any "Segmentation fault" message there. '((' could
6168# trigger a bug in pdksh 5.2.14.
6169for as_var in BASH_ENV ENV MAIL MAILPATH
6170do eval test x\${$as_var+set} = xset \
6171 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
menderico4861bb82009-09-29 00:31:36 +00006172done
6173PS1='$ '
6174PS2='> '
6175PS4='+ '
6176
6177# NLS nuisances.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006178LC_ALL=C
6179export LC_ALL
6180LANGUAGE=C
6181export LANGUAGE
menderico4861bb82009-09-29 00:31:36 +00006182
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006183# CDPATH.
6184(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6185
6186
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006187# as_fn_error ERROR [LINENO LOG_FD]
6188# ---------------------------------
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006189# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6190# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006191# script with status $?, using 1 if that was 0.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006192as_fn_error ()
6193{
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006194 as_status=$?; test $as_status -eq 0 && as_status=1
6195 if test "$3"; then
6196 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6197 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006198 fi
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006199 $as_echo "$as_me: error: $1" >&2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006200 as_fn_exit $as_status
6201} # as_fn_error
6202
6203
6204# as_fn_set_status STATUS
6205# -----------------------
6206# Set $? to STATUS, without forking.
6207as_fn_set_status ()
6208{
6209 return $1
6210} # as_fn_set_status
6211
6212# as_fn_exit STATUS
6213# -----------------
6214# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6215as_fn_exit ()
6216{
6217 set +e
6218 as_fn_set_status $1
6219 exit $1
6220} # as_fn_exit
6221
6222# as_fn_unset VAR
6223# ---------------
6224# Portably unset VAR.
6225as_fn_unset ()
6226{
6227 { eval $1=; unset $1;}
6228}
6229as_unset=as_fn_unset
6230# as_fn_append VAR VALUE
6231# ----------------------
6232# Append the text in VALUE to the end of the definition contained in VAR. Take
6233# advantage of any shell optimizations that allow amortized linear growth over
6234# repeated appends, instead of the typical quadratic growth present in naive
6235# implementations.
6236if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6237 eval 'as_fn_append ()
6238 {
6239 eval $1+=\$2
6240 }'
6241else
6242 as_fn_append ()
6243 {
6244 eval $1=\$$1\$2
6245 }
6246fi # as_fn_append
6247
6248# as_fn_arith ARG...
6249# ------------------
6250# Perform arithmetic evaluation on the ARGs, and store the result in the
6251# global $as_val. Take advantage of shells that can avoid forks. The arguments
6252# must be portable across $(()) and expr.
6253if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6254 eval 'as_fn_arith ()
6255 {
6256 as_val=$(( $* ))
6257 }'
6258else
6259 as_fn_arith ()
6260 {
6261 as_val=`expr "$@" || test $? -eq 1`
6262 }
6263fi # as_fn_arith
6264
6265
menderico4861bb82009-09-29 00:31:36 +00006266if expr a : '\(a\)' >/dev/null 2>&1 &&
6267 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6268 as_expr=expr
6269else
6270 as_expr=false
6271fi
6272
6273if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6274 as_basename=basename
6275else
6276 as_basename=false
6277fi
6278
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006279if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6280 as_dirname=dirname
6281else
6282 as_dirname=false
6283fi
menderico4861bb82009-09-29 00:31:36 +00006284
menderico4861bb82009-09-29 00:31:36 +00006285as_me=`$as_basename -- "$0" ||
6286$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6287 X"$0" : 'X\(//\)$' \| \
6288 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006289$as_echo X/"$0" |
menderico4861bb82009-09-29 00:31:36 +00006290 sed '/^.*\/\([^/][^/]*\)\/*$/{
6291 s//\1/
6292 q
6293 }
6294 /^X\/\(\/\/\)$/{
6295 s//\1/
6296 q
6297 }
6298 /^X\/\(\/\).*/{
6299 s//\1/
6300 q
6301 }
6302 s/.*/./; q'`
6303
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006304# Avoid depending upon Character Ranges.
6305as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6306as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6307as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6308as_cr_digits='0123456789'
6309as_cr_alnum=$as_cr_Letters$as_cr_digits
menderico4861bb82009-09-29 00:31:36 +00006310
6311ECHO_C= ECHO_N= ECHO_T=
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006312case `echo -n x` in #(((((
menderico4861bb82009-09-29 00:31:36 +00006313-n*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006314 case `echo 'xy\c'` in
menderico4861bb82009-09-29 00:31:36 +00006315 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006316 xy) ECHO_C='\c';;
6317 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6318 ECHO_T=' ';;
menderico4861bb82009-09-29 00:31:36 +00006319 esac;;
6320*)
6321 ECHO_N='-n';;
6322esac
6323
menderico4861bb82009-09-29 00:31:36 +00006324rm -f conf$$ conf$$.exe conf$$.file
6325if test -d conf$$.dir; then
6326 rm -f conf$$.dir/conf$$.file
6327else
6328 rm -f conf$$.dir
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006329 mkdir conf$$.dir 2>/dev/null
menderico4861bb82009-09-29 00:31:36 +00006330fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006331if (echo >conf$$.file) 2>/dev/null; then
6332 if ln -s conf$$.file conf$$ 2>/dev/null; then
6333 as_ln_s='ln -s'
6334 # ... but there are two gotchas:
6335 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6336 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6337 # In both cases, we have to default to `cp -p'.
6338 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6339 as_ln_s='cp -p'
6340 elif ln conf$$.file conf$$ 2>/dev/null; then
6341 as_ln_s=ln
6342 else
menderico4861bb82009-09-29 00:31:36 +00006343 as_ln_s='cp -p'
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006344 fi
menderico4861bb82009-09-29 00:31:36 +00006345else
6346 as_ln_s='cp -p'
6347fi
6348rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6349rmdir conf$$.dir 2>/dev/null
6350
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006351
6352# as_fn_mkdir_p
6353# -------------
6354# Create "$as_dir" as a directory, including parents if necessary.
6355as_fn_mkdir_p ()
6356{
6357
6358 case $as_dir in #(
6359 -*) as_dir=./$as_dir;;
6360 esac
6361 test -d "$as_dir" || eval $as_mkdir_p || {
6362 as_dirs=
6363 while :; do
6364 case $as_dir in #(
6365 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6366 *) as_qdir=$as_dir;;
6367 esac
6368 as_dirs="'$as_qdir' $as_dirs"
6369 as_dir=`$as_dirname -- "$as_dir" ||
6370$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6371 X"$as_dir" : 'X\(//\)[^/]' \| \
6372 X"$as_dir" : 'X\(//\)$' \| \
6373 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6374$as_echo X"$as_dir" |
6375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6376 s//\1/
6377 q
6378 }
6379 /^X\(\/\/\)[^/].*/{
6380 s//\1/
6381 q
6382 }
6383 /^X\(\/\/\)$/{
6384 s//\1/
6385 q
6386 }
6387 /^X\(\/\).*/{
6388 s//\1/
6389 q
6390 }
6391 s/.*/./; q'`
6392 test -d "$as_dir" && break
6393 done
6394 test -z "$as_dirs" || eval "mkdir $as_dirs"
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006395 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006396
6397
6398} # as_fn_mkdir_p
menderico4861bb82009-09-29 00:31:36 +00006399if mkdir -p . 2>/dev/null; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006400 as_mkdir_p='mkdir -p "$as_dir"'
menderico4861bb82009-09-29 00:31:36 +00006401else
6402 test -d ./-p && rmdir ./-p
6403 as_mkdir_p=false
6404fi
6405
6406if test -x / >/dev/null 2>&1; then
6407 as_test_x='test -x'
6408else
6409 if ls -dL / >/dev/null 2>&1; then
6410 as_ls_L_option=L
6411 else
6412 as_ls_L_option=
6413 fi
6414 as_test_x='
6415 eval sh -c '\''
6416 if test -d "$1"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006417 test -d "$1/.";
menderico4861bb82009-09-29 00:31:36 +00006418 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006419 case $1 in #(
6420 -*)set "./$1";;
menderico4861bb82009-09-29 00:31:36 +00006421 esac;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006422 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
menderico4861bb82009-09-29 00:31:36 +00006423 ???[sx]*):;;*)false;;esac;fi
6424 '\'' sh
6425 '
6426fi
6427as_executable_p=$as_test_x
6428
6429# Sed expression to map a string onto a valid CPP name.
6430as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6431
6432# Sed expression to map a string onto a valid variable name.
6433as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6434
6435
6436exec 6>&1
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006437## ----------------------------------- ##
6438## Main body of $CONFIG_STATUS script. ##
6439## ----------------------------------- ##
6440_ASEOF
6441test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006442
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006443cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6444# Save the log message, to keep $0 and so on meaningful, and to
menderico4861bb82009-09-29 00:31:36 +00006445# report actual input values of CONFIG_FILES etc. instead of their
6446# values after options handling.
6447ac_log="
nick.j.sanders318caaf2014-02-11 09:02:48 +00006448This file was extended by stressapptest $as_me 1.0.7_autoconf, which was
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006449generated by GNU Autoconf 2.65. Invocation command line was
menderico4861bb82009-09-29 00:31:36 +00006450
6451 CONFIG_FILES = $CONFIG_FILES
6452 CONFIG_HEADERS = $CONFIG_HEADERS
6453 CONFIG_LINKS = $CONFIG_LINKS
6454 CONFIG_COMMANDS = $CONFIG_COMMANDS
6455 $ $0 $@
6456
6457on `(hostname || uname -n) 2>/dev/null | sed 1q`
6458"
6459
6460_ACEOF
6461
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006462case $ac_config_files in *"
6463"*) set x $ac_config_files; shift; ac_config_files=$*;;
6464esac
6465
6466case $ac_config_headers in *"
6467"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6468esac
6469
6470
6471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006472# Files that config.status was made for.
6473config_files="$ac_config_files"
6474config_headers="$ac_config_headers"
6475config_commands="$ac_config_commands"
6476
6477_ACEOF
6478
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006480ac_cs_usage="\
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006481\`$as_me' instantiates files and other configuration actions
6482from templates according to the current configuration. Unless the files
6483and actions are specified as TAGs, all are instantiated by default.
menderico4861bb82009-09-29 00:31:36 +00006484
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006485Usage: $0 [OPTION]... [TAG]...
menderico4861bb82009-09-29 00:31:36 +00006486
6487 -h, --help print this help, then exit
6488 -V, --version print version number and configuration settings, then exit
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006489 --config print configuration, then exit
6490 -q, --quiet, --silent
6491 do not print progress messages
menderico4861bb82009-09-29 00:31:36 +00006492 -d, --debug don't remove temporary files
6493 --recheck update $as_me by reconfiguring in the same conditions
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006494 --file=FILE[:TEMPLATE]
6495 instantiate the configuration file FILE
6496 --header=FILE[:TEMPLATE]
6497 instantiate the configuration header FILE
menderico4861bb82009-09-29 00:31:36 +00006498
6499Configuration files:
6500$config_files
6501
6502Configuration headers:
6503$config_headers
6504
6505Configuration commands:
6506$config_commands
6507
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006508Report bugs to <opensource@google.com>."
menderico4861bb82009-09-29 00:31:36 +00006509
6510_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6512ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
menderico4861bb82009-09-29 00:31:36 +00006513ac_cs_version="\\
nick.j.sanders318caaf2014-02-11 09:02:48 +00006514stressapptest config.status 1.0.7_autoconf
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006515configured by $0, generated by GNU Autoconf 2.65,
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006516 with options \\"\$ac_cs_config\\"
menderico4861bb82009-09-29 00:31:36 +00006517
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006518Copyright (C) 2009 Free Software Foundation, Inc.
menderico4861bb82009-09-29 00:31:36 +00006519This config.status script is free software; the Free Software Foundation
6520gives unlimited permission to copy, distribute and modify it."
6521
6522ac_pwd='$ac_pwd'
6523srcdir='$srcdir'
6524INSTALL='$INSTALL'
6525MKDIR_P='$MKDIR_P'
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006526AWK='$AWK'
6527test -n "\$AWK" || AWK=awk
menderico4861bb82009-09-29 00:31:36 +00006528_ACEOF
6529
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6531# The default lists apply if the user does not specify any file.
menderico4861bb82009-09-29 00:31:36 +00006532ac_need_defaults=:
6533while test $# != 0
6534do
6535 case $1 in
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006536 --*=*)
menderico4861bb82009-09-29 00:31:36 +00006537 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6538 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6539 ac_shift=:
6540 ;;
6541 *)
6542 ac_option=$1
6543 ac_optarg=$2
6544 ac_shift=shift
6545 ;;
6546 esac
6547
6548 case $ac_option in
6549 # Handling of the options.
6550 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6551 ac_cs_recheck=: ;;
6552 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006553 $as_echo "$ac_cs_version"; exit ;;
6554 --config | --confi | --conf | --con | --co | --c )
6555 $as_echo "$ac_cs_config"; exit ;;
menderico4861bb82009-09-29 00:31:36 +00006556 --debug | --debu | --deb | --de | --d | -d )
6557 debug=: ;;
6558 --file | --fil | --fi | --f )
6559 $ac_shift
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006560 case $ac_optarg in
6561 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6562 esac
6563 as_fn_append CONFIG_FILES " '$ac_optarg'"
menderico4861bb82009-09-29 00:31:36 +00006564 ac_need_defaults=false;;
6565 --header | --heade | --head | --hea )
6566 $ac_shift
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006567 case $ac_optarg in
6568 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6569 esac
6570 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
menderico4861bb82009-09-29 00:31:36 +00006571 ac_need_defaults=false;;
6572 --he | --h)
6573 # Conflict between --help and --header
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006574 as_fn_error "ambiguous option: \`$1'
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006575Try \`$0 --help' for more information.";;
menderico4861bb82009-09-29 00:31:36 +00006576 --help | --hel | -h )
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006577 $as_echo "$ac_cs_usage"; exit ;;
menderico4861bb82009-09-29 00:31:36 +00006578 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6579 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6580 ac_cs_silent=: ;;
6581
6582 # This is an error.
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006583 -*) as_fn_error "unrecognized option: \`$1'
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006584Try \`$0 --help' for more information." ;;
menderico4861bb82009-09-29 00:31:36 +00006585
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006586 *) as_fn_append ac_config_targets " $1"
menderico4861bb82009-09-29 00:31:36 +00006587 ac_need_defaults=false ;;
6588
6589 esac
6590 shift
6591done
6592
6593ac_configure_extra_args=
6594
6595if $ac_cs_silent; then
6596 exec 6>/dev/null
6597 ac_configure_extra_args="$ac_configure_extra_args --silent"
6598fi
6599
6600_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006601cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006602if \$ac_cs_recheck; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006603 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6604 shift
6605 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6606 CONFIG_SHELL='$SHELL'
menderico4861bb82009-09-29 00:31:36 +00006607 export CONFIG_SHELL
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006608 exec "\$@"
menderico4861bb82009-09-29 00:31:36 +00006609fi
6610
6611_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006613exec 5>>config.log
6614{
6615 echo
6616 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6617## Running $as_me. ##
6618_ASBOX
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006619 $as_echo "$ac_log"
menderico4861bb82009-09-29 00:31:36 +00006620} >&5
6621
6622_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006624#
6625# INIT-COMMANDS
6626#
6627AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6628
6629_ACEOF
6630
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006632
6633# Handling of arguments.
6634for ac_config_target in $ac_config_targets
6635do
6636 case $ac_config_target in
6637 "src/stressapptest_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/stressapptest_config.h" ;;
6638 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6639 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6640 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6641
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006642 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
menderico4861bb82009-09-29 00:31:36 +00006643 esac
6644done
6645
6646
6647# If the user did not use the arguments to specify the items to instantiate,
6648# then the envvar interface is used. Set only those that are not.
6649# We use the long form for the default assignment because of an extremely
6650# bizarre bug on SunOS 4.1.3.
6651if $ac_need_defaults; then
6652 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6653 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6654 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6655fi
6656
6657# Have a temporary directory for convenience. Make it in the build tree
6658# simply because there is no reason against having it here, and in addition,
6659# creating and moving files from /tmp can sometimes cause problems.
6660# Hook for its removal unless debugging.
6661# Note that there is a small window in which the directory will not be cleaned:
6662# after its creation but before its name has been assigned to `$tmp'.
6663$debug ||
6664{
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006665 tmp=
menderico4861bb82009-09-29 00:31:36 +00006666 trap 'exit_status=$?
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006667 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
menderico4861bb82009-09-29 00:31:36 +00006668' 0
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006669 trap 'as_fn_exit 1' 1 2 13 15
menderico4861bb82009-09-29 00:31:36 +00006670}
6671# Create a (secure) tmp directory for tmp files.
6672
6673{
6674 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006675 test -n "$tmp" && test -d "$tmp"
menderico4861bb82009-09-29 00:31:36 +00006676} ||
6677{
6678 tmp=./conf$$-$RANDOM
6679 (umask 077 && mkdir "$tmp")
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006680} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00006681
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006682# Set up the scripts for CONFIG_FILES section.
6683# No need to generate them if there are no CONFIG_FILES.
6684# This happens for instance with `./config.status config.h'.
menderico4861bb82009-09-29 00:31:36 +00006685if test -n "$CONFIG_FILES"; then
6686
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006687
6688ac_cr=`echo X | tr X '\015'`
6689# On cygwin, bash can eat \r inside `` if the user requested igncr.
6690# But we know of no other shell where ac_cr would be empty at this
6691# point, so we can use a bashism as a fallback.
6692if test "x$ac_cr" = x; then
6693 eval ac_cr=\$\'\\r\'
6694fi
6695ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6696if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006697 ac_cs_awk_cr='\r'
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006698else
6699 ac_cs_awk_cr=$ac_cr
6700fi
6701
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006702echo 'BEGIN {' >"$tmp/subs1.awk" &&
menderico4861bb82009-09-29 00:31:36 +00006703_ACEOF
6704
6705
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006706{
6707 echo "cat >conf$$subs.awk <<_ACEOF" &&
6708 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6709 echo "_ACEOF"
6710} >conf$$subs.sh ||
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006711 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6712ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
menderico4861bb82009-09-29 00:31:36 +00006713ac_delim='%!_!# '
6714for ac_last_try in false false false false false :; do
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006715 . ./conf$$subs.sh ||
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006716 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00006717
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006718 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6719 if test $ac_delim_n = $ac_delim_num; then
menderico4861bb82009-09-29 00:31:36 +00006720 break
6721 elif $ac_last_try; then
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006722 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00006723 else
6724 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6725 fi
6726done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006727rm -f conf$$subs.sh
menderico4861bb82009-09-29 00:31:36 +00006728
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006730cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
menderico4861bb82009-09-29 00:31:36 +00006731_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006732sed -n '
6733h
6734s/^/S["/; s/!.*/"]=/
6735p
6736g
6737s/^[^!]*!//
6738:repl
6739t repl
6740s/'"$ac_delim"'$//
6741t delim
6742:nl
6743h
6744s/\(.\{148\}\)..*/\1/
6745t more1
6746s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6747p
6748n
6749b repl
6750:more1
6751s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6752p
6753g
6754s/.\{148\}//
6755t nl
6756:delim
6757h
6758s/\(.\{148\}\)..*/\1/
6759t more2
6760s/["\\]/\\&/g; s/^/"/; s/$/"/
6761p
6762b
6763:more2
6764s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6765p
6766g
6767s/.\{148\}//
6768t delim
6769' <conf$$subs.awk | sed '
6770/^[^""]/{
6771 N
6772 s/\n//
6773}
6774' >>$CONFIG_STATUS || ac_write_fail=1
6775rm -f conf$$subs.awk
6776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6777_ACAWK
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006778cat >>"\$tmp/subs1.awk" <<_ACAWK &&
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006779 for (key in S) S_is_set[key] = 1
6780 FS = ""
6781
6782}
6783{
6784 line = $ 0
6785 nfields = split(line, field, "@")
6786 substed = 0
6787 len = length(field[1])
6788 for (i = 2; i < nfields; i++) {
6789 key = field[i]
6790 keylen = length(key)
6791 if (S_is_set[key]) {
6792 value = S[key]
6793 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6794 len += length(value) + length(field[++i])
6795 substed = 1
6796 } else
6797 len += 1 + keylen
6798 }
6799
6800 print line
6801}
6802
6803_ACAWK
menderico4861bb82009-09-29 00:31:36 +00006804_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6806if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6807 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6808else
6809 cat
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006810fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6811 || as_fn_error "could not setup config files machinery" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00006812_ACEOF
6813
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006814# VPATH may cause trouble with some makes, so we remove $(srcdir),
6815# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
menderico4861bb82009-09-29 00:31:36 +00006816# trailing colons and then remove the whole line if VPATH becomes empty
6817# (actually we leave an empty line to preserve line numbers).
6818if test "x$srcdir" = x.; then
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006819 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6820s/:*\$(srcdir):*/:/
6821s/:*\${srcdir}:*/:/
6822s/:*@srcdir@:*/:/
6823s/^\([^=]*=[ ]*\):*/\1/
menderico4861bb82009-09-29 00:31:36 +00006824s/:*$//
6825s/^[^=]*=[ ]*$//
6826}'
6827fi
6828
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006830fi # test -n "$CONFIG_FILES"
6831
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006832# Set up the scripts for CONFIG_HEADERS section.
6833# No need to generate them if there are no CONFIG_HEADERS.
6834# This happens for instance with `./config.status Makefile'.
6835if test -n "$CONFIG_HEADERS"; then
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006836cat >"$tmp/defines.awk" <<\_ACAWK ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006837BEGIN {
6838_ACEOF
menderico4861bb82009-09-29 00:31:36 +00006839
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006840# Transform confdefs.h into an awk script `defines.awk', embedded as
6841# here-document in config.status, that substitutes the proper values into
6842# config.h.in to produce config.h.
6843
6844# Create a delimiter string that does not exist in confdefs.h, to ease
6845# handling of long lines.
6846ac_delim='%!_!# '
6847for ac_last_try in false false :; do
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006848 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6849 if test -z "$ac_t"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006850 break
6851 elif $ac_last_try; then
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006852 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006853 else
6854 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6855 fi
6856done
6857
6858# For the awk script, D is an array of macro values keyed by name,
6859# likewise P contains macro parameters if any. Preserve backslash
6860# newline sequences.
6861
6862ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6863sed -n '
6864s/.\{148\}/&'"$ac_delim"'/g
6865t rset
6866:rset
6867s/^[ ]*#[ ]*define[ ][ ]*/ /
6868t def
6869d
6870:def
6871s/\\$//
6872t bsnl
6873s/["\\]/\\&/g
6874s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6875D["\1"]=" \3"/p
6876s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6877d
6878:bsnl
6879s/["\\]/\\&/g
6880s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6881D["\1"]=" \3\\\\\\n"\\/p
6882t cont
6883s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6884t cont
6885d
6886:cont
6887n
6888s/.\{148\}/&'"$ac_delim"'/g
6889t clear
6890:clear
6891s/\\$//
6892t bsnlc
6893s/["\\]/\\&/g; s/^/"/; s/$/"/p
6894d
6895:bsnlc
6896s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6897b cont
6898' <confdefs.h | sed '
6899s/'"$ac_delim"'/"\\\
6900"/g' >>$CONFIG_STATUS || ac_write_fail=1
6901
6902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6903 for (key in D) D_is_set[key] = 1
6904 FS = ""
6905}
6906/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6907 line = \$ 0
6908 split(line, arg, " ")
6909 if (arg[1] == "#") {
6910 defundef = arg[2]
6911 mac1 = arg[3]
6912 } else {
6913 defundef = substr(arg[1], 2)
6914 mac1 = arg[2]
6915 }
6916 split(mac1, mac2, "(") #)
6917 macro = mac2[1]
6918 prefix = substr(line, 1, index(line, defundef) - 1)
6919 if (D_is_set[macro]) {
6920 # Preserve the white space surrounding the "#".
6921 print prefix "define", macro P[macro] D[macro]
6922 next
6923 } else {
6924 # Replace #undef with comments. This is necessary, for example,
6925 # in the case of _POSIX_SOURCE, which is predefined and required
6926 # on some systems where configure will not decide to define it.
6927 if (defundef == "undef") {
6928 print "/*", prefix defundef, macro, "*/"
6929 next
6930 }
6931 }
6932}
6933{ print }
6934_ACAWK
6935_ACEOF
6936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006937 as_fn_error "could not setup config headers machinery" "$LINENO" 5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006938fi # test -n "$CONFIG_HEADERS"
6939
6940
6941eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6942shift
6943for ac_tag
menderico4861bb82009-09-29 00:31:36 +00006944do
6945 case $ac_tag in
6946 :[FHLC]) ac_mode=$ac_tag; continue;;
6947 esac
6948 case $ac_mode$ac_tag in
6949 :[FHL]*:*);;
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006950 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
menderico4861bb82009-09-29 00:31:36 +00006951 :[FH]-) ac_tag=-:-;;
6952 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6953 esac
6954 ac_save_IFS=$IFS
6955 IFS=:
6956 set x $ac_tag
6957 IFS=$ac_save_IFS
6958 shift
6959 ac_file=$1
6960 shift
6961
6962 case $ac_mode in
6963 :L) ac_source=$1;;
6964 :[FH])
6965 ac_file_inputs=
6966 for ac_f
6967 do
6968 case $ac_f in
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006969 -) ac_f="$tmp/stdin";;
menderico4861bb82009-09-29 00:31:36 +00006970 *) # Look for the file first in the build tree, then in the source tree
6971 # (if the path is not absolute). The absolute path cannot be DOS-style,
6972 # because $ac_f cannot contain `:'.
6973 test -f "$ac_f" ||
6974 case $ac_f in
6975 [\\/$]*) false;;
6976 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6977 esac ||
nick.j.sanders00fa12e2014-08-04 21:04:06 +00006978 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
menderico4861bb82009-09-29 00:31:36 +00006979 esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006980 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6981 as_fn_append ac_file_inputs " '$ac_f'"
menderico4861bb82009-09-29 00:31:36 +00006982 done
6983
6984 # Let's still pretend it is `configure' which instantiates (i.e., don't
6985 # use $as_me), people would be surprised to read:
6986 # /* config.h. Generated by config.status. */
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006987 configure_input='Generated from '`
6988 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6989 `' by configure.'
menderico4861bb82009-09-29 00:31:36 +00006990 if test x"$ac_file" != x-; then
6991 configure_input="$ac_file. $configure_input"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6993$as_echo "$as_me: creating $ac_file" >&6;}
menderico4861bb82009-09-29 00:31:36 +00006994 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006995 # Neutralize special characters interpreted by sed in replacement strings.
6996 case $configure_input in #(
6997 *\&* | *\|* | *\\* )
6998 ac_sed_conf_input=`$as_echo "$configure_input" |
6999 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7000 *) ac_sed_conf_input=$configure_input;;
7001 esac
menderico4861bb82009-09-29 00:31:36 +00007002
7003 case $ac_tag in
nick.j.sanders00fa12e2014-08-04 21:04:06 +00007004 *:-:* | *:-) cat >"$tmp/stdin" \
7005 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
menderico4861bb82009-09-29 00:31:36 +00007006 esac
7007 ;;
7008 esac
7009
7010 ac_dir=`$as_dirname -- "$ac_file" ||
7011$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7012 X"$ac_file" : 'X\(//\)[^/]' \| \
7013 X"$ac_file" : 'X\(//\)$' \| \
7014 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007015$as_echo X"$ac_file" |
menderico4861bb82009-09-29 00:31:36 +00007016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7017 s//\1/
7018 q
7019 }
7020 /^X\(\/\/\)[^/].*/{
7021 s//\1/
7022 q
7023 }
7024 /^X\(\/\/\)$/{
7025 s//\1/
7026 q
7027 }
7028 /^X\(\/\).*/{
7029 s//\1/
7030 q
7031 }
7032 s/.*/./; q'`
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007033 as_dir="$ac_dir"; as_fn_mkdir_p
menderico4861bb82009-09-29 00:31:36 +00007034 ac_builddir=.
7035
7036case "$ac_dir" in
7037.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7038*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007039 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
menderico4861bb82009-09-29 00:31:36 +00007040 # A ".." for each directory in $ac_dir_suffix.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007041 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
menderico4861bb82009-09-29 00:31:36 +00007042 case $ac_top_builddir_sub in
7043 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7044 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7045 esac ;;
7046esac
7047ac_abs_top_builddir=$ac_pwd
7048ac_abs_builddir=$ac_pwd$ac_dir_suffix
7049# for backward compatibility:
7050ac_top_builddir=$ac_top_build_prefix
7051
7052case $srcdir in
7053 .) # We are building in place.
7054 ac_srcdir=.
7055 ac_top_srcdir=$ac_top_builddir_sub
7056 ac_abs_top_srcdir=$ac_pwd ;;
7057 [\\/]* | ?:[\\/]* ) # Absolute name.
7058 ac_srcdir=$srcdir$ac_dir_suffix;
7059 ac_top_srcdir=$srcdir
7060 ac_abs_top_srcdir=$srcdir ;;
7061 *) # Relative name.
7062 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7063 ac_top_srcdir=$ac_top_build_prefix$srcdir
7064 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7065esac
7066ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7067
7068
7069 case $ac_mode in
7070 :F)
7071 #
7072 # CONFIG_FILE
7073 #
7074
7075 case $INSTALL in
7076 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7077 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7078 esac
7079 ac_MKDIR_P=$MKDIR_P
7080 case $MKDIR_P in
7081 [\\/$]* | ?:[\\/]* ) ;;
7082 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7083 esac
7084_ACEOF
7085
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00007087# If the template does not know about datarootdir, expand it.
7088# FIXME: This hack should be removed a few years after 2.60.
7089ac_datarootdir_hack=; ac_datarootdir_seen=
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007090ac_sed_dataroot='
7091/datarootdir/ {
menderico4861bb82009-09-29 00:31:36 +00007092 p
7093 q
7094}
7095/@datadir@/p
7096/@docdir@/p
7097/@infodir@/p
7098/@localedir@/p
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007099/@mandir@/p'
7100case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
menderico4861bb82009-09-29 00:31:36 +00007101*datarootdir*) ac_datarootdir_seen=yes;;
7102*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7104$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
menderico4861bb82009-09-29 00:31:36 +00007105_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00007107 ac_datarootdir_hack='
7108 s&@datadir@&$datadir&g
7109 s&@docdir@&$docdir&g
7110 s&@infodir@&$infodir&g
7111 s&@localedir@&$localedir&g
7112 s&@mandir@&$mandir&g
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007113 s&\\\${datarootdir}&$datarootdir&g' ;;
menderico4861bb82009-09-29 00:31:36 +00007114esac
7115_ACEOF
7116
7117# Neutralize VPATH when `$srcdir' = `.'.
7118# Shell code in configure.ac might set extrasub.
7119# FIXME: do we really want to maintain this feature?
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7121ac_sed_extra="$ac_vpsub
menderico4861bb82009-09-29 00:31:36 +00007122$extrasub
7123_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00007125:t
7126/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007127s|@configure_input@|$ac_sed_conf_input|;t t
menderico4861bb82009-09-29 00:31:36 +00007128s&@top_builddir@&$ac_top_builddir_sub&;t t
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007129s&@top_build_prefix@&$ac_top_build_prefix&;t t
menderico4861bb82009-09-29 00:31:36 +00007130s&@srcdir@&$ac_srcdir&;t t
7131s&@abs_srcdir@&$ac_abs_srcdir&;t t
7132s&@top_srcdir@&$ac_top_srcdir&;t t
7133s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7134s&@builddir@&$ac_builddir&;t t
7135s&@abs_builddir@&$ac_abs_builddir&;t t
7136s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7137s&@INSTALL@&$ac_INSTALL&;t t
7138s&@MKDIR_P@&$ac_MKDIR_P&;t t
7139$ac_datarootdir_hack
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007140"
nick.j.sanders00fa12e2014-08-04 21:04:06 +00007141eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7142 || as_fn_error "could not create $ac_file" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00007143
7144test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
nick.j.sanders00fa12e2014-08-04 21:04:06 +00007145 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7146 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
nick.j.sanders00fa12e2014-08-04 21:04:06 +00007148which seems to be undefined. Please make sure it is defined." >&5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007149$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
nick.j.sanders00fa12e2014-08-04 21:04:06 +00007150which seems to be undefined. Please make sure it is defined." >&2;}
menderico4861bb82009-09-29 00:31:36 +00007151
nick.j.sanders00fa12e2014-08-04 21:04:06 +00007152 rm -f "$tmp/stdin"
menderico4861bb82009-09-29 00:31:36 +00007153 case $ac_file in
nick.j.sanders00fa12e2014-08-04 21:04:06 +00007154 -) cat "$tmp/out" && rm -f "$tmp/out";;
7155 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007156 esac \
nick.j.sanders00fa12e2014-08-04 21:04:06 +00007157 || as_fn_error "could not create $ac_file" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00007158 ;;
7159 :H)
7160 #
7161 # CONFIG_HEADER
7162 #
menderico4861bb82009-09-29 00:31:36 +00007163 if test x"$ac_file" != x-; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007164 {
7165 $as_echo "/* $configure_input */" \
nick.j.sanders00fa12e2014-08-04 21:04:06 +00007166 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7167 } >"$tmp/config.h" \
7168 || as_fn_error "could not create $ac_file" "$LINENO" 5
7169 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007170 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7171$as_echo "$as_me: $ac_file is unchanged" >&6;}
menderico4861bb82009-09-29 00:31:36 +00007172 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007173 rm -f "$ac_file"
nick.j.sanders00fa12e2014-08-04 21:04:06 +00007174 mv "$tmp/config.h" "$ac_file" \
7175 || as_fn_error "could not create $ac_file" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00007176 fi
7177 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007178 $as_echo "/* $configure_input */" \
nick.j.sanders00fa12e2014-08-04 21:04:06 +00007179 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7180 || as_fn_error "could not create -" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00007181 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007182# Compute "$ac_file"'s index in $config_headers.
7183_am_arg="$ac_file"
menderico4861bb82009-09-29 00:31:36 +00007184_am_stamp_count=1
7185for _am_header in $config_headers :; do
7186 case $_am_header in
7187 $_am_arg | $_am_arg:* )
7188 break ;;
7189 * )
7190 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7191 esac
7192done
7193echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7194$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7195 X"$_am_arg" : 'X\(//\)[^/]' \| \
7196 X"$_am_arg" : 'X\(//\)$' \| \
7197 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007198$as_echo X"$_am_arg" |
menderico4861bb82009-09-29 00:31:36 +00007199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7200 s//\1/
7201 q
7202 }
7203 /^X\(\/\/\)[^/].*/{
7204 s//\1/
7205 q
7206 }
7207 /^X\(\/\/\)$/{
7208 s//\1/
7209 q
7210 }
7211 /^X\(\/\).*/{
7212 s//\1/
7213 q
7214 }
7215 s/.*/./; q'`/stamp-h$_am_stamp_count
7216 ;;
7217
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007218 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7219$as_echo "$as_me: executing $ac_file commands" >&6;}
menderico4861bb82009-09-29 00:31:36 +00007220 ;;
7221 esac
7222
7223
7224 case $ac_file$ac_mode in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007225 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7226 # Autoconf 2.62 quotes --file arguments for eval, but not when files
7227 # are listed without --file. Let's play safe and only enable the eval
7228 # if we detect the quoting.
7229 case $CONFIG_FILES in
7230 *\'*) eval set x "$CONFIG_FILES" ;;
7231 *) set x $CONFIG_FILES ;;
7232 esac
7233 shift
7234 for mf
7235 do
7236 # Strip MF so we end up with the name of the file.
7237 mf=`echo "$mf" | sed -e 's/:.*$//'`
7238 # Check whether this is an Automake generated Makefile or not.
7239 # We used to match only the files named `Makefile.in', but
7240 # some people rename them; so instead we look at the file content.
7241 # Grep'ing the first line is not enough: some people post-process
7242 # each Makefile.in and add a new line on top of each file to say so.
7243 # Grep'ing the whole file is not good either: AIX grep has a line
7244 # limit of 2048, but all sed's we know have understand at least 4000.
7245 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7246 dirpart=`$as_dirname -- "$mf" ||
menderico4861bb82009-09-29 00:31:36 +00007247$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7248 X"$mf" : 'X\(//\)[^/]' \| \
7249 X"$mf" : 'X\(//\)$' \| \
7250 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007251$as_echo X"$mf" |
menderico4861bb82009-09-29 00:31:36 +00007252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7253 s//\1/
7254 q
7255 }
7256 /^X\(\/\/\)[^/].*/{
7257 s//\1/
7258 q
7259 }
7260 /^X\(\/\/\)$/{
7261 s//\1/
7262 q
7263 }
7264 /^X\(\/\).*/{
7265 s//\1/
7266 q
7267 }
7268 s/.*/./; q'`
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007269 else
7270 continue
7271 fi
7272 # Extract the definition of DEPDIR, am__include, and am__quote
7273 # from the Makefile without running `make'.
7274 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7275 test -z "$DEPDIR" && continue
7276 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7277 test -z "am__include" && continue
7278 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7279 # When using ansi2knr, U may be empty or an underscore; expand it
7280 U=`sed -n 's/^U = //p' < "$mf"`
7281 # Find all dependency output files, they are included files with
7282 # $(DEPDIR) in their names. We invoke sed twice because it is the
7283 # simplest approach to changing $(DEPDIR) to its actual value in the
7284 # expansion.
7285 for file in `sed -n "
7286 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7287 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7288 # Make sure the directory exists.
7289 test -f "$dirpart/$file" && continue
7290 fdir=`$as_dirname -- "$file" ||
menderico4861bb82009-09-29 00:31:36 +00007291$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7292 X"$file" : 'X\(//\)[^/]' \| \
7293 X"$file" : 'X\(//\)$' \| \
7294 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007295$as_echo X"$file" |
menderico4861bb82009-09-29 00:31:36 +00007296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7297 s//\1/
7298 q
7299 }
7300 /^X\(\/\/\)[^/].*/{
7301 s//\1/
7302 q
7303 }
7304 /^X\(\/\/\)$/{
7305 s//\1/
7306 q
7307 }
7308 /^X\(\/\).*/{
7309 s//\1/
7310 q
7311 }
7312 s/.*/./; q'`
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007313 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7314 # echo "creating $dirpart/$file"
7315 echo '# dummy' > "$dirpart/$file"
menderico4861bb82009-09-29 00:31:36 +00007316 done
menderico4861bb82009-09-29 00:31:36 +00007317 done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007318}
menderico4861bb82009-09-29 00:31:36 +00007319 ;;
7320
7321 esac
7322done # for ac_tag
7323
7324
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007325as_fn_exit 0
menderico4861bb82009-09-29 00:31:36 +00007326_ACEOF
menderico4861bb82009-09-29 00:31:36 +00007327ac_clean_files=$ac_clean_files_save
7328
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007329test $ac_write_fail = 0 ||
nick.j.sanders00fa12e2014-08-04 21:04:06 +00007330 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007331
menderico4861bb82009-09-29 00:31:36 +00007332
7333# configure is writing to config.log, and then calls config.status.
7334# config.status does its own redirection, appending to config.log.
7335# Unfortunately, on DOS this fails, as config.log is still kept open
7336# by configure, so config.status won't be able to write to it; its
7337# output is simply discarded. So we exec the FD to /dev/null,
7338# effectively closing config.log, so it can be properly (re)opened and
7339# appended to by config.status. When coming back to configure, we
7340# need to make the FD available again.
7341if test "$no_create" != yes; then
7342 ac_cs_success=:
7343 ac_config_status_args=
7344 test "$silent" = yes &&
7345 ac_config_status_args="$ac_config_status_args --quiet"
7346 exec 5>/dev/null
7347 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7348 exec 5>>config.log
7349 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7350 # would make configure fail if this is the last instruction.
nick.j.sanders00fa12e2014-08-04 21:04:06 +00007351 $ac_cs_success || as_fn_exit $?
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007352fi
7353if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7355$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
menderico4861bb82009-09-29 00:31:36 +00007356fi
7357