blob: b37bc4f3eb8f2c3418d9698fa34ac446c38c5b53 [file] [log] [blame]
Cullen Jennings235513a2005-09-21 22:51:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
jfigusb058a3b2014-10-31 09:27:18 -04003# Generated by GNU Autoconf 2.69 for libsrtp 2.0.0-pre.
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02004#
5# Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00006#
jfigusc7e66e32013-05-08 11:32:55 -04007#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
Cullen Jennings235513a2005-09-21 22:51:36 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
jfigusc7e66e32013-05-08 11:32:55 -040013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +000016
jfigusc7e66e32013-05-08 11:32:55 -040017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +000020 emulate sh
21 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -040022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -040025 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +000026else
jfigusc7e66e32013-05-08 11:32:55 -040027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
Cullen Jennings235513a2005-09-21 22:51:36 +000033fi
34
35
jfigusc7e66e32013-05-08 11:32:55 -040036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
Cullen Jennings235513a2005-09-21 22:51:36 +0000124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -0400129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -0400133
jfigusc7e66e32013-05-08 11:32:55 -0400134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://github.com/cisco/libsrtp/issues about your
271$0: system, including any error possibly output before this
jfigusc7e66e32013-05-08 11:32:55 -0400272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000424 as_expr=expr
425else
426 as_expr=false
427fi
428
jfigusc7e66e32013-05-08 11:32:55 -0400429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000430 as_basename=basename
431else
432 as_basename=false
433fi
434
jfigusc7e66e32013-05-08 11:32:55 -0400435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
Cullen Jennings235513a2005-09-21 22:51:36 +0000440
jfigusc7e66e32013-05-08 11:32:55 -0400441as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +0000442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -0400444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000459
Cullen Jennings235513a2005-09-21 22:51:36 +0000460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
Cullen Jennings235513a2005-09-21 22:51:36 +0000467
jfigusc7e66e32013-05-08 11:32:55 -0400468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
Cullen Jennings235513a2005-09-21 22:51:36 +0000477 sed '
jfigusc7e66e32013-05-08 11:32:55 -0400478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
Cullen Jennings235513a2005-09-21 22:51:36 +0000482 N
jfigusc7e66e32013-05-08 11:32:55 -0400483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Cullen Jennings235513a2005-09-21 22:51:36 +0000485 t loop
jfigusc7e66e32013-05-08 11:32:55 -0400486 s/-\n.*//
Cullen Jennings235513a2005-09-21 22:51:36 +0000487 ' >$as_me.lineno &&
jfigusc7e66e32013-05-08 11:32:55 -0400488 chmod +x "$as_me.lineno" ||
489 { $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 +0000490
jfigusc7e66e32013-05-08 11:32:55 -0400491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
Cullen Jennings235513a2005-09-21 22:51:36 +0000495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
jfigusc7e66e32013-05-08 11:32:55 -0400497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
Cullen Jennings235513a2005-09-21 22:51:36 +0000499 # Exit status is that of the last command.
500 exit
501}
502
jfigusc7e66e32013-05-08 11:32:55 -0400503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512*)
513 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000514esac
515
Cullen Jennings235513a2005-09-21 22:51:36 +0000516rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -0400517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -0600525 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -0400526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +0000536 fi
Cullen Jennings235513a2005-09-21 22:51:36 +0000537else
jfigusc7e66e32013-05-08 11:32:55 -0400538 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +0000539fi
jfigusc7e66e32013-05-08 11:32:55 -0400540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +0000542
543if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -0400544 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +0000545else
David McGrewfec49dd2005-09-23 19:34:11 +0000546 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +0000547 as_mkdir_p=false
548fi
549
jfigusc7e66e32013-05-08 11:32:55 -0400550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +0000552
553# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +0000554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000555
556# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +0000557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000558
559
jfigusc7e66e32013-05-08 11:32:55 -0400560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
Cullen Jennings235513a2005-09-21 22:51:36 +0000562
563# Name of the host.
jfigusc7e66e32013-05-08 11:32:55 -0400564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Cullen Jennings235513a2005-09-21 22:51:36 +0000565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
Cullen Jennings235513a2005-09-21 22:51:36 +0000568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
jfigusc7e66e32013-05-08 11:32:55 -0400572ac_clean_files=
Cullen Jennings235513a2005-09-21 22:51:36 +0000573ac_config_libobj_dir=.
jfigusc7e66e32013-05-08 11:32:55 -0400574LIBOBJS=
Cullen Jennings235513a2005-09-21 22:51:36 +0000575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
Cullen Jennings235513a2005-09-21 22:51:36 +0000579
580# Identity of this package.
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200581PACKAGE_NAME='libsrtp'
582PACKAGE_TARNAME='libsrtp'
jfigusb058a3b2014-10-31 09:27:18 -0400583PACKAGE_VERSION='2.0.0-pre'
584PACKAGE_STRING='libsrtp 2.0.0-pre'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200585PACKAGE_BUGREPORT='https://github.com/cisco/libsrtp/issues'
586PACKAGE_URL=''
Cullen Jennings235513a2005-09-21 22:51:36 +0000587
Cullen Jennings235513a2005-09-21 22:51:36 +0000588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -0400591#ifdef HAVE_SYS_TYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000592# include <sys/types.h>
593#endif
jfigusc7e66e32013-05-08 11:32:55 -0400594#ifdef HAVE_SYS_STAT_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000595# include <sys/stat.h>
596#endif
jfigusc7e66e32013-05-08 11:32:55 -0400597#ifdef STDC_HEADERS
Cullen Jennings235513a2005-09-21 22:51:36 +0000598# include <stdlib.h>
599# include <stddef.h>
600#else
jfigusc7e66e32013-05-08 11:32:55 -0400601# ifdef HAVE_STDLIB_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000602# include <stdlib.h>
603# endif
604#endif
jfigusc7e66e32013-05-08 11:32:55 -0400605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000607# include <memory.h>
608# endif
609# include <string.h>
610#endif
jfigusc7e66e32013-05-08 11:32:55 -0400611#ifdef HAVE_STRINGS_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000612# include <strings.h>
613#endif
jfigusc7e66e32013-05-08 11:32:55 -0400614#ifdef HAVE_INTTYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000615# include <inttypes.h>
Cullen Jennings235513a2005-09-21 22:51:36 +0000616#endif
jfigusc7e66e32013-05-08 11:32:55 -0400617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000621# include <unistd.h>
622#endif"
623
jfigusc7e66e32013-05-08 11:32:55 -0400624ac_subst_vars='LTLIBOBJS
625LIBOBJS
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200626HAVE_PKG_CONFIG
627PKG_CONFIG
Bernardo Torresb3c51422014-10-14 12:40:09 -0300628HAVE_PCAP
jfigusc7e66e32013-05-08 11:32:55 -0400629HMAC_OBJS
jfigusc7e66e32013-05-08 11:32:55 -0400630RNG_OBJS
631AES_ICM_OBJS
632USE_OPENSSL
633EXE
634host_os
635host_vendor
636host_cpu
637host
638build_os
639build_vendor
640build_cpu
641build
642EGREP
643GREP
644CPP
645INSTALL_DATA
646INSTALL_SCRIPT
647INSTALL_PROGRAM
648OBJEXT
649EXEEXT
650ac_ct_CC
651CPPFLAGS
652LDFLAGS
653CFLAGS
654CC
655RANLIB
656target_alias
657host_alias
658build_alias
659LIBS
660ECHO_T
661ECHO_N
662ECHO_C
663DEFS
664mandir
665localedir
666libdir
667psdir
668pdfdir
669dvidir
670htmldir
671infodir
672docdir
673oldincludedir
674includedir
675localstatedir
676sharedstatedir
677sysconfdir
678datadir
679datarootdir
680libexecdir
681sbindir
682bindir
683program_transform_name
684prefix
685exec_prefix
686PACKAGE_URL
687PACKAGE_BUGREPORT
688PACKAGE_STRING
689PACKAGE_VERSION
690PACKAGE_TARNAME
691PACKAGE_NAME
692PATH_SEPARATOR
693SHELL'
Cullen Jennings235513a2005-09-21 22:51:36 +0000694ac_subst_files=''
jfigusc7e66e32013-05-08 11:32:55 -0400695ac_user_opts='
696enable_option_checking
697enable_kernel_linux
698enable_debug
699enable_generic_aesicm
700enable_openssl
jfigusc7e66e32013-05-08 11:32:55 -0400701enable_stdout
702enable_console
jfigusc7e66e32013-05-08 11:32:55 -0400703'
704 ac_precious_vars='build_alias
705host_alias
706target_alias
707CC
708CFLAGS
709LDFLAGS
710LIBS
711CPPFLAGS
712CPP'
713
Cullen Jennings235513a2005-09-21 22:51:36 +0000714
715# Initialize some variables set by options.
716ac_init_help=
717ac_init_version=false
jfigusc7e66e32013-05-08 11:32:55 -0400718ac_unrecognized_opts=
719ac_unrecognized_sep=
Cullen Jennings235513a2005-09-21 22:51:36 +0000720# The variables have the same names as the options, with
721# dashes changed to underlines.
722cache_file=/dev/null
723exec_prefix=NONE
724no_create=
725no_recursion=
726prefix=NONE
727program_prefix=NONE
728program_suffix=NONE
729program_transform_name=s,x,x,
730silent=
731site=
732srcdir=
733verbose=
734x_includes=NONE
735x_libraries=NONE
736
737# Installation directory options.
738# These are left unexpanded so users can "make install exec_prefix=/foo"
739# and all the variables that are supposed to be based on exec_prefix
740# by default will actually change.
741# Use braces instead of parens because sh, perl, etc. also accept them.
jfigusc7e66e32013-05-08 11:32:55 -0400742# (The list follows the same order as the GNU Coding Standards.)
Cullen Jennings235513a2005-09-21 22:51:36 +0000743bindir='${exec_prefix}/bin'
744sbindir='${exec_prefix}/sbin'
745libexecdir='${exec_prefix}/libexec'
jfigusc7e66e32013-05-08 11:32:55 -0400746datarootdir='${prefix}/share'
747datadir='${datarootdir}'
Cullen Jennings235513a2005-09-21 22:51:36 +0000748sysconfdir='${prefix}/etc'
749sharedstatedir='${prefix}/com'
750localstatedir='${prefix}/var'
Cullen Jennings235513a2005-09-21 22:51:36 +0000751includedir='${prefix}/include'
752oldincludedir='/usr/include'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200753docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
jfigusc7e66e32013-05-08 11:32:55 -0400754infodir='${datarootdir}/info'
755htmldir='${docdir}'
756dvidir='${docdir}'
757pdfdir='${docdir}'
758psdir='${docdir}'
759libdir='${exec_prefix}/lib'
760localedir='${datarootdir}/locale'
761mandir='${datarootdir}/man'
Cullen Jennings235513a2005-09-21 22:51:36 +0000762
763ac_prev=
jfigusc7e66e32013-05-08 11:32:55 -0400764ac_dashdash=
Cullen Jennings235513a2005-09-21 22:51:36 +0000765for ac_option
766do
767 # If the previous option needs an argument, assign it.
768 if test -n "$ac_prev"; then
jfigusc7e66e32013-05-08 11:32:55 -0400769 eval $ac_prev=\$ac_option
Cullen Jennings235513a2005-09-21 22:51:36 +0000770 ac_prev=
771 continue
772 fi
773
jfigusc7e66e32013-05-08 11:32:55 -0400774 case $ac_option in
775 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
776 *=) ac_optarg= ;;
777 *) ac_optarg=yes ;;
778 esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000779
780 # Accept the important Cygnus configure options, so we can diagnose typos.
781
jfigusc7e66e32013-05-08 11:32:55 -0400782 case $ac_dashdash$ac_option in
783 --)
784 ac_dashdash=yes ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000785
786 -bindir | --bindir | --bindi | --bind | --bin | --bi)
787 ac_prev=bindir ;;
788 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
789 bindir=$ac_optarg ;;
790
791 -build | --build | --buil | --bui | --bu)
792 ac_prev=build_alias ;;
793 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
794 build_alias=$ac_optarg ;;
795
796 -cache-file | --cache-file | --cache-fil | --cache-fi \
797 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
798 ac_prev=cache_file ;;
799 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
800 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
801 cache_file=$ac_optarg ;;
802
803 --config-cache | -C)
804 cache_file=config.cache ;;
805
jfigusc7e66e32013-05-08 11:32:55 -0400806 -datadir | --datadir | --datadi | --datad)
Cullen Jennings235513a2005-09-21 22:51:36 +0000807 ac_prev=datadir ;;
jfigusc7e66e32013-05-08 11:32:55 -0400808 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000809 datadir=$ac_optarg ;;
810
jfigusc7e66e32013-05-08 11:32:55 -0400811 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
812 | --dataroo | --dataro | --datar)
813 ac_prev=datarootdir ;;
814 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
815 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
816 datarootdir=$ac_optarg ;;
817
Cullen Jennings235513a2005-09-21 22:51:36 +0000818 -disable-* | --disable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400819 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000820 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400821 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
822 as_fn_error $? "invalid feature name: $ac_useropt"
823 ac_useropt_orig=$ac_useropt
824 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
825 case $ac_user_opts in
826 *"
827"enable_$ac_useropt"
828"*) ;;
829 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
830 ac_unrecognized_sep=', ';;
831 esac
832 eval enable_$ac_useropt=no ;;
833
834 -docdir | --docdir | --docdi | --doc | --do)
835 ac_prev=docdir ;;
836 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
837 docdir=$ac_optarg ;;
838
839 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
840 ac_prev=dvidir ;;
841 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
842 dvidir=$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000843
844 -enable-* | --enable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400845 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000846 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400847 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
848 as_fn_error $? "invalid feature name: $ac_useropt"
849 ac_useropt_orig=$ac_useropt
850 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
851 case $ac_user_opts in
852 *"
853"enable_$ac_useropt"
854"*) ;;
855 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
856 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000857 esac
jfigusc7e66e32013-05-08 11:32:55 -0400858 eval enable_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000859
860 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
861 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
862 | --exec | --exe | --ex)
863 ac_prev=exec_prefix ;;
864 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
865 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
866 | --exec=* | --exe=* | --ex=*)
867 exec_prefix=$ac_optarg ;;
868
869 -gas | --gas | --ga | --g)
870 # Obsolete; use --with-gas.
871 with_gas=yes ;;
872
873 -help | --help | --hel | --he | -h)
874 ac_init_help=long ;;
875 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
876 ac_init_help=recursive ;;
877 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
878 ac_init_help=short ;;
879
880 -host | --host | --hos | --ho)
881 ac_prev=host_alias ;;
882 -host=* | --host=* | --hos=* | --ho=*)
883 host_alias=$ac_optarg ;;
884
jfigusc7e66e32013-05-08 11:32:55 -0400885 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
886 ac_prev=htmldir ;;
887 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
888 | --ht=*)
889 htmldir=$ac_optarg ;;
890
Cullen Jennings235513a2005-09-21 22:51:36 +0000891 -includedir | --includedir | --includedi | --included | --include \
892 | --includ | --inclu | --incl | --inc)
893 ac_prev=includedir ;;
894 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
895 | --includ=* | --inclu=* | --incl=* | --inc=*)
896 includedir=$ac_optarg ;;
897
898 -infodir | --infodir | --infodi | --infod | --info | --inf)
899 ac_prev=infodir ;;
900 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
901 infodir=$ac_optarg ;;
902
903 -libdir | --libdir | --libdi | --libd)
904 ac_prev=libdir ;;
905 -libdir=* | --libdir=* | --libdi=* | --libd=*)
906 libdir=$ac_optarg ;;
907
908 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
909 | --libexe | --libex | --libe)
910 ac_prev=libexecdir ;;
911 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
912 | --libexe=* | --libex=* | --libe=*)
913 libexecdir=$ac_optarg ;;
914
jfigusc7e66e32013-05-08 11:32:55 -0400915 -localedir | --localedir | --localedi | --localed | --locale)
916 ac_prev=localedir ;;
917 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
918 localedir=$ac_optarg ;;
919
Cullen Jennings235513a2005-09-21 22:51:36 +0000920 -localstatedir | --localstatedir | --localstatedi | --localstated \
jfigusc7e66e32013-05-08 11:32:55 -0400921 | --localstate | --localstat | --localsta | --localst | --locals)
Cullen Jennings235513a2005-09-21 22:51:36 +0000922 ac_prev=localstatedir ;;
923 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
jfigusc7e66e32013-05-08 11:32:55 -0400924 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000925 localstatedir=$ac_optarg ;;
926
927 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
928 ac_prev=mandir ;;
929 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
930 mandir=$ac_optarg ;;
931
932 -nfp | --nfp | --nf)
933 # Obsolete; use --without-fp.
934 with_fp=no ;;
935
936 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
937 | --no-cr | --no-c | -n)
938 no_create=yes ;;
939
940 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
941 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
942 no_recursion=yes ;;
943
944 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
945 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
946 | --oldin | --oldi | --old | --ol | --o)
947 ac_prev=oldincludedir ;;
948 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
949 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
950 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
951 oldincludedir=$ac_optarg ;;
952
953 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
954 ac_prev=prefix ;;
955 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
956 prefix=$ac_optarg ;;
957
958 -program-prefix | --program-prefix | --program-prefi | --program-pref \
959 | --program-pre | --program-pr | --program-p)
960 ac_prev=program_prefix ;;
961 -program-prefix=* | --program-prefix=* | --program-prefi=* \
962 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
963 program_prefix=$ac_optarg ;;
964
965 -program-suffix | --program-suffix | --program-suffi | --program-suff \
966 | --program-suf | --program-su | --program-s)
967 ac_prev=program_suffix ;;
968 -program-suffix=* | --program-suffix=* | --program-suffi=* \
969 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
970 program_suffix=$ac_optarg ;;
971
972 -program-transform-name | --program-transform-name \
973 | --program-transform-nam | --program-transform-na \
974 | --program-transform-n | --program-transform- \
975 | --program-transform | --program-transfor \
976 | --program-transfo | --program-transf \
977 | --program-trans | --program-tran \
978 | --progr-tra | --program-tr | --program-t)
979 ac_prev=program_transform_name ;;
980 -program-transform-name=* | --program-transform-name=* \
981 | --program-transform-nam=* | --program-transform-na=* \
982 | --program-transform-n=* | --program-transform-=* \
983 | --program-transform=* | --program-transfor=* \
984 | --program-transfo=* | --program-transf=* \
985 | --program-trans=* | --program-tran=* \
986 | --progr-tra=* | --program-tr=* | --program-t=*)
987 program_transform_name=$ac_optarg ;;
988
jfigusc7e66e32013-05-08 11:32:55 -0400989 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
990 ac_prev=pdfdir ;;
991 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
992 pdfdir=$ac_optarg ;;
993
994 -psdir | --psdir | --psdi | --psd | --ps)
995 ac_prev=psdir ;;
996 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
997 psdir=$ac_optarg ;;
998
Cullen Jennings235513a2005-09-21 22:51:36 +0000999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1000 | -silent | --silent | --silen | --sile | --sil)
1001 silent=yes ;;
1002
1003 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1004 ac_prev=sbindir ;;
1005 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1006 | --sbi=* | --sb=*)
1007 sbindir=$ac_optarg ;;
1008
1009 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1010 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1011 | --sharedst | --shareds | --shared | --share | --shar \
1012 | --sha | --sh)
1013 ac_prev=sharedstatedir ;;
1014 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1015 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1016 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1017 | --sha=* | --sh=*)
1018 sharedstatedir=$ac_optarg ;;
1019
1020 -site | --site | --sit)
1021 ac_prev=site ;;
1022 -site=* | --site=* | --sit=*)
1023 site=$ac_optarg ;;
1024
1025 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1026 ac_prev=srcdir ;;
1027 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1028 srcdir=$ac_optarg ;;
1029
1030 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1031 | --syscon | --sysco | --sysc | --sys | --sy)
1032 ac_prev=sysconfdir ;;
1033 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1034 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1035 sysconfdir=$ac_optarg ;;
1036
1037 -target | --target | --targe | --targ | --tar | --ta | --t)
1038 ac_prev=target_alias ;;
1039 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1040 target_alias=$ac_optarg ;;
1041
1042 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1043 verbose=yes ;;
1044
1045 -version | --version | --versio | --versi | --vers | -V)
1046 ac_init_version=: ;;
1047
1048 -with-* | --with-*)
jfigusc7e66e32013-05-08 11:32:55 -04001049 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001050 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052 as_fn_error $? "invalid package name: $ac_useropt"
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1056 *"
1057"with_$ac_useropt"
1058"*) ;;
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +00001061 esac
jfigusc7e66e32013-05-08 11:32:55 -04001062 eval with_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001063
1064 -without-* | --without-*)
jfigusc7e66e32013-05-08 11:32:55 -04001065 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001066 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 as_fn_error $? "invalid package name: $ac_useropt"
1069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1072 *"
1073"with_$ac_useropt"
1074"*) ;;
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1077 esac
1078 eval with_$ac_useropt=no ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001079
1080 --x)
1081 # Obsolete; use --with-x.
1082 with_x=yes ;;
1083
1084 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1085 | --x-incl | --x-inc | --x-in | --x-i)
1086 ac_prev=x_includes ;;
1087 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1088 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1089 x_includes=$ac_optarg ;;
1090
1091 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1092 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1093 ac_prev=x_libraries ;;
1094 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1095 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1096 x_libraries=$ac_optarg ;;
1097
jfigusc7e66e32013-05-08 11:32:55 -04001098 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1099Try \`$0 --help' for more information"
Cullen Jennings235513a2005-09-21 22:51:36 +00001100 ;;
1101
1102 *=*)
1103 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001105 case $ac_envvar in #(
1106 '' | [0-9]* | *[!_$as_cr_alnum]* )
1107 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1108 esac
1109 eval $ac_envvar=\$ac_optarg
Cullen Jennings235513a2005-09-21 22:51:36 +00001110 export $ac_envvar ;;
1111
1112 *)
1113 # FIXME: should be removed in autoconf 3.0.
jfigusc7e66e32013-05-08 11:32:55 -04001114 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Cullen Jennings235513a2005-09-21 22:51:36 +00001115 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jfigusc7e66e32013-05-08 11:32:55 -04001116 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1117 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Cullen Jennings235513a2005-09-21 22:51:36 +00001118 ;;
1119
1120 esac
1121done
1122
1123if test -n "$ac_prev"; then
1124 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jfigusc7e66e32013-05-08 11:32:55 -04001125 as_fn_error $? "missing argument to $ac_option"
Cullen Jennings235513a2005-09-21 22:51:36 +00001126fi
1127
jfigusc7e66e32013-05-08 11:32:55 -04001128if test -n "$ac_unrecognized_opts"; then
1129 case $enable_option_checking in
1130 no) ;;
1131 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1132 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001133 esac
jfigusc7e66e32013-05-08 11:32:55 -04001134fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001135
jfigusc7e66e32013-05-08 11:32:55 -04001136# Check all directory arguments for consistency.
1137for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1138 datadir sysconfdir sharedstatedir localstatedir includedir \
1139 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1140 libdir localedir mandir
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001141do
jfigusc7e66e32013-05-08 11:32:55 -04001142 eval ac_val=\$$ac_var
1143 # Remove trailing slashes.
jfigusa14b5a02013-03-29 12:24:12 -04001144 case $ac_val in
jfigusc7e66e32013-05-08 11:32:55 -04001145 */ )
1146 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1147 eval $ac_var=\$ac_val;;
jfigusa14b5a02013-03-29 12:24:12 -04001148 esac
jfigusc7e66e32013-05-08 11:32:55 -04001149 # Be sure to have absolute directory names.
1150 case $ac_val in
1151 [\\/$]* | ?:[\\/]* ) continue;;
1152 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1153 esac
1154 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Cullen Jennings235513a2005-09-21 22:51:36 +00001155done
1156
1157# There might be people who depend on the old broken behavior: `$host'
1158# used to hold the argument of --host etc.
1159# FIXME: To remove some day.
1160build=$build_alias
1161host=$host_alias
1162target=$target_alias
1163
1164# FIXME: To remove some day.
1165if test "x$host_alias" != x; then
1166 if test "x$build_alias" = x; then
1167 cross_compiling=maybe
Cullen Jennings235513a2005-09-21 22:51:36 +00001168 elif test "x$build_alias" != "x$host_alias"; then
1169 cross_compiling=yes
1170 fi
1171fi
1172
1173ac_tool_prefix=
1174test -n "$host_alias" && ac_tool_prefix=$host_alias-
1175
1176test "$silent" = yes && exec 6>/dev/null
1177
1178
jfigusc7e66e32013-05-08 11:32:55 -04001179ac_pwd=`pwd` && test -n "$ac_pwd" &&
1180ac_ls_di=`ls -di .` &&
1181ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1182 as_fn_error $? "working directory cannot be determined"
1183test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1184 as_fn_error $? "pwd does not report name of working directory"
1185
1186
Cullen Jennings235513a2005-09-21 22:51:36 +00001187# Find the source files, if location was not specified.
1188if test -z "$srcdir"; then
1189 ac_srcdir_defaulted=yes
jfigusc7e66e32013-05-08 11:32:55 -04001190 # Try the directory containing this script, then the parent directory.
1191 ac_confdir=`$as_dirname -- "$as_myself" ||
1192$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1193 X"$as_myself" : 'X\(//\)[^/]' \| \
1194 X"$as_myself" : 'X\(//\)$' \| \
1195 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1196$as_echo X"$as_myself" |
1197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1198 s//\1/
1199 q
1200 }
1201 /^X\(\/\/\)[^/].*/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\/\)$/{
1206 s//\1/
1207 q
1208 }
1209 /^X\(\/\).*/{
1210 s//\1/
1211 q
1212 }
1213 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001214 srcdir=$ac_confdir
jfigusc7e66e32013-05-08 11:32:55 -04001215 if test ! -r "$srcdir/$ac_unique_file"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00001216 srcdir=..
1217 fi
1218else
1219 ac_srcdir_defaulted=no
1220fi
jfigusc7e66e32013-05-08 11:32:55 -04001221if test ! -r "$srcdir/$ac_unique_file"; then
1222 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1223 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Cullen Jennings235513a2005-09-21 22:51:36 +00001224fi
jfigusc7e66e32013-05-08 11:32:55 -04001225ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1226ac_abs_confdir=`(
1227 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1228 pwd)`
1229# When building in place, set srcdir=.
1230if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 srcdir=.
1232fi
1233# Remove unnecessary trailing slashes from srcdir.
1234# Double slashes in file names in object file debugging info
1235# mess up M-x gdb in Emacs.
1236case $srcdir in
1237*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1238esac
1239for ac_var in $ac_precious_vars; do
1240 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_env_${ac_var}_value=\$${ac_var}
1242 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1244done
Cullen Jennings235513a2005-09-21 22:51:36 +00001245
1246#
1247# Report the --help message.
1248#
1249if test "$ac_init_help" = "long"; then
1250 # Omit some internal or obsolete options to make the list less imposing.
1251 # This message is too long to be a string in the A/UX 3.1 sh.
1252 cat <<_ACEOF
jfigusb058a3b2014-10-31 09:27:18 -04001253\`configure' configures libsrtp 2.0.0-pre to adapt to many kinds of systems.
Cullen Jennings235513a2005-09-21 22:51:36 +00001254
1255Usage: $0 [OPTION]... [VAR=VALUE]...
1256
1257To assign environment variables (e.g., CC, CFLAGS...), specify them as
1258VAR=VALUE. See below for descriptions of some of the useful variables.
1259
1260Defaults for the options are specified in brackets.
1261
1262Configuration:
1263 -h, --help display this help and exit
1264 --help=short display options specific to this package
1265 --help=recursive display the short help of all the included packages
1266 -V, --version display version information and exit
jfigusc7e66e32013-05-08 11:32:55 -04001267 -q, --quiet, --silent do not print \`checking ...' messages
Cullen Jennings235513a2005-09-21 22:51:36 +00001268 --cache-file=FILE cache test results in FILE [disabled]
1269 -C, --config-cache alias for \`--cache-file=config.cache'
1270 -n, --no-create do not create output files
1271 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1272
Cullen Jennings235513a2005-09-21 22:51:36 +00001273Installation directories:
1274 --prefix=PREFIX install architecture-independent files in PREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001275 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +00001276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001277 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +00001278
1279By default, \`make install' will install all the files in
1280\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1281an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1282for instance \`--prefix=\$HOME'.
1283
1284For better control, use the options below.
1285
1286Fine tuning of the installation directories:
jfigusc7e66e32013-05-08 11:32:55 -04001287 --bindir=DIR user executables [EPREFIX/bin]
1288 --sbindir=DIR system admin executables [EPREFIX/sbin]
1289 --libexecdir=DIR program executables [EPREFIX/libexec]
1290 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1291 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1292 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1293 --libdir=DIR object code libraries [EPREFIX/lib]
1294 --includedir=DIR C header files [PREFIX/include]
1295 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1296 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1297 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1298 --infodir=DIR info documentation [DATAROOTDIR/info]
1299 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1300 --mandir=DIR man documentation [DATAROOTDIR/man]
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001301 --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp]
jfigusc7e66e32013-05-08 11:32:55 -04001302 --htmldir=DIR html documentation [DOCDIR]
1303 --dvidir=DIR dvi documentation [DOCDIR]
1304 --pdfdir=DIR pdf documentation [DOCDIR]
1305 --psdir=DIR ps documentation [DOCDIR]
Cullen Jennings235513a2005-09-21 22:51:36 +00001306_ACEOF
1307
1308 cat <<\_ACEOF
1309
1310System types:
1311 --build=BUILD configure for building on BUILD [guessed]
1312 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1313_ACEOF
1314fi
1315
1316if test -n "$ac_init_help"; then
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001317 case $ac_init_help in
jfigusb058a3b2014-10-31 09:27:18 -04001318 short | recursive ) echo "Configuration of libsrtp 2.0.0-pre:";;
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001319 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00001320 cat <<\_ACEOF
1321
1322Optional Features:
jfigusc7e66e32013-05-08 11:32:55 -04001323 --disable-option-checking ignore unrecognized --enable/--with options
Cullen Jennings235513a2005-09-21 22:51:36 +00001324 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1325 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Marcus Sundberg64536cc2005-10-03 15:23:13 +00001326 --enable-kernel-linux build library to run in Linux kernel context
David McGrewb67061f2005-09-28 14:23:06 +00001327 --disable-debug do not compile in dynamic debugging system
1328 --enable-generic-aesicm compile in changes for ISMAcryp
jfigusc7e66e32013-05-08 11:32:55 -04001329 --enable-openssl compile in OpenSSL crypto engine
jfigus97a80f42014-11-04 14:15:40 -05001330 --enable-stdout use stdout for debug/error reporting
David McGrewb67061f2005-09-28 14:23:06 +00001331 --enable-console use /dev/console for error reporting
Cullen Jennings235513a2005-09-21 22:51:36 +00001332
1333Some influential environment variables:
1334 CC C compiler command
1335 CFLAGS C compiler flags
1336 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1337 nonstandard directory <lib dir>
jfigusc7e66e32013-05-08 11:32:55 -04001338 LIBS libraries to pass to the linker, e.g. -l<library>
1339 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1340 you have headers in a nonstandard directory <include dir>
Cullen Jennings235513a2005-09-21 22:51:36 +00001341 CPP C preprocessor
1342
1343Use these variables to override the choices made by `configure' or to help
1344it to find libraries and programs with nonstandard names/locations.
1345
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001346Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00001347_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001348ac_status=$?
Cullen Jennings235513a2005-09-21 22:51:36 +00001349fi
1350
1351if test "$ac_init_help" = "recursive"; then
1352 # If there are subdirs, report their specific --help.
Cullen Jennings235513a2005-09-21 22:51:36 +00001353 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jfigusc7e66e32013-05-08 11:32:55 -04001354 test -d "$ac_dir" ||
1355 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1356 continue
Cullen Jennings235513a2005-09-21 22:51:36 +00001357 ac_builddir=.
1358
jfigusc7e66e32013-05-08 11:32:55 -04001359case "$ac_dir" in
1360.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1361*)
1362 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1363 # A ".." for each directory in $ac_dir_suffix.
1364 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1365 case $ac_top_builddir_sub in
1366 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1367 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1368 esac ;;
1369esac
1370ac_abs_top_builddir=$ac_pwd
1371ac_abs_builddir=$ac_pwd$ac_dir_suffix
1372# for backward compatibility:
1373ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00001374
1375case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04001376 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00001377 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04001378 ac_top_srcdir=$ac_top_builddir_sub
1379 ac_abs_top_srcdir=$ac_pwd ;;
1380 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001381 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04001382 ac_top_srcdir=$srcdir
1383 ac_abs_top_srcdir=$srcdir ;;
1384 *) # Relative name.
1385 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1386 ac_top_srcdir=$ac_top_build_prefix$srcdir
1387 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001388esac
jfigusc7e66e32013-05-08 11:32:55 -04001389ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001390
jfigusc7e66e32013-05-08 11:32:55 -04001391 cd "$ac_dir" || { ac_status=$?; continue; }
1392 # Check for guested configure.
1393 if test -f "$ac_srcdir/configure.gnu"; then
1394 echo &&
1395 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1396 elif test -f "$ac_srcdir/configure"; then
1397 echo &&
1398 $SHELL "$ac_srcdir/configure" --help=recursive
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001399 else
jfigusc7e66e32013-05-08 11:32:55 -04001400 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1401 fi || ac_status=$?
1402 cd "$ac_pwd" || { ac_status=$?; break; }
Cullen Jennings235513a2005-09-21 22:51:36 +00001403 done
1404fi
1405
jfigusc7e66e32013-05-08 11:32:55 -04001406test -n "$ac_init_help" && exit $ac_status
Cullen Jennings235513a2005-09-21 22:51:36 +00001407if $ac_init_version; then
1408 cat <<\_ACEOF
jfigusb058a3b2014-10-31 09:27:18 -04001409libsrtp configure 2.0.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04001410generated by GNU Autoconf 2.69
Cullen Jennings235513a2005-09-21 22:51:36 +00001411
jfigusc7e66e32013-05-08 11:32:55 -04001412Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00001413This configure script is free software; the Free Software Foundation
1414gives unlimited permission to copy, distribute and modify it.
1415_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001416 exit
Cullen Jennings235513a2005-09-21 22:51:36 +00001417fi
jfigusc7e66e32013-05-08 11:32:55 -04001418
1419## ------------------------ ##
1420## Autoconf initialization. ##
1421## ------------------------ ##
1422
1423# ac_fn_c_try_compile LINENO
1424# --------------------------
1425# Try to compile conftest.$ac_ext, and return whether this succeeded.
1426ac_fn_c_try_compile ()
1427{
1428 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1429 rm -f conftest.$ac_objext
1430 if { { ac_try="$ac_compile"
1431case "(($ac_try" in
1432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1433 *) ac_try_echo=$ac_try;;
1434esac
1435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1436$as_echo "$ac_try_echo"; } >&5
1437 (eval "$ac_compile") 2>conftest.err
1438 ac_status=$?
1439 if test -s conftest.err; then
1440 grep -v '^ *+' conftest.err >conftest.er1
1441 cat conftest.er1 >&5
1442 mv -f conftest.er1 conftest.err
1443 fi
1444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1445 test $ac_status = 0; } && {
1446 test -z "$ac_c_werror_flag" ||
1447 test ! -s conftest.err
1448 } && test -s conftest.$ac_objext; then :
1449 ac_retval=0
1450else
1451 $as_echo "$as_me: failed program was:" >&5
1452sed 's/^/| /' conftest.$ac_ext >&5
1453
1454 ac_retval=1
1455fi
1456 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1457 as_fn_set_status $ac_retval
1458
1459} # ac_fn_c_try_compile
1460
1461# ac_fn_c_try_run LINENO
1462# ----------------------
1463# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1464# that executables *can* be run.
1465ac_fn_c_try_run ()
1466{
1467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1468 if { { ac_try="$ac_link"
1469case "(($ac_try" in
1470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1471 *) ac_try_echo=$ac_try;;
1472esac
1473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1474$as_echo "$ac_try_echo"; } >&5
1475 (eval "$ac_link") 2>&5
1476 ac_status=$?
1477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1478 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1479 { { case "(($ac_try" in
1480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1481 *) ac_try_echo=$ac_try;;
1482esac
1483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1484$as_echo "$ac_try_echo"; } >&5
1485 (eval "$ac_try") 2>&5
1486 ac_status=$?
1487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1488 test $ac_status = 0; }; }; then :
1489 ac_retval=0
1490else
1491 $as_echo "$as_me: program exited with status $ac_status" >&5
1492 $as_echo "$as_me: failed program was:" >&5
1493sed 's/^/| /' conftest.$ac_ext >&5
1494
1495 ac_retval=$ac_status
1496fi
1497 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1498 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1499 as_fn_set_status $ac_retval
1500
1501} # ac_fn_c_try_run
1502
1503# ac_fn_c_try_cpp LINENO
1504# ----------------------
1505# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1506ac_fn_c_try_cpp ()
1507{
1508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1509 if { { ac_try="$ac_cpp conftest.$ac_ext"
1510case "(($ac_try" in
1511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512 *) ac_try_echo=$ac_try;;
1513esac
1514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515$as_echo "$ac_try_echo"; } >&5
1516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1517 ac_status=$?
1518 if test -s conftest.err; then
1519 grep -v '^ *+' conftest.err >conftest.er1
1520 cat conftest.er1 >&5
1521 mv -f conftest.er1 conftest.err
1522 fi
1523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; } > conftest.i && {
1525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1526 test ! -s conftest.err
1527 }; then :
1528 ac_retval=0
1529else
1530 $as_echo "$as_me: failed program was:" >&5
1531sed 's/^/| /' conftest.$ac_ext >&5
1532
1533 ac_retval=1
1534fi
1535 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1536 as_fn_set_status $ac_retval
1537
1538} # ac_fn_c_try_cpp
1539
1540# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1541# -------------------------------------------------------
1542# Tests whether HEADER exists and can be compiled using the include files in
1543# INCLUDES, setting the cache variable VAR accordingly.
1544ac_fn_c_check_header_compile ()
1545{
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1548$as_echo_n "checking for $2... " >&6; }
1549if eval \${$3+:} false; then :
1550 $as_echo_n "(cached) " >&6
1551else
1552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1553/* end confdefs.h. */
1554$4
1555#include <$2>
1556_ACEOF
1557if ac_fn_c_try_compile "$LINENO"; then :
1558 eval "$3=yes"
1559else
1560 eval "$3=no"
1561fi
1562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1563fi
1564eval ac_res=\$$3
1565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1566$as_echo "$ac_res" >&6; }
1567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1568
1569} # ac_fn_c_check_header_compile
1570
1571# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1572# -------------------------------------------------------
1573# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1574# the include files in INCLUDES and setting the cache variable VAR
1575# accordingly.
1576ac_fn_c_check_header_mongrel ()
1577{
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 if eval \${$3+:} false; then :
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1581$as_echo_n "checking for $2... " >&6; }
1582if eval \${$3+:} false; then :
1583 $as_echo_n "(cached) " >&6
1584fi
1585eval ac_res=\$$3
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1587$as_echo "$ac_res" >&6; }
1588else
1589 # Is the header compilable?
1590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1591$as_echo_n "checking $2 usability... " >&6; }
1592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1593/* end confdefs.h. */
1594$4
1595#include <$2>
1596_ACEOF
1597if ac_fn_c_try_compile "$LINENO"; then :
1598 ac_header_compiler=yes
1599else
1600 ac_header_compiler=no
1601fi
1602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1604$as_echo "$ac_header_compiler" >&6; }
1605
1606# Is the header present?
1607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1608$as_echo_n "checking $2 presence... " >&6; }
1609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1610/* end confdefs.h. */
1611#include <$2>
1612_ACEOF
1613if ac_fn_c_try_cpp "$LINENO"; then :
1614 ac_header_preproc=yes
1615else
1616 ac_header_preproc=no
1617fi
1618rm -f conftest.err conftest.i conftest.$ac_ext
1619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1620$as_echo "$ac_header_preproc" >&6; }
1621
1622# So? What about this header?
1623case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1624 yes:no: )
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1626$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1628$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1629 ;;
1630 no:yes:* )
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1632$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1634$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1636$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1638$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1640$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001641( $as_echo "## ------------------------------------------------------ ##
1642## Report this to https://github.com/cisco/libsrtp/issues ##
1643## ------------------------------------------------------ ##"
1644 ) | sed "s/^/$as_me: WARNING: /" >&2
jfigusc7e66e32013-05-08 11:32:55 -04001645 ;;
1646esac
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648$as_echo_n "checking for $2... " >&6; }
1649if eval \${$3+:} false; then :
1650 $as_echo_n "(cached) " >&6
1651else
1652 eval "$3=\$ac_header_compiler"
1653fi
1654eval ac_res=\$$3
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1656$as_echo "$ac_res" >&6; }
1657fi
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659
1660} # ac_fn_c_check_header_mongrel
1661
1662# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1663# -------------------------------------------
1664# Tests whether TYPE exists after having included INCLUDES, setting cache
1665# variable VAR accordingly.
1666ac_fn_c_check_type ()
1667{
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670$as_echo_n "checking for $2... " >&6; }
1671if eval \${$3+:} false; then :
1672 $as_echo_n "(cached) " >&6
1673else
1674 eval "$3=no"
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676/* end confdefs.h. */
1677$4
1678int
1679main ()
1680{
1681if (sizeof ($2))
1682 return 0;
1683 ;
1684 return 0;
1685}
1686_ACEOF
1687if ac_fn_c_try_compile "$LINENO"; then :
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689/* end confdefs.h. */
1690$4
1691int
1692main ()
1693{
1694if (sizeof (($2)))
1695 return 0;
1696 ;
1697 return 0;
1698}
1699_ACEOF
1700if ac_fn_c_try_compile "$LINENO"; then :
1701
1702else
1703 eval "$3=yes"
1704fi
1705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1706fi
1707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708fi
1709eval ac_res=\$$3
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711$as_echo "$ac_res" >&6; }
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713
1714} # ac_fn_c_check_type
1715
1716# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1717# --------------------------------------------
1718# Tries to find the compile-time value of EXPR in a program that includes
1719# INCLUDES, setting VAR accordingly. Returns whether the value could be
1720# computed
1721ac_fn_c_compute_int ()
1722{
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 if test "$cross_compiling" = yes; then
1725 # Depending upon the size, compute the lo and hi bounds.
1726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727/* end confdefs.h. */
1728$4
1729int
1730main ()
1731{
1732static int test_array [1 - 2 * !(($2) >= 0)];
1733test_array [0] = 0;
1734return test_array [0];
1735
1736 ;
1737 return 0;
1738}
1739_ACEOF
1740if ac_fn_c_try_compile "$LINENO"; then :
1741 ac_lo=0 ac_mid=0
1742 while :; do
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h. */
1745$4
1746int
1747main ()
1748{
1749static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1750test_array [0] = 0;
1751return test_array [0];
1752
1753 ;
1754 return 0;
1755}
1756_ACEOF
1757if ac_fn_c_try_compile "$LINENO"; then :
1758 ac_hi=$ac_mid; break
1759else
1760 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1761 if test $ac_lo -le $ac_mid; then
1762 ac_lo= ac_hi=
1763 break
1764 fi
1765 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1766fi
1767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768 done
1769else
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771/* end confdefs.h. */
1772$4
1773int
1774main ()
1775{
1776static int test_array [1 - 2 * !(($2) < 0)];
1777test_array [0] = 0;
1778return test_array [0];
1779
1780 ;
1781 return 0;
1782}
1783_ACEOF
1784if ac_fn_c_try_compile "$LINENO"; then :
1785 ac_hi=-1 ac_mid=-1
1786 while :; do
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788/* end confdefs.h. */
1789$4
1790int
1791main ()
1792{
1793static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1794test_array [0] = 0;
1795return test_array [0];
1796
1797 ;
1798 return 0;
1799}
1800_ACEOF
1801if ac_fn_c_try_compile "$LINENO"; then :
1802 ac_lo=$ac_mid; break
1803else
1804 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1805 if test $ac_mid -le $ac_hi; then
1806 ac_lo= ac_hi=
1807 break
1808 fi
1809 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1810fi
1811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812 done
1813else
1814 ac_lo= ac_hi=
1815fi
1816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817fi
1818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819# Binary search between lo and hi bounds.
1820while test "x$ac_lo" != "x$ac_hi"; do
1821 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h. */
1824$4
1825int
1826main ()
1827{
1828static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1829test_array [0] = 0;
1830return test_array [0];
1831
1832 ;
1833 return 0;
1834}
1835_ACEOF
1836if ac_fn_c_try_compile "$LINENO"; then :
1837 ac_hi=$ac_mid
1838else
1839 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1840fi
1841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842done
1843case $ac_lo in #((
1844?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1845'') ac_retval=1 ;;
1846esac
1847 else
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h. */
1850$4
1851static long int longval () { return $2; }
1852static unsigned long int ulongval () { return $2; }
1853#include <stdio.h>
1854#include <stdlib.h>
1855int
1856main ()
1857{
1858
1859 FILE *f = fopen ("conftest.val", "w");
1860 if (! f)
1861 return 1;
1862 if (($2) < 0)
1863 {
1864 long int i = longval ();
1865 if (i != ($2))
1866 return 1;
1867 fprintf (f, "%ld", i);
1868 }
1869 else
1870 {
1871 unsigned long int i = ulongval ();
1872 if (i != ($2))
1873 return 1;
1874 fprintf (f, "%lu", i);
1875 }
1876 /* Do not output a trailing newline, as this causes \r\n confusion
1877 on some platforms. */
1878 return ferror (f) || fclose (f) != 0;
1879
1880 ;
1881 return 0;
1882}
1883_ACEOF
1884if ac_fn_c_try_run "$LINENO"; then :
1885 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1886else
1887 ac_retval=1
1888fi
1889rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1890 conftest.$ac_objext conftest.beam conftest.$ac_ext
1891rm -f conftest.val
1892
1893 fi
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1896
1897} # ac_fn_c_compute_int
1898
1899# ac_fn_c_try_link LINENO
1900# -----------------------
1901# Try to link conftest.$ac_ext, and return whether this succeeded.
1902ac_fn_c_try_link ()
1903{
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 rm -f conftest.$ac_objext conftest$ac_exeext
1906 if { { ac_try="$ac_link"
1907case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1910esac
1911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912$as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_link") 2>conftest.err
1914 ac_status=$?
1915 if test -s conftest.err; then
1916 grep -v '^ *+' conftest.err >conftest.er1
1917 cat conftest.er1 >&5
1918 mv -f conftest.er1 conftest.err
1919 fi
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } && {
1922 test -z "$ac_c_werror_flag" ||
1923 test ! -s conftest.err
1924 } && test -s conftest$ac_exeext && {
1925 test "$cross_compiling" = yes ||
1926 test -x conftest$ac_exeext
1927 }; then :
1928 ac_retval=0
1929else
1930 $as_echo "$as_me: failed program was:" >&5
1931sed 's/^/| /' conftest.$ac_ext >&5
1932
1933 ac_retval=1
1934fi
1935 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1936 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1937 # interfere with the next link command; also delete a directory that is
1938 # left behind by Apple's compiler. We do this before executing the actions.
1939 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
1942
1943} # ac_fn_c_try_link
1944
1945# ac_fn_c_check_func LINENO FUNC VAR
1946# ----------------------------------
1947# Tests whether FUNC exists, setting the cache variable VAR accordingly
1948ac_fn_c_check_func ()
1949{
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952$as_echo_n "checking for $2... " >&6; }
1953if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1955else
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957/* end confdefs.h. */
1958/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1960#define $2 innocuous_$2
1961
1962/* System header to define __stub macros and hopefully few prototypes,
1963 which can conflict with char $2 (); below.
1964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1965 <limits.h> exists even on freestanding compilers. */
1966
1967#ifdef __STDC__
1968# include <limits.h>
1969#else
1970# include <assert.h>
1971#endif
1972
1973#undef $2
1974
1975/* Override any GCC internal prototype to avoid an error.
1976 Use char because int might match the return type of a GCC
1977 builtin and then its argument prototype would still apply. */
1978#ifdef __cplusplus
1979extern "C"
1980#endif
1981char $2 ();
1982/* The GNU C library defines this for functions which it implements
1983 to always fail with ENOSYS. Some functions are actually named
1984 something starting with __ and the normal name is an alias. */
1985#if defined __stub_$2 || defined __stub___$2
1986choke me
1987#endif
1988
1989int
1990main ()
1991{
1992return $2 ();
1993 ;
1994 return 0;
1995}
1996_ACEOF
1997if ac_fn_c_try_link "$LINENO"; then :
1998 eval "$3=yes"
1999else
2000 eval "$3=no"
2001fi
2002rm -f core conftest.err conftest.$ac_objext \
2003 conftest$ac_exeext conftest.$ac_ext
2004fi
2005eval ac_res=\$$3
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007$as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009
2010} # ac_fn_c_check_func
2011cat >config.log <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002012This file contains any messages produced by compilers while
2013running configure, to aid debugging if configure makes a mistake.
2014
jfigusb058a3b2014-10-31 09:27:18 -04002015It was created by libsrtp $as_me 2.0.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04002016generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00002017
2018 $ $0 $@
2019
2020_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002021exec 5>>config.log
Cullen Jennings235513a2005-09-21 22:51:36 +00002022{
2023cat <<_ASUNAME
2024## --------- ##
2025## Platform. ##
2026## --------- ##
2027
2028hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2029uname -m = `(uname -m) 2>/dev/null || echo unknown`
2030uname -r = `(uname -r) 2>/dev/null || echo unknown`
2031uname -s = `(uname -s) 2>/dev/null || echo unknown`
2032uname -v = `(uname -v) 2>/dev/null || echo unknown`
2033
2034/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2035/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2036
2037/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2038/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2039/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
jfigusc7e66e32013-05-08 11:32:55 -04002040/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Cullen Jennings235513a2005-09-21 22:51:36 +00002041/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2042/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2043/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2044
2045_ASUNAME
2046
2047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048for as_dir in $PATH
2049do
2050 IFS=$as_save_IFS
2051 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002052 $as_echo "PATH: $as_dir"
2053 done
2054IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002055
2056} >&5
2057
2058cat >&5 <<_ACEOF
2059
2060
2061## ----------- ##
2062## Core tests. ##
2063## ----------- ##
2064
2065_ACEOF
2066
2067
2068# Keep a trace of the command line.
2069# Strip out --no-create and --no-recursion so they do not pile up.
2070# Strip out --silent because we don't want to record it for future runs.
2071# Also quote any args containing shell meta-characters.
2072# Make two passes to allow for proper duplicate-argument suppression.
2073ac_configure_args=
2074ac_configure_args0=
2075ac_configure_args1=
Cullen Jennings235513a2005-09-21 22:51:36 +00002076ac_must_keep_next=false
2077for ac_pass in 1 2
2078do
2079 for ac_arg
2080 do
2081 case $ac_arg in
2082 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2084 | -silent | --silent | --silen | --sile | --sil)
2085 continue ;;
jfigusc7e66e32013-05-08 11:32:55 -04002086 *\'*)
2087 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002088 esac
2089 case $ac_pass in
jfigusc7e66e32013-05-08 11:32:55 -04002090 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002091 2)
jfigusc7e66e32013-05-08 11:32:55 -04002092 as_fn_append ac_configure_args1 " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002093 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00002094 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00002095 else
David McGrewfec49dd2005-09-23 19:34:11 +00002096 case $ac_arg in
2097 *=* | --config-cache | -C | -disable-* | --disable-* \
2098 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2099 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2100 | -with-* | --with-* | -without-* | --without-* | --x)
2101 case "$ac_configure_args0 " in
2102 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2103 esac
2104 ;;
2105 -* ) ac_must_keep_next=true ;;
2106 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00002107 fi
jfigusc7e66e32013-05-08 11:32:55 -04002108 as_fn_append ac_configure_args " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002109 ;;
2110 esac
2111 done
2112done
jfigusc7e66e32013-05-08 11:32:55 -04002113{ ac_configure_args0=; unset ac_configure_args0;}
2114{ ac_configure_args1=; unset ac_configure_args1;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002115
2116# When interrupted or exit'd, cleanup temporary files, and complete
2117# config.log. We remove comments because anyway the quotes in there
2118# would cause problems or look ugly.
jfigusc7e66e32013-05-08 11:32:55 -04002119# WARNING: Use '\'' to represent an apostrophe within the trap.
2120# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Cullen Jennings235513a2005-09-21 22:51:36 +00002121trap 'exit_status=$?
2122 # Save into config.log some information that might help in debugging.
2123 {
2124 echo
2125
jfigusc7e66e32013-05-08 11:32:55 -04002126 $as_echo "## ---------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002127## Cache variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002128## ---------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002129 echo
2130 # The following way of writing the cache mishandles newlines in values,
jfigusc7e66e32013-05-08 11:32:55 -04002131(
2132 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2133 eval ac_val=\$$ac_var
2134 case $ac_val in #(
2135 *${as_nl}*)
2136 case $ac_var in #(
2137 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2138$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2139 esac
2140 case $ac_var in #(
2141 _ | IFS | as_nl) ;; #(
2142 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2143 *) { eval $ac_var=; unset $ac_var;} ;;
2144 esac ;;
2145 esac
2146 done
Cullen Jennings235513a2005-09-21 22:51:36 +00002147 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04002148 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2149 *${as_nl}ac_space=\ *)
Cullen Jennings235513a2005-09-21 22:51:36 +00002150 sed -n \
jfigusc7e66e32013-05-08 11:32:55 -04002151 "s/'\''/'\''\\\\'\'''\''/g;
2152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2153 ;; #(
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002154 *)
jfigusc7e66e32013-05-08 11:32:55 -04002155 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002156 ;;
jfigusc7e66e32013-05-08 11:32:55 -04002157 esac |
2158 sort
2159)
Cullen Jennings235513a2005-09-21 22:51:36 +00002160 echo
2161
jfigusc7e66e32013-05-08 11:32:55 -04002162 $as_echo "## ----------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002163## Output variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002164## ----------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002165 echo
2166 for ac_var in $ac_subst_vars
2167 do
jfigusc7e66e32013-05-08 11:32:55 -04002168 eval ac_val=\$$ac_var
2169 case $ac_val in
2170 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2171 esac
2172 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002173 done | sort
2174 echo
2175
2176 if test -n "$ac_subst_files"; then
jfigusc7e66e32013-05-08 11:32:55 -04002177 $as_echo "## ------------------- ##
2178## File substitutions. ##
2179## ------------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002180 echo
2181 for ac_var in $ac_subst_files
2182 do
jfigusc7e66e32013-05-08 11:32:55 -04002183 eval ac_val=\$$ac_var
2184 case $ac_val in
2185 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2186 esac
2187 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002188 done | sort
2189 echo
2190 fi
2191
2192 if test -s confdefs.h; then
jfigusc7e66e32013-05-08 11:32:55 -04002193 $as_echo "## ----------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002194## confdefs.h. ##
jfigusc7e66e32013-05-08 11:32:55 -04002195## ----------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002196 echo
jfigusc7e66e32013-05-08 11:32:55 -04002197 cat confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002198 echo
2199 fi
2200 test "$ac_signal" != 0 &&
jfigusc7e66e32013-05-08 11:32:55 -04002201 $as_echo "$as_me: caught signal $ac_signal"
2202 $as_echo "$as_me: exit $exit_status"
Cullen Jennings235513a2005-09-21 22:51:36 +00002203 } >&5
jfigusc7e66e32013-05-08 11:32:55 -04002204 rm -f core *.core core.conftest.* &&
2205 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Cullen Jennings235513a2005-09-21 22:51:36 +00002206 exit $exit_status
jfigusc7e66e32013-05-08 11:32:55 -04002207' 0
Cullen Jennings235513a2005-09-21 22:51:36 +00002208for ac_signal in 1 2 13 15; do
jfigusc7e66e32013-05-08 11:32:55 -04002209 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Cullen Jennings235513a2005-09-21 22:51:36 +00002210done
2211ac_signal=0
2212
2213# confdefs.h avoids OS command line length limits that DEFS can exceed.
jfigusc7e66e32013-05-08 11:32:55 -04002214rm -f -r conftest* confdefs.h
2215
2216$as_echo "/* confdefs.h */" > confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002217
2218# Predefined preprocessor variables.
2219
2220cat >>confdefs.h <<_ACEOF
2221#define PACKAGE_NAME "$PACKAGE_NAME"
2222_ACEOF
2223
Cullen Jennings235513a2005-09-21 22:51:36 +00002224cat >>confdefs.h <<_ACEOF
2225#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2226_ACEOF
2227
Cullen Jennings235513a2005-09-21 22:51:36 +00002228cat >>confdefs.h <<_ACEOF
2229#define PACKAGE_VERSION "$PACKAGE_VERSION"
2230_ACEOF
2231
Cullen Jennings235513a2005-09-21 22:51:36 +00002232cat >>confdefs.h <<_ACEOF
2233#define PACKAGE_STRING "$PACKAGE_STRING"
2234_ACEOF
2235
Cullen Jennings235513a2005-09-21 22:51:36 +00002236cat >>confdefs.h <<_ACEOF
2237#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2238_ACEOF
2239
jfigusc7e66e32013-05-08 11:32:55 -04002240cat >>confdefs.h <<_ACEOF
2241#define PACKAGE_URL "$PACKAGE_URL"
2242_ACEOF
2243
Cullen Jennings235513a2005-09-21 22:51:36 +00002244
2245# Let the site file select an alternate cache file if it wants to.
jfigusc7e66e32013-05-08 11:32:55 -04002246# Prefer an explicitly selected file to automatically selected ones.
2247ac_site_file1=NONE
2248ac_site_file2=NONE
2249if test -n "$CONFIG_SITE"; then
2250 # We do not want a PATH search for config.site.
2251 case $CONFIG_SITE in #((
2252 -*) ac_site_file1=./$CONFIG_SITE;;
2253 */*) ac_site_file1=$CONFIG_SITE;;
2254 *) ac_site_file1=./$CONFIG_SITE;;
2255 esac
2256elif test "x$prefix" != xNONE; then
2257 ac_site_file1=$prefix/share/config.site
2258 ac_site_file2=$prefix/etc/config.site
2259else
2260 ac_site_file1=$ac_default_prefix/share/config.site
2261 ac_site_file2=$ac_default_prefix/etc/config.site
Cullen Jennings235513a2005-09-21 22:51:36 +00002262fi
jfigusc7e66e32013-05-08 11:32:55 -04002263for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2264do
2265 test "x$ac_site_file" = xNONE && continue
2266 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2268$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002269 sed 's/^/| /' "$ac_site_file" >&5
jfigusc7e66e32013-05-08 11:32:55 -04002270 . "$ac_site_file" \
2271 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2273as_fn_error $? "failed to load site script $ac_site_file
2274See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002275 fi
2276done
2277
2278if test -r "$cache_file"; then
jfigusc7e66e32013-05-08 11:32:55 -04002279 # Some versions of bash will fail to source /dev/null (special files
2280 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2281 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2283$as_echo "$as_me: loading cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002284 case $cache_file in
jfigusc7e66e32013-05-08 11:32:55 -04002285 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2286 *) . "./$cache_file";;
Cullen Jennings235513a2005-09-21 22:51:36 +00002287 esac
2288 fi
2289else
jfigusc7e66e32013-05-08 11:32:55 -04002290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2291$as_echo "$as_me: creating cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002292 >$cache_file
2293fi
2294
2295# Check that the precious variables saved in the cache have kept the same
2296# value.
2297ac_cache_corrupted=false
jfigusc7e66e32013-05-08 11:32:55 -04002298for ac_var in $ac_precious_vars; do
Cullen Jennings235513a2005-09-21 22:51:36 +00002299 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2300 eval ac_new_set=\$ac_env_${ac_var}_set
jfigusc7e66e32013-05-08 11:32:55 -04002301 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2302 eval ac_new_val=\$ac_env_${ac_var}_value
Cullen Jennings235513a2005-09-21 22:51:36 +00002303 case $ac_old_set,$ac_new_set in
2304 set,)
jfigusc7e66e32013-05-08 11:32:55 -04002305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2306$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 +00002307 ac_cache_corrupted=: ;;
2308 ,set)
jfigusc7e66e32013-05-08 11:32:55 -04002309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2310$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002311 ac_cache_corrupted=: ;;
2312 ,);;
2313 *)
2314 if test "x$ac_old_val" != "x$ac_new_val"; then
jfigusc7e66e32013-05-08 11:32:55 -04002315 # differences in whitespace do not lead to failure.
2316 ac_old_val_w=`echo x $ac_old_val`
2317 ac_new_val_w=`echo x $ac_new_val`
2318 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2320$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2321 ac_cache_corrupted=:
2322 else
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2324$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2325 eval $ac_var=\$ac_old_val
2326 fi
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2328$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2330$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002331 fi;;
2332 esac
2333 # Pass precious variables to config.status.
2334 if test "$ac_new_set" = set; then
2335 case $ac_new_val in
jfigusc7e66e32013-05-08 11:32:55 -04002336 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002337 *) ac_arg=$ac_var=$ac_new_val ;;
2338 esac
2339 case " $ac_configure_args " in
2340 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jfigusc7e66e32013-05-08 11:32:55 -04002341 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002342 esac
2343 fi
2344done
2345if $ac_cache_corrupted; then
jfigusc7e66e32013-05-08 11:32:55 -04002346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2349$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2350 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00002351fi
jfigusc7e66e32013-05-08 11:32:55 -04002352## -------------------- ##
2353## Main body of script. ##
2354## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002355
2356ac_ext=c
2357ac_cpp='$CPP $CPPFLAGS'
2358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361
2362
2363
David McGrewb67061f2005-09-28 14:23:06 +00002364if test -z "$CFLAGS"; then
Sean Brightbfb9e302014-03-24 20:45:17 -04002365 CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
David McGrewb67061f2005-09-28 14:23:06 +00002366fi
2367
Cullen Jennings235513a2005-09-21 22:51:36 +00002368if test -n "$ac_tool_prefix"; then
2369 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2370set dummy ${ac_tool_prefix}ranlib; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2372$as_echo_n "checking for $ac_word... " >&6; }
2373if ${ac_cv_prog_RANLIB+:} false; then :
2374 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002375else
2376 if test -n "$RANLIB"; then
2377 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2378else
2379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380for as_dir in $PATH
2381do
2382 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002384 for ac_exec_ext in '' $ac_executable_extensions; do
2385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002386 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
jfigusc7e66e32013-05-08 11:32:55 -04002387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002388 break 2
2389 fi
2390done
jfigusc7e66e32013-05-08 11:32:55 -04002391 done
2392IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002393
2394fi
2395fi
2396RANLIB=$ac_cv_prog_RANLIB
2397if test -n "$RANLIB"; then
jfigusc7e66e32013-05-08 11:32:55 -04002398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2399$as_echo "$RANLIB" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002400else
jfigusc7e66e32013-05-08 11:32:55 -04002401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2402$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002403fi
2404
jfigusc7e66e32013-05-08 11:32:55 -04002405
Cullen Jennings235513a2005-09-21 22:51:36 +00002406fi
2407if test -z "$ac_cv_prog_RANLIB"; then
2408 ac_ct_RANLIB=$RANLIB
2409 # Extract the first word of "ranlib", so it can be a program name with args.
2410set dummy ranlib; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2412$as_echo_n "checking for $ac_word... " >&6; }
2413if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2414 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002415else
2416 if test -n "$ac_ct_RANLIB"; then
2417 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2418else
2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420for as_dir in $PATH
2421do
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002426 ac_cv_prog_ac_ct_RANLIB="ranlib"
jfigusc7e66e32013-05-08 11:32:55 -04002427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002428 break 2
2429 fi
2430done
jfigusc7e66e32013-05-08 11:32:55 -04002431 done
2432IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002433
Cullen Jennings235513a2005-09-21 22:51:36 +00002434fi
2435fi
2436ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2437if test -n "$ac_ct_RANLIB"; then
jfigusc7e66e32013-05-08 11:32:55 -04002438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2439$as_echo "$ac_ct_RANLIB" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002440else
jfigusc7e66e32013-05-08 11:32:55 -04002441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2442$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002443fi
2444
jfigusc7e66e32013-05-08 11:32:55 -04002445 if test "x$ac_ct_RANLIB" = x; then
2446 RANLIB=":"
2447 else
2448 case $cross_compiling:$ac_tool_warned in
2449yes:)
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2452ac_tool_warned=yes ;;
2453esac
2454 RANLIB=$ac_ct_RANLIB
2455 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002456else
2457 RANLIB="$ac_cv_prog_RANLIB"
2458fi
2459
2460ac_ext=c
2461ac_cpp='$CPP $CPPFLAGS'
2462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464ac_compiler_gnu=$ac_cv_c_compiler_gnu
2465if test -n "$ac_tool_prefix"; then
2466 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2467set dummy ${ac_tool_prefix}gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2469$as_echo_n "checking for $ac_word... " >&6; }
2470if ${ac_cv_prog_CC+:} false; then :
2471 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002472else
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2475else
2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477for as_dir in $PATH
2478do
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002483 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002485 break 2
2486 fi
2487done
jfigusc7e66e32013-05-08 11:32:55 -04002488 done
2489IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002490
2491fi
2492fi
2493CC=$ac_cv_prog_CC
2494if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2496$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002497else
jfigusc7e66e32013-05-08 11:32:55 -04002498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2499$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002500fi
2501
jfigusc7e66e32013-05-08 11:32:55 -04002502
Cullen Jennings235513a2005-09-21 22:51:36 +00002503fi
2504if test -z "$ac_cv_prog_CC"; then
2505 ac_ct_CC=$CC
2506 # Extract the first word of "gcc", so it can be a program name with args.
2507set dummy gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509$as_echo_n "checking for $ac_word... " >&6; }
2510if ${ac_cv_prog_ac_ct_CC+:} false; then :
2511 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002512else
2513 if test -n "$ac_ct_CC"; then
2514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2515else
2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517for as_dir in $PATH
2518do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002523 ac_cv_prog_ac_ct_CC="gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002525 break 2
2526 fi
2527done
jfigusc7e66e32013-05-08 11:32:55 -04002528 done
2529IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002530
2531fi
2532fi
2533ac_ct_CC=$ac_cv_prog_ac_ct_CC
2534if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2536$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002537else
jfigusc7e66e32013-05-08 11:32:55 -04002538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002540fi
2541
jfigusc7e66e32013-05-08 11:32:55 -04002542 if test "x$ac_ct_CC" = x; then
2543 CC=""
2544 else
2545 case $cross_compiling:$ac_tool_warned in
2546yes:)
2547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2549ac_tool_warned=yes ;;
2550esac
2551 CC=$ac_ct_CC
2552 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002553else
2554 CC="$ac_cv_prog_CC"
2555fi
2556
2557if test -z "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002558 if test -n "$ac_tool_prefix"; then
2559 # 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 +00002560set dummy ${ac_tool_prefix}cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2562$as_echo_n "checking for $ac_word... " >&6; }
2563if ${ac_cv_prog_CC+:} false; then :
2564 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002565else
2566 if test -n "$CC"; then
2567 ac_cv_prog_CC="$CC" # Let the user override the test.
2568else
2569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570for as_dir in $PATH
2571do
2572 IFS=$as_save_IFS
2573 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002576 ac_cv_prog_CC="${ac_tool_prefix}cc"
jfigusc7e66e32013-05-08 11:32:55 -04002577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002578 break 2
2579 fi
2580done
jfigusc7e66e32013-05-08 11:32:55 -04002581 done
2582IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002583
2584fi
2585fi
2586CC=$ac_cv_prog_CC
2587if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2589$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002590else
jfigusc7e66e32013-05-08 11:32:55 -04002591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002593fi
2594
jfigusc7e66e32013-05-08 11:32:55 -04002595
Cullen Jennings235513a2005-09-21 22:51:36 +00002596 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002597fi
2598if test -z "$CC"; then
2599 # Extract the first word of "cc", so it can be a program name with args.
2600set dummy cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2602$as_echo_n "checking for $ac_word... " >&6; }
2603if ${ac_cv_prog_CC+:} false; then :
2604 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002605else
2606 if test -n "$CC"; then
2607 ac_cv_prog_CC="$CC" # Let the user override the test.
2608else
2609 ac_prog_rejected=no
2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2618 ac_prog_rejected=yes
2619 continue
2620 fi
2621 ac_cv_prog_CC="cc"
jfigusc7e66e32013-05-08 11:32:55 -04002622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002623 break 2
2624 fi
2625done
jfigusc7e66e32013-05-08 11:32:55 -04002626 done
2627IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002628
2629if test $ac_prog_rejected = yes; then
2630 # We found a bogon in the path, so make sure we never use it.
2631 set dummy $ac_cv_prog_CC
2632 shift
2633 if test $# != 0; then
2634 # We chose a different compiler from the bogus one.
2635 # However, it has the same basename, so the bogon will be chosen
2636 # first if we set CC to just the basename; use the full file name.
2637 shift
2638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2639 fi
2640fi
2641fi
2642fi
2643CC=$ac_cv_prog_CC
2644if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2646$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002647else
jfigusc7e66e32013-05-08 11:32:55 -04002648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002650fi
2651
jfigusc7e66e32013-05-08 11:32:55 -04002652
Cullen Jennings235513a2005-09-21 22:51:36 +00002653fi
2654if test -z "$CC"; then
2655 if test -n "$ac_tool_prefix"; then
jfigusc7e66e32013-05-08 11:32:55 -04002656 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002657 do
2658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2659set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661$as_echo_n "checking for $ac_word... " >&6; }
2662if ${ac_cv_prog_CC+:} false; then :
2663 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002664else
2665 if test -n "$CC"; then
2666 ac_cv_prog_CC="$CC" # Let the user override the test.
2667else
2668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669for as_dir in $PATH
2670do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002677 break 2
2678 fi
2679done
jfigusc7e66e32013-05-08 11:32:55 -04002680 done
2681IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002682
2683fi
2684fi
2685CC=$ac_cv_prog_CC
2686if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2688$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002689else
jfigusc7e66e32013-05-08 11:32:55 -04002690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002692fi
2693
jfigusc7e66e32013-05-08 11:32:55 -04002694
Cullen Jennings235513a2005-09-21 22:51:36 +00002695 test -n "$CC" && break
2696 done
2697fi
2698if test -z "$CC"; then
2699 ac_ct_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04002700 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002701do
2702 # Extract the first word of "$ac_prog", so it can be a program name with args.
2703set dummy $ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705$as_echo_n "checking for $ac_word... " >&6; }
2706if ${ac_cv_prog_ac_ct_CC+:} false; then :
2707 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002708else
2709 if test -n "$ac_ct_CC"; then
2710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2711else
2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713for as_dir in $PATH
2714do
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002719 ac_cv_prog_ac_ct_CC="$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002721 break 2
2722 fi
2723done
jfigusc7e66e32013-05-08 11:32:55 -04002724 done
2725IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002726
2727fi
2728fi
2729ac_ct_CC=$ac_cv_prog_ac_ct_CC
2730if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2732$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002733else
jfigusc7e66e32013-05-08 11:32:55 -04002734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002736fi
2737
jfigusc7e66e32013-05-08 11:32:55 -04002738
Cullen Jennings235513a2005-09-21 22:51:36 +00002739 test -n "$ac_ct_CC" && break
2740done
2741
jfigusc7e66e32013-05-08 11:32:55 -04002742 if test "x$ac_ct_CC" = x; then
2743 CC=""
2744 else
2745 case $cross_compiling:$ac_tool_warned in
2746yes:)
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2749ac_tool_warned=yes ;;
2750esac
2751 CC=$ac_ct_CC
2752 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002753fi
2754
2755fi
2756
2757
jfigusc7e66e32013-05-08 11:32:55 -04002758test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2760as_fn_error $? "no acceptable C compiler found in \$PATH
2761See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002762
2763# Provide some information about the compiler.
jfigusc7e66e32013-05-08 11:32:55 -04002764$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2765set X $ac_compile
2766ac_compiler=$2
2767for ac_option in --version -v -V -qversion; do
2768 { { ac_try="$ac_compiler $ac_option >&5"
2769case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772esac
2773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2774$as_echo "$ac_try_echo"; } >&5
2775 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Cullen Jennings235513a2005-09-21 22:51:36 +00002776 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002777 if test -s conftest.err; then
2778 sed '10a\
2779... rest of stderr output deleted ...
2780 10q' conftest.err >conftest.er1
2781 cat conftest.er1 >&5
2782 fi
2783 rm -f conftest.er1 conftest.err
2784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2785 test $ac_status = 0; }
2786done
Cullen Jennings235513a2005-09-21 22:51:36 +00002787
jfigusc7e66e32013-05-08 11:32:55 -04002788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002789/* end confdefs.h. */
2790
2791int
2792main ()
2793{
2794
2795 ;
2796 return 0;
2797}
2798_ACEOF
2799ac_clean_files_save=$ac_clean_files
jfigusc7e66e32013-05-08 11:32:55 -04002800ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Cullen Jennings235513a2005-09-21 22:51:36 +00002801# Try to create an executable without -o first, disregard a.out.
2802# It will help us diagnose broken compilers, and finding out an intuition
2803# of exeext.
jfigusc7e66e32013-05-08 11:32:55 -04002804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2805$as_echo_n "checking whether the C compiler works... " >&6; }
2806ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002807
jfigusc7e66e32013-05-08 11:32:55 -04002808# The possible output files:
2809ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2810
2811ac_rmfiles=
2812for ac_file in $ac_files
2813do
2814 case $ac_file in
2815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2816 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2817 esac
2818done
2819rm -f $ac_rmfiles
2820
2821if { { ac_try="$ac_link_default"
2822case "(($ac_try" in
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2825esac
2826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2827$as_echo "$ac_try_echo"; } >&5
2828 (eval "$ac_link_default") 2>&5
2829 ac_status=$?
2830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2831 test $ac_status = 0; }; then :
2832 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2833# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2834# in a Makefile. We should not override ac_cv_exeext if it was cached,
2835# so that the user can short-circuit this test for compilers unknown to
2836# Autoconf.
2837for ac_file in $ac_files ''
Cullen Jennings235513a2005-09-21 22:51:36 +00002838do
2839 test -f "$ac_file" || continue
2840 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00002842 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002843 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00002844 # We found the default executable, but exeext='' is most
2845 # certainly right.
2846 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002847 *.* )
jfigusc7e66e32013-05-08 11:32:55 -04002848 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2849 then :; else
2850 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2851 fi
2852 # We set ac_cv_exeext here because the later test for it is not
2853 # safe: cross compilers may not add the suffix if given an `-o'
2854 # argument, so we may need to know it at that point already.
2855 # Even if this section looks crufty: it has the advantage of
2856 # actually working.
David McGrewfec49dd2005-09-23 19:34:11 +00002857 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002858 * )
David McGrewfec49dd2005-09-23 19:34:11 +00002859 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002860 esac
2861done
jfigusc7e66e32013-05-08 11:32:55 -04002862test "$ac_cv_exeext" = no && ac_cv_exeext=
2863
Cullen Jennings235513a2005-09-21 22:51:36 +00002864else
jfigusc7e66e32013-05-08 11:32:55 -04002865 ac_file=''
2866fi
2867if test -z "$ac_file"; then :
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869$as_echo "no" >&6; }
2870$as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002871sed 's/^/| /' conftest.$ac_ext >&5
2872
jfigusc7e66e32013-05-08 11:32:55 -04002873{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2875as_fn_error 77 "C compiler cannot create executables
2876See \`config.log' for more details" "$LINENO" 5; }
2877else
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2879$as_echo "yes" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002880fi
jfigusc7e66e32013-05-08 11:32:55 -04002881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2882$as_echo_n "checking for C compiler default output file name... " >&6; }
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2884$as_echo "$ac_file" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002885ac_exeext=$ac_cv_exeext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002886
jfigusc7e66e32013-05-08 11:32:55 -04002887rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002888ac_clean_files=$ac_clean_files_save
jfigusc7e66e32013-05-08 11:32:55 -04002889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2890$as_echo_n "checking for suffix of executables... " >&6; }
2891if { { ac_try="$ac_link"
2892case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895esac
2896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2897$as_echo "$ac_try_echo"; } >&5
2898 (eval "$ac_link") 2>&5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002899 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2901 test $ac_status = 0; }; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002902 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2903# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2904# work properly (i.e., refer to `conftest.exe'), while it won't with
2905# `rm'.
2906for ac_file in conftest.exe conftest conftest.*; do
2907 test -f "$ac_file" || continue
2908 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002910 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00002911 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002912 * ) break;;
2913 esac
2914done
2915else
jfigusc7e66e32013-05-08 11:32:55 -04002916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2918as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2919See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002920fi
jfigusc7e66e32013-05-08 11:32:55 -04002921rm -f conftest conftest$ac_cv_exeext
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2923$as_echo "$ac_cv_exeext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002924
2925rm -f conftest.$ac_ext
2926EXEEXT=$ac_cv_exeext
2927ac_exeext=$EXEEXT
jfigusc7e66e32013-05-08 11:32:55 -04002928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929/* end confdefs.h. */
2930#include <stdio.h>
2931int
2932main ()
2933{
2934FILE *f = fopen ("conftest.out", "w");
2935 return ferror (f) || fclose (f) != 0;
2936
2937 ;
2938 return 0;
2939}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002940_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002941ac_clean_files="$ac_clean_files conftest.out"
2942# Check that the compiler produces executables we can run. If not, either
2943# the compiler is broken, or we cross compile.
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2945$as_echo_n "checking whether we are cross compiling... " >&6; }
2946if test "$cross_compiling" != yes; then
2947 { { ac_try="$ac_link"
2948case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951esac
2952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2953$as_echo "$ac_try_echo"; } >&5
2954 (eval "$ac_link") 2>&5
2955 ac_status=$?
2956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2957 test $ac_status = 0; }
2958 if { ac_try='./conftest$ac_cv_exeext'
2959 { { case "(($ac_try" in
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2962esac
2963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2964$as_echo "$ac_try_echo"; } >&5
2965 (eval "$ac_try") 2>&5
2966 ac_status=$?
2967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2968 test $ac_status = 0; }; }; then
2969 cross_compiling=no
2970 else
2971 if test "$cross_compiling" = maybe; then
2972 cross_compiling=yes
2973 else
2974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976as_fn_error $? "cannot run C compiled programs.
2977If you meant to cross compile, use \`--host'.
2978See \`config.log' for more details" "$LINENO" 5; }
2979 fi
2980 fi
2981fi
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2983$as_echo "$cross_compiling" >&6; }
2984
2985rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2986ac_clean_files=$ac_clean_files_save
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2988$as_echo_n "checking for suffix of object files... " >&6; }
2989if ${ac_cv_objext+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991else
2992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002993/* end confdefs.h. */
2994
2995int
2996main ()
2997{
2998
2999 ;
3000 return 0;
3001}
3002_ACEOF
3003rm -f conftest.o conftest.obj
jfigusc7e66e32013-05-08 11:32:55 -04003004if { { ac_try="$ac_compile"
3005case "(($ac_try" in
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3008esac
3009eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3010$as_echo "$ac_try_echo"; } >&5
3011 (eval "$ac_compile") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003012 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04003013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3014 test $ac_status = 0; }; then :
3015 for ac_file in conftest.o conftest.obj conftest.*; do
3016 test -f "$ac_file" || continue;
Cullen Jennings235513a2005-09-21 22:51:36 +00003017 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04003018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003019 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3020 break;;
3021 esac
3022done
3023else
jfigusc7e66e32013-05-08 11:32:55 -04003024 $as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003025sed 's/^/| /' conftest.$ac_ext >&5
3026
jfigusc7e66e32013-05-08 11:32:55 -04003027{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029as_fn_error $? "cannot compute suffix of object files: cannot compile
3030See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003031fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003032rm -f conftest.$ac_cv_objext conftest.$ac_ext
3033fi
jfigusc7e66e32013-05-08 11:32:55 -04003034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3035$as_echo "$ac_cv_objext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003036OBJEXT=$ac_cv_objext
3037ac_objext=$OBJEXT
jfigusc7e66e32013-05-08 11:32:55 -04003038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3039$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3040if ${ac_cv_c_compiler_gnu+:} false; then :
3041 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003042else
jfigusc7e66e32013-05-08 11:32:55 -04003043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003044/* end confdefs.h. */
3045
3046int
3047main ()
3048{
3049#ifndef __GNUC__
3050 choke me
3051#endif
3052
3053 ;
3054 return 0;
3055}
3056_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003057if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003058 ac_compiler_gnu=yes
3059else
jfigusc7e66e32013-05-08 11:32:55 -04003060 ac_compiler_gnu=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003061fi
jfigusc7e66e32013-05-08 11:32:55 -04003062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003063ac_cv_c_compiler_gnu=$ac_compiler_gnu
3064
3065fi
jfigusc7e66e32013-05-08 11:32:55 -04003066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3067$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3068if test $ac_compiler_gnu = yes; then
3069 GCC=yes
3070else
3071 GCC=
3072fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003073ac_test_CFLAGS=${CFLAGS+set}
3074ac_save_CFLAGS=$CFLAGS
jfigusc7e66e32013-05-08 11:32:55 -04003075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3076$as_echo_n "checking whether $CC accepts -g... " >&6; }
3077if ${ac_cv_prog_cc_g+:} false; then :
3078 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003079else
jfigusc7e66e32013-05-08 11:32:55 -04003080 ac_save_c_werror_flag=$ac_c_werror_flag
3081 ac_c_werror_flag=yes
3082 ac_cv_prog_cc_g=no
3083 CFLAGS="-g"
3084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003085/* end confdefs.h. */
3086
3087int
3088main ()
3089{
3090
3091 ;
3092 return 0;
3093}
3094_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003095if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003096 ac_cv_prog_cc_g=yes
3097else
jfigusc7e66e32013-05-08 11:32:55 -04003098 CFLAGS=""
3099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3100/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00003101
jfigusc7e66e32013-05-08 11:32:55 -04003102int
3103main ()
3104{
3105
3106 ;
3107 return 0;
3108}
3109_ACEOF
3110if ac_fn_c_try_compile "$LINENO"; then :
3111
3112else
3113 ac_c_werror_flag=$ac_save_c_werror_flag
3114 CFLAGS="-g"
3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116/* end confdefs.h. */
3117
3118int
3119main ()
3120{
3121
3122 ;
3123 return 0;
3124}
3125_ACEOF
3126if ac_fn_c_try_compile "$LINENO"; then :
3127 ac_cv_prog_cc_g=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003128fi
jfigusc7e66e32013-05-08 11:32:55 -04003129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003130fi
jfigusc7e66e32013-05-08 11:32:55 -04003131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132fi
3133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3134 ac_c_werror_flag=$ac_save_c_werror_flag
3135fi
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3137$as_echo "$ac_cv_prog_cc_g" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003138if test "$ac_test_CFLAGS" = set; then
3139 CFLAGS=$ac_save_CFLAGS
3140elif test $ac_cv_prog_cc_g = yes; then
3141 if test "$GCC" = yes; then
3142 CFLAGS="-g -O2"
3143 else
3144 CFLAGS="-g"
3145 fi
3146else
3147 if test "$GCC" = yes; then
3148 CFLAGS="-O2"
3149 else
3150 CFLAGS=
3151 fi
3152fi
jfigusc7e66e32013-05-08 11:32:55 -04003153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3154$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3155if ${ac_cv_prog_cc_c89+:} false; then :
3156 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003157else
jfigusc7e66e32013-05-08 11:32:55 -04003158 ac_cv_prog_cc_c89=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003159ac_save_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04003160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003161/* end confdefs.h. */
3162#include <stdarg.h>
3163#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -04003164struct stat;
Cullen Jennings235513a2005-09-21 22:51:36 +00003165/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3166struct buf { int x; };
3167FILE * (*rcsopen) (struct buf *, struct stat *, int);
3168static char *e (p, i)
3169 char **p;
3170 int i;
3171{
3172 return p[i];
3173}
3174static char *f (char * (*g) (char **, int), char **p, ...)
3175{
3176 char *s;
3177 va_list v;
3178 va_start (v,p);
3179 s = g (p, va_arg (v,int));
3180 va_end (v);
3181 return s;
3182}
David McGrewfec49dd2005-09-23 19:34:11 +00003183
3184/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3185 function prototypes and stuff, but not '\xHH' hex character constants.
3186 These don't provoke an error unfortunately, instead are silently treated
jfigusc7e66e32013-05-08 11:32:55 -04003187 as 'x'. The following induces an error, until -std is added to get
David McGrewfec49dd2005-09-23 19:34:11 +00003188 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3189 array size at least. It's necessary to write '\x00'==0 to get something
jfigusc7e66e32013-05-08 11:32:55 -04003190 that's true only with -std. */
David McGrewfec49dd2005-09-23 19:34:11 +00003191int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3192
jfigusc7e66e32013-05-08 11:32:55 -04003193/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3194 inside strings and character constants. */
3195#define FOO(x) 'x'
3196int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3197
Cullen Jennings235513a2005-09-21 22:51:36 +00003198int test (int i, double x);
3199struct s1 {int (*f) (int a);};
3200struct s2 {int (*f) (double a);};
3201int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3202int argc;
3203char **argv;
3204int
3205main ()
3206{
3207return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3208 ;
3209 return 0;
3210}
3211_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003212for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3213 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Cullen Jennings235513a2005-09-21 22:51:36 +00003214do
3215 CC="$ac_save_CC $ac_arg"
jfigusc7e66e32013-05-08 11:32:55 -04003216 if ac_fn_c_try_compile "$LINENO"; then :
3217 ac_cv_prog_cc_c89=$ac_arg
Cullen Jennings235513a2005-09-21 22:51:36 +00003218fi
jfigusc7e66e32013-05-08 11:32:55 -04003219rm -f core conftest.err conftest.$ac_objext
3220 test "x$ac_cv_prog_cc_c89" != "xno" && break
Cullen Jennings235513a2005-09-21 22:51:36 +00003221done
jfigusc7e66e32013-05-08 11:32:55 -04003222rm -f conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003223CC=$ac_save_CC
3224
3225fi
jfigusc7e66e32013-05-08 11:32:55 -04003226# AC_CACHE_VAL
3227case "x$ac_cv_prog_cc_c89" in
3228 x)
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3230$as_echo "none needed" >&6; } ;;
3231 xno)
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3233$as_echo "unsupported" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003234 *)
jfigusc7e66e32013-05-08 11:32:55 -04003235 CC="$CC $ac_cv_prog_cc_c89"
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3237$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003238esac
jfigusc7e66e32013-05-08 11:32:55 -04003239if test "x$ac_cv_prog_cc_c89" != xno; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003240
3241fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003242
Cullen Jennings235513a2005-09-21 22:51:36 +00003243ac_ext=c
3244ac_cpp='$CPP $CPPFLAGS'
3245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248
David McGrewb67061f2005-09-28 14:23:06 +00003249ac_aux_dir=
jfigusc7e66e32013-05-08 11:32:55 -04003250for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3251 if test -f "$ac_dir/install-sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003252 ac_aux_dir=$ac_dir
3253 ac_install_sh="$ac_aux_dir/install-sh -c"
3254 break
jfigusc7e66e32013-05-08 11:32:55 -04003255 elif test -f "$ac_dir/install.sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003256 ac_aux_dir=$ac_dir
3257 ac_install_sh="$ac_aux_dir/install.sh -c"
3258 break
jfigusc7e66e32013-05-08 11:32:55 -04003259 elif test -f "$ac_dir/shtool"; then
David McGrewb67061f2005-09-28 14:23:06 +00003260 ac_aux_dir=$ac_dir
3261 ac_install_sh="$ac_aux_dir/shtool install -c"
3262 break
3263 fi
3264done
3265if test -z "$ac_aux_dir"; then
jfigusc7e66e32013-05-08 11:32:55 -04003266 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
David McGrewb67061f2005-09-28 14:23:06 +00003267fi
jfigusc7e66e32013-05-08 11:32:55 -04003268
3269# These three variables are undocumented and unsupported,
3270# and are intended to be withdrawn in a future Autoconf release.
3271# They can cause serious problems if a builder's source tree is in a directory
3272# whose full name contains unusual characters.
3273ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3274ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3275ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3276
Cullen Jennings235513a2005-09-21 22:51:36 +00003277
David McGrewb67061f2005-09-28 14:23:06 +00003278# Find a good install program. We prefer a C program (faster),
3279# so one script is as good as another. But avoid the broken or
3280# incompatible versions:
3281# SysV /etc/install, /usr/sbin/install
3282# SunOS /usr/etc/install
3283# IRIX /sbin/install
3284# AIX /bin/install
3285# AmigaOS /C/install, which installs bootblocks on floppy discs
3286# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3287# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3288# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3289# OS/2's system install, which has a completely different semantic
3290# ./install, which can be erroneously created by make from ./install.sh.
jfigusc7e66e32013-05-08 11:32:55 -04003291# Reject install programs that cannot install multiple files.
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3293$as_echo_n "checking for a BSD-compatible install... " >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00003294if test -z "$INSTALL"; then
jfigusc7e66e32013-05-08 11:32:55 -04003295if ${ac_cv_path_install+:} false; then :
3296 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003297else
David McGrewb67061f2005-09-28 14:23:06 +00003298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299for as_dir in $PATH
3300do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04003303 # Account for people who put trailing slashes in PATH elements.
3304case $as_dir/ in #((
3305 ./ | .// | /[cC]/* | \
David McGrewb67061f2005-09-28 14:23:06 +00003306 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jfigusc7e66e32013-05-08 11:32:55 -04003307 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
David McGrewb67061f2005-09-28 14:23:06 +00003308 /usr/ucb/* ) ;;
3309 *)
3310 # OSF1 and SCO ODT 3.0 have their own names for install.
3311 # Don't use installbsd from OSF since it installs stuff as root
3312 # by default.
3313 for ac_prog in ginstall scoinst install; do
3314 for ac_exec_ext in '' $ac_executable_extensions; do
jfigusc7e66e32013-05-08 11:32:55 -04003315 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
David McGrewb67061f2005-09-28 14:23:06 +00003316 if test $ac_prog = install &&
3317 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3318 # AIX install. It has an incompatible calling convention.
3319 :
3320 elif test $ac_prog = install &&
3321 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3322 # program-specific install script used by HP pwplus--don't use.
3323 :
3324 else
jfigusc7e66e32013-05-08 11:32:55 -04003325 rm -rf conftest.one conftest.two conftest.dir
3326 echo one > conftest.one
3327 echo two > conftest.two
3328 mkdir conftest.dir
3329 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3330 test -s conftest.one && test -s conftest.two &&
3331 test -s conftest.dir/conftest.one &&
3332 test -s conftest.dir/conftest.two
3333 then
3334 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3335 break 3
3336 fi
David McGrewb67061f2005-09-28 14:23:06 +00003337 fi
3338 fi
3339 done
3340 done
3341 ;;
3342esac
Cullen Jennings235513a2005-09-21 22:51:36 +00003343
jfigusc7e66e32013-05-08 11:32:55 -04003344 done
3345IFS=$as_save_IFS
3346
3347rm -rf conftest.one conftest.two conftest.dir
Cullen Jennings235513a2005-09-21 22:51:36 +00003348
3349fi
David McGrewb67061f2005-09-28 14:23:06 +00003350 if test "${ac_cv_path_install+set}" = set; then
3351 INSTALL=$ac_cv_path_install
3352 else
jfigusc7e66e32013-05-08 11:32:55 -04003353 # As a last resort, use the slow shell script. Don't cache a
3354 # value for INSTALL within a source directory, because that will
David McGrewb67061f2005-09-28 14:23:06 +00003355 # break other packages using the cache if that directory is
jfigusc7e66e32013-05-08 11:32:55 -04003356 # removed, or if the value is a relative name.
David McGrewb67061f2005-09-28 14:23:06 +00003357 INSTALL=$ac_install_sh
3358 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003359fi
jfigusc7e66e32013-05-08 11:32:55 -04003360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3361$as_echo "$INSTALL" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003362
David McGrewb67061f2005-09-28 14:23:06 +00003363# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3364# It thinks the first close brace ends the variable substitution.
3365test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00003366
David McGrewb67061f2005-09-28 14:23:06 +00003367test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3368
3369test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00003370
3371
3372
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003373ac_ext=c
3374ac_cpp='$CPP $CPPFLAGS'
3375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377ac_compiler_gnu=$ac_cv_c_compiler_gnu
jfigusc7e66e32013-05-08 11:32:55 -04003378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3379$as_echo_n "checking how to run the C preprocessor... " >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003380# On Suns, sometimes $CPP names a directory.
3381if test -n "$CPP" && test -d "$CPP"; then
3382 CPP=
3383fi
3384if test -z "$CPP"; then
jfigusc7e66e32013-05-08 11:32:55 -04003385 if ${ac_cv_prog_CPP+:} false; then :
3386 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003387else
3388 # Double quotes because CPP needs to be expanded
3389 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3390 do
3391 ac_preproc_ok=false
3392for ac_c_preproc_warn_flag in '' yes
3393do
3394 # Use a header file that comes with gcc, so configuring glibc
3395 # with a fresh cross-compiler works.
3396 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3397 # <limits.h> exists even on freestanding compilers.
3398 # On the NeXT, cc -E runs the code through the compiler's parser,
3399 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04003400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003401/* end confdefs.h. */
3402#ifdef __STDC__
3403# include <limits.h>
3404#else
3405# include <assert.h>
3406#endif
3407 Syntax error
3408_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003409if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003410
jfigusc7e66e32013-05-08 11:32:55 -04003411else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003412 # Broken: fails on valid input.
3413continue
3414fi
jfigusc7e66e32013-05-08 11:32:55 -04003415rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003416
jfigusc7e66e32013-05-08 11:32:55 -04003417 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003418 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04003419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003420/* end confdefs.h. */
3421#include <ac_nonexistent.h>
3422_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003423if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003424 # Broken: success on invalid input.
3425continue
3426else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003427 # Passes both tests.
3428ac_preproc_ok=:
3429break
3430fi
jfigusc7e66e32013-05-08 11:32:55 -04003431rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003432
3433done
3434# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04003435rm -f conftest.i conftest.err conftest.$ac_ext
3436if $ac_preproc_ok; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003437 break
3438fi
3439
3440 done
3441 ac_cv_prog_CPP=$CPP
3442
3443fi
3444 CPP=$ac_cv_prog_CPP
3445else
3446 ac_cv_prog_CPP=$CPP
3447fi
jfigusc7e66e32013-05-08 11:32:55 -04003448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3449$as_echo "$CPP" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003450ac_preproc_ok=false
3451for ac_c_preproc_warn_flag in '' yes
3452do
3453 # Use a header file that comes with gcc, so configuring glibc
3454 # with a fresh cross-compiler works.
3455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3456 # <limits.h> exists even on freestanding compilers.
3457 # On the NeXT, cc -E runs the code through the compiler's parser,
3458 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04003459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003460/* end confdefs.h. */
3461#ifdef __STDC__
3462# include <limits.h>
3463#else
3464# include <assert.h>
3465#endif
3466 Syntax error
3467_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003468if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003469
jfigusc7e66e32013-05-08 11:32:55 -04003470else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003471 # Broken: fails on valid input.
3472continue
3473fi
jfigusc7e66e32013-05-08 11:32:55 -04003474rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003475
jfigusc7e66e32013-05-08 11:32:55 -04003476 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003477 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04003478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003479/* end confdefs.h. */
3480#include <ac_nonexistent.h>
3481_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003482if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003483 # Broken: success on invalid input.
3484continue
3485else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003486 # Passes both tests.
3487ac_preproc_ok=:
3488break
3489fi
jfigusc7e66e32013-05-08 11:32:55 -04003490rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003491
3492done
3493# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04003494rm -f conftest.i conftest.err conftest.$ac_ext
3495if $ac_preproc_ok; then :
3496
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003497else
jfigusc7e66e32013-05-08 11:32:55 -04003498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3501See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003502fi
3503
3504ac_ext=c
3505ac_cpp='$CPP $CPPFLAGS'
3506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509
3510
jfigusc7e66e32013-05-08 11:32:55 -04003511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3512$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3513if ${ac_cv_path_GREP+:} false; then :
3514 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003515else
jfigusc7e66e32013-05-08 11:32:55 -04003516 if test -z "$GREP"; then
3517 ac_path_GREP_found=false
3518 # Loop through the user's path and test for each of PROGNAME-LIST
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3521do
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 for ac_prog in grep ggrep; do
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3527 as_fn_executable_p "$ac_path_GREP" || continue
3528# Check for GNU ac_path_GREP and select it if it is found.
3529 # Check for GNU $ac_path_GREP
3530case `"$ac_path_GREP" --version 2>&1` in
3531*GNU*)
3532 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3533*)
3534 ac_count=0
3535 $as_echo_n 0123456789 >"conftest.in"
3536 while :
3537 do
3538 cat "conftest.in" "conftest.in" >"conftest.tmp"
3539 mv "conftest.tmp" "conftest.in"
3540 cp "conftest.in" "conftest.nl"
3541 $as_echo 'GREP' >> "conftest.nl"
3542 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3543 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3544 as_fn_arith $ac_count + 1 && ac_count=$as_val
3545 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3546 # Best one so far, save it but keep looking for a better one
3547 ac_cv_path_GREP="$ac_path_GREP"
3548 ac_path_GREP_max=$ac_count
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003549 fi
jfigusc7e66e32013-05-08 11:32:55 -04003550 # 10*(2^10) chars as input seems more than enough
3551 test $ac_count -gt 10 && break
3552 done
3553 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3554esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003555
jfigusc7e66e32013-05-08 11:32:55 -04003556 $ac_path_GREP_found && break 3
3557 done
3558 done
3559 done
3560IFS=$as_save_IFS
3561 if test -z "$ac_cv_path_GREP"; then
3562 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3563 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003564else
jfigusc7e66e32013-05-08 11:32:55 -04003565 ac_cv_path_GREP=$GREP
3566fi
3567
3568fi
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3570$as_echo "$ac_cv_path_GREP" >&6; }
3571 GREP="$ac_cv_path_GREP"
3572
3573
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3575$as_echo_n "checking for egrep... " >&6; }
3576if ${ac_cv_path_EGREP+:} false; then :
3577 $as_echo_n "(cached) " >&6
3578else
3579 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3580 then ac_cv_path_EGREP="$GREP -E"
3581 else
3582 if test -z "$EGREP"; then
3583 ac_path_EGREP_found=false
3584 # Loop through the user's path and test for each of PROGNAME-LIST
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3587do
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_prog in egrep; do
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3593 as_fn_executable_p "$ac_path_EGREP" || continue
3594# Check for GNU ac_path_EGREP and select it if it is found.
3595 # Check for GNU $ac_path_EGREP
3596case `"$ac_path_EGREP" --version 2>&1` in
3597*GNU*)
3598 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3599*)
3600 ac_count=0
3601 $as_echo_n 0123456789 >"conftest.in"
3602 while :
3603 do
3604 cat "conftest.in" "conftest.in" >"conftest.tmp"
3605 mv "conftest.tmp" "conftest.in"
3606 cp "conftest.in" "conftest.nl"
3607 $as_echo 'EGREP' >> "conftest.nl"
3608 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3609 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3610 as_fn_arith $ac_count + 1 && ac_count=$as_val
3611 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3612 # Best one so far, save it but keep looking for a better one
3613 ac_cv_path_EGREP="$ac_path_EGREP"
3614 ac_path_EGREP_max=$ac_count
3615 fi
3616 # 10*(2^10) chars as input seems more than enough
3617 test $ac_count -gt 10 && break
3618 done
3619 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3620esac
3621
3622 $ac_path_EGREP_found && break 3
3623 done
3624 done
3625 done
3626IFS=$as_save_IFS
3627 if test -z "$ac_cv_path_EGREP"; then
3628 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3629 fi
3630else
3631 ac_cv_path_EGREP=$EGREP
3632fi
3633
3634 fi
3635fi
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3637$as_echo "$ac_cv_path_EGREP" >&6; }
3638 EGREP="$ac_cv_path_EGREP"
3639
3640
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3642$as_echo_n "checking for ANSI C header files... " >&6; }
3643if ${ac_cv_header_stdc+:} false; then :
3644 $as_echo_n "(cached) " >&6
3645else
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003647/* end confdefs.h. */
3648#include <stdlib.h>
3649#include <stdarg.h>
3650#include <string.h>
3651#include <float.h>
3652
3653int
3654main ()
3655{
3656
3657 ;
3658 return 0;
3659}
3660_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003661if ac_fn_c_try_compile "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003662 ac_cv_header_stdc=yes
3663else
jfigusc7e66e32013-05-08 11:32:55 -04003664 ac_cv_header_stdc=no
jfigusa14b5a02013-03-29 12:24:12 -04003665fi
jfigusc7e66e32013-05-08 11:32:55 -04003666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003667
3668if test $ac_cv_header_stdc = yes; then
3669 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003671/* end confdefs.h. */
3672#include <string.h>
3673
3674_ACEOF
3675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003676 $EGREP "memchr" >/dev/null 2>&1; then :
3677
jfigusa14b5a02013-03-29 12:24:12 -04003678else
3679 ac_cv_header_stdc=no
3680fi
3681rm -f conftest*
3682
3683fi
3684
3685if test $ac_cv_header_stdc = yes; then
3686 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003688/* end confdefs.h. */
3689#include <stdlib.h>
3690
3691_ACEOF
3692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003693 $EGREP "free" >/dev/null 2>&1; then :
3694
jfigusa14b5a02013-03-29 12:24:12 -04003695else
3696 ac_cv_header_stdc=no
3697fi
3698rm -f conftest*
3699
3700fi
3701
3702if test $ac_cv_header_stdc = yes; then
3703 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jfigusc7e66e32013-05-08 11:32:55 -04003704 if test "$cross_compiling" = yes; then :
jfigusa14b5a02013-03-29 12:24:12 -04003705 :
3706else
jfigusc7e66e32013-05-08 11:32:55 -04003707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003708/* end confdefs.h. */
3709#include <ctype.h>
jfigusc7e66e32013-05-08 11:32:55 -04003710#include <stdlib.h>
jfigusa14b5a02013-03-29 12:24:12 -04003711#if ((' ' & 0x0FF) == 0x020)
3712# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3713# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3714#else
3715# define ISLOWER(c) \
3716 (('a' <= (c) && (c) <= 'i') \
3717 || ('j' <= (c) && (c) <= 'r') \
3718 || ('s' <= (c) && (c) <= 'z'))
3719# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3720#endif
3721
3722#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3723int
3724main ()
3725{
3726 int i;
3727 for (i = 0; i < 256; i++)
3728 if (XOR (islower (i), ISLOWER (i))
3729 || toupper (i) != TOUPPER (i))
jfigusc7e66e32013-05-08 11:32:55 -04003730 return 2;
3731 return 0;
jfigusa14b5a02013-03-29 12:24:12 -04003732}
3733_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003734if ac_fn_c_try_run "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003735
jfigusc7e66e32013-05-08 11:32:55 -04003736else
3737 ac_cv_header_stdc=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003738fi
jfigusc7e66e32013-05-08 11:32:55 -04003739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3740 conftest.$ac_objext conftest.beam conftest.$ac_ext
3741fi
3742
jfigusa14b5a02013-03-29 12:24:12 -04003743fi
3744fi
jfigusc7e66e32013-05-08 11:32:55 -04003745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3746$as_echo "$ac_cv_header_stdc" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04003747if test $ac_cv_header_stdc = yes; then
3748
jfigusc7e66e32013-05-08 11:32:55 -04003749$as_echo "#define STDC_HEADERS 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04003750
3751fi
3752
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003753# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003754for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3755 inttypes.h stdint.h unistd.h
jfigusc7e66e32013-05-08 11:32:55 -04003756do :
3757 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3758ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3759"
3760if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003761 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003762#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003763_ACEOF
3764
3765fi
3766
3767done
3768
3769
jfigusc7e66e32013-05-08 11:32:55 -04003770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3771$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3772if ${ac_cv_c_bigendian+:} false; then :
3773 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003774else
jfigusc7e66e32013-05-08 11:32:55 -04003775 ac_cv_c_bigendian=unknown
3776 # See if we're dealing with a universal compiler.
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003778/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003779#ifndef __APPLE_CC__
3780 not a universal capable compiler
3781 #endif
3782 typedef int dummy;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003783
jfigusc7e66e32013-05-08 11:32:55 -04003784_ACEOF
3785if ac_fn_c_try_compile "$LINENO"; then :
3786
3787 # Check for potential -arch flags. It is not universal unless
3788 # there are at least two -arch flags with different values.
3789 ac_arch=
3790 ac_prev=
3791 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3792 if test -n "$ac_prev"; then
3793 case $ac_word in
3794 i?86 | x86_64 | ppc | ppc64)
3795 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3796 ac_arch=$ac_word
3797 else
3798 ac_cv_c_bigendian=universal
3799 break
3800 fi
3801 ;;
3802 esac
3803 ac_prev=
3804 elif test "x$ac_word" = "x-arch"; then
3805 ac_prev=arch
3806 fi
3807 done
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003808fi
jfigusc7e66e32013-05-08 11:32:55 -04003809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 if test $ac_cv_c_bigendian = unknown; then
3811 # See if sys/param.h defines the BYTE_ORDER macro.
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003813/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003814#include <sys/types.h>
3815 #include <sys/param.h>
3816
3817int
3818main ()
3819{
3820#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3821 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3822 && LITTLE_ENDIAN)
3823 bogus endian macros
3824 #endif
3825
3826 ;
3827 return 0;
3828}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003829_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003830if ac_fn_c_try_compile "$LINENO"; then :
3831 # It does; now see whether it defined to BIG_ENDIAN or not.
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003833/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003834#include <sys/types.h>
3835 #include <sys/param.h>
3836
3837int
3838main ()
3839{
3840#if BYTE_ORDER != BIG_ENDIAN
3841 not big endian
3842 #endif
3843
3844 ;
3845 return 0;
3846}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003847_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003848if ac_fn_c_try_compile "$LINENO"; then :
3849 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003850else
jfigusc7e66e32013-05-08 11:32:55 -04003851 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003852fi
jfigusc7e66e32013-05-08 11:32:55 -04003853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854fi
3855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856 fi
3857 if test $ac_cv_c_bigendian = unknown; then
3858 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003860/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003861#include <limits.h>
3862
3863int
3864main ()
3865{
3866#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3867 bogus endian macros
3868 #endif
3869
3870 ;
3871 return 0;
3872}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003873_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003874if ac_fn_c_try_compile "$LINENO"; then :
3875 # It does; now see whether it defined to _BIG_ENDIAN or not.
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003877/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003878#include <limits.h>
3879
3880int
3881main ()
3882{
3883#ifndef _BIG_ENDIAN
3884 not big endian
3885 #endif
3886
3887 ;
3888 return 0;
3889}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003890_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003891if ac_fn_c_try_compile "$LINENO"; then :
3892 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003893else
jfigusc7e66e32013-05-08 11:32:55 -04003894 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003895fi
jfigusc7e66e32013-05-08 11:32:55 -04003896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897fi
3898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 fi
3900 if test $ac_cv_c_bigendian = unknown; then
3901 # Compile a test program.
3902 if test "$cross_compiling" = yes; then :
3903 # Try to guess by grepping values from an object file.
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003905/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003906short int ascii_mm[] =
3907 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3908 short int ascii_ii[] =
3909 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3910 int use_ascii (int i) {
3911 return ascii_mm[i] + ascii_ii[i];
3912 }
3913 short int ebcdic_ii[] =
3914 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3915 short int ebcdic_mm[] =
3916 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3917 int use_ebcdic (int i) {
3918 return ebcdic_mm[i] + ebcdic_ii[i];
3919 }
3920 extern int foo;
3921
3922int
3923main ()
3924{
3925return use_ascii (foo) == use_ebcdic (foo);
3926 ;
3927 return 0;
3928}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003929_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003930if ac_fn_c_try_compile "$LINENO"; then :
3931 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3932 ac_cv_c_bigendian=yes
3933 fi
3934 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3935 if test "$ac_cv_c_bigendian" = unknown; then
3936 ac_cv_c_bigendian=no
3937 else
3938 # finding both strings is unlikely to happen, but who knows?
3939 ac_cv_c_bigendian=unknown
3940 fi
3941 fi
3942fi
3943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003944else
jfigusc7e66e32013-05-08 11:32:55 -04003945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003946/* end confdefs.h. */
3947$ac_includes_default
3948int
3949main ()
3950{
jfigusc7e66e32013-05-08 11:32:55 -04003951
3952 /* Are we little or big endian? From Harbison&Steele. */
3953 union
3954 {
3955 long int l;
3956 char c[sizeof (long int)];
3957 } u;
3958 u.l = 1;
3959 return u.c[sizeof (long int) - 1] == 1;
3960
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003961 ;
3962 return 0;
3963}
3964_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003965if ac_fn_c_try_run "$LINENO"; then :
3966 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003967else
jfigusc7e66e32013-05-08 11:32:55 -04003968 ac_cv_c_bigendian=yes
3969fi
3970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3971 conftest.$ac_objext conftest.beam conftest.$ac_ext
3972fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003973
jfigusc7e66e32013-05-08 11:32:55 -04003974 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003975fi
jfigusc7e66e32013-05-08 11:32:55 -04003976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3977$as_echo "$ac_cv_c_bigendian" >&6; }
3978 case $ac_cv_c_bigendian in #(
3979 yes)
3980 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
3981;; #(
3982 no)
3983 ;; #(
3984 universal)
3985
3986$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3987
3988 ;; #(
3989 *)
3990 as_fn_error $? "unknown endianness
3991 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3992 esac
3993
3994
3995# Make sure we can run config.sub.
3996$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3997 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3998
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4000$as_echo_n "checking build system type... " >&6; }
4001if ${ac_cv_build+:} false; then :
4002 $as_echo_n "(cached) " >&6
4003else
4004 ac_build_alias=$build_alias
4005test "x$ac_build_alias" = x &&
4006 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4007test "x$ac_build_alias" = x &&
4008 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4009ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4010 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4011
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004012fi
jfigusc7e66e32013-05-08 11:32:55 -04004013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4014$as_echo "$ac_cv_build" >&6; }
4015case $ac_cv_build in
4016*-*-*) ;;
4017*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4018esac
4019build=$ac_cv_build
4020ac_save_IFS=$IFS; IFS='-'
4021set x $ac_cv_build
4022shift
4023build_cpu=$1
4024build_vendor=$2
4025shift; shift
4026# Remember, the first character of IFS is used to create $*,
4027# except with old shells:
4028build_os=$*
4029IFS=$ac_save_IFS
4030case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4031
4032
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4034$as_echo_n "checking host system type... " >&6; }
4035if ${ac_cv_host+:} false; then :
4036 $as_echo_n "(cached) " >&6
4037else
4038 if test "x$host_alias" = x; then
4039 ac_cv_host=$ac_cv_build
4040else
4041 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4042 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4043fi
4044
4045fi
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4047$as_echo "$ac_cv_host" >&6; }
4048case $ac_cv_host in
4049*-*-*) ;;
4050*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4051esac
4052host=$ac_cv_host
4053ac_save_IFS=$IFS; IFS='-'
4054set x $ac_cv_host
4055shift
4056host_cpu=$1
4057host_vendor=$2
4058shift; shift
4059# Remember, the first character of IFS is used to create $*,
4060# except with old shells:
4061host_os=$*
4062IFS=$ac_save_IFS
4063case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4064
4065
4066
4067case $host_cpu in
4068 i*86 | x86_64 )
4069
4070$as_echo "#define CPU_CISC 1" >>confdefs.h
4071
4072
4073$as_echo "#define HAVE_X86 1" >>confdefs.h
4074;;
4075 * )
4076 # CPU_RISC is only supported for big endian machines.
4077 if test "$ac_cv_c_bigendian" = "yes"; then
4078
4079$as_echo "#define CPU_RISC 1" >>confdefs.h
4080
4081 else
4082 $as_echo "#define CPU_CISC 1" >>confdefs.h
4083
4084 fi
4085 ;;
4086esac
4087
4088case $host_os in
4089 *cygwin*|*mingw* )
4090 EXE=.exe
4091 HOST_IS_WINDOWS=yes
4092 ;;
4093 * )
4094 EXE=""
4095 ;;
4096esac
4097 # define executable suffix; this is needed for `make clean'
4098
4099
4100# Check whether --enable-kernel-linux was given.
4101if test "${enable_kernel_linux+set}" = set; then :
4102 enableval=$enable_kernel_linux;
4103else
4104 enable_kernel_linux=no
4105fi
4106
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build for Linux kernel context" >&5
4108$as_echo_n "checking whether to build for Linux kernel context... " >&6; }
4109if test "$enable_kernel_linux" = "yes"; then
4110
4111$as_echo "#define SRTP_KERNEL 1" >>confdefs.h
4112
4113
4114$as_echo "#define SRTP_KERNEL_LINUX 1" >>confdefs.h
4115
4116fi
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_kernel_linux" >&5
4118$as_echo "$enable_kernel_linux" >&6; }
4119
4120if test "$cross_compiling" != yes -a "$HOST_IS_WINDOWS" != yes; then
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
4122$as_echo_n "checking for /dev/urandom... " >&6; }
4123if ${ac_cv_file__dev_urandom+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125else
4126 test "$cross_compiling" = yes &&
4127 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4128if test -r "/dev/urandom"; then
4129 ac_cv_file__dev_urandom=yes
4130else
4131 ac_cv_file__dev_urandom=no
4132fi
4133fi
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
4135$as_echo "$ac_cv_file__dev_urandom" >&6; }
4136if test "x$ac_cv_file__dev_urandom" = xyes; then :
4137 DEV_URANDOM=/dev/urandom
4138else
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
4140$as_echo_n "checking for /dev/random... " >&6; }
4141if ${ac_cv_file__dev_random+:} false; then :
4142 $as_echo_n "(cached) " >&6
4143else
4144 test "$cross_compiling" = yes &&
4145 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4146if test -r "/dev/random"; then
4147 ac_cv_file__dev_random=yes
4148else
4149 ac_cv_file__dev_random=no
4150fi
4151fi
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
4153$as_echo "$ac_cv_file__dev_random" >&6; }
4154if test "x$ac_cv_file__dev_random" = xyes; then :
4155 DEV_URANDOM=/dev/random
4156fi
4157
4158fi
4159
4160fi
4161
4162
4163
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4165$as_echo_n "checking for ANSI C header files... " >&6; }
4166if ${ac_cv_header_stdc+:} false; then :
4167 $as_echo_n "(cached) " >&6
4168else
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170/* end confdefs.h. */
4171#include <stdlib.h>
4172#include <stdarg.h>
4173#include <string.h>
4174#include <float.h>
4175
4176int
4177main ()
4178{
4179
4180 ;
4181 return 0;
4182}
4183_ACEOF
4184if ac_fn_c_try_compile "$LINENO"; then :
4185 ac_cv_header_stdc=yes
4186else
4187 ac_cv_header_stdc=no
4188fi
4189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190
4191if test $ac_cv_header_stdc = yes; then
4192 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194/* end confdefs.h. */
4195#include <string.h>
4196
4197_ACEOF
4198if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4199 $EGREP "memchr" >/dev/null 2>&1; then :
4200
4201else
4202 ac_cv_header_stdc=no
4203fi
4204rm -f conftest*
4205
4206fi
4207
4208if test $ac_cv_header_stdc = yes; then
4209 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211/* end confdefs.h. */
4212#include <stdlib.h>
4213
4214_ACEOF
4215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4216 $EGREP "free" >/dev/null 2>&1; then :
4217
4218else
4219 ac_cv_header_stdc=no
4220fi
4221rm -f conftest*
4222
4223fi
4224
4225if test $ac_cv_header_stdc = yes; then
4226 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4227 if test "$cross_compiling" = yes; then :
4228 :
4229else
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231/* end confdefs.h. */
4232#include <ctype.h>
4233#include <stdlib.h>
4234#if ((' ' & 0x0FF) == 0x020)
4235# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4236# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4237#else
4238# define ISLOWER(c) \
4239 (('a' <= (c) && (c) <= 'i') \
4240 || ('j' <= (c) && (c) <= 'r') \
4241 || ('s' <= (c) && (c) <= 'z'))
4242# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4243#endif
4244
4245#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4246int
4247main ()
4248{
4249 int i;
4250 for (i = 0; i < 256; i++)
4251 if (XOR (islower (i), ISLOWER (i))
4252 || toupper (i) != TOUPPER (i))
4253 return 2;
4254 return 0;
4255}
4256_ACEOF
4257if ac_fn_c_try_run "$LINENO"; then :
4258
4259else
4260 ac_cv_header_stdc=no
4261fi
4262rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4263 conftest.$ac_objext conftest.beam conftest.$ac_ext
4264fi
4265
4266fi
4267fi
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4269$as_echo "$ac_cv_header_stdc" >&6; }
4270if test $ac_cv_header_stdc = yes; then
4271
4272$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4273
4274fi
4275
4276for ac_header in stdlib.h
4277do :
4278 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4279if test "x$ac_cv_header_stdlib_h" = xyes; then :
4280 cat >>confdefs.h <<_ACEOF
4281#define HAVE_STDLIB_H 1
4282_ACEOF
4283
4284fi
4285
4286done
4287
4288for ac_header in unistd.h
4289do :
4290 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4291if test "x$ac_cv_header_unistd_h" = xyes; then :
4292 cat >>confdefs.h <<_ACEOF
4293#define HAVE_UNISTD_H 1
4294_ACEOF
4295
4296fi
4297
4298done
4299
4300for ac_header in byteswap.h
4301do :
4302 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
4303if test "x$ac_cv_header_byteswap_h" = xyes; then :
4304 cat >>confdefs.h <<_ACEOF
4305#define HAVE_BYTESWAP_H 1
4306_ACEOF
4307
4308fi
4309
4310done
4311
4312for ac_header in stdint.h
4313do :
4314 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4315if test "x$ac_cv_header_stdint_h" = xyes; then :
4316 cat >>confdefs.h <<_ACEOF
4317#define HAVE_STDINT_H 1
4318_ACEOF
4319
4320fi
4321
4322done
4323
4324for ac_header in sys/uio.h
4325do :
4326 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
4327if test "x$ac_cv_header_sys_uio_h" = xyes; then :
4328 cat >>confdefs.h <<_ACEOF
4329#define HAVE_SYS_UIO_H 1
4330_ACEOF
4331
4332fi
4333
4334done
4335
4336for ac_header in inttypes.h
4337do :
4338 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
4339if test "x$ac_cv_header_inttypes_h" = xyes; then :
4340 cat >>confdefs.h <<_ACEOF
4341#define HAVE_INTTYPES_H 1
4342_ACEOF
4343
4344fi
4345
4346done
4347
4348for ac_header in sys/types.h
4349do :
4350 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4351if test "x$ac_cv_header_sys_types_h" = xyes; then :
4352 cat >>confdefs.h <<_ACEOF
4353#define HAVE_SYS_TYPES_H 1
4354_ACEOF
4355
4356fi
4357
4358done
4359
4360for ac_header in machine/types.h
4361do :
4362 ac_fn_c_check_header_mongrel "$LINENO" "machine/types.h" "ac_cv_header_machine_types_h" "$ac_includes_default"
4363if test "x$ac_cv_header_machine_types_h" = xyes; then :
4364 cat >>confdefs.h <<_ACEOF
4365#define HAVE_MACHINE_TYPES_H 1
4366_ACEOF
4367
4368fi
4369
4370done
4371
4372for ac_header in sys/int_types.h
4373do :
4374 ac_fn_c_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default"
4375if test "x$ac_cv_header_sys_int_types_h" = xyes; then :
4376 cat >>confdefs.h <<_ACEOF
4377#define HAVE_SYS_INT_TYPES_H 1
4378_ACEOF
4379
4380fi
4381
4382done
4383
4384
4385for ac_header in sys/socket.h netinet/in.h arpa/inet.h
4386do :
4387 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4388ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4389if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4390 cat >>confdefs.h <<_ACEOF
4391#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4392_ACEOF
4393
4394fi
4395
4396done
4397
4398for ac_header in windows.h
4399do :
4400 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
4401if test "x$ac_cv_header_windows_h" = xyes; then :
4402 cat >>confdefs.h <<_ACEOF
4403#define HAVE_WINDOWS_H 1
4404_ACEOF
4405 for ac_header in winsock2.h
4406do :
4407 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4408if test "x$ac_cv_header_winsock2_h" = xyes; then :
4409 cat >>confdefs.h <<_ACEOF
4410#define HAVE_WINSOCK2_H 1
4411_ACEOF
4412
4413fi
4414
4415done
4416
4417fi
4418
4419done
4420
4421
jfigusc7e66e32013-05-08 11:32:55 -04004422ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
4423if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004424
David McGrewfec49dd2005-09-23 19:34:11 +00004425cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004426#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004427_ACEOF
4428
4429
4430fi
jfigusc7e66e32013-05-08 11:32:55 -04004431ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4432if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004433
4434cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004435#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004436_ACEOF
4437
4438
4439fi
jfigusc7e66e32013-05-08 11:32:55 -04004440ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4441if test "x$ac_cv_type_int16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004442
4443cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004444#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004445_ACEOF
4446
4447
4448fi
jfigusc7e66e32013-05-08 11:32:55 -04004449ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4450if test "x$ac_cv_type_uint16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004451
4452cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004453#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004454_ACEOF
4455
4456
4457fi
jfigusc7e66e32013-05-08 11:32:55 -04004458ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
4459if test "x$ac_cv_type_int32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004460
4461cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004462#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004463_ACEOF
4464
4465
4466fi
jfigusc7e66e32013-05-08 11:32:55 -04004467ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4468if test "x$ac_cv_type_uint32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004469
4470cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004471#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004472_ACEOF
4473
4474
4475fi
jfigusc7e66e32013-05-08 11:32:55 -04004476ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4477if test "x$ac_cv_type_uint64_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004478
4479cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004480#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004481_ACEOF
4482
4483
4484fi
4485
jfigusc7e66e32013-05-08 11:32:55 -04004486# The cast to long int works around a bug in the HP C Compiler
4487# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4488# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4489# This bug is HP SR number 8606223364.
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4491$as_echo_n "checking size of unsigned long... " >&6; }
4492if ${ac_cv_sizeof_unsigned_long+:} false; then :
4493 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004494else
jfigusc7e66e32013-05-08 11:32:55 -04004495 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 +00004496
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004497else
4498 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4501as_fn_error 77 "cannot compute sizeof (unsigned long)
4502See \`config.log' for more details" "$LINENO" 5; }
4503 else
4504 ac_cv_sizeof_unsigned_long=0
4505 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004506fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004507
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004508fi
jfigusc7e66e32013-05-08 11:32:55 -04004509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4510$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004511
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004512
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004513
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004514cat >>confdefs.h <<_ACEOF
4515#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
4516_ACEOF
4517
David McGrewfec49dd2005-09-23 19:34:11 +00004518
jfigusc7e66e32013-05-08 11:32:55 -04004519# The cast to long int works around a bug in the HP C Compiler
4520# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4521# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4522# This bug is HP SR number 8606223364.
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
4524$as_echo_n "checking size of unsigned long long... " >&6; }
4525if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
4526 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00004527else
jfigusc7e66e32013-05-08 11:32:55 -04004528 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 +00004529
David McGrewfec49dd2005-09-23 19:34:11 +00004530else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004531 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4534as_fn_error 77 "cannot compute sizeof (unsigned long long)
4535See \`config.log' for more details" "$LINENO" 5; }
4536 else
4537 ac_cv_sizeof_unsigned_long_long=0
4538 fi
David McGrewfec49dd2005-09-23 19:34:11 +00004539fi
4540
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004541fi
jfigusc7e66e32013-05-08 11:32:55 -04004542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
4543$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004544
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004545
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004546
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004547cat >>confdefs.h <<_ACEOF
4548#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00004549_ACEOF
4550
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004551
Cullen Jennings235513a2005-09-21 22:51:36 +00004552
jfigusc7e66e32013-05-08 11:32:55 -04004553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4554$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4555if ${ac_cv_c_const+:} false; then :
4556 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004557else
jfigusc7e66e32013-05-08 11:32:55 -04004558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004559/* end confdefs.h. */
4560
4561int
4562main ()
4563{
jfigusc7e66e32013-05-08 11:32:55 -04004564
Cullen Jennings235513a2005-09-21 22:51:36 +00004565#ifndef __cplusplus
jfigusc7e66e32013-05-08 11:32:55 -04004566 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00004567 typedef int charset[2];
jfigusc7e66e32013-05-08 11:32:55 -04004568 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00004569 /* SunOS 4.1.1 cc rejects this. */
jfigusc7e66e32013-05-08 11:32:55 -04004570 char const *const *pcpcc;
4571 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00004572 /* NEC SVR4.0.2 mips cc rejects this. */
4573 struct point {int x, y;};
4574 static struct point const zero = {0,0};
4575 /* AIX XL C 1.02.0.0 rejects this.
4576 It does not let you subtract one const X* pointer from another in
4577 an arm of an if-expression whose if-part is not a constant
4578 expression */
4579 const char *g = "string";
jfigusc7e66e32013-05-08 11:32:55 -04004580 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00004581 /* HPUX 7.0 cc rejects these. */
jfigusc7e66e32013-05-08 11:32:55 -04004582 ++pcpcc;
4583 ppc = (char**) pcpcc;
4584 pcpcc = (char const *const *) ppc;
4585 { /* SCO 3.2v4 cc rejects this sort of thing. */
4586 char tx;
4587 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00004588 char const *s = 0 ? (char *) 0 : (char const *) 0;
4589
4590 *t++ = 0;
jfigusc7e66e32013-05-08 11:32:55 -04004591 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004592 }
4593 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4594 int x[] = {25, 17};
4595 const int *foo = &x[0];
4596 ++foo;
4597 }
4598 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4599 typedef const int *iptr;
4600 iptr p = 0;
4601 ++p;
4602 }
jfigusc7e66e32013-05-08 11:32:55 -04004603 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00004604 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusc7e66e32013-05-08 11:32:55 -04004605 struct s { int j; const int *ap[3]; } bx;
4606 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00004607 }
4608 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4609 const int foo = 10;
jfigusc7e66e32013-05-08 11:32:55 -04004610 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004611 }
jfigusc7e66e32013-05-08 11:32:55 -04004612 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00004613#endif
4614
4615 ;
4616 return 0;
4617}
4618_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004619if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004620 ac_cv_c_const=yes
4621else
jfigusc7e66e32013-05-08 11:32:55 -04004622 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00004623fi
jfigusc7e66e32013-05-08 11:32:55 -04004624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004625fi
jfigusc7e66e32013-05-08 11:32:55 -04004626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4627$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004628if test $ac_cv_c_const = no; then
4629
jfigusc7e66e32013-05-08 11:32:55 -04004630$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004631
4632fi
4633
jfigusc7e66e32013-05-08 11:32:55 -04004634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4635$as_echo_n "checking for inline... " >&6; }
4636if ${ac_cv_c_inline+:} false; then :
4637 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004638else
4639 ac_cv_c_inline=no
4640for ac_kw in inline __inline__ __inline; do
jfigusc7e66e32013-05-08 11:32:55 -04004641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004642/* end confdefs.h. */
4643#ifndef __cplusplus
4644typedef int foo_t;
4645static $ac_kw foo_t static_foo () {return 0; }
4646$ac_kw foo_t foo () {return 0; }
4647#endif
4648
4649_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004650if ac_fn_c_try_compile "$LINENO"; then :
4651 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00004652fi
jfigusc7e66e32013-05-08 11:32:55 -04004653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00004655done
4656
4657fi
jfigusc7e66e32013-05-08 11:32:55 -04004658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4659$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00004660
Cullen Jennings235513a2005-09-21 22:51:36 +00004661case $ac_cv_c_inline in
4662 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00004663 *)
4664 case $ac_cv_c_inline in
4665 no) ac_val=;;
4666 *) ac_val=$ac_cv_c_inline;;
4667 esac
4668 cat >>confdefs.h <<_ACEOF
4669#ifndef __cplusplus
4670#define inline $ac_val
4671#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00004672_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00004673 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00004674esac
4675
jfigusc7e66e32013-05-08 11:32:55 -04004676ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4677if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004678
Cullen Jennings235513a2005-09-21 22:51:36 +00004679else
4680
4681cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004682#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00004683_ACEOF
4684
4685fi
4686
4687
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00004688for ac_func in socket inet_aton usleep sigaction
jfigusc7e66e32013-05-08 11:32:55 -04004689do :
4690 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4691ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4692if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004693 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004694#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00004695_ACEOF
4696
4697fi
4698done
4699
4700
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004701if test "x$ac_cv_func_socket" = "xno"; then
jfigusc7e66e32013-05-08 11:32:55 -04004702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4703$as_echo_n "checking for socket in -lsocket... " >&6; }
4704if ${ac_cv_lib_socket_socket+:} false; then :
4705 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00004706else
4707 ac_check_lib_save_LIBS=$LIBS
4708LIBS="-lsocket $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04004709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004710/* end confdefs.h. */
4711
jfigusc7e66e32013-05-08 11:32:55 -04004712/* Override any GCC internal prototype to avoid an error.
4713 Use char because int might match the return type of a GCC
4714 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00004715#ifdef __cplusplus
4716extern "C"
4717#endif
David McGrewb67061f2005-09-28 14:23:06 +00004718char socket ();
4719int
4720main ()
4721{
jfigusc7e66e32013-05-08 11:32:55 -04004722return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00004723 ;
4724 return 0;
4725}
4726_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004727if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00004728 ac_cv_lib_socket_socket=yes
4729else
jfigusc7e66e32013-05-08 11:32:55 -04004730 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00004731fi
jfigusc7e66e32013-05-08 11:32:55 -04004732rm -f core conftest.err conftest.$ac_objext \
4733 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004734LIBS=$ac_check_lib_save_LIBS
4735fi
jfigusc7e66e32013-05-08 11:32:55 -04004736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4737$as_echo "$ac_cv_lib_socket_socket" >&6; }
4738if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00004739 cat >>confdefs.h <<_ACEOF
4740#define HAVE_LIBSOCKET 1
4741_ACEOF
4742
4743 LIBS="-lsocket $LIBS"
4744
4745fi
4746
jfigusc7e66e32013-05-08 11:32:55 -04004747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
4748$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004749 SAVELIBS="$LIBS"
4750 LIBS="$LIBS -lwsock32"
jfigusc7e66e32013-05-08 11:32:55 -04004751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004752/* end confdefs.h. */
4753
4754#include <winsock2.h>
4755
4756int
4757main ()
4758{
4759
4760socket(0, 0, 0);
4761
4762 ;
4763 return 0;
4764}
4765_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004766if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004767 ac_cv_func_socket=yes
jfigusc7e66e32013-05-08 11:32:55 -04004768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4769$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004770else
jfigusc7e66e32013-05-08 11:32:55 -04004771 LIBS="$SAVELIBS"
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004774fi
jfigusc7e66e32013-05-08 11:32:55 -04004775rm -f core conftest.err conftest.$ac_objext \
4776 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004777fi
David McGrewb67061f2005-09-28 14:23:06 +00004778
jfigusc7e66e32013-05-08 11:32:55 -04004779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debugging" >&5
4780$as_echo_n "checking whether to compile in debugging... " >&6; }
4781# Check whether --enable-debug was given.
4782if test "${enable_debug+set}" = set; then :
4783 enableval=$enable_debug;
David McGrewb67061f2005-09-28 14:23:06 +00004784else
4785 enable_debug=yes
jfigusc7e66e32013-05-08 11:32:55 -04004786fi
4787
David McGrewb67061f2005-09-28 14:23:06 +00004788if test "$enable_debug" = "yes"; then
4789
jfigusc7e66e32013-05-08 11:32:55 -04004790$as_echo "#define ENABLE_DEBUGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004791
4792fi
jfigusc7e66e32013-05-08 11:32:55 -04004793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
4794$as_echo "$enable_debug" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004795
jfigusc7e66e32013-05-08 11:32:55 -04004796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ISMAcryp code" >&5
4797$as_echo_n "checking whether to use ISMAcryp code... " >&6; }
4798# Check whether --enable-generic-aesicm was given.
4799if test "${enable_generic_aesicm+set}" = set; then :
4800 enableval=$enable_generic_aesicm;
David McGrewb67061f2005-09-28 14:23:06 +00004801else
4802 enable_generic_aesicm=no
jfigusc7e66e32013-05-08 11:32:55 -04004803fi
4804
David McGrewb67061f2005-09-28 14:23:06 +00004805if test "$enable_generic_aesicm" = "yes"; then
4806
jfigusc7e66e32013-05-08 11:32:55 -04004807$as_echo "#define GENERIC_AESICM 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04004808
jfigusa14b5a02013-03-29 12:24:12 -04004809fi
jfigusc7e66e32013-05-08 11:32:55 -04004810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generic_aesicm" >&5
4811$as_echo "$enable_generic_aesicm" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04004812
jfigusc7e66e32013-05-08 11:32:55 -04004813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
4814$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
4815# Check whether --enable-openssl was given.
4816if test "${enable_openssl+set}" = set; then :
4817 enableval=$enable_openssl;
4818else
4819 enable_openssl=no
4820fi
jfigusa14b5a02013-03-29 12:24:12 -04004821
jfigus2b486652014-07-24 15:01:41 -04004822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
4823$as_echo "$enable_openssl" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04004824if test "$enable_openssl" = "yes"; then
Sean Brightbfb9e302014-03-24 20:45:17 -04004825 LDFLAGS="$LDFLAGS $(pkg-config --libs openssl)";
4826 CFLAGS="$CFLAGS $(pkg-config --cflags openssl)";
Cullen Jenningse1de50f2013-05-22 12:27:28 -06004827
jfigusc7e66e32013-05-08 11:32:55 -04004828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
4829$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
4830if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
4831 $as_echo_n "(cached) " >&6
4832else
4833 ac_check_lib_save_LIBS=$LIBS
4834LIBS="-lcrypto $LIBS"
4835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836/* end confdefs.h. */
4837
4838/* Override any GCC internal prototype to avoid an error.
4839 Use char because int might match the return type of a GCC
4840 builtin and then its argument prototype would still apply. */
4841#ifdef __cplusplus
4842extern "C"
4843#endif
4844char EVP_EncryptInit ();
4845int
4846main ()
4847{
4848return EVP_EncryptInit ();
4849 ;
4850 return 0;
4851}
4852_ACEOF
4853if ac_fn_c_try_link "$LINENO"; then :
4854 ac_cv_lib_crypto_EVP_EncryptInit=yes
4855else
4856 ac_cv_lib_crypto_EVP_EncryptInit=no
4857fi
4858rm -f core conftest.err conftest.$ac_objext \
4859 conftest$ac_exeext conftest.$ac_ext
4860LIBS=$ac_check_lib_save_LIBS
4861fi
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
4863$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
4864if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
4865 cat >>confdefs.h <<_ACEOF
4866#define HAVE_LIBCRYPTO 1
4867_ACEOF
4868
4869 LIBS="-lcrypto $LIBS"
4870
4871else
4872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4873$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
jfigus5b22e372013-05-09 09:23:26 -04004874as_fn_error $? "can't find openssl >1.0.1 crypto lib
4875See \`config.log' for more details" "$LINENO" 5; }
4876fi
4877
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_ctr in -lcrypto" >&5
4879$as_echo_n "checking for EVP_aes_128_ctr in -lcrypto... " >&6; }
4880if ${ac_cv_lib_crypto_EVP_aes_128_ctr+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882else
4883 ac_check_lib_save_LIBS=$LIBS
4884LIBS="-lcrypto $LIBS"
4885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886/* end confdefs.h. */
4887
4888/* Override any GCC internal prototype to avoid an error.
4889 Use char because int might match the return type of a GCC
4890 builtin and then its argument prototype would still apply. */
4891#ifdef __cplusplus
4892extern "C"
4893#endif
4894char EVP_aes_128_ctr ();
4895int
4896main ()
4897{
4898return EVP_aes_128_ctr ();
4899 ;
4900 return 0;
4901}
4902_ACEOF
4903if ac_fn_c_try_link "$LINENO"; then :
4904 ac_cv_lib_crypto_EVP_aes_128_ctr=yes
4905else
4906 ac_cv_lib_crypto_EVP_aes_128_ctr=no
4907fi
4908rm -f core conftest.err conftest.$ac_objext \
4909 conftest$ac_exeext conftest.$ac_ext
4910LIBS=$ac_check_lib_save_LIBS
4911fi
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_ctr" >&5
4913$as_echo "$ac_cv_lib_crypto_EVP_aes_128_ctr" >&6; }
4914if test "x$ac_cv_lib_crypto_EVP_aes_128_ctr" = xyes; then :
4915 cat >>confdefs.h <<_ACEOF
4916#define HAVE_LIBCRYPTO 1
4917_ACEOF
4918
4919 LIBS="-lcrypto $LIBS"
4920
4921else
4922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4924as_fn_error $? "can't find openssl >1.0.1 crypto lib
jfigusc7e66e32013-05-08 11:32:55 -04004925See \`config.log' for more details" "$LINENO" 5; }
4926fi
4927
jfigus7882dd92013-08-02 16:08:23 -04004928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lcrypto" >&5
4929$as_echo_n "checking for EVP_aes_128_gcm in -lcrypto... " >&6; }
4930if ${ac_cv_lib_crypto_EVP_aes_128_gcm+:} false; then :
4931 $as_echo_n "(cached) " >&6
4932else
4933 ac_check_lib_save_LIBS=$LIBS
4934LIBS="-lcrypto $LIBS"
4935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936/* end confdefs.h. */
4937
4938/* Override any GCC internal prototype to avoid an error.
4939 Use char because int might match the return type of a GCC
4940 builtin and then its argument prototype would still apply. */
4941#ifdef __cplusplus
4942extern "C"
4943#endif
4944char EVP_aes_128_gcm ();
4945int
4946main ()
4947{
4948return EVP_aes_128_gcm ();
4949 ;
4950 return 0;
4951}
4952_ACEOF
4953if ac_fn_c_try_link "$LINENO"; then :
4954 ac_cv_lib_crypto_EVP_aes_128_gcm=yes
4955else
4956 ac_cv_lib_crypto_EVP_aes_128_gcm=no
4957fi
4958rm -f core conftest.err conftest.$ac_objext \
4959 conftest$ac_exeext conftest.$ac_ext
4960LIBS=$ac_check_lib_save_LIBS
4961fi
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_gcm" >&5
4963$as_echo "$ac_cv_lib_crypto_EVP_aes_128_gcm" >&6; }
4964if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes; then :
4965 cat >>confdefs.h <<_ACEOF
4966#define HAVE_LIBCRYPTO 1
4967_ACEOF
4968
4969 LIBS="-lcrypto $LIBS"
4970
4971else
4972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4974as_fn_error $? "can't find openssl >1.0.1 crypto lib
4975See \`config.log' for more details" "$LINENO" 5; }
4976fi
4977
jfigusc7e66e32013-05-08 11:32:55 -04004978
4979$as_echo "#define OPENSSL 1" >>confdefs.h
4980
jfigus7882dd92013-08-02 16:08:23 -04004981 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
jfigusc7e66e32013-05-08 11:32:55 -04004982 RNG_OBJS=rand_source_ossl.o
4983 HMAC_OBJS=crypto/hash/hmac_ossl.o
4984 USE_OPENSSL=1
4985
4986else
4987 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o crypto/cipher/aes_cbc.o"
jfigus7882dd92013-08-02 16:08:23 -04004988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random device to use" >&5
4989$as_echo_n "checking which random device to use... " >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04004990 if test "$enable_kernel_linux" = "yes"; then
4991 RNG_OBJS=rand_linux_kernel.o
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux kernel builtin" >&5
4993$as_echo "Linux kernel builtin" >&6; }
4994 else
4995 RNG_OBJS=rand_source.o
4996 if test -n "$DEV_URANDOM"; then
4997
4998cat >>confdefs.h <<_ACEOF
4999#define DEV_URANDOM "$DEV_URANDOM"
5000_ACEOF
5001
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_URANDOM" >&5
5003$as_echo "$DEV_URANDOM" >&6; }
5004 else
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: standard rand() function..." >&5
5006$as_echo "standard rand() function..." >&6; }
5007 fi
5008 fi
jfigusc7e66e32013-05-08 11:32:55 -04005009 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
5010fi
5011
5012
5013
5014
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
5016$as_echo_n "checking for pcap_create in -lpcap... " >&6; }
5017if ${ac_cv_lib_pcap_pcap_create+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019else
5020 ac_check_lib_save_LIBS=$LIBS
5021LIBS="-lpcap $LIBS"
5022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023/* end confdefs.h. */
5024
5025/* Override any GCC internal prototype to avoid an error.
5026 Use char because int might match the return type of a GCC
5027 builtin and then its argument prototype would still apply. */
5028#ifdef __cplusplus
5029extern "C"
5030#endif
5031char pcap_create ();
5032int
5033main ()
5034{
5035return pcap_create ();
5036 ;
5037 return 0;
5038}
5039_ACEOF
5040if ac_fn_c_try_link "$LINENO"; then :
5041 ac_cv_lib_pcap_pcap_create=yes
5042else
5043 ac_cv_lib_pcap_pcap_create=no
5044fi
5045rm -f core conftest.err conftest.$ac_objext \
5046 conftest$ac_exeext conftest.$ac_ext
5047LIBS=$ac_check_lib_save_LIBS
5048fi
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
5050$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
5051if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
Bernardo Torresb3c51422014-10-14 12:40:09 -03005052 PCAP=1
5053 LIBS="-lpcap $LIBS"
5054 HAVE_PCAP=1
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005055
Bernardo Torresb3c51422014-10-14 12:40:09 -03005056$as_echo "#define HAVE_PCAP 1" >>confdefs.h
5057
5058
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005059
5060fi
5061
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005062
jfigusc7e66e32013-05-08 11:32:55 -04005063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5
5064$as_echo_n "checking whether to use stdout for error reporting... " >&6; }
5065# Check whether --enable-stdout was given.
5066if test "${enable_stdout+set}" = set; then :
5067 enableval=$enable_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00005068else
jfigus97a80f42014-11-04 14:15:40 -05005069 enable_stdout=no
jfigusc7e66e32013-05-08 11:32:55 -04005070fi
5071
David McGrewb67061f2005-09-28 14:23:06 +00005072if test "$enable_stdout" = "yes"; then
5073
jfigusc7e66e32013-05-08 11:32:55 -04005074$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005075
5076fi
jfigusc7e66e32013-05-08 11:32:55 -04005077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5
5078$as_echo "$enable_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005079
jfigusc7e66e32013-05-08 11:32:55 -04005080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5
5081$as_echo_n "checking whether to use /dev/console for error reporting... " >&6; }
5082# Check whether --enable-console was given.
5083if test "${enable_console+set}" = set; then :
5084 enableval=$enable_console;
David McGrewb67061f2005-09-28 14:23:06 +00005085else
5086 enable_console=no
jfigusc7e66e32013-05-08 11:32:55 -04005087fi
5088
David McGrewb67061f2005-09-28 14:23:06 +00005089if test "$enable_console" = "yes"; then
5090
jfigusc7e66e32013-05-08 11:32:55 -04005091$as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h
David McGrewb67061f2005-09-28 14:23:06 +00005092
5093
jfigusc7e66e32013-05-08 11:32:55 -04005094$as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005095
5096fi
jfigusc7e66e32013-05-08 11:32:55 -04005097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5
5098$as_echo "$enable_console" >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00005099
jfigusc7e66e32013-05-08 11:32:55 -04005100ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00005101
5102
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005103# Extract the first word of "pkg-config", so it can be a program name with args.
5104set dummy pkg-config; ac_word=$2
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106$as_echo_n "checking for $ac_word... " >&6; }
5107if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5108 $as_echo_n "(cached) " >&6
5109else
5110 if test -n "$PKG_CONFIG"; then
5111 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5112else
5113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114for as_dir in $PATH
5115do
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_PKG_CONFIG="yes"
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5123 fi
5124done
5125 done
5126IFS=$as_save_IFS
5127
5128fi
5129fi
5130PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5131if test -n "$PKG_CONFIG"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5133$as_echo "$PKG_CONFIG" >&6; }
5134else
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136$as_echo "no" >&6; }
5137fi
5138
5139
5140if test "x$PKG_CONFIG" != "x"; then
5141 HAVE_PKG_CONFIG=1
5142 ac_config_files="$ac_config_files libsrtp.pc"
5143
5144else
5145 HAVE_PKG_CONFIG=0
5146fi
5147
jfigusc7e66e32013-05-08 11:32:55 -04005148ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile"
5149
Cullen Jennings235513a2005-09-21 22:51:36 +00005150cat >confcache <<\_ACEOF
5151# This file is a shell script that caches the results of configure
5152# tests run on this system so they can be shared between configure
5153# scripts and configure runs, see configure's option --config-cache.
5154# It is not useful on other systems. If it contains results you don't
5155# want to keep, you may remove or edit it.
5156#
5157# config.status only pays attention to the cache file if you give it
5158# the --recheck option to rerun configure.
5159#
5160# `ac_cv_env_foo' variables (set or unset) will be overridden when
5161# loading this file, other *unset* `ac_cv_foo' will be assigned the
5162# following values.
5163
5164_ACEOF
5165
5166# The following way of writing the cache mishandles newlines in values,
5167# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04005168# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00005169# Ultrix sh set writes to stderr and can't be redirected directly,
5170# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04005171(
5172 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5173 eval ac_val=\$$ac_var
5174 case $ac_val in #(
5175 *${as_nl}*)
5176 case $ac_var in #(
5177 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5178$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5179 esac
5180 case $ac_var in #(
5181 _ | IFS | as_nl) ;; #(
5182 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5183 *) { eval $ac_var=; unset $ac_var;} ;;
5184 esac ;;
5185 esac
5186 done
5187
Cullen Jennings235513a2005-09-21 22:51:36 +00005188 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04005189 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5190 *${as_nl}ac_space=\ *)
5191 # `set' does not quote correctly, so add quotes: double-quote
5192 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00005193 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00005194 "s/'/'\\\\''/g;
5195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04005196 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00005197 *)
5198 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04005199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00005200 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005201 esac |
5202 sort
5203) |
Cullen Jennings235513a2005-09-21 22:51:36 +00005204 sed '
jfigusc7e66e32013-05-08 11:32:55 -04005205 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00005206 t clear
jfigusc7e66e32013-05-08 11:32:55 -04005207 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00005208 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5209 t end
jfigusc7e66e32013-05-08 11:32:55 -04005210 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5211 :end' >>confcache
5212if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5213 if test -w "$cache_file"; then
5214 if test "x$cache_file" != "x/dev/null"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5216$as_echo "$as_me: updating cache $cache_file" >&6;}
5217 if test ! -f "$cache_file" || test -h "$cache_file"; then
5218 cat confcache >"$cache_file"
5219 else
5220 case $cache_file in #(
5221 */* | ?:*)
5222 mv -f confcache "$cache_file"$$ &&
5223 mv -f "$cache_file"$$ "$cache_file" ;; #(
5224 *)
5225 mv -f confcache "$cache_file" ;;
5226 esac
5227 fi
5228 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005229 else
jfigusc7e66e32013-05-08 11:32:55 -04005230 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5231$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00005232 fi
5233fi
5234rm -f confcache
5235
5236test "x$prefix" = xNONE && prefix=$ac_default_prefix
5237# Let make expand exec_prefix.
5238test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5239
Cullen Jennings235513a2005-09-21 22:51:36 +00005240DEFS=-DHAVE_CONFIG_H
5241
5242ac_libobjs=
5243ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04005244U=
Cullen Jennings235513a2005-09-21 22:51:36 +00005245for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5246 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04005247 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5248 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5249 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5250 # will be set to the directory where LIBOBJS objects are built.
5251 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5252 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00005253done
5254LIBOBJS=$ac_libobjs
5255
5256LTLIBOBJS=$ac_ltlibobjs
5257
5258
5259
jfigusc7e66e32013-05-08 11:32:55 -04005260
5261: "${CONFIG_STATUS=./config.status}"
5262ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00005263ac_clean_files_save=$ac_clean_files
5264ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04005265{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5266$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5267as_write_fail=0
5268cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005269#! $SHELL
5270# Generated by $as_me.
5271# Run this file to recreate the current configuration.
5272# Compiler output produced by configure, useful for debugging
5273# configure, is in config.log if it exists.
5274
5275debug=false
5276ac_cs_recheck=false
5277ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04005278
Cullen Jennings235513a2005-09-21 22:51:36 +00005279SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04005280export SHELL
5281_ASEOF
5282cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5283## -------------------- ##
5284## M4sh Initialization. ##
5285## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00005286
jfigusc7e66e32013-05-08 11:32:55 -04005287# Be more Bourne compatible
5288DUALCASE=1; export DUALCASE # for MKS sh
5289if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005290 emulate sh
5291 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04005292 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00005293 # is contrary to our usage. Disable this feature.
5294 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04005295 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00005296else
jfigusc7e66e32013-05-08 11:32:55 -04005297 case `(set -o) 2>/dev/null` in #(
5298 *posix*) :
5299 set -o posix ;; #(
5300 *) :
5301 ;;
5302esac
Cullen Jennings235513a2005-09-21 22:51:36 +00005303fi
5304
5305
jfigusc7e66e32013-05-08 11:32:55 -04005306as_nl='
5307'
5308export as_nl
5309# Printing a long string crashes Solaris 7 /usr/bin/printf.
5310as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5311as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5312as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5313# Prefer a ksh shell builtin over an external printf program on Solaris,
5314# but without wasting forks for bash or zsh.
5315if test -z "$BASH_VERSION$ZSH_VERSION" \
5316 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5317 as_echo='print -r --'
5318 as_echo_n='print -rn --'
5319elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5320 as_echo='printf %s\n'
5321 as_echo_n='printf %s'
5322else
5323 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5324 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5325 as_echo_n='/usr/ucb/echo -n'
5326 else
5327 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5328 as_echo_n_body='eval
5329 arg=$1;
5330 case $arg in #(
5331 *"$as_nl"*)
5332 expr "X$arg" : "X\\(.*\\)$as_nl";
5333 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5334 esac;
5335 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5336 '
5337 export as_echo_n_body
5338 as_echo_n='sh -c $as_echo_n_body as_echo'
5339 fi
5340 export as_echo_body
5341 as_echo='sh -c $as_echo_body as_echo'
5342fi
5343
5344# The user is always right.
5345if test "${PATH_SEPARATOR+set}" != set; then
5346 PATH_SEPARATOR=:
5347 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5348 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5349 PATH_SEPARATOR=';'
5350 }
5351fi
5352
5353
5354# IFS
5355# We need space, tab and new line, in precisely that order. Quoting is
5356# there to prevent editors from complaining about space-tab.
5357# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5358# splitting by setting IFS to empty value.)
5359IFS=" "" $as_nl"
5360
5361# Find who we are. Look in the path if we contain no directory separator.
5362as_myself=
5363case $0 in #((
5364 *[\\/]* ) as_myself=$0 ;;
5365 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH
5367do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5371 done
5372IFS=$as_save_IFS
5373
5374 ;;
5375esac
5376# We did not find ourselves, most probably we were run as `sh COMMAND'
5377# in which case we are not to be found in the path.
5378if test "x$as_myself" = x; then
5379 as_myself=$0
5380fi
5381if test ! -f "$as_myself"; then
5382 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5383 exit 1
5384fi
5385
5386# Unset variables that we do not need and which cause bugs (e.g. in
5387# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5388# suppresses any "Segmentation fault" message there. '((' could
5389# trigger a bug in pdksh 5.2.14.
5390for as_var in BASH_ENV ENV MAIL MAILPATH
5391do eval test x\${$as_var+set} = xset \
5392 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5393done
Cullen Jennings235513a2005-09-21 22:51:36 +00005394PS1='$ '
5395PS2='> '
5396PS4='+ '
5397
5398# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04005399LC_ALL=C
5400export LC_ALL
5401LANGUAGE=C
5402export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04005403
jfigusc7e66e32013-05-08 11:32:55 -04005404# CDPATH.
5405(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5406
5407
5408# as_fn_error STATUS ERROR [LINENO LOG_FD]
5409# ----------------------------------------
5410# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5411# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5412# script with STATUS, using 1 if that was 0.
5413as_fn_error ()
5414{
5415 as_status=$1; test $as_status -eq 0 && as_status=1
5416 if test "$4"; then
5417 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5418 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5419 fi
5420 $as_echo "$as_me: error: $2" >&2
5421 as_fn_exit $as_status
5422} # as_fn_error
5423
5424
5425# as_fn_set_status STATUS
5426# -----------------------
5427# Set $? to STATUS, without forking.
5428as_fn_set_status ()
5429{
5430 return $1
5431} # as_fn_set_status
5432
5433# as_fn_exit STATUS
5434# -----------------
5435# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5436as_fn_exit ()
5437{
5438 set +e
5439 as_fn_set_status $1
5440 exit $1
5441} # as_fn_exit
5442
5443# as_fn_unset VAR
5444# ---------------
5445# Portably unset VAR.
5446as_fn_unset ()
5447{
5448 { eval $1=; unset $1;}
5449}
5450as_unset=as_fn_unset
5451# as_fn_append VAR VALUE
5452# ----------------------
5453# Append the text in VALUE to the end of the definition contained in VAR. Take
5454# advantage of any shell optimizations that allow amortized linear growth over
5455# repeated appends, instead of the typical quadratic growth present in naive
5456# implementations.
5457if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5458 eval 'as_fn_append ()
5459 {
5460 eval $1+=\$2
5461 }'
5462else
5463 as_fn_append ()
5464 {
5465 eval $1=\$$1\$2
5466 }
5467fi # as_fn_append
5468
5469# as_fn_arith ARG...
5470# ------------------
5471# Perform arithmetic evaluation on the ARGs, and store the result in the
5472# global $as_val. Take advantage of shells that can avoid forks. The arguments
5473# must be portable across $(()) and expr.
5474if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5475 eval 'as_fn_arith ()
5476 {
5477 as_val=$(( $* ))
5478 }'
5479else
5480 as_fn_arith ()
5481 {
5482 as_val=`expr "$@" || test $? -eq 1`
5483 }
5484fi # as_fn_arith
5485
5486
5487if expr a : '\(a\)' >/dev/null 2>&1 &&
5488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005489 as_expr=expr
5490else
5491 as_expr=false
5492fi
5493
jfigusc7e66e32013-05-08 11:32:55 -04005494if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005495 as_basename=basename
5496else
5497 as_basename=false
5498fi
5499
jfigusc7e66e32013-05-08 11:32:55 -04005500if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5501 as_dirname=dirname
5502else
5503 as_dirname=false
5504fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005505
jfigusc7e66e32013-05-08 11:32:55 -04005506as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00005507$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5508 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04005509 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5510$as_echo X/"$0" |
5511 sed '/^.*\/\([^/][^/]*\)\/*$/{
5512 s//\1/
5513 q
5514 }
5515 /^X\/\(\/\/\)$/{
5516 s//\1/
5517 q
5518 }
5519 /^X\/\(\/\).*/{
5520 s//\1/
5521 q
5522 }
5523 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005524
Cullen Jennings235513a2005-09-21 22:51:36 +00005525# Avoid depending upon Character Ranges.
5526as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5527as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5528as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5529as_cr_digits='0123456789'
5530as_cr_alnum=$as_cr_Letters$as_cr_digits
5531
jfigusc7e66e32013-05-08 11:32:55 -04005532ECHO_C= ECHO_N= ECHO_T=
5533case `echo -n x` in #(((((
5534-n*)
5535 case `echo 'xy\c'` in
5536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5537 xy) ECHO_C='\c';;
5538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5539 ECHO_T=' ';;
5540 esac;;
5541*)
5542 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00005543esac
5544
Cullen Jennings235513a2005-09-21 22:51:36 +00005545rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04005546if test -d conf$$.dir; then
5547 rm -f conf$$.dir/conf$$.file
5548else
5549 rm -f conf$$.dir
5550 mkdir conf$$.dir 2>/dev/null
5551fi
5552if (echo >conf$$.file) 2>/dev/null; then
5553 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005554 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04005555 # ... but there are two gotchas:
5556 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5557 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5558 # In both cases, we have to default to `cp -pR'.
5559 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5560 as_ln_s='cp -pR'
5561 elif ln conf$$.file conf$$ 2>/dev/null; then
5562 as_ln_s=ln
5563 else
5564 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005565 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005566else
jfigusc7e66e32013-05-08 11:32:55 -04005567 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005568fi
jfigusc7e66e32013-05-08 11:32:55 -04005569rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5570rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00005571
jfigusc7e66e32013-05-08 11:32:55 -04005572
5573# as_fn_mkdir_p
5574# -------------
5575# Create "$as_dir" as a directory, including parents if necessary.
5576as_fn_mkdir_p ()
5577{
5578
5579 case $as_dir in #(
5580 -*) as_dir=./$as_dir;;
5581 esac
5582 test -d "$as_dir" || eval $as_mkdir_p || {
5583 as_dirs=
5584 while :; do
5585 case $as_dir in #(
5586 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5587 *) as_qdir=$as_dir;;
5588 esac
5589 as_dirs="'$as_qdir' $as_dirs"
5590 as_dir=`$as_dirname -- "$as_dir" ||
5591$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5592 X"$as_dir" : 'X\(//\)[^/]' \| \
5593 X"$as_dir" : 'X\(//\)$' \| \
5594 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5595$as_echo X"$as_dir" |
5596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5597 s//\1/
5598 q
5599 }
5600 /^X\(\/\/\)[^/].*/{
5601 s//\1/
5602 q
5603 }
5604 /^X\(\/\/\)$/{
5605 s//\1/
5606 q
5607 }
5608 /^X\(\/\).*/{
5609 s//\1/
5610 q
5611 }
5612 s/.*/./; q'`
5613 test -d "$as_dir" && break
5614 done
5615 test -z "$as_dirs" || eval "mkdir $as_dirs"
5616 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5617
5618
5619} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005620if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04005621 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00005622else
David McGrewfec49dd2005-09-23 19:34:11 +00005623 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00005624 as_mkdir_p=false
5625fi
5626
jfigusc7e66e32013-05-08 11:32:55 -04005627
5628# as_fn_executable_p FILE
5629# -----------------------
5630# Test if FILE is an executable regular file.
5631as_fn_executable_p ()
5632{
5633 test -f "$1" && test -x "$1"
5634} # as_fn_executable_p
5635as_test_x='test -x'
5636as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005637
5638# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00005639as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005640
5641# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00005642as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005643
5644
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005645exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04005646## ----------------------------------- ##
5647## Main body of $CONFIG_STATUS script. ##
5648## ----------------------------------- ##
5649_ASEOF
5650test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005651
jfigusc7e66e32013-05-08 11:32:55 -04005652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5653# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00005654# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04005655# values after options handling.
5656ac_log="
jfigusb058a3b2014-10-31 09:27:18 -04005657This file was extended by libsrtp $as_me 2.0.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04005658generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00005659
5660 CONFIG_FILES = $CONFIG_FILES
5661 CONFIG_HEADERS = $CONFIG_HEADERS
5662 CONFIG_LINKS = $CONFIG_LINKS
5663 CONFIG_COMMANDS = $CONFIG_COMMANDS
5664 $ $0 $@
5665
jfigusc7e66e32013-05-08 11:32:55 -04005666on `(hostname || uname -n) 2>/dev/null | sed 1q`
5667"
5668
Cullen Jennings235513a2005-09-21 22:51:36 +00005669_ACEOF
5670
jfigusc7e66e32013-05-08 11:32:55 -04005671case $ac_config_files in *"
5672"*) set x $ac_config_files; shift; ac_config_files=$*;;
5673esac
5674
5675case $ac_config_headers in *"
5676"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5677esac
5678
5679
5680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005681# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04005682config_files="$ac_config_files"
5683config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00005684
jfigusc7e66e32013-05-08 11:32:55 -04005685_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005686
jfigusc7e66e32013-05-08 11:32:55 -04005687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005688ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04005689\`$as_me' instantiates files and other configuration actions
5690from templates according to the current configuration. Unless the files
5691and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00005692
jfigusc7e66e32013-05-08 11:32:55 -04005693Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00005694
5695 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04005696 -V, --version print version number and configuration settings, then exit
5697 --config print configuration, then exit
5698 -q, --quiet, --silent
5699 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00005700 -d, --debug don't remove temporary files
5701 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04005702 --file=FILE[:TEMPLATE]
5703 instantiate the configuration file FILE
5704 --header=FILE[:TEMPLATE]
5705 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00005706
5707Configuration files:
5708$config_files
5709
5710Configuration headers:
5711$config_headers
5712
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005713Report bugs to <https://github.com/cisco/libsrtp/issues>."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005714
jfigusc7e66e32013-05-08 11:32:55 -04005715_ACEOF
5716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5717ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00005718ac_cs_version="\\
jfigusb058a3b2014-10-31 09:27:18 -04005719libsrtp config.status 2.0.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04005720configured by $0, generated by GNU Autoconf 2.69,
5721 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00005722
jfigusc7e66e32013-05-08 11:32:55 -04005723Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00005724This config.status script is free software; the Free Software Foundation
5725gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04005726
5727ac_pwd='$ac_pwd'
5728srcdir='$srcdir'
5729INSTALL='$INSTALL'
5730test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00005731_ACEOF
5732
jfigusc7e66e32013-05-08 11:32:55 -04005733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5734# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00005735ac_need_defaults=:
5736while test $# != 0
5737do
5738 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04005739 --*=?*)
5740 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5741 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005742 ac_shift=:
5743 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005744 --*=)
5745 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5746 ac_optarg=
5747 ac_shift=:
5748 ;;
5749 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00005750 ac_option=$1
5751 ac_optarg=$2
5752 ac_shift=shift
5753 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005754 esac
5755
5756 case $ac_option in
5757 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00005758 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5759 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04005760 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5761 $as_echo "$ac_cs_version"; exit ;;
5762 --config | --confi | --conf | --con | --co | --c )
5763 $as_echo "$ac_cs_config"; exit ;;
5764 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00005765 debug=: ;;
5766 --file | --fil | --fi | --f )
5767 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04005768 case $ac_optarg in
5769 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5770 '') as_fn_error $? "missing file argument" ;;
5771 esac
5772 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005773 ac_need_defaults=false;;
5774 --header | --heade | --head | --hea )
5775 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04005776 case $ac_optarg in
5777 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5778 esac
5779 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005780 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04005781 --he | --h)
5782 # Conflict between --help and --header
5783 as_fn_error $? "ambiguous option: \`$1'
5784Try \`$0 --help' for more information.";;
5785 --help | --hel | -h )
5786 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005787 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5788 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5789 ac_cs_silent=: ;;
5790
5791 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04005792 -*) as_fn_error $? "unrecognized option: \`$1'
5793Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005794
jfigusc7e66e32013-05-08 11:32:55 -04005795 *) as_fn_append ac_config_targets " $1"
5796 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005797
5798 esac
5799 shift
5800done
5801
5802ac_configure_extra_args=
5803
5804if $ac_cs_silent; then
5805 exec 6>/dev/null
5806 ac_configure_extra_args="$ac_configure_extra_args --silent"
5807fi
5808
5809_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005811if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04005812 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5813 shift
5814 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5815 CONFIG_SHELL='$SHELL'
5816 export CONFIG_SHELL
5817 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00005818fi
5819
5820_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5822exec 5>>config.log
5823{
5824 echo
5825 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5826## Running $as_me. ##
5827_ASBOX
5828 $as_echo "$ac_log"
5829} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00005830
jfigusc7e66e32013-05-08 11:32:55 -04005831_ACEOF
5832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5833_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005834
jfigusc7e66e32013-05-08 11:32:55 -04005835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005836
jfigusc7e66e32013-05-08 11:32:55 -04005837# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00005838for ac_config_target in $ac_config_targets
5839do
jfigusc7e66e32013-05-08 11:32:55 -04005840 case $ac_config_target in
5841 "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005842 "libsrtp.pc") CONFIG_FILES="$CONFIG_FILES libsrtp.pc" ;;
jfigusc7e66e32013-05-08 11:32:55 -04005843 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5844 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
5845 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5846
5847 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005848 esac
5849done
5850
jfigusc7e66e32013-05-08 11:32:55 -04005851
Cullen Jennings235513a2005-09-21 22:51:36 +00005852# If the user did not use the arguments to specify the items to instantiate,
5853# then the envvar interface is used. Set only those that are not.
5854# We use the long form for the default assignment because of an extremely
5855# bizarre bug on SunOS 4.1.3.
5856if $ac_need_defaults; then
5857 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5858 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5859fi
5860
5861# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04005862# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00005863# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04005864# Hook for its removal unless debugging.
5865# Note that there is a small window in which the directory will not be cleaned:
5866# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00005867$debug ||
5868{
jfigusc7e66e32013-05-08 11:32:55 -04005869 tmp= ac_tmp=
5870 trap 'exit_status=$?
5871 : "${ac_tmp:=$tmp}"
5872 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5873' 0
5874 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00005875}
Cullen Jennings235513a2005-09-21 22:51:36 +00005876# Create a (secure) tmp directory for tmp files.
5877
5878{
jfigusc7e66e32013-05-08 11:32:55 -04005879 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5880 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00005881} ||
5882{
jfigusc7e66e32013-05-08 11:32:55 -04005883 tmp=./conf$$-$RANDOM
5884 (umask 077 && mkdir "$tmp")
5885} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5886ac_tmp=$tmp
5887
5888# Set up the scripts for CONFIG_FILES section.
5889# No need to generate them if there are no CONFIG_FILES.
5890# This happens for instance with `./config.status config.h'.
5891if test -n "$CONFIG_FILES"; then
5892
5893
5894ac_cr=`echo X | tr X '\015'`
5895# On cygwin, bash can eat \r inside `` if the user requested igncr.
5896# But we know of no other shell where ac_cr would be empty at this
5897# point, so we can use a bashism as a fallback.
5898if test "x$ac_cr" = x; then
5899 eval ac_cr=\$\'\\r\'
5900fi
5901ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5902if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5903 ac_cs_awk_cr='\\r'
5904else
5905 ac_cs_awk_cr=$ac_cr
5906fi
5907
5908echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5909_ACEOF
5910
5911
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005912{
jfigusc7e66e32013-05-08 11:32:55 -04005913 echo "cat >conf$$subs.awk <<_ACEOF" &&
5914 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5915 echo "_ACEOF"
5916} >conf$$subs.sh ||
5917 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5918ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5919ac_delim='%!_!# '
5920for ac_last_try in false false false false false :; do
5921 . ./conf$$subs.sh ||
5922 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5923
5924 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5925 if test $ac_delim_n = $ac_delim_num; then
5926 break
5927 elif $ac_last_try; then
5928 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5929 else
5930 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5931 fi
5932done
5933rm -f conf$$subs.sh
5934
5935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5936cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5937_ACEOF
5938sed -n '
5939h
5940s/^/S["/; s/!.*/"]=/
5941p
5942g
5943s/^[^!]*!//
5944:repl
5945t repl
5946s/'"$ac_delim"'$//
5947t delim
5948:nl
5949h
5950s/\(.\{148\}\)..*/\1/
5951t more1
5952s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5953p
5954n
5955b repl
5956:more1
5957s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5958p
5959g
5960s/.\{148\}//
5961t nl
5962:delim
5963h
5964s/\(.\{148\}\)..*/\1/
5965t more2
5966s/["\\]/\\&/g; s/^/"/; s/$/"/
5967p
5968b
5969:more2
5970s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5971p
5972g
5973s/.\{148\}//
5974t delim
5975' <conf$$subs.awk | sed '
5976/^[^""]/{
5977 N
5978 s/\n//
5979}
5980' >>$CONFIG_STATUS || ac_write_fail=1
5981rm -f conf$$subs.awk
5982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5983_ACAWK
5984cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5985 for (key in S) S_is_set[key] = 1
5986 FS = ""
5987
5988}
5989{
5990 line = $ 0
5991 nfields = split(line, field, "@")
5992 substed = 0
5993 len = length(field[1])
5994 for (i = 2; i < nfields; i++) {
5995 key = field[i]
5996 keylen = length(key)
5997 if (S_is_set[key]) {
5998 value = S[key]
5999 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6000 len += length(value) + length(field[++i])
6001 substed = 1
6002 } else
6003 len += 1 + keylen
6004 }
6005
6006 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006007}
jfigusa14b5a02013-03-29 12:24:12 -04006008
jfigusc7e66e32013-05-08 11:32:55 -04006009_ACAWK
6010_ACEOF
6011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6012if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6013 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6014else
6015 cat
6016fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6017 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04006018_ACEOF
6019
jfigusc7e66e32013-05-08 11:32:55 -04006020# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6021# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6022# trailing colons and then remove the whole line if VPATH becomes empty
6023# (actually we leave an empty line to preserve line numbers).
6024if test "x$srcdir" = x.; then
6025 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6026h
6027s///
6028s/^/:/
6029s/[ ]*$/:/
6030s/:\$(srcdir):/:/g
6031s/:\${srcdir}:/:/g
6032s/:@srcdir@:/:/g
6033s/^:*//
6034s/:*$//
6035x
6036s/\(=[ ]*\).*/\1/
6037G
6038s/\n//
6039s/^[^=]*=[ ]*$//
6040}'
6041fi
jfigusa14b5a02013-03-29 12:24:12 -04006042
jfigusc7e66e32013-05-08 11:32:55 -04006043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006044fi # test -n "$CONFIG_FILES"
6045
jfigusc7e66e32013-05-08 11:32:55 -04006046# Set up the scripts for CONFIG_HEADERS section.
6047# No need to generate them if there are no CONFIG_HEADERS.
6048# This happens for instance with `./config.status Makefile'.
6049if test -n "$CONFIG_HEADERS"; then
6050cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6051BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00006052_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006053
6054# Transform confdefs.h into an awk script `defines.awk', embedded as
6055# here-document in config.status, that substitutes the proper values into
6056# config.h.in to produce config.h.
6057
6058# Create a delimiter string that does not exist in confdefs.h, to ease
6059# handling of long lines.
6060ac_delim='%!_!# '
6061for ac_last_try in false false :; do
6062 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6063 if test -z "$ac_tt"; then
6064 break
6065 elif $ac_last_try; then
6066 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6067 else
6068 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6069 fi
6070done
6071
6072# For the awk script, D is an array of macro values keyed by name,
6073# likewise P contains macro parameters if any. Preserve backslash
6074# newline sequences.
6075
6076ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6077sed -n '
6078s/.\{148\}/&'"$ac_delim"'/g
6079t rset
6080:rset
6081s/^[ ]*#[ ]*define[ ][ ]*/ /
6082t def
6083d
6084:def
6085s/\\$//
6086t bsnl
6087s/["\\]/\\&/g
6088s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6089D["\1"]=" \3"/p
6090s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6091d
6092:bsnl
6093s/["\\]/\\&/g
6094s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6095D["\1"]=" \3\\\\\\n"\\/p
6096t cont
6097s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6098t cont
6099d
6100:cont
6101n
6102s/.\{148\}/&'"$ac_delim"'/g
6103t clear
6104:clear
6105s/\\$//
6106t bsnlc
6107s/["\\]/\\&/g; s/^/"/; s/$/"/p
6108d
6109:bsnlc
6110s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6111b cont
6112' <confdefs.h | sed '
6113s/'"$ac_delim"'/"\\\
6114"/g' >>$CONFIG_STATUS || ac_write_fail=1
6115
6116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6117 for (key in D) D_is_set[key] = 1
6118 FS = ""
6119}
6120/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6121 line = \$ 0
6122 split(line, arg, " ")
6123 if (arg[1] == "#") {
6124 defundef = arg[2]
6125 mac1 = arg[3]
6126 } else {
6127 defundef = substr(arg[1], 2)
6128 mac1 = arg[2]
6129 }
6130 split(mac1, mac2, "(") #)
6131 macro = mac2[1]
6132 prefix = substr(line, 1, index(line, defundef) - 1)
6133 if (D_is_set[macro]) {
6134 # Preserve the white space surrounding the "#".
6135 print prefix "define", macro P[macro] D[macro]
6136 next
6137 } else {
6138 # Replace #undef with comments. This is necessary, for example,
6139 # in the case of _POSIX_SOURCE, which is predefined and required
6140 # on some systems where configure will not decide to define it.
6141 if (defundef == "undef") {
6142 print "/*", prefix defundef, macro, "*/"
6143 next
6144 }
6145 }
6146}
6147{ print }
6148_ACAWK
6149_ACEOF
6150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6151 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6152fi # test -n "$CONFIG_HEADERS"
6153
6154
6155eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6156shift
6157for ac_tag
6158do
6159 case $ac_tag in
6160 :[FHLC]) ac_mode=$ac_tag; continue;;
6161 esac
6162 case $ac_mode$ac_tag in
6163 :[FHL]*:*);;
6164 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6165 :[FH]-) ac_tag=-:-;;
6166 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6167 esac
6168 ac_save_IFS=$IFS
6169 IFS=:
6170 set x $ac_tag
6171 IFS=$ac_save_IFS
6172 shift
6173 ac_file=$1
6174 shift
6175
6176 case $ac_mode in
6177 :L) ac_source=$1;;
6178 :[FH])
6179 ac_file_inputs=
6180 for ac_f
6181 do
6182 case $ac_f in
6183 -) ac_f="$ac_tmp/stdin";;
6184 *) # Look for the file first in the build tree, then in the source tree
6185 # (if the path is not absolute). The absolute path cannot be DOS-style,
6186 # because $ac_f cannot contain `:'.
6187 test -f "$ac_f" ||
6188 case $ac_f in
6189 [\\/$]*) false;;
6190 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6191 esac ||
6192 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6193 esac
6194 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6195 as_fn_append ac_file_inputs " '$ac_f'"
6196 done
6197
6198 # Let's still pretend it is `configure' which instantiates (i.e., don't
6199 # use $as_me), people would be surprised to read:
6200 # /* config.h. Generated by config.status. */
6201 configure_input='Generated from '`
6202 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6203 `' by configure.'
6204 if test x"$ac_file" != x-; then
6205 configure_input="$ac_file. $configure_input"
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6207$as_echo "$as_me: creating $ac_file" >&6;}
6208 fi
6209 # Neutralize special characters interpreted by sed in replacement strings.
6210 case $configure_input in #(
6211 *\&* | *\|* | *\\* )
6212 ac_sed_conf_input=`$as_echo "$configure_input" |
6213 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6214 *) ac_sed_conf_input=$configure_input;;
6215 esac
6216
6217 case $ac_tag in
6218 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6220 esac
6221 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006222 esac
6223
jfigusc7e66e32013-05-08 11:32:55 -04006224 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006225$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006226 X"$ac_file" : 'X\(//\)[^/]' \| \
6227 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006228 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6229$as_echo X"$ac_file" |
6230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6231 s//\1/
6232 q
6233 }
6234 /^X\(\/\/\)[^/].*/{
6235 s//\1/
6236 q
6237 }
6238 /^X\(\/\/\)$/{
6239 s//\1/
6240 q
6241 }
6242 /^X\(\/\).*/{
6243 s//\1/
6244 q
6245 }
6246 s/.*/./; q'`
6247 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006248 ac_builddir=.
6249
jfigusc7e66e32013-05-08 11:32:55 -04006250case "$ac_dir" in
6251.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6252*)
6253 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6254 # A ".." for each directory in $ac_dir_suffix.
6255 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6256 case $ac_top_builddir_sub in
6257 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6258 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6259 esac ;;
6260esac
6261ac_abs_top_builddir=$ac_pwd
6262ac_abs_builddir=$ac_pwd$ac_dir_suffix
6263# for backward compatibility:
6264ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00006265
6266case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04006267 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00006268 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04006269 ac_top_srcdir=$ac_top_builddir_sub
6270 ac_abs_top_srcdir=$ac_pwd ;;
6271 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00006272 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04006273 ac_top_srcdir=$srcdir
6274 ac_abs_top_srcdir=$srcdir ;;
6275 *) # Relative name.
6276 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6277 ac_top_srcdir=$ac_top_build_prefix$srcdir
6278 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006279esac
jfigusc7e66e32013-05-08 11:32:55 -04006280ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00006281
Cullen Jennings235513a2005-09-21 22:51:36 +00006282
jfigusc7e66e32013-05-08 11:32:55 -04006283 case $ac_mode in
6284 :F)
6285 #
6286 # CONFIG_FILE
6287 #
Cullen Jennings235513a2005-09-21 22:51:36 +00006288
David McGrewb67061f2005-09-28 14:23:06 +00006289 case $INSTALL in
6290 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04006291 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00006292 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006293_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006294
6295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6296# If the template does not know about datarootdir, expand it.
6297# FIXME: This hack should be removed a few years after 2.60.
6298ac_datarootdir_hack=; ac_datarootdir_seen=
6299ac_sed_dataroot='
6300/datarootdir/ {
6301 p
6302 q
6303}
6304/@datadir@/p
6305/@docdir@/p
6306/@infodir@/p
6307/@localedir@/p
6308/@mandir@/p'
6309case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6310*datarootdir*) ac_datarootdir_seen=yes;;
6311*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6313$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6314_ACEOF
6315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6316 ac_datarootdir_hack='
6317 s&@datadir@&$datadir&g
6318 s&@docdir@&$docdir&g
6319 s&@infodir@&$infodir&g
6320 s&@localedir@&$localedir&g
6321 s&@mandir@&$mandir&g
6322 s&\\\${datarootdir}&$datarootdir&g' ;;
6323esac
6324_ACEOF
6325
6326# Neutralize VPATH when `$srcdir' = `.'.
6327# Shell code in configure.ac might set extrasub.
6328# FIXME: do we really want to maintain this feature?
6329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6330ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00006331$extrasub
6332_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006334:t
6335/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04006336s|@configure_input@|$ac_sed_conf_input|;t t
6337s&@top_builddir@&$ac_top_builddir_sub&;t t
6338s&@top_build_prefix@&$ac_top_build_prefix&;t t
6339s&@srcdir@&$ac_srcdir&;t t
6340s&@abs_srcdir@&$ac_abs_srcdir&;t t
6341s&@top_srcdir@&$ac_top_srcdir&;t t
6342s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6343s&@builddir@&$ac_builddir&;t t
6344s&@abs_builddir@&$ac_abs_builddir&;t t
6345s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6346s&@INSTALL@&$ac_INSTALL&;t t
6347$ac_datarootdir_hack
6348"
6349eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6350 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00006351
jfigusc7e66e32013-05-08 11:32:55 -04006352test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6353 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6354 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6355 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6357which seems to be undefined. Please make sure it is defined" >&5
6358$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6359which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006360
jfigusc7e66e32013-05-08 11:32:55 -04006361 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006362 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04006363 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6364 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6365 esac \
6366 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6367 ;;
6368 :H)
6369 #
6370 # CONFIG_HEADER
6371 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006372 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04006373 {
6374 $as_echo "/* $configure_input */" \
6375 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6376 } >"$ac_tmp/config.h" \
6377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6378 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6380$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006381 else
jfigusc7e66e32013-05-08 11:32:55 -04006382 rm -f "$ac_file"
6383 mv "$ac_tmp/config.h" "$ac_file" \
6384 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006385 fi
6386 else
jfigusc7e66e32013-05-08 11:32:55 -04006387 $as_echo "/* $configure_input */" \
6388 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6389 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006390 fi
jfigusc7e66e32013-05-08 11:32:55 -04006391 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006392
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006393
jfigusc7e66e32013-05-08 11:32:55 -04006394 esac
6395
6396done # for ac_tag
6397
6398
6399as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006400_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006401ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04006402
jfigusc7e66e32013-05-08 11:32:55 -04006403test $ac_write_fail = 0 ||
6404 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6405
Cullen Jennings235513a2005-09-21 22:51:36 +00006406
6407# configure is writing to config.log, and then calls config.status.
6408# config.status does its own redirection, appending to config.log.
6409# Unfortunately, on DOS this fails, as config.log is still kept open
6410# by configure, so config.status won't be able to write to it; its
6411# output is simply discarded. So we exec the FD to /dev/null,
6412# effectively closing config.log, so it can be properly (re)opened and
6413# appended to by config.status. When coming back to configure, we
6414# need to make the FD available again.
6415if test "$no_create" != yes; then
6416 ac_cs_success=:
6417 ac_config_status_args=
6418 test "$silent" = yes &&
6419 ac_config_status_args="$ac_config_status_args --quiet"
6420 exec 5>/dev/null
6421 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6422 exec 5>>config.log
6423 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6424 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04006425 $ac_cs_success || as_fn_exit 1
6426fi
6427if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6429$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006430fi
6431
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00006432
6433# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04006434as_dir=crypto/cipher; as_fn_mkdir_p
6435as_dir=crypto/hash; as_fn_mkdir_p
6436as_dir=crypto/kernel; as_fn_mkdir_p
6437as_dir=crypto/math; as_fn_mkdir_p
6438as_dir=crypto/replay; as_fn_mkdir_p
6439as_dir=crypto/rng; as_fn_mkdir_p
6440as_dir=crypto/test; as_fn_mkdir_p
6441as_dir=doc; as_fn_mkdir_p
6442as_dir=srtp; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04006443as_dir=test; as_fn_mkdir_p