blob: 7f392c999978a5b019de76d2f3234cf628113888 [file] [log] [blame]
Cullen Jennings235513a2005-09-21 22:51:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
jfigusa14b5a02013-03-29 12:24:12 -04003# Generated by GNU Autoconf 2.69.
Cullen Jennings235513a2005-09-21 22:51:36 +00004#
jfigusa14b5a02013-03-29 12:24:12 -04005#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
Cullen Jennings235513a2005-09-21 22:51:36 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
jfigusa14b5a02013-03-29 12:24:12 -040011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +000014
jfigusa14b5a02013-03-29 12:24:12 -040015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +000018 emulate sh
19 NULLCMD=:
jfigusa14b5a02013-03-29 12:24:12 -040020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +000021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
jfigusa14b5a02013-03-29 12:24:12 -040023 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +000024else
jfigusa14b5a02013-03-29 12:24:12 -040025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
Cullen Jennings235513a2005-09-21 22:51:36 +000031fi
32
33
jfigusa14b5a02013-03-29 12:24:12 -040034as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
Cullen Jennings235513a2005-09-21 22:51:36 +0000122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
jfigusa14b5a02013-03-29 12:24:12 -0400127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
Cullen Jennings235513a2005-09-21 22:51:36 +0000131
jfigusa14b5a02013-03-29 12:24:12 -0400132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000421 as_expr=expr
422else
423 as_expr=false
424fi
425
jfigusa14b5a02013-03-29 12:24:12 -0400426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000427 as_basename=basename
428else
429 as_basename=false
430fi
431
jfigusa14b5a02013-03-29 12:24:12 -0400432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
Cullen Jennings235513a2005-09-21 22:51:36 +0000437
jfigusa14b5a02013-03-29 12:24:12 -0400438as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +0000439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
jfigusa14b5a02013-03-29 12:24:12 -0400441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000456
Cullen Jennings235513a2005-09-21 22:51:36 +0000457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
Cullen Jennings235513a2005-09-21 22:51:36 +0000464
jfigusa14b5a02013-03-29 12:24:12 -0400465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
Cullen Jennings235513a2005-09-21 22:51:36 +0000474 sed '
jfigusa14b5a02013-03-29 12:24:12 -0400475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
Cullen Jennings235513a2005-09-21 22:51:36 +0000479 N
jfigusa14b5a02013-03-29 12:24:12 -0400480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Cullen Jennings235513a2005-09-21 22:51:36 +0000482 t loop
jfigusa14b5a02013-03-29 12:24:12 -0400483 s/-\n.*//
Cullen Jennings235513a2005-09-21 22:51:36 +0000484 ' >$as_me.lineno &&
jfigusa14b5a02013-03-29 12:24:12 -0400485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Cullen Jennings235513a2005-09-21 22:51:36 +0000487
jfigusa14b5a02013-03-29 12:24:12 -0400488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
Cullen Jennings235513a2005-09-21 22:51:36 +0000492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
jfigusa14b5a02013-03-29 12:24:12 -0400494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
Cullen Jennings235513a2005-09-21 22:51:36 +0000496 # Exit status is that of the last command.
497 exit
498}
499
jfigusa14b5a02013-03-29 12:24:12 -0400500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000511esac
512
Cullen Jennings235513a2005-09-21 22:51:36 +0000513rm -f conf$$ conf$$.exe conf$$.file
jfigusa14b5a02013-03-29 12:24:12 -0400514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000522 as_ln_s='ln -s'
jfigusa14b5a02013-03-29 12:24:12 -0400523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +0000533 fi
Cullen Jennings235513a2005-09-21 22:51:36 +0000534else
jfigusa14b5a02013-03-29 12:24:12 -0400535 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +0000536fi
jfigusa14b5a02013-03-29 12:24:12 -0400537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +0000539
540if mkdir -p . 2>/dev/null; then
jfigusa14b5a02013-03-29 12:24:12 -0400541 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +0000542else
David McGrewfec49dd2005-09-23 19:34:11 +0000543 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +0000544 as_mkdir_p=false
545fi
546
jfigusa14b5a02013-03-29 12:24:12 -0400547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +0000549
550# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +0000551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000552
553# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +0000554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000555
556
jfigusa14b5a02013-03-29 12:24:12 -0400557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
Cullen Jennings235513a2005-09-21 22:51:36 +0000559
560# Name of the host.
jfigusa14b5a02013-03-29 12:24:12 -0400561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Cullen Jennings235513a2005-09-21 22:51:36 +0000562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
Cullen Jennings235513a2005-09-21 22:51:36 +0000565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
jfigusa14b5a02013-03-29 12:24:12 -0400569ac_clean_files=
Cullen Jennings235513a2005-09-21 22:51:36 +0000570ac_config_libobj_dir=.
jfigusa14b5a02013-03-29 12:24:12 -0400571LIBOBJS=
Cullen Jennings235513a2005-09-21 22:51:36 +0000572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
Cullen Jennings235513a2005-09-21 22:51:36 +0000576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
jfigusa14b5a02013-03-29 12:24:12 -0400583PACKAGE_URL=
Cullen Jennings235513a2005-09-21 22:51:36 +0000584
585ac_unique_file="srtp"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
jfigusa14b5a02013-03-29 12:24:12 -0400589#ifdef HAVE_SYS_TYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000590# include <sys/types.h>
591#endif
jfigusa14b5a02013-03-29 12:24:12 -0400592#ifdef HAVE_SYS_STAT_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000593# include <sys/stat.h>
594#endif
jfigusa14b5a02013-03-29 12:24:12 -0400595#ifdef STDC_HEADERS
Cullen Jennings235513a2005-09-21 22:51:36 +0000596# include <stdlib.h>
597# include <stddef.h>
598#else
jfigusa14b5a02013-03-29 12:24:12 -0400599# ifdef HAVE_STDLIB_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000600# include <stdlib.h>
601# endif
602#endif
jfigusa14b5a02013-03-29 12:24:12 -0400603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000605# include <memory.h>
606# endif
607# include <string.h>
608#endif
jfigusa14b5a02013-03-29 12:24:12 -0400609#ifdef HAVE_STRINGS_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000610# include <strings.h>
611#endif
jfigusa14b5a02013-03-29 12:24:12 -0400612#ifdef HAVE_INTTYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000613# include <inttypes.h>
Cullen Jennings235513a2005-09-21 22:51:36 +0000614#endif
jfigusa14b5a02013-03-29 12:24:12 -0400615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000619# include <unistd.h>
620#endif"
621
jfigusa14b5a02013-03-29 12:24:12 -0400622ac_subst_vars='LTLIBOBJS
623LIBOBJS
624GDOI_OBJS
625RNG_EXTRA_OBJS
626RNG_OBJS
627AES_ICM_OBJ
628EXE
629host_os
630host_vendor
631host_cpu
632host
633build_os
634build_vendor
635build_cpu
636build
637EGREP
638GREP
639CPP
640INSTALL_DATA
641INSTALL_SCRIPT
642INSTALL_PROGRAM
643OBJEXT
644EXEEXT
645ac_ct_CC
646CPPFLAGS
647LDFLAGS
648CFLAGS
649CC
650RANLIB
651target_alias
652host_alias
653build_alias
654LIBS
655ECHO_T
656ECHO_N
657ECHO_C
658DEFS
659mandir
660localedir
661libdir
662psdir
663pdfdir
664dvidir
665htmldir
666infodir
667docdir
668oldincludedir
669includedir
670localstatedir
671sharedstatedir
672sysconfdir
673datadir
674datarootdir
675libexecdir
676sbindir
677bindir
678program_transform_name
679prefix
680exec_prefix
681PACKAGE_URL
682PACKAGE_BUGREPORT
683PACKAGE_STRING
684PACKAGE_VERSION
685PACKAGE_TARNAME
686PACKAGE_NAME
687PATH_SEPARATOR
688SHELL'
Cullen Jennings235513a2005-09-21 22:51:36 +0000689ac_subst_files=''
jfigusa14b5a02013-03-29 12:24:12 -0400690ac_user_opts='
691enable_option_checking
692enable_kernel_linux
693enable_debug
694enable_generic_aesicm
695enable_openssl
696enable_syslog
697enable_stdout
698enable_console
699enable_gdoi
700'
701 ac_precious_vars='build_alias
702host_alias
703target_alias
704CC
705CFLAGS
706LDFLAGS
707LIBS
708CPPFLAGS
709CPP'
710
Cullen Jennings235513a2005-09-21 22:51:36 +0000711
712# Initialize some variables set by options.
713ac_init_help=
714ac_init_version=false
jfigusa14b5a02013-03-29 12:24:12 -0400715ac_unrecognized_opts=
716ac_unrecognized_sep=
Cullen Jennings235513a2005-09-21 22:51:36 +0000717# The variables have the same names as the options, with
718# dashes changed to underlines.
719cache_file=/dev/null
720exec_prefix=NONE
721no_create=
722no_recursion=
723prefix=NONE
724program_prefix=NONE
725program_suffix=NONE
726program_transform_name=s,x,x,
727silent=
728site=
729srcdir=
730verbose=
731x_includes=NONE
732x_libraries=NONE
733
734# Installation directory options.
735# These are left unexpanded so users can "make install exec_prefix=/foo"
736# and all the variables that are supposed to be based on exec_prefix
737# by default will actually change.
738# Use braces instead of parens because sh, perl, etc. also accept them.
jfigusa14b5a02013-03-29 12:24:12 -0400739# (The list follows the same order as the GNU Coding Standards.)
Cullen Jennings235513a2005-09-21 22:51:36 +0000740bindir='${exec_prefix}/bin'
741sbindir='${exec_prefix}/sbin'
742libexecdir='${exec_prefix}/libexec'
jfigusa14b5a02013-03-29 12:24:12 -0400743datarootdir='${prefix}/share'
744datadir='${datarootdir}'
Cullen Jennings235513a2005-09-21 22:51:36 +0000745sysconfdir='${prefix}/etc'
746sharedstatedir='${prefix}/com'
747localstatedir='${prefix}/var'
Cullen Jennings235513a2005-09-21 22:51:36 +0000748includedir='${prefix}/include'
749oldincludedir='/usr/include'
jfigusa14b5a02013-03-29 12:24:12 -0400750docdir='${datarootdir}/doc/${PACKAGE}'
751infodir='${datarootdir}/info'
752htmldir='${docdir}'
753dvidir='${docdir}'
754pdfdir='${docdir}'
755psdir='${docdir}'
756libdir='${exec_prefix}/lib'
757localedir='${datarootdir}/locale'
758mandir='${datarootdir}/man'
Cullen Jennings235513a2005-09-21 22:51:36 +0000759
760ac_prev=
jfigusa14b5a02013-03-29 12:24:12 -0400761ac_dashdash=
Cullen Jennings235513a2005-09-21 22:51:36 +0000762for ac_option
763do
764 # If the previous option needs an argument, assign it.
765 if test -n "$ac_prev"; then
jfigusa14b5a02013-03-29 12:24:12 -0400766 eval $ac_prev=\$ac_option
Cullen Jennings235513a2005-09-21 22:51:36 +0000767 ac_prev=
768 continue
769 fi
770
jfigusa14b5a02013-03-29 12:24:12 -0400771 case $ac_option in
772 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
773 *=) ac_optarg= ;;
774 *) ac_optarg=yes ;;
775 esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000776
777 # Accept the important Cygnus configure options, so we can diagnose typos.
778
jfigusa14b5a02013-03-29 12:24:12 -0400779 case $ac_dashdash$ac_option in
780 --)
781 ac_dashdash=yes ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000782
783 -bindir | --bindir | --bindi | --bind | --bin | --bi)
784 ac_prev=bindir ;;
785 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
786 bindir=$ac_optarg ;;
787
788 -build | --build | --buil | --bui | --bu)
789 ac_prev=build_alias ;;
790 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
791 build_alias=$ac_optarg ;;
792
793 -cache-file | --cache-file | --cache-fil | --cache-fi \
794 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
795 ac_prev=cache_file ;;
796 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
797 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
798 cache_file=$ac_optarg ;;
799
800 --config-cache | -C)
801 cache_file=config.cache ;;
802
jfigusa14b5a02013-03-29 12:24:12 -0400803 -datadir | --datadir | --datadi | --datad)
Cullen Jennings235513a2005-09-21 22:51:36 +0000804 ac_prev=datadir ;;
jfigusa14b5a02013-03-29 12:24:12 -0400805 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000806 datadir=$ac_optarg ;;
807
jfigusa14b5a02013-03-29 12:24:12 -0400808 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
809 | --dataroo | --dataro | --datar)
810 ac_prev=datarootdir ;;
811 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
812 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
813 datarootdir=$ac_optarg ;;
814
Cullen Jennings235513a2005-09-21 22:51:36 +0000815 -disable-* | --disable-*)
jfigusa14b5a02013-03-29 12:24:12 -0400816 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000817 # Reject names that are not valid shell variable names.
jfigusa14b5a02013-03-29 12:24:12 -0400818 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
819 as_fn_error $? "invalid feature name: $ac_useropt"
820 ac_useropt_orig=$ac_useropt
821 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
822 case $ac_user_opts in
823 *"
824"enable_$ac_useropt"
825"*) ;;
826 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
827 ac_unrecognized_sep=', ';;
828 esac
829 eval enable_$ac_useropt=no ;;
830
831 -docdir | --docdir | --docdi | --doc | --do)
832 ac_prev=docdir ;;
833 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
834 docdir=$ac_optarg ;;
835
836 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
837 ac_prev=dvidir ;;
838 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
839 dvidir=$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000840
841 -enable-* | --enable-*)
jfigusa14b5a02013-03-29 12:24:12 -0400842 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000843 # Reject names that are not valid shell variable names.
jfigusa14b5a02013-03-29 12:24:12 -0400844 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
845 as_fn_error $? "invalid feature name: $ac_useropt"
846 ac_useropt_orig=$ac_useropt
847 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
848 case $ac_user_opts in
849 *"
850"enable_$ac_useropt"
851"*) ;;
852 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
853 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000854 esac
jfigusa14b5a02013-03-29 12:24:12 -0400855 eval enable_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000856
857 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
858 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
859 | --exec | --exe | --ex)
860 ac_prev=exec_prefix ;;
861 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
862 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
863 | --exec=* | --exe=* | --ex=*)
864 exec_prefix=$ac_optarg ;;
865
866 -gas | --gas | --ga | --g)
867 # Obsolete; use --with-gas.
868 with_gas=yes ;;
869
870 -help | --help | --hel | --he | -h)
871 ac_init_help=long ;;
872 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
873 ac_init_help=recursive ;;
874 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
875 ac_init_help=short ;;
876
877 -host | --host | --hos | --ho)
878 ac_prev=host_alias ;;
879 -host=* | --host=* | --hos=* | --ho=*)
880 host_alias=$ac_optarg ;;
881
jfigusa14b5a02013-03-29 12:24:12 -0400882 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
883 ac_prev=htmldir ;;
884 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
885 | --ht=*)
886 htmldir=$ac_optarg ;;
887
Cullen Jennings235513a2005-09-21 22:51:36 +0000888 -includedir | --includedir | --includedi | --included | --include \
889 | --includ | --inclu | --incl | --inc)
890 ac_prev=includedir ;;
891 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
892 | --includ=* | --inclu=* | --incl=* | --inc=*)
893 includedir=$ac_optarg ;;
894
895 -infodir | --infodir | --infodi | --infod | --info | --inf)
896 ac_prev=infodir ;;
897 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
898 infodir=$ac_optarg ;;
899
900 -libdir | --libdir | --libdi | --libd)
901 ac_prev=libdir ;;
902 -libdir=* | --libdir=* | --libdi=* | --libd=*)
903 libdir=$ac_optarg ;;
904
905 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
906 | --libexe | --libex | --libe)
907 ac_prev=libexecdir ;;
908 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
909 | --libexe=* | --libex=* | --libe=*)
910 libexecdir=$ac_optarg ;;
911
jfigusa14b5a02013-03-29 12:24:12 -0400912 -localedir | --localedir | --localedi | --localed | --locale)
913 ac_prev=localedir ;;
914 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
915 localedir=$ac_optarg ;;
916
Cullen Jennings235513a2005-09-21 22:51:36 +0000917 -localstatedir | --localstatedir | --localstatedi | --localstated \
jfigusa14b5a02013-03-29 12:24:12 -0400918 | --localstate | --localstat | --localsta | --localst | --locals)
Cullen Jennings235513a2005-09-21 22:51:36 +0000919 ac_prev=localstatedir ;;
920 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
jfigusa14b5a02013-03-29 12:24:12 -0400921 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000922 localstatedir=$ac_optarg ;;
923
924 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
925 ac_prev=mandir ;;
926 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
927 mandir=$ac_optarg ;;
928
929 -nfp | --nfp | --nf)
930 # Obsolete; use --without-fp.
931 with_fp=no ;;
932
933 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
934 | --no-cr | --no-c | -n)
935 no_create=yes ;;
936
937 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
938 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
939 no_recursion=yes ;;
940
941 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
942 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
943 | --oldin | --oldi | --old | --ol | --o)
944 ac_prev=oldincludedir ;;
945 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
946 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
947 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
948 oldincludedir=$ac_optarg ;;
949
950 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
951 ac_prev=prefix ;;
952 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
953 prefix=$ac_optarg ;;
954
955 -program-prefix | --program-prefix | --program-prefi | --program-pref \
956 | --program-pre | --program-pr | --program-p)
957 ac_prev=program_prefix ;;
958 -program-prefix=* | --program-prefix=* | --program-prefi=* \
959 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
960 program_prefix=$ac_optarg ;;
961
962 -program-suffix | --program-suffix | --program-suffi | --program-suff \
963 | --program-suf | --program-su | --program-s)
964 ac_prev=program_suffix ;;
965 -program-suffix=* | --program-suffix=* | --program-suffi=* \
966 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
967 program_suffix=$ac_optarg ;;
968
969 -program-transform-name | --program-transform-name \
970 | --program-transform-nam | --program-transform-na \
971 | --program-transform-n | --program-transform- \
972 | --program-transform | --program-transfor \
973 | --program-transfo | --program-transf \
974 | --program-trans | --program-tran \
975 | --progr-tra | --program-tr | --program-t)
976 ac_prev=program_transform_name ;;
977 -program-transform-name=* | --program-transform-name=* \
978 | --program-transform-nam=* | --program-transform-na=* \
979 | --program-transform-n=* | --program-transform-=* \
980 | --program-transform=* | --program-transfor=* \
981 | --program-transfo=* | --program-transf=* \
982 | --program-trans=* | --program-tran=* \
983 | --progr-tra=* | --program-tr=* | --program-t=*)
984 program_transform_name=$ac_optarg ;;
985
jfigusa14b5a02013-03-29 12:24:12 -0400986 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
987 ac_prev=pdfdir ;;
988 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
989 pdfdir=$ac_optarg ;;
990
991 -psdir | --psdir | --psdi | --psd | --ps)
992 ac_prev=psdir ;;
993 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
994 psdir=$ac_optarg ;;
995
Cullen Jennings235513a2005-09-21 22:51:36 +0000996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
997 | -silent | --silent | --silen | --sile | --sil)
998 silent=yes ;;
999
1000 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1001 ac_prev=sbindir ;;
1002 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1003 | --sbi=* | --sb=*)
1004 sbindir=$ac_optarg ;;
1005
1006 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1007 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1008 | --sharedst | --shareds | --shared | --share | --shar \
1009 | --sha | --sh)
1010 ac_prev=sharedstatedir ;;
1011 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1012 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1013 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1014 | --sha=* | --sh=*)
1015 sharedstatedir=$ac_optarg ;;
1016
1017 -site | --site | --sit)
1018 ac_prev=site ;;
1019 -site=* | --site=* | --sit=*)
1020 site=$ac_optarg ;;
1021
1022 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1023 ac_prev=srcdir ;;
1024 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1025 srcdir=$ac_optarg ;;
1026
1027 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1028 | --syscon | --sysco | --sysc | --sys | --sy)
1029 ac_prev=sysconfdir ;;
1030 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1031 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1032 sysconfdir=$ac_optarg ;;
1033
1034 -target | --target | --targe | --targ | --tar | --ta | --t)
1035 ac_prev=target_alias ;;
1036 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1037 target_alias=$ac_optarg ;;
1038
1039 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1040 verbose=yes ;;
1041
1042 -version | --version | --versio | --versi | --vers | -V)
1043 ac_init_version=: ;;
1044
1045 -with-* | --with-*)
jfigusa14b5a02013-03-29 12:24:12 -04001046 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001047 # Reject names that are not valid shell variable names.
jfigusa14b5a02013-03-29 12:24:12 -04001048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error $? "invalid package name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1053 *"
1054"with_$ac_useropt"
1055"*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +00001058 esac
jfigusa14b5a02013-03-29 12:24:12 -04001059 eval with_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001060
1061 -without-* | --without-*)
jfigusa14b5a02013-03-29 12:24:12 -04001062 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001063 # Reject names that are not valid shell variable names.
jfigusa14b5a02013-03-29 12:24:12 -04001064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 as_fn_error $? "invalid package name: $ac_useropt"
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1069 *"
1070"with_$ac_useropt"
1071"*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1074 esac
1075 eval with_$ac_useropt=no ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001076
1077 --x)
1078 # Obsolete; use --with-x.
1079 with_x=yes ;;
1080
1081 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1082 | --x-incl | --x-inc | --x-in | --x-i)
1083 ac_prev=x_includes ;;
1084 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1085 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1086 x_includes=$ac_optarg ;;
1087
1088 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1089 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1090 ac_prev=x_libraries ;;
1091 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1092 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1093 x_libraries=$ac_optarg ;;
1094
jfigusa14b5a02013-03-29 12:24:12 -04001095 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1096Try \`$0 --help' for more information"
Cullen Jennings235513a2005-09-21 22:51:36 +00001097 ;;
1098
1099 *=*)
1100 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1101 # Reject names that are not valid shell variable names.
jfigusa14b5a02013-03-29 12:24:12 -04001102 case $ac_envvar in #(
1103 '' | [0-9]* | *[!_$as_cr_alnum]* )
1104 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1105 esac
1106 eval $ac_envvar=\$ac_optarg
Cullen Jennings235513a2005-09-21 22:51:36 +00001107 export $ac_envvar ;;
1108
1109 *)
1110 # FIXME: should be removed in autoconf 3.0.
jfigusa14b5a02013-03-29 12:24:12 -04001111 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Cullen Jennings235513a2005-09-21 22:51:36 +00001112 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jfigusa14b5a02013-03-29 12:24:12 -04001113 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1114 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Cullen Jennings235513a2005-09-21 22:51:36 +00001115 ;;
1116
1117 esac
1118done
1119
1120if test -n "$ac_prev"; then
1121 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jfigusa14b5a02013-03-29 12:24:12 -04001122 as_fn_error $? "missing argument to $ac_option"
Cullen Jennings235513a2005-09-21 22:51:36 +00001123fi
1124
jfigusa14b5a02013-03-29 12:24:12 -04001125if test -n "$ac_unrecognized_opts"; then
1126 case $enable_option_checking in
1127 no) ;;
1128 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1129 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001130 esac
jfigusa14b5a02013-03-29 12:24:12 -04001131fi
Cullen Jennings235513a2005-09-21 22:51:36 +00001132
jfigusa14b5a02013-03-29 12:24:12 -04001133# Check all directory arguments for consistency.
1134for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1135 datadir sysconfdir sharedstatedir localstatedir includedir \
1136 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1137 libdir localedir mandir
Cullen Jennings235513a2005-09-21 22:51:36 +00001138do
jfigusa14b5a02013-03-29 12:24:12 -04001139 eval ac_val=\$$ac_var
1140 # Remove trailing slashes.
Cullen Jennings235513a2005-09-21 22:51:36 +00001141 case $ac_val in
jfigusa14b5a02013-03-29 12:24:12 -04001142 */ )
1143 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1144 eval $ac_var=\$ac_val;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001145 esac
jfigusa14b5a02013-03-29 12:24:12 -04001146 # Be sure to have absolute directory names.
1147 case $ac_val in
1148 [\\/$]* | ?:[\\/]* ) continue;;
1149 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1150 esac
1151 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Cullen Jennings235513a2005-09-21 22:51:36 +00001152done
1153
1154# There might be people who depend on the old broken behavior: `$host'
1155# used to hold the argument of --host etc.
1156# FIXME: To remove some day.
1157build=$build_alias
1158host=$host_alias
1159target=$target_alias
1160
1161# FIXME: To remove some day.
1162if test "x$host_alias" != x; then
1163 if test "x$build_alias" = x; then
1164 cross_compiling=maybe
Cullen Jennings235513a2005-09-21 22:51:36 +00001165 elif test "x$build_alias" != "x$host_alias"; then
1166 cross_compiling=yes
1167 fi
1168fi
1169
1170ac_tool_prefix=
1171test -n "$host_alias" && ac_tool_prefix=$host_alias-
1172
1173test "$silent" = yes && exec 6>/dev/null
1174
1175
jfigusa14b5a02013-03-29 12:24:12 -04001176ac_pwd=`pwd` && test -n "$ac_pwd" &&
1177ac_ls_di=`ls -di .` &&
1178ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1179 as_fn_error $? "working directory cannot be determined"
1180test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1181 as_fn_error $? "pwd does not report name of working directory"
1182
1183
Cullen Jennings235513a2005-09-21 22:51:36 +00001184# Find the source files, if location was not specified.
1185if test -z "$srcdir"; then
1186 ac_srcdir_defaulted=yes
jfigusa14b5a02013-03-29 12:24:12 -04001187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir=`$as_dirname -- "$as_myself" ||
1189$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$as_myself" : 'X\(//\)[^/]' \| \
1191 X"$as_myself" : 'X\(//\)$' \| \
1192 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1193$as_echo X"$as_myself" |
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1195 s//\1/
1196 q
1197 }
1198 /^X\(\/\/\)[^/].*/{
1199 s//\1/
1200 q
1201 }
1202 /^X\(\/\/\)$/{
1203 s//\1/
1204 q
1205 }
1206 /^X\(\/\).*/{
1207 s//\1/
1208 q
1209 }
1210 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001211 srcdir=$ac_confdir
jfigusa14b5a02013-03-29 12:24:12 -04001212 if test ! -r "$srcdir/$ac_unique_file"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00001213 srcdir=..
1214 fi
1215else
1216 ac_srcdir_defaulted=no
1217fi
jfigusa14b5a02013-03-29 12:24:12 -04001218if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1220 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Cullen Jennings235513a2005-09-21 22:51:36 +00001221fi
jfigusa14b5a02013-03-29 12:24:12 -04001222ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1225 pwd)`
1226# When building in place, set srcdir=.
1227if test "$ac_abs_confdir" = "$ac_pwd"; then
1228 srcdir=.
1229fi
1230# Remove unnecessary trailing slashes from srcdir.
1231# Double slashes in file names in object file debugging info
1232# mess up M-x gdb in Emacs.
1233case $srcdir in
1234*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1235esac
1236for ac_var in $ac_precious_vars; do
1237 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_env_${ac_var}_value=\$${ac_var}
1239 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1241done
Cullen Jennings235513a2005-09-21 22:51:36 +00001242
1243#
1244# Report the --help message.
1245#
1246if test "$ac_init_help" = "long"; then
1247 # Omit some internal or obsolete options to make the list less imposing.
1248 # This message is too long to be a string in the A/UX 3.1 sh.
1249 cat <<_ACEOF
1250\`configure' configures this package to adapt to many kinds of systems.
1251
1252Usage: $0 [OPTION]... [VAR=VALUE]...
1253
1254To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255VAR=VALUE. See below for descriptions of some of the useful variables.
1256
1257Defaults for the options are specified in brackets.
1258
1259Configuration:
1260 -h, --help display this help and exit
1261 --help=short display options specific to this package
1262 --help=recursive display the short help of all the included packages
1263 -V, --version display version information and exit
jfigusa14b5a02013-03-29 12:24:12 -04001264 -q, --quiet, --silent do not print \`checking ...' messages
Cullen Jennings235513a2005-09-21 22:51:36 +00001265 --cache-file=FILE cache test results in FILE [disabled]
1266 -C, --config-cache alias for \`--cache-file=config.cache'
1267 -n, --no-create do not create output files
1268 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1269
Cullen Jennings235513a2005-09-21 22:51:36 +00001270Installation directories:
1271 --prefix=PREFIX install architecture-independent files in PREFIX
jfigusa14b5a02013-03-29 12:24:12 -04001272 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +00001273 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jfigusa14b5a02013-03-29 12:24:12 -04001274 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +00001275
1276By default, \`make install' will install all the files in
1277\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279for instance \`--prefix=\$HOME'.
1280
1281For better control, use the options below.
1282
1283Fine tuning of the installation directories:
jfigusa14b5a02013-03-29 12:24:12 -04001284 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec]
1287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1290 --libdir=DIR object code libraries [EPREFIX/lib]
1291 --includedir=DIR C header files [PREFIX/include]
1292 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1293 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1294 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1295 --infodir=DIR info documentation [DATAROOTDIR/info]
1296 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1297 --mandir=DIR man documentation [DATAROOTDIR/man]
1298 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1299 --htmldir=DIR html documentation [DOCDIR]
1300 --dvidir=DIR dvi documentation [DOCDIR]
1301 --pdfdir=DIR pdf documentation [DOCDIR]
1302 --psdir=DIR ps documentation [DOCDIR]
Cullen Jennings235513a2005-09-21 22:51:36 +00001303_ACEOF
1304
1305 cat <<\_ACEOF
1306
1307System types:
1308 --build=BUILD configure for building on BUILD [guessed]
1309 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1310_ACEOF
1311fi
1312
1313if test -n "$ac_init_help"; then
1314
1315 cat <<\_ACEOF
1316
1317Optional Features:
jfigusa14b5a02013-03-29 12:24:12 -04001318 --disable-option-checking ignore unrecognized --enable/--with options
Cullen Jennings235513a2005-09-21 22:51:36 +00001319 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1320 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Marcus Sundberg64536cc2005-10-03 15:23:13 +00001321 --enable-kernel-linux build library to run in Linux kernel context
David McGrewb67061f2005-09-28 14:23:06 +00001322 --disable-debug do not compile in dynamic debugging system
1323 --enable-generic-aesicm compile in changes for ISMAcryp
jfigusa14b5a02013-03-29 12:24:12 -04001324 --enable-openssl compile in OpenSSL crypto engine
David McGrewb67061f2005-09-28 14:23:06 +00001325 --enable-syslog use syslog for error reporting
1326 --disable-stdout don't use stdout for error reporting
1327 --enable-console use /dev/console for error reporting
1328 --enable-gdoi enable GDOI key management
Cullen Jennings235513a2005-09-21 22:51:36 +00001329
1330Some influential environment variables:
1331 CC C compiler command
1332 CFLAGS C compiler flags
1333 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1334 nonstandard directory <lib dir>
jfigusa14b5a02013-03-29 12:24:12 -04001335 LIBS libraries to pass to the linker, e.g. -l<library>
1336 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1337 you have headers in a nonstandard directory <include dir>
Cullen Jennings235513a2005-09-21 22:51:36 +00001338 CPP C preprocessor
1339
1340Use these variables to override the choices made by `configure' or to help
1341it to find libraries and programs with nonstandard names/locations.
1342
jfigusa14b5a02013-03-29 12:24:12 -04001343Report bugs to the package provider.
Cullen Jennings235513a2005-09-21 22:51:36 +00001344_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04001345ac_status=$?
Cullen Jennings235513a2005-09-21 22:51:36 +00001346fi
1347
1348if test "$ac_init_help" = "recursive"; then
1349 # If there are subdirs, report their specific --help.
Cullen Jennings235513a2005-09-21 22:51:36 +00001350 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jfigusa14b5a02013-03-29 12:24:12 -04001351 test -d "$ac_dir" ||
1352 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1353 continue
Cullen Jennings235513a2005-09-21 22:51:36 +00001354 ac_builddir=.
1355
jfigusa14b5a02013-03-29 12:24:12 -04001356case "$ac_dir" in
1357.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1358*)
1359 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1360 # A ".." for each directory in $ac_dir_suffix.
1361 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1362 case $ac_top_builddir_sub in
1363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1365 esac ;;
1366esac
1367ac_abs_top_builddir=$ac_pwd
1368ac_abs_builddir=$ac_pwd$ac_dir_suffix
1369# for backward compatibility:
1370ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00001371
1372case $srcdir in
jfigusa14b5a02013-03-29 12:24:12 -04001373 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00001374 ac_srcdir=.
jfigusa14b5a02013-03-29 12:24:12 -04001375 ac_top_srcdir=$ac_top_builddir_sub
1376 ac_abs_top_srcdir=$ac_pwd ;;
1377 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00001378 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusa14b5a02013-03-29 12:24:12 -04001379 ac_top_srcdir=$srcdir
1380 ac_abs_top_srcdir=$srcdir ;;
1381 *) # Relative name.
1382 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1383 ac_top_srcdir=$ac_top_build_prefix$srcdir
1384 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001385esac
jfigusa14b5a02013-03-29 12:24:12 -04001386ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00001387
jfigusa14b5a02013-03-29 12:24:12 -04001388 cd "$ac_dir" || { ac_status=$?; continue; }
1389 # Check for guested configure.
1390 if test -f "$ac_srcdir/configure.gnu"; then
1391 echo &&
1392 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1393 elif test -f "$ac_srcdir/configure"; then
1394 echo &&
1395 $SHELL "$ac_srcdir/configure" --help=recursive
Cullen Jennings235513a2005-09-21 22:51:36 +00001396 else
jfigusa14b5a02013-03-29 12:24:12 -04001397 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1398 fi || ac_status=$?
1399 cd "$ac_pwd" || { ac_status=$?; break; }
Cullen Jennings235513a2005-09-21 22:51:36 +00001400 done
1401fi
1402
jfigusa14b5a02013-03-29 12:24:12 -04001403test -n "$ac_init_help" && exit $ac_status
Cullen Jennings235513a2005-09-21 22:51:36 +00001404if $ac_init_version; then
1405 cat <<\_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04001406configure
1407generated by GNU Autoconf 2.69
Cullen Jennings235513a2005-09-21 22:51:36 +00001408
jfigusa14b5a02013-03-29 12:24:12 -04001409Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00001410This configure script is free software; the Free Software Foundation
1411gives unlimited permission to copy, distribute and modify it.
1412_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04001413 exit
Cullen Jennings235513a2005-09-21 22:51:36 +00001414fi
jfigusa14b5a02013-03-29 12:24:12 -04001415
1416## ------------------------ ##
1417## Autoconf initialization. ##
1418## ------------------------ ##
1419
1420# ac_fn_c_try_compile LINENO
1421# --------------------------
1422# Try to compile conftest.$ac_ext, and return whether this succeeded.
1423ac_fn_c_try_compile ()
1424{
1425 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1426 rm -f conftest.$ac_objext
1427 if { { ac_try="$ac_compile"
1428case "(($ac_try" in
1429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1430 *) ac_try_echo=$ac_try;;
1431esac
1432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1433$as_echo "$ac_try_echo"; } >&5
1434 (eval "$ac_compile") 2>conftest.err
1435 ac_status=$?
1436 if test -s conftest.err; then
1437 grep -v '^ *+' conftest.err >conftest.er1
1438 cat conftest.er1 >&5
1439 mv -f conftest.er1 conftest.err
1440 fi
1441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1442 test $ac_status = 0; } && {
1443 test -z "$ac_c_werror_flag" ||
1444 test ! -s conftest.err
1445 } && test -s conftest.$ac_objext; then :
1446 ac_retval=0
1447else
1448 $as_echo "$as_me: failed program was:" >&5
1449sed 's/^/| /' conftest.$ac_ext >&5
1450
1451 ac_retval=1
1452fi
1453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1454 as_fn_set_status $ac_retval
1455
1456} # ac_fn_c_try_compile
1457
1458# ac_fn_c_try_run LINENO
1459# ----------------------
1460# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1461# that executables *can* be run.
1462ac_fn_c_try_run ()
1463{
1464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1465 if { { ac_try="$ac_link"
1466case "(($ac_try" in
1467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1468 *) ac_try_echo=$ac_try;;
1469esac
1470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1471$as_echo "$ac_try_echo"; } >&5
1472 (eval "$ac_link") 2>&5
1473 ac_status=$?
1474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1475 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1476 { { case "(($ac_try" in
1477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478 *) ac_try_echo=$ac_try;;
1479esac
1480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481$as_echo "$ac_try_echo"; } >&5
1482 (eval "$ac_try") 2>&5
1483 ac_status=$?
1484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1485 test $ac_status = 0; }; }; then :
1486 ac_retval=0
1487else
1488 $as_echo "$as_me: program exited with status $ac_status" >&5
1489 $as_echo "$as_me: failed program was:" >&5
1490sed 's/^/| /' conftest.$ac_ext >&5
1491
1492 ac_retval=$ac_status
1493fi
1494 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1495 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1496 as_fn_set_status $ac_retval
1497
1498} # ac_fn_c_try_run
1499
1500# ac_fn_c_try_cpp LINENO
1501# ----------------------
1502# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1503ac_fn_c_try_cpp ()
1504{
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 if { { ac_try="$ac_cpp conftest.$ac_ext"
1507case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510esac
1511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512$as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1514 ac_status=$?
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1519 fi
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } > conftest.i && {
1522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 }; then :
1525 ac_retval=0
1526else
1527 $as_echo "$as_me: failed program was:" >&5
1528sed 's/^/| /' conftest.$ac_ext >&5
1529
1530 ac_retval=1
1531fi
1532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533 as_fn_set_status $ac_retval
1534
1535} # ac_fn_c_try_cpp
1536
1537# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1538# -------------------------------------------------------
1539# Tests whether HEADER exists and can be compiled using the include files in
1540# INCLUDES, setting the cache variable VAR accordingly.
1541ac_fn_c_check_header_compile ()
1542{
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1545$as_echo_n "checking for $2... " >&6; }
1546if eval \${$3+:} false; then :
1547 $as_echo_n "(cached) " >&6
1548else
1549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1550/* end confdefs.h. */
1551$4
1552#include <$2>
1553_ACEOF
1554if ac_fn_c_try_compile "$LINENO"; then :
1555 eval "$3=yes"
1556else
1557 eval "$3=no"
1558fi
1559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1560fi
1561eval ac_res=\$$3
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1563$as_echo "$ac_res" >&6; }
1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565
1566} # ac_fn_c_check_header_compile
1567
1568# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1569# -------------------------------------------------------
1570# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1571# the include files in INCLUDES and setting the cache variable VAR
1572# accordingly.
1573ac_fn_c_check_header_mongrel ()
1574{
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 if eval \${$3+:} false; then :
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1578$as_echo_n "checking for $2... " >&6; }
1579if eval \${$3+:} false; then :
1580 $as_echo_n "(cached) " >&6
1581fi
1582eval ac_res=\$$3
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1584$as_echo "$ac_res" >&6; }
1585else
1586 # Is the header compilable?
1587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1588$as_echo_n "checking $2 usability... " >&6; }
1589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1590/* end confdefs.h. */
1591$4
1592#include <$2>
1593_ACEOF
1594if ac_fn_c_try_compile "$LINENO"; then :
1595 ac_header_compiler=yes
1596else
1597 ac_header_compiler=no
1598fi
1599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1601$as_echo "$ac_header_compiler" >&6; }
1602
1603# Is the header present?
1604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1605$as_echo_n "checking $2 presence... " >&6; }
1606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607/* end confdefs.h. */
1608#include <$2>
1609_ACEOF
1610if ac_fn_c_try_cpp "$LINENO"; then :
1611 ac_header_preproc=yes
1612else
1613 ac_header_preproc=no
1614fi
1615rm -f conftest.err conftest.i conftest.$ac_ext
1616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1617$as_echo "$ac_header_preproc" >&6; }
1618
1619# So? What about this header?
1620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1621 yes:no: )
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1623$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1625$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1626 ;;
1627 no:yes:* )
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1629$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1631$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1633$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1635$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1637$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1638 ;;
1639esac
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641$as_echo_n "checking for $2... " >&6; }
1642if eval \${$3+:} false; then :
1643 $as_echo_n "(cached) " >&6
1644else
1645 eval "$3=\$ac_header_compiler"
1646fi
1647eval ac_res=\$$3
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649$as_echo "$ac_res" >&6; }
1650fi
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652
1653} # ac_fn_c_check_header_mongrel
1654
1655# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1656# -------------------------------------------
1657# Tests whether TYPE exists after having included INCLUDES, setting cache
1658# variable VAR accordingly.
1659ac_fn_c_check_type ()
1660{
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663$as_echo_n "checking for $2... " >&6; }
1664if eval \${$3+:} false; then :
1665 $as_echo_n "(cached) " >&6
1666else
1667 eval "$3=no"
1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669/* end confdefs.h. */
1670$4
1671int
1672main ()
1673{
1674if (sizeof ($2))
1675 return 0;
1676 ;
1677 return 0;
1678}
1679_ACEOF
1680if ac_fn_c_try_compile "$LINENO"; then :
1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682/* end confdefs.h. */
1683$4
1684int
1685main ()
1686{
1687if (sizeof (($2)))
1688 return 0;
1689 ;
1690 return 0;
1691}
1692_ACEOF
1693if ac_fn_c_try_compile "$LINENO"; then :
1694
1695else
1696 eval "$3=yes"
1697fi
1698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699fi
1700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1701fi
1702eval ac_res=\$$3
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704$as_echo "$ac_res" >&6; }
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706
1707} # ac_fn_c_check_type
1708
1709# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1710# --------------------------------------------
1711# Tries to find the compile-time value of EXPR in a program that includes
1712# INCLUDES, setting VAR accordingly. Returns whether the value could be
1713# computed
1714ac_fn_c_compute_int ()
1715{
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if test "$cross_compiling" = yes; then
1718 # Depending upon the size, compute the lo and hi bounds.
1719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720/* end confdefs.h. */
1721$4
1722int
1723main ()
1724{
1725static int test_array [1 - 2 * !(($2) >= 0)];
1726test_array [0] = 0;
1727return test_array [0];
1728
1729 ;
1730 return 0;
1731}
1732_ACEOF
1733if ac_fn_c_try_compile "$LINENO"; then :
1734 ac_lo=0 ac_mid=0
1735 while :; do
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737/* end confdefs.h. */
1738$4
1739int
1740main ()
1741{
1742static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1743test_array [0] = 0;
1744return test_array [0];
1745
1746 ;
1747 return 0;
1748}
1749_ACEOF
1750if ac_fn_c_try_compile "$LINENO"; then :
1751 ac_hi=$ac_mid; break
1752else
1753 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1754 if test $ac_lo -le $ac_mid; then
1755 ac_lo= ac_hi=
1756 break
1757 fi
1758 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1759fi
1760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761 done
1762else
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h. */
1765$4
1766int
1767main ()
1768{
1769static int test_array [1 - 2 * !(($2) < 0)];
1770test_array [0] = 0;
1771return test_array [0];
1772
1773 ;
1774 return 0;
1775}
1776_ACEOF
1777if ac_fn_c_try_compile "$LINENO"; then :
1778 ac_hi=-1 ac_mid=-1
1779 while :; do
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781/* end confdefs.h. */
1782$4
1783int
1784main ()
1785{
1786static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1787test_array [0] = 0;
1788return test_array [0];
1789
1790 ;
1791 return 0;
1792}
1793_ACEOF
1794if ac_fn_c_try_compile "$LINENO"; then :
1795 ac_lo=$ac_mid; break
1796else
1797 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1798 if test $ac_mid -le $ac_hi; then
1799 ac_lo= ac_hi=
1800 break
1801 fi
1802 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1803fi
1804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 done
1806else
1807 ac_lo= ac_hi=
1808fi
1809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810fi
1811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812# Binary search between lo and hi bounds.
1813while test "x$ac_lo" != "x$ac_hi"; do
1814 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h. */
1817$4
1818int
1819main ()
1820{
1821static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1822test_array [0] = 0;
1823return test_array [0];
1824
1825 ;
1826 return 0;
1827}
1828_ACEOF
1829if ac_fn_c_try_compile "$LINENO"; then :
1830 ac_hi=$ac_mid
1831else
1832 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1833fi
1834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835done
1836case $ac_lo in #((
1837?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1838'') ac_retval=1 ;;
1839esac
1840 else
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842/* end confdefs.h. */
1843$4
1844static long int longval () { return $2; }
1845static unsigned long int ulongval () { return $2; }
1846#include <stdio.h>
1847#include <stdlib.h>
1848int
1849main ()
1850{
1851
1852 FILE *f = fopen ("conftest.val", "w");
1853 if (! f)
1854 return 1;
1855 if (($2) < 0)
1856 {
1857 long int i = longval ();
1858 if (i != ($2))
1859 return 1;
1860 fprintf (f, "%ld", i);
1861 }
1862 else
1863 {
1864 unsigned long int i = ulongval ();
1865 if (i != ($2))
1866 return 1;
1867 fprintf (f, "%lu", i);
1868 }
1869 /* Do not output a trailing newline, as this causes \r\n confusion
1870 on some platforms. */
1871 return ferror (f) || fclose (f) != 0;
1872
1873 ;
1874 return 0;
1875}
1876_ACEOF
1877if ac_fn_c_try_run "$LINENO"; then :
1878 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1879else
1880 ac_retval=1
1881fi
1882rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1883 conftest.$ac_objext conftest.beam conftest.$ac_ext
1884rm -f conftest.val
1885
1886 fi
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
1889
1890} # ac_fn_c_compute_int
1891
1892# ac_fn_c_try_link LINENO
1893# -----------------------
1894# Try to link conftest.$ac_ext, and return whether this succeeded.
1895ac_fn_c_try_link ()
1896{
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext conftest$ac_exeext
1899 if { { ac_try="$ac_link"
1900case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903esac
1904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905$as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1912 fi
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_c_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest$ac_exeext && {
1918 test "$cross_compiling" = yes ||
1919 test -x conftest$ac_exeext
1920 }; then :
1921 ac_retval=0
1922else
1923 $as_echo "$as_me: failed program was:" >&5
1924sed 's/^/| /' conftest.$ac_ext >&5
1925
1926 ac_retval=1
1927fi
1928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1930 # interfere with the next link command; also delete a directory that is
1931 # left behind by Apple's compiler. We do this before executing the actions.
1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1935
1936} # ac_fn_c_try_link
1937
1938# ac_fn_c_check_func LINENO FUNC VAR
1939# ----------------------------------
1940# Tests whether FUNC exists, setting the cache variable VAR accordingly
1941ac_fn_c_check_func ()
1942{
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945$as_echo_n "checking for $2... " >&6; }
1946if eval \${$3+:} false; then :
1947 $as_echo_n "(cached) " >&6
1948else
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950/* end confdefs.h. */
1951/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1953#define $2 innocuous_$2
1954
1955/* System header to define __stub macros and hopefully few prototypes,
1956 which can conflict with char $2 (); below.
1957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1958 <limits.h> exists even on freestanding compilers. */
1959
1960#ifdef __STDC__
1961# include <limits.h>
1962#else
1963# include <assert.h>
1964#endif
1965
1966#undef $2
1967
1968/* Override any GCC internal prototype to avoid an error.
1969 Use char because int might match the return type of a GCC
1970 builtin and then its argument prototype would still apply. */
1971#ifdef __cplusplus
1972extern "C"
1973#endif
1974char $2 ();
1975/* The GNU C library defines this for functions which it implements
1976 to always fail with ENOSYS. Some functions are actually named
1977 something starting with __ and the normal name is an alias. */
1978#if defined __stub_$2 || defined __stub___$2
1979choke me
1980#endif
1981
1982int
1983main ()
1984{
1985return $2 ();
1986 ;
1987 return 0;
1988}
1989_ACEOF
1990if ac_fn_c_try_link "$LINENO"; then :
1991 eval "$3=yes"
1992else
1993 eval "$3=no"
1994fi
1995rm -f core conftest.err conftest.$ac_objext \
1996 conftest$ac_exeext conftest.$ac_ext
1997fi
1998eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000$as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002
2003} # ac_fn_c_check_func
2004cat >config.log <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002005This file contains any messages produced by compilers while
2006running configure, to aid debugging if configure makes a mistake.
2007
2008It was created by $as_me, which was
jfigusa14b5a02013-03-29 12:24:12 -04002009generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00002010
2011 $ $0 $@
2012
2013_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04002014exec 5>>config.log
Cullen Jennings235513a2005-09-21 22:51:36 +00002015{
2016cat <<_ASUNAME
2017## --------- ##
2018## Platform. ##
2019## --------- ##
2020
2021hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2022uname -m = `(uname -m) 2>/dev/null || echo unknown`
2023uname -r = `(uname -r) 2>/dev/null || echo unknown`
2024uname -s = `(uname -s) 2>/dev/null || echo unknown`
2025uname -v = `(uname -v) 2>/dev/null || echo unknown`
2026
2027/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2028/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2029
2030/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2031/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2032/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
jfigusa14b5a02013-03-29 12:24:12 -04002033/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Cullen Jennings235513a2005-09-21 22:51:36 +00002034/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2035/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2036/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2037
2038_ASUNAME
2039
2040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041for as_dir in $PATH
2042do
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
jfigusa14b5a02013-03-29 12:24:12 -04002045 $as_echo "PATH: $as_dir"
2046 done
2047IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002048
2049} >&5
2050
2051cat >&5 <<_ACEOF
2052
2053
2054## ----------- ##
2055## Core tests. ##
2056## ----------- ##
2057
2058_ACEOF
2059
2060
2061# Keep a trace of the command line.
2062# Strip out --no-create and --no-recursion so they do not pile up.
2063# Strip out --silent because we don't want to record it for future runs.
2064# Also quote any args containing shell meta-characters.
2065# Make two passes to allow for proper duplicate-argument suppression.
2066ac_configure_args=
2067ac_configure_args0=
2068ac_configure_args1=
Cullen Jennings235513a2005-09-21 22:51:36 +00002069ac_must_keep_next=false
2070for ac_pass in 1 2
2071do
2072 for ac_arg
2073 do
2074 case $ac_arg in
2075 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2077 | -silent | --silent | --silen | --sile | --sil)
2078 continue ;;
jfigusa14b5a02013-03-29 12:24:12 -04002079 *\'*)
2080 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002081 esac
2082 case $ac_pass in
jfigusa14b5a02013-03-29 12:24:12 -04002083 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002084 2)
jfigusa14b5a02013-03-29 12:24:12 -04002085 as_fn_append ac_configure_args1 " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002086 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00002087 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00002088 else
David McGrewfec49dd2005-09-23 19:34:11 +00002089 case $ac_arg in
2090 *=* | --config-cache | -C | -disable-* | --disable-* \
2091 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2092 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2093 | -with-* | --with-* | -without-* | --without-* | --x)
2094 case "$ac_configure_args0 " in
2095 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2096 esac
2097 ;;
2098 -* ) ac_must_keep_next=true ;;
2099 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00002100 fi
jfigusa14b5a02013-03-29 12:24:12 -04002101 as_fn_append ac_configure_args " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002102 ;;
2103 esac
2104 done
2105done
jfigusa14b5a02013-03-29 12:24:12 -04002106{ ac_configure_args0=; unset ac_configure_args0;}
2107{ ac_configure_args1=; unset ac_configure_args1;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002108
2109# When interrupted or exit'd, cleanup temporary files, and complete
2110# config.log. We remove comments because anyway the quotes in there
2111# would cause problems or look ugly.
jfigusa14b5a02013-03-29 12:24:12 -04002112# WARNING: Use '\'' to represent an apostrophe within the trap.
2113# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Cullen Jennings235513a2005-09-21 22:51:36 +00002114trap 'exit_status=$?
2115 # Save into config.log some information that might help in debugging.
2116 {
2117 echo
2118
jfigusa14b5a02013-03-29 12:24:12 -04002119 $as_echo "## ---------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002120## Cache variables. ##
jfigusa14b5a02013-03-29 12:24:12 -04002121## ---------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002122 echo
2123 # The following way of writing the cache mishandles newlines in values,
jfigusa14b5a02013-03-29 12:24:12 -04002124(
2125 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2126 eval ac_val=\$$ac_var
2127 case $ac_val in #(
2128 *${as_nl}*)
2129 case $ac_var in #(
2130 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2131$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2132 esac
2133 case $ac_var in #(
2134 _ | IFS | as_nl) ;; #(
2135 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2136 *) { eval $ac_var=; unset $ac_var;} ;;
2137 esac ;;
2138 esac
2139 done
Cullen Jennings235513a2005-09-21 22:51:36 +00002140 (set) 2>&1 |
jfigusa14b5a02013-03-29 12:24:12 -04002141 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2142 *${as_nl}ac_space=\ *)
Cullen Jennings235513a2005-09-21 22:51:36 +00002143 sed -n \
jfigusa14b5a02013-03-29 12:24:12 -04002144 "s/'\''/'\''\\\\'\'''\''/g;
2145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2146 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00002147 *)
jfigusa14b5a02013-03-29 12:24:12 -04002148 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00002149 ;;
jfigusa14b5a02013-03-29 12:24:12 -04002150 esac |
2151 sort
2152)
Cullen Jennings235513a2005-09-21 22:51:36 +00002153 echo
2154
jfigusa14b5a02013-03-29 12:24:12 -04002155 $as_echo "## ----------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002156## Output variables. ##
jfigusa14b5a02013-03-29 12:24:12 -04002157## ----------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002158 echo
2159 for ac_var in $ac_subst_vars
2160 do
jfigusa14b5a02013-03-29 12:24:12 -04002161 eval ac_val=\$$ac_var
2162 case $ac_val in
2163 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2164 esac
2165 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002166 done | sort
2167 echo
2168
2169 if test -n "$ac_subst_files"; then
jfigusa14b5a02013-03-29 12:24:12 -04002170 $as_echo "## ------------------- ##
2171## File substitutions. ##
2172## ------------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002173 echo
2174 for ac_var in $ac_subst_files
2175 do
jfigusa14b5a02013-03-29 12:24:12 -04002176 eval ac_val=\$$ac_var
2177 case $ac_val in
2178 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2179 esac
2180 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002181 done | sort
2182 echo
2183 fi
2184
2185 if test -s confdefs.h; then
jfigusa14b5a02013-03-29 12:24:12 -04002186 $as_echo "## ----------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002187## confdefs.h. ##
jfigusa14b5a02013-03-29 12:24:12 -04002188## ----------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002189 echo
jfigusa14b5a02013-03-29 12:24:12 -04002190 cat confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002191 echo
2192 fi
2193 test "$ac_signal" != 0 &&
jfigusa14b5a02013-03-29 12:24:12 -04002194 $as_echo "$as_me: caught signal $ac_signal"
2195 $as_echo "$as_me: exit $exit_status"
Cullen Jennings235513a2005-09-21 22:51:36 +00002196 } >&5
jfigusa14b5a02013-03-29 12:24:12 -04002197 rm -f core *.core core.conftest.* &&
2198 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Cullen Jennings235513a2005-09-21 22:51:36 +00002199 exit $exit_status
jfigusa14b5a02013-03-29 12:24:12 -04002200' 0
Cullen Jennings235513a2005-09-21 22:51:36 +00002201for ac_signal in 1 2 13 15; do
jfigusa14b5a02013-03-29 12:24:12 -04002202 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Cullen Jennings235513a2005-09-21 22:51:36 +00002203done
2204ac_signal=0
2205
2206# confdefs.h avoids OS command line length limits that DEFS can exceed.
jfigusa14b5a02013-03-29 12:24:12 -04002207rm -f -r conftest* confdefs.h
2208
2209$as_echo "/* confdefs.h */" > confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002210
2211# Predefined preprocessor variables.
2212
2213cat >>confdefs.h <<_ACEOF
2214#define PACKAGE_NAME "$PACKAGE_NAME"
2215_ACEOF
2216
Cullen Jennings235513a2005-09-21 22:51:36 +00002217cat >>confdefs.h <<_ACEOF
2218#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2219_ACEOF
2220
Cullen Jennings235513a2005-09-21 22:51:36 +00002221cat >>confdefs.h <<_ACEOF
2222#define PACKAGE_VERSION "$PACKAGE_VERSION"
2223_ACEOF
2224
Cullen Jennings235513a2005-09-21 22:51:36 +00002225cat >>confdefs.h <<_ACEOF
2226#define PACKAGE_STRING "$PACKAGE_STRING"
2227_ACEOF
2228
Cullen Jennings235513a2005-09-21 22:51:36 +00002229cat >>confdefs.h <<_ACEOF
2230#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2231_ACEOF
2232
jfigusa14b5a02013-03-29 12:24:12 -04002233cat >>confdefs.h <<_ACEOF
2234#define PACKAGE_URL "$PACKAGE_URL"
2235_ACEOF
2236
Cullen Jennings235513a2005-09-21 22:51:36 +00002237
2238# Let the site file select an alternate cache file if it wants to.
jfigusa14b5a02013-03-29 12:24:12 -04002239# Prefer an explicitly selected file to automatically selected ones.
2240ac_site_file1=NONE
2241ac_site_file2=NONE
2242if test -n "$CONFIG_SITE"; then
2243 # We do not want a PATH search for config.site.
2244 case $CONFIG_SITE in #((
2245 -*) ac_site_file1=./$CONFIG_SITE;;
2246 */*) ac_site_file1=$CONFIG_SITE;;
2247 *) ac_site_file1=./$CONFIG_SITE;;
2248 esac
2249elif test "x$prefix" != xNONE; then
2250 ac_site_file1=$prefix/share/config.site
2251 ac_site_file2=$prefix/etc/config.site
2252else
2253 ac_site_file1=$ac_default_prefix/share/config.site
2254 ac_site_file2=$ac_default_prefix/etc/config.site
Cullen Jennings235513a2005-09-21 22:51:36 +00002255fi
jfigusa14b5a02013-03-29 12:24:12 -04002256for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2257do
2258 test "x$ac_site_file" = xNONE && continue
2259 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2261$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002262 sed 's/^/| /' "$ac_site_file" >&5
jfigusa14b5a02013-03-29 12:24:12 -04002263 . "$ac_site_file" \
2264 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2266as_fn_error $? "failed to load site script $ac_site_file
2267See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002268 fi
2269done
2270
2271if test -r "$cache_file"; then
jfigusa14b5a02013-03-29 12:24:12 -04002272 # Some versions of bash will fail to source /dev/null (special files
2273 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2274 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2276$as_echo "$as_me: loading cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002277 case $cache_file in
jfigusa14b5a02013-03-29 12:24:12 -04002278 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2279 *) . "./$cache_file";;
Cullen Jennings235513a2005-09-21 22:51:36 +00002280 esac
2281 fi
2282else
jfigusa14b5a02013-03-29 12:24:12 -04002283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2284$as_echo "$as_me: creating cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002285 >$cache_file
2286fi
2287
2288# Check that the precious variables saved in the cache have kept the same
2289# value.
2290ac_cache_corrupted=false
jfigusa14b5a02013-03-29 12:24:12 -04002291for ac_var in $ac_precious_vars; do
Cullen Jennings235513a2005-09-21 22:51:36 +00002292 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2293 eval ac_new_set=\$ac_env_${ac_var}_set
jfigusa14b5a02013-03-29 12:24:12 -04002294 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2295 eval ac_new_val=\$ac_env_${ac_var}_value
Cullen Jennings235513a2005-09-21 22:51:36 +00002296 case $ac_old_set,$ac_new_set in
2297 set,)
jfigusa14b5a02013-03-29 12:24:12 -04002298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2299$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002300 ac_cache_corrupted=: ;;
2301 ,set)
jfigusa14b5a02013-03-29 12:24:12 -04002302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2303$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002304 ac_cache_corrupted=: ;;
2305 ,);;
2306 *)
2307 if test "x$ac_old_val" != "x$ac_new_val"; then
jfigusa14b5a02013-03-29 12:24:12 -04002308 # differences in whitespace do not lead to failure.
2309 ac_old_val_w=`echo x $ac_old_val`
2310 ac_new_val_w=`echo x $ac_new_val`
2311 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2313$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2314 ac_cache_corrupted=:
2315 else
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2317$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2318 eval $ac_var=\$ac_old_val
2319 fi
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2321$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2323$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002324 fi;;
2325 esac
2326 # Pass precious variables to config.status.
2327 if test "$ac_new_set" = set; then
2328 case $ac_new_val in
jfigusa14b5a02013-03-29 12:24:12 -04002329 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002330 *) ac_arg=$ac_var=$ac_new_val ;;
2331 esac
2332 case " $ac_configure_args " in
2333 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jfigusa14b5a02013-03-29 12:24:12 -04002334 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002335 esac
2336 fi
2337done
2338if $ac_cache_corrupted; then
jfigusa14b5a02013-03-29 12:24:12 -04002339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2342$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2343 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00002344fi
jfigusa14b5a02013-03-29 12:24:12 -04002345## -------------------- ##
2346## Main body of script. ##
2347## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002348
2349ac_ext=c
2350ac_cpp='$CPP $CPPFLAGS'
2351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2353ac_compiler_gnu=$ac_cv_c_compiler_gnu
2354
2355
2356
David McGrewb67061f2005-09-28 14:23:06 +00002357if test -z "$CFLAGS"; then
2358 CFLAGS="-Wall -O4 -fexpensive-optimizations -funroll-loops"
2359fi
2360
Cullen Jennings235513a2005-09-21 22:51:36 +00002361if test -n "$ac_tool_prefix"; then
2362 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2363set dummy ${ac_tool_prefix}ranlib; ac_word=$2
jfigusa14b5a02013-03-29 12:24:12 -04002364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2365$as_echo_n "checking for $ac_word... " >&6; }
2366if ${ac_cv_prog_RANLIB+:} false; then :
2367 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002368else
2369 if test -n "$RANLIB"; then
2370 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2371else
2372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373for as_dir in $PATH
2374do
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
jfigusa14b5a02013-03-29 12:24:12 -04002377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002379 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
jfigusa14b5a02013-03-29 12:24:12 -04002380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002381 break 2
2382 fi
2383done
jfigusa14b5a02013-03-29 12:24:12 -04002384 done
2385IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002386
2387fi
2388fi
2389RANLIB=$ac_cv_prog_RANLIB
2390if test -n "$RANLIB"; then
jfigusa14b5a02013-03-29 12:24:12 -04002391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2392$as_echo "$RANLIB" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002393else
jfigusa14b5a02013-03-29 12:24:12 -04002394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2395$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002396fi
2397
jfigusa14b5a02013-03-29 12:24:12 -04002398
Cullen Jennings235513a2005-09-21 22:51:36 +00002399fi
2400if test -z "$ac_cv_prog_RANLIB"; then
2401 ac_ct_RANLIB=$RANLIB
2402 # Extract the first word of "ranlib", so it can be a program name with args.
2403set dummy ranlib; ac_word=$2
jfigusa14b5a02013-03-29 12:24:12 -04002404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2405$as_echo_n "checking for $ac_word... " >&6; }
2406if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2407 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002408else
2409 if test -n "$ac_ct_RANLIB"; then
2410 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2411else
2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413for as_dir in $PATH
2414do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
jfigusa14b5a02013-03-29 12:24:12 -04002417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002419 ac_cv_prog_ac_ct_RANLIB="ranlib"
jfigusa14b5a02013-03-29 12:24:12 -04002420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002421 break 2
2422 fi
2423done
jfigusa14b5a02013-03-29 12:24:12 -04002424 done
2425IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002426
Cullen Jennings235513a2005-09-21 22:51:36 +00002427fi
2428fi
2429ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2430if test -n "$ac_ct_RANLIB"; then
jfigusa14b5a02013-03-29 12:24:12 -04002431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2432$as_echo "$ac_ct_RANLIB" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002433else
jfigusa14b5a02013-03-29 12:24:12 -04002434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2435$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002436fi
2437
jfigusa14b5a02013-03-29 12:24:12 -04002438 if test "x$ac_ct_RANLIB" = x; then
2439 RANLIB=":"
2440 else
2441 case $cross_compiling:$ac_tool_warned in
2442yes:)
2443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2445ac_tool_warned=yes ;;
2446esac
2447 RANLIB=$ac_ct_RANLIB
2448 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002449else
2450 RANLIB="$ac_cv_prog_RANLIB"
2451fi
2452
2453ac_ext=c
2454ac_cpp='$CPP $CPPFLAGS'
2455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457ac_compiler_gnu=$ac_cv_c_compiler_gnu
2458if test -n "$ac_tool_prefix"; then
2459 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2460set dummy ${ac_tool_prefix}gcc; ac_word=$2
jfigusa14b5a02013-03-29 12:24:12 -04002461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462$as_echo_n "checking for $ac_word... " >&6; }
2463if ${ac_cv_prog_CC+:} false; then :
2464 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002465else
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC="$CC" # Let the user override the test.
2468else
2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470for as_dir in $PATH
2471do
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
jfigusa14b5a02013-03-29 12:24:12 -04002474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002476 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jfigusa14b5a02013-03-29 12:24:12 -04002477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002478 break 2
2479 fi
2480done
jfigusa14b5a02013-03-29 12:24:12 -04002481 done
2482IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002483
2484fi
2485fi
2486CC=$ac_cv_prog_CC
2487if test -n "$CC"; then
jfigusa14b5a02013-03-29 12:24:12 -04002488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2489$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002490else
jfigusa14b5a02013-03-29 12:24:12 -04002491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002493fi
2494
jfigusa14b5a02013-03-29 12:24:12 -04002495
Cullen Jennings235513a2005-09-21 22:51:36 +00002496fi
2497if test -z "$ac_cv_prog_CC"; then
2498 ac_ct_CC=$CC
2499 # Extract the first word of "gcc", so it can be a program name with args.
2500set dummy gcc; ac_word=$2
jfigusa14b5a02013-03-29 12:24:12 -04002501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2502$as_echo_n "checking for $ac_word... " >&6; }
2503if ${ac_cv_prog_ac_ct_CC+:} false; then :
2504 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002505else
2506 if test -n "$ac_ct_CC"; then
2507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2508else
2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510for as_dir in $PATH
2511do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
jfigusa14b5a02013-03-29 12:24:12 -04002514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002516 ac_cv_prog_ac_ct_CC="gcc"
jfigusa14b5a02013-03-29 12:24:12 -04002517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002518 break 2
2519 fi
2520done
jfigusa14b5a02013-03-29 12:24:12 -04002521 done
2522IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002523
2524fi
2525fi
2526ac_ct_CC=$ac_cv_prog_ac_ct_CC
2527if test -n "$ac_ct_CC"; then
jfigusa14b5a02013-03-29 12:24:12 -04002528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2529$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002530else
jfigusa14b5a02013-03-29 12:24:12 -04002531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2532$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002533fi
2534
jfigusa14b5a02013-03-29 12:24:12 -04002535 if test "x$ac_ct_CC" = x; then
2536 CC=""
2537 else
2538 case $cross_compiling:$ac_tool_warned in
2539yes:)
2540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2542ac_tool_warned=yes ;;
2543esac
2544 CC=$ac_ct_CC
2545 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002546else
2547 CC="$ac_cv_prog_CC"
2548fi
2549
2550if test -z "$CC"; then
jfigusa14b5a02013-03-29 12:24:12 -04002551 if test -n "$ac_tool_prefix"; then
2552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Cullen Jennings235513a2005-09-21 22:51:36 +00002553set dummy ${ac_tool_prefix}cc; ac_word=$2
jfigusa14b5a02013-03-29 12:24:12 -04002554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555$as_echo_n "checking for $ac_word... " >&6; }
2556if ${ac_cv_prog_CC+:} false; then :
2557 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002558else
2559 if test -n "$CC"; then
2560 ac_cv_prog_CC="$CC" # Let the user override the test.
2561else
2562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH
2564do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
jfigusa14b5a02013-03-29 12:24:12 -04002567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002569 ac_cv_prog_CC="${ac_tool_prefix}cc"
jfigusa14b5a02013-03-29 12:24:12 -04002570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002571 break 2
2572 fi
2573done
jfigusa14b5a02013-03-29 12:24:12 -04002574 done
2575IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002576
2577fi
2578fi
2579CC=$ac_cv_prog_CC
2580if test -n "$CC"; then
jfigusa14b5a02013-03-29 12:24:12 -04002581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2582$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002583else
jfigusa14b5a02013-03-29 12:24:12 -04002584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002586fi
2587
jfigusa14b5a02013-03-29 12:24:12 -04002588
Cullen Jennings235513a2005-09-21 22:51:36 +00002589 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002590fi
2591if test -z "$CC"; then
2592 # Extract the first word of "cc", so it can be a program name with args.
2593set dummy cc; ac_word=$2
jfigusa14b5a02013-03-29 12:24:12 -04002594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595$as_echo_n "checking for $ac_word... " >&6; }
2596if ${ac_cv_prog_CC+:} false; then :
2597 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002598else
2599 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
2601else
2602 ac_prog_rejected=no
2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604for as_dir in $PATH
2605do
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
jfigusa14b5a02013-03-29 12:24:12 -04002608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2611 ac_prog_rejected=yes
2612 continue
2613 fi
2614 ac_cv_prog_CC="cc"
jfigusa14b5a02013-03-29 12:24:12 -04002615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002616 break 2
2617 fi
2618done
jfigusa14b5a02013-03-29 12:24:12 -04002619 done
2620IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002621
2622if test $ac_prog_rejected = yes; then
2623 # We found a bogon in the path, so make sure we never use it.
2624 set dummy $ac_cv_prog_CC
2625 shift
2626 if test $# != 0; then
2627 # We chose a different compiler from the bogus one.
2628 # However, it has the same basename, so the bogon will be chosen
2629 # first if we set CC to just the basename; use the full file name.
2630 shift
2631 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2632 fi
2633fi
2634fi
2635fi
2636CC=$ac_cv_prog_CC
2637if test -n "$CC"; then
jfigusa14b5a02013-03-29 12:24:12 -04002638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2639$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002640else
jfigusa14b5a02013-03-29 12:24:12 -04002641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002643fi
2644
jfigusa14b5a02013-03-29 12:24:12 -04002645
Cullen Jennings235513a2005-09-21 22:51:36 +00002646fi
2647if test -z "$CC"; then
2648 if test -n "$ac_tool_prefix"; then
jfigusa14b5a02013-03-29 12:24:12 -04002649 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002650 do
2651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2652set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jfigusa14b5a02013-03-29 12:24:12 -04002653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654$as_echo_n "checking for $ac_word... " >&6; }
2655if ${ac_cv_prog_CC+:} false; then :
2656 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002657else
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC="$CC" # Let the user override the test.
2660else
2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
jfigusa14b5a02013-03-29 12:24:12 -04002666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jfigusa14b5a02013-03-29 12:24:12 -04002669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002670 break 2
2671 fi
2672done
jfigusa14b5a02013-03-29 12:24:12 -04002673 done
2674IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002675
2676fi
2677fi
2678CC=$ac_cv_prog_CC
2679if test -n "$CC"; then
jfigusa14b5a02013-03-29 12:24:12 -04002680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2681$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002682else
jfigusa14b5a02013-03-29 12:24:12 -04002683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002685fi
2686
jfigusa14b5a02013-03-29 12:24:12 -04002687
Cullen Jennings235513a2005-09-21 22:51:36 +00002688 test -n "$CC" && break
2689 done
2690fi
2691if test -z "$CC"; then
2692 ac_ct_CC=$CC
jfigusa14b5a02013-03-29 12:24:12 -04002693 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002694do
2695 # Extract the first word of "$ac_prog", so it can be a program name with args.
2696set dummy $ac_prog; ac_word=$2
jfigusa14b5a02013-03-29 12:24:12 -04002697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698$as_echo_n "checking for $ac_word... " >&6; }
2699if ${ac_cv_prog_ac_ct_CC+:} false; then :
2700 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002701else
2702 if test -n "$ac_ct_CC"; then
2703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2704else
2705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706for as_dir in $PATH
2707do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
jfigusa14b5a02013-03-29 12:24:12 -04002710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002712 ac_cv_prog_ac_ct_CC="$ac_prog"
jfigusa14b5a02013-03-29 12:24:12 -04002713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002714 break 2
2715 fi
2716done
jfigusa14b5a02013-03-29 12:24:12 -04002717 done
2718IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002719
2720fi
2721fi
2722ac_ct_CC=$ac_cv_prog_ac_ct_CC
2723if test -n "$ac_ct_CC"; then
jfigusa14b5a02013-03-29 12:24:12 -04002724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2725$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002726else
jfigusa14b5a02013-03-29 12:24:12 -04002727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002729fi
2730
jfigusa14b5a02013-03-29 12:24:12 -04002731
Cullen Jennings235513a2005-09-21 22:51:36 +00002732 test -n "$ac_ct_CC" && break
2733done
2734
jfigusa14b5a02013-03-29 12:24:12 -04002735 if test "x$ac_ct_CC" = x; then
2736 CC=""
2737 else
2738 case $cross_compiling:$ac_tool_warned in
2739yes:)
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2742ac_tool_warned=yes ;;
2743esac
2744 CC=$ac_ct_CC
2745 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002746fi
2747
2748fi
2749
2750
jfigusa14b5a02013-03-29 12:24:12 -04002751test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2753as_fn_error $? "no acceptable C compiler found in \$PATH
2754See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002755
2756# Provide some information about the compiler.
jfigusa14b5a02013-03-29 12:24:12 -04002757$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2758set X $ac_compile
2759ac_compiler=$2
2760for ac_option in --version -v -V -qversion; do
2761 { { ac_try="$ac_compiler $ac_option >&5"
2762case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2765esac
2766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2767$as_echo "$ac_try_echo"; } >&5
2768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Cullen Jennings235513a2005-09-21 22:51:36 +00002769 ac_status=$?
jfigusa14b5a02013-03-29 12:24:12 -04002770 if test -s conftest.err; then
2771 sed '10a\
2772... rest of stderr output deleted ...
2773 10q' conftest.err >conftest.er1
2774 cat conftest.er1 >&5
2775 fi
2776 rm -f conftest.er1 conftest.err
2777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2778 test $ac_status = 0; }
2779done
Cullen Jennings235513a2005-09-21 22:51:36 +00002780
jfigusa14b5a02013-03-29 12:24:12 -04002781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002782/* end confdefs.h. */
2783
2784int
2785main ()
2786{
2787
2788 ;
2789 return 0;
2790}
2791_ACEOF
2792ac_clean_files_save=$ac_clean_files
jfigusa14b5a02013-03-29 12:24:12 -04002793ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Cullen Jennings235513a2005-09-21 22:51:36 +00002794# Try to create an executable without -o first, disregard a.out.
2795# It will help us diagnose broken compilers, and finding out an intuition
2796# of exeext.
jfigusa14b5a02013-03-29 12:24:12 -04002797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2798$as_echo_n "checking whether the C compiler works... " >&6; }
2799ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Cullen Jennings235513a2005-09-21 22:51:36 +00002800
jfigusa14b5a02013-03-29 12:24:12 -04002801# The possible output files:
2802ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2803
2804ac_rmfiles=
2805for ac_file in $ac_files
2806do
2807 case $ac_file in
2808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2809 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2810 esac
2811done
2812rm -f $ac_rmfiles
2813
2814if { { ac_try="$ac_link_default"
2815case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818esac
2819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2820$as_echo "$ac_try_echo"; } >&5
2821 (eval "$ac_link_default") 2>&5
2822 ac_status=$?
2823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2824 test $ac_status = 0; }; then :
2825 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2826# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2827# in a Makefile. We should not override ac_cv_exeext if it was cached,
2828# so that the user can short-circuit this test for compilers unknown to
2829# Autoconf.
2830for ac_file in $ac_files ''
Cullen Jennings235513a2005-09-21 22:51:36 +00002831do
2832 test -f "$ac_file" || continue
2833 case $ac_file in
jfigusa14b5a02013-03-29 12:24:12 -04002834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00002835 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002836 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00002837 # We found the default executable, but exeext='' is most
2838 # certainly right.
2839 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002840 *.* )
jfigusa14b5a02013-03-29 12:24:12 -04002841 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2842 then :; else
2843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2844 fi
2845 # We set ac_cv_exeext here because the later test for it is not
2846 # safe: cross compilers may not add the suffix if given an `-o'
2847 # argument, so we may need to know it at that point already.
2848 # Even if this section looks crufty: it has the advantage of
2849 # actually working.
David McGrewfec49dd2005-09-23 19:34:11 +00002850 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002851 * )
David McGrewfec49dd2005-09-23 19:34:11 +00002852 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002853 esac
2854done
jfigusa14b5a02013-03-29 12:24:12 -04002855test "$ac_cv_exeext" = no && ac_cv_exeext=
2856
Cullen Jennings235513a2005-09-21 22:51:36 +00002857else
jfigusa14b5a02013-03-29 12:24:12 -04002858 ac_file=''
2859fi
2860if test -z "$ac_file"; then :
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862$as_echo "no" >&6; }
2863$as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002864sed 's/^/| /' conftest.$ac_ext >&5
2865
jfigusa14b5a02013-03-29 12:24:12 -04002866{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2868as_fn_error 77 "C compiler cannot create executables
2869See \`config.log' for more details" "$LINENO" 5; }
2870else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2872$as_echo "yes" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002873fi
jfigusa14b5a02013-03-29 12:24:12 -04002874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2875$as_echo_n "checking for C compiler default output file name... " >&6; }
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2877$as_echo "$ac_file" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002878ac_exeext=$ac_cv_exeext
Cullen Jennings235513a2005-09-21 22:51:36 +00002879
jfigusa14b5a02013-03-29 12:24:12 -04002880rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Cullen Jennings235513a2005-09-21 22:51:36 +00002881ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04002882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2883$as_echo_n "checking for suffix of executables... " >&6; }
2884if { { ac_try="$ac_link"
2885case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888esac
2889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2890$as_echo "$ac_try_echo"; } >&5
2891 (eval "$ac_link") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002892 ac_status=$?
jfigusa14b5a02013-03-29 12:24:12 -04002893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2894 test $ac_status = 0; }; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002895 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2896# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2897# work properly (i.e., refer to `conftest.exe'), while it won't with
2898# `rm'.
2899for ac_file in conftest.exe conftest conftest.*; do
2900 test -f "$ac_file" || continue
2901 case $ac_file in
jfigusa14b5a02013-03-29 12:24:12 -04002902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002903 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00002904 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002905 * ) break;;
2906 esac
2907done
2908else
jfigusa14b5a02013-03-29 12:24:12 -04002909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2911as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2912See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002913fi
jfigusa14b5a02013-03-29 12:24:12 -04002914rm -f conftest conftest$ac_cv_exeext
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2916$as_echo "$ac_cv_exeext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002917
2918rm -f conftest.$ac_ext
2919EXEEXT=$ac_cv_exeext
2920ac_exeext=$EXEEXT
jfigusa14b5a02013-03-29 12:24:12 -04002921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922/* end confdefs.h. */
2923#include <stdio.h>
2924int
2925main ()
2926{
2927FILE *f = fopen ("conftest.out", "w");
2928 return ferror (f) || fclose (f) != 0;
2929
2930 ;
2931 return 0;
2932}
Cullen Jennings235513a2005-09-21 22:51:36 +00002933_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04002934ac_clean_files="$ac_clean_files conftest.out"
2935# Check that the compiler produces executables we can run. If not, either
2936# the compiler is broken, or we cross compile.
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2938$as_echo_n "checking whether we are cross compiling... " >&6; }
2939if test "$cross_compiling" != yes; then
2940 { { ac_try="$ac_link"
2941case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944esac
2945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2946$as_echo "$ac_try_echo"; } >&5
2947 (eval "$ac_link") 2>&5
2948 ac_status=$?
2949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2950 test $ac_status = 0; }
2951 if { ac_try='./conftest$ac_cv_exeext'
2952 { { case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955esac
2956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2957$as_echo "$ac_try_echo"; } >&5
2958 (eval "$ac_try") 2>&5
2959 ac_status=$?
2960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2961 test $ac_status = 0; }; }; then
2962 cross_compiling=no
2963 else
2964 if test "$cross_compiling" = maybe; then
2965 cross_compiling=yes
2966 else
2967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969as_fn_error $? "cannot run C compiled programs.
2970If you meant to cross compile, use \`--host'.
2971See \`config.log' for more details" "$LINENO" 5; }
2972 fi
2973 fi
2974fi
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2976$as_echo "$cross_compiling" >&6; }
2977
2978rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2979ac_clean_files=$ac_clean_files_save
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2981$as_echo_n "checking for suffix of object files... " >&6; }
2982if ${ac_cv_objext+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984else
2985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002986/* end confdefs.h. */
2987
2988int
2989main ()
2990{
2991
2992 ;
2993 return 0;
2994}
2995_ACEOF
2996rm -f conftest.o conftest.obj
jfigusa14b5a02013-03-29 12:24:12 -04002997if { { ac_try="$ac_compile"
2998case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001esac
3002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3003$as_echo "$ac_try_echo"; } >&5
3004 (eval "$ac_compile") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003005 ac_status=$?
jfigusa14b5a02013-03-29 12:24:12 -04003006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007 test $ac_status = 0; }; then :
3008 for ac_file in conftest.o conftest.obj conftest.*; do
3009 test -f "$ac_file" || continue;
Cullen Jennings235513a2005-09-21 22:51:36 +00003010 case $ac_file in
jfigusa14b5a02013-03-29 12:24:12 -04003011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003012 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3013 break;;
3014 esac
3015done
3016else
jfigusa14b5a02013-03-29 12:24:12 -04003017 $as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003018sed 's/^/| /' conftest.$ac_ext >&5
3019
jfigusa14b5a02013-03-29 12:24:12 -04003020{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022as_fn_error $? "cannot compute suffix of object files: cannot compile
3023See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003024fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003025rm -f conftest.$ac_cv_objext conftest.$ac_ext
3026fi
jfigusa14b5a02013-03-29 12:24:12 -04003027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3028$as_echo "$ac_cv_objext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003029OBJEXT=$ac_cv_objext
3030ac_objext=$OBJEXT
jfigusa14b5a02013-03-29 12:24:12 -04003031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3032$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3033if ${ac_cv_c_compiler_gnu+:} false; then :
3034 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003035else
jfigusa14b5a02013-03-29 12:24:12 -04003036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003037/* end confdefs.h. */
3038
3039int
3040main ()
3041{
3042#ifndef __GNUC__
3043 choke me
3044#endif
3045
3046 ;
3047 return 0;
3048}
3049_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04003050if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003051 ac_compiler_gnu=yes
3052else
jfigusa14b5a02013-03-29 12:24:12 -04003053 ac_compiler_gnu=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003054fi
jfigusa14b5a02013-03-29 12:24:12 -04003055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003056ac_cv_c_compiler_gnu=$ac_compiler_gnu
3057
3058fi
jfigusa14b5a02013-03-29 12:24:12 -04003059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3060$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3061if test $ac_compiler_gnu = yes; then
3062 GCC=yes
3063else
3064 GCC=
3065fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003066ac_test_CFLAGS=${CFLAGS+set}
3067ac_save_CFLAGS=$CFLAGS
jfigusa14b5a02013-03-29 12:24:12 -04003068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3069$as_echo_n "checking whether $CC accepts -g... " >&6; }
3070if ${ac_cv_prog_cc_g+:} false; then :
3071 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003072else
jfigusa14b5a02013-03-29 12:24:12 -04003073 ac_save_c_werror_flag=$ac_c_werror_flag
3074 ac_c_werror_flag=yes
3075 ac_cv_prog_cc_g=no
3076 CFLAGS="-g"
3077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003078/* end confdefs.h. */
3079
3080int
3081main ()
3082{
3083
3084 ;
3085 return 0;
3086}
3087_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04003088if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003089 ac_cv_prog_cc_g=yes
3090else
jfigusa14b5a02013-03-29 12:24:12 -04003091 CFLAGS=""
3092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3093/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00003094
jfigusa14b5a02013-03-29 12:24:12 -04003095int
3096main ()
3097{
3098
3099 ;
3100 return 0;
3101}
3102_ACEOF
3103if ac_fn_c_try_compile "$LINENO"; then :
3104
3105else
3106 ac_c_werror_flag=$ac_save_c_werror_flag
3107 CFLAGS="-g"
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109/* end confdefs.h. */
3110
3111int
3112main ()
3113{
3114
3115 ;
3116 return 0;
3117}
3118_ACEOF
3119if ac_fn_c_try_compile "$LINENO"; then :
3120 ac_cv_prog_cc_g=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003121fi
jfigusa14b5a02013-03-29 12:24:12 -04003122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003123fi
jfigusa14b5a02013-03-29 12:24:12 -04003124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125fi
3126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127 ac_c_werror_flag=$ac_save_c_werror_flag
3128fi
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3130$as_echo "$ac_cv_prog_cc_g" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003131if test "$ac_test_CFLAGS" = set; then
3132 CFLAGS=$ac_save_CFLAGS
3133elif test $ac_cv_prog_cc_g = yes; then
3134 if test "$GCC" = yes; then
3135 CFLAGS="-g -O2"
3136 else
3137 CFLAGS="-g"
3138 fi
3139else
3140 if test "$GCC" = yes; then
3141 CFLAGS="-O2"
3142 else
3143 CFLAGS=
3144 fi
3145fi
jfigusa14b5a02013-03-29 12:24:12 -04003146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3147$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3148if ${ac_cv_prog_cc_c89+:} false; then :
3149 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003150else
jfigusa14b5a02013-03-29 12:24:12 -04003151 ac_cv_prog_cc_c89=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003152ac_save_CC=$CC
jfigusa14b5a02013-03-29 12:24:12 -04003153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003154/* end confdefs.h. */
3155#include <stdarg.h>
3156#include <stdio.h>
jfigusa14b5a02013-03-29 12:24:12 -04003157struct stat;
Cullen Jennings235513a2005-09-21 22:51:36 +00003158/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3159struct buf { int x; };
3160FILE * (*rcsopen) (struct buf *, struct stat *, int);
3161static char *e (p, i)
3162 char **p;
3163 int i;
3164{
3165 return p[i];
3166}
3167static char *f (char * (*g) (char **, int), char **p, ...)
3168{
3169 char *s;
3170 va_list v;
3171 va_start (v,p);
3172 s = g (p, va_arg (v,int));
3173 va_end (v);
3174 return s;
3175}
David McGrewfec49dd2005-09-23 19:34:11 +00003176
3177/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3178 function prototypes and stuff, but not '\xHH' hex character constants.
3179 These don't provoke an error unfortunately, instead are silently treated
jfigusa14b5a02013-03-29 12:24:12 -04003180 as 'x'. The following induces an error, until -std is added to get
David McGrewfec49dd2005-09-23 19:34:11 +00003181 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3182 array size at least. It's necessary to write '\x00'==0 to get something
jfigusa14b5a02013-03-29 12:24:12 -04003183 that's true only with -std. */
David McGrewfec49dd2005-09-23 19:34:11 +00003184int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3185
jfigusa14b5a02013-03-29 12:24:12 -04003186/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3187 inside strings and character constants. */
3188#define FOO(x) 'x'
3189int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3190
Cullen Jennings235513a2005-09-21 22:51:36 +00003191int test (int i, double x);
3192struct s1 {int (*f) (int a);};
3193struct s2 {int (*f) (double a);};
3194int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3195int argc;
3196char **argv;
3197int
3198main ()
3199{
3200return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3201 ;
3202 return 0;
3203}
3204_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04003205for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3206 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Cullen Jennings235513a2005-09-21 22:51:36 +00003207do
3208 CC="$ac_save_CC $ac_arg"
jfigusa14b5a02013-03-29 12:24:12 -04003209 if ac_fn_c_try_compile "$LINENO"; then :
3210 ac_cv_prog_cc_c89=$ac_arg
Cullen Jennings235513a2005-09-21 22:51:36 +00003211fi
jfigusa14b5a02013-03-29 12:24:12 -04003212rm -f core conftest.err conftest.$ac_objext
3213 test "x$ac_cv_prog_cc_c89" != "xno" && break
Cullen Jennings235513a2005-09-21 22:51:36 +00003214done
jfigusa14b5a02013-03-29 12:24:12 -04003215rm -f conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003216CC=$ac_save_CC
3217
3218fi
jfigusa14b5a02013-03-29 12:24:12 -04003219# AC_CACHE_VAL
3220case "x$ac_cv_prog_cc_c89" in
3221 x)
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3223$as_echo "none needed" >&6; } ;;
3224 xno)
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3226$as_echo "unsupported" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003227 *)
jfigusa14b5a02013-03-29 12:24:12 -04003228 CC="$CC $ac_cv_prog_cc_c89"
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3230$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003231esac
jfigusa14b5a02013-03-29 12:24:12 -04003232if test "x$ac_cv_prog_cc_c89" != xno; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003233
3234fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003235
Cullen Jennings235513a2005-09-21 22:51:36 +00003236ac_ext=c
3237ac_cpp='$CPP $CPPFLAGS'
3238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241
David McGrewb67061f2005-09-28 14:23:06 +00003242ac_aux_dir=
jfigusa14b5a02013-03-29 12:24:12 -04003243for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3244 if test -f "$ac_dir/install-sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003245 ac_aux_dir=$ac_dir
3246 ac_install_sh="$ac_aux_dir/install-sh -c"
3247 break
jfigusa14b5a02013-03-29 12:24:12 -04003248 elif test -f "$ac_dir/install.sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003249 ac_aux_dir=$ac_dir
3250 ac_install_sh="$ac_aux_dir/install.sh -c"
3251 break
jfigusa14b5a02013-03-29 12:24:12 -04003252 elif test -f "$ac_dir/shtool"; then
David McGrewb67061f2005-09-28 14:23:06 +00003253 ac_aux_dir=$ac_dir
3254 ac_install_sh="$ac_aux_dir/shtool install -c"
3255 break
3256 fi
3257done
3258if test -z "$ac_aux_dir"; then
jfigusa14b5a02013-03-29 12:24:12 -04003259 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
David McGrewb67061f2005-09-28 14:23:06 +00003260fi
jfigusa14b5a02013-03-29 12:24:12 -04003261
3262# These three variables are undocumented and unsupported,
3263# and are intended to be withdrawn in a future Autoconf release.
3264# They can cause serious problems if a builder's source tree is in a directory
3265# whose full name contains unusual characters.
3266ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3267ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3268ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3269
Cullen Jennings235513a2005-09-21 22:51:36 +00003270
David McGrewb67061f2005-09-28 14:23:06 +00003271# Find a good install program. We prefer a C program (faster),
3272# so one script is as good as another. But avoid the broken or
3273# incompatible versions:
3274# SysV /etc/install, /usr/sbin/install
3275# SunOS /usr/etc/install
3276# IRIX /sbin/install
3277# AIX /bin/install
3278# AmigaOS /C/install, which installs bootblocks on floppy discs
3279# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3280# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3281# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3282# OS/2's system install, which has a completely different semantic
3283# ./install, which can be erroneously created by make from ./install.sh.
jfigusa14b5a02013-03-29 12:24:12 -04003284# Reject install programs that cannot install multiple files.
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3286$as_echo_n "checking for a BSD-compatible install... " >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00003287if test -z "$INSTALL"; then
jfigusa14b5a02013-03-29 12:24:12 -04003288if ${ac_cv_path_install+:} false; then :
3289 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003290else
David McGrewb67061f2005-09-28 14:23:06 +00003291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292for as_dir in $PATH
3293do
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
jfigusa14b5a02013-03-29 12:24:12 -04003296 # Account for people who put trailing slashes in PATH elements.
3297case $as_dir/ in #((
3298 ./ | .// | /[cC]/* | \
David McGrewb67061f2005-09-28 14:23:06 +00003299 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jfigusa14b5a02013-03-29 12:24:12 -04003300 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
David McGrewb67061f2005-09-28 14:23:06 +00003301 /usr/ucb/* ) ;;
3302 *)
3303 # OSF1 and SCO ODT 3.0 have their own names for install.
3304 # Don't use installbsd from OSF since it installs stuff as root
3305 # by default.
3306 for ac_prog in ginstall scoinst install; do
3307 for ac_exec_ext in '' $ac_executable_extensions; do
jfigusa14b5a02013-03-29 12:24:12 -04003308 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
David McGrewb67061f2005-09-28 14:23:06 +00003309 if test $ac_prog = install &&
3310 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3311 # AIX install. It has an incompatible calling convention.
3312 :
3313 elif test $ac_prog = install &&
3314 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3315 # program-specific install script used by HP pwplus--don't use.
3316 :
3317 else
jfigusa14b5a02013-03-29 12:24:12 -04003318 rm -rf conftest.one conftest.two conftest.dir
3319 echo one > conftest.one
3320 echo two > conftest.two
3321 mkdir conftest.dir
3322 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3323 test -s conftest.one && test -s conftest.two &&
3324 test -s conftest.dir/conftest.one &&
3325 test -s conftest.dir/conftest.two
3326 then
3327 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3328 break 3
3329 fi
David McGrewb67061f2005-09-28 14:23:06 +00003330 fi
3331 fi
3332 done
3333 done
3334 ;;
3335esac
Cullen Jennings235513a2005-09-21 22:51:36 +00003336
jfigusa14b5a02013-03-29 12:24:12 -04003337 done
3338IFS=$as_save_IFS
3339
3340rm -rf conftest.one conftest.two conftest.dir
Cullen Jennings235513a2005-09-21 22:51:36 +00003341
3342fi
David McGrewb67061f2005-09-28 14:23:06 +00003343 if test "${ac_cv_path_install+set}" = set; then
3344 INSTALL=$ac_cv_path_install
3345 else
jfigusa14b5a02013-03-29 12:24:12 -04003346 # As a last resort, use the slow shell script. Don't cache a
3347 # value for INSTALL within a source directory, because that will
David McGrewb67061f2005-09-28 14:23:06 +00003348 # break other packages using the cache if that directory is
jfigusa14b5a02013-03-29 12:24:12 -04003349 # removed, or if the value is a relative name.
David McGrewb67061f2005-09-28 14:23:06 +00003350 INSTALL=$ac_install_sh
3351 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003352fi
jfigusa14b5a02013-03-29 12:24:12 -04003353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3354$as_echo "$INSTALL" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003355
David McGrewb67061f2005-09-28 14:23:06 +00003356# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3357# It thinks the first close brace ends the variable substitution.
3358test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00003359
David McGrewb67061f2005-09-28 14:23:06 +00003360test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3361
3362test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00003363
3364
3365
Cullen Jennings235513a2005-09-21 22:51:36 +00003366ac_ext=c
3367ac_cpp='$CPP $CPPFLAGS'
3368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3370ac_compiler_gnu=$ac_cv_c_compiler_gnu
jfigusa14b5a02013-03-29 12:24:12 -04003371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3372$as_echo_n "checking how to run the C preprocessor... " >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003373# On Suns, sometimes $CPP names a directory.
3374if test -n "$CPP" && test -d "$CPP"; then
3375 CPP=
3376fi
3377if test -z "$CPP"; then
jfigusa14b5a02013-03-29 12:24:12 -04003378 if ${ac_cv_prog_CPP+:} false; then :
3379 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003380else
3381 # Double quotes because CPP needs to be expanded
3382 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3383 do
3384 ac_preproc_ok=false
3385for ac_c_preproc_warn_flag in '' yes
3386do
3387 # Use a header file that comes with gcc, so configuring glibc
3388 # with a fresh cross-compiler works.
3389 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3390 # <limits.h> exists even on freestanding compilers.
3391 # On the NeXT, cc -E runs the code through the compiler's parser,
3392 # not just through cpp. "Syntax error" is here to catch this case.
jfigusa14b5a02013-03-29 12:24:12 -04003393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003394/* end confdefs.h. */
3395#ifdef __STDC__
3396# include <limits.h>
3397#else
3398# include <assert.h>
3399#endif
David McGrewfec49dd2005-09-23 19:34:11 +00003400 Syntax error
Cullen Jennings235513a2005-09-21 22:51:36 +00003401_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04003402if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003403
jfigusa14b5a02013-03-29 12:24:12 -04003404else
Cullen Jennings235513a2005-09-21 22:51:36 +00003405 # Broken: fails on valid input.
3406continue
3407fi
jfigusa14b5a02013-03-29 12:24:12 -04003408rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003409
jfigusa14b5a02013-03-29 12:24:12 -04003410 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings235513a2005-09-21 22:51:36 +00003411 # can be detected and how.
jfigusa14b5a02013-03-29 12:24:12 -04003412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003413/* end confdefs.h. */
3414#include <ac_nonexistent.h>
3415_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04003416if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003417 # Broken: success on invalid input.
3418continue
3419else
Cullen Jennings235513a2005-09-21 22:51:36 +00003420 # Passes both tests.
3421ac_preproc_ok=:
3422break
3423fi
jfigusa14b5a02013-03-29 12:24:12 -04003424rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003425
3426done
3427# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusa14b5a02013-03-29 12:24:12 -04003428rm -f conftest.i conftest.err conftest.$ac_ext
3429if $ac_preproc_ok; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003430 break
3431fi
3432
3433 done
3434 ac_cv_prog_CPP=$CPP
3435
3436fi
3437 CPP=$ac_cv_prog_CPP
3438else
3439 ac_cv_prog_CPP=$CPP
3440fi
jfigusa14b5a02013-03-29 12:24:12 -04003441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3442$as_echo "$CPP" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003443ac_preproc_ok=false
3444for ac_c_preproc_warn_flag in '' yes
3445do
3446 # Use a header file that comes with gcc, so configuring glibc
3447 # with a fresh cross-compiler works.
3448 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3449 # <limits.h> exists even on freestanding compilers.
3450 # On the NeXT, cc -E runs the code through the compiler's parser,
3451 # not just through cpp. "Syntax error" is here to catch this case.
jfigusa14b5a02013-03-29 12:24:12 -04003452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003453/* end confdefs.h. */
3454#ifdef __STDC__
3455# include <limits.h>
3456#else
3457# include <assert.h>
3458#endif
David McGrewfec49dd2005-09-23 19:34:11 +00003459 Syntax error
Cullen Jennings235513a2005-09-21 22:51:36 +00003460_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04003461if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003462
jfigusa14b5a02013-03-29 12:24:12 -04003463else
Cullen Jennings235513a2005-09-21 22:51:36 +00003464 # Broken: fails on valid input.
3465continue
3466fi
jfigusa14b5a02013-03-29 12:24:12 -04003467rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003468
jfigusa14b5a02013-03-29 12:24:12 -04003469 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings235513a2005-09-21 22:51:36 +00003470 # can be detected and how.
jfigusa14b5a02013-03-29 12:24:12 -04003471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003472/* end confdefs.h. */
3473#include <ac_nonexistent.h>
3474_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04003475if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003476 # Broken: success on invalid input.
3477continue
3478else
Cullen Jennings235513a2005-09-21 22:51:36 +00003479 # Passes both tests.
3480ac_preproc_ok=:
3481break
3482fi
jfigusa14b5a02013-03-29 12:24:12 -04003483rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003484
3485done
3486# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusa14b5a02013-03-29 12:24:12 -04003487rm -f conftest.i conftest.err conftest.$ac_ext
3488if $ac_preproc_ok; then :
3489
Cullen Jennings235513a2005-09-21 22:51:36 +00003490else
jfigusa14b5a02013-03-29 12:24:12 -04003491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3494See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003495fi
3496
3497ac_ext=c
3498ac_cpp='$CPP $CPPFLAGS'
3499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502
3503
jfigusa14b5a02013-03-29 12:24:12 -04003504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3505$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3506if ${ac_cv_path_GREP+:} false; then :
3507 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003508else
jfigusa14b5a02013-03-29 12:24:12 -04003509 if test -z "$GREP"; then
3510 ac_path_GREP_found=false
3511 # Loop through the user's path and test for each of PROGNAME-LIST
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3514do
3515 IFS=$as_save_IFS
3516 test -z "$as_dir" && as_dir=.
3517 for ac_prog in grep ggrep; do
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3520 as_fn_executable_p "$ac_path_GREP" || continue
3521# Check for GNU ac_path_GREP and select it if it is found.
3522 # Check for GNU $ac_path_GREP
3523case `"$ac_path_GREP" --version 2>&1` in
3524*GNU*)
3525 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3526*)
3527 ac_count=0
3528 $as_echo_n 0123456789 >"conftest.in"
3529 while :
3530 do
3531 cat "conftest.in" "conftest.in" >"conftest.tmp"
3532 mv "conftest.tmp" "conftest.in"
3533 cp "conftest.in" "conftest.nl"
3534 $as_echo 'GREP' >> "conftest.nl"
3535 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3537 as_fn_arith $ac_count + 1 && ac_count=$as_val
3538 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3539 # Best one so far, save it but keep looking for a better one
3540 ac_cv_path_GREP="$ac_path_GREP"
3541 ac_path_GREP_max=$ac_count
Cullen Jennings235513a2005-09-21 22:51:36 +00003542 fi
jfigusa14b5a02013-03-29 12:24:12 -04003543 # 10*(2^10) chars as input seems more than enough
3544 test $ac_count -gt 10 && break
3545 done
3546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3547esac
Cullen Jennings235513a2005-09-21 22:51:36 +00003548
jfigusa14b5a02013-03-29 12:24:12 -04003549 $ac_path_GREP_found && break 3
3550 done
3551 done
3552 done
3553IFS=$as_save_IFS
3554 if test -z "$ac_cv_path_GREP"; then
3555 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3556 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003557else
jfigusa14b5a02013-03-29 12:24:12 -04003558 ac_cv_path_GREP=$GREP
3559fi
3560
3561fi
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3563$as_echo "$ac_cv_path_GREP" >&6; }
3564 GREP="$ac_cv_path_GREP"
3565
3566
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3568$as_echo_n "checking for egrep... " >&6; }
3569if ${ac_cv_path_EGREP+:} false; then :
3570 $as_echo_n "(cached) " >&6
3571else
3572 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3573 then ac_cv_path_EGREP="$GREP -E"
3574 else
3575 if test -z "$EGREP"; then
3576 ac_path_EGREP_found=false
3577 # Loop through the user's path and test for each of PROGNAME-LIST
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3580do
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
3583 for ac_prog in egrep; do
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3586 as_fn_executable_p "$ac_path_EGREP" || continue
3587# Check for GNU ac_path_EGREP and select it if it is found.
3588 # Check for GNU $ac_path_EGREP
3589case `"$ac_path_EGREP" --version 2>&1` in
3590*GNU*)
3591 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3592*)
3593 ac_count=0
3594 $as_echo_n 0123456789 >"conftest.in"
3595 while :
3596 do
3597 cat "conftest.in" "conftest.in" >"conftest.tmp"
3598 mv "conftest.tmp" "conftest.in"
3599 cp "conftest.in" "conftest.nl"
3600 $as_echo 'EGREP' >> "conftest.nl"
3601 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3603 as_fn_arith $ac_count + 1 && ac_count=$as_val
3604 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3605 # Best one so far, save it but keep looking for a better one
3606 ac_cv_path_EGREP="$ac_path_EGREP"
3607 ac_path_EGREP_max=$ac_count
3608 fi
3609 # 10*(2^10) chars as input seems more than enough
3610 test $ac_count -gt 10 && break
3611 done
3612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3613esac
3614
3615 $ac_path_EGREP_found && break 3
3616 done
3617 done
3618 done
3619IFS=$as_save_IFS
3620 if test -z "$ac_cv_path_EGREP"; then
3621 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3622 fi
3623else
3624 ac_cv_path_EGREP=$EGREP
3625fi
3626
3627 fi
3628fi
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3630$as_echo "$ac_cv_path_EGREP" >&6; }
3631 EGREP="$ac_cv_path_EGREP"
3632
3633
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3635$as_echo_n "checking for ANSI C header files... " >&6; }
3636if ${ac_cv_header_stdc+:} false; then :
3637 $as_echo_n "(cached) " >&6
3638else
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003640/* end confdefs.h. */
3641#include <stdlib.h>
3642#include <stdarg.h>
3643#include <string.h>
3644#include <float.h>
3645
3646int
3647main ()
3648{
3649
3650 ;
3651 return 0;
3652}
3653_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04003654if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003655 ac_cv_header_stdc=yes
3656else
jfigusa14b5a02013-03-29 12:24:12 -04003657 ac_cv_header_stdc=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003658fi
jfigusa14b5a02013-03-29 12:24:12 -04003659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003660
3661if test $ac_cv_header_stdc = yes; then
3662 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jfigusa14b5a02013-03-29 12:24:12 -04003663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003664/* end confdefs.h. */
3665#include <string.h>
3666
3667_ACEOF
3668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusa14b5a02013-03-29 12:24:12 -04003669 $EGREP "memchr" >/dev/null 2>&1; then :
3670
Cullen Jennings235513a2005-09-21 22:51:36 +00003671else
3672 ac_cv_header_stdc=no
3673fi
3674rm -f conftest*
3675
3676fi
3677
3678if test $ac_cv_header_stdc = yes; then
3679 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jfigusa14b5a02013-03-29 12:24:12 -04003680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003681/* end confdefs.h. */
3682#include <stdlib.h>
3683
3684_ACEOF
3685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusa14b5a02013-03-29 12:24:12 -04003686 $EGREP "free" >/dev/null 2>&1; then :
3687
Cullen Jennings235513a2005-09-21 22:51:36 +00003688else
3689 ac_cv_header_stdc=no
3690fi
3691rm -f conftest*
3692
3693fi
3694
3695if test $ac_cv_header_stdc = yes; then
3696 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jfigusa14b5a02013-03-29 12:24:12 -04003697 if test "$cross_compiling" = yes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003698 :
3699else
jfigusa14b5a02013-03-29 12:24:12 -04003700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003701/* end confdefs.h. */
3702#include <ctype.h>
jfigusa14b5a02013-03-29 12:24:12 -04003703#include <stdlib.h>
Cullen Jennings235513a2005-09-21 22:51:36 +00003704#if ((' ' & 0x0FF) == 0x020)
3705# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3706# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3707#else
3708# define ISLOWER(c) \
David McGrewfec49dd2005-09-23 19:34:11 +00003709 (('a' <= (c) && (c) <= 'i') \
3710 || ('j' <= (c) && (c) <= 'r') \
3711 || ('s' <= (c) && (c) <= 'z'))
Cullen Jennings235513a2005-09-21 22:51:36 +00003712# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3713#endif
3714
3715#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3716int
3717main ()
3718{
3719 int i;
3720 for (i = 0; i < 256; i++)
3721 if (XOR (islower (i), ISLOWER (i))
David McGrewfec49dd2005-09-23 19:34:11 +00003722 || toupper (i) != TOUPPER (i))
jfigusa14b5a02013-03-29 12:24:12 -04003723 return 2;
3724 return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00003725}
3726_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04003727if ac_fn_c_try_run "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003728
jfigusa14b5a02013-03-29 12:24:12 -04003729else
3730 ac_cv_header_stdc=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003731fi
jfigusa14b5a02013-03-29 12:24:12 -04003732rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3733 conftest.$ac_objext conftest.beam conftest.$ac_ext
3734fi
3735
Cullen Jennings235513a2005-09-21 22:51:36 +00003736fi
3737fi
jfigusa14b5a02013-03-29 12:24:12 -04003738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3739$as_echo "$ac_cv_header_stdc" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003740if test $ac_cv_header_stdc = yes; then
3741
jfigusa14b5a02013-03-29 12:24:12 -04003742$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00003743
3744fi
3745
3746# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Cullen Jennings235513a2005-09-21 22:51:36 +00003747for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
David McGrewfec49dd2005-09-23 19:34:11 +00003748 inttypes.h stdint.h unistd.h
jfigusa14b5a02013-03-29 12:24:12 -04003749do :
3750 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3751ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3752"
3753if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003754 cat >>confdefs.h <<_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04003755#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00003756_ACEOF
3757
3758fi
3759
3760done
3761
3762
jfigusa14b5a02013-03-29 12:24:12 -04003763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3764$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3765if ${ac_cv_c_bigendian+:} false; then :
3766 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003767else
jfigusa14b5a02013-03-29 12:24:12 -04003768 ac_cv_c_bigendian=unknown
3769 # See if we're dealing with a universal compiler.
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003771/* end confdefs.h. */
jfigusa14b5a02013-03-29 12:24:12 -04003772#ifndef __APPLE_CC__
3773 not a universal capable compiler
3774 #endif
3775 typedef int dummy;
Cullen Jennings235513a2005-09-21 22:51:36 +00003776
jfigusa14b5a02013-03-29 12:24:12 -04003777_ACEOF
3778if ac_fn_c_try_compile "$LINENO"; then :
3779
3780 # Check for potential -arch flags. It is not universal unless
3781 # there are at least two -arch flags with different values.
3782 ac_arch=
3783 ac_prev=
3784 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3785 if test -n "$ac_prev"; then
3786 case $ac_word in
3787 i?86 | x86_64 | ppc | ppc64)
3788 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3789 ac_arch=$ac_word
3790 else
3791 ac_cv_c_bigendian=universal
3792 break
3793 fi
3794 ;;
3795 esac
3796 ac_prev=
3797 elif test "x$ac_word" = "x-arch"; then
3798 ac_prev=arch
3799 fi
3800 done
Cullen Jennings235513a2005-09-21 22:51:36 +00003801fi
jfigusa14b5a02013-03-29 12:24:12 -04003802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 if test $ac_cv_c_bigendian = unknown; then
3804 # See if sys/param.h defines the BYTE_ORDER macro.
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003806/* end confdefs.h. */
jfigusa14b5a02013-03-29 12:24:12 -04003807#include <sys/types.h>
3808 #include <sys/param.h>
3809
3810int
3811main ()
3812{
3813#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3814 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3815 && LITTLE_ENDIAN)
3816 bogus endian macros
3817 #endif
3818
3819 ;
3820 return 0;
3821}
Cullen Jennings235513a2005-09-21 22:51:36 +00003822_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04003823if ac_fn_c_try_compile "$LINENO"; then :
3824 # It does; now see whether it defined to BIG_ENDIAN or not.
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003826/* end confdefs.h. */
jfigusa14b5a02013-03-29 12:24:12 -04003827#include <sys/types.h>
3828 #include <sys/param.h>
3829
3830int
3831main ()
3832{
3833#if BYTE_ORDER != BIG_ENDIAN
3834 not big endian
3835 #endif
3836
3837 ;
3838 return 0;
3839}
Cullen Jennings235513a2005-09-21 22:51:36 +00003840_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04003841if ac_fn_c_try_compile "$LINENO"; then :
3842 ac_cv_c_bigendian=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003843else
jfigusa14b5a02013-03-29 12:24:12 -04003844 ac_cv_c_bigendian=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003845fi
jfigusa14b5a02013-03-29 12:24:12 -04003846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847fi
3848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 fi
3850 if test $ac_cv_c_bigendian = unknown; then
3851 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003853/* end confdefs.h. */
jfigusa14b5a02013-03-29 12:24:12 -04003854#include <limits.h>
3855
3856int
3857main ()
3858{
3859#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3860 bogus endian macros
3861 #endif
3862
3863 ;
3864 return 0;
3865}
Cullen Jennings235513a2005-09-21 22:51:36 +00003866_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04003867if ac_fn_c_try_compile "$LINENO"; then :
3868 # It does; now see whether it defined to _BIG_ENDIAN or not.
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00003870/* end confdefs.h. */
jfigusa14b5a02013-03-29 12:24:12 -04003871#include <limits.h>
3872
3873int
3874main ()
3875{
3876#ifndef _BIG_ENDIAN
3877 not big endian
3878 #endif
3879
3880 ;
3881 return 0;
3882}
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00003883_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04003884if ac_fn_c_try_compile "$LINENO"; then :
3885 ac_cv_c_bigendian=yes
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00003886else
jfigusa14b5a02013-03-29 12:24:12 -04003887 ac_cv_c_bigendian=no
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00003888fi
jfigusa14b5a02013-03-29 12:24:12 -04003889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890fi
3891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 fi
3893 if test $ac_cv_c_bigendian = unknown; then
3894 # Compile a test program.
3895 if test "$cross_compiling" = yes; then :
3896 # Try to guess by grepping values from an object file.
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00003898/* end confdefs.h. */
jfigusa14b5a02013-03-29 12:24:12 -04003899short int ascii_mm[] =
3900 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3901 short int ascii_ii[] =
3902 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3903 int use_ascii (int i) {
3904 return ascii_mm[i] + ascii_ii[i];
3905 }
3906 short int ebcdic_ii[] =
3907 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3908 short int ebcdic_mm[] =
3909 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3910 int use_ebcdic (int i) {
3911 return ebcdic_mm[i] + ebcdic_ii[i];
3912 }
3913 extern int foo;
3914
3915int
3916main ()
3917{
3918return use_ascii (foo) == use_ebcdic (foo);
3919 ;
3920 return 0;
3921}
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00003922_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04003923if ac_fn_c_try_compile "$LINENO"; then :
3924 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3925 ac_cv_c_bigendian=yes
3926 fi
3927 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3928 if test "$ac_cv_c_bigendian" = unknown; then
3929 ac_cv_c_bigendian=no
3930 else
3931 # finding both strings is unlikely to happen, but who knows?
3932 ac_cv_c_bigendian=unknown
3933 fi
3934 fi
3935fi
3936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00003937else
jfigusa14b5a02013-03-29 12:24:12 -04003938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003939/* end confdefs.h. */
3940$ac_includes_default
3941int
3942main ()
3943{
jfigusa14b5a02013-03-29 12:24:12 -04003944
3945 /* Are we little or big endian? From Harbison&Steele. */
3946 union
3947 {
3948 long int l;
3949 char c[sizeof (long int)];
3950 } u;
3951 u.l = 1;
3952 return u.c[sizeof (long int) - 1] == 1;
3953
Cullen Jennings235513a2005-09-21 22:51:36 +00003954 ;
3955 return 0;
3956}
3957_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04003958if ac_fn_c_try_run "$LINENO"; then :
3959 ac_cv_c_bigendian=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003960else
jfigusa14b5a02013-03-29 12:24:12 -04003961 ac_cv_c_bigendian=yes
3962fi
3963rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3964 conftest.$ac_objext conftest.beam conftest.$ac_ext
3965fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003966
jfigusa14b5a02013-03-29 12:24:12 -04003967 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003968fi
jfigusa14b5a02013-03-29 12:24:12 -04003969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3970$as_echo "$ac_cv_c_bigendian" >&6; }
3971 case $ac_cv_c_bigendian in #(
3972 yes)
3973 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
3974;; #(
3975 no)
3976 ;; #(
3977 universal)
3978
3979$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3980
3981 ;; #(
3982 *)
3983 as_fn_error $? "unknown endianness
3984 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3985 esac
3986
3987
3988# Make sure we can run config.sub.
3989$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3990 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3991
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3993$as_echo_n "checking build system type... " >&6; }
3994if ${ac_cv_build+:} false; then :
3995 $as_echo_n "(cached) " >&6
3996else
3997 ac_build_alias=$build_alias
3998test "x$ac_build_alias" = x &&
3999 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4000test "x$ac_build_alias" = x &&
4001 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4002ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4003 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4004
Cullen Jennings235513a2005-09-21 22:51:36 +00004005fi
jfigusa14b5a02013-03-29 12:24:12 -04004006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4007$as_echo "$ac_cv_build" >&6; }
4008case $ac_cv_build in
4009*-*-*) ;;
4010*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4011esac
4012build=$ac_cv_build
4013ac_save_IFS=$IFS; IFS='-'
4014set x $ac_cv_build
4015shift
4016build_cpu=$1
4017build_vendor=$2
4018shift; shift
4019# Remember, the first character of IFS is used to create $*,
4020# except with old shells:
4021build_os=$*
4022IFS=$ac_save_IFS
4023case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4024
4025
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4027$as_echo_n "checking host system type... " >&6; }
4028if ${ac_cv_host+:} false; then :
4029 $as_echo_n "(cached) " >&6
4030else
4031 if test "x$host_alias" = x; then
4032 ac_cv_host=$ac_cv_build
4033else
4034 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4035 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4036fi
4037
4038fi
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4040$as_echo "$ac_cv_host" >&6; }
4041case $ac_cv_host in
4042*-*-*) ;;
4043*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4044esac
4045host=$ac_cv_host
4046ac_save_IFS=$IFS; IFS='-'
4047set x $ac_cv_host
4048shift
4049host_cpu=$1
4050host_vendor=$2
4051shift; shift
4052# Remember, the first character of IFS is used to create $*,
4053# except with old shells:
4054host_os=$*
4055IFS=$ac_save_IFS
4056case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4057
4058
4059
4060case $host_cpu in
4061 i*86 | x86_64 )
4062
4063$as_echo "#define CPU_CISC 1" >>confdefs.h
4064
4065
4066$as_echo "#define HAVE_X86 1" >>confdefs.h
4067;;
4068 * )
4069 # CPU_RISC is only supported for big endian machines.
4070 if test "$ac_cv_c_bigendian" = "yes"; then
4071
4072$as_echo "#define CPU_RISC 1" >>confdefs.h
4073
4074 else
4075 $as_echo "#define CPU_CISC 1" >>confdefs.h
4076
4077 fi
4078 ;;
4079esac
4080
4081case $host_os in
4082 *cygwin*|*mingw* )
4083 EXE=.exe
4084 HOST_IS_WINDOWS=yes
4085 ;;
4086 * )
4087 EXE=""
4088 ;;
4089esac
4090 # define executable suffix; this is needed for `make clean'
4091
4092
4093# Check whether --enable-kernel-linux was given.
4094if test "${enable_kernel_linux+set}" = set; then :
4095 enableval=$enable_kernel_linux;
4096else
4097 enable_kernel_linux=no
4098fi
4099
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build for Linux kernel context" >&5
4101$as_echo_n "checking whether to build for Linux kernel context... " >&6; }
4102if test "$enable_kernel_linux" = "yes"; then
4103
4104$as_echo "#define SRTP_KERNEL 1" >>confdefs.h
4105
4106
4107$as_echo "#define SRTP_KERNEL_LINUX 1" >>confdefs.h
4108
4109fi
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_kernel_linux" >&5
4111$as_echo "$enable_kernel_linux" >&6; }
4112
4113if test "$cross_compiling" != yes -a "$HOST_IS_WINDOWS" != yes; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
4115$as_echo_n "checking for /dev/urandom... " >&6; }
4116if ${ac_cv_file__dev_urandom+:} false; then :
4117 $as_echo_n "(cached) " >&6
4118else
4119 test "$cross_compiling" = yes &&
4120 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4121if test -r "/dev/urandom"; then
4122 ac_cv_file__dev_urandom=yes
4123else
4124 ac_cv_file__dev_urandom=no
4125fi
4126fi
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
4128$as_echo "$ac_cv_file__dev_urandom" >&6; }
4129if test "x$ac_cv_file__dev_urandom" = xyes; then :
4130 DEV_URANDOM=/dev/urandom
4131else
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
4133$as_echo_n "checking for /dev/random... " >&6; }
4134if ${ac_cv_file__dev_random+:} false; then :
4135 $as_echo_n "(cached) " >&6
4136else
4137 test "$cross_compiling" = yes &&
4138 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4139if test -r "/dev/random"; then
4140 ac_cv_file__dev_random=yes
4141else
4142 ac_cv_file__dev_random=no
4143fi
4144fi
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
4146$as_echo "$ac_cv_file__dev_random" >&6; }
4147if test "x$ac_cv_file__dev_random" = xyes; then :
4148 DEV_URANDOM=/dev/random
4149fi
4150
4151fi
4152
4153fi
4154
4155
4156
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4158$as_echo_n "checking for ANSI C header files... " >&6; }
4159if ${ac_cv_header_stdc+:} false; then :
4160 $as_echo_n "(cached) " >&6
4161else
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163/* end confdefs.h. */
4164#include <stdlib.h>
4165#include <stdarg.h>
4166#include <string.h>
4167#include <float.h>
4168
4169int
4170main ()
4171{
4172
4173 ;
4174 return 0;
4175}
4176_ACEOF
4177if ac_fn_c_try_compile "$LINENO"; then :
4178 ac_cv_header_stdc=yes
4179else
4180 ac_cv_header_stdc=no
4181fi
4182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183
4184if test $ac_cv_header_stdc = yes; then
4185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187/* end confdefs.h. */
4188#include <string.h>
4189
4190_ACEOF
4191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4192 $EGREP "memchr" >/dev/null 2>&1; then :
4193
4194else
4195 ac_cv_header_stdc=no
4196fi
4197rm -f conftest*
4198
4199fi
4200
4201if test $ac_cv_header_stdc = yes; then
4202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204/* end confdefs.h. */
4205#include <stdlib.h>
4206
4207_ACEOF
4208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4209 $EGREP "free" >/dev/null 2>&1; then :
4210
4211else
4212 ac_cv_header_stdc=no
4213fi
4214rm -f conftest*
4215
4216fi
4217
4218if test $ac_cv_header_stdc = yes; then
4219 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4220 if test "$cross_compiling" = yes; then :
4221 :
4222else
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224/* end confdefs.h. */
4225#include <ctype.h>
4226#include <stdlib.h>
4227#if ((' ' & 0x0FF) == 0x020)
4228# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4229# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4230#else
4231# define ISLOWER(c) \
4232 (('a' <= (c) && (c) <= 'i') \
4233 || ('j' <= (c) && (c) <= 'r') \
4234 || ('s' <= (c) && (c) <= 'z'))
4235# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4236#endif
4237
4238#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4239int
4240main ()
4241{
4242 int i;
4243 for (i = 0; i < 256; i++)
4244 if (XOR (islower (i), ISLOWER (i))
4245 || toupper (i) != TOUPPER (i))
4246 return 2;
4247 return 0;
4248}
4249_ACEOF
4250if ac_fn_c_try_run "$LINENO"; then :
4251
4252else
4253 ac_cv_header_stdc=no
4254fi
4255rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4256 conftest.$ac_objext conftest.beam conftest.$ac_ext
4257fi
4258
4259fi
4260fi
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4262$as_echo "$ac_cv_header_stdc" >&6; }
4263if test $ac_cv_header_stdc = yes; then
4264
4265$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4266
4267fi
4268
4269for ac_header in stdlib.h
4270do :
4271 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4272if test "x$ac_cv_header_stdlib_h" = xyes; then :
4273 cat >>confdefs.h <<_ACEOF
4274#define HAVE_STDLIB_H 1
4275_ACEOF
4276
4277fi
4278
4279done
4280
4281for ac_header in unistd.h
4282do :
4283 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4284if test "x$ac_cv_header_unistd_h" = xyes; then :
4285 cat >>confdefs.h <<_ACEOF
4286#define HAVE_UNISTD_H 1
4287_ACEOF
4288
4289fi
4290
4291done
4292
4293for ac_header in byteswap.h
4294do :
4295 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
4296if test "x$ac_cv_header_byteswap_h" = xyes; then :
4297 cat >>confdefs.h <<_ACEOF
4298#define HAVE_BYTESWAP_H 1
4299_ACEOF
4300
4301fi
4302
4303done
4304
4305for ac_header in stdint.h
4306do :
4307 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4308if test "x$ac_cv_header_stdint_h" = xyes; then :
4309 cat >>confdefs.h <<_ACEOF
4310#define HAVE_STDINT_H 1
4311_ACEOF
4312
4313fi
4314
4315done
4316
4317for ac_header in sys/uio.h
4318do :
4319 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
4320if test "x$ac_cv_header_sys_uio_h" = xyes; then :
4321 cat >>confdefs.h <<_ACEOF
4322#define HAVE_SYS_UIO_H 1
4323_ACEOF
4324
4325fi
4326
4327done
4328
4329for ac_header in inttypes.h
4330do :
4331 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
4332if test "x$ac_cv_header_inttypes_h" = xyes; then :
4333 cat >>confdefs.h <<_ACEOF
4334#define HAVE_INTTYPES_H 1
4335_ACEOF
4336
4337fi
4338
4339done
4340
4341for ac_header in sys/types.h
4342do :
4343 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4344if test "x$ac_cv_header_sys_types_h" = xyes; then :
4345 cat >>confdefs.h <<_ACEOF
4346#define HAVE_SYS_TYPES_H 1
4347_ACEOF
4348
4349fi
4350
4351done
4352
4353for ac_header in machine/types.h
4354do :
4355 ac_fn_c_check_header_mongrel "$LINENO" "machine/types.h" "ac_cv_header_machine_types_h" "$ac_includes_default"
4356if test "x$ac_cv_header_machine_types_h" = xyes; then :
4357 cat >>confdefs.h <<_ACEOF
4358#define HAVE_MACHINE_TYPES_H 1
4359_ACEOF
4360
4361fi
4362
4363done
4364
4365for ac_header in sys/int_types.h
4366do :
4367 ac_fn_c_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default"
4368if test "x$ac_cv_header_sys_int_types_h" = xyes; then :
4369 cat >>confdefs.h <<_ACEOF
4370#define HAVE_SYS_INT_TYPES_H 1
4371_ACEOF
4372
4373fi
4374
4375done
4376
4377
4378for ac_header in sys/socket.h netinet/in.h arpa/inet.h
4379do :
4380 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4381ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4382if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4383 cat >>confdefs.h <<_ACEOF
4384#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4385_ACEOF
4386
4387fi
4388
4389done
4390
4391for ac_header in windows.h
4392do :
4393 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
4394if test "x$ac_cv_header_windows_h" = xyes; then :
4395 cat >>confdefs.h <<_ACEOF
4396#define HAVE_WINDOWS_H 1
4397_ACEOF
4398 for ac_header in winsock2.h
4399do :
4400 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4401if test "x$ac_cv_header_winsock2_h" = xyes; then :
4402 cat >>confdefs.h <<_ACEOF
4403#define HAVE_WINSOCK2_H 1
4404_ACEOF
4405
4406fi
4407
4408done
4409
4410fi
4411
4412done
4413
4414
4415for ac_header in syslog.h
4416do :
4417 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
4418if test "x$ac_cv_header_syslog_h" = xyes; then :
4419 cat >>confdefs.h <<_ACEOF
4420#define HAVE_SYSLOG_H 1
4421_ACEOF
4422
4423fi
4424
4425done
4426
4427
4428ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
4429if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004430
David McGrewfec49dd2005-09-23 19:34:11 +00004431cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004432#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004433_ACEOF
4434
4435
4436fi
jfigusa14b5a02013-03-29 12:24:12 -04004437ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4438if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004439
4440cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004441#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004442_ACEOF
4443
4444
4445fi
jfigusa14b5a02013-03-29 12:24:12 -04004446ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4447if test "x$ac_cv_type_int16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004448
4449cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004450#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004451_ACEOF
4452
4453
4454fi
jfigusa14b5a02013-03-29 12:24:12 -04004455ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4456if test "x$ac_cv_type_uint16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004457
4458cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004459#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004460_ACEOF
4461
4462
4463fi
jfigusa14b5a02013-03-29 12:24:12 -04004464ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
4465if test "x$ac_cv_type_int32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004466
4467cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004468#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004469_ACEOF
4470
4471
4472fi
jfigusa14b5a02013-03-29 12:24:12 -04004473ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4474if test "x$ac_cv_type_uint32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004475
4476cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004477#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004478_ACEOF
4479
4480
4481fi
jfigusa14b5a02013-03-29 12:24:12 -04004482ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4483if test "x$ac_cv_type_uint64_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004484
4485cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004486#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004487_ACEOF
4488
4489
4490fi
4491
jfigusa14b5a02013-03-29 12:24:12 -04004492# The cast to long int works around a bug in the HP C Compiler
4493# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4494# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4495# This bug is HP SR number 8606223364.
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4497$as_echo_n "checking size of unsigned long... " >&6; }
4498if ${ac_cv_sizeof_unsigned_long+:} false; then :
4499 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004500else
jfigusa14b5a02013-03-29 12:24:12 -04004501 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004502
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004503else
4504 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusa14b5a02013-03-29 12:24:12 -04004505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4507as_fn_error 77 "cannot compute sizeof (unsigned long)
4508See \`config.log' for more details" "$LINENO" 5; }
4509 else
4510 ac_cv_sizeof_unsigned_long=0
4511 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004512fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004513
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004514fi
jfigusa14b5a02013-03-29 12:24:12 -04004515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4516$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004517
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004518
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004519
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004520cat >>confdefs.h <<_ACEOF
4521#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
4522_ACEOF
4523
David McGrewfec49dd2005-09-23 19:34:11 +00004524
jfigusa14b5a02013-03-29 12:24:12 -04004525# The cast to long int works around a bug in the HP C Compiler
4526# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4527# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4528# This bug is HP SR number 8606223364.
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
4530$as_echo_n "checking size of unsigned long long... " >&6; }
4531if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
4532 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00004533else
jfigusa14b5a02013-03-29 12:24:12 -04004534 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004535
David McGrewfec49dd2005-09-23 19:34:11 +00004536else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004537 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusa14b5a02013-03-29 12:24:12 -04004538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4540as_fn_error 77 "cannot compute sizeof (unsigned long long)
4541See \`config.log' for more details" "$LINENO" 5; }
4542 else
4543 ac_cv_sizeof_unsigned_long_long=0
4544 fi
David McGrewfec49dd2005-09-23 19:34:11 +00004545fi
4546
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004547fi
jfigusa14b5a02013-03-29 12:24:12 -04004548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
4549$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004550
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004551
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004552
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004553cat >>confdefs.h <<_ACEOF
4554#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00004555_ACEOF
4556
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004557
Cullen Jennings235513a2005-09-21 22:51:36 +00004558
jfigusa14b5a02013-03-29 12:24:12 -04004559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4560$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4561if ${ac_cv_c_const+:} false; then :
4562 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004563else
jfigusa14b5a02013-03-29 12:24:12 -04004564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004565/* end confdefs.h. */
4566
4567int
4568main ()
4569{
jfigusa14b5a02013-03-29 12:24:12 -04004570
Cullen Jennings235513a2005-09-21 22:51:36 +00004571#ifndef __cplusplus
jfigusa14b5a02013-03-29 12:24:12 -04004572 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00004573 typedef int charset[2];
jfigusa14b5a02013-03-29 12:24:12 -04004574 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00004575 /* SunOS 4.1.1 cc rejects this. */
jfigusa14b5a02013-03-29 12:24:12 -04004576 char const *const *pcpcc;
4577 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00004578 /* NEC SVR4.0.2 mips cc rejects this. */
4579 struct point {int x, y;};
4580 static struct point const zero = {0,0};
4581 /* AIX XL C 1.02.0.0 rejects this.
4582 It does not let you subtract one const X* pointer from another in
4583 an arm of an if-expression whose if-part is not a constant
4584 expression */
4585 const char *g = "string";
jfigusa14b5a02013-03-29 12:24:12 -04004586 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00004587 /* HPUX 7.0 cc rejects these. */
jfigusa14b5a02013-03-29 12:24:12 -04004588 ++pcpcc;
4589 ppc = (char**) pcpcc;
4590 pcpcc = (char const *const *) ppc;
4591 { /* SCO 3.2v4 cc rejects this sort of thing. */
4592 char tx;
4593 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00004594 char const *s = 0 ? (char *) 0 : (char const *) 0;
4595
4596 *t++ = 0;
jfigusa14b5a02013-03-29 12:24:12 -04004597 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004598 }
4599 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4600 int x[] = {25, 17};
4601 const int *foo = &x[0];
4602 ++foo;
4603 }
4604 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4605 typedef const int *iptr;
4606 iptr p = 0;
4607 ++p;
4608 }
jfigusa14b5a02013-03-29 12:24:12 -04004609 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00004610 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusa14b5a02013-03-29 12:24:12 -04004611 struct s { int j; const int *ap[3]; } bx;
4612 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00004613 }
4614 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4615 const int foo = 10;
jfigusa14b5a02013-03-29 12:24:12 -04004616 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004617 }
jfigusa14b5a02013-03-29 12:24:12 -04004618 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00004619#endif
4620
4621 ;
4622 return 0;
4623}
4624_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04004625if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004626 ac_cv_c_const=yes
4627else
jfigusa14b5a02013-03-29 12:24:12 -04004628 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00004629fi
jfigusa14b5a02013-03-29 12:24:12 -04004630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004631fi
jfigusa14b5a02013-03-29 12:24:12 -04004632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4633$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004634if test $ac_cv_c_const = no; then
4635
jfigusa14b5a02013-03-29 12:24:12 -04004636$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004637
4638fi
4639
jfigusa14b5a02013-03-29 12:24:12 -04004640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4641$as_echo_n "checking for inline... " >&6; }
4642if ${ac_cv_c_inline+:} false; then :
4643 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004644else
4645 ac_cv_c_inline=no
4646for ac_kw in inline __inline__ __inline; do
jfigusa14b5a02013-03-29 12:24:12 -04004647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004648/* end confdefs.h. */
4649#ifndef __cplusplus
4650typedef int foo_t;
4651static $ac_kw foo_t static_foo () {return 0; }
4652$ac_kw foo_t foo () {return 0; }
4653#endif
4654
4655_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04004656if ac_fn_c_try_compile "$LINENO"; then :
4657 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00004658fi
jfigusa14b5a02013-03-29 12:24:12 -04004659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00004661done
4662
4663fi
jfigusa14b5a02013-03-29 12:24:12 -04004664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4665$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00004666
Cullen Jennings235513a2005-09-21 22:51:36 +00004667case $ac_cv_c_inline in
4668 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00004669 *)
4670 case $ac_cv_c_inline in
4671 no) ac_val=;;
4672 *) ac_val=$ac_cv_c_inline;;
4673 esac
4674 cat >>confdefs.h <<_ACEOF
4675#ifndef __cplusplus
4676#define inline $ac_val
4677#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00004678_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00004679 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00004680esac
4681
jfigusa14b5a02013-03-29 12:24:12 -04004682ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4683if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004684
Cullen Jennings235513a2005-09-21 22:51:36 +00004685else
4686
4687cat >>confdefs.h <<_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04004688#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00004689_ACEOF
4690
4691fi
4692
4693
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00004694for ac_func in socket inet_aton usleep sigaction
jfigusa14b5a02013-03-29 12:24:12 -04004695do :
4696 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4697ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4698if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004699 cat >>confdefs.h <<_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04004700#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00004701_ACEOF
4702
4703fi
4704done
4705
4706
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004707if test "x$ac_cv_func_socket" = "xno"; then
jfigusa14b5a02013-03-29 12:24:12 -04004708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4709$as_echo_n "checking for socket in -lsocket... " >&6; }
4710if ${ac_cv_lib_socket_socket+:} false; then :
4711 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00004712else
4713 ac_check_lib_save_LIBS=$LIBS
4714LIBS="-lsocket $LIBS"
jfigusa14b5a02013-03-29 12:24:12 -04004715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004716/* end confdefs.h. */
4717
jfigusa14b5a02013-03-29 12:24:12 -04004718/* Override any GCC internal prototype to avoid an error.
4719 Use char because int might match the return type of a GCC
4720 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00004721#ifdef __cplusplus
4722extern "C"
4723#endif
David McGrewb67061f2005-09-28 14:23:06 +00004724char socket ();
4725int
4726main ()
4727{
jfigusa14b5a02013-03-29 12:24:12 -04004728return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00004729 ;
4730 return 0;
4731}
4732_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04004733if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00004734 ac_cv_lib_socket_socket=yes
4735else
jfigusa14b5a02013-03-29 12:24:12 -04004736 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00004737fi
jfigusa14b5a02013-03-29 12:24:12 -04004738rm -f core conftest.err conftest.$ac_objext \
4739 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004740LIBS=$ac_check_lib_save_LIBS
4741fi
jfigusa14b5a02013-03-29 12:24:12 -04004742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4743$as_echo "$ac_cv_lib_socket_socket" >&6; }
4744if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00004745 cat >>confdefs.h <<_ACEOF
4746#define HAVE_LIBSOCKET 1
4747_ACEOF
4748
4749 LIBS="-lsocket $LIBS"
4750
4751fi
4752
jfigusa14b5a02013-03-29 12:24:12 -04004753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
4754$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004755 SAVELIBS="$LIBS"
4756 LIBS="$LIBS -lwsock32"
jfigusa14b5a02013-03-29 12:24:12 -04004757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004758/* end confdefs.h. */
4759
4760#include <winsock2.h>
4761
4762int
4763main ()
4764{
4765
4766socket(0, 0, 0);
4767
4768 ;
4769 return 0;
4770}
4771_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04004772if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004773 ac_cv_func_socket=yes
jfigusa14b5a02013-03-29 12:24:12 -04004774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4775$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004776else
jfigusa14b5a02013-03-29 12:24:12 -04004777 LIBS="$SAVELIBS"
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004780fi
jfigusa14b5a02013-03-29 12:24:12 -04004781rm -f core conftest.err conftest.$ac_objext \
4782 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004783fi
David McGrewb67061f2005-09-28 14:23:06 +00004784
jfigusa14b5a02013-03-29 12:24:12 -04004785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debugging" >&5
4786$as_echo_n "checking whether to compile in debugging... " >&6; }
4787# Check whether --enable-debug was given.
4788if test "${enable_debug+set}" = set; then :
4789 enableval=$enable_debug;
David McGrewb67061f2005-09-28 14:23:06 +00004790else
4791 enable_debug=yes
jfigusa14b5a02013-03-29 12:24:12 -04004792fi
4793
David McGrewb67061f2005-09-28 14:23:06 +00004794if test "$enable_debug" = "yes"; then
4795
jfigusa14b5a02013-03-29 12:24:12 -04004796$as_echo "#define ENABLE_DEBUGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004797
4798fi
jfigusa14b5a02013-03-29 12:24:12 -04004799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
4800$as_echo "$enable_debug" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004801
jfigusa14b5a02013-03-29 12:24:12 -04004802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ISMAcryp code" >&5
4803$as_echo_n "checking whether to use ISMAcryp code... " >&6; }
4804# Check whether --enable-generic-aesicm was given.
4805if test "${enable_generic_aesicm+set}" = set; then :
4806 enableval=$enable_generic_aesicm;
David McGrewb67061f2005-09-28 14:23:06 +00004807else
4808 enable_generic_aesicm=no
jfigusa14b5a02013-03-29 12:24:12 -04004809fi
4810
David McGrewb67061f2005-09-28 14:23:06 +00004811if test "$enable_generic_aesicm" = "yes"; then
4812
jfigusa14b5a02013-03-29 12:24:12 -04004813$as_echo "#define GENERIC_AESICM 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004814
4815fi
jfigusa14b5a02013-03-29 12:24:12 -04004816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generic_aesicm" >&5
4817$as_echo "$enable_generic_aesicm" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004818
jfigusa14b5a02013-03-29 12:24:12 -04004819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
4820$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
4821# Check whether --enable-openssl was given.
4822if test "${enable_openssl+set}" = set; then :
4823 enableval=$enable_openssl;
4824else
4825 enable_openssl=no
4826fi
Cullen Jennings235513a2005-09-21 22:51:36 +00004827
jfigusa14b5a02013-03-29 12:24:12 -04004828if test "$enable_openssl" = "yes"; then
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
4830$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
4831if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
4832 $as_echo_n "(cached) " >&6
4833else
4834 ac_check_lib_save_LIBS=$LIBS
4835LIBS="-lcrypto $LIBS"
4836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837/* end confdefs.h. */
4838
4839/* Override any GCC internal prototype to avoid an error.
4840 Use char because int might match the return type of a GCC
4841 builtin and then its argument prototype would still apply. */
4842#ifdef __cplusplus
4843extern "C"
4844#endif
4845char EVP_EncryptInit ();
4846int
4847main ()
4848{
4849return EVP_EncryptInit ();
4850 ;
4851 return 0;
4852}
4853_ACEOF
4854if ac_fn_c_try_link "$LINENO"; then :
4855 ac_cv_lib_crypto_EVP_EncryptInit=yes
4856else
4857 ac_cv_lib_crypto_EVP_EncryptInit=no
4858fi
4859rm -f core conftest.err conftest.$ac_objext \
4860 conftest$ac_exeext conftest.$ac_ext
4861LIBS=$ac_check_lib_save_LIBS
4862fi
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
4864$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
4865if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
4866 cat >>confdefs.h <<_ACEOF
4867#define HAVE_LIBCRYPTO 1
4868_ACEOF
4869
4870 LIBS="-lcrypto $LIBS"
4871
4872else
4873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4875as_fn_error $? "can't find openssl crypto lib
4876See \`config.log' for more details" "$LINENO" 5; }
4877fi
4878
4879
4880$as_echo "#define OPENSSL 1" >>confdefs.h
4881
4882 AES_ICM_OBJ=aes_icm_ossl.o
4883
4884 RNG_OBJS=rand_source_ossl.o
4885else
4886 AES_ICM_OBJ=aes_icm.o
4887
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random device to use" >&5
4889$as_echo_n "checking which random device to use... " >&6; }
4890 if test "$enable_kernel_linux" = "yes"; then
4891 RNG_OBJS=rand_linux_kernel.o
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux kernel builtin" >&5
4893$as_echo "Linux kernel builtin" >&6; }
4894 else
4895 RNG_OBJS=rand_source.o
4896 if test -n "$DEV_URANDOM"; then
4897
4898cat >>confdefs.h <<_ACEOF
4899#define DEV_URANDOM "$DEV_URANDOM"
4900_ACEOF
4901
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_URANDOM" >&5
4903$as_echo "$DEV_URANDOM" >&6; }
4904 else
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: standard rand() function..." >&5
4906$as_echo "standard rand() function..." >&6; }
4907 fi
4908 fi
4909 RNG_EXTRA_OBJS="crypto/rng/prng.o crypto/rng/ctr_prng.o"
4910fi
4911
4912
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
4914$as_echo "$enable_openssl" >&6; }
4915
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use syslog for error reporting" >&5
4917$as_echo_n "checking whether to use syslog for error reporting... " >&6; }
4918# Check whether --enable-syslog was given.
4919if test "${enable_syslog+set}" = set; then :
4920 enableval=$enable_syslog;
David McGrewb67061f2005-09-28 14:23:06 +00004921else
4922 enable_syslog=no
jfigusa14b5a02013-03-29 12:24:12 -04004923fi
4924
David McGrewb67061f2005-09-28 14:23:06 +00004925if test "$enable_syslog" = "yes"; then
4926
jfigusa14b5a02013-03-29 12:24:12 -04004927$as_echo "#define USE_SYSLOG 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004928
4929fi
jfigusa14b5a02013-03-29 12:24:12 -04004930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_syslog" >&5
4931$as_echo "$enable_syslog" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004932
jfigusa14b5a02013-03-29 12:24:12 -04004933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5
4934$as_echo_n "checking whether to use stdout for error reporting... " >&6; }
4935# Check whether --enable-stdout was given.
4936if test "${enable_stdout+set}" = set; then :
4937 enableval=$enable_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00004938else
4939 enable_stdout=yes
jfigusa14b5a02013-03-29 12:24:12 -04004940fi
4941
David McGrewb67061f2005-09-28 14:23:06 +00004942if test "$enable_stdout" = "yes"; then
4943
jfigusa14b5a02013-03-29 12:24:12 -04004944$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004945
4946fi
jfigusa14b5a02013-03-29 12:24:12 -04004947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5
4948$as_echo "$enable_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004949
jfigusa14b5a02013-03-29 12:24:12 -04004950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5
4951$as_echo_n "checking whether to use /dev/console for error reporting... " >&6; }
4952# Check whether --enable-console was given.
4953if test "${enable_console+set}" = set; then :
4954 enableval=$enable_console;
David McGrewb67061f2005-09-28 14:23:06 +00004955else
4956 enable_console=no
jfigusa14b5a02013-03-29 12:24:12 -04004957fi
4958
David McGrewb67061f2005-09-28 14:23:06 +00004959if test "$enable_console" = "yes"; then
4960
jfigusa14b5a02013-03-29 12:24:12 -04004961$as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h
David McGrewb67061f2005-09-28 14:23:06 +00004962
4963
jfigusa14b5a02013-03-29 12:24:12 -04004964$as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004965
4966fi
jfigusa14b5a02013-03-29 12:24:12 -04004967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5
4968$as_echo "$enable_console" >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00004969
jfigusa14b5a02013-03-29 12:24:12 -04004970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GDOI key management" >&5
4971$as_echo_n "checking whether to use GDOI key management... " >&6; }
4972# Check whether --enable-gdoi was given.
4973if test "${enable_gdoi+set}" = set; then :
4974 enableval=$enable_gdoi;
David McGrewb67061f2005-09-28 14:23:06 +00004975else
4976 enable_gdoi=no
jfigusa14b5a02013-03-29 12:24:12 -04004977fi
4978
David McGrewb67061f2005-09-28 14:23:06 +00004979if test "$enable_gdoi" = "yes"; then
4980
jfigusa14b5a02013-03-29 12:24:12 -04004981$as_echo "#define SRTP_GDOI 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004982
4983 GDOI_OBJS=gdoi/srtp+gdoi.o
4984
4985fi
jfigusa14b5a02013-03-29 12:24:12 -04004986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gdoi" >&5
4987$as_echo "$enable_gdoi" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004988
jfigusa14b5a02013-03-29 12:24:12 -04004989ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00004990
4991
jfigusa14b5a02013-03-29 12:24:12 -04004992ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile"
4993
Cullen Jennings235513a2005-09-21 22:51:36 +00004994cat >confcache <<\_ACEOF
4995# This file is a shell script that caches the results of configure
4996# tests run on this system so they can be shared between configure
4997# scripts and configure runs, see configure's option --config-cache.
4998# It is not useful on other systems. If it contains results you don't
4999# want to keep, you may remove or edit it.
5000#
5001# config.status only pays attention to the cache file if you give it
5002# the --recheck option to rerun configure.
5003#
5004# `ac_cv_env_foo' variables (set or unset) will be overridden when
5005# loading this file, other *unset* `ac_cv_foo' will be assigned the
5006# following values.
5007
5008_ACEOF
5009
5010# The following way of writing the cache mishandles newlines in values,
5011# but we know of no workaround that is simple, portable, and efficient.
jfigusa14b5a02013-03-29 12:24:12 -04005012# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00005013# Ultrix sh set writes to stderr and can't be redirected directly,
5014# and sets the high bit in the cache file unless we assign to the vars.
jfigusa14b5a02013-03-29 12:24:12 -04005015(
5016 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5017 eval ac_val=\$$ac_var
5018 case $ac_val in #(
5019 *${as_nl}*)
5020 case $ac_var in #(
5021 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5022$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5023 esac
5024 case $ac_var in #(
5025 _ | IFS | as_nl) ;; #(
5026 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5027 *) { eval $ac_var=; unset $ac_var;} ;;
5028 esac ;;
5029 esac
5030 done
5031
Cullen Jennings235513a2005-09-21 22:51:36 +00005032 (set) 2>&1 |
jfigusa14b5a02013-03-29 12:24:12 -04005033 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5034 *${as_nl}ac_space=\ *)
5035 # `set' does not quote correctly, so add quotes: double-quote
5036 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00005037 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00005038 "s/'/'\\\\''/g;
5039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusa14b5a02013-03-29 12:24:12 -04005040 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00005041 *)
5042 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusa14b5a02013-03-29 12:24:12 -04005043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00005044 ;;
jfigusa14b5a02013-03-29 12:24:12 -04005045 esac |
5046 sort
5047) |
Cullen Jennings235513a2005-09-21 22:51:36 +00005048 sed '
jfigusa14b5a02013-03-29 12:24:12 -04005049 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00005050 t clear
jfigusa14b5a02013-03-29 12:24:12 -04005051 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00005052 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5053 t end
jfigusa14b5a02013-03-29 12:24:12 -04005054 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5055 :end' >>confcache
5056if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5057 if test -w "$cache_file"; then
5058 if test "x$cache_file" != "x/dev/null"; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5060$as_echo "$as_me: updating cache $cache_file" >&6;}
5061 if test ! -f "$cache_file" || test -h "$cache_file"; then
5062 cat confcache >"$cache_file"
5063 else
5064 case $cache_file in #(
5065 */* | ?:*)
5066 mv -f confcache "$cache_file"$$ &&
5067 mv -f "$cache_file"$$ "$cache_file" ;; #(
5068 *)
5069 mv -f confcache "$cache_file" ;;
5070 esac
5071 fi
5072 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005073 else
jfigusa14b5a02013-03-29 12:24:12 -04005074 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5075$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00005076 fi
5077fi
5078rm -f confcache
5079
5080test "x$prefix" = xNONE && prefix=$ac_default_prefix
5081# Let make expand exec_prefix.
5082test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5083
Cullen Jennings235513a2005-09-21 22:51:36 +00005084DEFS=-DHAVE_CONFIG_H
5085
5086ac_libobjs=
5087ac_ltlibobjs=
jfigusa14b5a02013-03-29 12:24:12 -04005088U=
Cullen Jennings235513a2005-09-21 22:51:36 +00005089for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5090 # 1. Remove the extension, and $U if already installed.
jfigusa14b5a02013-03-29 12:24:12 -04005091 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5092 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5093 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5094 # will be set to the directory where LIBOBJS objects are built.
5095 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5096 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00005097done
5098LIBOBJS=$ac_libobjs
5099
5100LTLIBOBJS=$ac_ltlibobjs
5101
5102
5103
jfigusa14b5a02013-03-29 12:24:12 -04005104
5105: "${CONFIG_STATUS=./config.status}"
5106ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00005107ac_clean_files_save=$ac_clean_files
5108ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusa14b5a02013-03-29 12:24:12 -04005109{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5110$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5111as_write_fail=0
5112cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005113#! $SHELL
5114# Generated by $as_me.
5115# Run this file to recreate the current configuration.
5116# Compiler output produced by configure, useful for debugging
5117# configure, is in config.log if it exists.
5118
5119debug=false
5120ac_cs_recheck=false
5121ac_cs_silent=false
jfigusa14b5a02013-03-29 12:24:12 -04005122
Cullen Jennings235513a2005-09-21 22:51:36 +00005123SHELL=\${CONFIG_SHELL-$SHELL}
jfigusa14b5a02013-03-29 12:24:12 -04005124export SHELL
5125_ASEOF
5126cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5127## -------------------- ##
5128## M4sh Initialization. ##
5129## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00005130
jfigusa14b5a02013-03-29 12:24:12 -04005131# Be more Bourne compatible
5132DUALCASE=1; export DUALCASE # for MKS sh
5133if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005134 emulate sh
5135 NULLCMD=:
jfigusa14b5a02013-03-29 12:24:12 -04005136 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00005137 # is contrary to our usage. Disable this feature.
5138 alias -g '${1+"$@"}'='"$@"'
jfigusa14b5a02013-03-29 12:24:12 -04005139 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00005140else
jfigusa14b5a02013-03-29 12:24:12 -04005141 case `(set -o) 2>/dev/null` in #(
5142 *posix*) :
5143 set -o posix ;; #(
5144 *) :
5145 ;;
5146esac
Cullen Jennings235513a2005-09-21 22:51:36 +00005147fi
5148
5149
jfigusa14b5a02013-03-29 12:24:12 -04005150as_nl='
5151'
5152export as_nl
5153# Printing a long string crashes Solaris 7 /usr/bin/printf.
5154as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5155as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5156as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5157# Prefer a ksh shell builtin over an external printf program on Solaris,
5158# but without wasting forks for bash or zsh.
5159if test -z "$BASH_VERSION$ZSH_VERSION" \
5160 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5161 as_echo='print -r --'
5162 as_echo_n='print -rn --'
5163elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5164 as_echo='printf %s\n'
5165 as_echo_n='printf %s'
5166else
5167 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5168 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5169 as_echo_n='/usr/ucb/echo -n'
5170 else
5171 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5172 as_echo_n_body='eval
5173 arg=$1;
5174 case $arg in #(
5175 *"$as_nl"*)
5176 expr "X$arg" : "X\\(.*\\)$as_nl";
5177 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5178 esac;
5179 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5180 '
5181 export as_echo_n_body
5182 as_echo_n='sh -c $as_echo_n_body as_echo'
5183 fi
5184 export as_echo_body
5185 as_echo='sh -c $as_echo_body as_echo'
5186fi
5187
5188# The user is always right.
5189if test "${PATH_SEPARATOR+set}" != set; then
5190 PATH_SEPARATOR=:
5191 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5192 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5193 PATH_SEPARATOR=';'
5194 }
5195fi
5196
5197
5198# IFS
5199# We need space, tab and new line, in precisely that order. Quoting is
5200# there to prevent editors from complaining about space-tab.
5201# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5202# splitting by setting IFS to empty value.)
5203IFS=" "" $as_nl"
5204
5205# Find who we are. Look in the path if we contain no directory separator.
5206as_myself=
5207case $0 in #((
5208 *[\\/]* ) as_myself=$0 ;;
5209 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210for as_dir in $PATH
5211do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5215 done
5216IFS=$as_save_IFS
5217
5218 ;;
5219esac
5220# We did not find ourselves, most probably we were run as `sh COMMAND'
5221# in which case we are not to be found in the path.
5222if test "x$as_myself" = x; then
5223 as_myself=$0
5224fi
5225if test ! -f "$as_myself"; then
5226 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5227 exit 1
5228fi
5229
5230# Unset variables that we do not need and which cause bugs (e.g. in
5231# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5232# suppresses any "Segmentation fault" message there. '((' could
5233# trigger a bug in pdksh 5.2.14.
5234for as_var in BASH_ENV ENV MAIL MAILPATH
5235do eval test x\${$as_var+set} = xset \
5236 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5237done
Cullen Jennings235513a2005-09-21 22:51:36 +00005238PS1='$ '
5239PS2='> '
5240PS4='+ '
5241
5242# NLS nuisances.
jfigusa14b5a02013-03-29 12:24:12 -04005243LC_ALL=C
5244export LC_ALL
5245LANGUAGE=C
5246export LANGUAGE
Cullen Jennings235513a2005-09-21 22:51:36 +00005247
jfigusa14b5a02013-03-29 12:24:12 -04005248# CDPATH.
5249(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5250
5251
5252# as_fn_error STATUS ERROR [LINENO LOG_FD]
5253# ----------------------------------------
5254# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5255# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5256# script with STATUS, using 1 if that was 0.
5257as_fn_error ()
5258{
5259 as_status=$1; test $as_status -eq 0 && as_status=1
5260 if test "$4"; then
5261 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5262 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5263 fi
5264 $as_echo "$as_me: error: $2" >&2
5265 as_fn_exit $as_status
5266} # as_fn_error
5267
5268
5269# as_fn_set_status STATUS
5270# -----------------------
5271# Set $? to STATUS, without forking.
5272as_fn_set_status ()
5273{
5274 return $1
5275} # as_fn_set_status
5276
5277# as_fn_exit STATUS
5278# -----------------
5279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5280as_fn_exit ()
5281{
5282 set +e
5283 as_fn_set_status $1
5284 exit $1
5285} # as_fn_exit
5286
5287# as_fn_unset VAR
5288# ---------------
5289# Portably unset VAR.
5290as_fn_unset ()
5291{
5292 { eval $1=; unset $1;}
5293}
5294as_unset=as_fn_unset
5295# as_fn_append VAR VALUE
5296# ----------------------
5297# Append the text in VALUE to the end of the definition contained in VAR. Take
5298# advantage of any shell optimizations that allow amortized linear growth over
5299# repeated appends, instead of the typical quadratic growth present in naive
5300# implementations.
5301if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5302 eval 'as_fn_append ()
5303 {
5304 eval $1+=\$2
5305 }'
5306else
5307 as_fn_append ()
5308 {
5309 eval $1=\$$1\$2
5310 }
5311fi # as_fn_append
5312
5313# as_fn_arith ARG...
5314# ------------------
5315# Perform arithmetic evaluation on the ARGs, and store the result in the
5316# global $as_val. Take advantage of shells that can avoid forks. The arguments
5317# must be portable across $(()) and expr.
5318if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5319 eval 'as_fn_arith ()
5320 {
5321 as_val=$(( $* ))
5322 }'
5323else
5324 as_fn_arith ()
5325 {
5326 as_val=`expr "$@" || test $? -eq 1`
5327 }
5328fi # as_fn_arith
5329
5330
5331if expr a : '\(a\)' >/dev/null 2>&1 &&
5332 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005333 as_expr=expr
5334else
5335 as_expr=false
5336fi
5337
jfigusa14b5a02013-03-29 12:24:12 -04005338if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005339 as_basename=basename
5340else
5341 as_basename=false
5342fi
5343
jfigusa14b5a02013-03-29 12:24:12 -04005344if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5345 as_dirname=dirname
5346else
5347 as_dirname=false
5348fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005349
jfigusa14b5a02013-03-29 12:24:12 -04005350as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00005351$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5352 X"$0" : 'X\(//\)$' \| \
jfigusa14b5a02013-03-29 12:24:12 -04005353 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5354$as_echo X/"$0" |
5355 sed '/^.*\/\([^/][^/]*\)\/*$/{
5356 s//\1/
5357 q
5358 }
5359 /^X\/\(\/\/\)$/{
5360 s//\1/
5361 q
5362 }
5363 /^X\/\(\/\).*/{
5364 s//\1/
5365 q
5366 }
5367 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005368
Cullen Jennings235513a2005-09-21 22:51:36 +00005369# Avoid depending upon Character Ranges.
5370as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5371as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5372as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5373as_cr_digits='0123456789'
5374as_cr_alnum=$as_cr_Letters$as_cr_digits
5375
jfigusa14b5a02013-03-29 12:24:12 -04005376ECHO_C= ECHO_N= ECHO_T=
5377case `echo -n x` in #(((((
5378-n*)
5379 case `echo 'xy\c'` in
5380 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5381 xy) ECHO_C='\c';;
5382 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5383 ECHO_T=' ';;
5384 esac;;
5385*)
5386 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00005387esac
5388
Cullen Jennings235513a2005-09-21 22:51:36 +00005389rm -f conf$$ conf$$.exe conf$$.file
jfigusa14b5a02013-03-29 12:24:12 -04005390if test -d conf$$.dir; then
5391 rm -f conf$$.dir/conf$$.file
5392else
5393 rm -f conf$$.dir
5394 mkdir conf$$.dir 2>/dev/null
5395fi
5396if (echo >conf$$.file) 2>/dev/null; then
5397 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005398 as_ln_s='ln -s'
jfigusa14b5a02013-03-29 12:24:12 -04005399 # ... but there are two gotchas:
5400 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5401 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5402 # In both cases, we have to default to `cp -pR'.
5403 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5404 as_ln_s='cp -pR'
5405 elif ln conf$$.file conf$$ 2>/dev/null; then
5406 as_ln_s=ln
5407 else
5408 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005409 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005410else
jfigusa14b5a02013-03-29 12:24:12 -04005411 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005412fi
jfigusa14b5a02013-03-29 12:24:12 -04005413rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5414rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00005415
jfigusa14b5a02013-03-29 12:24:12 -04005416
5417# as_fn_mkdir_p
5418# -------------
5419# Create "$as_dir" as a directory, including parents if necessary.
5420as_fn_mkdir_p ()
5421{
5422
5423 case $as_dir in #(
5424 -*) as_dir=./$as_dir;;
5425 esac
5426 test -d "$as_dir" || eval $as_mkdir_p || {
5427 as_dirs=
5428 while :; do
5429 case $as_dir in #(
5430 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5431 *) as_qdir=$as_dir;;
5432 esac
5433 as_dirs="'$as_qdir' $as_dirs"
5434 as_dir=`$as_dirname -- "$as_dir" ||
5435$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5436 X"$as_dir" : 'X\(//\)[^/]' \| \
5437 X"$as_dir" : 'X\(//\)$' \| \
5438 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5439$as_echo X"$as_dir" |
5440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5441 s//\1/
5442 q
5443 }
5444 /^X\(\/\/\)[^/].*/{
5445 s//\1/
5446 q
5447 }
5448 /^X\(\/\/\)$/{
5449 s//\1/
5450 q
5451 }
5452 /^X\(\/\).*/{
5453 s//\1/
5454 q
5455 }
5456 s/.*/./; q'`
5457 test -d "$as_dir" && break
5458 done
5459 test -z "$as_dirs" || eval "mkdir $as_dirs"
5460 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5461
5462
5463} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005464if mkdir -p . 2>/dev/null; then
jfigusa14b5a02013-03-29 12:24:12 -04005465 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00005466else
David McGrewfec49dd2005-09-23 19:34:11 +00005467 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00005468 as_mkdir_p=false
5469fi
5470
jfigusa14b5a02013-03-29 12:24:12 -04005471
5472# as_fn_executable_p FILE
5473# -----------------------
5474# Test if FILE is an executable regular file.
5475as_fn_executable_p ()
5476{
5477 test -f "$1" && test -x "$1"
5478} # as_fn_executable_p
5479as_test_x='test -x'
5480as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005481
5482# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00005483as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005484
5485# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00005486as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005487
5488
Cullen Jennings235513a2005-09-21 22:51:36 +00005489exec 6>&1
jfigusa14b5a02013-03-29 12:24:12 -04005490## ----------------------------------- ##
5491## Main body of $CONFIG_STATUS script. ##
5492## ----------------------------------- ##
5493_ASEOF
5494test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005495
jfigusa14b5a02013-03-29 12:24:12 -04005496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5497# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00005498# report actual input values of CONFIG_FILES etc. instead of their
jfigusa14b5a02013-03-29 12:24:12 -04005499# values after options handling.
5500ac_log="
Cullen Jennings235513a2005-09-21 22:51:36 +00005501This file was extended by $as_me, which was
jfigusa14b5a02013-03-29 12:24:12 -04005502generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00005503
5504 CONFIG_FILES = $CONFIG_FILES
5505 CONFIG_HEADERS = $CONFIG_HEADERS
5506 CONFIG_LINKS = $CONFIG_LINKS
5507 CONFIG_COMMANDS = $CONFIG_COMMANDS
5508 $ $0 $@
5509
jfigusa14b5a02013-03-29 12:24:12 -04005510on `(hostname || uname -n) 2>/dev/null | sed 1q`
5511"
5512
Cullen Jennings235513a2005-09-21 22:51:36 +00005513_ACEOF
5514
jfigusa14b5a02013-03-29 12:24:12 -04005515case $ac_config_files in *"
5516"*) set x $ac_config_files; shift; ac_config_files=$*;;
5517esac
5518
5519case $ac_config_headers in *"
5520"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5521esac
5522
5523
5524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005525# Files that config.status was made for.
jfigusa14b5a02013-03-29 12:24:12 -04005526config_files="$ac_config_files"
5527config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00005528
jfigusa14b5a02013-03-29 12:24:12 -04005529_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005530
jfigusa14b5a02013-03-29 12:24:12 -04005531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005532ac_cs_usage="\
jfigusa14b5a02013-03-29 12:24:12 -04005533\`$as_me' instantiates files and other configuration actions
5534from templates according to the current configuration. Unless the files
5535and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00005536
jfigusa14b5a02013-03-29 12:24:12 -04005537Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00005538
5539 -h, --help print this help, then exit
jfigusa14b5a02013-03-29 12:24:12 -04005540 -V, --version print version number and configuration settings, then exit
5541 --config print configuration, then exit
5542 -q, --quiet, --silent
5543 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00005544 -d, --debug don't remove temporary files
5545 --recheck update $as_me by reconfiguring in the same conditions
jfigusa14b5a02013-03-29 12:24:12 -04005546 --file=FILE[:TEMPLATE]
5547 instantiate the configuration file FILE
5548 --header=FILE[:TEMPLATE]
5549 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00005550
5551Configuration files:
5552$config_files
5553
5554Configuration headers:
5555$config_headers
5556
jfigusa14b5a02013-03-29 12:24:12 -04005557Report bugs to the package provider."
Cullen Jennings235513a2005-09-21 22:51:36 +00005558
jfigusa14b5a02013-03-29 12:24:12 -04005559_ACEOF
5560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5561ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00005562ac_cs_version="\\
5563config.status
jfigusa14b5a02013-03-29 12:24:12 -04005564configured by $0, generated by GNU Autoconf 2.69,
5565 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00005566
jfigusa14b5a02013-03-29 12:24:12 -04005567Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00005568This config.status script is free software; the Free Software Foundation
5569gives unlimited permission to copy, distribute and modify it."
jfigusa14b5a02013-03-29 12:24:12 -04005570
5571ac_pwd='$ac_pwd'
5572srcdir='$srcdir'
5573INSTALL='$INSTALL'
5574test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00005575_ACEOF
5576
jfigusa14b5a02013-03-29 12:24:12 -04005577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5578# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00005579ac_need_defaults=:
5580while test $# != 0
5581do
5582 case $1 in
jfigusa14b5a02013-03-29 12:24:12 -04005583 --*=?*)
5584 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5585 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005586 ac_shift=:
5587 ;;
jfigusa14b5a02013-03-29 12:24:12 -04005588 --*=)
5589 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5590 ac_optarg=
5591 ac_shift=:
5592 ;;
5593 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00005594 ac_option=$1
5595 ac_optarg=$2
5596 ac_shift=shift
5597 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005598 esac
5599
5600 case $ac_option in
5601 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00005602 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5603 ac_cs_recheck=: ;;
jfigusa14b5a02013-03-29 12:24:12 -04005604 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5605 $as_echo "$ac_cs_version"; exit ;;
5606 --config | --confi | --conf | --con | --co | --c )
5607 $as_echo "$ac_cs_config"; exit ;;
5608 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00005609 debug=: ;;
5610 --file | --fil | --fi | --f )
5611 $ac_shift
jfigusa14b5a02013-03-29 12:24:12 -04005612 case $ac_optarg in
5613 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5614 '') as_fn_error $? "missing file argument" ;;
5615 esac
5616 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005617 ac_need_defaults=false;;
5618 --header | --heade | --head | --hea )
5619 $ac_shift
jfigusa14b5a02013-03-29 12:24:12 -04005620 case $ac_optarg in
5621 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5622 esac
5623 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005624 ac_need_defaults=false;;
jfigusa14b5a02013-03-29 12:24:12 -04005625 --he | --h)
5626 # Conflict between --help and --header
5627 as_fn_error $? "ambiguous option: \`$1'
5628Try \`$0 --help' for more information.";;
5629 --help | --hel | -h )
5630 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5632 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5633 ac_cs_silent=: ;;
5634
5635 # This is an error.
jfigusa14b5a02013-03-29 12:24:12 -04005636 -*) as_fn_error $? "unrecognized option: \`$1'
5637Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005638
jfigusa14b5a02013-03-29 12:24:12 -04005639 *) as_fn_append ac_config_targets " $1"
5640 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005641
5642 esac
5643 shift
5644done
5645
5646ac_configure_extra_args=
5647
5648if $ac_cs_silent; then
5649 exec 6>/dev/null
5650 ac_configure_extra_args="$ac_configure_extra_args --silent"
5651fi
5652
5653_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04005654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005655if \$ac_cs_recheck; then
jfigusa14b5a02013-03-29 12:24:12 -04005656 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5657 shift
5658 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5659 CONFIG_SHELL='$SHELL'
5660 export CONFIG_SHELL
5661 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00005662fi
5663
5664_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04005665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5666exec 5>>config.log
5667{
5668 echo
5669 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5670## Running $as_me. ##
5671_ASBOX
5672 $as_echo "$ac_log"
5673} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00005674
jfigusa14b5a02013-03-29 12:24:12 -04005675_ACEOF
5676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5677_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005678
jfigusa14b5a02013-03-29 12:24:12 -04005679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005680
jfigusa14b5a02013-03-29 12:24:12 -04005681# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00005682for ac_config_target in $ac_config_targets
5683do
jfigusa14b5a02013-03-29 12:24:12 -04005684 case $ac_config_target in
5685 "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
5686 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5687 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
5688 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5689
5690 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005691 esac
5692done
5693
jfigusa14b5a02013-03-29 12:24:12 -04005694
Cullen Jennings235513a2005-09-21 22:51:36 +00005695# If the user did not use the arguments to specify the items to instantiate,
5696# then the envvar interface is used. Set only those that are not.
5697# We use the long form for the default assignment because of an extremely
5698# bizarre bug on SunOS 4.1.3.
5699if $ac_need_defaults; then
5700 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5701 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5702fi
5703
5704# Have a temporary directory for convenience. Make it in the build tree
jfigusa14b5a02013-03-29 12:24:12 -04005705# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00005706# creating and moving files from /tmp can sometimes cause problems.
jfigusa14b5a02013-03-29 12:24:12 -04005707# Hook for its removal unless debugging.
5708# Note that there is a small window in which the directory will not be cleaned:
5709# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00005710$debug ||
5711{
jfigusa14b5a02013-03-29 12:24:12 -04005712 tmp= ac_tmp=
5713 trap 'exit_status=$?
5714 : "${ac_tmp:=$tmp}"
5715 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5716' 0
5717 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00005718}
Cullen Jennings235513a2005-09-21 22:51:36 +00005719# Create a (secure) tmp directory for tmp files.
5720
5721{
jfigusa14b5a02013-03-29 12:24:12 -04005722 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5723 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00005724} ||
5725{
jfigusa14b5a02013-03-29 12:24:12 -04005726 tmp=./conf$$-$RANDOM
5727 (umask 077 && mkdir "$tmp")
5728} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5729ac_tmp=$tmp
5730
5731# Set up the scripts for CONFIG_FILES section.
5732# No need to generate them if there are no CONFIG_FILES.
5733# This happens for instance with `./config.status config.h'.
5734if test -n "$CONFIG_FILES"; then
5735
5736
5737ac_cr=`echo X | tr X '\015'`
5738# On cygwin, bash can eat \r inside `` if the user requested igncr.
5739# But we know of no other shell where ac_cr would be empty at this
5740# point, so we can use a bashism as a fallback.
5741if test "x$ac_cr" = x; then
5742 eval ac_cr=\$\'\\r\'
5743fi
5744ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5745if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5746 ac_cs_awk_cr='\\r'
5747else
5748 ac_cs_awk_cr=$ac_cr
5749fi
5750
5751echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5752_ACEOF
5753
5754
Cullen Jennings235513a2005-09-21 22:51:36 +00005755{
jfigusa14b5a02013-03-29 12:24:12 -04005756 echo "cat >conf$$subs.awk <<_ACEOF" &&
5757 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5758 echo "_ACEOF"
5759} >conf$$subs.sh ||
5760 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5761ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5762ac_delim='%!_!# '
5763for ac_last_try in false false false false false :; do
5764 . ./conf$$subs.sh ||
5765 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5766
5767 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5768 if test $ac_delim_n = $ac_delim_num; then
5769 break
5770 elif $ac_last_try; then
5771 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5772 else
5773 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5774 fi
5775done
5776rm -f conf$$subs.sh
5777
5778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5779cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5780_ACEOF
5781sed -n '
5782h
5783s/^/S["/; s/!.*/"]=/
5784p
5785g
5786s/^[^!]*!//
5787:repl
5788t repl
5789s/'"$ac_delim"'$//
5790t delim
5791:nl
5792h
5793s/\(.\{148\}\)..*/\1/
5794t more1
5795s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5796p
5797n
5798b repl
5799:more1
5800s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5801p
5802g
5803s/.\{148\}//
5804t nl
5805:delim
5806h
5807s/\(.\{148\}\)..*/\1/
5808t more2
5809s/["\\]/\\&/g; s/^/"/; s/$/"/
5810p
5811b
5812:more2
5813s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5814p
5815g
5816s/.\{148\}//
5817t delim
5818' <conf$$subs.awk | sed '
5819/^[^""]/{
5820 N
5821 s/\n//
5822}
5823' >>$CONFIG_STATUS || ac_write_fail=1
5824rm -f conf$$subs.awk
5825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5826_ACAWK
5827cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5828 for (key in S) S_is_set[key] = 1
5829 FS = ""
5830
5831}
5832{
5833 line = $ 0
5834 nfields = split(line, field, "@")
5835 substed = 0
5836 len = length(field[1])
5837 for (i = 2; i < nfields; i++) {
5838 key = field[i]
5839 keylen = length(key)
5840 if (S_is_set[key]) {
5841 value = S[key]
5842 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5843 len += length(value) + length(field[++i])
5844 substed = 1
5845 } else
5846 len += 1 + keylen
5847 }
5848
5849 print line
Cullen Jennings235513a2005-09-21 22:51:36 +00005850}
5851
jfigusa14b5a02013-03-29 12:24:12 -04005852_ACAWK
5853_ACEOF
5854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5855if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5856 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5857else
5858 cat
5859fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5860 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00005861_ACEOF
5862
jfigusa14b5a02013-03-29 12:24:12 -04005863# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5864# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5865# trailing colons and then remove the whole line if VPATH becomes empty
5866# (actually we leave an empty line to preserve line numbers).
5867if test "x$srcdir" = x.; then
5868 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5869h
5870s///
5871s/^/:/
5872s/[ ]*$/:/
5873s/:\$(srcdir):/:/g
5874s/:\${srcdir}:/:/g
5875s/:@srcdir@:/:/g
5876s/^:*//
5877s/:*$//
5878x
5879s/\(=[ ]*\).*/\1/
5880G
5881s/\n//
5882s/^[^=]*=[ ]*$//
5883}'
5884fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005885
jfigusa14b5a02013-03-29 12:24:12 -04005886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005887fi # test -n "$CONFIG_FILES"
5888
jfigusa14b5a02013-03-29 12:24:12 -04005889# Set up the scripts for CONFIG_HEADERS section.
5890# No need to generate them if there are no CONFIG_HEADERS.
5891# This happens for instance with `./config.status Makefile'.
5892if test -n "$CONFIG_HEADERS"; then
5893cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5894BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00005895_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04005896
5897# Transform confdefs.h into an awk script `defines.awk', embedded as
5898# here-document in config.status, that substitutes the proper values into
5899# config.h.in to produce config.h.
5900
5901# Create a delimiter string that does not exist in confdefs.h, to ease
5902# handling of long lines.
5903ac_delim='%!_!# '
5904for ac_last_try in false false :; do
5905 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5906 if test -z "$ac_tt"; then
5907 break
5908 elif $ac_last_try; then
5909 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5910 else
5911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5912 fi
5913done
5914
5915# For the awk script, D is an array of macro values keyed by name,
5916# likewise P contains macro parameters if any. Preserve backslash
5917# newline sequences.
5918
5919ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5920sed -n '
5921s/.\{148\}/&'"$ac_delim"'/g
5922t rset
5923:rset
5924s/^[ ]*#[ ]*define[ ][ ]*/ /
5925t def
5926d
5927:def
5928s/\\$//
5929t bsnl
5930s/["\\]/\\&/g
5931s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5932D["\1"]=" \3"/p
5933s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5934d
5935:bsnl
5936s/["\\]/\\&/g
5937s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5938D["\1"]=" \3\\\\\\n"\\/p
5939t cont
5940s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5941t cont
5942d
5943:cont
5944n
5945s/.\{148\}/&'"$ac_delim"'/g
5946t clear
5947:clear
5948s/\\$//
5949t bsnlc
5950s/["\\]/\\&/g; s/^/"/; s/$/"/p
5951d
5952:bsnlc
5953s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5954b cont
5955' <confdefs.h | sed '
5956s/'"$ac_delim"'/"\\\
5957"/g' >>$CONFIG_STATUS || ac_write_fail=1
5958
5959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5960 for (key in D) D_is_set[key] = 1
5961 FS = ""
5962}
5963/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5964 line = \$ 0
5965 split(line, arg, " ")
5966 if (arg[1] == "#") {
5967 defundef = arg[2]
5968 mac1 = arg[3]
5969 } else {
5970 defundef = substr(arg[1], 2)
5971 mac1 = arg[2]
5972 }
5973 split(mac1, mac2, "(") #)
5974 macro = mac2[1]
5975 prefix = substr(line, 1, index(line, defundef) - 1)
5976 if (D_is_set[macro]) {
5977 # Preserve the white space surrounding the "#".
5978 print prefix "define", macro P[macro] D[macro]
5979 next
5980 } else {
5981 # Replace #undef with comments. This is necessary, for example,
5982 # in the case of _POSIX_SOURCE, which is predefined and required
5983 # on some systems where configure will not decide to define it.
5984 if (defundef == "undef") {
5985 print "/*", prefix defundef, macro, "*/"
5986 next
5987 }
5988 }
5989}
5990{ print }
5991_ACAWK
5992_ACEOF
5993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5994 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5995fi # test -n "$CONFIG_HEADERS"
5996
5997
5998eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5999shift
6000for ac_tag
6001do
6002 case $ac_tag in
6003 :[FHLC]) ac_mode=$ac_tag; continue;;
6004 esac
6005 case $ac_mode$ac_tag in
6006 :[FHL]*:*);;
6007 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6008 :[FH]-) ac_tag=-:-;;
6009 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6010 esac
6011 ac_save_IFS=$IFS
6012 IFS=:
6013 set x $ac_tag
6014 IFS=$ac_save_IFS
6015 shift
6016 ac_file=$1
6017 shift
6018
6019 case $ac_mode in
6020 :L) ac_source=$1;;
6021 :[FH])
6022 ac_file_inputs=
6023 for ac_f
6024 do
6025 case $ac_f in
6026 -) ac_f="$ac_tmp/stdin";;
6027 *) # Look for the file first in the build tree, then in the source tree
6028 # (if the path is not absolute). The absolute path cannot be DOS-style,
6029 # because $ac_f cannot contain `:'.
6030 test -f "$ac_f" ||
6031 case $ac_f in
6032 [\\/$]*) false;;
6033 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6034 esac ||
6035 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6036 esac
6037 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6038 as_fn_append ac_file_inputs " '$ac_f'"
6039 done
6040
6041 # Let's still pretend it is `configure' which instantiates (i.e., don't
6042 # use $as_me), people would be surprised to read:
6043 # /* config.h. Generated by config.status. */
6044 configure_input='Generated from '`
6045 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6046 `' by configure.'
6047 if test x"$ac_file" != x-; then
6048 configure_input="$ac_file. $configure_input"
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6050$as_echo "$as_me: creating $ac_file" >&6;}
6051 fi
6052 # Neutralize special characters interpreted by sed in replacement strings.
6053 case $configure_input in #(
6054 *\&* | *\|* | *\\* )
6055 ac_sed_conf_input=`$as_echo "$configure_input" |
6056 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6057 *) ac_sed_conf_input=$configure_input;;
6058 esac
6059
6060 case $ac_tag in
6061 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6062 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6063 esac
6064 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006065 esac
6066
jfigusa14b5a02013-03-29 12:24:12 -04006067 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006068$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006069 X"$ac_file" : 'X\(//\)[^/]' \| \
6070 X"$ac_file" : 'X\(//\)$' \| \
jfigusa14b5a02013-03-29 12:24:12 -04006071 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6072$as_echo X"$ac_file" |
6073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6074 s//\1/
6075 q
6076 }
6077 /^X\(\/\/\)[^/].*/{
6078 s//\1/
6079 q
6080 }
6081 /^X\(\/\/\)$/{
6082 s//\1/
6083 q
6084 }
6085 /^X\(\/\).*/{
6086 s//\1/
6087 q
6088 }
6089 s/.*/./; q'`
6090 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006091 ac_builddir=.
6092
jfigusa14b5a02013-03-29 12:24:12 -04006093case "$ac_dir" in
6094.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6095*)
6096 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6097 # A ".." for each directory in $ac_dir_suffix.
6098 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6099 case $ac_top_builddir_sub in
6100 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6101 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6102 esac ;;
6103esac
6104ac_abs_top_builddir=$ac_pwd
6105ac_abs_builddir=$ac_pwd$ac_dir_suffix
6106# for backward compatibility:
6107ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00006108
6109case $srcdir in
jfigusa14b5a02013-03-29 12:24:12 -04006110 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00006111 ac_srcdir=.
jfigusa14b5a02013-03-29 12:24:12 -04006112 ac_top_srcdir=$ac_top_builddir_sub
6113 ac_abs_top_srcdir=$ac_pwd ;;
6114 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00006115 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusa14b5a02013-03-29 12:24:12 -04006116 ac_top_srcdir=$srcdir
6117 ac_abs_top_srcdir=$srcdir ;;
6118 *) # Relative name.
6119 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6120 ac_top_srcdir=$ac_top_build_prefix$srcdir
6121 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006122esac
jfigusa14b5a02013-03-29 12:24:12 -04006123ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00006124
Cullen Jennings235513a2005-09-21 22:51:36 +00006125
jfigusa14b5a02013-03-29 12:24:12 -04006126 case $ac_mode in
6127 :F)
6128 #
6129 # CONFIG_FILE
6130 #
Cullen Jennings235513a2005-09-21 22:51:36 +00006131
David McGrewb67061f2005-09-28 14:23:06 +00006132 case $INSTALL in
6133 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusa14b5a02013-03-29 12:24:12 -04006134 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00006135 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00006136_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04006137
6138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6139# If the template does not know about datarootdir, expand it.
6140# FIXME: This hack should be removed a few years after 2.60.
6141ac_datarootdir_hack=; ac_datarootdir_seen=
6142ac_sed_dataroot='
6143/datarootdir/ {
6144 p
6145 q
6146}
6147/@datadir@/p
6148/@docdir@/p
6149/@infodir@/p
6150/@localedir@/p
6151/@mandir@/p'
6152case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6153*datarootdir*) ac_datarootdir_seen=yes;;
6154*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6156$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6157_ACEOF
6158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6159 ac_datarootdir_hack='
6160 s&@datadir@&$datadir&g
6161 s&@docdir@&$docdir&g
6162 s&@infodir@&$infodir&g
6163 s&@localedir@&$localedir&g
6164 s&@mandir@&$mandir&g
6165 s&\\\${datarootdir}&$datarootdir&g' ;;
6166esac
6167_ACEOF
6168
6169# Neutralize VPATH when `$srcdir' = `.'.
6170# Shell code in configure.ac might set extrasub.
6171# FIXME: do we really want to maintain this feature?
6172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6173ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00006174$extrasub
6175_ACEOF
jfigusa14b5a02013-03-29 12:24:12 -04006176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006177:t
6178/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusa14b5a02013-03-29 12:24:12 -04006179s|@configure_input@|$ac_sed_conf_input|;t t
6180s&@top_builddir@&$ac_top_builddir_sub&;t t
6181s&@top_build_prefix@&$ac_top_build_prefix&;t t
6182s&@srcdir@&$ac_srcdir&;t t
6183s&@abs_srcdir@&$ac_abs_srcdir&;t t
6184s&@top_srcdir@&$ac_top_srcdir&;t t
6185s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6186s&@builddir@&$ac_builddir&;t t
6187s&@abs_builddir@&$ac_abs_builddir&;t t
6188s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6189s&@INSTALL@&$ac_INSTALL&;t t
6190$ac_datarootdir_hack
6191"
6192eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6193 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00006194
jfigusa14b5a02013-03-29 12:24:12 -04006195test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6196 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6197 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6198 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6200which seems to be undefined. Please make sure it is defined" >&5
6201$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6202which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006203
jfigusa14b5a02013-03-29 12:24:12 -04006204 rm -f "$ac_tmp/stdin"
Cullen Jennings235513a2005-09-21 22:51:36 +00006205 case $ac_file in
jfigusa14b5a02013-03-29 12:24:12 -04006206 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6207 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6208 esac \
6209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6210 ;;
6211 :H)
6212 #
6213 # CONFIG_HEADER
6214 #
Cullen Jennings235513a2005-09-21 22:51:36 +00006215 if test x"$ac_file" != x-; then
jfigusa14b5a02013-03-29 12:24:12 -04006216 {
6217 $as_echo "/* $configure_input */" \
6218 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6219 } >"$ac_tmp/config.h" \
6220 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6221 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6223$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006224 else
jfigusa14b5a02013-03-29 12:24:12 -04006225 rm -f "$ac_file"
6226 mv "$ac_tmp/config.h" "$ac_file" \
6227 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00006228 fi
6229 else
jfigusa14b5a02013-03-29 12:24:12 -04006230 $as_echo "/* $configure_input */" \
6231 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6232 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00006233 fi
jfigusa14b5a02013-03-29 12:24:12 -04006234 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006235
Cullen Jennings235513a2005-09-21 22:51:36 +00006236
jfigusa14b5a02013-03-29 12:24:12 -04006237 esac
6238
6239done # for ac_tag
6240
6241
6242as_fn_exit 0
Cullen Jennings235513a2005-09-21 22:51:36 +00006243_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006244ac_clean_files=$ac_clean_files_save
6245
jfigusa14b5a02013-03-29 12:24:12 -04006246test $ac_write_fail = 0 ||
6247 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6248
Cullen Jennings235513a2005-09-21 22:51:36 +00006249
6250# configure is writing to config.log, and then calls config.status.
6251# config.status does its own redirection, appending to config.log.
6252# Unfortunately, on DOS this fails, as config.log is still kept open
6253# by configure, so config.status won't be able to write to it; its
6254# output is simply discarded. So we exec the FD to /dev/null,
6255# effectively closing config.log, so it can be properly (re)opened and
6256# appended to by config.status. When coming back to configure, we
6257# need to make the FD available again.
6258if test "$no_create" != yes; then
6259 ac_cs_success=:
6260 ac_config_status_args=
6261 test "$silent" = yes &&
6262 ac_config_status_args="$ac_config_status_args --quiet"
6263 exec 5>/dev/null
6264 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6265 exec 5>>config.log
6266 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6267 # would make configure fail if this is the last instruction.
jfigusa14b5a02013-03-29 12:24:12 -04006268 $ac_cs_success || as_fn_exit 1
6269fi
6270if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6272$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006273fi
6274
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00006275
6276# This is needed when building outside the source dir.
jfigusa14b5a02013-03-29 12:24:12 -04006277as_dir=crypto/ae_xfm; as_fn_mkdir_p
6278as_dir=crypto/cipher; as_fn_mkdir_p
6279as_dir=crypto/hash; as_fn_mkdir_p
6280as_dir=crypto/kernel; as_fn_mkdir_p
6281as_dir=crypto/math; as_fn_mkdir_p
6282as_dir=crypto/replay; as_fn_mkdir_p
6283as_dir=crypto/rng; as_fn_mkdir_p
6284as_dir=crypto/test; as_fn_mkdir_p
6285as_dir=doc; as_fn_mkdir_p
6286as_dir=srtp; as_fn_mkdir_p
6287as_dir=tables; as_fn_mkdir_p
6288as_dir=test; as_fn_mkdir_p