blob: b3e036f6fefe1ee814958b91588b377c39407815 [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
630RNG_EXTRA_OBJS
631RNG_OBJS
632AES_ICM_OBJS
633USE_OPENSSL
634EXE
635host_os
636host_vendor
637host_cpu
638host
639build_os
640build_vendor
641build_cpu
642build
643EGREP
644GREP
645CPP
646INSTALL_DATA
647INSTALL_SCRIPT
648INSTALL_PROGRAM
649OBJEXT
650EXEEXT
651ac_ct_CC
652CPPFLAGS
653LDFLAGS
654CFLAGS
655CC
656RANLIB
657target_alias
658host_alias
659build_alias
660LIBS
661ECHO_T
662ECHO_N
663ECHO_C
664DEFS
665mandir
666localedir
667libdir
668psdir
669pdfdir
670dvidir
671htmldir
672infodir
673docdir
674oldincludedir
675includedir
676localstatedir
677sharedstatedir
678sysconfdir
679datadir
680datarootdir
681libexecdir
682sbindir
683bindir
684program_transform_name
685prefix
686exec_prefix
687PACKAGE_URL
688PACKAGE_BUGREPORT
689PACKAGE_STRING
690PACKAGE_VERSION
691PACKAGE_TARNAME
692PACKAGE_NAME
693PATH_SEPARATOR
694SHELL'
Cullen Jennings235513a2005-09-21 22:51:36 +0000695ac_subst_files=''
jfigusc7e66e32013-05-08 11:32:55 -0400696ac_user_opts='
697enable_option_checking
698enable_kernel_linux
699enable_debug
700enable_generic_aesicm
701enable_openssl
jfigusc7e66e32013-05-08 11:32:55 -0400702enable_stdout
703enable_console
jfigusc7e66e32013-05-08 11:32:55 -0400704'
705 ac_precious_vars='build_alias
706host_alias
707target_alias
708CC
709CFLAGS
710LDFLAGS
711LIBS
712CPPFLAGS
713CPP'
714
Cullen Jennings235513a2005-09-21 22:51:36 +0000715
716# Initialize some variables set by options.
717ac_init_help=
718ac_init_version=false
jfigusc7e66e32013-05-08 11:32:55 -0400719ac_unrecognized_opts=
720ac_unrecognized_sep=
Cullen Jennings235513a2005-09-21 22:51:36 +0000721# The variables have the same names as the options, with
722# dashes changed to underlines.
723cache_file=/dev/null
724exec_prefix=NONE
725no_create=
726no_recursion=
727prefix=NONE
728program_prefix=NONE
729program_suffix=NONE
730program_transform_name=s,x,x,
731silent=
732site=
733srcdir=
734verbose=
735x_includes=NONE
736x_libraries=NONE
737
738# Installation directory options.
739# These are left unexpanded so users can "make install exec_prefix=/foo"
740# and all the variables that are supposed to be based on exec_prefix
741# by default will actually change.
742# Use braces instead of parens because sh, perl, etc. also accept them.
jfigusc7e66e32013-05-08 11:32:55 -0400743# (The list follows the same order as the GNU Coding Standards.)
Cullen Jennings235513a2005-09-21 22:51:36 +0000744bindir='${exec_prefix}/bin'
745sbindir='${exec_prefix}/sbin'
746libexecdir='${exec_prefix}/libexec'
jfigusc7e66e32013-05-08 11:32:55 -0400747datarootdir='${prefix}/share'
748datadir='${datarootdir}'
Cullen Jennings235513a2005-09-21 22:51:36 +0000749sysconfdir='${prefix}/etc'
750sharedstatedir='${prefix}/com'
751localstatedir='${prefix}/var'
Cullen Jennings235513a2005-09-21 22:51:36 +0000752includedir='${prefix}/include'
753oldincludedir='/usr/include'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200754docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
jfigusc7e66e32013-05-08 11:32:55 -0400755infodir='${datarootdir}/info'
756htmldir='${docdir}'
757dvidir='${docdir}'
758pdfdir='${docdir}'
759psdir='${docdir}'
760libdir='${exec_prefix}/lib'
761localedir='${datarootdir}/locale'
762mandir='${datarootdir}/man'
Cullen Jennings235513a2005-09-21 22:51:36 +0000763
764ac_prev=
jfigusc7e66e32013-05-08 11:32:55 -0400765ac_dashdash=
Cullen Jennings235513a2005-09-21 22:51:36 +0000766for ac_option
767do
768 # If the previous option needs an argument, assign it.
769 if test -n "$ac_prev"; then
jfigusc7e66e32013-05-08 11:32:55 -0400770 eval $ac_prev=\$ac_option
Cullen Jennings235513a2005-09-21 22:51:36 +0000771 ac_prev=
772 continue
773 fi
774
jfigusc7e66e32013-05-08 11:32:55 -0400775 case $ac_option in
776 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
777 *=) ac_optarg= ;;
778 *) ac_optarg=yes ;;
779 esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000780
781 # Accept the important Cygnus configure options, so we can diagnose typos.
782
jfigusc7e66e32013-05-08 11:32:55 -0400783 case $ac_dashdash$ac_option in
784 --)
785 ac_dashdash=yes ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000786
787 -bindir | --bindir | --bindi | --bind | --bin | --bi)
788 ac_prev=bindir ;;
789 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
790 bindir=$ac_optarg ;;
791
792 -build | --build | --buil | --bui | --bu)
793 ac_prev=build_alias ;;
794 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
795 build_alias=$ac_optarg ;;
796
797 -cache-file | --cache-file | --cache-fil | --cache-fi \
798 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
799 ac_prev=cache_file ;;
800 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
801 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
802 cache_file=$ac_optarg ;;
803
804 --config-cache | -C)
805 cache_file=config.cache ;;
806
jfigusc7e66e32013-05-08 11:32:55 -0400807 -datadir | --datadir | --datadi | --datad)
Cullen Jennings235513a2005-09-21 22:51:36 +0000808 ac_prev=datadir ;;
jfigusc7e66e32013-05-08 11:32:55 -0400809 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000810 datadir=$ac_optarg ;;
811
jfigusc7e66e32013-05-08 11:32:55 -0400812 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
813 | --dataroo | --dataro | --datar)
814 ac_prev=datarootdir ;;
815 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
816 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
817 datarootdir=$ac_optarg ;;
818
Cullen Jennings235513a2005-09-21 22:51:36 +0000819 -disable-* | --disable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400820 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000821 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400822 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
823 as_fn_error $? "invalid feature name: $ac_useropt"
824 ac_useropt_orig=$ac_useropt
825 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
826 case $ac_user_opts in
827 *"
828"enable_$ac_useropt"
829"*) ;;
830 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
831 ac_unrecognized_sep=', ';;
832 esac
833 eval enable_$ac_useropt=no ;;
834
835 -docdir | --docdir | --docdi | --doc | --do)
836 ac_prev=docdir ;;
837 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
838 docdir=$ac_optarg ;;
839
840 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
841 ac_prev=dvidir ;;
842 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
843 dvidir=$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000844
845 -enable-* | --enable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400846 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000847 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400848 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
849 as_fn_error $? "invalid feature name: $ac_useropt"
850 ac_useropt_orig=$ac_useropt
851 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
852 case $ac_user_opts in
853 *"
854"enable_$ac_useropt"
855"*) ;;
856 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
857 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000858 esac
jfigusc7e66e32013-05-08 11:32:55 -0400859 eval enable_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000860
861 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
862 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
863 | --exec | --exe | --ex)
864 ac_prev=exec_prefix ;;
865 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
866 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
867 | --exec=* | --exe=* | --ex=*)
868 exec_prefix=$ac_optarg ;;
869
870 -gas | --gas | --ga | --g)
871 # Obsolete; use --with-gas.
872 with_gas=yes ;;
873
874 -help | --help | --hel | --he | -h)
875 ac_init_help=long ;;
876 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
877 ac_init_help=recursive ;;
878 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
879 ac_init_help=short ;;
880
881 -host | --host | --hos | --ho)
882 ac_prev=host_alias ;;
883 -host=* | --host=* | --hos=* | --ho=*)
884 host_alias=$ac_optarg ;;
885
jfigusc7e66e32013-05-08 11:32:55 -0400886 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
887 ac_prev=htmldir ;;
888 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
889 | --ht=*)
890 htmldir=$ac_optarg ;;
891
Cullen Jennings235513a2005-09-21 22:51:36 +0000892 -includedir | --includedir | --includedi | --included | --include \
893 | --includ | --inclu | --incl | --inc)
894 ac_prev=includedir ;;
895 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
896 | --includ=* | --inclu=* | --incl=* | --inc=*)
897 includedir=$ac_optarg ;;
898
899 -infodir | --infodir | --infodi | --infod | --info | --inf)
900 ac_prev=infodir ;;
901 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
902 infodir=$ac_optarg ;;
903
904 -libdir | --libdir | --libdi | --libd)
905 ac_prev=libdir ;;
906 -libdir=* | --libdir=* | --libdi=* | --libd=*)
907 libdir=$ac_optarg ;;
908
909 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
910 | --libexe | --libex | --libe)
911 ac_prev=libexecdir ;;
912 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
913 | --libexe=* | --libex=* | --libe=*)
914 libexecdir=$ac_optarg ;;
915
jfigusc7e66e32013-05-08 11:32:55 -0400916 -localedir | --localedir | --localedi | --localed | --locale)
917 ac_prev=localedir ;;
918 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
919 localedir=$ac_optarg ;;
920
Cullen Jennings235513a2005-09-21 22:51:36 +0000921 -localstatedir | --localstatedir | --localstatedi | --localstated \
jfigusc7e66e32013-05-08 11:32:55 -0400922 | --localstate | --localstat | --localsta | --localst | --locals)
Cullen Jennings235513a2005-09-21 22:51:36 +0000923 ac_prev=localstatedir ;;
924 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
jfigusc7e66e32013-05-08 11:32:55 -0400925 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000926 localstatedir=$ac_optarg ;;
927
928 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
929 ac_prev=mandir ;;
930 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
931 mandir=$ac_optarg ;;
932
933 -nfp | --nfp | --nf)
934 # Obsolete; use --without-fp.
935 with_fp=no ;;
936
937 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
938 | --no-cr | --no-c | -n)
939 no_create=yes ;;
940
941 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
942 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
943 no_recursion=yes ;;
944
945 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
946 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
947 | --oldin | --oldi | --old | --ol | --o)
948 ac_prev=oldincludedir ;;
949 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
950 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
951 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
952 oldincludedir=$ac_optarg ;;
953
954 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
955 ac_prev=prefix ;;
956 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
957 prefix=$ac_optarg ;;
958
959 -program-prefix | --program-prefix | --program-prefi | --program-pref \
960 | --program-pre | --program-pr | --program-p)
961 ac_prev=program_prefix ;;
962 -program-prefix=* | --program-prefix=* | --program-prefi=* \
963 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
964 program_prefix=$ac_optarg ;;
965
966 -program-suffix | --program-suffix | --program-suffi | --program-suff \
967 | --program-suf | --program-su | --program-s)
968 ac_prev=program_suffix ;;
969 -program-suffix=* | --program-suffix=* | --program-suffi=* \
970 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
971 program_suffix=$ac_optarg ;;
972
973 -program-transform-name | --program-transform-name \
974 | --program-transform-nam | --program-transform-na \
975 | --program-transform-n | --program-transform- \
976 | --program-transform | --program-transfor \
977 | --program-transfo | --program-transf \
978 | --program-trans | --program-tran \
979 | --progr-tra | --program-tr | --program-t)
980 ac_prev=program_transform_name ;;
981 -program-transform-name=* | --program-transform-name=* \
982 | --program-transform-nam=* | --program-transform-na=* \
983 | --program-transform-n=* | --program-transform-=* \
984 | --program-transform=* | --program-transfor=* \
985 | --program-transfo=* | --program-transf=* \
986 | --program-trans=* | --program-tran=* \
987 | --progr-tra=* | --program-tr=* | --program-t=*)
988 program_transform_name=$ac_optarg ;;
989
jfigusc7e66e32013-05-08 11:32:55 -0400990 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
991 ac_prev=pdfdir ;;
992 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
993 pdfdir=$ac_optarg ;;
994
995 -psdir | --psdir | --psdi | --psd | --ps)
996 ac_prev=psdir ;;
997 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
998 psdir=$ac_optarg ;;
999
Cullen Jennings235513a2005-09-21 22:51:36 +00001000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1001 | -silent | --silent | --silen | --sile | --sil)
1002 silent=yes ;;
1003
1004 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1005 ac_prev=sbindir ;;
1006 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1007 | --sbi=* | --sb=*)
1008 sbindir=$ac_optarg ;;
1009
1010 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1011 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1012 | --sharedst | --shareds | --shared | --share | --shar \
1013 | --sha | --sh)
1014 ac_prev=sharedstatedir ;;
1015 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1016 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1017 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1018 | --sha=* | --sh=*)
1019 sharedstatedir=$ac_optarg ;;
1020
1021 -site | --site | --sit)
1022 ac_prev=site ;;
1023 -site=* | --site=* | --sit=*)
1024 site=$ac_optarg ;;
1025
1026 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1027 ac_prev=srcdir ;;
1028 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1029 srcdir=$ac_optarg ;;
1030
1031 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1032 | --syscon | --sysco | --sysc | --sys | --sy)
1033 ac_prev=sysconfdir ;;
1034 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1035 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1036 sysconfdir=$ac_optarg ;;
1037
1038 -target | --target | --targe | --targ | --tar | --ta | --t)
1039 ac_prev=target_alias ;;
1040 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1041 target_alias=$ac_optarg ;;
1042
1043 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1044 verbose=yes ;;
1045
1046 -version | --version | --versio | --versi | --vers | -V)
1047 ac_init_version=: ;;
1048
1049 -with-* | --with-*)
jfigusc7e66e32013-05-08 11:32:55 -04001050 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001051 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error $? "invalid package name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1057 *"
1058"with_$ac_useropt"
1059"*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +00001062 esac
jfigusc7e66e32013-05-08 11:32:55 -04001063 eval with_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001064
1065 -without-* | --without-*)
jfigusc7e66e32013-05-08 11:32:55 -04001066 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001067 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error $? "invalid package name: $ac_useropt"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1073 *"
1074"with_$ac_useropt"
1075"*) ;;
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval with_$ac_useropt=no ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001080
1081 --x)
1082 # Obsolete; use --with-x.
1083 with_x=yes ;;
1084
1085 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1086 | --x-incl | --x-inc | --x-in | --x-i)
1087 ac_prev=x_includes ;;
1088 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1089 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1090 x_includes=$ac_optarg ;;
1091
1092 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1093 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1094 ac_prev=x_libraries ;;
1095 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1096 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1097 x_libraries=$ac_optarg ;;
1098
jfigusc7e66e32013-05-08 11:32:55 -04001099 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1100Try \`$0 --help' for more information"
Cullen Jennings235513a2005-09-21 22:51:36 +00001101 ;;
1102
1103 *=*)
1104 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1105 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001106 case $ac_envvar in #(
1107 '' | [0-9]* | *[!_$as_cr_alnum]* )
1108 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1109 esac
1110 eval $ac_envvar=\$ac_optarg
Cullen Jennings235513a2005-09-21 22:51:36 +00001111 export $ac_envvar ;;
1112
1113 *)
1114 # FIXME: should be removed in autoconf 3.0.
jfigusc7e66e32013-05-08 11:32:55 -04001115 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Cullen Jennings235513a2005-09-21 22:51:36 +00001116 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jfigusc7e66e32013-05-08 11:32:55 -04001117 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1118 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Cullen Jennings235513a2005-09-21 22:51:36 +00001119 ;;
1120
1121 esac
1122done
1123
1124if test -n "$ac_prev"; then
1125 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jfigusc7e66e32013-05-08 11:32:55 -04001126 as_fn_error $? "missing argument to $ac_option"
Cullen Jennings235513a2005-09-21 22:51:36 +00001127fi
1128
jfigusc7e66e32013-05-08 11:32:55 -04001129if test -n "$ac_unrecognized_opts"; then
1130 case $enable_option_checking in
1131 no) ;;
1132 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1133 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001134 esac
jfigusc7e66e32013-05-08 11:32:55 -04001135fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001136
jfigusc7e66e32013-05-08 11:32:55 -04001137# Check all directory arguments for consistency.
1138for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1139 datadir sysconfdir sharedstatedir localstatedir includedir \
1140 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1141 libdir localedir mandir
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001142do
jfigusc7e66e32013-05-08 11:32:55 -04001143 eval ac_val=\$$ac_var
1144 # Remove trailing slashes.
jfigusa14b5a02013-03-29 12:24:12 -04001145 case $ac_val in
jfigusc7e66e32013-05-08 11:32:55 -04001146 */ )
1147 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1148 eval $ac_var=\$ac_val;;
jfigusa14b5a02013-03-29 12:24:12 -04001149 esac
jfigusc7e66e32013-05-08 11:32:55 -04001150 # Be sure to have absolute directory names.
1151 case $ac_val in
1152 [\\/$]* | ?:[\\/]* ) continue;;
1153 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1154 esac
1155 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Cullen Jennings235513a2005-09-21 22:51:36 +00001156done
1157
1158# There might be people who depend on the old broken behavior: `$host'
1159# used to hold the argument of --host etc.
1160# FIXME: To remove some day.
1161build=$build_alias
1162host=$host_alias
1163target=$target_alias
1164
1165# FIXME: To remove some day.
1166if test "x$host_alias" != x; then
1167 if test "x$build_alias" = x; then
1168 cross_compiling=maybe
Cullen Jennings235513a2005-09-21 22:51:36 +00001169 elif test "x$build_alias" != "x$host_alias"; then
1170 cross_compiling=yes
1171 fi
1172fi
1173
1174ac_tool_prefix=
1175test -n "$host_alias" && ac_tool_prefix=$host_alias-
1176
1177test "$silent" = yes && exec 6>/dev/null
1178
1179
jfigusc7e66e32013-05-08 11:32:55 -04001180ac_pwd=`pwd` && test -n "$ac_pwd" &&
1181ac_ls_di=`ls -di .` &&
1182ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1183 as_fn_error $? "working directory cannot be determined"
1184test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1185 as_fn_error $? "pwd does not report name of working directory"
1186
1187
Cullen Jennings235513a2005-09-21 22:51:36 +00001188# Find the source files, if location was not specified.
1189if test -z "$srcdir"; then
1190 ac_srcdir_defaulted=yes
jfigusc7e66e32013-05-08 11:32:55 -04001191 # Try the directory containing this script, then the parent directory.
1192 ac_confdir=`$as_dirname -- "$as_myself" ||
1193$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1194 X"$as_myself" : 'X\(//\)[^/]' \| \
1195 X"$as_myself" : 'X\(//\)$' \| \
1196 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1197$as_echo X"$as_myself" |
1198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1199 s//\1/
1200 q
1201 }
1202 /^X\(\/\/\)[^/].*/{
1203 s//\1/
1204 q
1205 }
1206 /^X\(\/\/\)$/{
1207 s//\1/
1208 q
1209 }
1210 /^X\(\/\).*/{
1211 s//\1/
1212 q
1213 }
1214 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001215 srcdir=$ac_confdir
jfigusc7e66e32013-05-08 11:32:55 -04001216 if test ! -r "$srcdir/$ac_unique_file"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00001217 srcdir=..
1218 fi
1219else
1220 ac_srcdir_defaulted=no
1221fi
jfigusc7e66e32013-05-08 11:32:55 -04001222if test ! -r "$srcdir/$ac_unique_file"; then
1223 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1224 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Cullen Jennings235513a2005-09-21 22:51:36 +00001225fi
jfigusc7e66e32013-05-08 11:32:55 -04001226ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1227ac_abs_confdir=`(
1228 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1229 pwd)`
1230# When building in place, set srcdir=.
1231if test "$ac_abs_confdir" = "$ac_pwd"; then
1232 srcdir=.
1233fi
1234# Remove unnecessary trailing slashes from srcdir.
1235# Double slashes in file names in object file debugging info
1236# mess up M-x gdb in Emacs.
1237case $srcdir in
1238*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1239esac
1240for ac_var in $ac_precious_vars; do
1241 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1242 eval ac_env_${ac_var}_value=\$${ac_var}
1243 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1244 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1245done
Cullen Jennings235513a2005-09-21 22:51:36 +00001246
1247#
1248# Report the --help message.
1249#
1250if test "$ac_init_help" = "long"; then
1251 # Omit some internal or obsolete options to make the list less imposing.
1252 # This message is too long to be a string in the A/UX 3.1 sh.
1253 cat <<_ACEOF
jfigusb058a3b2014-10-31 09:27:18 -04001254\`configure' configures libsrtp 2.0.0-pre to adapt to many kinds of systems.
Cullen Jennings235513a2005-09-21 22:51:36 +00001255
1256Usage: $0 [OPTION]... [VAR=VALUE]...
1257
1258To assign environment variables (e.g., CC, CFLAGS...), specify them as
1259VAR=VALUE. See below for descriptions of some of the useful variables.
1260
1261Defaults for the options are specified in brackets.
1262
1263Configuration:
1264 -h, --help display this help and exit
1265 --help=short display options specific to this package
1266 --help=recursive display the short help of all the included packages
1267 -V, --version display version information and exit
jfigusc7e66e32013-05-08 11:32:55 -04001268 -q, --quiet, --silent do not print \`checking ...' messages
Cullen Jennings235513a2005-09-21 22:51:36 +00001269 --cache-file=FILE cache test results in FILE [disabled]
1270 -C, --config-cache alias for \`--cache-file=config.cache'
1271 -n, --no-create do not create output files
1272 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1273
Cullen Jennings235513a2005-09-21 22:51:36 +00001274Installation directories:
1275 --prefix=PREFIX install architecture-independent files in PREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001276 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +00001277 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001278 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +00001279
1280By default, \`make install' will install all the files in
1281\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1282an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1283for instance \`--prefix=\$HOME'.
1284
1285For better control, use the options below.
1286
1287Fine tuning of the installation directories:
jfigusc7e66e32013-05-08 11:32:55 -04001288 --bindir=DIR user executables [EPREFIX/bin]
1289 --sbindir=DIR system admin executables [EPREFIX/sbin]
1290 --libexecdir=DIR program executables [EPREFIX/libexec]
1291 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1292 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1293 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1294 --libdir=DIR object code libraries [EPREFIX/lib]
1295 --includedir=DIR C header files [PREFIX/include]
1296 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1297 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1298 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1299 --infodir=DIR info documentation [DATAROOTDIR/info]
1300 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1301 --mandir=DIR man documentation [DATAROOTDIR/man]
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001302 --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp]
jfigusc7e66e32013-05-08 11:32:55 -04001303 --htmldir=DIR html documentation [DOCDIR]
1304 --dvidir=DIR dvi documentation [DOCDIR]
1305 --pdfdir=DIR pdf documentation [DOCDIR]
1306 --psdir=DIR ps documentation [DOCDIR]
Cullen Jennings235513a2005-09-21 22:51:36 +00001307_ACEOF
1308
1309 cat <<\_ACEOF
1310
1311System types:
1312 --build=BUILD configure for building on BUILD [guessed]
1313 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1314_ACEOF
1315fi
1316
1317if test -n "$ac_init_help"; then
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001318 case $ac_init_help in
jfigusb058a3b2014-10-31 09:27:18 -04001319 short | recursive ) echo "Configuration of libsrtp 2.0.0-pre:";;
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001320 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00001321 cat <<\_ACEOF
1322
1323Optional Features:
jfigusc7e66e32013-05-08 11:32:55 -04001324 --disable-option-checking ignore unrecognized --enable/--with options
Cullen Jennings235513a2005-09-21 22:51:36 +00001325 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1326 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Marcus Sundberg64536cc2005-10-03 15:23:13 +00001327 --enable-kernel-linux build library to run in Linux kernel context
David McGrewb67061f2005-09-28 14:23:06 +00001328 --disable-debug do not compile in dynamic debugging system
1329 --enable-generic-aesicm compile in changes for ISMAcryp
jfigusc7e66e32013-05-08 11:32:55 -04001330 --enable-openssl compile in OpenSSL crypto engine
jfigus97a80f42014-11-04 14:15:40 -05001331 --enable-stdout use stdout for debug/error reporting
David McGrewb67061f2005-09-28 14:23:06 +00001332 --enable-console use /dev/console for error reporting
Cullen Jennings235513a2005-09-21 22:51:36 +00001333
1334Some influential environment variables:
1335 CC C compiler command
1336 CFLAGS C compiler flags
1337 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1338 nonstandard directory <lib dir>
jfigusc7e66e32013-05-08 11:32:55 -04001339 LIBS libraries to pass to the linker, e.g. -l<library>
1340 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1341 you have headers in a nonstandard directory <include dir>
Cullen Jennings235513a2005-09-21 22:51:36 +00001342 CPP C preprocessor
1343
1344Use these variables to override the choices made by `configure' or to help
1345it to find libraries and programs with nonstandard names/locations.
1346
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001347Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00001348_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001349ac_status=$?
Cullen Jennings235513a2005-09-21 22:51:36 +00001350fi
1351
1352if test "$ac_init_help" = "recursive"; then
1353 # If there are subdirs, report their specific --help.
Cullen Jennings235513a2005-09-21 22:51:36 +00001354 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jfigusc7e66e32013-05-08 11:32:55 -04001355 test -d "$ac_dir" ||
1356 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1357 continue
Cullen Jennings235513a2005-09-21 22:51:36 +00001358 ac_builddir=.
1359
jfigusc7e66e32013-05-08 11:32:55 -04001360case "$ac_dir" in
1361.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1362*)
1363 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1364 # A ".." for each directory in $ac_dir_suffix.
1365 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1366 case $ac_top_builddir_sub in
1367 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1368 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1369 esac ;;
1370esac
1371ac_abs_top_builddir=$ac_pwd
1372ac_abs_builddir=$ac_pwd$ac_dir_suffix
1373# for backward compatibility:
1374ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00001375
1376case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04001377 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00001378 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04001379 ac_top_srcdir=$ac_top_builddir_sub
1380 ac_abs_top_srcdir=$ac_pwd ;;
1381 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001382 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04001383 ac_top_srcdir=$srcdir
1384 ac_abs_top_srcdir=$srcdir ;;
1385 *) # Relative name.
1386 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1387 ac_top_srcdir=$ac_top_build_prefix$srcdir
1388 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001389esac
jfigusc7e66e32013-05-08 11:32:55 -04001390ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001391
jfigusc7e66e32013-05-08 11:32:55 -04001392 cd "$ac_dir" || { ac_status=$?; continue; }
1393 # Check for guested configure.
1394 if test -f "$ac_srcdir/configure.gnu"; then
1395 echo &&
1396 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1397 elif test -f "$ac_srcdir/configure"; then
1398 echo &&
1399 $SHELL "$ac_srcdir/configure" --help=recursive
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001400 else
jfigusc7e66e32013-05-08 11:32:55 -04001401 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1402 fi || ac_status=$?
1403 cd "$ac_pwd" || { ac_status=$?; break; }
Cullen Jennings235513a2005-09-21 22:51:36 +00001404 done
1405fi
1406
jfigusc7e66e32013-05-08 11:32:55 -04001407test -n "$ac_init_help" && exit $ac_status
Cullen Jennings235513a2005-09-21 22:51:36 +00001408if $ac_init_version; then
1409 cat <<\_ACEOF
jfigusb058a3b2014-10-31 09:27:18 -04001410libsrtp configure 2.0.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04001411generated by GNU Autoconf 2.69
Cullen Jennings235513a2005-09-21 22:51:36 +00001412
jfigusc7e66e32013-05-08 11:32:55 -04001413Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00001414This configure script is free software; the Free Software Foundation
1415gives unlimited permission to copy, distribute and modify it.
1416_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001417 exit
Cullen Jennings235513a2005-09-21 22:51:36 +00001418fi
jfigusc7e66e32013-05-08 11:32:55 -04001419
1420## ------------------------ ##
1421## Autoconf initialization. ##
1422## ------------------------ ##
1423
1424# ac_fn_c_try_compile LINENO
1425# --------------------------
1426# Try to compile conftest.$ac_ext, and return whether this succeeded.
1427ac_fn_c_try_compile ()
1428{
1429 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1430 rm -f conftest.$ac_objext
1431 if { { ac_try="$ac_compile"
1432case "(($ac_try" in
1433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1434 *) ac_try_echo=$ac_try;;
1435esac
1436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1437$as_echo "$ac_try_echo"; } >&5
1438 (eval "$ac_compile") 2>conftest.err
1439 ac_status=$?
1440 if test -s conftest.err; then
1441 grep -v '^ *+' conftest.err >conftest.er1
1442 cat conftest.er1 >&5
1443 mv -f conftest.er1 conftest.err
1444 fi
1445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1446 test $ac_status = 0; } && {
1447 test -z "$ac_c_werror_flag" ||
1448 test ! -s conftest.err
1449 } && test -s conftest.$ac_objext; then :
1450 ac_retval=0
1451else
1452 $as_echo "$as_me: failed program was:" >&5
1453sed 's/^/| /' conftest.$ac_ext >&5
1454
1455 ac_retval=1
1456fi
1457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1458 as_fn_set_status $ac_retval
1459
1460} # ac_fn_c_try_compile
1461
1462# ac_fn_c_try_run LINENO
1463# ----------------------
1464# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1465# that executables *can* be run.
1466ac_fn_c_try_run ()
1467{
1468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1469 if { { ac_try="$ac_link"
1470case "(($ac_try" in
1471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1472 *) ac_try_echo=$ac_try;;
1473esac
1474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1475$as_echo "$ac_try_echo"; } >&5
1476 (eval "$ac_link") 2>&5
1477 ac_status=$?
1478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1479 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1480 { { case "(($ac_try" in
1481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1482 *) ac_try_echo=$ac_try;;
1483esac
1484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1485$as_echo "$ac_try_echo"; } >&5
1486 (eval "$ac_try") 2>&5
1487 ac_status=$?
1488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1489 test $ac_status = 0; }; }; then :
1490 ac_retval=0
1491else
1492 $as_echo "$as_me: program exited with status $ac_status" >&5
1493 $as_echo "$as_me: failed program was:" >&5
1494sed 's/^/| /' conftest.$ac_ext >&5
1495
1496 ac_retval=$ac_status
1497fi
1498 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1499 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1500 as_fn_set_status $ac_retval
1501
1502} # ac_fn_c_try_run
1503
1504# ac_fn_c_try_cpp LINENO
1505# ----------------------
1506# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1507ac_fn_c_try_cpp ()
1508{
1509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510 if { { ac_try="$ac_cpp conftest.$ac_ext"
1511case "(($ac_try" in
1512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513 *) ac_try_echo=$ac_try;;
1514esac
1515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516$as_echo "$ac_try_echo"; } >&5
1517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1518 ac_status=$?
1519 if test -s conftest.err; then
1520 grep -v '^ *+' conftest.err >conftest.er1
1521 cat conftest.er1 >&5
1522 mv -f conftest.er1 conftest.err
1523 fi
1524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525 test $ac_status = 0; } > conftest.i && {
1526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1527 test ! -s conftest.err
1528 }; then :
1529 ac_retval=0
1530else
1531 $as_echo "$as_me: failed program was:" >&5
1532sed 's/^/| /' conftest.$ac_ext >&5
1533
1534 ac_retval=1
1535fi
1536 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1537 as_fn_set_status $ac_retval
1538
1539} # ac_fn_c_try_cpp
1540
1541# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1542# -------------------------------------------------------
1543# Tests whether HEADER exists and can be compiled using the include files in
1544# INCLUDES, setting the cache variable VAR accordingly.
1545ac_fn_c_check_header_compile ()
1546{
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1549$as_echo_n "checking for $2... " >&6; }
1550if eval \${$3+:} false; then :
1551 $as_echo_n "(cached) " >&6
1552else
1553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1554/* end confdefs.h. */
1555$4
1556#include <$2>
1557_ACEOF
1558if ac_fn_c_try_compile "$LINENO"; then :
1559 eval "$3=yes"
1560else
1561 eval "$3=no"
1562fi
1563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1564fi
1565eval ac_res=\$$3
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1567$as_echo "$ac_res" >&6; }
1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569
1570} # ac_fn_c_check_header_compile
1571
1572# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1573# -------------------------------------------------------
1574# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1575# the include files in INCLUDES and setting the cache variable VAR
1576# accordingly.
1577ac_fn_c_check_header_mongrel ()
1578{
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 if eval \${$3+:} false; then :
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1582$as_echo_n "checking for $2... " >&6; }
1583if eval \${$3+:} false; then :
1584 $as_echo_n "(cached) " >&6
1585fi
1586eval ac_res=\$$3
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1588$as_echo "$ac_res" >&6; }
1589else
1590 # Is the header compilable?
1591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1592$as_echo_n "checking $2 usability... " >&6; }
1593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594/* end confdefs.h. */
1595$4
1596#include <$2>
1597_ACEOF
1598if ac_fn_c_try_compile "$LINENO"; then :
1599 ac_header_compiler=yes
1600else
1601 ac_header_compiler=no
1602fi
1603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1605$as_echo "$ac_header_compiler" >&6; }
1606
1607# Is the header present?
1608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1609$as_echo_n "checking $2 presence... " >&6; }
1610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611/* end confdefs.h. */
1612#include <$2>
1613_ACEOF
1614if ac_fn_c_try_cpp "$LINENO"; then :
1615 ac_header_preproc=yes
1616else
1617 ac_header_preproc=no
1618fi
1619rm -f conftest.err conftest.i conftest.$ac_ext
1620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1621$as_echo "$ac_header_preproc" >&6; }
1622
1623# So? What about this header?
1624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1625 yes:no: )
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1627$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1629$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1630 ;;
1631 no:yes:* )
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1633$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1635$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1637$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1639$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1641$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001642( $as_echo "## ------------------------------------------------------ ##
1643## Report this to https://github.com/cisco/libsrtp/issues ##
1644## ------------------------------------------------------ ##"
1645 ) | sed "s/^/$as_me: WARNING: /" >&2
jfigusc7e66e32013-05-08 11:32:55 -04001646 ;;
1647esac
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649$as_echo_n "checking for $2... " >&6; }
1650if eval \${$3+:} false; then :
1651 $as_echo_n "(cached) " >&6
1652else
1653 eval "$3=\$ac_header_compiler"
1654fi
1655eval ac_res=\$$3
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1657$as_echo "$ac_res" >&6; }
1658fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660
1661} # ac_fn_c_check_header_mongrel
1662
1663# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1664# -------------------------------------------
1665# Tests whether TYPE exists after having included INCLUDES, setting cache
1666# variable VAR accordingly.
1667ac_fn_c_check_type ()
1668{
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671$as_echo_n "checking for $2... " >&6; }
1672if eval \${$3+:} false; then :
1673 $as_echo_n "(cached) " >&6
1674else
1675 eval "$3=no"
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677/* end confdefs.h. */
1678$4
1679int
1680main ()
1681{
1682if (sizeof ($2))
1683 return 0;
1684 ;
1685 return 0;
1686}
1687_ACEOF
1688if ac_fn_c_try_compile "$LINENO"; then :
1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690/* end confdefs.h. */
1691$4
1692int
1693main ()
1694{
1695if (sizeof (($2)))
1696 return 0;
1697 ;
1698 return 0;
1699}
1700_ACEOF
1701if ac_fn_c_try_compile "$LINENO"; then :
1702
1703else
1704 eval "$3=yes"
1705fi
1706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707fi
1708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1709fi
1710eval ac_res=\$$3
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712$as_echo "$ac_res" >&6; }
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714
1715} # ac_fn_c_check_type
1716
1717# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1718# --------------------------------------------
1719# Tries to find the compile-time value of EXPR in a program that includes
1720# INCLUDES, setting VAR accordingly. Returns whether the value could be
1721# computed
1722ac_fn_c_compute_int ()
1723{
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if test "$cross_compiling" = yes; then
1726 # Depending upon the size, compute the lo and hi bounds.
1727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728/* end confdefs.h. */
1729$4
1730int
1731main ()
1732{
1733static int test_array [1 - 2 * !(($2) >= 0)];
1734test_array [0] = 0;
1735return test_array [0];
1736
1737 ;
1738 return 0;
1739}
1740_ACEOF
1741if ac_fn_c_try_compile "$LINENO"; then :
1742 ac_lo=0 ac_mid=0
1743 while :; do
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745/* end confdefs.h. */
1746$4
1747int
1748main ()
1749{
1750static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1751test_array [0] = 0;
1752return test_array [0];
1753
1754 ;
1755 return 0;
1756}
1757_ACEOF
1758if ac_fn_c_try_compile "$LINENO"; then :
1759 ac_hi=$ac_mid; break
1760else
1761 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1762 if test $ac_lo -le $ac_mid; then
1763 ac_lo= ac_hi=
1764 break
1765 fi
1766 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1767fi
1768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769 done
1770else
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772/* end confdefs.h. */
1773$4
1774int
1775main ()
1776{
1777static int test_array [1 - 2 * !(($2) < 0)];
1778test_array [0] = 0;
1779return test_array [0];
1780
1781 ;
1782 return 0;
1783}
1784_ACEOF
1785if ac_fn_c_try_compile "$LINENO"; then :
1786 ac_hi=-1 ac_mid=-1
1787 while :; do
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789/* end confdefs.h. */
1790$4
1791int
1792main ()
1793{
1794static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1795test_array [0] = 0;
1796return test_array [0];
1797
1798 ;
1799 return 0;
1800}
1801_ACEOF
1802if ac_fn_c_try_compile "$LINENO"; then :
1803 ac_lo=$ac_mid; break
1804else
1805 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1806 if test $ac_mid -le $ac_hi; then
1807 ac_lo= ac_hi=
1808 break
1809 fi
1810 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1811fi
1812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 done
1814else
1815 ac_lo= ac_hi=
1816fi
1817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818fi
1819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820# Binary search between lo and hi bounds.
1821while test "x$ac_lo" != "x$ac_hi"; do
1822 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824/* end confdefs.h. */
1825$4
1826int
1827main ()
1828{
1829static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1830test_array [0] = 0;
1831return test_array [0];
1832
1833 ;
1834 return 0;
1835}
1836_ACEOF
1837if ac_fn_c_try_compile "$LINENO"; then :
1838 ac_hi=$ac_mid
1839else
1840 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1841fi
1842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843done
1844case $ac_lo in #((
1845?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1846'') ac_retval=1 ;;
1847esac
1848 else
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850/* end confdefs.h. */
1851$4
1852static long int longval () { return $2; }
1853static unsigned long int ulongval () { return $2; }
1854#include <stdio.h>
1855#include <stdlib.h>
1856int
1857main ()
1858{
1859
1860 FILE *f = fopen ("conftest.val", "w");
1861 if (! f)
1862 return 1;
1863 if (($2) < 0)
1864 {
1865 long int i = longval ();
1866 if (i != ($2))
1867 return 1;
1868 fprintf (f, "%ld", i);
1869 }
1870 else
1871 {
1872 unsigned long int i = ulongval ();
1873 if (i != ($2))
1874 return 1;
1875 fprintf (f, "%lu", i);
1876 }
1877 /* Do not output a trailing newline, as this causes \r\n confusion
1878 on some platforms. */
1879 return ferror (f) || fclose (f) != 0;
1880
1881 ;
1882 return 0;
1883}
1884_ACEOF
1885if ac_fn_c_try_run "$LINENO"; then :
1886 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1887else
1888 ac_retval=1
1889fi
1890rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1891 conftest.$ac_objext conftest.beam conftest.$ac_ext
1892rm -f conftest.val
1893
1894 fi
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896 as_fn_set_status $ac_retval
1897
1898} # ac_fn_c_compute_int
1899
1900# ac_fn_c_try_link LINENO
1901# -----------------------
1902# Try to link conftest.$ac_ext, and return whether this succeeded.
1903ac_fn_c_try_link ()
1904{
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 rm -f conftest.$ac_objext conftest$ac_exeext
1907 if { { ac_try="$ac_link"
1908case "(($ac_try" in
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1911esac
1912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913$as_echo "$ac_try_echo"; } >&5
1914 (eval "$ac_link") 2>conftest.err
1915 ac_status=$?
1916 if test -s conftest.err; then
1917 grep -v '^ *+' conftest.err >conftest.er1
1918 cat conftest.er1 >&5
1919 mv -f conftest.er1 conftest.err
1920 fi
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; } && {
1923 test -z "$ac_c_werror_flag" ||
1924 test ! -s conftest.err
1925 } && test -s conftest$ac_exeext && {
1926 test "$cross_compiling" = yes ||
1927 test -x conftest$ac_exeext
1928 }; then :
1929 ac_retval=0
1930else
1931 $as_echo "$as_me: failed program was:" >&5
1932sed 's/^/| /' conftest.$ac_ext >&5
1933
1934 ac_retval=1
1935fi
1936 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1937 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1938 # interfere with the next link command; also delete a directory that is
1939 # left behind by Apple's compiler. We do this before executing the actions.
1940 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 as_fn_set_status $ac_retval
1943
1944} # ac_fn_c_try_link
1945
1946# ac_fn_c_check_func LINENO FUNC VAR
1947# ----------------------------------
1948# Tests whether FUNC exists, setting the cache variable VAR accordingly
1949ac_fn_c_check_func ()
1950{
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953$as_echo_n "checking for $2... " >&6; }
1954if eval \${$3+:} false; then :
1955 $as_echo_n "(cached) " >&6
1956else
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958/* end confdefs.h. */
1959/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1961#define $2 innocuous_$2
1962
1963/* System header to define __stub macros and hopefully few prototypes,
1964 which can conflict with char $2 (); below.
1965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1966 <limits.h> exists even on freestanding compilers. */
1967
1968#ifdef __STDC__
1969# include <limits.h>
1970#else
1971# include <assert.h>
1972#endif
1973
1974#undef $2
1975
1976/* Override any GCC internal prototype to avoid an error.
1977 Use char because int might match the return type of a GCC
1978 builtin and then its argument prototype would still apply. */
1979#ifdef __cplusplus
1980extern "C"
1981#endif
1982char $2 ();
1983/* The GNU C library defines this for functions which it implements
1984 to always fail with ENOSYS. Some functions are actually named
1985 something starting with __ and the normal name is an alias. */
1986#if defined __stub_$2 || defined __stub___$2
1987choke me
1988#endif
1989
1990int
1991main ()
1992{
1993return $2 ();
1994 ;
1995 return 0;
1996}
1997_ACEOF
1998if ac_fn_c_try_link "$LINENO"; then :
1999 eval "$3=yes"
2000else
2001 eval "$3=no"
2002fi
2003rm -f core conftest.err conftest.$ac_objext \
2004 conftest$ac_exeext conftest.$ac_ext
2005fi
2006eval ac_res=\$$3
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008$as_echo "$ac_res" >&6; }
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010
2011} # ac_fn_c_check_func
2012cat >config.log <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002013This file contains any messages produced by compilers while
2014running configure, to aid debugging if configure makes a mistake.
2015
jfigusb058a3b2014-10-31 09:27:18 -04002016It was created by libsrtp $as_me 2.0.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04002017generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00002018
2019 $ $0 $@
2020
2021_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002022exec 5>>config.log
Cullen Jennings235513a2005-09-21 22:51:36 +00002023{
2024cat <<_ASUNAME
2025## --------- ##
2026## Platform. ##
2027## --------- ##
2028
2029hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2030uname -m = `(uname -m) 2>/dev/null || echo unknown`
2031uname -r = `(uname -r) 2>/dev/null || echo unknown`
2032uname -s = `(uname -s) 2>/dev/null || echo unknown`
2033uname -v = `(uname -v) 2>/dev/null || echo unknown`
2034
2035/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2036/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2037
2038/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2039/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2040/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
jfigusc7e66e32013-05-08 11:32:55 -04002041/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Cullen Jennings235513a2005-09-21 22:51:36 +00002042/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2043/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2044/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2045
2046_ASUNAME
2047
2048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049for as_dir in $PATH
2050do
2051 IFS=$as_save_IFS
2052 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002053 $as_echo "PATH: $as_dir"
2054 done
2055IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002056
2057} >&5
2058
2059cat >&5 <<_ACEOF
2060
2061
2062## ----------- ##
2063## Core tests. ##
2064## ----------- ##
2065
2066_ACEOF
2067
2068
2069# Keep a trace of the command line.
2070# Strip out --no-create and --no-recursion so they do not pile up.
2071# Strip out --silent because we don't want to record it for future runs.
2072# Also quote any args containing shell meta-characters.
2073# Make two passes to allow for proper duplicate-argument suppression.
2074ac_configure_args=
2075ac_configure_args0=
2076ac_configure_args1=
Cullen Jennings235513a2005-09-21 22:51:36 +00002077ac_must_keep_next=false
2078for ac_pass in 1 2
2079do
2080 for ac_arg
2081 do
2082 case $ac_arg in
2083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2085 | -silent | --silent | --silen | --sile | --sil)
2086 continue ;;
jfigusc7e66e32013-05-08 11:32:55 -04002087 *\'*)
2088 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002089 esac
2090 case $ac_pass in
jfigusc7e66e32013-05-08 11:32:55 -04002091 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002092 2)
jfigusc7e66e32013-05-08 11:32:55 -04002093 as_fn_append ac_configure_args1 " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002094 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00002095 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00002096 else
David McGrewfec49dd2005-09-23 19:34:11 +00002097 case $ac_arg in
2098 *=* | --config-cache | -C | -disable-* | --disable-* \
2099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2101 | -with-* | --with-* | -without-* | --without-* | --x)
2102 case "$ac_configure_args0 " in
2103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2104 esac
2105 ;;
2106 -* ) ac_must_keep_next=true ;;
2107 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00002108 fi
jfigusc7e66e32013-05-08 11:32:55 -04002109 as_fn_append ac_configure_args " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002110 ;;
2111 esac
2112 done
2113done
jfigusc7e66e32013-05-08 11:32:55 -04002114{ ac_configure_args0=; unset ac_configure_args0;}
2115{ ac_configure_args1=; unset ac_configure_args1;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002116
2117# When interrupted or exit'd, cleanup temporary files, and complete
2118# config.log. We remove comments because anyway the quotes in there
2119# would cause problems or look ugly.
jfigusc7e66e32013-05-08 11:32:55 -04002120# WARNING: Use '\'' to represent an apostrophe within the trap.
2121# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Cullen Jennings235513a2005-09-21 22:51:36 +00002122trap 'exit_status=$?
2123 # Save into config.log some information that might help in debugging.
2124 {
2125 echo
2126
jfigusc7e66e32013-05-08 11:32:55 -04002127 $as_echo "## ---------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002128## Cache variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002129## ---------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002130 echo
2131 # The following way of writing the cache mishandles newlines in values,
jfigusc7e66e32013-05-08 11:32:55 -04002132(
2133 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2134 eval ac_val=\$$ac_var
2135 case $ac_val in #(
2136 *${as_nl}*)
2137 case $ac_var in #(
2138 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2139$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2140 esac
2141 case $ac_var in #(
2142 _ | IFS | as_nl) ;; #(
2143 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2144 *) { eval $ac_var=; unset $ac_var;} ;;
2145 esac ;;
2146 esac
2147 done
Cullen Jennings235513a2005-09-21 22:51:36 +00002148 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04002149 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2150 *${as_nl}ac_space=\ *)
Cullen Jennings235513a2005-09-21 22:51:36 +00002151 sed -n \
jfigusc7e66e32013-05-08 11:32:55 -04002152 "s/'\''/'\''\\\\'\'''\''/g;
2153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2154 ;; #(
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002155 *)
jfigusc7e66e32013-05-08 11:32:55 -04002156 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002157 ;;
jfigusc7e66e32013-05-08 11:32:55 -04002158 esac |
2159 sort
2160)
Cullen Jennings235513a2005-09-21 22:51:36 +00002161 echo
2162
jfigusc7e66e32013-05-08 11:32:55 -04002163 $as_echo "## ----------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002164## Output variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002165## ----------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002166 echo
2167 for ac_var in $ac_subst_vars
2168 do
jfigusc7e66e32013-05-08 11:32:55 -04002169 eval ac_val=\$$ac_var
2170 case $ac_val in
2171 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172 esac
2173 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002174 done | sort
2175 echo
2176
2177 if test -n "$ac_subst_files"; then
jfigusc7e66e32013-05-08 11:32:55 -04002178 $as_echo "## ------------------- ##
2179## File substitutions. ##
2180## ------------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002181 echo
2182 for ac_var in $ac_subst_files
2183 do
jfigusc7e66e32013-05-08 11:32:55 -04002184 eval ac_val=\$$ac_var
2185 case $ac_val in
2186 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2187 esac
2188 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002189 done | sort
2190 echo
2191 fi
2192
2193 if test -s confdefs.h; then
jfigusc7e66e32013-05-08 11:32:55 -04002194 $as_echo "## ----------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002195## confdefs.h. ##
jfigusc7e66e32013-05-08 11:32:55 -04002196## ----------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002197 echo
jfigusc7e66e32013-05-08 11:32:55 -04002198 cat confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002199 echo
2200 fi
2201 test "$ac_signal" != 0 &&
jfigusc7e66e32013-05-08 11:32:55 -04002202 $as_echo "$as_me: caught signal $ac_signal"
2203 $as_echo "$as_me: exit $exit_status"
Cullen Jennings235513a2005-09-21 22:51:36 +00002204 } >&5
jfigusc7e66e32013-05-08 11:32:55 -04002205 rm -f core *.core core.conftest.* &&
2206 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Cullen Jennings235513a2005-09-21 22:51:36 +00002207 exit $exit_status
jfigusc7e66e32013-05-08 11:32:55 -04002208' 0
Cullen Jennings235513a2005-09-21 22:51:36 +00002209for ac_signal in 1 2 13 15; do
jfigusc7e66e32013-05-08 11:32:55 -04002210 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Cullen Jennings235513a2005-09-21 22:51:36 +00002211done
2212ac_signal=0
2213
2214# confdefs.h avoids OS command line length limits that DEFS can exceed.
jfigusc7e66e32013-05-08 11:32:55 -04002215rm -f -r conftest* confdefs.h
2216
2217$as_echo "/* confdefs.h */" > confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002218
2219# Predefined preprocessor variables.
2220
2221cat >>confdefs.h <<_ACEOF
2222#define PACKAGE_NAME "$PACKAGE_NAME"
2223_ACEOF
2224
Cullen Jennings235513a2005-09-21 22:51:36 +00002225cat >>confdefs.h <<_ACEOF
2226#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2227_ACEOF
2228
Cullen Jennings235513a2005-09-21 22:51:36 +00002229cat >>confdefs.h <<_ACEOF
2230#define PACKAGE_VERSION "$PACKAGE_VERSION"
2231_ACEOF
2232
Cullen Jennings235513a2005-09-21 22:51:36 +00002233cat >>confdefs.h <<_ACEOF
2234#define PACKAGE_STRING "$PACKAGE_STRING"
2235_ACEOF
2236
Cullen Jennings235513a2005-09-21 22:51:36 +00002237cat >>confdefs.h <<_ACEOF
2238#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2239_ACEOF
2240
jfigusc7e66e32013-05-08 11:32:55 -04002241cat >>confdefs.h <<_ACEOF
2242#define PACKAGE_URL "$PACKAGE_URL"
2243_ACEOF
2244
Cullen Jennings235513a2005-09-21 22:51:36 +00002245
2246# Let the site file select an alternate cache file if it wants to.
jfigusc7e66e32013-05-08 11:32:55 -04002247# Prefer an explicitly selected file to automatically selected ones.
2248ac_site_file1=NONE
2249ac_site_file2=NONE
2250if test -n "$CONFIG_SITE"; then
2251 # We do not want a PATH search for config.site.
2252 case $CONFIG_SITE in #((
2253 -*) ac_site_file1=./$CONFIG_SITE;;
2254 */*) ac_site_file1=$CONFIG_SITE;;
2255 *) ac_site_file1=./$CONFIG_SITE;;
2256 esac
2257elif test "x$prefix" != xNONE; then
2258 ac_site_file1=$prefix/share/config.site
2259 ac_site_file2=$prefix/etc/config.site
2260else
2261 ac_site_file1=$ac_default_prefix/share/config.site
2262 ac_site_file2=$ac_default_prefix/etc/config.site
Cullen Jennings235513a2005-09-21 22:51:36 +00002263fi
jfigusc7e66e32013-05-08 11:32:55 -04002264for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2265do
2266 test "x$ac_site_file" = xNONE && continue
2267 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2269$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002270 sed 's/^/| /' "$ac_site_file" >&5
jfigusc7e66e32013-05-08 11:32:55 -04002271 . "$ac_site_file" \
2272 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2274as_fn_error $? "failed to load site script $ac_site_file
2275See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002276 fi
2277done
2278
2279if test -r "$cache_file"; then
jfigusc7e66e32013-05-08 11:32:55 -04002280 # Some versions of bash will fail to source /dev/null (special files
2281 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2282 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2284$as_echo "$as_me: loading cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002285 case $cache_file in
jfigusc7e66e32013-05-08 11:32:55 -04002286 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2287 *) . "./$cache_file";;
Cullen Jennings235513a2005-09-21 22:51:36 +00002288 esac
2289 fi
2290else
jfigusc7e66e32013-05-08 11:32:55 -04002291 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2292$as_echo "$as_me: creating cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002293 >$cache_file
2294fi
2295
2296# Check that the precious variables saved in the cache have kept the same
2297# value.
2298ac_cache_corrupted=false
jfigusc7e66e32013-05-08 11:32:55 -04002299for ac_var in $ac_precious_vars; do
Cullen Jennings235513a2005-09-21 22:51:36 +00002300 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2301 eval ac_new_set=\$ac_env_${ac_var}_set
jfigusc7e66e32013-05-08 11:32:55 -04002302 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2303 eval ac_new_val=\$ac_env_${ac_var}_value
Cullen Jennings235513a2005-09-21 22:51:36 +00002304 case $ac_old_set,$ac_new_set in
2305 set,)
jfigusc7e66e32013-05-08 11:32:55 -04002306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2307$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 +00002308 ac_cache_corrupted=: ;;
2309 ,set)
jfigusc7e66e32013-05-08 11:32:55 -04002310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2311$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002312 ac_cache_corrupted=: ;;
2313 ,);;
2314 *)
2315 if test "x$ac_old_val" != "x$ac_new_val"; then
jfigusc7e66e32013-05-08 11:32:55 -04002316 # differences in whitespace do not lead to failure.
2317 ac_old_val_w=`echo x $ac_old_val`
2318 ac_new_val_w=`echo x $ac_new_val`
2319 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2321$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2322 ac_cache_corrupted=:
2323 else
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2325$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2326 eval $ac_var=\$ac_old_val
2327 fi
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2329$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2331$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002332 fi;;
2333 esac
2334 # Pass precious variables to config.status.
2335 if test "$ac_new_set" = set; then
2336 case $ac_new_val in
jfigusc7e66e32013-05-08 11:32:55 -04002337 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002338 *) ac_arg=$ac_var=$ac_new_val ;;
2339 esac
2340 case " $ac_configure_args " in
2341 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jfigusc7e66e32013-05-08 11:32:55 -04002342 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002343 esac
2344 fi
2345done
2346if $ac_cache_corrupted; then
jfigusc7e66e32013-05-08 11:32:55 -04002347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2350$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2351 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00002352fi
jfigusc7e66e32013-05-08 11:32:55 -04002353## -------------------- ##
2354## Main body of script. ##
2355## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002356
2357ac_ext=c
2358ac_cpp='$CPP $CPPFLAGS'
2359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361ac_compiler_gnu=$ac_cv_c_compiler_gnu
2362
2363
2364
David McGrewb67061f2005-09-28 14:23:06 +00002365if test -z "$CFLAGS"; then
Sean Brightbfb9e302014-03-24 20:45:17 -04002366 CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
David McGrewb67061f2005-09-28 14:23:06 +00002367fi
2368
Cullen Jennings235513a2005-09-21 22:51:36 +00002369if test -n "$ac_tool_prefix"; then
2370 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2371set dummy ${ac_tool_prefix}ranlib; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2373$as_echo_n "checking for $ac_word... " >&6; }
2374if ${ac_cv_prog_RANLIB+:} false; then :
2375 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002376else
2377 if test -n "$RANLIB"; then
2378 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2379else
2380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381for as_dir in $PATH
2382do
2383 IFS=$as_save_IFS
2384 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002385 for ac_exec_ext in '' $ac_executable_extensions; do
2386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002387 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
jfigusc7e66e32013-05-08 11:32:55 -04002388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002389 break 2
2390 fi
2391done
jfigusc7e66e32013-05-08 11:32:55 -04002392 done
2393IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002394
2395fi
2396fi
2397RANLIB=$ac_cv_prog_RANLIB
2398if test -n "$RANLIB"; then
jfigusc7e66e32013-05-08 11:32:55 -04002399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2400$as_echo "$RANLIB" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002401else
jfigusc7e66e32013-05-08 11:32:55 -04002402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2403$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002404fi
2405
jfigusc7e66e32013-05-08 11:32:55 -04002406
Cullen Jennings235513a2005-09-21 22:51:36 +00002407fi
2408if test -z "$ac_cv_prog_RANLIB"; then
2409 ac_ct_RANLIB=$RANLIB
2410 # Extract the first word of "ranlib", so it can be a program name with args.
2411set dummy ranlib; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2413$as_echo_n "checking for $ac_word... " >&6; }
2414if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2415 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002416else
2417 if test -n "$ac_ct_RANLIB"; then
2418 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2419else
2420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421for as_dir in $PATH
2422do
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002427 ac_cv_prog_ac_ct_RANLIB="ranlib"
jfigusc7e66e32013-05-08 11:32:55 -04002428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002429 break 2
2430 fi
2431done
jfigusc7e66e32013-05-08 11:32:55 -04002432 done
2433IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002434
Cullen Jennings235513a2005-09-21 22:51:36 +00002435fi
2436fi
2437ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2438if test -n "$ac_ct_RANLIB"; then
jfigusc7e66e32013-05-08 11:32:55 -04002439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2440$as_echo "$ac_ct_RANLIB" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002441else
jfigusc7e66e32013-05-08 11:32:55 -04002442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2443$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002444fi
2445
jfigusc7e66e32013-05-08 11:32:55 -04002446 if test "x$ac_ct_RANLIB" = x; then
2447 RANLIB=":"
2448 else
2449 case $cross_compiling:$ac_tool_warned in
2450yes:)
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2453ac_tool_warned=yes ;;
2454esac
2455 RANLIB=$ac_ct_RANLIB
2456 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002457else
2458 RANLIB="$ac_cv_prog_RANLIB"
2459fi
2460
2461ac_ext=c
2462ac_cpp='$CPP $CPPFLAGS'
2463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2465ac_compiler_gnu=$ac_cv_c_compiler_gnu
2466if test -n "$ac_tool_prefix"; then
2467 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2468set dummy ${ac_tool_prefix}gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2470$as_echo_n "checking for $ac_word... " >&6; }
2471if ${ac_cv_prog_CC+:} false; then :
2472 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002473else
2474 if test -n "$CC"; then
2475 ac_cv_prog_CC="$CC" # Let the user override the test.
2476else
2477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478for as_dir in $PATH
2479do
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002484 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002486 break 2
2487 fi
2488done
jfigusc7e66e32013-05-08 11:32:55 -04002489 done
2490IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002491
2492fi
2493fi
2494CC=$ac_cv_prog_CC
2495if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2497$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002498else
jfigusc7e66e32013-05-08 11:32:55 -04002499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2500$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002501fi
2502
jfigusc7e66e32013-05-08 11:32:55 -04002503
Cullen Jennings235513a2005-09-21 22:51:36 +00002504fi
2505if test -z "$ac_cv_prog_CC"; then
2506 ac_ct_CC=$CC
2507 # Extract the first word of "gcc", so it can be a program name with args.
2508set dummy gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2510$as_echo_n "checking for $ac_word... " >&6; }
2511if ${ac_cv_prog_ac_ct_CC+:} false; then :
2512 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002513else
2514 if test -n "$ac_ct_CC"; then
2515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2516else
2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518for as_dir in $PATH
2519do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002524 ac_cv_prog_ac_ct_CC="gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002526 break 2
2527 fi
2528done
jfigusc7e66e32013-05-08 11:32:55 -04002529 done
2530IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002531
2532fi
2533fi
2534ac_ct_CC=$ac_cv_prog_ac_ct_CC
2535if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2537$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002538else
jfigusc7e66e32013-05-08 11:32:55 -04002539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2540$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002541fi
2542
jfigusc7e66e32013-05-08 11:32:55 -04002543 if test "x$ac_ct_CC" = x; then
2544 CC=""
2545 else
2546 case $cross_compiling:$ac_tool_warned in
2547yes:)
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2550ac_tool_warned=yes ;;
2551esac
2552 CC=$ac_ct_CC
2553 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002554else
2555 CC="$ac_cv_prog_CC"
2556fi
2557
2558if test -z "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002559 if test -n "$ac_tool_prefix"; then
2560 # 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 +00002561set dummy ${ac_tool_prefix}cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563$as_echo_n "checking for $ac_word... " >&6; }
2564if ${ac_cv_prog_CC+:} false; then :
2565 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002566else
2567 if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2569else
2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571for as_dir in $PATH
2572do
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002577 ac_cv_prog_CC="${ac_tool_prefix}cc"
jfigusc7e66e32013-05-08 11:32:55 -04002578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002579 break 2
2580 fi
2581done
jfigusc7e66e32013-05-08 11:32:55 -04002582 done
2583IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002584
2585fi
2586fi
2587CC=$ac_cv_prog_CC
2588if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2590$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002591else
jfigusc7e66e32013-05-08 11:32:55 -04002592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002594fi
2595
jfigusc7e66e32013-05-08 11:32:55 -04002596
Cullen Jennings235513a2005-09-21 22:51:36 +00002597 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002598fi
2599if test -z "$CC"; then
2600 # Extract the first word of "cc", so it can be a program name with args.
2601set dummy cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603$as_echo_n "checking for $ac_word... " >&6; }
2604if ${ac_cv_prog_CC+:} false; then :
2605 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002606else
2607 if test -n "$CC"; then
2608 ac_cv_prog_CC="$CC" # Let the user override the test.
2609else
2610 ac_prog_rejected=no
2611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH
2613do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002618 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2619 ac_prog_rejected=yes
2620 continue
2621 fi
2622 ac_cv_prog_CC="cc"
jfigusc7e66e32013-05-08 11:32:55 -04002623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002624 break 2
2625 fi
2626done
jfigusc7e66e32013-05-08 11:32:55 -04002627 done
2628IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002629
2630if test $ac_prog_rejected = yes; then
2631 # We found a bogon in the path, so make sure we never use it.
2632 set dummy $ac_cv_prog_CC
2633 shift
2634 if test $# != 0; then
2635 # We chose a different compiler from the bogus one.
2636 # However, it has the same basename, so the bogon will be chosen
2637 # first if we set CC to just the basename; use the full file name.
2638 shift
2639 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2640 fi
2641fi
2642fi
2643fi
2644CC=$ac_cv_prog_CC
2645if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2647$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002648else
jfigusc7e66e32013-05-08 11:32:55 -04002649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002651fi
2652
jfigusc7e66e32013-05-08 11:32:55 -04002653
Cullen Jennings235513a2005-09-21 22:51:36 +00002654fi
2655if test -z "$CC"; then
2656 if test -n "$ac_tool_prefix"; then
jfigusc7e66e32013-05-08 11:32:55 -04002657 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002658 do
2659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2660set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662$as_echo_n "checking for $ac_word... " >&6; }
2663if ${ac_cv_prog_CC+:} false; then :
2664 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002665else
2666 if test -n "$CC"; then
2667 ac_cv_prog_CC="$CC" # Let the user override the test.
2668else
2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670for as_dir in $PATH
2671do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002678 break 2
2679 fi
2680done
jfigusc7e66e32013-05-08 11:32:55 -04002681 done
2682IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002683
2684fi
2685fi
2686CC=$ac_cv_prog_CC
2687if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2689$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002690else
jfigusc7e66e32013-05-08 11:32:55 -04002691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002693fi
2694
jfigusc7e66e32013-05-08 11:32:55 -04002695
Cullen Jennings235513a2005-09-21 22:51:36 +00002696 test -n "$CC" && break
2697 done
2698fi
2699if test -z "$CC"; then
2700 ac_ct_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04002701 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002702do
2703 # Extract the first word of "$ac_prog", so it can be a program name with args.
2704set dummy $ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706$as_echo_n "checking for $ac_word... " >&6; }
2707if ${ac_cv_prog_ac_ct_CC+:} false; then :
2708 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002709else
2710 if test -n "$ac_ct_CC"; then
2711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2712else
2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH
2715do
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002720 ac_cv_prog_ac_ct_CC="$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002722 break 2
2723 fi
2724done
jfigusc7e66e32013-05-08 11:32:55 -04002725 done
2726IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002727
2728fi
2729fi
2730ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2733$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002734else
jfigusc7e66e32013-05-08 11:32:55 -04002735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002737fi
2738
jfigusc7e66e32013-05-08 11:32:55 -04002739
Cullen Jennings235513a2005-09-21 22:51:36 +00002740 test -n "$ac_ct_CC" && break
2741done
2742
jfigusc7e66e32013-05-08 11:32:55 -04002743 if test "x$ac_ct_CC" = x; then
2744 CC=""
2745 else
2746 case $cross_compiling:$ac_tool_warned in
2747yes:)
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2750ac_tool_warned=yes ;;
2751esac
2752 CC=$ac_ct_CC
2753 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002754fi
2755
2756fi
2757
2758
jfigusc7e66e32013-05-08 11:32:55 -04002759test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2761as_fn_error $? "no acceptable C compiler found in \$PATH
2762See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002763
2764# Provide some information about the compiler.
jfigusc7e66e32013-05-08 11:32:55 -04002765$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2766set X $ac_compile
2767ac_compiler=$2
2768for ac_option in --version -v -V -qversion; do
2769 { { ac_try="$ac_compiler $ac_option >&5"
2770case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773esac
2774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2775$as_echo "$ac_try_echo"; } >&5
2776 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Cullen Jennings235513a2005-09-21 22:51:36 +00002777 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002778 if test -s conftest.err; then
2779 sed '10a\
2780... rest of stderr output deleted ...
2781 10q' conftest.err >conftest.er1
2782 cat conftest.er1 >&5
2783 fi
2784 rm -f conftest.er1 conftest.err
2785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2786 test $ac_status = 0; }
2787done
Cullen Jennings235513a2005-09-21 22:51:36 +00002788
jfigusc7e66e32013-05-08 11:32:55 -04002789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002790/* end confdefs.h. */
2791
2792int
2793main ()
2794{
2795
2796 ;
2797 return 0;
2798}
2799_ACEOF
2800ac_clean_files_save=$ac_clean_files
jfigusc7e66e32013-05-08 11:32:55 -04002801ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Cullen Jennings235513a2005-09-21 22:51:36 +00002802# Try to create an executable without -o first, disregard a.out.
2803# It will help us diagnose broken compilers, and finding out an intuition
2804# of exeext.
jfigusc7e66e32013-05-08 11:32:55 -04002805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2806$as_echo_n "checking whether the C compiler works... " >&6; }
2807ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002808
jfigusc7e66e32013-05-08 11:32:55 -04002809# The possible output files:
2810ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2811
2812ac_rmfiles=
2813for ac_file in $ac_files
2814do
2815 case $ac_file in
2816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2817 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2818 esac
2819done
2820rm -f $ac_rmfiles
2821
2822if { { ac_try="$ac_link_default"
2823case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826esac
2827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2828$as_echo "$ac_try_echo"; } >&5
2829 (eval "$ac_link_default") 2>&5
2830 ac_status=$?
2831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2832 test $ac_status = 0; }; then :
2833 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2834# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2835# in a Makefile. We should not override ac_cv_exeext if it was cached,
2836# so that the user can short-circuit this test for compilers unknown to
2837# Autoconf.
2838for ac_file in $ac_files ''
Cullen Jennings235513a2005-09-21 22:51:36 +00002839do
2840 test -f "$ac_file" || continue
2841 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00002843 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002844 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00002845 # We found the default executable, but exeext='' is most
2846 # certainly right.
2847 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002848 *.* )
jfigusc7e66e32013-05-08 11:32:55 -04002849 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2850 then :; else
2851 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2852 fi
2853 # We set ac_cv_exeext here because the later test for it is not
2854 # safe: cross compilers may not add the suffix if given an `-o'
2855 # argument, so we may need to know it at that point already.
2856 # Even if this section looks crufty: it has the advantage of
2857 # actually working.
David McGrewfec49dd2005-09-23 19:34:11 +00002858 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002859 * )
David McGrewfec49dd2005-09-23 19:34:11 +00002860 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002861 esac
2862done
jfigusc7e66e32013-05-08 11:32:55 -04002863test "$ac_cv_exeext" = no && ac_cv_exeext=
2864
Cullen Jennings235513a2005-09-21 22:51:36 +00002865else
jfigusc7e66e32013-05-08 11:32:55 -04002866 ac_file=''
2867fi
2868if test -z "$ac_file"; then :
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870$as_echo "no" >&6; }
2871$as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002872sed 's/^/| /' conftest.$ac_ext >&5
2873
jfigusc7e66e32013-05-08 11:32:55 -04002874{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2876as_fn_error 77 "C compiler cannot create executables
2877See \`config.log' for more details" "$LINENO" 5; }
2878else
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2880$as_echo "yes" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002881fi
jfigusc7e66e32013-05-08 11:32:55 -04002882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2883$as_echo_n "checking for C compiler default output file name... " >&6; }
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2885$as_echo "$ac_file" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002886ac_exeext=$ac_cv_exeext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002887
jfigusc7e66e32013-05-08 11:32:55 -04002888rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002889ac_clean_files=$ac_clean_files_save
jfigusc7e66e32013-05-08 11:32:55 -04002890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2891$as_echo_n "checking for suffix of executables... " >&6; }
2892if { { ac_try="$ac_link"
2893case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896esac
2897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2898$as_echo "$ac_try_echo"; } >&5
2899 (eval "$ac_link") 2>&5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002900 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2902 test $ac_status = 0; }; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002903 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2904# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2905# work properly (i.e., refer to `conftest.exe'), while it won't with
2906# `rm'.
2907for ac_file in conftest.exe conftest conftest.*; do
2908 test -f "$ac_file" || continue
2909 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002911 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00002912 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002913 * ) break;;
2914 esac
2915done
2916else
jfigusc7e66e32013-05-08 11:32:55 -04002917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2919as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2920See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002921fi
jfigusc7e66e32013-05-08 11:32:55 -04002922rm -f conftest conftest$ac_cv_exeext
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2924$as_echo "$ac_cv_exeext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002925
2926rm -f conftest.$ac_ext
2927EXEEXT=$ac_cv_exeext
2928ac_exeext=$EXEEXT
jfigusc7e66e32013-05-08 11:32:55 -04002929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2930/* end confdefs.h. */
2931#include <stdio.h>
2932int
2933main ()
2934{
2935FILE *f = fopen ("conftest.out", "w");
2936 return ferror (f) || fclose (f) != 0;
2937
2938 ;
2939 return 0;
2940}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002941_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002942ac_clean_files="$ac_clean_files conftest.out"
2943# Check that the compiler produces executables we can run. If not, either
2944# the compiler is broken, or we cross compile.
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2946$as_echo_n "checking whether we are cross compiling... " >&6; }
2947if test "$cross_compiling" != yes; then
2948 { { ac_try="$ac_link"
2949case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952esac
2953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2954$as_echo "$ac_try_echo"; } >&5
2955 (eval "$ac_link") 2>&5
2956 ac_status=$?
2957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2958 test $ac_status = 0; }
2959 if { ac_try='./conftest$ac_cv_exeext'
2960 { { case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963esac
2964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2965$as_echo "$ac_try_echo"; } >&5
2966 (eval "$ac_try") 2>&5
2967 ac_status=$?
2968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2969 test $ac_status = 0; }; }; then
2970 cross_compiling=no
2971 else
2972 if test "$cross_compiling" = maybe; then
2973 cross_compiling=yes
2974 else
2975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2977as_fn_error $? "cannot run C compiled programs.
2978If you meant to cross compile, use \`--host'.
2979See \`config.log' for more details" "$LINENO" 5; }
2980 fi
2981 fi
2982fi
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2984$as_echo "$cross_compiling" >&6; }
2985
2986rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2987ac_clean_files=$ac_clean_files_save
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2989$as_echo_n "checking for suffix of object files... " >&6; }
2990if ${ac_cv_objext+:} false; then :
2991 $as_echo_n "(cached) " >&6
2992else
2993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002994/* end confdefs.h. */
2995
2996int
2997main ()
2998{
2999
3000 ;
3001 return 0;
3002}
3003_ACEOF
3004rm -f conftest.o conftest.obj
jfigusc7e66e32013-05-08 11:32:55 -04003005if { { ac_try="$ac_compile"
3006case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3009esac
3010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3011$as_echo "$ac_try_echo"; } >&5
3012 (eval "$ac_compile") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003013 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04003014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3015 test $ac_status = 0; }; then :
3016 for ac_file in conftest.o conftest.obj conftest.*; do
3017 test -f "$ac_file" || continue;
Cullen Jennings235513a2005-09-21 22:51:36 +00003018 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04003019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003020 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3021 break;;
3022 esac
3023done
3024else
jfigusc7e66e32013-05-08 11:32:55 -04003025 $as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003026sed 's/^/| /' conftest.$ac_ext >&5
3027
jfigusc7e66e32013-05-08 11:32:55 -04003028{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3030as_fn_error $? "cannot compute suffix of object files: cannot compile
3031See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003032fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003033rm -f conftest.$ac_cv_objext conftest.$ac_ext
3034fi
jfigusc7e66e32013-05-08 11:32:55 -04003035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3036$as_echo "$ac_cv_objext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003037OBJEXT=$ac_cv_objext
3038ac_objext=$OBJEXT
jfigusc7e66e32013-05-08 11:32:55 -04003039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3040$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3041if ${ac_cv_c_compiler_gnu+:} false; then :
3042 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003043else
jfigusc7e66e32013-05-08 11:32:55 -04003044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003045/* end confdefs.h. */
3046
3047int
3048main ()
3049{
3050#ifndef __GNUC__
3051 choke me
3052#endif
3053
3054 ;
3055 return 0;
3056}
3057_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003058if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003059 ac_compiler_gnu=yes
3060else
jfigusc7e66e32013-05-08 11:32:55 -04003061 ac_compiler_gnu=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003062fi
jfigusc7e66e32013-05-08 11:32:55 -04003063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003064ac_cv_c_compiler_gnu=$ac_compiler_gnu
3065
3066fi
jfigusc7e66e32013-05-08 11:32:55 -04003067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3068$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3069if test $ac_compiler_gnu = yes; then
3070 GCC=yes
3071else
3072 GCC=
3073fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003074ac_test_CFLAGS=${CFLAGS+set}
3075ac_save_CFLAGS=$CFLAGS
jfigusc7e66e32013-05-08 11:32:55 -04003076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3077$as_echo_n "checking whether $CC accepts -g... " >&6; }
3078if ${ac_cv_prog_cc_g+:} false; then :
3079 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003080else
jfigusc7e66e32013-05-08 11:32:55 -04003081 ac_save_c_werror_flag=$ac_c_werror_flag
3082 ac_c_werror_flag=yes
3083 ac_cv_prog_cc_g=no
3084 CFLAGS="-g"
3085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003086/* end confdefs.h. */
3087
3088int
3089main ()
3090{
3091
3092 ;
3093 return 0;
3094}
3095_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003096if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003097 ac_cv_prog_cc_g=yes
3098else
jfigusc7e66e32013-05-08 11:32:55 -04003099 CFLAGS=""
3100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00003102
jfigusc7e66e32013-05-08 11:32:55 -04003103int
3104main ()
3105{
3106
3107 ;
3108 return 0;
3109}
3110_ACEOF
3111if ac_fn_c_try_compile "$LINENO"; then :
3112
3113else
3114 ac_c_werror_flag=$ac_save_c_werror_flag
3115 CFLAGS="-g"
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117/* end confdefs.h. */
3118
3119int
3120main ()
3121{
3122
3123 ;
3124 return 0;
3125}
3126_ACEOF
3127if ac_fn_c_try_compile "$LINENO"; then :
3128 ac_cv_prog_cc_g=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003129fi
jfigusc7e66e32013-05-08 11:32:55 -04003130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003131fi
jfigusc7e66e32013-05-08 11:32:55 -04003132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3133fi
3134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3135 ac_c_werror_flag=$ac_save_c_werror_flag
3136fi
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3138$as_echo "$ac_cv_prog_cc_g" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003139if test "$ac_test_CFLAGS" = set; then
3140 CFLAGS=$ac_save_CFLAGS
3141elif test $ac_cv_prog_cc_g = yes; then
3142 if test "$GCC" = yes; then
3143 CFLAGS="-g -O2"
3144 else
3145 CFLAGS="-g"
3146 fi
3147else
3148 if test "$GCC" = yes; then
3149 CFLAGS="-O2"
3150 else
3151 CFLAGS=
3152 fi
3153fi
jfigusc7e66e32013-05-08 11:32:55 -04003154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3155$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3156if ${ac_cv_prog_cc_c89+:} false; then :
3157 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003158else
jfigusc7e66e32013-05-08 11:32:55 -04003159 ac_cv_prog_cc_c89=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003160ac_save_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04003161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003162/* end confdefs.h. */
3163#include <stdarg.h>
3164#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -04003165struct stat;
Cullen Jennings235513a2005-09-21 22:51:36 +00003166/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3167struct buf { int x; };
3168FILE * (*rcsopen) (struct buf *, struct stat *, int);
3169static char *e (p, i)
3170 char **p;
3171 int i;
3172{
3173 return p[i];
3174}
3175static char *f (char * (*g) (char **, int), char **p, ...)
3176{
3177 char *s;
3178 va_list v;
3179 va_start (v,p);
3180 s = g (p, va_arg (v,int));
3181 va_end (v);
3182 return s;
3183}
David McGrewfec49dd2005-09-23 19:34:11 +00003184
3185/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3186 function prototypes and stuff, but not '\xHH' hex character constants.
3187 These don't provoke an error unfortunately, instead are silently treated
jfigusc7e66e32013-05-08 11:32:55 -04003188 as 'x'. The following induces an error, until -std is added to get
David McGrewfec49dd2005-09-23 19:34:11 +00003189 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3190 array size at least. It's necessary to write '\x00'==0 to get something
jfigusc7e66e32013-05-08 11:32:55 -04003191 that's true only with -std. */
David McGrewfec49dd2005-09-23 19:34:11 +00003192int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3193
jfigusc7e66e32013-05-08 11:32:55 -04003194/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3195 inside strings and character constants. */
3196#define FOO(x) 'x'
3197int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3198
Cullen Jennings235513a2005-09-21 22:51:36 +00003199int test (int i, double x);
3200struct s1 {int (*f) (int a);};
3201struct s2 {int (*f) (double a);};
3202int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3203int argc;
3204char **argv;
3205int
3206main ()
3207{
3208return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3209 ;
3210 return 0;
3211}
3212_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003213for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3214 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Cullen Jennings235513a2005-09-21 22:51:36 +00003215do
3216 CC="$ac_save_CC $ac_arg"
jfigusc7e66e32013-05-08 11:32:55 -04003217 if ac_fn_c_try_compile "$LINENO"; then :
3218 ac_cv_prog_cc_c89=$ac_arg
Cullen Jennings235513a2005-09-21 22:51:36 +00003219fi
jfigusc7e66e32013-05-08 11:32:55 -04003220rm -f core conftest.err conftest.$ac_objext
3221 test "x$ac_cv_prog_cc_c89" != "xno" && break
Cullen Jennings235513a2005-09-21 22:51:36 +00003222done
jfigusc7e66e32013-05-08 11:32:55 -04003223rm -f conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003224CC=$ac_save_CC
3225
3226fi
jfigusc7e66e32013-05-08 11:32:55 -04003227# AC_CACHE_VAL
3228case "x$ac_cv_prog_cc_c89" in
3229 x)
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3231$as_echo "none needed" >&6; } ;;
3232 xno)
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3234$as_echo "unsupported" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003235 *)
jfigusc7e66e32013-05-08 11:32:55 -04003236 CC="$CC $ac_cv_prog_cc_c89"
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3238$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003239esac
jfigusc7e66e32013-05-08 11:32:55 -04003240if test "x$ac_cv_prog_cc_c89" != xno; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003241
3242fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003243
Cullen Jennings235513a2005-09-21 22:51:36 +00003244ac_ext=c
3245ac_cpp='$CPP $CPPFLAGS'
3246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248ac_compiler_gnu=$ac_cv_c_compiler_gnu
3249
David McGrewb67061f2005-09-28 14:23:06 +00003250ac_aux_dir=
jfigusc7e66e32013-05-08 11:32:55 -04003251for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3252 if test -f "$ac_dir/install-sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003253 ac_aux_dir=$ac_dir
3254 ac_install_sh="$ac_aux_dir/install-sh -c"
3255 break
jfigusc7e66e32013-05-08 11:32:55 -04003256 elif test -f "$ac_dir/install.sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003257 ac_aux_dir=$ac_dir
3258 ac_install_sh="$ac_aux_dir/install.sh -c"
3259 break
jfigusc7e66e32013-05-08 11:32:55 -04003260 elif test -f "$ac_dir/shtool"; then
David McGrewb67061f2005-09-28 14:23:06 +00003261 ac_aux_dir=$ac_dir
3262 ac_install_sh="$ac_aux_dir/shtool install -c"
3263 break
3264 fi
3265done
3266if test -z "$ac_aux_dir"; then
jfigusc7e66e32013-05-08 11:32:55 -04003267 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
David McGrewb67061f2005-09-28 14:23:06 +00003268fi
jfigusc7e66e32013-05-08 11:32:55 -04003269
3270# These three variables are undocumented and unsupported,
3271# and are intended to be withdrawn in a future Autoconf release.
3272# They can cause serious problems if a builder's source tree is in a directory
3273# whose full name contains unusual characters.
3274ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3275ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3276ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3277
Cullen Jennings235513a2005-09-21 22:51:36 +00003278
David McGrewb67061f2005-09-28 14:23:06 +00003279# Find a good install program. We prefer a C program (faster),
3280# so one script is as good as another. But avoid the broken or
3281# incompatible versions:
3282# SysV /etc/install, /usr/sbin/install
3283# SunOS /usr/etc/install
3284# IRIX /sbin/install
3285# AIX /bin/install
3286# AmigaOS /C/install, which installs bootblocks on floppy discs
3287# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3288# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3289# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3290# OS/2's system install, which has a completely different semantic
3291# ./install, which can be erroneously created by make from ./install.sh.
jfigusc7e66e32013-05-08 11:32:55 -04003292# Reject install programs that cannot install multiple files.
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3294$as_echo_n "checking for a BSD-compatible install... " >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00003295if test -z "$INSTALL"; then
jfigusc7e66e32013-05-08 11:32:55 -04003296if ${ac_cv_path_install+:} false; then :
3297 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003298else
David McGrewb67061f2005-09-28 14:23:06 +00003299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH
3301do
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04003304 # Account for people who put trailing slashes in PATH elements.
3305case $as_dir/ in #((
3306 ./ | .// | /[cC]/* | \
David McGrewb67061f2005-09-28 14:23:06 +00003307 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jfigusc7e66e32013-05-08 11:32:55 -04003308 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
David McGrewb67061f2005-09-28 14:23:06 +00003309 /usr/ucb/* ) ;;
3310 *)
3311 # OSF1 and SCO ODT 3.0 have their own names for install.
3312 # Don't use installbsd from OSF since it installs stuff as root
3313 # by default.
3314 for ac_prog in ginstall scoinst install; do
3315 for ac_exec_ext in '' $ac_executable_extensions; do
jfigusc7e66e32013-05-08 11:32:55 -04003316 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
David McGrewb67061f2005-09-28 14:23:06 +00003317 if test $ac_prog = install &&
3318 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3319 # AIX install. It has an incompatible calling convention.
3320 :
3321 elif test $ac_prog = install &&
3322 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3323 # program-specific install script used by HP pwplus--don't use.
3324 :
3325 else
jfigusc7e66e32013-05-08 11:32:55 -04003326 rm -rf conftest.one conftest.two conftest.dir
3327 echo one > conftest.one
3328 echo two > conftest.two
3329 mkdir conftest.dir
3330 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3331 test -s conftest.one && test -s conftest.two &&
3332 test -s conftest.dir/conftest.one &&
3333 test -s conftest.dir/conftest.two
3334 then
3335 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3336 break 3
3337 fi
David McGrewb67061f2005-09-28 14:23:06 +00003338 fi
3339 fi
3340 done
3341 done
3342 ;;
3343esac
Cullen Jennings235513a2005-09-21 22:51:36 +00003344
jfigusc7e66e32013-05-08 11:32:55 -04003345 done
3346IFS=$as_save_IFS
3347
3348rm -rf conftest.one conftest.two conftest.dir
Cullen Jennings235513a2005-09-21 22:51:36 +00003349
3350fi
David McGrewb67061f2005-09-28 14:23:06 +00003351 if test "${ac_cv_path_install+set}" = set; then
3352 INSTALL=$ac_cv_path_install
3353 else
jfigusc7e66e32013-05-08 11:32:55 -04003354 # As a last resort, use the slow shell script. Don't cache a
3355 # value for INSTALL within a source directory, because that will
David McGrewb67061f2005-09-28 14:23:06 +00003356 # break other packages using the cache if that directory is
jfigusc7e66e32013-05-08 11:32:55 -04003357 # removed, or if the value is a relative name.
David McGrewb67061f2005-09-28 14:23:06 +00003358 INSTALL=$ac_install_sh
3359 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003360fi
jfigusc7e66e32013-05-08 11:32:55 -04003361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3362$as_echo "$INSTALL" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003363
David McGrewb67061f2005-09-28 14:23:06 +00003364# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3365# It thinks the first close brace ends the variable substitution.
3366test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00003367
David McGrewb67061f2005-09-28 14:23:06 +00003368test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3369
3370test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00003371
3372
3373
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003374ac_ext=c
3375ac_cpp='$CPP $CPPFLAGS'
3376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378ac_compiler_gnu=$ac_cv_c_compiler_gnu
jfigusc7e66e32013-05-08 11:32:55 -04003379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3380$as_echo_n "checking how to run the C preprocessor... " >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003381# On Suns, sometimes $CPP names a directory.
3382if test -n "$CPP" && test -d "$CPP"; then
3383 CPP=
3384fi
3385if test -z "$CPP"; then
jfigusc7e66e32013-05-08 11:32:55 -04003386 if ${ac_cv_prog_CPP+:} false; then :
3387 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003388else
3389 # Double quotes because CPP needs to be expanded
3390 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3391 do
3392 ac_preproc_ok=false
3393for ac_c_preproc_warn_flag in '' yes
3394do
3395 # Use a header file that comes with gcc, so configuring glibc
3396 # with a fresh cross-compiler works.
3397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3398 # <limits.h> exists even on freestanding compilers.
3399 # On the NeXT, cc -E runs the code through the compiler's parser,
3400 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04003401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003402/* end confdefs.h. */
3403#ifdef __STDC__
3404# include <limits.h>
3405#else
3406# include <assert.h>
3407#endif
3408 Syntax error
3409_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003410if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003411
jfigusc7e66e32013-05-08 11:32:55 -04003412else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003413 # Broken: fails on valid input.
3414continue
3415fi
jfigusc7e66e32013-05-08 11:32:55 -04003416rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003417
jfigusc7e66e32013-05-08 11:32:55 -04003418 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003419 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04003420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003421/* end confdefs.h. */
3422#include <ac_nonexistent.h>
3423_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003424if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003425 # Broken: success on invalid input.
3426continue
3427else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003428 # Passes both tests.
3429ac_preproc_ok=:
3430break
3431fi
jfigusc7e66e32013-05-08 11:32:55 -04003432rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003433
3434done
3435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04003436rm -f conftest.i conftest.err conftest.$ac_ext
3437if $ac_preproc_ok; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003438 break
3439fi
3440
3441 done
3442 ac_cv_prog_CPP=$CPP
3443
3444fi
3445 CPP=$ac_cv_prog_CPP
3446else
3447 ac_cv_prog_CPP=$CPP
3448fi
jfigusc7e66e32013-05-08 11:32:55 -04003449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3450$as_echo "$CPP" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003451ac_preproc_ok=false
3452for ac_c_preproc_warn_flag in '' yes
3453do
3454 # Use a header file that comes with gcc, so configuring glibc
3455 # with a fresh cross-compiler works.
3456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3457 # <limits.h> exists even on freestanding compilers.
3458 # On the NeXT, cc -E runs the code through the compiler's parser,
3459 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04003460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003461/* end confdefs.h. */
3462#ifdef __STDC__
3463# include <limits.h>
3464#else
3465# include <assert.h>
3466#endif
3467 Syntax error
3468_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003469if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003470
jfigusc7e66e32013-05-08 11:32:55 -04003471else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003472 # Broken: fails on valid input.
3473continue
3474fi
jfigusc7e66e32013-05-08 11:32:55 -04003475rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003476
jfigusc7e66e32013-05-08 11:32:55 -04003477 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003478 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04003479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003480/* end confdefs.h. */
3481#include <ac_nonexistent.h>
3482_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003483if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003484 # Broken: success on invalid input.
3485continue
3486else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003487 # Passes both tests.
3488ac_preproc_ok=:
3489break
3490fi
jfigusc7e66e32013-05-08 11:32:55 -04003491rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003492
3493done
3494# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04003495rm -f conftest.i conftest.err conftest.$ac_ext
3496if $ac_preproc_ok; then :
3497
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003498else
jfigusc7e66e32013-05-08 11:32:55 -04003499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3501as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3502See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003503fi
3504
3505ac_ext=c
3506ac_cpp='$CPP $CPPFLAGS'
3507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510
3511
jfigusc7e66e32013-05-08 11:32:55 -04003512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3513$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3514if ${ac_cv_path_GREP+:} false; then :
3515 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003516else
jfigusc7e66e32013-05-08 11:32:55 -04003517 if test -z "$GREP"; then
3518 ac_path_GREP_found=false
3519 # Loop through the user's path and test for each of PROGNAME-LIST
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3522do
3523 IFS=$as_save_IFS
3524 test -z "$as_dir" && as_dir=.
3525 for ac_prog in grep ggrep; do
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3528 as_fn_executable_p "$ac_path_GREP" || continue
3529# Check for GNU ac_path_GREP and select it if it is found.
3530 # Check for GNU $ac_path_GREP
3531case `"$ac_path_GREP" --version 2>&1` in
3532*GNU*)
3533 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3534*)
3535 ac_count=0
3536 $as_echo_n 0123456789 >"conftest.in"
3537 while :
3538 do
3539 cat "conftest.in" "conftest.in" >"conftest.tmp"
3540 mv "conftest.tmp" "conftest.in"
3541 cp "conftest.in" "conftest.nl"
3542 $as_echo 'GREP' >> "conftest.nl"
3543 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3544 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3545 as_fn_arith $ac_count + 1 && ac_count=$as_val
3546 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3547 # Best one so far, save it but keep looking for a better one
3548 ac_cv_path_GREP="$ac_path_GREP"
3549 ac_path_GREP_max=$ac_count
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003550 fi
jfigusc7e66e32013-05-08 11:32:55 -04003551 # 10*(2^10) chars as input seems more than enough
3552 test $ac_count -gt 10 && break
3553 done
3554 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3555esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003556
jfigusc7e66e32013-05-08 11:32:55 -04003557 $ac_path_GREP_found && break 3
3558 done
3559 done
3560 done
3561IFS=$as_save_IFS
3562 if test -z "$ac_cv_path_GREP"; then
3563 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3564 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003565else
jfigusc7e66e32013-05-08 11:32:55 -04003566 ac_cv_path_GREP=$GREP
3567fi
3568
3569fi
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3571$as_echo "$ac_cv_path_GREP" >&6; }
3572 GREP="$ac_cv_path_GREP"
3573
3574
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3576$as_echo_n "checking for egrep... " >&6; }
3577if ${ac_cv_path_EGREP+:} false; then :
3578 $as_echo_n "(cached) " >&6
3579else
3580 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3581 then ac_cv_path_EGREP="$GREP -E"
3582 else
3583 if test -z "$EGREP"; then
3584 ac_path_EGREP_found=false
3585 # Loop through the user's path and test for each of PROGNAME-LIST
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3588do
3589 IFS=$as_save_IFS
3590 test -z "$as_dir" && as_dir=.
3591 for ac_prog in egrep; do
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3594 as_fn_executable_p "$ac_path_EGREP" || continue
3595# Check for GNU ac_path_EGREP and select it if it is found.
3596 # Check for GNU $ac_path_EGREP
3597case `"$ac_path_EGREP" --version 2>&1` in
3598*GNU*)
3599 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3600*)
3601 ac_count=0
3602 $as_echo_n 0123456789 >"conftest.in"
3603 while :
3604 do
3605 cat "conftest.in" "conftest.in" >"conftest.tmp"
3606 mv "conftest.tmp" "conftest.in"
3607 cp "conftest.in" "conftest.nl"
3608 $as_echo 'EGREP' >> "conftest.nl"
3609 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3611 as_fn_arith $ac_count + 1 && ac_count=$as_val
3612 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3613 # Best one so far, save it but keep looking for a better one
3614 ac_cv_path_EGREP="$ac_path_EGREP"
3615 ac_path_EGREP_max=$ac_count
3616 fi
3617 # 10*(2^10) chars as input seems more than enough
3618 test $ac_count -gt 10 && break
3619 done
3620 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3621esac
3622
3623 $ac_path_EGREP_found && break 3
3624 done
3625 done
3626 done
3627IFS=$as_save_IFS
3628 if test -z "$ac_cv_path_EGREP"; then
3629 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3630 fi
3631else
3632 ac_cv_path_EGREP=$EGREP
3633fi
3634
3635 fi
3636fi
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3638$as_echo "$ac_cv_path_EGREP" >&6; }
3639 EGREP="$ac_cv_path_EGREP"
3640
3641
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3643$as_echo_n "checking for ANSI C header files... " >&6; }
3644if ${ac_cv_header_stdc+:} false; then :
3645 $as_echo_n "(cached) " >&6
3646else
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003648/* end confdefs.h. */
3649#include <stdlib.h>
3650#include <stdarg.h>
3651#include <string.h>
3652#include <float.h>
3653
3654int
3655main ()
3656{
3657
3658 ;
3659 return 0;
3660}
3661_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003662if ac_fn_c_try_compile "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003663 ac_cv_header_stdc=yes
3664else
jfigusc7e66e32013-05-08 11:32:55 -04003665 ac_cv_header_stdc=no
jfigusa14b5a02013-03-29 12:24:12 -04003666fi
jfigusc7e66e32013-05-08 11:32:55 -04003667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003668
3669if test $ac_cv_header_stdc = yes; then
3670 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003672/* end confdefs.h. */
3673#include <string.h>
3674
3675_ACEOF
3676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003677 $EGREP "memchr" >/dev/null 2>&1; then :
3678
jfigusa14b5a02013-03-29 12:24:12 -04003679else
3680 ac_cv_header_stdc=no
3681fi
3682rm -f conftest*
3683
3684fi
3685
3686if test $ac_cv_header_stdc = yes; then
3687 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003689/* end confdefs.h. */
3690#include <stdlib.h>
3691
3692_ACEOF
3693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003694 $EGREP "free" >/dev/null 2>&1; then :
3695
jfigusa14b5a02013-03-29 12:24:12 -04003696else
3697 ac_cv_header_stdc=no
3698fi
3699rm -f conftest*
3700
3701fi
3702
3703if test $ac_cv_header_stdc = yes; then
3704 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jfigusc7e66e32013-05-08 11:32:55 -04003705 if test "$cross_compiling" = yes; then :
jfigusa14b5a02013-03-29 12:24:12 -04003706 :
3707else
jfigusc7e66e32013-05-08 11:32:55 -04003708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003709/* end confdefs.h. */
3710#include <ctype.h>
jfigusc7e66e32013-05-08 11:32:55 -04003711#include <stdlib.h>
jfigusa14b5a02013-03-29 12:24:12 -04003712#if ((' ' & 0x0FF) == 0x020)
3713# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3714# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3715#else
3716# define ISLOWER(c) \
3717 (('a' <= (c) && (c) <= 'i') \
3718 || ('j' <= (c) && (c) <= 'r') \
3719 || ('s' <= (c) && (c) <= 'z'))
3720# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3721#endif
3722
3723#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3724int
3725main ()
3726{
3727 int i;
3728 for (i = 0; i < 256; i++)
3729 if (XOR (islower (i), ISLOWER (i))
3730 || toupper (i) != TOUPPER (i))
jfigusc7e66e32013-05-08 11:32:55 -04003731 return 2;
3732 return 0;
jfigusa14b5a02013-03-29 12:24:12 -04003733}
3734_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003735if ac_fn_c_try_run "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003736
jfigusc7e66e32013-05-08 11:32:55 -04003737else
3738 ac_cv_header_stdc=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003739fi
jfigusc7e66e32013-05-08 11:32:55 -04003740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3741 conftest.$ac_objext conftest.beam conftest.$ac_ext
3742fi
3743
jfigusa14b5a02013-03-29 12:24:12 -04003744fi
3745fi
jfigusc7e66e32013-05-08 11:32:55 -04003746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3747$as_echo "$ac_cv_header_stdc" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04003748if test $ac_cv_header_stdc = yes; then
3749
jfigusc7e66e32013-05-08 11:32:55 -04003750$as_echo "#define STDC_HEADERS 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04003751
3752fi
3753
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003754# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003755for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3756 inttypes.h stdint.h unistd.h
jfigusc7e66e32013-05-08 11:32:55 -04003757do :
3758 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3759ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3760"
3761if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003762 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003763#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003764_ACEOF
3765
3766fi
3767
3768done
3769
3770
jfigusc7e66e32013-05-08 11:32:55 -04003771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3772$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3773if ${ac_cv_c_bigendian+:} false; then :
3774 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003775else
jfigusc7e66e32013-05-08 11:32:55 -04003776 ac_cv_c_bigendian=unknown
3777 # See if we're dealing with a universal compiler.
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003779/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003780#ifndef __APPLE_CC__
3781 not a universal capable compiler
3782 #endif
3783 typedef int dummy;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003784
jfigusc7e66e32013-05-08 11:32:55 -04003785_ACEOF
3786if ac_fn_c_try_compile "$LINENO"; then :
3787
3788 # Check for potential -arch flags. It is not universal unless
3789 # there are at least two -arch flags with different values.
3790 ac_arch=
3791 ac_prev=
3792 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3793 if test -n "$ac_prev"; then
3794 case $ac_word in
3795 i?86 | x86_64 | ppc | ppc64)
3796 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3797 ac_arch=$ac_word
3798 else
3799 ac_cv_c_bigendian=universal
3800 break
3801 fi
3802 ;;
3803 esac
3804 ac_prev=
3805 elif test "x$ac_word" = "x-arch"; then
3806 ac_prev=arch
3807 fi
3808 done
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003809fi
jfigusc7e66e32013-05-08 11:32:55 -04003810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 if test $ac_cv_c_bigendian = unknown; then
3812 # See if sys/param.h defines the BYTE_ORDER macro.
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003814/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003815#include <sys/types.h>
3816 #include <sys/param.h>
3817
3818int
3819main ()
3820{
3821#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3822 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3823 && LITTLE_ENDIAN)
3824 bogus endian macros
3825 #endif
3826
3827 ;
3828 return 0;
3829}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003830_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003831if ac_fn_c_try_compile "$LINENO"; then :
3832 # It does; now see whether it defined to BIG_ENDIAN or not.
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003834/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003835#include <sys/types.h>
3836 #include <sys/param.h>
3837
3838int
3839main ()
3840{
3841#if BYTE_ORDER != BIG_ENDIAN
3842 not big endian
3843 #endif
3844
3845 ;
3846 return 0;
3847}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003848_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003849if ac_fn_c_try_compile "$LINENO"; then :
3850 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003851else
jfigusc7e66e32013-05-08 11:32:55 -04003852 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003853fi
jfigusc7e66e32013-05-08 11:32:55 -04003854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855fi
3856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857 fi
3858 if test $ac_cv_c_bigendian = unknown; then
3859 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003861/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003862#include <limits.h>
3863
3864int
3865main ()
3866{
3867#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3868 bogus endian macros
3869 #endif
3870
3871 ;
3872 return 0;
3873}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003874_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003875if ac_fn_c_try_compile "$LINENO"; then :
3876 # It does; now see whether it defined to _BIG_ENDIAN or not.
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003878/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003879#include <limits.h>
3880
3881int
3882main ()
3883{
3884#ifndef _BIG_ENDIAN
3885 not big endian
3886 #endif
3887
3888 ;
3889 return 0;
3890}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003891_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003892if ac_fn_c_try_compile "$LINENO"; then :
3893 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003894else
jfigusc7e66e32013-05-08 11:32:55 -04003895 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003896fi
jfigusc7e66e32013-05-08 11:32:55 -04003897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898fi
3899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 fi
3901 if test $ac_cv_c_bigendian = unknown; then
3902 # Compile a test program.
3903 if test "$cross_compiling" = yes; then :
3904 # Try to guess by grepping values from an object file.
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003906/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003907short int ascii_mm[] =
3908 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3909 short int ascii_ii[] =
3910 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3911 int use_ascii (int i) {
3912 return ascii_mm[i] + ascii_ii[i];
3913 }
3914 short int ebcdic_ii[] =
3915 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3916 short int ebcdic_mm[] =
3917 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3918 int use_ebcdic (int i) {
3919 return ebcdic_mm[i] + ebcdic_ii[i];
3920 }
3921 extern int foo;
3922
3923int
3924main ()
3925{
3926return use_ascii (foo) == use_ebcdic (foo);
3927 ;
3928 return 0;
3929}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003930_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003931if ac_fn_c_try_compile "$LINENO"; then :
3932 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3933 ac_cv_c_bigendian=yes
3934 fi
3935 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3936 if test "$ac_cv_c_bigendian" = unknown; then
3937 ac_cv_c_bigendian=no
3938 else
3939 # finding both strings is unlikely to happen, but who knows?
3940 ac_cv_c_bigendian=unknown
3941 fi
3942 fi
3943fi
3944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003945else
jfigusc7e66e32013-05-08 11:32:55 -04003946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003947/* end confdefs.h. */
3948$ac_includes_default
3949int
3950main ()
3951{
jfigusc7e66e32013-05-08 11:32:55 -04003952
3953 /* Are we little or big endian? From Harbison&Steele. */
3954 union
3955 {
3956 long int l;
3957 char c[sizeof (long int)];
3958 } u;
3959 u.l = 1;
3960 return u.c[sizeof (long int) - 1] == 1;
3961
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003962 ;
3963 return 0;
3964}
3965_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003966if ac_fn_c_try_run "$LINENO"; then :
3967 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003968else
jfigusc7e66e32013-05-08 11:32:55 -04003969 ac_cv_c_bigendian=yes
3970fi
3971rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3972 conftest.$ac_objext conftest.beam conftest.$ac_ext
3973fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003974
jfigusc7e66e32013-05-08 11:32:55 -04003975 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003976fi
jfigusc7e66e32013-05-08 11:32:55 -04003977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3978$as_echo "$ac_cv_c_bigendian" >&6; }
3979 case $ac_cv_c_bigendian in #(
3980 yes)
3981 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
3982;; #(
3983 no)
3984 ;; #(
3985 universal)
3986
3987$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3988
3989 ;; #(
3990 *)
3991 as_fn_error $? "unknown endianness
3992 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3993 esac
3994
3995
3996# Make sure we can run config.sub.
3997$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3998 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3999
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4001$as_echo_n "checking build system type... " >&6; }
4002if ${ac_cv_build+:} false; then :
4003 $as_echo_n "(cached) " >&6
4004else
4005 ac_build_alias=$build_alias
4006test "x$ac_build_alias" = x &&
4007 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4008test "x$ac_build_alias" = x &&
4009 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4010ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4011 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4012
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004013fi
jfigusc7e66e32013-05-08 11:32:55 -04004014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4015$as_echo "$ac_cv_build" >&6; }
4016case $ac_cv_build in
4017*-*-*) ;;
4018*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4019esac
4020build=$ac_cv_build
4021ac_save_IFS=$IFS; IFS='-'
4022set x $ac_cv_build
4023shift
4024build_cpu=$1
4025build_vendor=$2
4026shift; shift
4027# Remember, the first character of IFS is used to create $*,
4028# except with old shells:
4029build_os=$*
4030IFS=$ac_save_IFS
4031case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4032
4033
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4035$as_echo_n "checking host system type... " >&6; }
4036if ${ac_cv_host+:} false; then :
4037 $as_echo_n "(cached) " >&6
4038else
4039 if test "x$host_alias" = x; then
4040 ac_cv_host=$ac_cv_build
4041else
4042 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4043 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4044fi
4045
4046fi
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4048$as_echo "$ac_cv_host" >&6; }
4049case $ac_cv_host in
4050*-*-*) ;;
4051*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4052esac
4053host=$ac_cv_host
4054ac_save_IFS=$IFS; IFS='-'
4055set x $ac_cv_host
4056shift
4057host_cpu=$1
4058host_vendor=$2
4059shift; shift
4060# Remember, the first character of IFS is used to create $*,
4061# except with old shells:
4062host_os=$*
4063IFS=$ac_save_IFS
4064case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4065
4066
4067
4068case $host_cpu in
4069 i*86 | x86_64 )
4070
4071$as_echo "#define CPU_CISC 1" >>confdefs.h
4072
4073
4074$as_echo "#define HAVE_X86 1" >>confdefs.h
4075;;
4076 * )
4077 # CPU_RISC is only supported for big endian machines.
4078 if test "$ac_cv_c_bigendian" = "yes"; then
4079
4080$as_echo "#define CPU_RISC 1" >>confdefs.h
4081
4082 else
4083 $as_echo "#define CPU_CISC 1" >>confdefs.h
4084
4085 fi
4086 ;;
4087esac
4088
4089case $host_os in
4090 *cygwin*|*mingw* )
4091 EXE=.exe
4092 HOST_IS_WINDOWS=yes
4093 ;;
4094 * )
4095 EXE=""
4096 ;;
4097esac
4098 # define executable suffix; this is needed for `make clean'
4099
4100
4101# Check whether --enable-kernel-linux was given.
4102if test "${enable_kernel_linux+set}" = set; then :
4103 enableval=$enable_kernel_linux;
4104else
4105 enable_kernel_linux=no
4106fi
4107
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build for Linux kernel context" >&5
4109$as_echo_n "checking whether to build for Linux kernel context... " >&6; }
4110if test "$enable_kernel_linux" = "yes"; then
4111
4112$as_echo "#define SRTP_KERNEL 1" >>confdefs.h
4113
4114
4115$as_echo "#define SRTP_KERNEL_LINUX 1" >>confdefs.h
4116
4117fi
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_kernel_linux" >&5
4119$as_echo "$enable_kernel_linux" >&6; }
4120
4121if test "$cross_compiling" != yes -a "$HOST_IS_WINDOWS" != yes; then
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
4123$as_echo_n "checking for /dev/urandom... " >&6; }
4124if ${ac_cv_file__dev_urandom+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126else
4127 test "$cross_compiling" = yes &&
4128 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4129if test -r "/dev/urandom"; then
4130 ac_cv_file__dev_urandom=yes
4131else
4132 ac_cv_file__dev_urandom=no
4133fi
4134fi
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
4136$as_echo "$ac_cv_file__dev_urandom" >&6; }
4137if test "x$ac_cv_file__dev_urandom" = xyes; then :
4138 DEV_URANDOM=/dev/urandom
4139else
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
4141$as_echo_n "checking for /dev/random... " >&6; }
4142if ${ac_cv_file__dev_random+:} false; then :
4143 $as_echo_n "(cached) " >&6
4144else
4145 test "$cross_compiling" = yes &&
4146 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4147if test -r "/dev/random"; then
4148 ac_cv_file__dev_random=yes
4149else
4150 ac_cv_file__dev_random=no
4151fi
4152fi
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
4154$as_echo "$ac_cv_file__dev_random" >&6; }
4155if test "x$ac_cv_file__dev_random" = xyes; then :
4156 DEV_URANDOM=/dev/random
4157fi
4158
4159fi
4160
4161fi
4162
4163
4164
4165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4166$as_echo_n "checking for ANSI C header files... " >&6; }
4167if ${ac_cv_header_stdc+:} false; then :
4168 $as_echo_n "(cached) " >&6
4169else
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171/* end confdefs.h. */
4172#include <stdlib.h>
4173#include <stdarg.h>
4174#include <string.h>
4175#include <float.h>
4176
4177int
4178main ()
4179{
4180
4181 ;
4182 return 0;
4183}
4184_ACEOF
4185if ac_fn_c_try_compile "$LINENO"; then :
4186 ac_cv_header_stdc=yes
4187else
4188 ac_cv_header_stdc=no
4189fi
4190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191
4192if test $ac_cv_header_stdc = yes; then
4193 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195/* end confdefs.h. */
4196#include <string.h>
4197
4198_ACEOF
4199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4200 $EGREP "memchr" >/dev/null 2>&1; then :
4201
4202else
4203 ac_cv_header_stdc=no
4204fi
4205rm -f conftest*
4206
4207fi
4208
4209if test $ac_cv_header_stdc = yes; then
4210 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212/* end confdefs.h. */
4213#include <stdlib.h>
4214
4215_ACEOF
4216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4217 $EGREP "free" >/dev/null 2>&1; then :
4218
4219else
4220 ac_cv_header_stdc=no
4221fi
4222rm -f conftest*
4223
4224fi
4225
4226if test $ac_cv_header_stdc = yes; then
4227 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4228 if test "$cross_compiling" = yes; then :
4229 :
4230else
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232/* end confdefs.h. */
4233#include <ctype.h>
4234#include <stdlib.h>
4235#if ((' ' & 0x0FF) == 0x020)
4236# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4237# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4238#else
4239# define ISLOWER(c) \
4240 (('a' <= (c) && (c) <= 'i') \
4241 || ('j' <= (c) && (c) <= 'r') \
4242 || ('s' <= (c) && (c) <= 'z'))
4243# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4244#endif
4245
4246#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4247int
4248main ()
4249{
4250 int i;
4251 for (i = 0; i < 256; i++)
4252 if (XOR (islower (i), ISLOWER (i))
4253 || toupper (i) != TOUPPER (i))
4254 return 2;
4255 return 0;
4256}
4257_ACEOF
4258if ac_fn_c_try_run "$LINENO"; then :
4259
4260else
4261 ac_cv_header_stdc=no
4262fi
4263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4264 conftest.$ac_objext conftest.beam conftest.$ac_ext
4265fi
4266
4267fi
4268fi
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4270$as_echo "$ac_cv_header_stdc" >&6; }
4271if test $ac_cv_header_stdc = yes; then
4272
4273$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4274
4275fi
4276
4277for ac_header in stdlib.h
4278do :
4279 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4280if test "x$ac_cv_header_stdlib_h" = xyes; then :
4281 cat >>confdefs.h <<_ACEOF
4282#define HAVE_STDLIB_H 1
4283_ACEOF
4284
4285fi
4286
4287done
4288
4289for ac_header in unistd.h
4290do :
4291 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4292if test "x$ac_cv_header_unistd_h" = xyes; then :
4293 cat >>confdefs.h <<_ACEOF
4294#define HAVE_UNISTD_H 1
4295_ACEOF
4296
4297fi
4298
4299done
4300
4301for ac_header in byteswap.h
4302do :
4303 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
4304if test "x$ac_cv_header_byteswap_h" = xyes; then :
4305 cat >>confdefs.h <<_ACEOF
4306#define HAVE_BYTESWAP_H 1
4307_ACEOF
4308
4309fi
4310
4311done
4312
4313for ac_header in stdint.h
4314do :
4315 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4316if test "x$ac_cv_header_stdint_h" = xyes; then :
4317 cat >>confdefs.h <<_ACEOF
4318#define HAVE_STDINT_H 1
4319_ACEOF
4320
4321fi
4322
4323done
4324
4325for ac_header in sys/uio.h
4326do :
4327 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
4328if test "x$ac_cv_header_sys_uio_h" = xyes; then :
4329 cat >>confdefs.h <<_ACEOF
4330#define HAVE_SYS_UIO_H 1
4331_ACEOF
4332
4333fi
4334
4335done
4336
4337for ac_header in inttypes.h
4338do :
4339 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
4340if test "x$ac_cv_header_inttypes_h" = xyes; then :
4341 cat >>confdefs.h <<_ACEOF
4342#define HAVE_INTTYPES_H 1
4343_ACEOF
4344
4345fi
4346
4347done
4348
4349for ac_header in sys/types.h
4350do :
4351 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4352if test "x$ac_cv_header_sys_types_h" = xyes; then :
4353 cat >>confdefs.h <<_ACEOF
4354#define HAVE_SYS_TYPES_H 1
4355_ACEOF
4356
4357fi
4358
4359done
4360
4361for ac_header in machine/types.h
4362do :
4363 ac_fn_c_check_header_mongrel "$LINENO" "machine/types.h" "ac_cv_header_machine_types_h" "$ac_includes_default"
4364if test "x$ac_cv_header_machine_types_h" = xyes; then :
4365 cat >>confdefs.h <<_ACEOF
4366#define HAVE_MACHINE_TYPES_H 1
4367_ACEOF
4368
4369fi
4370
4371done
4372
4373for ac_header in sys/int_types.h
4374do :
4375 ac_fn_c_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default"
4376if test "x$ac_cv_header_sys_int_types_h" = xyes; then :
4377 cat >>confdefs.h <<_ACEOF
4378#define HAVE_SYS_INT_TYPES_H 1
4379_ACEOF
4380
4381fi
4382
4383done
4384
4385
4386for ac_header in sys/socket.h netinet/in.h arpa/inet.h
4387do :
4388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4389ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4390if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4391 cat >>confdefs.h <<_ACEOF
4392#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4393_ACEOF
4394
4395fi
4396
4397done
4398
4399for ac_header in windows.h
4400do :
4401 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
4402if test "x$ac_cv_header_windows_h" = xyes; then :
4403 cat >>confdefs.h <<_ACEOF
4404#define HAVE_WINDOWS_H 1
4405_ACEOF
4406 for ac_header in winsock2.h
4407do :
4408 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4409if test "x$ac_cv_header_winsock2_h" = xyes; then :
4410 cat >>confdefs.h <<_ACEOF
4411#define HAVE_WINSOCK2_H 1
4412_ACEOF
4413
4414fi
4415
4416done
4417
4418fi
4419
4420done
4421
4422
jfigusc7e66e32013-05-08 11:32:55 -04004423ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
4424if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004425
David McGrewfec49dd2005-09-23 19:34:11 +00004426cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004427#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004428_ACEOF
4429
4430
4431fi
jfigusc7e66e32013-05-08 11:32:55 -04004432ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4433if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004434
4435cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004436#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004437_ACEOF
4438
4439
4440fi
jfigusc7e66e32013-05-08 11:32:55 -04004441ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4442if test "x$ac_cv_type_int16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004443
4444cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004445#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004446_ACEOF
4447
4448
4449fi
jfigusc7e66e32013-05-08 11:32:55 -04004450ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4451if test "x$ac_cv_type_uint16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004452
4453cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004454#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004455_ACEOF
4456
4457
4458fi
jfigusc7e66e32013-05-08 11:32:55 -04004459ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
4460if test "x$ac_cv_type_int32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004461
4462cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004463#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004464_ACEOF
4465
4466
4467fi
jfigusc7e66e32013-05-08 11:32:55 -04004468ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4469if test "x$ac_cv_type_uint32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004470
4471cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004472#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004473_ACEOF
4474
4475
4476fi
jfigusc7e66e32013-05-08 11:32:55 -04004477ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4478if test "x$ac_cv_type_uint64_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004479
4480cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004481#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004482_ACEOF
4483
4484
4485fi
4486
jfigusc7e66e32013-05-08 11:32:55 -04004487# The cast to long int works around a bug in the HP C Compiler
4488# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4489# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4490# This bug is HP SR number 8606223364.
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4492$as_echo_n "checking size of unsigned long... " >&6; }
4493if ${ac_cv_sizeof_unsigned_long+:} false; then :
4494 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004495else
jfigusc7e66e32013-05-08 11:32:55 -04004496 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 +00004497
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004498else
4499 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4502as_fn_error 77 "cannot compute sizeof (unsigned long)
4503See \`config.log' for more details" "$LINENO" 5; }
4504 else
4505 ac_cv_sizeof_unsigned_long=0
4506 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004507fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004508
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004509fi
jfigusc7e66e32013-05-08 11:32:55 -04004510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4511$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004512
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004513
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004514
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004515cat >>confdefs.h <<_ACEOF
4516#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
4517_ACEOF
4518
David McGrewfec49dd2005-09-23 19:34:11 +00004519
jfigusc7e66e32013-05-08 11:32:55 -04004520# The cast to long int works around a bug in the HP C Compiler
4521# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4522# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4523# This bug is HP SR number 8606223364.
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
4525$as_echo_n "checking size of unsigned long long... " >&6; }
4526if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
4527 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00004528else
jfigusc7e66e32013-05-08 11:32:55 -04004529 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 +00004530
David McGrewfec49dd2005-09-23 19:34:11 +00004531else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004532 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4535as_fn_error 77 "cannot compute sizeof (unsigned long long)
4536See \`config.log' for more details" "$LINENO" 5; }
4537 else
4538 ac_cv_sizeof_unsigned_long_long=0
4539 fi
David McGrewfec49dd2005-09-23 19:34:11 +00004540fi
4541
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004542fi
jfigusc7e66e32013-05-08 11:32:55 -04004543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
4544$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004545
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004546
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004547
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004548cat >>confdefs.h <<_ACEOF
4549#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00004550_ACEOF
4551
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004552
Cullen Jennings235513a2005-09-21 22:51:36 +00004553
jfigusc7e66e32013-05-08 11:32:55 -04004554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4555$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4556if ${ac_cv_c_const+:} false; then :
4557 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004558else
jfigusc7e66e32013-05-08 11:32:55 -04004559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004560/* end confdefs.h. */
4561
4562int
4563main ()
4564{
jfigusc7e66e32013-05-08 11:32:55 -04004565
Cullen Jennings235513a2005-09-21 22:51:36 +00004566#ifndef __cplusplus
jfigusc7e66e32013-05-08 11:32:55 -04004567 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00004568 typedef int charset[2];
jfigusc7e66e32013-05-08 11:32:55 -04004569 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00004570 /* SunOS 4.1.1 cc rejects this. */
jfigusc7e66e32013-05-08 11:32:55 -04004571 char const *const *pcpcc;
4572 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00004573 /* NEC SVR4.0.2 mips cc rejects this. */
4574 struct point {int x, y;};
4575 static struct point const zero = {0,0};
4576 /* AIX XL C 1.02.0.0 rejects this.
4577 It does not let you subtract one const X* pointer from another in
4578 an arm of an if-expression whose if-part is not a constant
4579 expression */
4580 const char *g = "string";
jfigusc7e66e32013-05-08 11:32:55 -04004581 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00004582 /* HPUX 7.0 cc rejects these. */
jfigusc7e66e32013-05-08 11:32:55 -04004583 ++pcpcc;
4584 ppc = (char**) pcpcc;
4585 pcpcc = (char const *const *) ppc;
4586 { /* SCO 3.2v4 cc rejects this sort of thing. */
4587 char tx;
4588 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00004589 char const *s = 0 ? (char *) 0 : (char const *) 0;
4590
4591 *t++ = 0;
jfigusc7e66e32013-05-08 11:32:55 -04004592 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004593 }
4594 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4595 int x[] = {25, 17};
4596 const int *foo = &x[0];
4597 ++foo;
4598 }
4599 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4600 typedef const int *iptr;
4601 iptr p = 0;
4602 ++p;
4603 }
jfigusc7e66e32013-05-08 11:32:55 -04004604 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00004605 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusc7e66e32013-05-08 11:32:55 -04004606 struct s { int j; const int *ap[3]; } bx;
4607 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00004608 }
4609 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4610 const int foo = 10;
jfigusc7e66e32013-05-08 11:32:55 -04004611 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004612 }
jfigusc7e66e32013-05-08 11:32:55 -04004613 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00004614#endif
4615
4616 ;
4617 return 0;
4618}
4619_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004620if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004621 ac_cv_c_const=yes
4622else
jfigusc7e66e32013-05-08 11:32:55 -04004623 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00004624fi
jfigusc7e66e32013-05-08 11:32:55 -04004625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004626fi
jfigusc7e66e32013-05-08 11:32:55 -04004627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4628$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004629if test $ac_cv_c_const = no; then
4630
jfigusc7e66e32013-05-08 11:32:55 -04004631$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004632
4633fi
4634
jfigusc7e66e32013-05-08 11:32:55 -04004635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4636$as_echo_n "checking for inline... " >&6; }
4637if ${ac_cv_c_inline+:} false; then :
4638 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004639else
4640 ac_cv_c_inline=no
4641for ac_kw in inline __inline__ __inline; do
jfigusc7e66e32013-05-08 11:32:55 -04004642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004643/* end confdefs.h. */
4644#ifndef __cplusplus
4645typedef int foo_t;
4646static $ac_kw foo_t static_foo () {return 0; }
4647$ac_kw foo_t foo () {return 0; }
4648#endif
4649
4650_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004651if ac_fn_c_try_compile "$LINENO"; then :
4652 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00004653fi
jfigusc7e66e32013-05-08 11:32:55 -04004654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00004656done
4657
4658fi
jfigusc7e66e32013-05-08 11:32:55 -04004659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4660$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00004661
Cullen Jennings235513a2005-09-21 22:51:36 +00004662case $ac_cv_c_inline in
4663 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00004664 *)
4665 case $ac_cv_c_inline in
4666 no) ac_val=;;
4667 *) ac_val=$ac_cv_c_inline;;
4668 esac
4669 cat >>confdefs.h <<_ACEOF
4670#ifndef __cplusplus
4671#define inline $ac_val
4672#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00004673_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00004674 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00004675esac
4676
jfigusc7e66e32013-05-08 11:32:55 -04004677ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4678if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004679
Cullen Jennings235513a2005-09-21 22:51:36 +00004680else
4681
4682cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004683#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00004684_ACEOF
4685
4686fi
4687
4688
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00004689for ac_func in socket inet_aton usleep sigaction
jfigusc7e66e32013-05-08 11:32:55 -04004690do :
4691 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4692ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4693if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004694 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004695#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00004696_ACEOF
4697
4698fi
4699done
4700
4701
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004702if test "x$ac_cv_func_socket" = "xno"; then
jfigusc7e66e32013-05-08 11:32:55 -04004703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4704$as_echo_n "checking for socket in -lsocket... " >&6; }
4705if ${ac_cv_lib_socket_socket+:} false; then :
4706 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00004707else
4708 ac_check_lib_save_LIBS=$LIBS
4709LIBS="-lsocket $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04004710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004711/* end confdefs.h. */
4712
jfigusc7e66e32013-05-08 11:32:55 -04004713/* Override any GCC internal prototype to avoid an error.
4714 Use char because int might match the return type of a GCC
4715 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00004716#ifdef __cplusplus
4717extern "C"
4718#endif
David McGrewb67061f2005-09-28 14:23:06 +00004719char socket ();
4720int
4721main ()
4722{
jfigusc7e66e32013-05-08 11:32:55 -04004723return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00004724 ;
4725 return 0;
4726}
4727_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004728if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00004729 ac_cv_lib_socket_socket=yes
4730else
jfigusc7e66e32013-05-08 11:32:55 -04004731 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00004732fi
jfigusc7e66e32013-05-08 11:32:55 -04004733rm -f core conftest.err conftest.$ac_objext \
4734 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004735LIBS=$ac_check_lib_save_LIBS
4736fi
jfigusc7e66e32013-05-08 11:32:55 -04004737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4738$as_echo "$ac_cv_lib_socket_socket" >&6; }
4739if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00004740 cat >>confdefs.h <<_ACEOF
4741#define HAVE_LIBSOCKET 1
4742_ACEOF
4743
4744 LIBS="-lsocket $LIBS"
4745
4746fi
4747
jfigusc7e66e32013-05-08 11:32:55 -04004748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
4749$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004750 SAVELIBS="$LIBS"
4751 LIBS="$LIBS -lwsock32"
jfigusc7e66e32013-05-08 11:32:55 -04004752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004753/* end confdefs.h. */
4754
4755#include <winsock2.h>
4756
4757int
4758main ()
4759{
4760
4761socket(0, 0, 0);
4762
4763 ;
4764 return 0;
4765}
4766_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004767if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004768 ac_cv_func_socket=yes
jfigusc7e66e32013-05-08 11:32:55 -04004769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4770$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004771else
jfigusc7e66e32013-05-08 11:32:55 -04004772 LIBS="$SAVELIBS"
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004775fi
jfigusc7e66e32013-05-08 11:32:55 -04004776rm -f core conftest.err conftest.$ac_objext \
4777 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004778fi
David McGrewb67061f2005-09-28 14:23:06 +00004779
jfigusc7e66e32013-05-08 11:32:55 -04004780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debugging" >&5
4781$as_echo_n "checking whether to compile in debugging... " >&6; }
4782# Check whether --enable-debug was given.
4783if test "${enable_debug+set}" = set; then :
4784 enableval=$enable_debug;
David McGrewb67061f2005-09-28 14:23:06 +00004785else
4786 enable_debug=yes
jfigusc7e66e32013-05-08 11:32:55 -04004787fi
4788
David McGrewb67061f2005-09-28 14:23:06 +00004789if test "$enable_debug" = "yes"; then
4790
jfigusc7e66e32013-05-08 11:32:55 -04004791$as_echo "#define ENABLE_DEBUGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004792
4793fi
jfigusc7e66e32013-05-08 11:32:55 -04004794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
4795$as_echo "$enable_debug" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004796
jfigusc7e66e32013-05-08 11:32:55 -04004797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ISMAcryp code" >&5
4798$as_echo_n "checking whether to use ISMAcryp code... " >&6; }
4799# Check whether --enable-generic-aesicm was given.
4800if test "${enable_generic_aesicm+set}" = set; then :
4801 enableval=$enable_generic_aesicm;
David McGrewb67061f2005-09-28 14:23:06 +00004802else
4803 enable_generic_aesicm=no
jfigusc7e66e32013-05-08 11:32:55 -04004804fi
4805
David McGrewb67061f2005-09-28 14:23:06 +00004806if test "$enable_generic_aesicm" = "yes"; then
4807
jfigusc7e66e32013-05-08 11:32:55 -04004808$as_echo "#define GENERIC_AESICM 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04004809
jfigusa14b5a02013-03-29 12:24:12 -04004810fi
jfigusc7e66e32013-05-08 11:32:55 -04004811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generic_aesicm" >&5
4812$as_echo "$enable_generic_aesicm" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04004813
jfigusc7e66e32013-05-08 11:32:55 -04004814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
4815$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
4816# Check whether --enable-openssl was given.
4817if test "${enable_openssl+set}" = set; then :
4818 enableval=$enable_openssl;
4819else
4820 enable_openssl=no
4821fi
jfigusa14b5a02013-03-29 12:24:12 -04004822
jfigus2b486652014-07-24 15:01:41 -04004823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
4824$as_echo "$enable_openssl" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04004825if test "$enable_openssl" = "yes"; then
Sean Brightbfb9e302014-03-24 20:45:17 -04004826 LDFLAGS="$LDFLAGS $(pkg-config --libs openssl)";
4827 CFLAGS="$CFLAGS $(pkg-config --cflags openssl)";
Cullen Jenningse1de50f2013-05-22 12:27:28 -06004828
jfigusc7e66e32013-05-08 11:32:55 -04004829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
4830$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
4831if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
4832 $as_echo_n "(cached) " >&6
4833else
4834 ac_check_lib_save_LIBS=$LIBS
4835LIBS="-lcrypto $LIBS"
4836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837/* end confdefs.h. */
4838
4839/* Override any GCC internal prototype to avoid an error.
4840 Use char because int might match the return type of a GCC
4841 builtin and then its argument prototype would still apply. */
4842#ifdef __cplusplus
4843extern "C"
4844#endif
4845char EVP_EncryptInit ();
4846int
4847main ()
4848{
4849return EVP_EncryptInit ();
4850 ;
4851 return 0;
4852}
4853_ACEOF
4854if ac_fn_c_try_link "$LINENO"; then :
4855 ac_cv_lib_crypto_EVP_EncryptInit=yes
4856else
4857 ac_cv_lib_crypto_EVP_EncryptInit=no
4858fi
4859rm -f core conftest.err conftest.$ac_objext \
4860 conftest$ac_exeext conftest.$ac_ext
4861LIBS=$ac_check_lib_save_LIBS
4862fi
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
4864$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
4865if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
4866 cat >>confdefs.h <<_ACEOF
4867#define HAVE_LIBCRYPTO 1
4868_ACEOF
4869
4870 LIBS="-lcrypto $LIBS"
4871
4872else
4873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
jfigus5b22e372013-05-09 09:23:26 -04004875as_fn_error $? "can't find openssl >1.0.1 crypto lib
4876See \`config.log' for more details" "$LINENO" 5; }
4877fi
4878
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_ctr in -lcrypto" >&5
4880$as_echo_n "checking for EVP_aes_128_ctr in -lcrypto... " >&6; }
4881if ${ac_cv_lib_crypto_EVP_aes_128_ctr+:} false; then :
4882 $as_echo_n "(cached) " >&6
4883else
4884 ac_check_lib_save_LIBS=$LIBS
4885LIBS="-lcrypto $LIBS"
4886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887/* end confdefs.h. */
4888
4889/* Override any GCC internal prototype to avoid an error.
4890 Use char because int might match the return type of a GCC
4891 builtin and then its argument prototype would still apply. */
4892#ifdef __cplusplus
4893extern "C"
4894#endif
4895char EVP_aes_128_ctr ();
4896int
4897main ()
4898{
4899return EVP_aes_128_ctr ();
4900 ;
4901 return 0;
4902}
4903_ACEOF
4904if ac_fn_c_try_link "$LINENO"; then :
4905 ac_cv_lib_crypto_EVP_aes_128_ctr=yes
4906else
4907 ac_cv_lib_crypto_EVP_aes_128_ctr=no
4908fi
4909rm -f core conftest.err conftest.$ac_objext \
4910 conftest$ac_exeext conftest.$ac_ext
4911LIBS=$ac_check_lib_save_LIBS
4912fi
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_ctr" >&5
4914$as_echo "$ac_cv_lib_crypto_EVP_aes_128_ctr" >&6; }
4915if test "x$ac_cv_lib_crypto_EVP_aes_128_ctr" = xyes; then :
4916 cat >>confdefs.h <<_ACEOF
4917#define HAVE_LIBCRYPTO 1
4918_ACEOF
4919
4920 LIBS="-lcrypto $LIBS"
4921
4922else
4923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4925as_fn_error $? "can't find openssl >1.0.1 crypto lib
jfigusc7e66e32013-05-08 11:32:55 -04004926See \`config.log' for more details" "$LINENO" 5; }
4927fi
4928
jfigus7882dd92013-08-02 16:08:23 -04004929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lcrypto" >&5
4930$as_echo_n "checking for EVP_aes_128_gcm in -lcrypto... " >&6; }
4931if ${ac_cv_lib_crypto_EVP_aes_128_gcm+:} false; then :
4932 $as_echo_n "(cached) " >&6
4933else
4934 ac_check_lib_save_LIBS=$LIBS
4935LIBS="-lcrypto $LIBS"
4936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937/* end confdefs.h. */
4938
4939/* Override any GCC internal prototype to avoid an error.
4940 Use char because int might match the return type of a GCC
4941 builtin and then its argument prototype would still apply. */
4942#ifdef __cplusplus
4943extern "C"
4944#endif
4945char EVP_aes_128_gcm ();
4946int
4947main ()
4948{
4949return EVP_aes_128_gcm ();
4950 ;
4951 return 0;
4952}
4953_ACEOF
4954if ac_fn_c_try_link "$LINENO"; then :
4955 ac_cv_lib_crypto_EVP_aes_128_gcm=yes
4956else
4957 ac_cv_lib_crypto_EVP_aes_128_gcm=no
4958fi
4959rm -f core conftest.err conftest.$ac_objext \
4960 conftest$ac_exeext conftest.$ac_ext
4961LIBS=$ac_check_lib_save_LIBS
4962fi
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_gcm" >&5
4964$as_echo "$ac_cv_lib_crypto_EVP_aes_128_gcm" >&6; }
4965if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes; then :
4966 cat >>confdefs.h <<_ACEOF
4967#define HAVE_LIBCRYPTO 1
4968_ACEOF
4969
4970 LIBS="-lcrypto $LIBS"
4971
4972else
4973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4975as_fn_error $? "can't find openssl >1.0.1 crypto lib
4976See \`config.log' for more details" "$LINENO" 5; }
4977fi
4978
jfigusc7e66e32013-05-08 11:32:55 -04004979
4980$as_echo "#define OPENSSL 1" >>confdefs.h
4981
jfigus7882dd92013-08-02 16:08:23 -04004982 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
jfigusc7e66e32013-05-08 11:32:55 -04004983 RNG_OBJS=rand_source_ossl.o
4984 HMAC_OBJS=crypto/hash/hmac_ossl.o
4985 USE_OPENSSL=1
4986
4987else
4988 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o crypto/cipher/aes_cbc.o"
jfigus7882dd92013-08-02 16:08:23 -04004989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random device to use" >&5
4990$as_echo_n "checking which random device to use... " >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04004991 if test "$enable_kernel_linux" = "yes"; then
4992 RNG_OBJS=rand_linux_kernel.o
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux kernel builtin" >&5
4994$as_echo "Linux kernel builtin" >&6; }
4995 else
4996 RNG_OBJS=rand_source.o
4997 if test -n "$DEV_URANDOM"; then
4998
4999cat >>confdefs.h <<_ACEOF
5000#define DEV_URANDOM "$DEV_URANDOM"
5001_ACEOF
5002
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_URANDOM" >&5
5004$as_echo "$DEV_URANDOM" >&6; }
5005 else
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: standard rand() function..." >&5
5007$as_echo "standard rand() function..." >&6; }
5008 fi
5009 fi
5010 RNG_EXTRA_OBJS="crypto/rng/prng.o crypto/rng/ctr_prng.o"
5011 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
5012fi
5013
5014
5015
5016
jfigusc7e66e32013-05-08 11:32:55 -04005017
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
5019$as_echo_n "checking for pcap_create in -lpcap... " >&6; }
5020if ${ac_cv_lib_pcap_pcap_create+:} false; then :
5021 $as_echo_n "(cached) " >&6
5022else
5023 ac_check_lib_save_LIBS=$LIBS
5024LIBS="-lpcap $LIBS"
5025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026/* end confdefs.h. */
5027
5028/* Override any GCC internal prototype to avoid an error.
5029 Use char because int might match the return type of a GCC
5030 builtin and then its argument prototype would still apply. */
5031#ifdef __cplusplus
5032extern "C"
5033#endif
5034char pcap_create ();
5035int
5036main ()
5037{
5038return pcap_create ();
5039 ;
5040 return 0;
5041}
5042_ACEOF
5043if ac_fn_c_try_link "$LINENO"; then :
5044 ac_cv_lib_pcap_pcap_create=yes
5045else
5046 ac_cv_lib_pcap_pcap_create=no
5047fi
5048rm -f core conftest.err conftest.$ac_objext \
5049 conftest$ac_exeext conftest.$ac_ext
5050LIBS=$ac_check_lib_save_LIBS
5051fi
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
5053$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
5054if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
Bernardo Torresb3c51422014-10-14 12:40:09 -03005055 PCAP=1
5056 LIBS="-lpcap $LIBS"
5057 HAVE_PCAP=1
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005058
Bernardo Torresb3c51422014-10-14 12:40:09 -03005059$as_echo "#define HAVE_PCAP 1" >>confdefs.h
5060
5061
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005062
5063fi
5064
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005065
jfigusc7e66e32013-05-08 11:32:55 -04005066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5
5067$as_echo_n "checking whether to use stdout for error reporting... " >&6; }
5068# Check whether --enable-stdout was given.
5069if test "${enable_stdout+set}" = set; then :
5070 enableval=$enable_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00005071else
jfigus97a80f42014-11-04 14:15:40 -05005072 enable_stdout=no
jfigusc7e66e32013-05-08 11:32:55 -04005073fi
5074
David McGrewb67061f2005-09-28 14:23:06 +00005075if test "$enable_stdout" = "yes"; then
5076
jfigusc7e66e32013-05-08 11:32:55 -04005077$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005078
5079fi
jfigusc7e66e32013-05-08 11:32:55 -04005080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5
5081$as_echo "$enable_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005082
jfigusc7e66e32013-05-08 11:32:55 -04005083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5
5084$as_echo_n "checking whether to use /dev/console for error reporting... " >&6; }
5085# Check whether --enable-console was given.
5086if test "${enable_console+set}" = set; then :
5087 enableval=$enable_console;
David McGrewb67061f2005-09-28 14:23:06 +00005088else
5089 enable_console=no
jfigusc7e66e32013-05-08 11:32:55 -04005090fi
5091
David McGrewb67061f2005-09-28 14:23:06 +00005092if test "$enable_console" = "yes"; then
5093
jfigusc7e66e32013-05-08 11:32:55 -04005094$as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h
David McGrewb67061f2005-09-28 14:23:06 +00005095
5096
jfigusc7e66e32013-05-08 11:32:55 -04005097$as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005098
5099fi
jfigusc7e66e32013-05-08 11:32:55 -04005100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5
5101$as_echo "$enable_console" >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00005102
jfigusc7e66e32013-05-08 11:32:55 -04005103ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00005104
5105
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005106# Extract the first word of "pkg-config", so it can be a program name with args.
5107set dummy pkg-config; ac_word=$2
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109$as_echo_n "checking for $ac_word... " >&6; }
5110if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5111 $as_echo_n "(cached) " >&6
5112else
5113 if test -n "$PKG_CONFIG"; then
5114 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5115else
5116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117for as_dir in $PATH
5118do
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123 ac_cv_prog_PKG_CONFIG="yes"
5124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5126 fi
5127done
5128 done
5129IFS=$as_save_IFS
5130
5131fi
5132fi
5133PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5134if test -n "$PKG_CONFIG"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5136$as_echo "$PKG_CONFIG" >&6; }
5137else
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139$as_echo "no" >&6; }
5140fi
5141
5142
5143if test "x$PKG_CONFIG" != "x"; then
5144 HAVE_PKG_CONFIG=1
5145 ac_config_files="$ac_config_files libsrtp.pc"
5146
5147else
5148 HAVE_PKG_CONFIG=0
5149fi
5150
jfigusc7e66e32013-05-08 11:32:55 -04005151ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile"
5152
Cullen Jennings235513a2005-09-21 22:51:36 +00005153cat >confcache <<\_ACEOF
5154# This file is a shell script that caches the results of configure
5155# tests run on this system so they can be shared between configure
5156# scripts and configure runs, see configure's option --config-cache.
5157# It is not useful on other systems. If it contains results you don't
5158# want to keep, you may remove or edit it.
5159#
5160# config.status only pays attention to the cache file if you give it
5161# the --recheck option to rerun configure.
5162#
5163# `ac_cv_env_foo' variables (set or unset) will be overridden when
5164# loading this file, other *unset* `ac_cv_foo' will be assigned the
5165# following values.
5166
5167_ACEOF
5168
5169# The following way of writing the cache mishandles newlines in values,
5170# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04005171# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00005172# Ultrix sh set writes to stderr and can't be redirected directly,
5173# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04005174(
5175 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5176 eval ac_val=\$$ac_var
5177 case $ac_val in #(
5178 *${as_nl}*)
5179 case $ac_var in #(
5180 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5181$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5182 esac
5183 case $ac_var in #(
5184 _ | IFS | as_nl) ;; #(
5185 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5186 *) { eval $ac_var=; unset $ac_var;} ;;
5187 esac ;;
5188 esac
5189 done
5190
Cullen Jennings235513a2005-09-21 22:51:36 +00005191 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04005192 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5193 *${as_nl}ac_space=\ *)
5194 # `set' does not quote correctly, so add quotes: double-quote
5195 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00005196 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00005197 "s/'/'\\\\''/g;
5198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04005199 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00005200 *)
5201 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04005202 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00005203 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005204 esac |
5205 sort
5206) |
Cullen Jennings235513a2005-09-21 22:51:36 +00005207 sed '
jfigusc7e66e32013-05-08 11:32:55 -04005208 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00005209 t clear
jfigusc7e66e32013-05-08 11:32:55 -04005210 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00005211 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5212 t end
jfigusc7e66e32013-05-08 11:32:55 -04005213 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5214 :end' >>confcache
5215if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5216 if test -w "$cache_file"; then
5217 if test "x$cache_file" != "x/dev/null"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5219$as_echo "$as_me: updating cache $cache_file" >&6;}
5220 if test ! -f "$cache_file" || test -h "$cache_file"; then
5221 cat confcache >"$cache_file"
5222 else
5223 case $cache_file in #(
5224 */* | ?:*)
5225 mv -f confcache "$cache_file"$$ &&
5226 mv -f "$cache_file"$$ "$cache_file" ;; #(
5227 *)
5228 mv -f confcache "$cache_file" ;;
5229 esac
5230 fi
5231 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005232 else
jfigusc7e66e32013-05-08 11:32:55 -04005233 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5234$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00005235 fi
5236fi
5237rm -f confcache
5238
5239test "x$prefix" = xNONE && prefix=$ac_default_prefix
5240# Let make expand exec_prefix.
5241test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5242
Cullen Jennings235513a2005-09-21 22:51:36 +00005243DEFS=-DHAVE_CONFIG_H
5244
5245ac_libobjs=
5246ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04005247U=
Cullen Jennings235513a2005-09-21 22:51:36 +00005248for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5249 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04005250 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5251 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5252 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5253 # will be set to the directory where LIBOBJS objects are built.
5254 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5255 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00005256done
5257LIBOBJS=$ac_libobjs
5258
5259LTLIBOBJS=$ac_ltlibobjs
5260
5261
5262
jfigusc7e66e32013-05-08 11:32:55 -04005263
5264: "${CONFIG_STATUS=./config.status}"
5265ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00005266ac_clean_files_save=$ac_clean_files
5267ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04005268{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5269$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5270as_write_fail=0
5271cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005272#! $SHELL
5273# Generated by $as_me.
5274# Run this file to recreate the current configuration.
5275# Compiler output produced by configure, useful for debugging
5276# configure, is in config.log if it exists.
5277
5278debug=false
5279ac_cs_recheck=false
5280ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04005281
Cullen Jennings235513a2005-09-21 22:51:36 +00005282SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04005283export SHELL
5284_ASEOF
5285cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5286## -------------------- ##
5287## M4sh Initialization. ##
5288## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00005289
jfigusc7e66e32013-05-08 11:32:55 -04005290# Be more Bourne compatible
5291DUALCASE=1; export DUALCASE # for MKS sh
5292if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005293 emulate sh
5294 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04005295 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00005296 # is contrary to our usage. Disable this feature.
5297 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04005298 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00005299else
jfigusc7e66e32013-05-08 11:32:55 -04005300 case `(set -o) 2>/dev/null` in #(
5301 *posix*) :
5302 set -o posix ;; #(
5303 *) :
5304 ;;
5305esac
Cullen Jennings235513a2005-09-21 22:51:36 +00005306fi
5307
5308
jfigusc7e66e32013-05-08 11:32:55 -04005309as_nl='
5310'
5311export as_nl
5312# Printing a long string crashes Solaris 7 /usr/bin/printf.
5313as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5314as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5315as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5316# Prefer a ksh shell builtin over an external printf program on Solaris,
5317# but without wasting forks for bash or zsh.
5318if test -z "$BASH_VERSION$ZSH_VERSION" \
5319 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5320 as_echo='print -r --'
5321 as_echo_n='print -rn --'
5322elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5323 as_echo='printf %s\n'
5324 as_echo_n='printf %s'
5325else
5326 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5327 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5328 as_echo_n='/usr/ucb/echo -n'
5329 else
5330 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5331 as_echo_n_body='eval
5332 arg=$1;
5333 case $arg in #(
5334 *"$as_nl"*)
5335 expr "X$arg" : "X\\(.*\\)$as_nl";
5336 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5337 esac;
5338 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5339 '
5340 export as_echo_n_body
5341 as_echo_n='sh -c $as_echo_n_body as_echo'
5342 fi
5343 export as_echo_body
5344 as_echo='sh -c $as_echo_body as_echo'
5345fi
5346
5347# The user is always right.
5348if test "${PATH_SEPARATOR+set}" != set; then
5349 PATH_SEPARATOR=:
5350 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5351 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5352 PATH_SEPARATOR=';'
5353 }
5354fi
5355
5356
5357# IFS
5358# We need space, tab and new line, in precisely that order. Quoting is
5359# there to prevent editors from complaining about space-tab.
5360# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5361# splitting by setting IFS to empty value.)
5362IFS=" "" $as_nl"
5363
5364# Find who we are. Look in the path if we contain no directory separator.
5365as_myself=
5366case $0 in #((
5367 *[\\/]* ) as_myself=$0 ;;
5368 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369for as_dir in $PATH
5370do
5371 IFS=$as_save_IFS
5372 test -z "$as_dir" && as_dir=.
5373 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5374 done
5375IFS=$as_save_IFS
5376
5377 ;;
5378esac
5379# We did not find ourselves, most probably we were run as `sh COMMAND'
5380# in which case we are not to be found in the path.
5381if test "x$as_myself" = x; then
5382 as_myself=$0
5383fi
5384if test ! -f "$as_myself"; then
5385 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5386 exit 1
5387fi
5388
5389# Unset variables that we do not need and which cause bugs (e.g. in
5390# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5391# suppresses any "Segmentation fault" message there. '((' could
5392# trigger a bug in pdksh 5.2.14.
5393for as_var in BASH_ENV ENV MAIL MAILPATH
5394do eval test x\${$as_var+set} = xset \
5395 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5396done
Cullen Jennings235513a2005-09-21 22:51:36 +00005397PS1='$ '
5398PS2='> '
5399PS4='+ '
5400
5401# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04005402LC_ALL=C
5403export LC_ALL
5404LANGUAGE=C
5405export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04005406
jfigusc7e66e32013-05-08 11:32:55 -04005407# CDPATH.
5408(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5409
5410
5411# as_fn_error STATUS ERROR [LINENO LOG_FD]
5412# ----------------------------------------
5413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5415# script with STATUS, using 1 if that was 0.
5416as_fn_error ()
5417{
5418 as_status=$1; test $as_status -eq 0 && as_status=1
5419 if test "$4"; then
5420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5422 fi
5423 $as_echo "$as_me: error: $2" >&2
5424 as_fn_exit $as_status
5425} # as_fn_error
5426
5427
5428# as_fn_set_status STATUS
5429# -----------------------
5430# Set $? to STATUS, without forking.
5431as_fn_set_status ()
5432{
5433 return $1
5434} # as_fn_set_status
5435
5436# as_fn_exit STATUS
5437# -----------------
5438# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5439as_fn_exit ()
5440{
5441 set +e
5442 as_fn_set_status $1
5443 exit $1
5444} # as_fn_exit
5445
5446# as_fn_unset VAR
5447# ---------------
5448# Portably unset VAR.
5449as_fn_unset ()
5450{
5451 { eval $1=; unset $1;}
5452}
5453as_unset=as_fn_unset
5454# as_fn_append VAR VALUE
5455# ----------------------
5456# Append the text in VALUE to the end of the definition contained in VAR. Take
5457# advantage of any shell optimizations that allow amortized linear growth over
5458# repeated appends, instead of the typical quadratic growth present in naive
5459# implementations.
5460if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5461 eval 'as_fn_append ()
5462 {
5463 eval $1+=\$2
5464 }'
5465else
5466 as_fn_append ()
5467 {
5468 eval $1=\$$1\$2
5469 }
5470fi # as_fn_append
5471
5472# as_fn_arith ARG...
5473# ------------------
5474# Perform arithmetic evaluation on the ARGs, and store the result in the
5475# global $as_val. Take advantage of shells that can avoid forks. The arguments
5476# must be portable across $(()) and expr.
5477if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5478 eval 'as_fn_arith ()
5479 {
5480 as_val=$(( $* ))
5481 }'
5482else
5483 as_fn_arith ()
5484 {
5485 as_val=`expr "$@" || test $? -eq 1`
5486 }
5487fi # as_fn_arith
5488
5489
5490if expr a : '\(a\)' >/dev/null 2>&1 &&
5491 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005492 as_expr=expr
5493else
5494 as_expr=false
5495fi
5496
jfigusc7e66e32013-05-08 11:32:55 -04005497if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005498 as_basename=basename
5499else
5500 as_basename=false
5501fi
5502
jfigusc7e66e32013-05-08 11:32:55 -04005503if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5504 as_dirname=dirname
5505else
5506 as_dirname=false
5507fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005508
jfigusc7e66e32013-05-08 11:32:55 -04005509as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00005510$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5511 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04005512 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5513$as_echo X/"$0" |
5514 sed '/^.*\/\([^/][^/]*\)\/*$/{
5515 s//\1/
5516 q
5517 }
5518 /^X\/\(\/\/\)$/{
5519 s//\1/
5520 q
5521 }
5522 /^X\/\(\/\).*/{
5523 s//\1/
5524 q
5525 }
5526 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005527
Cullen Jennings235513a2005-09-21 22:51:36 +00005528# Avoid depending upon Character Ranges.
5529as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5530as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5531as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5532as_cr_digits='0123456789'
5533as_cr_alnum=$as_cr_Letters$as_cr_digits
5534
jfigusc7e66e32013-05-08 11:32:55 -04005535ECHO_C= ECHO_N= ECHO_T=
5536case `echo -n x` in #(((((
5537-n*)
5538 case `echo 'xy\c'` in
5539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5540 xy) ECHO_C='\c';;
5541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5542 ECHO_T=' ';;
5543 esac;;
5544*)
5545 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00005546esac
5547
Cullen Jennings235513a2005-09-21 22:51:36 +00005548rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04005549if test -d conf$$.dir; then
5550 rm -f conf$$.dir/conf$$.file
5551else
5552 rm -f conf$$.dir
5553 mkdir conf$$.dir 2>/dev/null
5554fi
5555if (echo >conf$$.file) 2>/dev/null; then
5556 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005557 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04005558 # ... but there are two gotchas:
5559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5561 # In both cases, we have to default to `cp -pR'.
5562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5563 as_ln_s='cp -pR'
5564 elif ln conf$$.file conf$$ 2>/dev/null; then
5565 as_ln_s=ln
5566 else
5567 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005568 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005569else
jfigusc7e66e32013-05-08 11:32:55 -04005570 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005571fi
jfigusc7e66e32013-05-08 11:32:55 -04005572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5573rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00005574
jfigusc7e66e32013-05-08 11:32:55 -04005575
5576# as_fn_mkdir_p
5577# -------------
5578# Create "$as_dir" as a directory, including parents if necessary.
5579as_fn_mkdir_p ()
5580{
5581
5582 case $as_dir in #(
5583 -*) as_dir=./$as_dir;;
5584 esac
5585 test -d "$as_dir" || eval $as_mkdir_p || {
5586 as_dirs=
5587 while :; do
5588 case $as_dir in #(
5589 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5590 *) as_qdir=$as_dir;;
5591 esac
5592 as_dirs="'$as_qdir' $as_dirs"
5593 as_dir=`$as_dirname -- "$as_dir" ||
5594$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5595 X"$as_dir" : 'X\(//\)[^/]' \| \
5596 X"$as_dir" : 'X\(//\)$' \| \
5597 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5598$as_echo X"$as_dir" |
5599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5600 s//\1/
5601 q
5602 }
5603 /^X\(\/\/\)[^/].*/{
5604 s//\1/
5605 q
5606 }
5607 /^X\(\/\/\)$/{
5608 s//\1/
5609 q
5610 }
5611 /^X\(\/\).*/{
5612 s//\1/
5613 q
5614 }
5615 s/.*/./; q'`
5616 test -d "$as_dir" && break
5617 done
5618 test -z "$as_dirs" || eval "mkdir $as_dirs"
5619 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5620
5621
5622} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005623if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04005624 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00005625else
David McGrewfec49dd2005-09-23 19:34:11 +00005626 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00005627 as_mkdir_p=false
5628fi
5629
jfigusc7e66e32013-05-08 11:32:55 -04005630
5631# as_fn_executable_p FILE
5632# -----------------------
5633# Test if FILE is an executable regular file.
5634as_fn_executable_p ()
5635{
5636 test -f "$1" && test -x "$1"
5637} # as_fn_executable_p
5638as_test_x='test -x'
5639as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005640
5641# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00005642as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005643
5644# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00005645as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005646
5647
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005648exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04005649## ----------------------------------- ##
5650## Main body of $CONFIG_STATUS script. ##
5651## ----------------------------------- ##
5652_ASEOF
5653test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005654
jfigusc7e66e32013-05-08 11:32:55 -04005655cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5656# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00005657# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04005658# values after options handling.
5659ac_log="
jfigusb058a3b2014-10-31 09:27:18 -04005660This file was extended by libsrtp $as_me 2.0.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04005661generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00005662
5663 CONFIG_FILES = $CONFIG_FILES
5664 CONFIG_HEADERS = $CONFIG_HEADERS
5665 CONFIG_LINKS = $CONFIG_LINKS
5666 CONFIG_COMMANDS = $CONFIG_COMMANDS
5667 $ $0 $@
5668
jfigusc7e66e32013-05-08 11:32:55 -04005669on `(hostname || uname -n) 2>/dev/null | sed 1q`
5670"
5671
Cullen Jennings235513a2005-09-21 22:51:36 +00005672_ACEOF
5673
jfigusc7e66e32013-05-08 11:32:55 -04005674case $ac_config_files in *"
5675"*) set x $ac_config_files; shift; ac_config_files=$*;;
5676esac
5677
5678case $ac_config_headers in *"
5679"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5680esac
5681
5682
5683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005684# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04005685config_files="$ac_config_files"
5686config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00005687
jfigusc7e66e32013-05-08 11:32:55 -04005688_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005689
jfigusc7e66e32013-05-08 11:32:55 -04005690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005691ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04005692\`$as_me' instantiates files and other configuration actions
5693from templates according to the current configuration. Unless the files
5694and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00005695
jfigusc7e66e32013-05-08 11:32:55 -04005696Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00005697
5698 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04005699 -V, --version print version number and configuration settings, then exit
5700 --config print configuration, then exit
5701 -q, --quiet, --silent
5702 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00005703 -d, --debug don't remove temporary files
5704 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04005705 --file=FILE[:TEMPLATE]
5706 instantiate the configuration file FILE
5707 --header=FILE[:TEMPLATE]
5708 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00005709
5710Configuration files:
5711$config_files
5712
5713Configuration headers:
5714$config_headers
5715
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005716Report bugs to <https://github.com/cisco/libsrtp/issues>."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005717
jfigusc7e66e32013-05-08 11:32:55 -04005718_ACEOF
5719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5720ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00005721ac_cs_version="\\
jfigusb058a3b2014-10-31 09:27:18 -04005722libsrtp config.status 2.0.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04005723configured by $0, generated by GNU Autoconf 2.69,
5724 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00005725
jfigusc7e66e32013-05-08 11:32:55 -04005726Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00005727This config.status script is free software; the Free Software Foundation
5728gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04005729
5730ac_pwd='$ac_pwd'
5731srcdir='$srcdir'
5732INSTALL='$INSTALL'
5733test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00005734_ACEOF
5735
jfigusc7e66e32013-05-08 11:32:55 -04005736cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5737# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00005738ac_need_defaults=:
5739while test $# != 0
5740do
5741 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04005742 --*=?*)
5743 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5744 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005745 ac_shift=:
5746 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005747 --*=)
5748 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5749 ac_optarg=
5750 ac_shift=:
5751 ;;
5752 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00005753 ac_option=$1
5754 ac_optarg=$2
5755 ac_shift=shift
5756 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005757 esac
5758
5759 case $ac_option in
5760 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00005761 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5762 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04005763 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5764 $as_echo "$ac_cs_version"; exit ;;
5765 --config | --confi | --conf | --con | --co | --c )
5766 $as_echo "$ac_cs_config"; exit ;;
5767 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00005768 debug=: ;;
5769 --file | --fil | --fi | --f )
5770 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04005771 case $ac_optarg in
5772 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5773 '') as_fn_error $? "missing file argument" ;;
5774 esac
5775 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005776 ac_need_defaults=false;;
5777 --header | --heade | --head | --hea )
5778 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04005779 case $ac_optarg in
5780 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5781 esac
5782 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005783 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04005784 --he | --h)
5785 # Conflict between --help and --header
5786 as_fn_error $? "ambiguous option: \`$1'
5787Try \`$0 --help' for more information.";;
5788 --help | --hel | -h )
5789 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005790 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5791 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5792 ac_cs_silent=: ;;
5793
5794 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04005795 -*) as_fn_error $? "unrecognized option: \`$1'
5796Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005797
jfigusc7e66e32013-05-08 11:32:55 -04005798 *) as_fn_append ac_config_targets " $1"
5799 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005800
5801 esac
5802 shift
5803done
5804
5805ac_configure_extra_args=
5806
5807if $ac_cs_silent; then
5808 exec 6>/dev/null
5809 ac_configure_extra_args="$ac_configure_extra_args --silent"
5810fi
5811
5812_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005814if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04005815 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5816 shift
5817 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5818 CONFIG_SHELL='$SHELL'
5819 export CONFIG_SHELL
5820 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00005821fi
5822
5823_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5825exec 5>>config.log
5826{
5827 echo
5828 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5829## Running $as_me. ##
5830_ASBOX
5831 $as_echo "$ac_log"
5832} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00005833
jfigusc7e66e32013-05-08 11:32:55 -04005834_ACEOF
5835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5836_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005837
jfigusc7e66e32013-05-08 11:32:55 -04005838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005839
jfigusc7e66e32013-05-08 11:32:55 -04005840# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00005841for ac_config_target in $ac_config_targets
5842do
jfigusc7e66e32013-05-08 11:32:55 -04005843 case $ac_config_target in
5844 "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 +02005845 "libsrtp.pc") CONFIG_FILES="$CONFIG_FILES libsrtp.pc" ;;
jfigusc7e66e32013-05-08 11:32:55 -04005846 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5847 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
5848 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5849
5850 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005851 esac
5852done
5853
jfigusc7e66e32013-05-08 11:32:55 -04005854
Cullen Jennings235513a2005-09-21 22:51:36 +00005855# If the user did not use the arguments to specify the items to instantiate,
5856# then the envvar interface is used. Set only those that are not.
5857# We use the long form for the default assignment because of an extremely
5858# bizarre bug on SunOS 4.1.3.
5859if $ac_need_defaults; then
5860 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5861 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5862fi
5863
5864# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04005865# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00005866# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04005867# Hook for its removal unless debugging.
5868# Note that there is a small window in which the directory will not be cleaned:
5869# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00005870$debug ||
5871{
jfigusc7e66e32013-05-08 11:32:55 -04005872 tmp= ac_tmp=
5873 trap 'exit_status=$?
5874 : "${ac_tmp:=$tmp}"
5875 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5876' 0
5877 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00005878}
Cullen Jennings235513a2005-09-21 22:51:36 +00005879# Create a (secure) tmp directory for tmp files.
5880
5881{
jfigusc7e66e32013-05-08 11:32:55 -04005882 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5883 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00005884} ||
5885{
jfigusc7e66e32013-05-08 11:32:55 -04005886 tmp=./conf$$-$RANDOM
5887 (umask 077 && mkdir "$tmp")
5888} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5889ac_tmp=$tmp
5890
5891# Set up the scripts for CONFIG_FILES section.
5892# No need to generate them if there are no CONFIG_FILES.
5893# This happens for instance with `./config.status config.h'.
5894if test -n "$CONFIG_FILES"; then
5895
5896
5897ac_cr=`echo X | tr X '\015'`
5898# On cygwin, bash can eat \r inside `` if the user requested igncr.
5899# But we know of no other shell where ac_cr would be empty at this
5900# point, so we can use a bashism as a fallback.
5901if test "x$ac_cr" = x; then
5902 eval ac_cr=\$\'\\r\'
5903fi
5904ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5905if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5906 ac_cs_awk_cr='\\r'
5907else
5908 ac_cs_awk_cr=$ac_cr
5909fi
5910
5911echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5912_ACEOF
5913
5914
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005915{
jfigusc7e66e32013-05-08 11:32:55 -04005916 echo "cat >conf$$subs.awk <<_ACEOF" &&
5917 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5918 echo "_ACEOF"
5919} >conf$$subs.sh ||
5920 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5921ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5922ac_delim='%!_!# '
5923for ac_last_try in false false false false false :; do
5924 . ./conf$$subs.sh ||
5925 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5926
5927 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5928 if test $ac_delim_n = $ac_delim_num; then
5929 break
5930 elif $ac_last_try; then
5931 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5932 else
5933 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5934 fi
5935done
5936rm -f conf$$subs.sh
5937
5938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5939cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5940_ACEOF
5941sed -n '
5942h
5943s/^/S["/; s/!.*/"]=/
5944p
5945g
5946s/^[^!]*!//
5947:repl
5948t repl
5949s/'"$ac_delim"'$//
5950t delim
5951:nl
5952h
5953s/\(.\{148\}\)..*/\1/
5954t more1
5955s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5956p
5957n
5958b repl
5959:more1
5960s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5961p
5962g
5963s/.\{148\}//
5964t nl
5965:delim
5966h
5967s/\(.\{148\}\)..*/\1/
5968t more2
5969s/["\\]/\\&/g; s/^/"/; s/$/"/
5970p
5971b
5972:more2
5973s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5974p
5975g
5976s/.\{148\}//
5977t delim
5978' <conf$$subs.awk | sed '
5979/^[^""]/{
5980 N
5981 s/\n//
5982}
5983' >>$CONFIG_STATUS || ac_write_fail=1
5984rm -f conf$$subs.awk
5985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5986_ACAWK
5987cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5988 for (key in S) S_is_set[key] = 1
5989 FS = ""
5990
5991}
5992{
5993 line = $ 0
5994 nfields = split(line, field, "@")
5995 substed = 0
5996 len = length(field[1])
5997 for (i = 2; i < nfields; i++) {
5998 key = field[i]
5999 keylen = length(key)
6000 if (S_is_set[key]) {
6001 value = S[key]
6002 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6003 len += length(value) + length(field[++i])
6004 substed = 1
6005 } else
6006 len += 1 + keylen
6007 }
6008
6009 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006010}
jfigusa14b5a02013-03-29 12:24:12 -04006011
jfigusc7e66e32013-05-08 11:32:55 -04006012_ACAWK
6013_ACEOF
6014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6015if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6016 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6017else
6018 cat
6019fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6020 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04006021_ACEOF
6022
jfigusc7e66e32013-05-08 11:32:55 -04006023# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6024# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6025# trailing colons and then remove the whole line if VPATH becomes empty
6026# (actually we leave an empty line to preserve line numbers).
6027if test "x$srcdir" = x.; then
6028 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6029h
6030s///
6031s/^/:/
6032s/[ ]*$/:/
6033s/:\$(srcdir):/:/g
6034s/:\${srcdir}:/:/g
6035s/:@srcdir@:/:/g
6036s/^:*//
6037s/:*$//
6038x
6039s/\(=[ ]*\).*/\1/
6040G
6041s/\n//
6042s/^[^=]*=[ ]*$//
6043}'
6044fi
jfigusa14b5a02013-03-29 12:24:12 -04006045
jfigusc7e66e32013-05-08 11:32:55 -04006046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006047fi # test -n "$CONFIG_FILES"
6048
jfigusc7e66e32013-05-08 11:32:55 -04006049# Set up the scripts for CONFIG_HEADERS section.
6050# No need to generate them if there are no CONFIG_HEADERS.
6051# This happens for instance with `./config.status Makefile'.
6052if test -n "$CONFIG_HEADERS"; then
6053cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6054BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00006055_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006056
6057# Transform confdefs.h into an awk script `defines.awk', embedded as
6058# here-document in config.status, that substitutes the proper values into
6059# config.h.in to produce config.h.
6060
6061# Create a delimiter string that does not exist in confdefs.h, to ease
6062# handling of long lines.
6063ac_delim='%!_!# '
6064for ac_last_try in false false :; do
6065 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6066 if test -z "$ac_tt"; then
6067 break
6068 elif $ac_last_try; then
6069 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6070 else
6071 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6072 fi
6073done
6074
6075# For the awk script, D is an array of macro values keyed by name,
6076# likewise P contains macro parameters if any. Preserve backslash
6077# newline sequences.
6078
6079ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6080sed -n '
6081s/.\{148\}/&'"$ac_delim"'/g
6082t rset
6083:rset
6084s/^[ ]*#[ ]*define[ ][ ]*/ /
6085t def
6086d
6087:def
6088s/\\$//
6089t bsnl
6090s/["\\]/\\&/g
6091s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6092D["\1"]=" \3"/p
6093s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6094d
6095:bsnl
6096s/["\\]/\\&/g
6097s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6098D["\1"]=" \3\\\\\\n"\\/p
6099t cont
6100s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6101t cont
6102d
6103:cont
6104n
6105s/.\{148\}/&'"$ac_delim"'/g
6106t clear
6107:clear
6108s/\\$//
6109t bsnlc
6110s/["\\]/\\&/g; s/^/"/; s/$/"/p
6111d
6112:bsnlc
6113s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6114b cont
6115' <confdefs.h | sed '
6116s/'"$ac_delim"'/"\\\
6117"/g' >>$CONFIG_STATUS || ac_write_fail=1
6118
6119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6120 for (key in D) D_is_set[key] = 1
6121 FS = ""
6122}
6123/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6124 line = \$ 0
6125 split(line, arg, " ")
6126 if (arg[1] == "#") {
6127 defundef = arg[2]
6128 mac1 = arg[3]
6129 } else {
6130 defundef = substr(arg[1], 2)
6131 mac1 = arg[2]
6132 }
6133 split(mac1, mac2, "(") #)
6134 macro = mac2[1]
6135 prefix = substr(line, 1, index(line, defundef) - 1)
6136 if (D_is_set[macro]) {
6137 # Preserve the white space surrounding the "#".
6138 print prefix "define", macro P[macro] D[macro]
6139 next
6140 } else {
6141 # Replace #undef with comments. This is necessary, for example,
6142 # in the case of _POSIX_SOURCE, which is predefined and required
6143 # on some systems where configure will not decide to define it.
6144 if (defundef == "undef") {
6145 print "/*", prefix defundef, macro, "*/"
6146 next
6147 }
6148 }
6149}
6150{ print }
6151_ACAWK
6152_ACEOF
6153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6154 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6155fi # test -n "$CONFIG_HEADERS"
6156
6157
6158eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6159shift
6160for ac_tag
6161do
6162 case $ac_tag in
6163 :[FHLC]) ac_mode=$ac_tag; continue;;
6164 esac
6165 case $ac_mode$ac_tag in
6166 :[FHL]*:*);;
6167 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6168 :[FH]-) ac_tag=-:-;;
6169 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6170 esac
6171 ac_save_IFS=$IFS
6172 IFS=:
6173 set x $ac_tag
6174 IFS=$ac_save_IFS
6175 shift
6176 ac_file=$1
6177 shift
6178
6179 case $ac_mode in
6180 :L) ac_source=$1;;
6181 :[FH])
6182 ac_file_inputs=
6183 for ac_f
6184 do
6185 case $ac_f in
6186 -) ac_f="$ac_tmp/stdin";;
6187 *) # Look for the file first in the build tree, then in the source tree
6188 # (if the path is not absolute). The absolute path cannot be DOS-style,
6189 # because $ac_f cannot contain `:'.
6190 test -f "$ac_f" ||
6191 case $ac_f in
6192 [\\/$]*) false;;
6193 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6194 esac ||
6195 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6196 esac
6197 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6198 as_fn_append ac_file_inputs " '$ac_f'"
6199 done
6200
6201 # Let's still pretend it is `configure' which instantiates (i.e., don't
6202 # use $as_me), people would be surprised to read:
6203 # /* config.h. Generated by config.status. */
6204 configure_input='Generated from '`
6205 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6206 `' by configure.'
6207 if test x"$ac_file" != x-; then
6208 configure_input="$ac_file. $configure_input"
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6210$as_echo "$as_me: creating $ac_file" >&6;}
6211 fi
6212 # Neutralize special characters interpreted by sed in replacement strings.
6213 case $configure_input in #(
6214 *\&* | *\|* | *\\* )
6215 ac_sed_conf_input=`$as_echo "$configure_input" |
6216 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6217 *) ac_sed_conf_input=$configure_input;;
6218 esac
6219
6220 case $ac_tag in
6221 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6223 esac
6224 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006225 esac
6226
jfigusc7e66e32013-05-08 11:32:55 -04006227 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006228$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006229 X"$ac_file" : 'X\(//\)[^/]' \| \
6230 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006231 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6232$as_echo X"$ac_file" |
6233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6234 s//\1/
6235 q
6236 }
6237 /^X\(\/\/\)[^/].*/{
6238 s//\1/
6239 q
6240 }
6241 /^X\(\/\/\)$/{
6242 s//\1/
6243 q
6244 }
6245 /^X\(\/\).*/{
6246 s//\1/
6247 q
6248 }
6249 s/.*/./; q'`
6250 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006251 ac_builddir=.
6252
jfigusc7e66e32013-05-08 11:32:55 -04006253case "$ac_dir" in
6254.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6255*)
6256 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6257 # A ".." for each directory in $ac_dir_suffix.
6258 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6259 case $ac_top_builddir_sub in
6260 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6261 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6262 esac ;;
6263esac
6264ac_abs_top_builddir=$ac_pwd
6265ac_abs_builddir=$ac_pwd$ac_dir_suffix
6266# for backward compatibility:
6267ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00006268
6269case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04006270 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00006271 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04006272 ac_top_srcdir=$ac_top_builddir_sub
6273 ac_abs_top_srcdir=$ac_pwd ;;
6274 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00006275 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04006276 ac_top_srcdir=$srcdir
6277 ac_abs_top_srcdir=$srcdir ;;
6278 *) # Relative name.
6279 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6280 ac_top_srcdir=$ac_top_build_prefix$srcdir
6281 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006282esac
jfigusc7e66e32013-05-08 11:32:55 -04006283ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00006284
Cullen Jennings235513a2005-09-21 22:51:36 +00006285
jfigusc7e66e32013-05-08 11:32:55 -04006286 case $ac_mode in
6287 :F)
6288 #
6289 # CONFIG_FILE
6290 #
Cullen Jennings235513a2005-09-21 22:51:36 +00006291
David McGrewb67061f2005-09-28 14:23:06 +00006292 case $INSTALL in
6293 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04006294 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00006295 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006296_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006297
6298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6299# If the template does not know about datarootdir, expand it.
6300# FIXME: This hack should be removed a few years after 2.60.
6301ac_datarootdir_hack=; ac_datarootdir_seen=
6302ac_sed_dataroot='
6303/datarootdir/ {
6304 p
6305 q
6306}
6307/@datadir@/p
6308/@docdir@/p
6309/@infodir@/p
6310/@localedir@/p
6311/@mandir@/p'
6312case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6313*datarootdir*) ac_datarootdir_seen=yes;;
6314*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6316$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6317_ACEOF
6318cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6319 ac_datarootdir_hack='
6320 s&@datadir@&$datadir&g
6321 s&@docdir@&$docdir&g
6322 s&@infodir@&$infodir&g
6323 s&@localedir@&$localedir&g
6324 s&@mandir@&$mandir&g
6325 s&\\\${datarootdir}&$datarootdir&g' ;;
6326esac
6327_ACEOF
6328
6329# Neutralize VPATH when `$srcdir' = `.'.
6330# Shell code in configure.ac might set extrasub.
6331# FIXME: do we really want to maintain this feature?
6332cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6333ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00006334$extrasub
6335_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006337:t
6338/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04006339s|@configure_input@|$ac_sed_conf_input|;t t
6340s&@top_builddir@&$ac_top_builddir_sub&;t t
6341s&@top_build_prefix@&$ac_top_build_prefix&;t t
6342s&@srcdir@&$ac_srcdir&;t t
6343s&@abs_srcdir@&$ac_abs_srcdir&;t t
6344s&@top_srcdir@&$ac_top_srcdir&;t t
6345s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6346s&@builddir@&$ac_builddir&;t t
6347s&@abs_builddir@&$ac_abs_builddir&;t t
6348s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6349s&@INSTALL@&$ac_INSTALL&;t t
6350$ac_datarootdir_hack
6351"
6352eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6353 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00006354
jfigusc7e66e32013-05-08 11:32:55 -04006355test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6356 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6357 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6358 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6360which seems to be undefined. Please make sure it is defined" >&5
6361$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6362which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006363
jfigusc7e66e32013-05-08 11:32:55 -04006364 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006365 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04006366 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6367 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6368 esac \
6369 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6370 ;;
6371 :H)
6372 #
6373 # CONFIG_HEADER
6374 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006375 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04006376 {
6377 $as_echo "/* $configure_input */" \
6378 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6379 } >"$ac_tmp/config.h" \
6380 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6381 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6383$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006384 else
jfigusc7e66e32013-05-08 11:32:55 -04006385 rm -f "$ac_file"
6386 mv "$ac_tmp/config.h" "$ac_file" \
6387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006388 fi
6389 else
jfigusc7e66e32013-05-08 11:32:55 -04006390 $as_echo "/* $configure_input */" \
6391 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6392 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006393 fi
jfigusc7e66e32013-05-08 11:32:55 -04006394 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006395
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006396
jfigusc7e66e32013-05-08 11:32:55 -04006397 esac
6398
6399done # for ac_tag
6400
6401
6402as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006403_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006404ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04006405
jfigusc7e66e32013-05-08 11:32:55 -04006406test $ac_write_fail = 0 ||
6407 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6408
Cullen Jennings235513a2005-09-21 22:51:36 +00006409
6410# configure is writing to config.log, and then calls config.status.
6411# config.status does its own redirection, appending to config.log.
6412# Unfortunately, on DOS this fails, as config.log is still kept open
6413# by configure, so config.status won't be able to write to it; its
6414# output is simply discarded. So we exec the FD to /dev/null,
6415# effectively closing config.log, so it can be properly (re)opened and
6416# appended to by config.status. When coming back to configure, we
6417# need to make the FD available again.
6418if test "$no_create" != yes; then
6419 ac_cs_success=:
6420 ac_config_status_args=
6421 test "$silent" = yes &&
6422 ac_config_status_args="$ac_config_status_args --quiet"
6423 exec 5>/dev/null
6424 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6425 exec 5>>config.log
6426 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6427 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04006428 $ac_cs_success || as_fn_exit 1
6429fi
6430if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6432$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006433fi
6434
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00006435
6436# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04006437as_dir=crypto/ae_xfm; as_fn_mkdir_p
6438as_dir=crypto/cipher; as_fn_mkdir_p
6439as_dir=crypto/hash; as_fn_mkdir_p
6440as_dir=crypto/kernel; as_fn_mkdir_p
6441as_dir=crypto/math; as_fn_mkdir_p
6442as_dir=crypto/replay; as_fn_mkdir_p
6443as_dir=crypto/rng; as_fn_mkdir_p
6444as_dir=crypto/test; as_fn_mkdir_p
6445as_dir=doc; as_fn_mkdir_p
6446as_dir=srtp; as_fn_mkdir_p
6447as_dir=tables; as_fn_mkdir_p
6448as_dir=test; as_fn_mkdir_p