blob: f21dec6f7c2337722015265151510592620dd718 [file] [log] [blame]
Cullen Jennings235513a2005-09-21 22:51:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
jfigusd196e022014-11-20 16:43:44 -05003# Generated by GNU Autoconf 2.69 for libsrtp2 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.
jfigusd196e022014-11-20 16:43:44 -0500581PACKAGE_NAME='libsrtp2'
582PACKAGE_TARNAME='libsrtp2'
jfigusb058a3b2014-10-31 09:27:18 -0400583PACKAGE_VERSION='2.0.0-pre'
jfigusd196e022014-11-20 16:43:44 -0500584PACKAGE_STRING='libsrtp2 2.0.0-pre'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200585PACKAGE_BUGREPORT='https://github.com/cisco/libsrtp/issues'
586PACKAGE_URL=''
Cullen Jennings235513a2005-09-21 22:51:36 +0000587
Cullen Jennings235513a2005-09-21 22:51:36 +0000588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -0400591#ifdef HAVE_SYS_TYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000592# include <sys/types.h>
593#endif
jfigusc7e66e32013-05-08 11:32:55 -0400594#ifdef HAVE_SYS_STAT_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000595# include <sys/stat.h>
596#endif
jfigusc7e66e32013-05-08 11:32:55 -0400597#ifdef STDC_HEADERS
Cullen Jennings235513a2005-09-21 22:51:36 +0000598# include <stdlib.h>
599# include <stddef.h>
600#else
jfigusc7e66e32013-05-08 11:32:55 -0400601# ifdef HAVE_STDLIB_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000602# include <stdlib.h>
603# endif
604#endif
jfigusc7e66e32013-05-08 11:32:55 -0400605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000607# include <memory.h>
608# endif
609# include <string.h>
610#endif
jfigusc7e66e32013-05-08 11:32:55 -0400611#ifdef HAVE_STRINGS_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000612# include <strings.h>
613#endif
jfigusc7e66e32013-05-08 11:32:55 -0400614#ifdef HAVE_INTTYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000615# include <inttypes.h>
Cullen Jennings235513a2005-09-21 22:51:36 +0000616#endif
jfigusc7e66e32013-05-08 11:32:55 -0400617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000621# include <unistd.h>
622#endif"
623
jfigusc7e66e32013-05-08 11:32:55 -0400624ac_subst_vars='LTLIBOBJS
625LIBOBJS
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200626HAVE_PKG_CONFIG
627PKG_CONFIG
Bernardo Torresb3c51422014-10-14 12:40:09 -0300628HAVE_PCAP
jfigusc7e66e32013-05-08 11:32:55 -0400629HMAC_OBJS
jfigusc7e66e32013-05-08 11:32:55 -0400630AES_ICM_OBJS
631USE_OPENSSL
632EXE
633host_os
634host_vendor
635host_cpu
636host
637build_os
638build_vendor
639build_cpu
640build
641EGREP
642GREP
643CPP
644INSTALL_DATA
645INSTALL_SCRIPT
646INSTALL_PROGRAM
jfigus1ce6a742015-04-06 08:54:01 -0400647RANLIB
jfigusc7e66e32013-05-08 11:32:55 -0400648OBJEXT
649EXEEXT
650ac_ct_CC
651CPPFLAGS
652LDFLAGS
653CFLAGS
654CC
jfigus1ce6a742015-04-06 08:54:01 -0400655ac_ct_AR
656AR
jfigusc7e66e32013-05-08 11:32:55 -0400657target_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
jfigusc7e66e32013-05-08 11:32:55 -0400698enable_debug
699enable_generic_aesicm
700enable_openssl
jfigusc7e66e32013-05-08 11:32:55 -0400701enable_stdout
702enable_console
jfigusc7e66e32013-05-08 11:32:55 -0400703'
704 ac_precious_vars='build_alias
705host_alias
706target_alias
707CC
708CFLAGS
709LDFLAGS
710LIBS
711CPPFLAGS
712CPP'
713
Cullen Jennings235513a2005-09-21 22:51:36 +0000714
715# Initialize some variables set by options.
716ac_init_help=
717ac_init_version=false
jfigusc7e66e32013-05-08 11:32:55 -0400718ac_unrecognized_opts=
719ac_unrecognized_sep=
Cullen Jennings235513a2005-09-21 22:51:36 +0000720# The variables have the same names as the options, with
721# dashes changed to underlines.
722cache_file=/dev/null
723exec_prefix=NONE
724no_create=
725no_recursion=
726prefix=NONE
727program_prefix=NONE
728program_suffix=NONE
729program_transform_name=s,x,x,
730silent=
731site=
732srcdir=
733verbose=
734x_includes=NONE
735x_libraries=NONE
736
737# Installation directory options.
738# These are left unexpanded so users can "make install exec_prefix=/foo"
739# and all the variables that are supposed to be based on exec_prefix
740# by default will actually change.
741# Use braces instead of parens because sh, perl, etc. also accept them.
jfigusc7e66e32013-05-08 11:32:55 -0400742# (The list follows the same order as the GNU Coding Standards.)
Cullen Jennings235513a2005-09-21 22:51:36 +0000743bindir='${exec_prefix}/bin'
744sbindir='${exec_prefix}/sbin'
745libexecdir='${exec_prefix}/libexec'
jfigusc7e66e32013-05-08 11:32:55 -0400746datarootdir='${prefix}/share'
747datadir='${datarootdir}'
Cullen Jennings235513a2005-09-21 22:51:36 +0000748sysconfdir='${prefix}/etc'
749sharedstatedir='${prefix}/com'
750localstatedir='${prefix}/var'
Cullen Jennings235513a2005-09-21 22:51:36 +0000751includedir='${prefix}/include'
752oldincludedir='/usr/include'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200753docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
jfigusc7e66e32013-05-08 11:32:55 -0400754infodir='${datarootdir}/info'
755htmldir='${docdir}'
756dvidir='${docdir}'
757pdfdir='${docdir}'
758psdir='${docdir}'
759libdir='${exec_prefix}/lib'
760localedir='${datarootdir}/locale'
761mandir='${datarootdir}/man'
Cullen Jennings235513a2005-09-21 22:51:36 +0000762
763ac_prev=
jfigusc7e66e32013-05-08 11:32:55 -0400764ac_dashdash=
Cullen Jennings235513a2005-09-21 22:51:36 +0000765for ac_option
766do
767 # If the previous option needs an argument, assign it.
768 if test -n "$ac_prev"; then
jfigusc7e66e32013-05-08 11:32:55 -0400769 eval $ac_prev=\$ac_option
Cullen Jennings235513a2005-09-21 22:51:36 +0000770 ac_prev=
771 continue
772 fi
773
jfigusc7e66e32013-05-08 11:32:55 -0400774 case $ac_option in
775 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
776 *=) ac_optarg= ;;
777 *) ac_optarg=yes ;;
778 esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000779
780 # Accept the important Cygnus configure options, so we can diagnose typos.
781
jfigusc7e66e32013-05-08 11:32:55 -0400782 case $ac_dashdash$ac_option in
783 --)
784 ac_dashdash=yes ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000785
786 -bindir | --bindir | --bindi | --bind | --bin | --bi)
787 ac_prev=bindir ;;
788 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
789 bindir=$ac_optarg ;;
790
791 -build | --build | --buil | --bui | --bu)
792 ac_prev=build_alias ;;
793 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
794 build_alias=$ac_optarg ;;
795
796 -cache-file | --cache-file | --cache-fil | --cache-fi \
797 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
798 ac_prev=cache_file ;;
799 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
800 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
801 cache_file=$ac_optarg ;;
802
803 --config-cache | -C)
804 cache_file=config.cache ;;
805
jfigusc7e66e32013-05-08 11:32:55 -0400806 -datadir | --datadir | --datadi | --datad)
Cullen Jennings235513a2005-09-21 22:51:36 +0000807 ac_prev=datadir ;;
jfigusc7e66e32013-05-08 11:32:55 -0400808 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000809 datadir=$ac_optarg ;;
810
jfigusc7e66e32013-05-08 11:32:55 -0400811 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
812 | --dataroo | --dataro | --datar)
813 ac_prev=datarootdir ;;
814 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
815 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
816 datarootdir=$ac_optarg ;;
817
Cullen Jennings235513a2005-09-21 22:51:36 +0000818 -disable-* | --disable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400819 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000820 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400821 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
822 as_fn_error $? "invalid feature name: $ac_useropt"
823 ac_useropt_orig=$ac_useropt
824 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
825 case $ac_user_opts in
826 *"
827"enable_$ac_useropt"
828"*) ;;
829 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
830 ac_unrecognized_sep=', ';;
831 esac
832 eval enable_$ac_useropt=no ;;
833
834 -docdir | --docdir | --docdi | --doc | --do)
835 ac_prev=docdir ;;
836 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
837 docdir=$ac_optarg ;;
838
839 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
840 ac_prev=dvidir ;;
841 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
842 dvidir=$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000843
844 -enable-* | --enable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400845 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000846 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400847 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
848 as_fn_error $? "invalid feature name: $ac_useropt"
849 ac_useropt_orig=$ac_useropt
850 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
851 case $ac_user_opts in
852 *"
853"enable_$ac_useropt"
854"*) ;;
855 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
856 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000857 esac
jfigusc7e66e32013-05-08 11:32:55 -0400858 eval enable_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000859
860 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
861 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
862 | --exec | --exe | --ex)
863 ac_prev=exec_prefix ;;
864 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
865 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
866 | --exec=* | --exe=* | --ex=*)
867 exec_prefix=$ac_optarg ;;
868
869 -gas | --gas | --ga | --g)
870 # Obsolete; use --with-gas.
871 with_gas=yes ;;
872
873 -help | --help | --hel | --he | -h)
874 ac_init_help=long ;;
875 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
876 ac_init_help=recursive ;;
877 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
878 ac_init_help=short ;;
879
880 -host | --host | --hos | --ho)
881 ac_prev=host_alias ;;
882 -host=* | --host=* | --hos=* | --ho=*)
883 host_alias=$ac_optarg ;;
884
jfigusc7e66e32013-05-08 11:32:55 -0400885 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
886 ac_prev=htmldir ;;
887 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
888 | --ht=*)
889 htmldir=$ac_optarg ;;
890
Cullen Jennings235513a2005-09-21 22:51:36 +0000891 -includedir | --includedir | --includedi | --included | --include \
892 | --includ | --inclu | --incl | --inc)
893 ac_prev=includedir ;;
894 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
895 | --includ=* | --inclu=* | --incl=* | --inc=*)
896 includedir=$ac_optarg ;;
897
898 -infodir | --infodir | --infodi | --infod | --info | --inf)
899 ac_prev=infodir ;;
900 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
901 infodir=$ac_optarg ;;
902
903 -libdir | --libdir | --libdi | --libd)
904 ac_prev=libdir ;;
905 -libdir=* | --libdir=* | --libdi=* | --libd=*)
906 libdir=$ac_optarg ;;
907
908 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
909 | --libexe | --libex | --libe)
910 ac_prev=libexecdir ;;
911 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
912 | --libexe=* | --libex=* | --libe=*)
913 libexecdir=$ac_optarg ;;
914
jfigusc7e66e32013-05-08 11:32:55 -0400915 -localedir | --localedir | --localedi | --localed | --locale)
916 ac_prev=localedir ;;
917 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
918 localedir=$ac_optarg ;;
919
Cullen Jennings235513a2005-09-21 22:51:36 +0000920 -localstatedir | --localstatedir | --localstatedi | --localstated \
jfigusc7e66e32013-05-08 11:32:55 -0400921 | --localstate | --localstat | --localsta | --localst | --locals)
Cullen Jennings235513a2005-09-21 22:51:36 +0000922 ac_prev=localstatedir ;;
923 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
jfigusc7e66e32013-05-08 11:32:55 -0400924 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000925 localstatedir=$ac_optarg ;;
926
927 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
928 ac_prev=mandir ;;
929 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
930 mandir=$ac_optarg ;;
931
932 -nfp | --nfp | --nf)
933 # Obsolete; use --without-fp.
934 with_fp=no ;;
935
936 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
937 | --no-cr | --no-c | -n)
938 no_create=yes ;;
939
940 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
941 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
942 no_recursion=yes ;;
943
944 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
945 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
946 | --oldin | --oldi | --old | --ol | --o)
947 ac_prev=oldincludedir ;;
948 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
949 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
950 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
951 oldincludedir=$ac_optarg ;;
952
953 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
954 ac_prev=prefix ;;
955 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
956 prefix=$ac_optarg ;;
957
958 -program-prefix | --program-prefix | --program-prefi | --program-pref \
959 | --program-pre | --program-pr | --program-p)
960 ac_prev=program_prefix ;;
961 -program-prefix=* | --program-prefix=* | --program-prefi=* \
962 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
963 program_prefix=$ac_optarg ;;
964
965 -program-suffix | --program-suffix | --program-suffi | --program-suff \
966 | --program-suf | --program-su | --program-s)
967 ac_prev=program_suffix ;;
968 -program-suffix=* | --program-suffix=* | --program-suffi=* \
969 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
970 program_suffix=$ac_optarg ;;
971
972 -program-transform-name | --program-transform-name \
973 | --program-transform-nam | --program-transform-na \
974 | --program-transform-n | --program-transform- \
975 | --program-transform | --program-transfor \
976 | --program-transfo | --program-transf \
977 | --program-trans | --program-tran \
978 | --progr-tra | --program-tr | --program-t)
979 ac_prev=program_transform_name ;;
980 -program-transform-name=* | --program-transform-name=* \
981 | --program-transform-nam=* | --program-transform-na=* \
982 | --program-transform-n=* | --program-transform-=* \
983 | --program-transform=* | --program-transfor=* \
984 | --program-transfo=* | --program-transf=* \
985 | --program-trans=* | --program-tran=* \
986 | --progr-tra=* | --program-tr=* | --program-t=*)
987 program_transform_name=$ac_optarg ;;
988
jfigusc7e66e32013-05-08 11:32:55 -0400989 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
990 ac_prev=pdfdir ;;
991 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
992 pdfdir=$ac_optarg ;;
993
994 -psdir | --psdir | --psdi | --psd | --ps)
995 ac_prev=psdir ;;
996 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
997 psdir=$ac_optarg ;;
998
Cullen Jennings235513a2005-09-21 22:51:36 +0000999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1000 | -silent | --silent | --silen | --sile | --sil)
1001 silent=yes ;;
1002
1003 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1004 ac_prev=sbindir ;;
1005 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1006 | --sbi=* | --sb=*)
1007 sbindir=$ac_optarg ;;
1008
1009 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1010 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1011 | --sharedst | --shareds | --shared | --share | --shar \
1012 | --sha | --sh)
1013 ac_prev=sharedstatedir ;;
1014 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1015 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1016 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1017 | --sha=* | --sh=*)
1018 sharedstatedir=$ac_optarg ;;
1019
1020 -site | --site | --sit)
1021 ac_prev=site ;;
1022 -site=* | --site=* | --sit=*)
1023 site=$ac_optarg ;;
1024
1025 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1026 ac_prev=srcdir ;;
1027 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1028 srcdir=$ac_optarg ;;
1029
1030 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1031 | --syscon | --sysco | --sysc | --sys | --sy)
1032 ac_prev=sysconfdir ;;
1033 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1034 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1035 sysconfdir=$ac_optarg ;;
1036
1037 -target | --target | --targe | --targ | --tar | --ta | --t)
1038 ac_prev=target_alias ;;
1039 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1040 target_alias=$ac_optarg ;;
1041
1042 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1043 verbose=yes ;;
1044
1045 -version | --version | --versio | --versi | --vers | -V)
1046 ac_init_version=: ;;
1047
1048 -with-* | --with-*)
jfigusc7e66e32013-05-08 11:32:55 -04001049 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001050 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052 as_fn_error $? "invalid package name: $ac_useropt"
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1056 *"
1057"with_$ac_useropt"
1058"*) ;;
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +00001061 esac
jfigusc7e66e32013-05-08 11:32:55 -04001062 eval with_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001063
1064 -without-* | --without-*)
jfigusc7e66e32013-05-08 11:32:55 -04001065 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001066 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 as_fn_error $? "invalid package name: $ac_useropt"
1069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1072 *"
1073"with_$ac_useropt"
1074"*) ;;
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1077 esac
1078 eval with_$ac_useropt=no ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001079
1080 --x)
1081 # Obsolete; use --with-x.
1082 with_x=yes ;;
1083
1084 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1085 | --x-incl | --x-inc | --x-in | --x-i)
1086 ac_prev=x_includes ;;
1087 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1088 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1089 x_includes=$ac_optarg ;;
1090
1091 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1092 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1093 ac_prev=x_libraries ;;
1094 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1095 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1096 x_libraries=$ac_optarg ;;
1097
jfigusc7e66e32013-05-08 11:32:55 -04001098 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1099Try \`$0 --help' for more information"
Cullen Jennings235513a2005-09-21 22:51:36 +00001100 ;;
1101
1102 *=*)
1103 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001105 case $ac_envvar in #(
1106 '' | [0-9]* | *[!_$as_cr_alnum]* )
1107 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1108 esac
1109 eval $ac_envvar=\$ac_optarg
Cullen Jennings235513a2005-09-21 22:51:36 +00001110 export $ac_envvar ;;
1111
1112 *)
1113 # FIXME: should be removed in autoconf 3.0.
jfigusc7e66e32013-05-08 11:32:55 -04001114 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Cullen Jennings235513a2005-09-21 22:51:36 +00001115 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jfigusc7e66e32013-05-08 11:32:55 -04001116 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1117 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Cullen Jennings235513a2005-09-21 22:51:36 +00001118 ;;
1119
1120 esac
1121done
1122
1123if test -n "$ac_prev"; then
1124 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jfigusc7e66e32013-05-08 11:32:55 -04001125 as_fn_error $? "missing argument to $ac_option"
Cullen Jennings235513a2005-09-21 22:51:36 +00001126fi
1127
jfigusc7e66e32013-05-08 11:32:55 -04001128if test -n "$ac_unrecognized_opts"; then
1129 case $enable_option_checking in
1130 no) ;;
1131 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1132 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001133 esac
jfigusc7e66e32013-05-08 11:32:55 -04001134fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001135
jfigusc7e66e32013-05-08 11:32:55 -04001136# Check all directory arguments for consistency.
1137for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1138 datadir sysconfdir sharedstatedir localstatedir includedir \
1139 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1140 libdir localedir mandir
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001141do
jfigusc7e66e32013-05-08 11:32:55 -04001142 eval ac_val=\$$ac_var
1143 # Remove trailing slashes.
jfigusa14b5a02013-03-29 12:24:12 -04001144 case $ac_val in
jfigusc7e66e32013-05-08 11:32:55 -04001145 */ )
1146 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1147 eval $ac_var=\$ac_val;;
jfigusa14b5a02013-03-29 12:24:12 -04001148 esac
jfigusc7e66e32013-05-08 11:32:55 -04001149 # Be sure to have absolute directory names.
1150 case $ac_val in
1151 [\\/$]* | ?:[\\/]* ) continue;;
1152 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1153 esac
1154 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Cullen Jennings235513a2005-09-21 22:51:36 +00001155done
1156
1157# There might be people who depend on the old broken behavior: `$host'
1158# used to hold the argument of --host etc.
1159# FIXME: To remove some day.
1160build=$build_alias
1161host=$host_alias
1162target=$target_alias
1163
1164# FIXME: To remove some day.
1165if test "x$host_alias" != x; then
1166 if test "x$build_alias" = x; then
1167 cross_compiling=maybe
Cullen Jennings235513a2005-09-21 22:51:36 +00001168 elif test "x$build_alias" != "x$host_alias"; then
1169 cross_compiling=yes
1170 fi
1171fi
1172
1173ac_tool_prefix=
1174test -n "$host_alias" && ac_tool_prefix=$host_alias-
1175
1176test "$silent" = yes && exec 6>/dev/null
1177
1178
jfigusc7e66e32013-05-08 11:32:55 -04001179ac_pwd=`pwd` && test -n "$ac_pwd" &&
1180ac_ls_di=`ls -di .` &&
1181ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1182 as_fn_error $? "working directory cannot be determined"
1183test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1184 as_fn_error $? "pwd does not report name of working directory"
1185
1186
Cullen Jennings235513a2005-09-21 22:51:36 +00001187# Find the source files, if location was not specified.
1188if test -z "$srcdir"; then
1189 ac_srcdir_defaulted=yes
jfigusc7e66e32013-05-08 11:32:55 -04001190 # Try the directory containing this script, then the parent directory.
1191 ac_confdir=`$as_dirname -- "$as_myself" ||
1192$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1193 X"$as_myself" : 'X\(//\)[^/]' \| \
1194 X"$as_myself" : 'X\(//\)$' \| \
1195 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1196$as_echo X"$as_myself" |
1197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1198 s//\1/
1199 q
1200 }
1201 /^X\(\/\/\)[^/].*/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\/\)$/{
1206 s//\1/
1207 q
1208 }
1209 /^X\(\/\).*/{
1210 s//\1/
1211 q
1212 }
1213 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001214 srcdir=$ac_confdir
jfigusc7e66e32013-05-08 11:32:55 -04001215 if test ! -r "$srcdir/$ac_unique_file"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00001216 srcdir=..
1217 fi
1218else
1219 ac_srcdir_defaulted=no
1220fi
jfigusc7e66e32013-05-08 11:32:55 -04001221if test ! -r "$srcdir/$ac_unique_file"; then
1222 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1223 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Cullen Jennings235513a2005-09-21 22:51:36 +00001224fi
jfigusc7e66e32013-05-08 11:32:55 -04001225ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1226ac_abs_confdir=`(
1227 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1228 pwd)`
1229# When building in place, set srcdir=.
1230if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 srcdir=.
1232fi
1233# Remove unnecessary trailing slashes from srcdir.
1234# Double slashes in file names in object file debugging info
1235# mess up M-x gdb in Emacs.
1236case $srcdir in
1237*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1238esac
1239for ac_var in $ac_precious_vars; do
1240 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_env_${ac_var}_value=\$${ac_var}
1242 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1244done
Cullen Jennings235513a2005-09-21 22:51:36 +00001245
1246#
1247# Report the --help message.
1248#
1249if test "$ac_init_help" = "long"; then
1250 # Omit some internal or obsolete options to make the list less imposing.
1251 # This message is too long to be a string in the A/UX 3.1 sh.
1252 cat <<_ACEOF
jfigusd196e022014-11-20 16:43:44 -05001253\`configure' configures libsrtp2 2.0.0-pre to adapt to many kinds of systems.
Cullen Jennings235513a2005-09-21 22:51:36 +00001254
1255Usage: $0 [OPTION]... [VAR=VALUE]...
1256
1257To assign environment variables (e.g., CC, CFLAGS...), specify them as
1258VAR=VALUE. See below for descriptions of some of the useful variables.
1259
1260Defaults for the options are specified in brackets.
1261
1262Configuration:
1263 -h, --help display this help and exit
1264 --help=short display options specific to this package
1265 --help=recursive display the short help of all the included packages
1266 -V, --version display version information and exit
jfigusc7e66e32013-05-08 11:32:55 -04001267 -q, --quiet, --silent do not print \`checking ...' messages
Cullen Jennings235513a2005-09-21 22:51:36 +00001268 --cache-file=FILE cache test results in FILE [disabled]
1269 -C, --config-cache alias for \`--cache-file=config.cache'
1270 -n, --no-create do not create output files
1271 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1272
Cullen Jennings235513a2005-09-21 22:51:36 +00001273Installation directories:
1274 --prefix=PREFIX install architecture-independent files in PREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001275 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +00001276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001277 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +00001278
1279By default, \`make install' will install all the files in
1280\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1281an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1282for instance \`--prefix=\$HOME'.
1283
1284For better control, use the options below.
1285
1286Fine tuning of the installation directories:
jfigusc7e66e32013-05-08 11:32:55 -04001287 --bindir=DIR user executables [EPREFIX/bin]
1288 --sbindir=DIR system admin executables [EPREFIX/sbin]
1289 --libexecdir=DIR program executables [EPREFIX/libexec]
1290 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1291 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1292 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1293 --libdir=DIR object code libraries [EPREFIX/lib]
1294 --includedir=DIR C header files [PREFIX/include]
1295 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1296 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1297 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1298 --infodir=DIR info documentation [DATAROOTDIR/info]
1299 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1300 --mandir=DIR man documentation [DATAROOTDIR/man]
jfigusd196e022014-11-20 16:43:44 -05001301 --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp2]
jfigusc7e66e32013-05-08 11:32:55 -04001302 --htmldir=DIR html documentation [DOCDIR]
1303 --dvidir=DIR dvi documentation [DOCDIR]
1304 --pdfdir=DIR pdf documentation [DOCDIR]
1305 --psdir=DIR ps documentation [DOCDIR]
Cullen Jennings235513a2005-09-21 22:51:36 +00001306_ACEOF
1307
1308 cat <<\_ACEOF
1309
1310System types:
1311 --build=BUILD configure for building on BUILD [guessed]
1312 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1313_ACEOF
1314fi
1315
1316if test -n "$ac_init_help"; then
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001317 case $ac_init_help in
jfigusd196e022014-11-20 16:43:44 -05001318 short | recursive ) echo "Configuration of libsrtp2 2.0.0-pre:";;
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001319 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00001320 cat <<\_ACEOF
1321
1322Optional Features:
jfigusc7e66e32013-05-08 11:32:55 -04001323 --disable-option-checking ignore unrecognized --enable/--with options
Cullen Jennings235513a2005-09-21 22:51:36 +00001324 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1325 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
David McGrewb67061f2005-09-28 14:23:06 +00001326 --disable-debug do not compile in dynamic debugging system
1327 --enable-generic-aesicm compile in changes for ISMAcryp
jfigusc7e66e32013-05-08 11:32:55 -04001328 --enable-openssl compile in OpenSSL crypto engine
jfigus97a80f42014-11-04 14:15:40 -05001329 --enable-stdout use stdout for debug/error reporting
David McGrewb67061f2005-09-28 14:23:06 +00001330 --enable-console use /dev/console for error reporting
Cullen Jennings235513a2005-09-21 22:51:36 +00001331
1332Some influential environment variables:
1333 CC C compiler command
1334 CFLAGS C compiler flags
1335 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1336 nonstandard directory <lib dir>
jfigusc7e66e32013-05-08 11:32:55 -04001337 LIBS libraries to pass to the linker, e.g. -l<library>
1338 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1339 you have headers in a nonstandard directory <include dir>
Cullen Jennings235513a2005-09-21 22:51:36 +00001340 CPP C preprocessor
1341
1342Use these variables to override the choices made by `configure' or to help
1343it to find libraries and programs with nonstandard names/locations.
1344
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001345Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00001346_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001347ac_status=$?
Cullen Jennings235513a2005-09-21 22:51:36 +00001348fi
1349
1350if test "$ac_init_help" = "recursive"; then
1351 # If there are subdirs, report their specific --help.
Cullen Jennings235513a2005-09-21 22:51:36 +00001352 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jfigusc7e66e32013-05-08 11:32:55 -04001353 test -d "$ac_dir" ||
1354 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1355 continue
Cullen Jennings235513a2005-09-21 22:51:36 +00001356 ac_builddir=.
1357
jfigusc7e66e32013-05-08 11:32:55 -04001358case "$ac_dir" in
1359.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1360*)
1361 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1362 # A ".." for each directory in $ac_dir_suffix.
1363 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1364 case $ac_top_builddir_sub in
1365 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1366 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1367 esac ;;
1368esac
1369ac_abs_top_builddir=$ac_pwd
1370ac_abs_builddir=$ac_pwd$ac_dir_suffix
1371# for backward compatibility:
1372ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00001373
1374case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04001375 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00001376 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04001377 ac_top_srcdir=$ac_top_builddir_sub
1378 ac_abs_top_srcdir=$ac_pwd ;;
1379 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001380 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04001381 ac_top_srcdir=$srcdir
1382 ac_abs_top_srcdir=$srcdir ;;
1383 *) # Relative name.
1384 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1385 ac_top_srcdir=$ac_top_build_prefix$srcdir
1386 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001387esac
jfigusc7e66e32013-05-08 11:32:55 -04001388ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001389
jfigusc7e66e32013-05-08 11:32:55 -04001390 cd "$ac_dir" || { ac_status=$?; continue; }
1391 # Check for guested configure.
1392 if test -f "$ac_srcdir/configure.gnu"; then
1393 echo &&
1394 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1395 elif test -f "$ac_srcdir/configure"; then
1396 echo &&
1397 $SHELL "$ac_srcdir/configure" --help=recursive
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001398 else
jfigusc7e66e32013-05-08 11:32:55 -04001399 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1400 fi || ac_status=$?
1401 cd "$ac_pwd" || { ac_status=$?; break; }
Cullen Jennings235513a2005-09-21 22:51:36 +00001402 done
1403fi
1404
jfigusc7e66e32013-05-08 11:32:55 -04001405test -n "$ac_init_help" && exit $ac_status
Cullen Jennings235513a2005-09-21 22:51:36 +00001406if $ac_init_version; then
1407 cat <<\_ACEOF
jfigusd196e022014-11-20 16:43:44 -05001408libsrtp2 configure 2.0.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04001409generated by GNU Autoconf 2.69
Cullen Jennings235513a2005-09-21 22:51:36 +00001410
jfigusc7e66e32013-05-08 11:32:55 -04001411Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00001412This configure script is free software; the Free Software Foundation
1413gives unlimited permission to copy, distribute and modify it.
1414_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001415 exit
Cullen Jennings235513a2005-09-21 22:51:36 +00001416fi
jfigusc7e66e32013-05-08 11:32:55 -04001417
1418## ------------------------ ##
1419## Autoconf initialization. ##
1420## ------------------------ ##
1421
1422# ac_fn_c_try_compile LINENO
1423# --------------------------
1424# Try to compile conftest.$ac_ext, and return whether this succeeded.
1425ac_fn_c_try_compile ()
1426{
1427 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1428 rm -f conftest.$ac_objext
1429 if { { ac_try="$ac_compile"
1430case "(($ac_try" in
1431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1432 *) ac_try_echo=$ac_try;;
1433esac
1434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1435$as_echo "$ac_try_echo"; } >&5
1436 (eval "$ac_compile") 2>conftest.err
1437 ac_status=$?
1438 if test -s conftest.err; then
1439 grep -v '^ *+' conftest.err >conftest.er1
1440 cat conftest.er1 >&5
1441 mv -f conftest.er1 conftest.err
1442 fi
1443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1444 test $ac_status = 0; } && {
1445 test -z "$ac_c_werror_flag" ||
1446 test ! -s conftest.err
1447 } && test -s conftest.$ac_objext; then :
1448 ac_retval=0
1449else
1450 $as_echo "$as_me: failed program was:" >&5
1451sed 's/^/| /' conftest.$ac_ext >&5
1452
1453 ac_retval=1
1454fi
1455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1456 as_fn_set_status $ac_retval
1457
1458} # ac_fn_c_try_compile
1459
1460# ac_fn_c_try_run LINENO
1461# ----------------------
1462# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1463# that executables *can* be run.
1464ac_fn_c_try_run ()
1465{
1466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1467 if { { ac_try="$ac_link"
1468case "(($ac_try" in
1469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1470 *) ac_try_echo=$ac_try;;
1471esac
1472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1473$as_echo "$ac_try_echo"; } >&5
1474 (eval "$ac_link") 2>&5
1475 ac_status=$?
1476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1477 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1478 { { case "(($ac_try" in
1479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1480 *) ac_try_echo=$ac_try;;
1481esac
1482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1483$as_echo "$ac_try_echo"; } >&5
1484 (eval "$ac_try") 2>&5
1485 ac_status=$?
1486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1487 test $ac_status = 0; }; }; then :
1488 ac_retval=0
1489else
1490 $as_echo "$as_me: program exited with status $ac_status" >&5
1491 $as_echo "$as_me: failed program was:" >&5
1492sed 's/^/| /' conftest.$ac_ext >&5
1493
1494 ac_retval=$ac_status
1495fi
1496 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1497 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1498 as_fn_set_status $ac_retval
1499
1500} # ac_fn_c_try_run
1501
1502# ac_fn_c_try_cpp LINENO
1503# ----------------------
1504# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1505ac_fn_c_try_cpp ()
1506{
1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508 if { { ac_try="$ac_cpp conftest.$ac_ext"
1509case "(($ac_try" in
1510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1511 *) ac_try_echo=$ac_try;;
1512esac
1513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1514$as_echo "$ac_try_echo"; } >&5
1515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1516 ac_status=$?
1517 if test -s conftest.err; then
1518 grep -v '^ *+' conftest.err >conftest.er1
1519 cat conftest.er1 >&5
1520 mv -f conftest.er1 conftest.err
1521 fi
1522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1523 test $ac_status = 0; } > conftest.i && {
1524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1525 test ! -s conftest.err
1526 }; then :
1527 ac_retval=0
1528else
1529 $as_echo "$as_me: failed program was:" >&5
1530sed 's/^/| /' conftest.$ac_ext >&5
1531
1532 ac_retval=1
1533fi
1534 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1535 as_fn_set_status $ac_retval
1536
1537} # ac_fn_c_try_cpp
1538
1539# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1540# -------------------------------------------------------
1541# Tests whether HEADER exists and can be compiled using the include files in
1542# INCLUDES, setting the cache variable VAR accordingly.
1543ac_fn_c_check_header_compile ()
1544{
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1547$as_echo_n "checking for $2... " >&6; }
1548if eval \${$3+:} false; then :
1549 $as_echo_n "(cached) " >&6
1550else
1551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1552/* end confdefs.h. */
1553$4
1554#include <$2>
1555_ACEOF
1556if ac_fn_c_try_compile "$LINENO"; then :
1557 eval "$3=yes"
1558else
1559 eval "$3=no"
1560fi
1561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1562fi
1563eval ac_res=\$$3
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1565$as_echo "$ac_res" >&6; }
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567
1568} # ac_fn_c_check_header_compile
1569
1570# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1571# -------------------------------------------------------
1572# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1573# the include files in INCLUDES and setting the cache variable VAR
1574# accordingly.
1575ac_fn_c_check_header_mongrel ()
1576{
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 if eval \${$3+:} false; then :
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1580$as_echo_n "checking for $2... " >&6; }
1581if eval \${$3+:} false; then :
1582 $as_echo_n "(cached) " >&6
1583fi
1584eval ac_res=\$$3
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1586$as_echo "$ac_res" >&6; }
1587else
1588 # Is the header compilable?
1589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1590$as_echo_n "checking $2 usability... " >&6; }
1591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592/* end confdefs.h. */
1593$4
1594#include <$2>
1595_ACEOF
1596if ac_fn_c_try_compile "$LINENO"; then :
1597 ac_header_compiler=yes
1598else
1599 ac_header_compiler=no
1600fi
1601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1603$as_echo "$ac_header_compiler" >&6; }
1604
1605# Is the header present?
1606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1607$as_echo_n "checking $2 presence... " >&6; }
1608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609/* end confdefs.h. */
1610#include <$2>
1611_ACEOF
1612if ac_fn_c_try_cpp "$LINENO"; then :
1613 ac_header_preproc=yes
1614else
1615 ac_header_preproc=no
1616fi
1617rm -f conftest.err conftest.i conftest.$ac_ext
1618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1619$as_echo "$ac_header_preproc" >&6; }
1620
1621# So? What about this header?
1622case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1623 yes:no: )
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1625$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1627$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1628 ;;
1629 no:yes:* )
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1631$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1633$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1635$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1637$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1639$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001640( $as_echo "## ------------------------------------------------------ ##
1641## Report this to https://github.com/cisco/libsrtp/issues ##
1642## ------------------------------------------------------ ##"
1643 ) | sed "s/^/$as_me: WARNING: /" >&2
jfigusc7e66e32013-05-08 11:32:55 -04001644 ;;
1645esac
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647$as_echo_n "checking for $2... " >&6; }
1648if eval \${$3+:} false; then :
1649 $as_echo_n "(cached) " >&6
1650else
1651 eval "$3=\$ac_header_compiler"
1652fi
1653eval ac_res=\$$3
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655$as_echo "$ac_res" >&6; }
1656fi
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658
1659} # ac_fn_c_check_header_mongrel
1660
1661# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1662# -------------------------------------------
1663# Tests whether TYPE exists after having included INCLUDES, setting cache
1664# variable VAR accordingly.
1665ac_fn_c_check_type ()
1666{
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669$as_echo_n "checking for $2... " >&6; }
1670if eval \${$3+:} false; then :
1671 $as_echo_n "(cached) " >&6
1672else
1673 eval "$3=no"
1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675/* end confdefs.h. */
1676$4
1677int
1678main ()
1679{
1680if (sizeof ($2))
1681 return 0;
1682 ;
1683 return 0;
1684}
1685_ACEOF
1686if ac_fn_c_try_compile "$LINENO"; then :
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688/* end confdefs.h. */
1689$4
1690int
1691main ()
1692{
1693if (sizeof (($2)))
1694 return 0;
1695 ;
1696 return 0;
1697}
1698_ACEOF
1699if ac_fn_c_try_compile "$LINENO"; then :
1700
1701else
1702 eval "$3=yes"
1703fi
1704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1705fi
1706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707fi
1708eval ac_res=\$$3
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710$as_echo "$ac_res" >&6; }
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712
1713} # ac_fn_c_check_type
1714
1715# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1716# --------------------------------------------
1717# Tries to find the compile-time value of EXPR in a program that includes
1718# INCLUDES, setting VAR accordingly. Returns whether the value could be
1719# computed
1720ac_fn_c_compute_int ()
1721{
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if test "$cross_compiling" = yes; then
1724 # Depending upon the size, compute the lo and hi bounds.
1725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726/* end confdefs.h. */
1727$4
1728int
1729main ()
1730{
1731static int test_array [1 - 2 * !(($2) >= 0)];
1732test_array [0] = 0;
1733return test_array [0];
1734
1735 ;
1736 return 0;
1737}
1738_ACEOF
1739if ac_fn_c_try_compile "$LINENO"; then :
1740 ac_lo=0 ac_mid=0
1741 while :; do
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743/* end confdefs.h. */
1744$4
1745int
1746main ()
1747{
1748static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1749test_array [0] = 0;
1750return test_array [0];
1751
1752 ;
1753 return 0;
1754}
1755_ACEOF
1756if ac_fn_c_try_compile "$LINENO"; then :
1757 ac_hi=$ac_mid; break
1758else
1759 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1760 if test $ac_lo -le $ac_mid; then
1761 ac_lo= ac_hi=
1762 break
1763 fi
1764 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1765fi
1766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767 done
1768else
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770/* end confdefs.h. */
1771$4
1772int
1773main ()
1774{
1775static int test_array [1 - 2 * !(($2) < 0)];
1776test_array [0] = 0;
1777return test_array [0];
1778
1779 ;
1780 return 0;
1781}
1782_ACEOF
1783if ac_fn_c_try_compile "$LINENO"; then :
1784 ac_hi=-1 ac_mid=-1
1785 while :; do
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787/* end confdefs.h. */
1788$4
1789int
1790main ()
1791{
1792static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1793test_array [0] = 0;
1794return test_array [0];
1795
1796 ;
1797 return 0;
1798}
1799_ACEOF
1800if ac_fn_c_try_compile "$LINENO"; then :
1801 ac_lo=$ac_mid; break
1802else
1803 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1804 if test $ac_mid -le $ac_hi; then
1805 ac_lo= ac_hi=
1806 break
1807 fi
1808 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1809fi
1810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 done
1812else
1813 ac_lo= ac_hi=
1814fi
1815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816fi
1817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818# Binary search between lo and hi bounds.
1819while test "x$ac_lo" != "x$ac_hi"; do
1820 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822/* end confdefs.h. */
1823$4
1824int
1825main ()
1826{
1827static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1828test_array [0] = 0;
1829return test_array [0];
1830
1831 ;
1832 return 0;
1833}
1834_ACEOF
1835if ac_fn_c_try_compile "$LINENO"; then :
1836 ac_hi=$ac_mid
1837else
1838 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1839fi
1840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841done
1842case $ac_lo in #((
1843?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1844'') ac_retval=1 ;;
1845esac
1846 else
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848/* end confdefs.h. */
1849$4
1850static long int longval () { return $2; }
1851static unsigned long int ulongval () { return $2; }
1852#include <stdio.h>
1853#include <stdlib.h>
1854int
1855main ()
1856{
1857
1858 FILE *f = fopen ("conftest.val", "w");
1859 if (! f)
1860 return 1;
1861 if (($2) < 0)
1862 {
1863 long int i = longval ();
1864 if (i != ($2))
1865 return 1;
1866 fprintf (f, "%ld", i);
1867 }
1868 else
1869 {
1870 unsigned long int i = ulongval ();
1871 if (i != ($2))
1872 return 1;
1873 fprintf (f, "%lu", i);
1874 }
1875 /* Do not output a trailing newline, as this causes \r\n confusion
1876 on some platforms. */
1877 return ferror (f) || fclose (f) != 0;
1878
1879 ;
1880 return 0;
1881}
1882_ACEOF
1883if ac_fn_c_try_run "$LINENO"; then :
1884 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1885else
1886 ac_retval=1
1887fi
1888rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1889 conftest.$ac_objext conftest.beam conftest.$ac_ext
1890rm -f conftest.val
1891
1892 fi
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894 as_fn_set_status $ac_retval
1895
1896} # ac_fn_c_compute_int
1897
1898# ac_fn_c_try_link LINENO
1899# -----------------------
1900# Try to link conftest.$ac_ext, and return whether this succeeded.
1901ac_fn_c_try_link ()
1902{
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 rm -f conftest.$ac_objext conftest$ac_exeext
1905 if { { ac_try="$ac_link"
1906case "(($ac_try" in
1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908 *) ac_try_echo=$ac_try;;
1909esac
1910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911$as_echo "$ac_try_echo"; } >&5
1912 (eval "$ac_link") 2>conftest.err
1913 ac_status=$?
1914 if test -s conftest.err; then
1915 grep -v '^ *+' conftest.err >conftest.er1
1916 cat conftest.er1 >&5
1917 mv -f conftest.er1 conftest.err
1918 fi
1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; } && {
1921 test -z "$ac_c_werror_flag" ||
1922 test ! -s conftest.err
1923 } && test -s conftest$ac_exeext && {
1924 test "$cross_compiling" = yes ||
1925 test -x conftest$ac_exeext
1926 }; then :
1927 ac_retval=0
1928else
1929 $as_echo "$as_me: failed program was:" >&5
1930sed 's/^/| /' conftest.$ac_ext >&5
1931
1932 ac_retval=1
1933fi
1934 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1935 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1936 # interfere with the next link command; also delete a directory that is
1937 # left behind by Apple's compiler. We do this before executing the actions.
1938 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 as_fn_set_status $ac_retval
1941
1942} # ac_fn_c_try_link
1943
1944# ac_fn_c_check_func LINENO FUNC VAR
1945# ----------------------------------
1946# Tests whether FUNC exists, setting the cache variable VAR accordingly
1947ac_fn_c_check_func ()
1948{
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951$as_echo_n "checking for $2... " >&6; }
1952if eval \${$3+:} false; then :
1953 $as_echo_n "(cached) " >&6
1954else
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956/* end confdefs.h. */
1957/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1959#define $2 innocuous_$2
1960
1961/* System header to define __stub macros and hopefully few prototypes,
1962 which can conflict with char $2 (); below.
1963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1964 <limits.h> exists even on freestanding compilers. */
1965
1966#ifdef __STDC__
1967# include <limits.h>
1968#else
1969# include <assert.h>
1970#endif
1971
1972#undef $2
1973
1974/* Override any GCC internal prototype to avoid an error.
1975 Use char because int might match the return type of a GCC
1976 builtin and then its argument prototype would still apply. */
1977#ifdef __cplusplus
1978extern "C"
1979#endif
1980char $2 ();
1981/* The GNU C library defines this for functions which it implements
1982 to always fail with ENOSYS. Some functions are actually named
1983 something starting with __ and the normal name is an alias. */
1984#if defined __stub_$2 || defined __stub___$2
1985choke me
1986#endif
1987
1988int
1989main ()
1990{
1991return $2 ();
1992 ;
1993 return 0;
1994}
1995_ACEOF
1996if ac_fn_c_try_link "$LINENO"; then :
1997 eval "$3=yes"
1998else
1999 eval "$3=no"
2000fi
2001rm -f core conftest.err conftest.$ac_objext \
2002 conftest$ac_exeext conftest.$ac_ext
2003fi
2004eval ac_res=\$$3
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006$as_echo "$ac_res" >&6; }
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008
2009} # ac_fn_c_check_func
2010cat >config.log <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002011This file contains any messages produced by compilers while
2012running configure, to aid debugging if configure makes a mistake.
2013
jfigusd196e022014-11-20 16:43:44 -05002014It was created by libsrtp2 $as_me 2.0.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04002015generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00002016
2017 $ $0 $@
2018
2019_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002020exec 5>>config.log
Cullen Jennings235513a2005-09-21 22:51:36 +00002021{
2022cat <<_ASUNAME
2023## --------- ##
2024## Platform. ##
2025## --------- ##
2026
2027hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2028uname -m = `(uname -m) 2>/dev/null || echo unknown`
2029uname -r = `(uname -r) 2>/dev/null || echo unknown`
2030uname -s = `(uname -s) 2>/dev/null || echo unknown`
2031uname -v = `(uname -v) 2>/dev/null || echo unknown`
2032
2033/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2034/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2035
2036/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2037/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2038/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
jfigusc7e66e32013-05-08 11:32:55 -04002039/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Cullen Jennings235513a2005-09-21 22:51:36 +00002040/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2041/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2042/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2043
2044_ASUNAME
2045
2046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047for as_dir in $PATH
2048do
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002051 $as_echo "PATH: $as_dir"
2052 done
2053IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002054
2055} >&5
2056
2057cat >&5 <<_ACEOF
2058
2059
2060## ----------- ##
2061## Core tests. ##
2062## ----------- ##
2063
2064_ACEOF
2065
2066
2067# Keep a trace of the command line.
2068# Strip out --no-create and --no-recursion so they do not pile up.
2069# Strip out --silent because we don't want to record it for future runs.
2070# Also quote any args containing shell meta-characters.
2071# Make two passes to allow for proper duplicate-argument suppression.
2072ac_configure_args=
2073ac_configure_args0=
2074ac_configure_args1=
Cullen Jennings235513a2005-09-21 22:51:36 +00002075ac_must_keep_next=false
2076for ac_pass in 1 2
2077do
2078 for ac_arg
2079 do
2080 case $ac_arg in
2081 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2083 | -silent | --silent | --silen | --sile | --sil)
2084 continue ;;
jfigusc7e66e32013-05-08 11:32:55 -04002085 *\'*)
2086 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002087 esac
2088 case $ac_pass in
jfigusc7e66e32013-05-08 11:32:55 -04002089 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002090 2)
jfigusc7e66e32013-05-08 11:32:55 -04002091 as_fn_append ac_configure_args1 " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002092 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00002093 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00002094 else
David McGrewfec49dd2005-09-23 19:34:11 +00002095 case $ac_arg in
2096 *=* | --config-cache | -C | -disable-* | --disable-* \
2097 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2098 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2099 | -with-* | --with-* | -without-* | --without-* | --x)
2100 case "$ac_configure_args0 " in
2101 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2102 esac
2103 ;;
2104 -* ) ac_must_keep_next=true ;;
2105 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00002106 fi
jfigusc7e66e32013-05-08 11:32:55 -04002107 as_fn_append ac_configure_args " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002108 ;;
2109 esac
2110 done
2111done
jfigusc7e66e32013-05-08 11:32:55 -04002112{ ac_configure_args0=; unset ac_configure_args0;}
2113{ ac_configure_args1=; unset ac_configure_args1;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002114
2115# When interrupted or exit'd, cleanup temporary files, and complete
2116# config.log. We remove comments because anyway the quotes in there
2117# would cause problems or look ugly.
jfigusc7e66e32013-05-08 11:32:55 -04002118# WARNING: Use '\'' to represent an apostrophe within the trap.
2119# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Cullen Jennings235513a2005-09-21 22:51:36 +00002120trap 'exit_status=$?
2121 # Save into config.log some information that might help in debugging.
2122 {
2123 echo
2124
jfigusc7e66e32013-05-08 11:32:55 -04002125 $as_echo "## ---------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002126## Cache variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002127## ---------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002128 echo
2129 # The following way of writing the cache mishandles newlines in values,
jfigusc7e66e32013-05-08 11:32:55 -04002130(
2131 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2132 eval ac_val=\$$ac_var
2133 case $ac_val in #(
2134 *${as_nl}*)
2135 case $ac_var in #(
2136 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2137$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2138 esac
2139 case $ac_var in #(
2140 _ | IFS | as_nl) ;; #(
2141 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2142 *) { eval $ac_var=; unset $ac_var;} ;;
2143 esac ;;
2144 esac
2145 done
Cullen Jennings235513a2005-09-21 22:51:36 +00002146 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04002147 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2148 *${as_nl}ac_space=\ *)
Cullen Jennings235513a2005-09-21 22:51:36 +00002149 sed -n \
jfigusc7e66e32013-05-08 11:32:55 -04002150 "s/'\''/'\''\\\\'\'''\''/g;
2151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2152 ;; #(
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002153 *)
jfigusc7e66e32013-05-08 11:32:55 -04002154 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002155 ;;
jfigusc7e66e32013-05-08 11:32:55 -04002156 esac |
2157 sort
2158)
Cullen Jennings235513a2005-09-21 22:51:36 +00002159 echo
2160
jfigusc7e66e32013-05-08 11:32:55 -04002161 $as_echo "## ----------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002162## Output variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002163## ----------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002164 echo
2165 for ac_var in $ac_subst_vars
2166 do
jfigusc7e66e32013-05-08 11:32:55 -04002167 eval ac_val=\$$ac_var
2168 case $ac_val in
2169 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2170 esac
2171 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002172 done | sort
2173 echo
2174
2175 if test -n "$ac_subst_files"; then
jfigusc7e66e32013-05-08 11:32:55 -04002176 $as_echo "## ------------------- ##
2177## File substitutions. ##
2178## ------------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002179 echo
2180 for ac_var in $ac_subst_files
2181 do
jfigusc7e66e32013-05-08 11:32:55 -04002182 eval ac_val=\$$ac_var
2183 case $ac_val in
2184 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2185 esac
2186 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002187 done | sort
2188 echo
2189 fi
2190
2191 if test -s confdefs.h; then
jfigusc7e66e32013-05-08 11:32:55 -04002192 $as_echo "## ----------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002193## confdefs.h. ##
jfigusc7e66e32013-05-08 11:32:55 -04002194## ----------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002195 echo
jfigusc7e66e32013-05-08 11:32:55 -04002196 cat confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002197 echo
2198 fi
2199 test "$ac_signal" != 0 &&
jfigusc7e66e32013-05-08 11:32:55 -04002200 $as_echo "$as_me: caught signal $ac_signal"
2201 $as_echo "$as_me: exit $exit_status"
Cullen Jennings235513a2005-09-21 22:51:36 +00002202 } >&5
jfigusc7e66e32013-05-08 11:32:55 -04002203 rm -f core *.core core.conftest.* &&
2204 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Cullen Jennings235513a2005-09-21 22:51:36 +00002205 exit $exit_status
jfigusc7e66e32013-05-08 11:32:55 -04002206' 0
Cullen Jennings235513a2005-09-21 22:51:36 +00002207for ac_signal in 1 2 13 15; do
jfigusc7e66e32013-05-08 11:32:55 -04002208 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Cullen Jennings235513a2005-09-21 22:51:36 +00002209done
2210ac_signal=0
2211
2212# confdefs.h avoids OS command line length limits that DEFS can exceed.
jfigusc7e66e32013-05-08 11:32:55 -04002213rm -f -r conftest* confdefs.h
2214
2215$as_echo "/* confdefs.h */" > confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002216
2217# Predefined preprocessor variables.
2218
2219cat >>confdefs.h <<_ACEOF
2220#define PACKAGE_NAME "$PACKAGE_NAME"
2221_ACEOF
2222
Cullen Jennings235513a2005-09-21 22:51:36 +00002223cat >>confdefs.h <<_ACEOF
2224#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2225_ACEOF
2226
Cullen Jennings235513a2005-09-21 22:51:36 +00002227cat >>confdefs.h <<_ACEOF
2228#define PACKAGE_VERSION "$PACKAGE_VERSION"
2229_ACEOF
2230
Cullen Jennings235513a2005-09-21 22:51:36 +00002231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_STRING "$PACKAGE_STRING"
2233_ACEOF
2234
Cullen Jennings235513a2005-09-21 22:51:36 +00002235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2237_ACEOF
2238
jfigusc7e66e32013-05-08 11:32:55 -04002239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_URL "$PACKAGE_URL"
2241_ACEOF
2242
Cullen Jennings235513a2005-09-21 22:51:36 +00002243
2244# Let the site file select an alternate cache file if it wants to.
jfigusc7e66e32013-05-08 11:32:55 -04002245# Prefer an explicitly selected file to automatically selected ones.
2246ac_site_file1=NONE
2247ac_site_file2=NONE
2248if test -n "$CONFIG_SITE"; then
2249 # We do not want a PATH search for config.site.
2250 case $CONFIG_SITE in #((
2251 -*) ac_site_file1=./$CONFIG_SITE;;
2252 */*) ac_site_file1=$CONFIG_SITE;;
2253 *) ac_site_file1=./$CONFIG_SITE;;
2254 esac
2255elif test "x$prefix" != xNONE; then
2256 ac_site_file1=$prefix/share/config.site
2257 ac_site_file2=$prefix/etc/config.site
2258else
2259 ac_site_file1=$ac_default_prefix/share/config.site
2260 ac_site_file2=$ac_default_prefix/etc/config.site
Cullen Jennings235513a2005-09-21 22:51:36 +00002261fi
jfigusc7e66e32013-05-08 11:32:55 -04002262for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2263do
2264 test "x$ac_site_file" = xNONE && continue
2265 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2267$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002268 sed 's/^/| /' "$ac_site_file" >&5
jfigusc7e66e32013-05-08 11:32:55 -04002269 . "$ac_site_file" \
2270 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2272as_fn_error $? "failed to load site script $ac_site_file
2273See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002274 fi
2275done
2276
2277if test -r "$cache_file"; then
jfigusc7e66e32013-05-08 11:32:55 -04002278 # Some versions of bash will fail to source /dev/null (special files
2279 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2280 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2282$as_echo "$as_me: loading cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002283 case $cache_file in
jfigusc7e66e32013-05-08 11:32:55 -04002284 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2285 *) . "./$cache_file";;
Cullen Jennings235513a2005-09-21 22:51:36 +00002286 esac
2287 fi
2288else
jfigusc7e66e32013-05-08 11:32:55 -04002289 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2290$as_echo "$as_me: creating cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002291 >$cache_file
2292fi
2293
2294# Check that the precious variables saved in the cache have kept the same
2295# value.
2296ac_cache_corrupted=false
jfigusc7e66e32013-05-08 11:32:55 -04002297for ac_var in $ac_precious_vars; do
Cullen Jennings235513a2005-09-21 22:51:36 +00002298 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2299 eval ac_new_set=\$ac_env_${ac_var}_set
jfigusc7e66e32013-05-08 11:32:55 -04002300 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2301 eval ac_new_val=\$ac_env_${ac_var}_value
Cullen Jennings235513a2005-09-21 22:51:36 +00002302 case $ac_old_set,$ac_new_set in
2303 set,)
jfigusc7e66e32013-05-08 11:32:55 -04002304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2305$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 +00002306 ac_cache_corrupted=: ;;
2307 ,set)
jfigusc7e66e32013-05-08 11:32:55 -04002308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2309$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002310 ac_cache_corrupted=: ;;
2311 ,);;
2312 *)
2313 if test "x$ac_old_val" != "x$ac_new_val"; then
jfigusc7e66e32013-05-08 11:32:55 -04002314 # differences in whitespace do not lead to failure.
2315 ac_old_val_w=`echo x $ac_old_val`
2316 ac_new_val_w=`echo x $ac_new_val`
2317 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2319$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2320 ac_cache_corrupted=:
2321 else
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2323$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2324 eval $ac_var=\$ac_old_val
2325 fi
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2327$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2329$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002330 fi;;
2331 esac
2332 # Pass precious variables to config.status.
2333 if test "$ac_new_set" = set; then
2334 case $ac_new_val in
jfigusc7e66e32013-05-08 11:32:55 -04002335 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002336 *) ac_arg=$ac_var=$ac_new_val ;;
2337 esac
2338 case " $ac_configure_args " in
2339 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jfigusc7e66e32013-05-08 11:32:55 -04002340 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002341 esac
2342 fi
2343done
2344if $ac_cache_corrupted; then
jfigusc7e66e32013-05-08 11:32:55 -04002345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2348$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2349 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00002350fi
jfigusc7e66e32013-05-08 11:32:55 -04002351## -------------------- ##
2352## Main body of script. ##
2353## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002354
2355ac_ext=c
2356ac_cpp='$CPP $CPPFLAGS'
2357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2359ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360
2361
2362
David McGrewb67061f2005-09-28 14:23:06 +00002363if test -z "$CFLAGS"; then
Sean Brightbfb9e302014-03-24 20:45:17 -04002364 CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
David McGrewb67061f2005-09-28 14:23:06 +00002365fi
2366
jfigus1ce6a742015-04-06 08:54:01 -04002367# expand $ac_aux_dir to an absolute path
2368am_aux_dir=`cd $ac_aux_dir && pwd`
Cullen Jennings235513a2005-09-21 22:51:36 +00002369
2370ac_ext=c
2371ac_cpp='$CPP $CPPFLAGS'
2372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374ac_compiler_gnu=$ac_cv_c_compiler_gnu
2375if test -n "$ac_tool_prefix"; then
2376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2377set dummy ${ac_tool_prefix}gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2379$as_echo_n "checking for $ac_word... " >&6; }
2380if ${ac_cv_prog_CC+:} false; then :
2381 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002382else
2383 if test -n "$CC"; then
2384 ac_cv_prog_CC="$CC" # Let the user override the test.
2385else
2386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387for as_dir in $PATH
2388do
2389 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002393 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002395 break 2
2396 fi
2397done
jfigusc7e66e32013-05-08 11:32:55 -04002398 done
2399IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002400
2401fi
2402fi
2403CC=$ac_cv_prog_CC
2404if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2406$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002407else
jfigusc7e66e32013-05-08 11:32:55 -04002408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2409$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002410fi
2411
jfigusc7e66e32013-05-08 11:32:55 -04002412
Cullen Jennings235513a2005-09-21 22:51:36 +00002413fi
2414if test -z "$ac_cv_prog_CC"; then
2415 ac_ct_CC=$CC
2416 # Extract the first word of "gcc", so it can be a program name with args.
2417set dummy gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2419$as_echo_n "checking for $ac_word... " >&6; }
2420if ${ac_cv_prog_ac_ct_CC+:} false; then :
2421 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002422else
2423 if test -n "$ac_ct_CC"; then
2424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2425else
2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427for as_dir in $PATH
2428do
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002433 ac_cv_prog_ac_ct_CC="gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002435 break 2
2436 fi
2437done
jfigusc7e66e32013-05-08 11:32:55 -04002438 done
2439IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002440
2441fi
2442fi
2443ac_ct_CC=$ac_cv_prog_ac_ct_CC
2444if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2446$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002447else
jfigusc7e66e32013-05-08 11:32:55 -04002448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2449$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002450fi
2451
jfigusc7e66e32013-05-08 11:32:55 -04002452 if test "x$ac_ct_CC" = x; then
2453 CC=""
2454 else
2455 case $cross_compiling:$ac_tool_warned in
2456yes:)
2457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2459ac_tool_warned=yes ;;
2460esac
2461 CC=$ac_ct_CC
2462 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002463else
2464 CC="$ac_cv_prog_CC"
2465fi
2466
2467if test -z "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002468 if test -n "$ac_tool_prefix"; then
2469 # 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 +00002470set dummy ${ac_tool_prefix}cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2472$as_echo_n "checking for $ac_word... " >&6; }
2473if ${ac_cv_prog_CC+:} false; then :
2474 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002475else
2476 if test -n "$CC"; then
2477 ac_cv_prog_CC="$CC" # Let the user override the test.
2478else
2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480for as_dir in $PATH
2481do
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002486 ac_cv_prog_CC="${ac_tool_prefix}cc"
jfigusc7e66e32013-05-08 11:32:55 -04002487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002488 break 2
2489 fi
2490done
jfigusc7e66e32013-05-08 11:32:55 -04002491 done
2492IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002493
2494fi
2495fi
2496CC=$ac_cv_prog_CC
2497if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2499$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002500else
jfigusc7e66e32013-05-08 11:32:55 -04002501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2502$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002503fi
2504
jfigusc7e66e32013-05-08 11:32:55 -04002505
Cullen Jennings235513a2005-09-21 22:51:36 +00002506 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002507fi
2508if test -z "$CC"; then
2509 # Extract the first word of "cc", so it can be a program name with args.
2510set dummy cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2512$as_echo_n "checking for $ac_word... " >&6; }
2513if ${ac_cv_prog_CC+:} false; then :
2514 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002515else
2516 if test -n "$CC"; then
2517 ac_cv_prog_CC="$CC" # Let the user override the test.
2518else
2519 ac_prog_rejected=no
2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521for as_dir in $PATH
2522do
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002527 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2528 ac_prog_rejected=yes
2529 continue
2530 fi
2531 ac_cv_prog_CC="cc"
jfigusc7e66e32013-05-08 11:32:55 -04002532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002533 break 2
2534 fi
2535done
jfigusc7e66e32013-05-08 11:32:55 -04002536 done
2537IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002538
2539if test $ac_prog_rejected = yes; then
2540 # We found a bogon in the path, so make sure we never use it.
2541 set dummy $ac_cv_prog_CC
2542 shift
2543 if test $# != 0; then
2544 # We chose a different compiler from the bogus one.
2545 # However, it has the same basename, so the bogon will be chosen
2546 # first if we set CC to just the basename; use the full file name.
2547 shift
2548 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2549 fi
2550fi
2551fi
2552fi
2553CC=$ac_cv_prog_CC
2554if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2556$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002557else
jfigusc7e66e32013-05-08 11:32:55 -04002558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002560fi
2561
jfigusc7e66e32013-05-08 11:32:55 -04002562
Cullen Jennings235513a2005-09-21 22:51:36 +00002563fi
2564if test -z "$CC"; then
2565 if test -n "$ac_tool_prefix"; then
jfigusc7e66e32013-05-08 11:32:55 -04002566 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002567 do
2568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2569set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571$as_echo_n "checking for $ac_word... " >&6; }
2572if ${ac_cv_prog_CC+:} false; then :
2573 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002574else
2575 if test -n "$CC"; then
2576 ac_cv_prog_CC="$CC" # Let the user override the test.
2577else
2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579for as_dir in $PATH
2580do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002585 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002587 break 2
2588 fi
2589done
jfigusc7e66e32013-05-08 11:32:55 -04002590 done
2591IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002592
2593fi
2594fi
2595CC=$ac_cv_prog_CC
2596if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2598$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002599else
jfigusc7e66e32013-05-08 11:32:55 -04002600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002602fi
2603
jfigusc7e66e32013-05-08 11:32:55 -04002604
Cullen Jennings235513a2005-09-21 22:51:36 +00002605 test -n "$CC" && break
2606 done
2607fi
2608if test -z "$CC"; then
2609 ac_ct_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04002610 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002611do
2612 # Extract the first word of "$ac_prog", so it can be a program name with args.
2613set dummy $ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615$as_echo_n "checking for $ac_word... " >&6; }
2616if ${ac_cv_prog_ac_ct_CC+:} false; then :
2617 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002618else
2619 if test -n "$ac_ct_CC"; then
2620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2621else
2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623for as_dir in $PATH
2624do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002629 ac_cv_prog_ac_ct_CC="$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002631 break 2
2632 fi
2633done
jfigusc7e66e32013-05-08 11:32:55 -04002634 done
2635IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002636
2637fi
2638fi
2639ac_ct_CC=$ac_cv_prog_ac_ct_CC
2640if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2642$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002643else
jfigusc7e66e32013-05-08 11:32:55 -04002644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002646fi
2647
jfigusc7e66e32013-05-08 11:32:55 -04002648
Cullen Jennings235513a2005-09-21 22:51:36 +00002649 test -n "$ac_ct_CC" && break
2650done
2651
jfigusc7e66e32013-05-08 11:32:55 -04002652 if test "x$ac_ct_CC" = x; then
2653 CC=""
2654 else
2655 case $cross_compiling:$ac_tool_warned in
2656yes:)
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2659ac_tool_warned=yes ;;
2660esac
2661 CC=$ac_ct_CC
2662 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002663fi
2664
2665fi
2666
2667
jfigusc7e66e32013-05-08 11:32:55 -04002668test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2669$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2670as_fn_error $? "no acceptable C compiler found in \$PATH
2671See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002672
2673# Provide some information about the compiler.
jfigusc7e66e32013-05-08 11:32:55 -04002674$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2675set X $ac_compile
2676ac_compiler=$2
2677for ac_option in --version -v -V -qversion; do
2678 { { ac_try="$ac_compiler $ac_option >&5"
2679case "(($ac_try" in
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2682esac
2683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2684$as_echo "$ac_try_echo"; } >&5
2685 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Cullen Jennings235513a2005-09-21 22:51:36 +00002686 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002687 if test -s conftest.err; then
2688 sed '10a\
2689... rest of stderr output deleted ...
2690 10q' conftest.err >conftest.er1
2691 cat conftest.er1 >&5
2692 fi
2693 rm -f conftest.er1 conftest.err
2694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2695 test $ac_status = 0; }
2696done
Cullen Jennings235513a2005-09-21 22:51:36 +00002697
jfigusc7e66e32013-05-08 11:32:55 -04002698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002699/* end confdefs.h. */
2700
2701int
2702main ()
2703{
2704
2705 ;
2706 return 0;
2707}
2708_ACEOF
2709ac_clean_files_save=$ac_clean_files
jfigusc7e66e32013-05-08 11:32:55 -04002710ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Cullen Jennings235513a2005-09-21 22:51:36 +00002711# Try to create an executable without -o first, disregard a.out.
2712# It will help us diagnose broken compilers, and finding out an intuition
2713# of exeext.
jfigusc7e66e32013-05-08 11:32:55 -04002714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2715$as_echo_n "checking whether the C compiler works... " >&6; }
2716ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002717
jfigusc7e66e32013-05-08 11:32:55 -04002718# The possible output files:
2719ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2720
2721ac_rmfiles=
2722for ac_file in $ac_files
2723do
2724 case $ac_file in
2725 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2726 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2727 esac
2728done
2729rm -f $ac_rmfiles
2730
2731if { { ac_try="$ac_link_default"
2732case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735esac
2736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2737$as_echo "$ac_try_echo"; } >&5
2738 (eval "$ac_link_default") 2>&5
2739 ac_status=$?
2740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2741 test $ac_status = 0; }; then :
2742 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2743# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2744# in a Makefile. We should not override ac_cv_exeext if it was cached,
2745# so that the user can short-circuit this test for compilers unknown to
2746# Autoconf.
2747for ac_file in $ac_files ''
Cullen Jennings235513a2005-09-21 22:51:36 +00002748do
2749 test -f "$ac_file" || continue
2750 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00002752 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002753 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00002754 # We found the default executable, but exeext='' is most
2755 # certainly right.
2756 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002757 *.* )
jfigusc7e66e32013-05-08 11:32:55 -04002758 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2759 then :; else
2760 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2761 fi
2762 # We set ac_cv_exeext here because the later test for it is not
2763 # safe: cross compilers may not add the suffix if given an `-o'
2764 # argument, so we may need to know it at that point already.
2765 # Even if this section looks crufty: it has the advantage of
2766 # actually working.
David McGrewfec49dd2005-09-23 19:34:11 +00002767 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002768 * )
David McGrewfec49dd2005-09-23 19:34:11 +00002769 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002770 esac
2771done
jfigusc7e66e32013-05-08 11:32:55 -04002772test "$ac_cv_exeext" = no && ac_cv_exeext=
2773
Cullen Jennings235513a2005-09-21 22:51:36 +00002774else
jfigusc7e66e32013-05-08 11:32:55 -04002775 ac_file=''
2776fi
2777if test -z "$ac_file"; then :
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779$as_echo "no" >&6; }
2780$as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002781sed 's/^/| /' conftest.$ac_ext >&5
2782
jfigusc7e66e32013-05-08 11:32:55 -04002783{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2785as_fn_error 77 "C compiler cannot create executables
2786See \`config.log' for more details" "$LINENO" 5; }
2787else
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2789$as_echo "yes" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002790fi
jfigusc7e66e32013-05-08 11:32:55 -04002791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2792$as_echo_n "checking for C compiler default output file name... " >&6; }
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2794$as_echo "$ac_file" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002795ac_exeext=$ac_cv_exeext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002796
jfigusc7e66e32013-05-08 11:32:55 -04002797rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002798ac_clean_files=$ac_clean_files_save
jfigusc7e66e32013-05-08 11:32:55 -04002799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2800$as_echo_n "checking for suffix of executables... " >&6; }
2801if { { ac_try="$ac_link"
2802case "(($ac_try" in
2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804 *) ac_try_echo=$ac_try;;
2805esac
2806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2807$as_echo "$ac_try_echo"; } >&5
2808 (eval "$ac_link") 2>&5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002809 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2811 test $ac_status = 0; }; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002812 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2813# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2814# work properly (i.e., refer to `conftest.exe'), while it won't with
2815# `rm'.
2816for ac_file in conftest.exe conftest conftest.*; do
2817 test -f "$ac_file" || continue
2818 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002820 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00002821 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002822 * ) break;;
2823 esac
2824done
2825else
jfigusc7e66e32013-05-08 11:32:55 -04002826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2828as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2829See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002830fi
jfigusc7e66e32013-05-08 11:32:55 -04002831rm -f conftest conftest$ac_cv_exeext
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2833$as_echo "$ac_cv_exeext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002834
2835rm -f conftest.$ac_ext
2836EXEEXT=$ac_cv_exeext
2837ac_exeext=$EXEEXT
jfigusc7e66e32013-05-08 11:32:55 -04002838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839/* end confdefs.h. */
2840#include <stdio.h>
2841int
2842main ()
2843{
2844FILE *f = fopen ("conftest.out", "w");
2845 return ferror (f) || fclose (f) != 0;
2846
2847 ;
2848 return 0;
2849}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002850_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002851ac_clean_files="$ac_clean_files conftest.out"
2852# Check that the compiler produces executables we can run. If not, either
2853# the compiler is broken, or we cross compile.
2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2855$as_echo_n "checking whether we are cross compiling... " >&6; }
2856if test "$cross_compiling" != yes; then
2857 { { ac_try="$ac_link"
2858case "(($ac_try" in
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2861esac
2862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2863$as_echo "$ac_try_echo"; } >&5
2864 (eval "$ac_link") 2>&5
2865 ac_status=$?
2866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2867 test $ac_status = 0; }
2868 if { ac_try='./conftest$ac_cv_exeext'
2869 { { case "(($ac_try" in
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2872esac
2873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2874$as_echo "$ac_try_echo"; } >&5
2875 (eval "$ac_try") 2>&5
2876 ac_status=$?
2877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2878 test $ac_status = 0; }; }; then
2879 cross_compiling=no
2880 else
2881 if test "$cross_compiling" = maybe; then
2882 cross_compiling=yes
2883 else
2884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2886as_fn_error $? "cannot run C compiled programs.
2887If you meant to cross compile, use \`--host'.
2888See \`config.log' for more details" "$LINENO" 5; }
2889 fi
2890 fi
2891fi
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2893$as_echo "$cross_compiling" >&6; }
2894
2895rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2896ac_clean_files=$ac_clean_files_save
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2898$as_echo_n "checking for suffix of object files... " >&6; }
2899if ${ac_cv_objext+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901else
2902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002903/* end confdefs.h. */
2904
2905int
2906main ()
2907{
2908
2909 ;
2910 return 0;
2911}
2912_ACEOF
2913rm -f conftest.o conftest.obj
jfigusc7e66e32013-05-08 11:32:55 -04002914if { { ac_try="$ac_compile"
2915case "(($ac_try" in
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2918esac
2919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2920$as_echo "$ac_try_echo"; } >&5
2921 (eval "$ac_compile") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002922 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2924 test $ac_status = 0; }; then :
2925 for ac_file in conftest.o conftest.obj conftest.*; do
2926 test -f "$ac_file" || continue;
Cullen Jennings235513a2005-09-21 22:51:36 +00002927 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002929 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2930 break;;
2931 esac
2932done
2933else
jfigusc7e66e32013-05-08 11:32:55 -04002934 $as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002935sed 's/^/| /' conftest.$ac_ext >&5
2936
jfigusc7e66e32013-05-08 11:32:55 -04002937{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2939as_fn_error $? "cannot compute suffix of object files: cannot compile
2940See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002941fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002942rm -f conftest.$ac_cv_objext conftest.$ac_ext
2943fi
jfigusc7e66e32013-05-08 11:32:55 -04002944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2945$as_echo "$ac_cv_objext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002946OBJEXT=$ac_cv_objext
2947ac_objext=$OBJEXT
jfigusc7e66e32013-05-08 11:32:55 -04002948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2949$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2950if ${ac_cv_c_compiler_gnu+:} false; then :
2951 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002952else
jfigusc7e66e32013-05-08 11:32:55 -04002953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002954/* end confdefs.h. */
2955
2956int
2957main ()
2958{
2959#ifndef __GNUC__
2960 choke me
2961#endif
2962
2963 ;
2964 return 0;
2965}
2966_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002967if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002968 ac_compiler_gnu=yes
2969else
jfigusc7e66e32013-05-08 11:32:55 -04002970 ac_compiler_gnu=no
Cullen Jennings235513a2005-09-21 22:51:36 +00002971fi
jfigusc7e66e32013-05-08 11:32:55 -04002972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002973ac_cv_c_compiler_gnu=$ac_compiler_gnu
2974
2975fi
jfigusc7e66e32013-05-08 11:32:55 -04002976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2977$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2978if test $ac_compiler_gnu = yes; then
2979 GCC=yes
2980else
2981 GCC=
2982fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002983ac_test_CFLAGS=${CFLAGS+set}
2984ac_save_CFLAGS=$CFLAGS
jfigusc7e66e32013-05-08 11:32:55 -04002985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2986$as_echo_n "checking whether $CC accepts -g... " >&6; }
2987if ${ac_cv_prog_cc_g+:} false; then :
2988 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002989else
jfigusc7e66e32013-05-08 11:32:55 -04002990 ac_save_c_werror_flag=$ac_c_werror_flag
2991 ac_c_werror_flag=yes
2992 ac_cv_prog_cc_g=no
2993 CFLAGS="-g"
2994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002995/* end confdefs.h. */
2996
2997int
2998main ()
2999{
3000
3001 ;
3002 return 0;
3003}
3004_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003005if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003006 ac_cv_prog_cc_g=yes
3007else
jfigusc7e66e32013-05-08 11:32:55 -04003008 CFLAGS=""
3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00003011
jfigusc7e66e32013-05-08 11:32:55 -04003012int
3013main ()
3014{
3015
3016 ;
3017 return 0;
3018}
3019_ACEOF
3020if ac_fn_c_try_compile "$LINENO"; then :
3021
3022else
3023 ac_c_werror_flag=$ac_save_c_werror_flag
3024 CFLAGS="-g"
3025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3026/* end confdefs.h. */
3027
3028int
3029main ()
3030{
3031
3032 ;
3033 return 0;
3034}
3035_ACEOF
3036if ac_fn_c_try_compile "$LINENO"; then :
3037 ac_cv_prog_cc_g=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003038fi
jfigusc7e66e32013-05-08 11:32:55 -04003039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003040fi
jfigusc7e66e32013-05-08 11:32:55 -04003041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042fi
3043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3044 ac_c_werror_flag=$ac_save_c_werror_flag
3045fi
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3047$as_echo "$ac_cv_prog_cc_g" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003048if test "$ac_test_CFLAGS" = set; then
3049 CFLAGS=$ac_save_CFLAGS
3050elif test $ac_cv_prog_cc_g = yes; then
3051 if test "$GCC" = yes; then
3052 CFLAGS="-g -O2"
3053 else
3054 CFLAGS="-g"
3055 fi
3056else
3057 if test "$GCC" = yes; then
3058 CFLAGS="-O2"
3059 else
3060 CFLAGS=
3061 fi
3062fi
jfigusc7e66e32013-05-08 11:32:55 -04003063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3064$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3065if ${ac_cv_prog_cc_c89+:} false; then :
3066 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003067else
jfigusc7e66e32013-05-08 11:32:55 -04003068 ac_cv_prog_cc_c89=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003069ac_save_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04003070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003071/* end confdefs.h. */
3072#include <stdarg.h>
3073#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -04003074struct stat;
Cullen Jennings235513a2005-09-21 22:51:36 +00003075/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3076struct buf { int x; };
3077FILE * (*rcsopen) (struct buf *, struct stat *, int);
3078static char *e (p, i)
3079 char **p;
3080 int i;
3081{
3082 return p[i];
3083}
3084static char *f (char * (*g) (char **, int), char **p, ...)
3085{
3086 char *s;
3087 va_list v;
3088 va_start (v,p);
3089 s = g (p, va_arg (v,int));
3090 va_end (v);
3091 return s;
3092}
David McGrewfec49dd2005-09-23 19:34:11 +00003093
3094/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3095 function prototypes and stuff, but not '\xHH' hex character constants.
3096 These don't provoke an error unfortunately, instead are silently treated
jfigusc7e66e32013-05-08 11:32:55 -04003097 as 'x'. The following induces an error, until -std is added to get
David McGrewfec49dd2005-09-23 19:34:11 +00003098 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3099 array size at least. It's necessary to write '\x00'==0 to get something
jfigusc7e66e32013-05-08 11:32:55 -04003100 that's true only with -std. */
David McGrewfec49dd2005-09-23 19:34:11 +00003101int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3102
jfigusc7e66e32013-05-08 11:32:55 -04003103/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3104 inside strings and character constants. */
3105#define FOO(x) 'x'
3106int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3107
Cullen Jennings235513a2005-09-21 22:51:36 +00003108int test (int i, double x);
3109struct s1 {int (*f) (int a);};
3110struct s2 {int (*f) (double a);};
3111int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3112int argc;
3113char **argv;
3114int
3115main ()
3116{
3117return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3118 ;
3119 return 0;
3120}
3121_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003122for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3123 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Cullen Jennings235513a2005-09-21 22:51:36 +00003124do
3125 CC="$ac_save_CC $ac_arg"
jfigusc7e66e32013-05-08 11:32:55 -04003126 if ac_fn_c_try_compile "$LINENO"; then :
3127 ac_cv_prog_cc_c89=$ac_arg
Cullen Jennings235513a2005-09-21 22:51:36 +00003128fi
jfigusc7e66e32013-05-08 11:32:55 -04003129rm -f core conftest.err conftest.$ac_objext
3130 test "x$ac_cv_prog_cc_c89" != "xno" && break
Cullen Jennings235513a2005-09-21 22:51:36 +00003131done
jfigusc7e66e32013-05-08 11:32:55 -04003132rm -f conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003133CC=$ac_save_CC
3134
3135fi
jfigusc7e66e32013-05-08 11:32:55 -04003136# AC_CACHE_VAL
3137case "x$ac_cv_prog_cc_c89" in
3138 x)
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3140$as_echo "none needed" >&6; } ;;
3141 xno)
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3143$as_echo "unsupported" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003144 *)
jfigusc7e66e32013-05-08 11:32:55 -04003145 CC="$CC $ac_cv_prog_cc_c89"
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3147$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003148esac
jfigusc7e66e32013-05-08 11:32:55 -04003149if test "x$ac_cv_prog_cc_c89" != xno; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003150
3151fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003152
Cullen Jennings235513a2005-09-21 22:51:36 +00003153ac_ext=c
3154ac_cpp='$CPP $CPPFLAGS'
3155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158
jfigus1ce6a742015-04-06 08:54:01 -04003159
3160if test -n "$ac_tool_prefix"; then
3161 for ac_prog in ar lib "link -lib"
3162 do
3163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3164set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166$as_echo_n "checking for $ac_word... " >&6; }
3167if ${ac_cv_prog_AR+:} false; then :
3168 $as_echo_n "(cached) " >&6
3169else
3170 if test -n "$AR"; then
3171 ac_cv_prog_AR="$AR" # Let the user override the test.
3172else
3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174for as_dir in $PATH
3175do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184done
3185 done
3186IFS=$as_save_IFS
3187
3188fi
3189fi
3190AR=$ac_cv_prog_AR
3191if test -n "$AR"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3193$as_echo "$AR" >&6; }
3194else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196$as_echo "no" >&6; }
3197fi
3198
3199
3200 test -n "$AR" && break
3201 done
3202fi
3203if test -z "$AR"; then
3204 ac_ct_AR=$AR
3205 for ac_prog in ar lib "link -lib"
3206do
3207 # Extract the first word of "$ac_prog", so it can be a program name with args.
3208set dummy $ac_prog; ac_word=$2
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210$as_echo_n "checking for $ac_word... " >&6; }
3211if ${ac_cv_prog_ac_ct_AR+:} false; then :
3212 $as_echo_n "(cached) " >&6
3213else
3214 if test -n "$ac_ct_AR"; then
3215 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3216else
3217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218for as_dir in $PATH
3219do
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224 ac_cv_prog_ac_ct_AR="$ac_prog"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 break 2
3227 fi
3228done
3229 done
3230IFS=$as_save_IFS
3231
3232fi
3233fi
3234ac_ct_AR=$ac_cv_prog_ac_ct_AR
3235if test -n "$ac_ct_AR"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3237$as_echo "$ac_ct_AR" >&6; }
3238else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240$as_echo "no" >&6; }
3241fi
3242
3243
3244 test -n "$ac_ct_AR" && break
3245done
3246
3247 if test "x$ac_ct_AR" = x; then
3248 AR="false"
3249 else
3250 case $cross_compiling:$ac_tool_warned in
3251yes:)
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3254ac_tool_warned=yes ;;
3255esac
3256 AR=$ac_ct_AR
3257 fi
3258fi
3259
3260: ${AR=ar}
3261
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3263$as_echo_n "checking the archiver ($AR) interface... " >&6; }
3264if ${am_cv_ar_interface+:} false; then :
3265 $as_echo_n "(cached) " >&6
3266else
3267 ac_ext=c
3268ac_cpp='$CPP $CPPFLAGS'
3269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272
3273 am_cv_ar_interface=ar
3274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275/* end confdefs.h. */
3276int some_variable = 0;
3277_ACEOF
3278if ac_fn_c_try_compile "$LINENO"; then :
3279 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3281 (eval $am_ar_try) 2>&5
3282 ac_status=$?
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }
3285 if test "$ac_status" -eq 0; then
3286 am_cv_ar_interface=ar
3287 else
3288 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3290 (eval $am_ar_try) 2>&5
3291 ac_status=$?
3292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293 test $ac_status = 0; }
3294 if test "$ac_status" -eq 0; then
3295 am_cv_ar_interface=lib
3296 else
3297 am_cv_ar_interface=unknown
3298 fi
3299 fi
3300 rm -f conftest.lib libconftest.a
3301
3302fi
3303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304 ac_ext=c
3305ac_cpp='$CPP $CPPFLAGS'
3306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3308ac_compiler_gnu=$ac_cv_c_compiler_gnu
3309
3310fi
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3312$as_echo "$am_cv_ar_interface" >&6; }
3313
3314case $am_cv_ar_interface in
3315ar)
3316 ;;
3317lib)
3318 # Microsoft lib, so override with the ar-lib wrapper script.
3319 # FIXME: It is wrong to rewrite AR.
3320 # But if we don't then we get into trouble of one sort or another.
3321 # A longer-term fix would be to have automake use am__AR in this case,
3322 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3323 # similar.
3324 AR="$am_aux_dir/ar-lib $AR"
3325 ;;
3326unknown)
3327 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3328 ;;
3329esac
3330
3331if test -n "$ac_tool_prefix"; then
3332 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3333set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335$as_echo_n "checking for $ac_word... " >&6; }
3336if ${ac_cv_prog_RANLIB+:} false; then :
3337 $as_echo_n "(cached) " >&6
3338else
3339 if test -n "$RANLIB"; then
3340 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3341else
3342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343for as_dir in $PATH
3344do
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 break 2
3352 fi
3353done
3354 done
3355IFS=$as_save_IFS
3356
3357fi
3358fi
3359RANLIB=$ac_cv_prog_RANLIB
3360if test -n "$RANLIB"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3362$as_echo "$RANLIB" >&6; }
3363else
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365$as_echo "no" >&6; }
3366fi
3367
3368
3369fi
3370if test -z "$ac_cv_prog_RANLIB"; then
3371 ac_ct_RANLIB=$RANLIB
3372 # Extract the first word of "ranlib", so it can be a program name with args.
3373set dummy ranlib; ac_word=$2
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375$as_echo_n "checking for $ac_word... " >&6; }
3376if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3377 $as_echo_n "(cached) " >&6
3378else
3379 if test -n "$ac_ct_RANLIB"; then
3380 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3381else
3382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383for as_dir in $PATH
3384do
3385 IFS=$as_save_IFS
3386 test -z "$as_dir" && as_dir=.
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3389 ac_cv_prog_ac_ct_RANLIB="ranlib"
3390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 break 2
3392 fi
3393done
3394 done
3395IFS=$as_save_IFS
3396
3397fi
3398fi
3399ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3400if test -n "$ac_ct_RANLIB"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3402$as_echo "$ac_ct_RANLIB" >&6; }
3403else
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405$as_echo "no" >&6; }
3406fi
3407
3408 if test "x$ac_ct_RANLIB" = x; then
3409 RANLIB=":"
3410 else
3411 case $cross_compiling:$ac_tool_warned in
3412yes:)
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3415ac_tool_warned=yes ;;
3416esac
3417 RANLIB=$ac_ct_RANLIB
3418 fi
3419else
3420 RANLIB="$ac_cv_prog_RANLIB"
3421fi
3422
3423ac_ext=c
3424ac_cpp='$CPP $CPPFLAGS'
3425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428if test -n "$ac_tool_prefix"; then
3429 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3430set dummy ${ac_tool_prefix}gcc; ac_word=$2
3431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432$as_echo_n "checking for $ac_word... " >&6; }
3433if ${ac_cv_prog_CC+:} false; then :
3434 $as_echo_n "(cached) " >&6
3435else
3436 if test -n "$CC"; then
3437 ac_cv_prog_CC="$CC" # Let the user override the test.
3438else
3439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440for as_dir in $PATH
3441do
3442 IFS=$as_save_IFS
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 break 2
3449 fi
3450done
3451 done
3452IFS=$as_save_IFS
3453
3454fi
3455fi
3456CC=$ac_cv_prog_CC
3457if test -n "$CC"; then
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3459$as_echo "$CC" >&6; }
3460else
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462$as_echo "no" >&6; }
3463fi
3464
3465
3466fi
3467if test -z "$ac_cv_prog_CC"; then
3468 ac_ct_CC=$CC
3469 # Extract the first word of "gcc", so it can be a program name with args.
3470set dummy gcc; ac_word=$2
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472$as_echo_n "checking for $ac_word... " >&6; }
3473if ${ac_cv_prog_ac_ct_CC+:} false; then :
3474 $as_echo_n "(cached) " >&6
3475else
3476 if test -n "$ac_ct_CC"; then
3477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3478else
3479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480for as_dir in $PATH
3481do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3486 ac_cv_prog_ac_ct_CC="gcc"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3489 fi
3490done
3491 done
3492IFS=$as_save_IFS
3493
3494fi
3495fi
3496ac_ct_CC=$ac_cv_prog_ac_ct_CC
3497if test -n "$ac_ct_CC"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3499$as_echo "$ac_ct_CC" >&6; }
3500else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502$as_echo "no" >&6; }
3503fi
3504
3505 if test "x$ac_ct_CC" = x; then
3506 CC=""
3507 else
3508 case $cross_compiling:$ac_tool_warned in
3509yes:)
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3512ac_tool_warned=yes ;;
3513esac
3514 CC=$ac_ct_CC
3515 fi
3516else
3517 CC="$ac_cv_prog_CC"
3518fi
3519
3520if test -z "$CC"; then
3521 if test -n "$ac_tool_prefix"; then
3522 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3523set dummy ${ac_tool_prefix}cc; ac_word=$2
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525$as_echo_n "checking for $ac_word... " >&6; }
3526if ${ac_cv_prog_CC+:} false; then :
3527 $as_echo_n "(cached) " >&6
3528else
3529 if test -n "$CC"; then
3530 ac_cv_prog_CC="$CC" # Let the user override the test.
3531else
3532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533for as_dir in $PATH
3534do
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539 ac_cv_prog_CC="${ac_tool_prefix}cc"
3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3542 fi
3543done
3544 done
3545IFS=$as_save_IFS
3546
3547fi
3548fi
3549CC=$ac_cv_prog_CC
3550if test -n "$CC"; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3552$as_echo "$CC" >&6; }
3553else
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555$as_echo "no" >&6; }
3556fi
3557
3558
3559 fi
3560fi
3561if test -z "$CC"; then
3562 # Extract the first word of "cc", so it can be a program name with args.
3563set dummy cc; ac_word=$2
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565$as_echo_n "checking for $ac_word... " >&6; }
3566if ${ac_cv_prog_CC+:} false; then :
3567 $as_echo_n "(cached) " >&6
3568else
3569 if test -n "$CC"; then
3570 ac_cv_prog_CC="$CC" # Let the user override the test.
3571else
3572 ac_prog_rejected=no
3573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574for as_dir in $PATH
3575do
3576 IFS=$as_save_IFS
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3581 ac_prog_rejected=yes
3582 continue
3583 fi
3584 ac_cv_prog_CC="cc"
3585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 break 2
3587 fi
3588done
3589 done
3590IFS=$as_save_IFS
3591
3592if test $ac_prog_rejected = yes; then
3593 # We found a bogon in the path, so make sure we never use it.
3594 set dummy $ac_cv_prog_CC
3595 shift
3596 if test $# != 0; then
3597 # We chose a different compiler from the bogus one.
3598 # However, it has the same basename, so the bogon will be chosen
3599 # first if we set CC to just the basename; use the full file name.
3600 shift
3601 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3602 fi
3603fi
3604fi
3605fi
3606CC=$ac_cv_prog_CC
3607if test -n "$CC"; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3609$as_echo "$CC" >&6; }
3610else
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612$as_echo "no" >&6; }
3613fi
3614
3615
3616fi
3617if test -z "$CC"; then
3618 if test -n "$ac_tool_prefix"; then
3619 for ac_prog in cl.exe
3620 do
3621 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3622set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624$as_echo_n "checking for $ac_word... " >&6; }
3625if ${ac_cv_prog_CC+:} false; then :
3626 $as_echo_n "(cached) " >&6
3627else
3628 if test -n "$CC"; then
3629 ac_cv_prog_CC="$CC" # Let the user override the test.
3630else
3631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH
3633do
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 break 2
3641 fi
3642done
3643 done
3644IFS=$as_save_IFS
3645
3646fi
3647fi
3648CC=$ac_cv_prog_CC
3649if test -n "$CC"; then
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3651$as_echo "$CC" >&6; }
3652else
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654$as_echo "no" >&6; }
3655fi
3656
3657
3658 test -n "$CC" && break
3659 done
3660fi
3661if test -z "$CC"; then
3662 ac_ct_CC=$CC
3663 for ac_prog in cl.exe
3664do
3665 # Extract the first word of "$ac_prog", so it can be a program name with args.
3666set dummy $ac_prog; ac_word=$2
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668$as_echo_n "checking for $ac_word... " >&6; }
3669if ${ac_cv_prog_ac_ct_CC+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671else
3672 if test -n "$ac_ct_CC"; then
3673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3674else
3675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682 ac_cv_prog_ac_ct_CC="$ac_prog"
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 break 2
3685 fi
3686done
3687 done
3688IFS=$as_save_IFS
3689
3690fi
3691fi
3692ac_ct_CC=$ac_cv_prog_ac_ct_CC
3693if test -n "$ac_ct_CC"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3695$as_echo "$ac_ct_CC" >&6; }
3696else
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698$as_echo "no" >&6; }
3699fi
3700
3701
3702 test -n "$ac_ct_CC" && break
3703done
3704
3705 if test "x$ac_ct_CC" = x; then
3706 CC=""
3707 else
3708 case $cross_compiling:$ac_tool_warned in
3709yes:)
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3712ac_tool_warned=yes ;;
3713esac
3714 CC=$ac_ct_CC
3715 fi
3716fi
3717
3718fi
3719
3720
3721test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723as_fn_error $? "no acceptable C compiler found in \$PATH
3724See \`config.log' for more details" "$LINENO" 5; }
3725
3726# Provide some information about the compiler.
3727$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3728set X $ac_compile
3729ac_compiler=$2
3730for ac_option in --version -v -V -qversion; do
3731 { { ac_try="$ac_compiler $ac_option >&5"
3732case "(($ac_try" in
3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734 *) ac_try_echo=$ac_try;;
3735esac
3736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3737$as_echo "$ac_try_echo"; } >&5
3738 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3739 ac_status=$?
3740 if test -s conftest.err; then
3741 sed '10a\
3742... rest of stderr output deleted ...
3743 10q' conftest.err >conftest.er1
3744 cat conftest.er1 >&5
3745 fi
3746 rm -f conftest.er1 conftest.err
3747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748 test $ac_status = 0; }
3749done
3750
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3752$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3753if ${ac_cv_c_compiler_gnu+:} false; then :
3754 $as_echo_n "(cached) " >&6
3755else
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757/* end confdefs.h. */
3758
3759int
3760main ()
3761{
3762#ifndef __GNUC__
3763 choke me
3764#endif
3765
3766 ;
3767 return 0;
3768}
3769_ACEOF
3770if ac_fn_c_try_compile "$LINENO"; then :
3771 ac_compiler_gnu=yes
3772else
3773 ac_compiler_gnu=no
3774fi
3775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776ac_cv_c_compiler_gnu=$ac_compiler_gnu
3777
3778fi
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3780$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3781if test $ac_compiler_gnu = yes; then
3782 GCC=yes
3783else
3784 GCC=
3785fi
3786ac_test_CFLAGS=${CFLAGS+set}
3787ac_save_CFLAGS=$CFLAGS
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3789$as_echo_n "checking whether $CC accepts -g... " >&6; }
3790if ${ac_cv_prog_cc_g+:} false; then :
3791 $as_echo_n "(cached) " >&6
3792else
3793 ac_save_c_werror_flag=$ac_c_werror_flag
3794 ac_c_werror_flag=yes
3795 ac_cv_prog_cc_g=no
3796 CFLAGS="-g"
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798/* end confdefs.h. */
3799
3800int
3801main ()
3802{
3803
3804 ;
3805 return 0;
3806}
3807_ACEOF
3808if ac_fn_c_try_compile "$LINENO"; then :
3809 ac_cv_prog_cc_g=yes
3810else
3811 CFLAGS=""
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813/* end confdefs.h. */
3814
3815int
3816main ()
3817{
3818
3819 ;
3820 return 0;
3821}
3822_ACEOF
3823if ac_fn_c_try_compile "$LINENO"; then :
3824
3825else
3826 ac_c_werror_flag=$ac_save_c_werror_flag
3827 CFLAGS="-g"
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829/* end confdefs.h. */
3830
3831int
3832main ()
3833{
3834
3835 ;
3836 return 0;
3837}
3838_ACEOF
3839if ac_fn_c_try_compile "$LINENO"; then :
3840 ac_cv_prog_cc_g=yes
3841fi
3842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843fi
3844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845fi
3846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847 ac_c_werror_flag=$ac_save_c_werror_flag
3848fi
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3850$as_echo "$ac_cv_prog_cc_g" >&6; }
3851if test "$ac_test_CFLAGS" = set; then
3852 CFLAGS=$ac_save_CFLAGS
3853elif test $ac_cv_prog_cc_g = yes; then
3854 if test "$GCC" = yes; then
3855 CFLAGS="-g -O2"
3856 else
3857 CFLAGS="-g"
3858 fi
3859else
3860 if test "$GCC" = yes; then
3861 CFLAGS="-O2"
3862 else
3863 CFLAGS=
3864 fi
3865fi
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3867$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3868if ${ac_cv_prog_cc_c89+:} false; then :
3869 $as_echo_n "(cached) " >&6
3870else
3871 ac_cv_prog_cc_c89=no
3872ac_save_CC=$CC
3873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874/* end confdefs.h. */
3875#include <stdarg.h>
3876#include <stdio.h>
3877struct stat;
3878/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3879struct buf { int x; };
3880FILE * (*rcsopen) (struct buf *, struct stat *, int);
3881static char *e (p, i)
3882 char **p;
3883 int i;
3884{
3885 return p[i];
3886}
3887static char *f (char * (*g) (char **, int), char **p, ...)
3888{
3889 char *s;
3890 va_list v;
3891 va_start (v,p);
3892 s = g (p, va_arg (v,int));
3893 va_end (v);
3894 return s;
3895}
3896
3897/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3898 function prototypes and stuff, but not '\xHH' hex character constants.
3899 These don't provoke an error unfortunately, instead are silently treated
3900 as 'x'. The following induces an error, until -std is added to get
3901 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3902 array size at least. It's necessary to write '\x00'==0 to get something
3903 that's true only with -std. */
3904int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3905
3906/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3907 inside strings and character constants. */
3908#define FOO(x) 'x'
3909int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3910
3911int test (int i, double x);
3912struct s1 {int (*f) (int a);};
3913struct s2 {int (*f) (double a);};
3914int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3915int argc;
3916char **argv;
3917int
3918main ()
3919{
3920return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3921 ;
3922 return 0;
3923}
3924_ACEOF
3925for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3926 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3927do
3928 CC="$ac_save_CC $ac_arg"
3929 if ac_fn_c_try_compile "$LINENO"; then :
3930 ac_cv_prog_cc_c89=$ac_arg
3931fi
3932rm -f core conftest.err conftest.$ac_objext
3933 test "x$ac_cv_prog_cc_c89" != "xno" && break
3934done
3935rm -f conftest.$ac_ext
3936CC=$ac_save_CC
3937
3938fi
3939# AC_CACHE_VAL
3940case "x$ac_cv_prog_cc_c89" in
3941 x)
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3943$as_echo "none needed" >&6; } ;;
3944 xno)
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3946$as_echo "unsupported" >&6; } ;;
3947 *)
3948 CC="$CC $ac_cv_prog_cc_c89"
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3950$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3951esac
3952if test "x$ac_cv_prog_cc_c89" != xno; then :
3953
3954fi
3955
3956ac_ext=c
3957ac_cpp='$CPP $CPPFLAGS'
3958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960ac_compiler_gnu=$ac_cv_c_compiler_gnu
3961
David McGrewb67061f2005-09-28 14:23:06 +00003962ac_aux_dir=
jfigusc7e66e32013-05-08 11:32:55 -04003963for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3964 if test -f "$ac_dir/install-sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003965 ac_aux_dir=$ac_dir
3966 ac_install_sh="$ac_aux_dir/install-sh -c"
3967 break
jfigusc7e66e32013-05-08 11:32:55 -04003968 elif test -f "$ac_dir/install.sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003969 ac_aux_dir=$ac_dir
3970 ac_install_sh="$ac_aux_dir/install.sh -c"
3971 break
jfigusc7e66e32013-05-08 11:32:55 -04003972 elif test -f "$ac_dir/shtool"; then
David McGrewb67061f2005-09-28 14:23:06 +00003973 ac_aux_dir=$ac_dir
3974 ac_install_sh="$ac_aux_dir/shtool install -c"
3975 break
3976 fi
3977done
3978if test -z "$ac_aux_dir"; then
jfigusc7e66e32013-05-08 11:32:55 -04003979 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
David McGrewb67061f2005-09-28 14:23:06 +00003980fi
jfigusc7e66e32013-05-08 11:32:55 -04003981
3982# These three variables are undocumented and unsupported,
3983# and are intended to be withdrawn in a future Autoconf release.
3984# They can cause serious problems if a builder's source tree is in a directory
3985# whose full name contains unusual characters.
3986ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3987ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3988ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3989
Cullen Jennings235513a2005-09-21 22:51:36 +00003990
David McGrewb67061f2005-09-28 14:23:06 +00003991# Find a good install program. We prefer a C program (faster),
3992# so one script is as good as another. But avoid the broken or
3993# incompatible versions:
3994# SysV /etc/install, /usr/sbin/install
3995# SunOS /usr/etc/install
3996# IRIX /sbin/install
3997# AIX /bin/install
3998# AmigaOS /C/install, which installs bootblocks on floppy discs
3999# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4000# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4001# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4002# OS/2's system install, which has a completely different semantic
4003# ./install, which can be erroneously created by make from ./install.sh.
jfigusc7e66e32013-05-08 11:32:55 -04004004# Reject install programs that cannot install multiple files.
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4006$as_echo_n "checking for a BSD-compatible install... " >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00004007if test -z "$INSTALL"; then
jfigusc7e66e32013-05-08 11:32:55 -04004008if ${ac_cv_path_install+:} false; then :
4009 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004010else
David McGrewb67061f2005-09-28 14:23:06 +00004011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012for as_dir in $PATH
4013do
4014 IFS=$as_save_IFS
4015 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04004016 # Account for people who put trailing slashes in PATH elements.
4017case $as_dir/ in #((
4018 ./ | .// | /[cC]/* | \
David McGrewb67061f2005-09-28 14:23:06 +00004019 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jfigusc7e66e32013-05-08 11:32:55 -04004020 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
David McGrewb67061f2005-09-28 14:23:06 +00004021 /usr/ucb/* ) ;;
4022 *)
4023 # OSF1 and SCO ODT 3.0 have their own names for install.
4024 # Don't use installbsd from OSF since it installs stuff as root
4025 # by default.
4026 for ac_prog in ginstall scoinst install; do
4027 for ac_exec_ext in '' $ac_executable_extensions; do
jfigusc7e66e32013-05-08 11:32:55 -04004028 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
David McGrewb67061f2005-09-28 14:23:06 +00004029 if test $ac_prog = install &&
4030 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4031 # AIX install. It has an incompatible calling convention.
4032 :
4033 elif test $ac_prog = install &&
4034 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4035 # program-specific install script used by HP pwplus--don't use.
4036 :
4037 else
jfigusc7e66e32013-05-08 11:32:55 -04004038 rm -rf conftest.one conftest.two conftest.dir
4039 echo one > conftest.one
4040 echo two > conftest.two
4041 mkdir conftest.dir
4042 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4043 test -s conftest.one && test -s conftest.two &&
4044 test -s conftest.dir/conftest.one &&
4045 test -s conftest.dir/conftest.two
4046 then
4047 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4048 break 3
4049 fi
David McGrewb67061f2005-09-28 14:23:06 +00004050 fi
4051 fi
4052 done
4053 done
4054 ;;
4055esac
Cullen Jennings235513a2005-09-21 22:51:36 +00004056
jfigusc7e66e32013-05-08 11:32:55 -04004057 done
4058IFS=$as_save_IFS
4059
4060rm -rf conftest.one conftest.two conftest.dir
Cullen Jennings235513a2005-09-21 22:51:36 +00004061
4062fi
David McGrewb67061f2005-09-28 14:23:06 +00004063 if test "${ac_cv_path_install+set}" = set; then
4064 INSTALL=$ac_cv_path_install
4065 else
jfigusc7e66e32013-05-08 11:32:55 -04004066 # As a last resort, use the slow shell script. Don't cache a
4067 # value for INSTALL within a source directory, because that will
David McGrewb67061f2005-09-28 14:23:06 +00004068 # break other packages using the cache if that directory is
jfigusc7e66e32013-05-08 11:32:55 -04004069 # removed, or if the value is a relative name.
David McGrewb67061f2005-09-28 14:23:06 +00004070 INSTALL=$ac_install_sh
4071 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00004072fi
jfigusc7e66e32013-05-08 11:32:55 -04004073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4074$as_echo "$INSTALL" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004075
David McGrewb67061f2005-09-28 14:23:06 +00004076# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4077# It thinks the first close brace ends the variable substitution.
4078test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00004079
David McGrewb67061f2005-09-28 14:23:06 +00004080test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4081
4082test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00004083
4084
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004085ac_ext=c
4086ac_cpp='$CPP $CPPFLAGS'
4087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089ac_compiler_gnu=$ac_cv_c_compiler_gnu
jfigusc7e66e32013-05-08 11:32:55 -04004090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4091$as_echo_n "checking how to run the C preprocessor... " >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004092# On Suns, sometimes $CPP names a directory.
4093if test -n "$CPP" && test -d "$CPP"; then
4094 CPP=
4095fi
4096if test -z "$CPP"; then
jfigusc7e66e32013-05-08 11:32:55 -04004097 if ${ac_cv_prog_CPP+:} false; then :
4098 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004099else
4100 # Double quotes because CPP needs to be expanded
4101 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4102 do
4103 ac_preproc_ok=false
4104for ac_c_preproc_warn_flag in '' yes
4105do
4106 # Use a header file that comes with gcc, so configuring glibc
4107 # with a fresh cross-compiler works.
4108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4109 # <limits.h> exists even on freestanding compilers.
4110 # On the NeXT, cc -E runs the code through the compiler's parser,
4111 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04004112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004113/* end confdefs.h. */
4114#ifdef __STDC__
4115# include <limits.h>
4116#else
4117# include <assert.h>
4118#endif
4119 Syntax error
4120_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004121if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004122
jfigusc7e66e32013-05-08 11:32:55 -04004123else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004124 # Broken: fails on valid input.
4125continue
4126fi
jfigusc7e66e32013-05-08 11:32:55 -04004127rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004128
jfigusc7e66e32013-05-08 11:32:55 -04004129 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004130 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04004131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004132/* end confdefs.h. */
4133#include <ac_nonexistent.h>
4134_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004135if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004136 # Broken: success on invalid input.
4137continue
4138else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004139 # Passes both tests.
4140ac_preproc_ok=:
4141break
4142fi
jfigusc7e66e32013-05-08 11:32:55 -04004143rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004144
4145done
4146# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04004147rm -f conftest.i conftest.err conftest.$ac_ext
4148if $ac_preproc_ok; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004149 break
4150fi
4151
4152 done
4153 ac_cv_prog_CPP=$CPP
4154
4155fi
4156 CPP=$ac_cv_prog_CPP
4157else
4158 ac_cv_prog_CPP=$CPP
4159fi
jfigusc7e66e32013-05-08 11:32:55 -04004160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4161$as_echo "$CPP" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004162ac_preproc_ok=false
4163for ac_c_preproc_warn_flag in '' yes
4164do
4165 # Use a header file that comes with gcc, so configuring glibc
4166 # with a fresh cross-compiler works.
4167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4168 # <limits.h> exists even on freestanding compilers.
4169 # On the NeXT, cc -E runs the code through the compiler's parser,
4170 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04004171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004172/* end confdefs.h. */
4173#ifdef __STDC__
4174# include <limits.h>
4175#else
4176# include <assert.h>
4177#endif
4178 Syntax error
4179_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004180if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004181
jfigusc7e66e32013-05-08 11:32:55 -04004182else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004183 # Broken: fails on valid input.
4184continue
4185fi
jfigusc7e66e32013-05-08 11:32:55 -04004186rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004187
jfigusc7e66e32013-05-08 11:32:55 -04004188 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004189 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04004190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004191/* end confdefs.h. */
4192#include <ac_nonexistent.h>
4193_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004194if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004195 # Broken: success on invalid input.
4196continue
4197else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004198 # Passes both tests.
4199ac_preproc_ok=:
4200break
4201fi
jfigusc7e66e32013-05-08 11:32:55 -04004202rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004203
4204done
4205# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04004206rm -f conftest.i conftest.err conftest.$ac_ext
4207if $ac_preproc_ok; then :
4208
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004209else
jfigusc7e66e32013-05-08 11:32:55 -04004210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4212as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4213See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004214fi
4215
4216ac_ext=c
4217ac_cpp='$CPP $CPPFLAGS'
4218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221
4222
jfigusc7e66e32013-05-08 11:32:55 -04004223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4224$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4225if ${ac_cv_path_GREP+:} false; then :
4226 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004227else
jfigusc7e66e32013-05-08 11:32:55 -04004228 if test -z "$GREP"; then
4229 ac_path_GREP_found=false
4230 # Loop through the user's path and test for each of PROGNAME-LIST
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4233do
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_prog in grep ggrep; do
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4239 as_fn_executable_p "$ac_path_GREP" || continue
4240# Check for GNU ac_path_GREP and select it if it is found.
4241 # Check for GNU $ac_path_GREP
4242case `"$ac_path_GREP" --version 2>&1` in
4243*GNU*)
4244 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4245*)
4246 ac_count=0
4247 $as_echo_n 0123456789 >"conftest.in"
4248 while :
4249 do
4250 cat "conftest.in" "conftest.in" >"conftest.tmp"
4251 mv "conftest.tmp" "conftest.in"
4252 cp "conftest.in" "conftest.nl"
4253 $as_echo 'GREP' >> "conftest.nl"
4254 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4256 as_fn_arith $ac_count + 1 && ac_count=$as_val
4257 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4258 # Best one so far, save it but keep looking for a better one
4259 ac_cv_path_GREP="$ac_path_GREP"
4260 ac_path_GREP_max=$ac_count
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004261 fi
jfigusc7e66e32013-05-08 11:32:55 -04004262 # 10*(2^10) chars as input seems more than enough
4263 test $ac_count -gt 10 && break
4264 done
4265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4266esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004267
jfigusc7e66e32013-05-08 11:32:55 -04004268 $ac_path_GREP_found && break 3
4269 done
4270 done
4271 done
4272IFS=$as_save_IFS
4273 if test -z "$ac_cv_path_GREP"; then
4274 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4275 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004276else
jfigusc7e66e32013-05-08 11:32:55 -04004277 ac_cv_path_GREP=$GREP
4278fi
4279
4280fi
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4282$as_echo "$ac_cv_path_GREP" >&6; }
4283 GREP="$ac_cv_path_GREP"
4284
4285
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4287$as_echo_n "checking for egrep... " >&6; }
4288if ${ac_cv_path_EGREP+:} false; then :
4289 $as_echo_n "(cached) " >&6
4290else
4291 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4292 then ac_cv_path_EGREP="$GREP -E"
4293 else
4294 if test -z "$EGREP"; then
4295 ac_path_EGREP_found=false
4296 # Loop through the user's path and test for each of PROGNAME-LIST
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4299do
4300 IFS=$as_save_IFS
4301 test -z "$as_dir" && as_dir=.
4302 for ac_prog in egrep; do
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4305 as_fn_executable_p "$ac_path_EGREP" || continue
4306# Check for GNU ac_path_EGREP and select it if it is found.
4307 # Check for GNU $ac_path_EGREP
4308case `"$ac_path_EGREP" --version 2>&1` in
4309*GNU*)
4310 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4311*)
4312 ac_count=0
4313 $as_echo_n 0123456789 >"conftest.in"
4314 while :
4315 do
4316 cat "conftest.in" "conftest.in" >"conftest.tmp"
4317 mv "conftest.tmp" "conftest.in"
4318 cp "conftest.in" "conftest.nl"
4319 $as_echo 'EGREP' >> "conftest.nl"
4320 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4322 as_fn_arith $ac_count + 1 && ac_count=$as_val
4323 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4324 # Best one so far, save it but keep looking for a better one
4325 ac_cv_path_EGREP="$ac_path_EGREP"
4326 ac_path_EGREP_max=$ac_count
4327 fi
4328 # 10*(2^10) chars as input seems more than enough
4329 test $ac_count -gt 10 && break
4330 done
4331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4332esac
4333
4334 $ac_path_EGREP_found && break 3
4335 done
4336 done
4337 done
4338IFS=$as_save_IFS
4339 if test -z "$ac_cv_path_EGREP"; then
4340 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4341 fi
4342else
4343 ac_cv_path_EGREP=$EGREP
4344fi
4345
4346 fi
4347fi
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4349$as_echo "$ac_cv_path_EGREP" >&6; }
4350 EGREP="$ac_cv_path_EGREP"
4351
4352
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4354$as_echo_n "checking for ANSI C header files... " >&6; }
4355if ${ac_cv_header_stdc+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357else
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004359/* end confdefs.h. */
4360#include <stdlib.h>
4361#include <stdarg.h>
4362#include <string.h>
4363#include <float.h>
4364
4365int
4366main ()
4367{
4368
4369 ;
4370 return 0;
4371}
4372_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004373if ac_fn_c_try_compile "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04004374 ac_cv_header_stdc=yes
4375else
jfigusc7e66e32013-05-08 11:32:55 -04004376 ac_cv_header_stdc=no
jfigusa14b5a02013-03-29 12:24:12 -04004377fi
jfigusc7e66e32013-05-08 11:32:55 -04004378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004379
4380if test $ac_cv_header_stdc = yes; then
4381 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04004382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004383/* end confdefs.h. */
4384#include <string.h>
4385
4386_ACEOF
4387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04004388 $EGREP "memchr" >/dev/null 2>&1; then :
4389
jfigusa14b5a02013-03-29 12:24:12 -04004390else
4391 ac_cv_header_stdc=no
4392fi
4393rm -f conftest*
4394
4395fi
4396
4397if test $ac_cv_header_stdc = yes; then
4398 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04004399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004400/* end confdefs.h. */
4401#include <stdlib.h>
4402
4403_ACEOF
4404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04004405 $EGREP "free" >/dev/null 2>&1; then :
4406
jfigusa14b5a02013-03-29 12:24:12 -04004407else
4408 ac_cv_header_stdc=no
4409fi
4410rm -f conftest*
4411
4412fi
4413
4414if test $ac_cv_header_stdc = yes; then
4415 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jfigusc7e66e32013-05-08 11:32:55 -04004416 if test "$cross_compiling" = yes; then :
jfigusa14b5a02013-03-29 12:24:12 -04004417 :
4418else
jfigusc7e66e32013-05-08 11:32:55 -04004419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004420/* end confdefs.h. */
4421#include <ctype.h>
jfigusc7e66e32013-05-08 11:32:55 -04004422#include <stdlib.h>
jfigusa14b5a02013-03-29 12:24:12 -04004423#if ((' ' & 0x0FF) == 0x020)
4424# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4425# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4426#else
4427# define ISLOWER(c) \
4428 (('a' <= (c) && (c) <= 'i') \
4429 || ('j' <= (c) && (c) <= 'r') \
4430 || ('s' <= (c) && (c) <= 'z'))
4431# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4432#endif
4433
4434#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4435int
4436main ()
4437{
4438 int i;
4439 for (i = 0; i < 256; i++)
4440 if (XOR (islower (i), ISLOWER (i))
4441 || toupper (i) != TOUPPER (i))
jfigusc7e66e32013-05-08 11:32:55 -04004442 return 2;
4443 return 0;
jfigusa14b5a02013-03-29 12:24:12 -04004444}
4445_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004446if ac_fn_c_try_run "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04004447
jfigusc7e66e32013-05-08 11:32:55 -04004448else
4449 ac_cv_header_stdc=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004450fi
jfigusc7e66e32013-05-08 11:32:55 -04004451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4452 conftest.$ac_objext conftest.beam conftest.$ac_ext
4453fi
4454
jfigusa14b5a02013-03-29 12:24:12 -04004455fi
4456fi
jfigusc7e66e32013-05-08 11:32:55 -04004457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4458$as_echo "$ac_cv_header_stdc" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04004459if test $ac_cv_header_stdc = yes; then
4460
jfigusc7e66e32013-05-08 11:32:55 -04004461$as_echo "#define STDC_HEADERS 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04004462
4463fi
4464
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004465# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004466for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4467 inttypes.h stdint.h unistd.h
jfigusc7e66e32013-05-08 11:32:55 -04004468do :
4469 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4470ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4471"
4472if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004473 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004474#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004475_ACEOF
4476
4477fi
4478
4479done
4480
4481
jfigusc7e66e32013-05-08 11:32:55 -04004482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4483$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4484if ${ac_cv_c_bigendian+:} false; then :
4485 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004486else
jfigusc7e66e32013-05-08 11:32:55 -04004487 ac_cv_c_bigendian=unknown
4488 # See if we're dealing with a universal compiler.
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004490/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004491#ifndef __APPLE_CC__
4492 not a universal capable compiler
4493 #endif
4494 typedef int dummy;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004495
jfigusc7e66e32013-05-08 11:32:55 -04004496_ACEOF
4497if ac_fn_c_try_compile "$LINENO"; then :
4498
4499 # Check for potential -arch flags. It is not universal unless
4500 # there are at least two -arch flags with different values.
4501 ac_arch=
4502 ac_prev=
4503 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4504 if test -n "$ac_prev"; then
4505 case $ac_word in
4506 i?86 | x86_64 | ppc | ppc64)
4507 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4508 ac_arch=$ac_word
4509 else
4510 ac_cv_c_bigendian=universal
4511 break
4512 fi
4513 ;;
4514 esac
4515 ac_prev=
4516 elif test "x$ac_word" = "x-arch"; then
4517 ac_prev=arch
4518 fi
4519 done
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004520fi
jfigusc7e66e32013-05-08 11:32:55 -04004521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 if test $ac_cv_c_bigendian = unknown; then
4523 # See if sys/param.h defines the BYTE_ORDER macro.
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004525/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004526#include <sys/types.h>
4527 #include <sys/param.h>
4528
4529int
4530main ()
4531{
4532#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4533 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4534 && LITTLE_ENDIAN)
4535 bogus endian macros
4536 #endif
4537
4538 ;
4539 return 0;
4540}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004541_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004542if ac_fn_c_try_compile "$LINENO"; then :
4543 # It does; now see whether it defined to BIG_ENDIAN or not.
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004545/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004546#include <sys/types.h>
4547 #include <sys/param.h>
4548
4549int
4550main ()
4551{
4552#if BYTE_ORDER != BIG_ENDIAN
4553 not big endian
4554 #endif
4555
4556 ;
4557 return 0;
4558}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004559_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004560if ac_fn_c_try_compile "$LINENO"; then :
4561 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004562else
jfigusc7e66e32013-05-08 11:32:55 -04004563 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004564fi
jfigusc7e66e32013-05-08 11:32:55 -04004565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566fi
4567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568 fi
4569 if test $ac_cv_c_bigendian = unknown; then
4570 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004572/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004573#include <limits.h>
4574
4575int
4576main ()
4577{
4578#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4579 bogus endian macros
4580 #endif
4581
4582 ;
4583 return 0;
4584}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004585_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004586if ac_fn_c_try_compile "$LINENO"; then :
4587 # It does; now see whether it defined to _BIG_ENDIAN or not.
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004589/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004590#include <limits.h>
4591
4592int
4593main ()
4594{
4595#ifndef _BIG_ENDIAN
4596 not big endian
4597 #endif
4598
4599 ;
4600 return 0;
4601}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004602_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004603if ac_fn_c_try_compile "$LINENO"; then :
4604 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004605else
jfigusc7e66e32013-05-08 11:32:55 -04004606 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004607fi
jfigusc7e66e32013-05-08 11:32:55 -04004608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609fi
4610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 fi
4612 if test $ac_cv_c_bigendian = unknown; then
4613 # Compile a test program.
4614 if test "$cross_compiling" = yes; then :
4615 # Try to guess by grepping values from an object file.
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004617/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004618short int ascii_mm[] =
4619 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4620 short int ascii_ii[] =
4621 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4622 int use_ascii (int i) {
4623 return ascii_mm[i] + ascii_ii[i];
4624 }
4625 short int ebcdic_ii[] =
4626 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4627 short int ebcdic_mm[] =
4628 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4629 int use_ebcdic (int i) {
4630 return ebcdic_mm[i] + ebcdic_ii[i];
4631 }
4632 extern int foo;
4633
4634int
4635main ()
4636{
4637return use_ascii (foo) == use_ebcdic (foo);
4638 ;
4639 return 0;
4640}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004641_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004642if ac_fn_c_try_compile "$LINENO"; then :
4643 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4644 ac_cv_c_bigendian=yes
4645 fi
4646 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4647 if test "$ac_cv_c_bigendian" = unknown; then
4648 ac_cv_c_bigendian=no
4649 else
4650 # finding both strings is unlikely to happen, but who knows?
4651 ac_cv_c_bigendian=unknown
4652 fi
4653 fi
4654fi
4655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004656else
jfigusc7e66e32013-05-08 11:32:55 -04004657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004658/* end confdefs.h. */
4659$ac_includes_default
4660int
4661main ()
4662{
jfigusc7e66e32013-05-08 11:32:55 -04004663
4664 /* Are we little or big endian? From Harbison&Steele. */
4665 union
4666 {
4667 long int l;
4668 char c[sizeof (long int)];
4669 } u;
4670 u.l = 1;
4671 return u.c[sizeof (long int) - 1] == 1;
4672
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004673 ;
4674 return 0;
4675}
4676_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004677if ac_fn_c_try_run "$LINENO"; then :
4678 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004679else
jfigusc7e66e32013-05-08 11:32:55 -04004680 ac_cv_c_bigendian=yes
4681fi
4682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4683 conftest.$ac_objext conftest.beam conftest.$ac_ext
4684fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004685
jfigusc7e66e32013-05-08 11:32:55 -04004686 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004687fi
jfigusc7e66e32013-05-08 11:32:55 -04004688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4689$as_echo "$ac_cv_c_bigendian" >&6; }
4690 case $ac_cv_c_bigendian in #(
4691 yes)
4692 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4693;; #(
4694 no)
4695 ;; #(
4696 universal)
4697
4698$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4699
4700 ;; #(
4701 *)
4702 as_fn_error $? "unknown endianness
4703 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4704 esac
4705
4706
4707# Make sure we can run config.sub.
4708$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4709 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4710
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4712$as_echo_n "checking build system type... " >&6; }
4713if ${ac_cv_build+:} false; then :
4714 $as_echo_n "(cached) " >&6
4715else
4716 ac_build_alias=$build_alias
4717test "x$ac_build_alias" = x &&
4718 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4719test "x$ac_build_alias" = x &&
4720 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4721ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4722 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4723
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004724fi
jfigusc7e66e32013-05-08 11:32:55 -04004725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4726$as_echo "$ac_cv_build" >&6; }
4727case $ac_cv_build in
4728*-*-*) ;;
4729*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4730esac
4731build=$ac_cv_build
4732ac_save_IFS=$IFS; IFS='-'
4733set x $ac_cv_build
4734shift
4735build_cpu=$1
4736build_vendor=$2
4737shift; shift
4738# Remember, the first character of IFS is used to create $*,
4739# except with old shells:
4740build_os=$*
4741IFS=$ac_save_IFS
4742case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4743
4744
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4746$as_echo_n "checking host system type... " >&6; }
4747if ${ac_cv_host+:} false; then :
4748 $as_echo_n "(cached) " >&6
4749else
4750 if test "x$host_alias" = x; then
4751 ac_cv_host=$ac_cv_build
4752else
4753 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4754 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4755fi
4756
4757fi
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4759$as_echo "$ac_cv_host" >&6; }
4760case $ac_cv_host in
4761*-*-*) ;;
4762*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4763esac
4764host=$ac_cv_host
4765ac_save_IFS=$IFS; IFS='-'
4766set x $ac_cv_host
4767shift
4768host_cpu=$1
4769host_vendor=$2
4770shift; shift
4771# Remember, the first character of IFS is used to create $*,
4772# except with old shells:
4773host_os=$*
4774IFS=$ac_save_IFS
4775case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4776
4777
4778
4779case $host_cpu in
4780 i*86 | x86_64 )
4781
4782$as_echo "#define CPU_CISC 1" >>confdefs.h
4783
4784
4785$as_echo "#define HAVE_X86 1" >>confdefs.h
4786;;
4787 * )
jfigusc7e66e32013-05-08 11:32:55 -04004788
4789$as_echo "#define CPU_RISC 1" >>confdefs.h
jfigusfb838412014-12-04 10:15:47 -05004790
jfigusc7e66e32013-05-08 11:32:55 -04004791 ;;
4792esac
4793
4794case $host_os in
4795 *cygwin*|*mingw* )
4796 EXE=.exe
4797 HOST_IS_WINDOWS=yes
4798 ;;
4799 * )
4800 EXE=""
4801 ;;
4802esac
4803 # define executable suffix; this is needed for `make clean'
4804
jfigusc7e66e32013-05-08 11:32:55 -04004805if test "$cross_compiling" != yes -a "$HOST_IS_WINDOWS" != yes; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
4807$as_echo_n "checking for /dev/urandom... " >&6; }
4808if ${ac_cv_file__dev_urandom+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810else
4811 test "$cross_compiling" = yes &&
4812 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4813if test -r "/dev/urandom"; then
4814 ac_cv_file__dev_urandom=yes
4815else
4816 ac_cv_file__dev_urandom=no
4817fi
4818fi
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
4820$as_echo "$ac_cv_file__dev_urandom" >&6; }
4821if test "x$ac_cv_file__dev_urandom" = xyes; then :
4822 DEV_URANDOM=/dev/urandom
4823else
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
4825$as_echo_n "checking for /dev/random... " >&6; }
4826if ${ac_cv_file__dev_random+:} false; then :
4827 $as_echo_n "(cached) " >&6
4828else
4829 test "$cross_compiling" = yes &&
4830 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4831if test -r "/dev/random"; then
4832 ac_cv_file__dev_random=yes
4833else
4834 ac_cv_file__dev_random=no
4835fi
4836fi
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
4838$as_echo "$ac_cv_file__dev_random" >&6; }
4839if test "x$ac_cv_file__dev_random" = xyes; then :
4840 DEV_URANDOM=/dev/random
4841fi
4842
4843fi
4844
4845fi
4846
4847
4848
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4850$as_echo_n "checking for ANSI C header files... " >&6; }
4851if ${ac_cv_header_stdc+:} false; then :
4852 $as_echo_n "(cached) " >&6
4853else
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855/* end confdefs.h. */
4856#include <stdlib.h>
4857#include <stdarg.h>
4858#include <string.h>
4859#include <float.h>
4860
4861int
4862main ()
4863{
4864
4865 ;
4866 return 0;
4867}
4868_ACEOF
4869if ac_fn_c_try_compile "$LINENO"; then :
4870 ac_cv_header_stdc=yes
4871else
4872 ac_cv_header_stdc=no
4873fi
4874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875
4876if test $ac_cv_header_stdc = yes; then
4877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879/* end confdefs.h. */
4880#include <string.h>
4881
4882_ACEOF
4883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4884 $EGREP "memchr" >/dev/null 2>&1; then :
4885
4886else
4887 ac_cv_header_stdc=no
4888fi
4889rm -f conftest*
4890
4891fi
4892
4893if test $ac_cv_header_stdc = yes; then
4894 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896/* end confdefs.h. */
4897#include <stdlib.h>
4898
4899_ACEOF
4900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4901 $EGREP "free" >/dev/null 2>&1; then :
4902
4903else
4904 ac_cv_header_stdc=no
4905fi
4906rm -f conftest*
4907
4908fi
4909
4910if test $ac_cv_header_stdc = yes; then
4911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4912 if test "$cross_compiling" = yes; then :
4913 :
4914else
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916/* end confdefs.h. */
4917#include <ctype.h>
4918#include <stdlib.h>
4919#if ((' ' & 0x0FF) == 0x020)
4920# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4921# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4922#else
4923# define ISLOWER(c) \
4924 (('a' <= (c) && (c) <= 'i') \
4925 || ('j' <= (c) && (c) <= 'r') \
4926 || ('s' <= (c) && (c) <= 'z'))
4927# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4928#endif
4929
4930#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4931int
4932main ()
4933{
4934 int i;
4935 for (i = 0; i < 256; i++)
4936 if (XOR (islower (i), ISLOWER (i))
4937 || toupper (i) != TOUPPER (i))
4938 return 2;
4939 return 0;
4940}
4941_ACEOF
4942if ac_fn_c_try_run "$LINENO"; then :
4943
4944else
4945 ac_cv_header_stdc=no
4946fi
4947rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4948 conftest.$ac_objext conftest.beam conftest.$ac_ext
4949fi
4950
4951fi
4952fi
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4954$as_echo "$ac_cv_header_stdc" >&6; }
4955if test $ac_cv_header_stdc = yes; then
4956
4957$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4958
4959fi
4960
4961for ac_header in stdlib.h
4962do :
4963 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4964if test "x$ac_cv_header_stdlib_h" = xyes; then :
4965 cat >>confdefs.h <<_ACEOF
4966#define HAVE_STDLIB_H 1
4967_ACEOF
4968
4969fi
4970
4971done
4972
4973for ac_header in unistd.h
4974do :
4975 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4976if test "x$ac_cv_header_unistd_h" = xyes; then :
4977 cat >>confdefs.h <<_ACEOF
4978#define HAVE_UNISTD_H 1
4979_ACEOF
4980
4981fi
4982
4983done
4984
4985for ac_header in byteswap.h
4986do :
4987 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
4988if test "x$ac_cv_header_byteswap_h" = xyes; then :
4989 cat >>confdefs.h <<_ACEOF
4990#define HAVE_BYTESWAP_H 1
4991_ACEOF
4992
4993fi
4994
4995done
4996
4997for ac_header in stdint.h
4998do :
4999 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5000if test "x$ac_cv_header_stdint_h" = xyes; then :
5001 cat >>confdefs.h <<_ACEOF
5002#define HAVE_STDINT_H 1
5003_ACEOF
5004
5005fi
5006
5007done
5008
5009for ac_header in sys/uio.h
5010do :
5011 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
5012if test "x$ac_cv_header_sys_uio_h" = xyes; then :
5013 cat >>confdefs.h <<_ACEOF
5014#define HAVE_SYS_UIO_H 1
5015_ACEOF
5016
5017fi
5018
5019done
5020
5021for ac_header in inttypes.h
5022do :
5023 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5024if test "x$ac_cv_header_inttypes_h" = xyes; then :
5025 cat >>confdefs.h <<_ACEOF
5026#define HAVE_INTTYPES_H 1
5027_ACEOF
5028
5029fi
5030
5031done
5032
5033for ac_header in sys/types.h
5034do :
5035 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
5036if test "x$ac_cv_header_sys_types_h" = xyes; then :
5037 cat >>confdefs.h <<_ACEOF
5038#define HAVE_SYS_TYPES_H 1
5039_ACEOF
5040
5041fi
5042
5043done
5044
5045for ac_header in machine/types.h
5046do :
5047 ac_fn_c_check_header_mongrel "$LINENO" "machine/types.h" "ac_cv_header_machine_types_h" "$ac_includes_default"
5048if test "x$ac_cv_header_machine_types_h" = xyes; then :
5049 cat >>confdefs.h <<_ACEOF
5050#define HAVE_MACHINE_TYPES_H 1
5051_ACEOF
5052
5053fi
5054
5055done
5056
5057for ac_header in sys/int_types.h
5058do :
5059 ac_fn_c_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default"
5060if test "x$ac_cv_header_sys_int_types_h" = xyes; then :
5061 cat >>confdefs.h <<_ACEOF
5062#define HAVE_SYS_INT_TYPES_H 1
5063_ACEOF
5064
5065fi
5066
5067done
5068
5069
5070for ac_header in sys/socket.h netinet/in.h arpa/inet.h
5071do :
5072 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5073ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5074if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5075 cat >>confdefs.h <<_ACEOF
5076#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5077_ACEOF
5078
5079fi
5080
5081done
5082
5083for ac_header in windows.h
5084do :
5085 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
5086if test "x$ac_cv_header_windows_h" = xyes; then :
5087 cat >>confdefs.h <<_ACEOF
5088#define HAVE_WINDOWS_H 1
5089_ACEOF
5090 for ac_header in winsock2.h
5091do :
5092 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
5093if test "x$ac_cv_header_winsock2_h" = xyes; then :
5094 cat >>confdefs.h <<_ACEOF
5095#define HAVE_WINSOCK2_H 1
5096_ACEOF
5097
5098fi
5099
5100done
5101
5102fi
5103
5104done
5105
5106
jfigusc7e66e32013-05-08 11:32:55 -04005107ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
5108if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005109
David McGrewfec49dd2005-09-23 19:34:11 +00005110cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005111#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005112_ACEOF
5113
5114
5115fi
jfigusc7e66e32013-05-08 11:32:55 -04005116ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
5117if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005118
5119cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005120#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005121_ACEOF
5122
5123
5124fi
jfigusc7e66e32013-05-08 11:32:55 -04005125ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5126if test "x$ac_cv_type_int16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005127
5128cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005129#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005130_ACEOF
5131
5132
5133fi
jfigusc7e66e32013-05-08 11:32:55 -04005134ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5135if test "x$ac_cv_type_uint16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005136
5137cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005138#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005139_ACEOF
5140
5141
5142fi
jfigusc7e66e32013-05-08 11:32:55 -04005143ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5144if test "x$ac_cv_type_int32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005145
5146cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005147#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005148_ACEOF
5149
5150
5151fi
jfigusc7e66e32013-05-08 11:32:55 -04005152ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5153if test "x$ac_cv_type_uint32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005154
5155cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005156#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005157_ACEOF
5158
5159
5160fi
jfigusc7e66e32013-05-08 11:32:55 -04005161ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
5162if test "x$ac_cv_type_uint64_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005163
5164cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005165#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005166_ACEOF
5167
5168
5169fi
5170
jfigusc7e66e32013-05-08 11:32:55 -04005171# The cast to long int works around a bug in the HP C Compiler
5172# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5173# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5174# This bug is HP SR number 8606223364.
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
5176$as_echo_n "checking size of unsigned long... " >&6; }
5177if ${ac_cv_sizeof_unsigned_long+:} false; then :
5178 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005179else
jfigusc7e66e32013-05-08 11:32:55 -04005180 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 +00005181
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005182else
5183 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04005184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5186as_fn_error 77 "cannot compute sizeof (unsigned long)
5187See \`config.log' for more details" "$LINENO" 5; }
5188 else
5189 ac_cv_sizeof_unsigned_long=0
5190 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005191fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005192
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005193fi
jfigusc7e66e32013-05-08 11:32:55 -04005194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
5195$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005196
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005197
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005198
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005199cat >>confdefs.h <<_ACEOF
5200#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
5201_ACEOF
5202
David McGrewfec49dd2005-09-23 19:34:11 +00005203
jfigusc7e66e32013-05-08 11:32:55 -04005204# The cast to long int works around a bug in the HP C Compiler
5205# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5206# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5207# This bug is HP SR number 8606223364.
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
5209$as_echo_n "checking size of unsigned long long... " >&6; }
5210if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
5211 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00005212else
jfigusc7e66e32013-05-08 11:32:55 -04005213 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 +00005214
David McGrewfec49dd2005-09-23 19:34:11 +00005215else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005216 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04005217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5219as_fn_error 77 "cannot compute sizeof (unsigned long long)
5220See \`config.log' for more details" "$LINENO" 5; }
5221 else
5222 ac_cv_sizeof_unsigned_long_long=0
5223 fi
David McGrewfec49dd2005-09-23 19:34:11 +00005224fi
5225
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005226fi
jfigusc7e66e32013-05-08 11:32:55 -04005227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
5228$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005229
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005230
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005231
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005232cat >>confdefs.h <<_ACEOF
5233#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00005234_ACEOF
5235
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005236
Cullen Jennings235513a2005-09-21 22:51:36 +00005237
jfigusc7e66e32013-05-08 11:32:55 -04005238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5239$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5240if ${ac_cv_c_const+:} false; then :
5241 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005242else
jfigusc7e66e32013-05-08 11:32:55 -04005243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005244/* end confdefs.h. */
5245
5246int
5247main ()
5248{
jfigusc7e66e32013-05-08 11:32:55 -04005249
Cullen Jennings235513a2005-09-21 22:51:36 +00005250#ifndef __cplusplus
jfigusc7e66e32013-05-08 11:32:55 -04005251 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00005252 typedef int charset[2];
jfigusc7e66e32013-05-08 11:32:55 -04005253 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00005254 /* SunOS 4.1.1 cc rejects this. */
jfigusc7e66e32013-05-08 11:32:55 -04005255 char const *const *pcpcc;
5256 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00005257 /* NEC SVR4.0.2 mips cc rejects this. */
5258 struct point {int x, y;};
5259 static struct point const zero = {0,0};
5260 /* AIX XL C 1.02.0.0 rejects this.
5261 It does not let you subtract one const X* pointer from another in
5262 an arm of an if-expression whose if-part is not a constant
5263 expression */
5264 const char *g = "string";
jfigusc7e66e32013-05-08 11:32:55 -04005265 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00005266 /* HPUX 7.0 cc rejects these. */
jfigusc7e66e32013-05-08 11:32:55 -04005267 ++pcpcc;
5268 ppc = (char**) pcpcc;
5269 pcpcc = (char const *const *) ppc;
5270 { /* SCO 3.2v4 cc rejects this sort of thing. */
5271 char tx;
5272 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00005273 char const *s = 0 ? (char *) 0 : (char const *) 0;
5274
5275 *t++ = 0;
jfigusc7e66e32013-05-08 11:32:55 -04005276 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00005277 }
5278 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5279 int x[] = {25, 17};
5280 const int *foo = &x[0];
5281 ++foo;
5282 }
5283 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5284 typedef const int *iptr;
5285 iptr p = 0;
5286 ++p;
5287 }
jfigusc7e66e32013-05-08 11:32:55 -04005288 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00005289 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusc7e66e32013-05-08 11:32:55 -04005290 struct s { int j; const int *ap[3]; } bx;
5291 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00005292 }
5293 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5294 const int foo = 10;
jfigusc7e66e32013-05-08 11:32:55 -04005295 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00005296 }
jfigusc7e66e32013-05-08 11:32:55 -04005297 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00005298#endif
5299
5300 ;
5301 return 0;
5302}
5303_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005304if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005305 ac_cv_c_const=yes
5306else
jfigusc7e66e32013-05-08 11:32:55 -04005307 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00005308fi
jfigusc7e66e32013-05-08 11:32:55 -04005309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005310fi
jfigusc7e66e32013-05-08 11:32:55 -04005311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5312$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005313if test $ac_cv_c_const = no; then
5314
jfigusc7e66e32013-05-08 11:32:55 -04005315$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005316
5317fi
5318
jfigusc7e66e32013-05-08 11:32:55 -04005319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5320$as_echo_n "checking for inline... " >&6; }
5321if ${ac_cv_c_inline+:} false; then :
5322 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005323else
5324 ac_cv_c_inline=no
5325for ac_kw in inline __inline__ __inline; do
jfigusc7e66e32013-05-08 11:32:55 -04005326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005327/* end confdefs.h. */
5328#ifndef __cplusplus
5329typedef int foo_t;
5330static $ac_kw foo_t static_foo () {return 0; }
5331$ac_kw foo_t foo () {return 0; }
5332#endif
5333
5334_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005335if ac_fn_c_try_compile "$LINENO"; then :
5336 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00005337fi
jfigusc7e66e32013-05-08 11:32:55 -04005338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00005340done
5341
5342fi
jfigusc7e66e32013-05-08 11:32:55 -04005343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5344$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00005345
Cullen Jennings235513a2005-09-21 22:51:36 +00005346case $ac_cv_c_inline in
5347 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00005348 *)
5349 case $ac_cv_c_inline in
5350 no) ac_val=;;
5351 *) ac_val=$ac_cv_c_inline;;
5352 esac
5353 cat >>confdefs.h <<_ACEOF
5354#ifndef __cplusplus
5355#define inline $ac_val
5356#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00005357_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00005358 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005359esac
5360
jfigusc7e66e32013-05-08 11:32:55 -04005361ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5362if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005363
Cullen Jennings235513a2005-09-21 22:51:36 +00005364else
5365
5366cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005367#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00005368_ACEOF
5369
5370fi
5371
5372
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00005373for ac_func in socket inet_aton usleep sigaction
jfigusc7e66e32013-05-08 11:32:55 -04005374do :
5375 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5376ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5377if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005378 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005379#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00005380_ACEOF
5381
5382fi
5383done
5384
5385
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005386if test "x$ac_cv_func_socket" = "xno"; then
jfigusc7e66e32013-05-08 11:32:55 -04005387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5388$as_echo_n "checking for socket in -lsocket... " >&6; }
5389if ${ac_cv_lib_socket_socket+:} false; then :
5390 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00005391else
5392 ac_check_lib_save_LIBS=$LIBS
5393LIBS="-lsocket $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04005394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00005395/* end confdefs.h. */
5396
jfigusc7e66e32013-05-08 11:32:55 -04005397/* Override any GCC internal prototype to avoid an error.
5398 Use char because int might match the return type of a GCC
5399 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00005400#ifdef __cplusplus
5401extern "C"
5402#endif
David McGrewb67061f2005-09-28 14:23:06 +00005403char socket ();
5404int
5405main ()
5406{
jfigusc7e66e32013-05-08 11:32:55 -04005407return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00005408 ;
5409 return 0;
5410}
5411_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005412if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00005413 ac_cv_lib_socket_socket=yes
5414else
jfigusc7e66e32013-05-08 11:32:55 -04005415 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00005416fi
jfigusc7e66e32013-05-08 11:32:55 -04005417rm -f core conftest.err conftest.$ac_objext \
5418 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00005419LIBS=$ac_check_lib_save_LIBS
5420fi
jfigusc7e66e32013-05-08 11:32:55 -04005421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5422$as_echo "$ac_cv_lib_socket_socket" >&6; }
5423if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00005424 cat >>confdefs.h <<_ACEOF
5425#define HAVE_LIBSOCKET 1
5426_ACEOF
5427
5428 LIBS="-lsocket $LIBS"
5429
5430fi
5431
jfigusc7e66e32013-05-08 11:32:55 -04005432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
5433$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005434 SAVELIBS="$LIBS"
5435 LIBS="$LIBS -lwsock32"
jfigusc7e66e32013-05-08 11:32:55 -04005436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005437/* end confdefs.h. */
5438
5439#include <winsock2.h>
5440
5441int
5442main ()
5443{
5444
5445socket(0, 0, 0);
5446
5447 ;
5448 return 0;
5449}
5450_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005451if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005452 ac_cv_func_socket=yes
jfigusc7e66e32013-05-08 11:32:55 -04005453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5454$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005455else
jfigusc7e66e32013-05-08 11:32:55 -04005456 LIBS="$SAVELIBS"
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5458$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005459fi
jfigusc7e66e32013-05-08 11:32:55 -04005460rm -f core conftest.err conftest.$ac_objext \
5461 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005462fi
David McGrewb67061f2005-09-28 14:23:06 +00005463
jfigusc7e66e32013-05-08 11:32:55 -04005464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debugging" >&5
5465$as_echo_n "checking whether to compile in debugging... " >&6; }
5466# Check whether --enable-debug was given.
5467if test "${enable_debug+set}" = set; then :
5468 enableval=$enable_debug;
David McGrewb67061f2005-09-28 14:23:06 +00005469else
5470 enable_debug=yes
jfigusc7e66e32013-05-08 11:32:55 -04005471fi
5472
David McGrewb67061f2005-09-28 14:23:06 +00005473if test "$enable_debug" = "yes"; then
5474
jfigusc7e66e32013-05-08 11:32:55 -04005475$as_echo "#define ENABLE_DEBUGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005476
5477fi
jfigusc7e66e32013-05-08 11:32:55 -04005478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
5479$as_echo "$enable_debug" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005480
jfigusc7e66e32013-05-08 11:32:55 -04005481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ISMAcryp code" >&5
5482$as_echo_n "checking whether to use ISMAcryp code... " >&6; }
5483# Check whether --enable-generic-aesicm was given.
5484if test "${enable_generic_aesicm+set}" = set; then :
5485 enableval=$enable_generic_aesicm;
David McGrewb67061f2005-09-28 14:23:06 +00005486else
5487 enable_generic_aesicm=no
jfigusc7e66e32013-05-08 11:32:55 -04005488fi
5489
David McGrewb67061f2005-09-28 14:23:06 +00005490if test "$enable_generic_aesicm" = "yes"; then
5491
jfigusc7e66e32013-05-08 11:32:55 -04005492$as_echo "#define GENERIC_AESICM 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04005493
jfigusa14b5a02013-03-29 12:24:12 -04005494fi
jfigusc7e66e32013-05-08 11:32:55 -04005495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generic_aesicm" >&5
5496$as_echo "$enable_generic_aesicm" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04005497
jfigusc7e66e32013-05-08 11:32:55 -04005498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
5499$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
5500# Check whether --enable-openssl was given.
5501if test "${enable_openssl+set}" = set; then :
5502 enableval=$enable_openssl;
5503else
5504 enable_openssl=no
5505fi
jfigusa14b5a02013-03-29 12:24:12 -04005506
jfigus2b486652014-07-24 15:01:41 -04005507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
5508$as_echo "$enable_openssl" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04005509if test "$enable_openssl" = "yes"; then
Sean Brightbfb9e302014-03-24 20:45:17 -04005510 LDFLAGS="$LDFLAGS $(pkg-config --libs openssl)";
5511 CFLAGS="$CFLAGS $(pkg-config --cflags openssl)";
Cullen Jenningse1de50f2013-05-22 12:27:28 -06005512
jfigusb5fad5f2015-02-26 12:25:08 -05005513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5514$as_echo_n "checking for dlopen in -ldl... " >&6; }
5515if ${ac_cv_lib_dl_dlopen+:} false; then :
5516 $as_echo_n "(cached) " >&6
5517else
5518 ac_check_lib_save_LIBS=$LIBS
5519LIBS="-ldl $LIBS"
5520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521/* end confdefs.h. */
5522
5523/* Override any GCC internal prototype to avoid an error.
5524 Use char because int might match the return type of a GCC
5525 builtin and then its argument prototype would still apply. */
5526#ifdef __cplusplus
5527extern "C"
5528#endif
5529char dlopen ();
5530int
5531main ()
5532{
5533return dlopen ();
5534 ;
5535 return 0;
5536}
5537_ACEOF
5538if ac_fn_c_try_link "$LINENO"; then :
5539 ac_cv_lib_dl_dlopen=yes
5540else
5541 ac_cv_lib_dl_dlopen=no
5542fi
5543rm -f core conftest.err conftest.$ac_objext \
5544 conftest$ac_exeext conftest.$ac_ext
5545LIBS=$ac_check_lib_save_LIBS
5546fi
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5548$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5549if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5550 cat >>confdefs.h <<_ACEOF
5551#define HAVE_LIBDL 1
5552_ACEOF
5553
5554 LIBS="-ldl $LIBS"
5555
5556else
jfigus13fd6942015-03-02 09:09:13 -05005557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libdl" >&5
5558$as_echo "$as_me: WARNING: can't find libdl" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005559fi
5560
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
5562$as_echo_n "checking for inflate in -lz... " >&6; }
5563if ${ac_cv_lib_z_inflate+:} false; then :
5564 $as_echo_n "(cached) " >&6
5565else
5566 ac_check_lib_save_LIBS=$LIBS
5567LIBS="-lz $LIBS"
5568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569/* end confdefs.h. */
5570
5571/* Override any GCC internal prototype to avoid an error.
5572 Use char because int might match the return type of a GCC
5573 builtin and then its argument prototype would still apply. */
5574#ifdef __cplusplus
5575extern "C"
5576#endif
5577char inflate ();
5578int
5579main ()
5580{
5581return inflate ();
5582 ;
5583 return 0;
5584}
5585_ACEOF
5586if ac_fn_c_try_link "$LINENO"; then :
5587 ac_cv_lib_z_inflate=yes
5588else
5589 ac_cv_lib_z_inflate=no
5590fi
5591rm -f core conftest.err conftest.$ac_objext \
5592 conftest$ac_exeext conftest.$ac_ext
5593LIBS=$ac_check_lib_save_LIBS
5594fi
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
5596$as_echo "$ac_cv_lib_z_inflate" >&6; }
5597if test "x$ac_cv_lib_z_inflate" = xyes; then :
5598 cat >>confdefs.h <<_ACEOF
5599#define HAVE_LIBZ 1
5600_ACEOF
5601
5602 LIBS="-lz $LIBS"
5603
5604else
jfigus13fd6942015-03-02 09:09:13 -05005605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libz" >&5
5606$as_echo "$as_me: WARNING: can't find libz" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005607fi
5608
jfigusc7e66e32013-05-08 11:32:55 -04005609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
5610$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
5611if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
5612 $as_echo_n "(cached) " >&6
5613else
5614 ac_check_lib_save_LIBS=$LIBS
5615LIBS="-lcrypto $LIBS"
5616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617/* end confdefs.h. */
5618
5619/* Override any GCC internal prototype to avoid an error.
5620 Use char because int might match the return type of a GCC
5621 builtin and then its argument prototype would still apply. */
5622#ifdef __cplusplus
5623extern "C"
5624#endif
5625char EVP_EncryptInit ();
5626int
5627main ()
5628{
5629return EVP_EncryptInit ();
5630 ;
5631 return 0;
5632}
5633_ACEOF
5634if ac_fn_c_try_link "$LINENO"; then :
5635 ac_cv_lib_crypto_EVP_EncryptInit=yes
5636else
5637 ac_cv_lib_crypto_EVP_EncryptInit=no
5638fi
5639rm -f core conftest.err conftest.$ac_objext \
5640 conftest$ac_exeext conftest.$ac_ext
5641LIBS=$ac_check_lib_save_LIBS
5642fi
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
5644$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
5645if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
5646 cat >>confdefs.h <<_ACEOF
5647#define HAVE_LIBCRYPTO 1
5648_ACEOF
5649
5650 LIBS="-lcrypto $LIBS"
5651
5652else
5653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
jfigus5b22e372013-05-09 09:23:26 -04005655as_fn_error $? "can't find openssl >1.0.1 crypto lib
5656See \`config.log' for more details" "$LINENO" 5; }
5657fi
5658
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_ctr in -lcrypto" >&5
5660$as_echo_n "checking for EVP_aes_128_ctr in -lcrypto... " >&6; }
5661if ${ac_cv_lib_crypto_EVP_aes_128_ctr+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663else
5664 ac_check_lib_save_LIBS=$LIBS
5665LIBS="-lcrypto $LIBS"
5666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667/* end confdefs.h. */
5668
5669/* Override any GCC internal prototype to avoid an error.
5670 Use char because int might match the return type of a GCC
5671 builtin and then its argument prototype would still apply. */
5672#ifdef __cplusplus
5673extern "C"
5674#endif
5675char EVP_aes_128_ctr ();
5676int
5677main ()
5678{
5679return EVP_aes_128_ctr ();
5680 ;
5681 return 0;
5682}
5683_ACEOF
5684if ac_fn_c_try_link "$LINENO"; then :
5685 ac_cv_lib_crypto_EVP_aes_128_ctr=yes
5686else
5687 ac_cv_lib_crypto_EVP_aes_128_ctr=no
5688fi
5689rm -f core conftest.err conftest.$ac_objext \
5690 conftest$ac_exeext conftest.$ac_ext
5691LIBS=$ac_check_lib_save_LIBS
5692fi
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_ctr" >&5
5694$as_echo "$ac_cv_lib_crypto_EVP_aes_128_ctr" >&6; }
5695if test "x$ac_cv_lib_crypto_EVP_aes_128_ctr" = xyes; then :
5696 cat >>confdefs.h <<_ACEOF
5697#define HAVE_LIBCRYPTO 1
5698_ACEOF
5699
5700 LIBS="-lcrypto $LIBS"
5701
5702else
5703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5705as_fn_error $? "can't find openssl >1.0.1 crypto lib
jfigusc7e66e32013-05-08 11:32:55 -04005706See \`config.log' for more details" "$LINENO" 5; }
5707fi
5708
jfigus7882dd92013-08-02 16:08:23 -04005709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lcrypto" >&5
5710$as_echo_n "checking for EVP_aes_128_gcm in -lcrypto... " >&6; }
5711if ${ac_cv_lib_crypto_EVP_aes_128_gcm+:} false; then :
5712 $as_echo_n "(cached) " >&6
5713else
5714 ac_check_lib_save_LIBS=$LIBS
5715LIBS="-lcrypto $LIBS"
5716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717/* end confdefs.h. */
5718
5719/* Override any GCC internal prototype to avoid an error.
5720 Use char because int might match the return type of a GCC
5721 builtin and then its argument prototype would still apply. */
5722#ifdef __cplusplus
5723extern "C"
5724#endif
5725char EVP_aes_128_gcm ();
5726int
5727main ()
5728{
5729return EVP_aes_128_gcm ();
5730 ;
5731 return 0;
5732}
5733_ACEOF
5734if ac_fn_c_try_link "$LINENO"; then :
5735 ac_cv_lib_crypto_EVP_aes_128_gcm=yes
5736else
5737 ac_cv_lib_crypto_EVP_aes_128_gcm=no
5738fi
5739rm -f core conftest.err conftest.$ac_objext \
5740 conftest$ac_exeext conftest.$ac_ext
5741LIBS=$ac_check_lib_save_LIBS
5742fi
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_gcm" >&5
5744$as_echo "$ac_cv_lib_crypto_EVP_aes_128_gcm" >&6; }
5745if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes; then :
5746 cat >>confdefs.h <<_ACEOF
5747#define HAVE_LIBCRYPTO 1
5748_ACEOF
5749
5750 LIBS="-lcrypto $LIBS"
5751
5752else
5753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5755as_fn_error $? "can't find openssl >1.0.1 crypto lib
5756See \`config.log' for more details" "$LINENO" 5; }
5757fi
5758
jfigusc7e66e32013-05-08 11:32:55 -04005759
5760$as_echo "#define OPENSSL 1" >>confdefs.h
5761
jfigus7882dd92013-08-02 16:08:23 -04005762 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
jfigusc7e66e32013-05-08 11:32:55 -04005763 HMAC_OBJS=crypto/hash/hmac_ossl.o
5764 USE_OPENSSL=1
5765
5766else
jfigusa3127b82014-11-19 14:46:52 -05005767 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o"
jfigus7882dd92013-08-02 16:08:23 -04005768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random device to use" >&5
5769$as_echo_n "checking which random device to use... " >&6; }
jfigusa6cf2082014-11-21 10:04:03 -05005770 if test -n "$DEV_URANDOM"; then
jfigusc7e66e32013-05-08 11:32:55 -04005771
5772cat >>confdefs.h <<_ACEOF
5773#define DEV_URANDOM "$DEV_URANDOM"
5774_ACEOF
5775
jfigusa6cf2082014-11-21 10:04:03 -05005776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_URANDOM" >&5
jfigusc7e66e32013-05-08 11:32:55 -04005777$as_echo "$DEV_URANDOM" >&6; }
jfigusa6cf2082014-11-21 10:04:03 -05005778 else
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: standard rand() function..." >&5
jfigusc7e66e32013-05-08 11:32:55 -04005780$as_echo "standard rand() function..." >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04005781 fi
jfigusc7e66e32013-05-08 11:32:55 -04005782 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
5783fi
5784
5785
5786
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
5788$as_echo_n "checking for pcap_create in -lpcap... " >&6; }
5789if ${ac_cv_lib_pcap_pcap_create+:} false; then :
5790 $as_echo_n "(cached) " >&6
5791else
5792 ac_check_lib_save_LIBS=$LIBS
5793LIBS="-lpcap $LIBS"
5794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795/* end confdefs.h. */
5796
5797/* Override any GCC internal prototype to avoid an error.
5798 Use char because int might match the return type of a GCC
5799 builtin and then its argument prototype would still apply. */
5800#ifdef __cplusplus
5801extern "C"
5802#endif
5803char pcap_create ();
5804int
5805main ()
5806{
5807return pcap_create ();
5808 ;
5809 return 0;
5810}
5811_ACEOF
5812if ac_fn_c_try_link "$LINENO"; then :
5813 ac_cv_lib_pcap_pcap_create=yes
5814else
5815 ac_cv_lib_pcap_pcap_create=no
5816fi
5817rm -f core conftest.err conftest.$ac_objext \
5818 conftest$ac_exeext conftest.$ac_ext
5819LIBS=$ac_check_lib_save_LIBS
5820fi
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
5822$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
5823if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
Bernardo Torresb3c51422014-10-14 12:40:09 -03005824 PCAP=1
5825 LIBS="-lpcap $LIBS"
5826 HAVE_PCAP=1
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005827
Bernardo Torresb3c51422014-10-14 12:40:09 -03005828$as_echo "#define HAVE_PCAP 1" >>confdefs.h
5829
5830
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005831
5832fi
5833
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005834
jfigusc7e66e32013-05-08 11:32:55 -04005835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5
5836$as_echo_n "checking whether to use stdout for error reporting... " >&6; }
5837# Check whether --enable-stdout was given.
5838if test "${enable_stdout+set}" = set; then :
5839 enableval=$enable_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00005840else
jfigus97a80f42014-11-04 14:15:40 -05005841 enable_stdout=no
jfigusc7e66e32013-05-08 11:32:55 -04005842fi
5843
David McGrewb67061f2005-09-28 14:23:06 +00005844if test "$enable_stdout" = "yes"; then
5845
jfigusc7e66e32013-05-08 11:32:55 -04005846$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005847
5848fi
jfigusc7e66e32013-05-08 11:32:55 -04005849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5
5850$as_echo "$enable_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005851
jfigusc7e66e32013-05-08 11:32:55 -04005852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5
5853$as_echo_n "checking whether to use /dev/console for error reporting... " >&6; }
5854# Check whether --enable-console was given.
5855if test "${enable_console+set}" = set; then :
5856 enableval=$enable_console;
David McGrewb67061f2005-09-28 14:23:06 +00005857else
5858 enable_console=no
jfigusc7e66e32013-05-08 11:32:55 -04005859fi
5860
David McGrewb67061f2005-09-28 14:23:06 +00005861if test "$enable_console" = "yes"; then
5862
jfigusc7e66e32013-05-08 11:32:55 -04005863$as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h
David McGrewb67061f2005-09-28 14:23:06 +00005864
5865
jfigusc7e66e32013-05-08 11:32:55 -04005866$as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005867
5868fi
jfigusc7e66e32013-05-08 11:32:55 -04005869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5
5870$as_echo "$enable_console" >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00005871
jfigusc7e66e32013-05-08 11:32:55 -04005872ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00005873
5874
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005875# Extract the first word of "pkg-config", so it can be a program name with args.
5876set dummy pkg-config; ac_word=$2
5877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5878$as_echo_n "checking for $ac_word... " >&6; }
5879if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5880 $as_echo_n "(cached) " >&6
5881else
5882 if test -n "$PKG_CONFIG"; then
5883 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5884else
5885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886for as_dir in $PATH
5887do
5888 IFS=$as_save_IFS
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892 ac_cv_prog_PKG_CONFIG="yes"
5893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 break 2
5895 fi
5896done
5897 done
5898IFS=$as_save_IFS
5899
5900fi
5901fi
5902PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5903if test -n "$PKG_CONFIG"; then
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5905$as_echo "$PKG_CONFIG" >&6; }
5906else
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5908$as_echo "no" >&6; }
5909fi
5910
5911
5912if test "x$PKG_CONFIG" != "x"; then
5913 HAVE_PKG_CONFIG=1
jfigusd196e022014-11-20 16:43:44 -05005914 ac_config_files="$ac_config_files libsrtp2.pc"
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005915
5916else
5917 HAVE_PKG_CONFIG=0
5918fi
5919
jfigusc7e66e32013-05-08 11:32:55 -04005920ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile"
5921
Cullen Jennings235513a2005-09-21 22:51:36 +00005922cat >confcache <<\_ACEOF
5923# This file is a shell script that caches the results of configure
5924# tests run on this system so they can be shared between configure
5925# scripts and configure runs, see configure's option --config-cache.
5926# It is not useful on other systems. If it contains results you don't
5927# want to keep, you may remove or edit it.
5928#
5929# config.status only pays attention to the cache file if you give it
5930# the --recheck option to rerun configure.
5931#
5932# `ac_cv_env_foo' variables (set or unset) will be overridden when
5933# loading this file, other *unset* `ac_cv_foo' will be assigned the
5934# following values.
5935
5936_ACEOF
5937
5938# The following way of writing the cache mishandles newlines in values,
5939# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04005940# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00005941# Ultrix sh set writes to stderr and can't be redirected directly,
5942# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04005943(
5944 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5945 eval ac_val=\$$ac_var
5946 case $ac_val in #(
5947 *${as_nl}*)
5948 case $ac_var in #(
5949 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5950$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5951 esac
5952 case $ac_var in #(
5953 _ | IFS | as_nl) ;; #(
5954 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5955 *) { eval $ac_var=; unset $ac_var;} ;;
5956 esac ;;
5957 esac
5958 done
5959
Cullen Jennings235513a2005-09-21 22:51:36 +00005960 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04005961 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5962 *${as_nl}ac_space=\ *)
5963 # `set' does not quote correctly, so add quotes: double-quote
5964 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00005965 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00005966 "s/'/'\\\\''/g;
5967 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04005968 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00005969 *)
5970 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04005971 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00005972 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005973 esac |
5974 sort
5975) |
Cullen Jennings235513a2005-09-21 22:51:36 +00005976 sed '
jfigusc7e66e32013-05-08 11:32:55 -04005977 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00005978 t clear
jfigusc7e66e32013-05-08 11:32:55 -04005979 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00005980 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5981 t end
jfigusc7e66e32013-05-08 11:32:55 -04005982 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5983 :end' >>confcache
5984if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5985 if test -w "$cache_file"; then
5986 if test "x$cache_file" != "x/dev/null"; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5988$as_echo "$as_me: updating cache $cache_file" >&6;}
5989 if test ! -f "$cache_file" || test -h "$cache_file"; then
5990 cat confcache >"$cache_file"
5991 else
5992 case $cache_file in #(
5993 */* | ?:*)
5994 mv -f confcache "$cache_file"$$ &&
5995 mv -f "$cache_file"$$ "$cache_file" ;; #(
5996 *)
5997 mv -f confcache "$cache_file" ;;
5998 esac
5999 fi
6000 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006001 else
jfigusc7e66e32013-05-08 11:32:55 -04006002 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6003$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006004 fi
6005fi
6006rm -f confcache
6007
6008test "x$prefix" = xNONE && prefix=$ac_default_prefix
6009# Let make expand exec_prefix.
6010test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6011
Cullen Jennings235513a2005-09-21 22:51:36 +00006012DEFS=-DHAVE_CONFIG_H
6013
6014ac_libobjs=
6015ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04006016U=
Cullen Jennings235513a2005-09-21 22:51:36 +00006017for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6018 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04006019 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6020 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6021 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6022 # will be set to the directory where LIBOBJS objects are built.
6023 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6024 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00006025done
6026LIBOBJS=$ac_libobjs
6027
6028LTLIBOBJS=$ac_ltlibobjs
6029
6030
6031
jfigusc7e66e32013-05-08 11:32:55 -04006032
6033: "${CONFIG_STATUS=./config.status}"
6034ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00006035ac_clean_files_save=$ac_clean_files
6036ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04006037{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6038$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6039as_write_fail=0
6040cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006041#! $SHELL
6042# Generated by $as_me.
6043# Run this file to recreate the current configuration.
6044# Compiler output produced by configure, useful for debugging
6045# configure, is in config.log if it exists.
6046
6047debug=false
6048ac_cs_recheck=false
6049ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04006050
Cullen Jennings235513a2005-09-21 22:51:36 +00006051SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04006052export SHELL
6053_ASEOF
6054cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6055## -------------------- ##
6056## M4sh Initialization. ##
6057## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00006058
jfigusc7e66e32013-05-08 11:32:55 -04006059# Be more Bourne compatible
6060DUALCASE=1; export DUALCASE # for MKS sh
6061if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00006062 emulate sh
6063 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04006064 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00006065 # is contrary to our usage. Disable this feature.
6066 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04006067 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00006068else
jfigusc7e66e32013-05-08 11:32:55 -04006069 case `(set -o) 2>/dev/null` in #(
6070 *posix*) :
6071 set -o posix ;; #(
6072 *) :
6073 ;;
6074esac
Cullen Jennings235513a2005-09-21 22:51:36 +00006075fi
6076
6077
jfigusc7e66e32013-05-08 11:32:55 -04006078as_nl='
6079'
6080export as_nl
6081# Printing a long string crashes Solaris 7 /usr/bin/printf.
6082as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6083as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6084as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6085# Prefer a ksh shell builtin over an external printf program on Solaris,
6086# but without wasting forks for bash or zsh.
6087if test -z "$BASH_VERSION$ZSH_VERSION" \
6088 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6089 as_echo='print -r --'
6090 as_echo_n='print -rn --'
6091elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6092 as_echo='printf %s\n'
6093 as_echo_n='printf %s'
6094else
6095 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6096 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6097 as_echo_n='/usr/ucb/echo -n'
6098 else
6099 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6100 as_echo_n_body='eval
6101 arg=$1;
6102 case $arg in #(
6103 *"$as_nl"*)
6104 expr "X$arg" : "X\\(.*\\)$as_nl";
6105 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6106 esac;
6107 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6108 '
6109 export as_echo_n_body
6110 as_echo_n='sh -c $as_echo_n_body as_echo'
6111 fi
6112 export as_echo_body
6113 as_echo='sh -c $as_echo_body as_echo'
6114fi
6115
6116# The user is always right.
6117if test "${PATH_SEPARATOR+set}" != set; then
6118 PATH_SEPARATOR=:
6119 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6120 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6121 PATH_SEPARATOR=';'
6122 }
6123fi
6124
6125
6126# IFS
6127# We need space, tab and new line, in precisely that order. Quoting is
6128# there to prevent editors from complaining about space-tab.
6129# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6130# splitting by setting IFS to empty value.)
6131IFS=" "" $as_nl"
6132
6133# Find who we are. Look in the path if we contain no directory separator.
6134as_myself=
6135case $0 in #((
6136 *[\\/]* ) as_myself=$0 ;;
6137 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH
6139do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6143 done
6144IFS=$as_save_IFS
6145
6146 ;;
6147esac
6148# We did not find ourselves, most probably we were run as `sh COMMAND'
6149# in which case we are not to be found in the path.
6150if test "x$as_myself" = x; then
6151 as_myself=$0
6152fi
6153if test ! -f "$as_myself"; then
6154 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6155 exit 1
6156fi
6157
6158# Unset variables that we do not need and which cause bugs (e.g. in
6159# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6160# suppresses any "Segmentation fault" message there. '((' could
6161# trigger a bug in pdksh 5.2.14.
6162for as_var in BASH_ENV ENV MAIL MAILPATH
6163do eval test x\${$as_var+set} = xset \
6164 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6165done
Cullen Jennings235513a2005-09-21 22:51:36 +00006166PS1='$ '
6167PS2='> '
6168PS4='+ '
6169
6170# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04006171LC_ALL=C
6172export LC_ALL
6173LANGUAGE=C
6174export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04006175
jfigusc7e66e32013-05-08 11:32:55 -04006176# CDPATH.
6177(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6178
6179
6180# as_fn_error STATUS ERROR [LINENO LOG_FD]
6181# ----------------------------------------
6182# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6183# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6184# script with STATUS, using 1 if that was 0.
6185as_fn_error ()
6186{
6187 as_status=$1; test $as_status -eq 0 && as_status=1
6188 if test "$4"; then
6189 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6190 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6191 fi
6192 $as_echo "$as_me: error: $2" >&2
6193 as_fn_exit $as_status
6194} # as_fn_error
6195
6196
6197# as_fn_set_status STATUS
6198# -----------------------
6199# Set $? to STATUS, without forking.
6200as_fn_set_status ()
6201{
6202 return $1
6203} # as_fn_set_status
6204
6205# as_fn_exit STATUS
6206# -----------------
6207# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6208as_fn_exit ()
6209{
6210 set +e
6211 as_fn_set_status $1
6212 exit $1
6213} # as_fn_exit
6214
6215# as_fn_unset VAR
6216# ---------------
6217# Portably unset VAR.
6218as_fn_unset ()
6219{
6220 { eval $1=; unset $1;}
6221}
6222as_unset=as_fn_unset
6223# as_fn_append VAR VALUE
6224# ----------------------
6225# Append the text in VALUE to the end of the definition contained in VAR. Take
6226# advantage of any shell optimizations that allow amortized linear growth over
6227# repeated appends, instead of the typical quadratic growth present in naive
6228# implementations.
6229if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6230 eval 'as_fn_append ()
6231 {
6232 eval $1+=\$2
6233 }'
6234else
6235 as_fn_append ()
6236 {
6237 eval $1=\$$1\$2
6238 }
6239fi # as_fn_append
6240
6241# as_fn_arith ARG...
6242# ------------------
6243# Perform arithmetic evaluation on the ARGs, and store the result in the
6244# global $as_val. Take advantage of shells that can avoid forks. The arguments
6245# must be portable across $(()) and expr.
6246if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6247 eval 'as_fn_arith ()
6248 {
6249 as_val=$(( $* ))
6250 }'
6251else
6252 as_fn_arith ()
6253 {
6254 as_val=`expr "$@" || test $? -eq 1`
6255 }
6256fi # as_fn_arith
6257
6258
6259if expr a : '\(a\)' >/dev/null 2>&1 &&
6260 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006261 as_expr=expr
6262else
6263 as_expr=false
6264fi
6265
jfigusc7e66e32013-05-08 11:32:55 -04006266if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006267 as_basename=basename
6268else
6269 as_basename=false
6270fi
6271
jfigusc7e66e32013-05-08 11:32:55 -04006272if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6273 as_dirname=dirname
6274else
6275 as_dirname=false
6276fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006277
jfigusc7e66e32013-05-08 11:32:55 -04006278as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006279$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6280 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006281 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6282$as_echo X/"$0" |
6283 sed '/^.*\/\([^/][^/]*\)\/*$/{
6284 s//\1/
6285 q
6286 }
6287 /^X\/\(\/\/\)$/{
6288 s//\1/
6289 q
6290 }
6291 /^X\/\(\/\).*/{
6292 s//\1/
6293 q
6294 }
6295 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006296
Cullen Jennings235513a2005-09-21 22:51:36 +00006297# Avoid depending upon Character Ranges.
6298as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6299as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6300as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6301as_cr_digits='0123456789'
6302as_cr_alnum=$as_cr_Letters$as_cr_digits
6303
jfigusc7e66e32013-05-08 11:32:55 -04006304ECHO_C= ECHO_N= ECHO_T=
6305case `echo -n x` in #(((((
6306-n*)
6307 case `echo 'xy\c'` in
6308 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6309 xy) ECHO_C='\c';;
6310 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6311 ECHO_T=' ';;
6312 esac;;
6313*)
6314 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00006315esac
6316
Cullen Jennings235513a2005-09-21 22:51:36 +00006317rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04006318if test -d conf$$.dir; then
6319 rm -f conf$$.dir/conf$$.file
6320else
6321 rm -f conf$$.dir
6322 mkdir conf$$.dir 2>/dev/null
6323fi
6324if (echo >conf$$.file) 2>/dev/null; then
6325 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006326 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04006327 # ... but there are two gotchas:
6328 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6329 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6330 # In both cases, we have to default to `cp -pR'.
6331 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6332 as_ln_s='cp -pR'
6333 elif ln conf$$.file conf$$ 2>/dev/null; then
6334 as_ln_s=ln
6335 else
6336 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006337 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006338else
jfigusc7e66e32013-05-08 11:32:55 -04006339 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006340fi
jfigusc7e66e32013-05-08 11:32:55 -04006341rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6342rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00006343
jfigusc7e66e32013-05-08 11:32:55 -04006344
6345# as_fn_mkdir_p
6346# -------------
6347# Create "$as_dir" as a directory, including parents if necessary.
6348as_fn_mkdir_p ()
6349{
6350
6351 case $as_dir in #(
6352 -*) as_dir=./$as_dir;;
6353 esac
6354 test -d "$as_dir" || eval $as_mkdir_p || {
6355 as_dirs=
6356 while :; do
6357 case $as_dir in #(
6358 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6359 *) as_qdir=$as_dir;;
6360 esac
6361 as_dirs="'$as_qdir' $as_dirs"
6362 as_dir=`$as_dirname -- "$as_dir" ||
6363$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6364 X"$as_dir" : 'X\(//\)[^/]' \| \
6365 X"$as_dir" : 'X\(//\)$' \| \
6366 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6367$as_echo X"$as_dir" |
6368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6369 s//\1/
6370 q
6371 }
6372 /^X\(\/\/\)[^/].*/{
6373 s//\1/
6374 q
6375 }
6376 /^X\(\/\/\)$/{
6377 s//\1/
6378 q
6379 }
6380 /^X\(\/\).*/{
6381 s//\1/
6382 q
6383 }
6384 s/.*/./; q'`
6385 test -d "$as_dir" && break
6386 done
6387 test -z "$as_dirs" || eval "mkdir $as_dirs"
6388 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6389
6390
6391} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006392if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04006393 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00006394else
David McGrewfec49dd2005-09-23 19:34:11 +00006395 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00006396 as_mkdir_p=false
6397fi
6398
jfigusc7e66e32013-05-08 11:32:55 -04006399
6400# as_fn_executable_p FILE
6401# -----------------------
6402# Test if FILE is an executable regular file.
6403as_fn_executable_p ()
6404{
6405 test -f "$1" && test -x "$1"
6406} # as_fn_executable_p
6407as_test_x='test -x'
6408as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006409
6410# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00006411as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006412
6413# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00006414as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006415
6416
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006417exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04006418## ----------------------------------- ##
6419## Main body of $CONFIG_STATUS script. ##
6420## ----------------------------------- ##
6421_ASEOF
6422test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006423
jfigusc7e66e32013-05-08 11:32:55 -04006424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6425# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00006426# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04006427# values after options handling.
6428ac_log="
jfigusd196e022014-11-20 16:43:44 -05006429This file was extended by libsrtp2 $as_me 2.0.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04006430generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00006431
6432 CONFIG_FILES = $CONFIG_FILES
6433 CONFIG_HEADERS = $CONFIG_HEADERS
6434 CONFIG_LINKS = $CONFIG_LINKS
6435 CONFIG_COMMANDS = $CONFIG_COMMANDS
6436 $ $0 $@
6437
jfigusc7e66e32013-05-08 11:32:55 -04006438on `(hostname || uname -n) 2>/dev/null | sed 1q`
6439"
6440
Cullen Jennings235513a2005-09-21 22:51:36 +00006441_ACEOF
6442
jfigusc7e66e32013-05-08 11:32:55 -04006443case $ac_config_files in *"
6444"*) set x $ac_config_files; shift; ac_config_files=$*;;
6445esac
6446
6447case $ac_config_headers in *"
6448"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6449esac
6450
6451
6452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006453# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04006454config_files="$ac_config_files"
6455config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00006456
jfigusc7e66e32013-05-08 11:32:55 -04006457_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006458
jfigusc7e66e32013-05-08 11:32:55 -04006459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006460ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04006461\`$as_me' instantiates files and other configuration actions
6462from templates according to the current configuration. Unless the files
6463and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00006464
jfigusc7e66e32013-05-08 11:32:55 -04006465Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00006466
6467 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04006468 -V, --version print version number and configuration settings, then exit
6469 --config print configuration, then exit
6470 -q, --quiet, --silent
6471 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00006472 -d, --debug don't remove temporary files
6473 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04006474 --file=FILE[:TEMPLATE]
6475 instantiate the configuration file FILE
6476 --header=FILE[:TEMPLATE]
6477 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00006478
6479Configuration files:
6480$config_files
6481
6482Configuration headers:
6483$config_headers
6484
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02006485Report bugs to <https://github.com/cisco/libsrtp/issues>."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006486
jfigusc7e66e32013-05-08 11:32:55 -04006487_ACEOF
6488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6489ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00006490ac_cs_version="\\
jfigusd196e022014-11-20 16:43:44 -05006491libsrtp2 config.status 2.0.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04006492configured by $0, generated by GNU Autoconf 2.69,
6493 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00006494
jfigusc7e66e32013-05-08 11:32:55 -04006495Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00006496This config.status script is free software; the Free Software Foundation
6497gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04006498
6499ac_pwd='$ac_pwd'
6500srcdir='$srcdir'
6501INSTALL='$INSTALL'
6502test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00006503_ACEOF
6504
jfigusc7e66e32013-05-08 11:32:55 -04006505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6506# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00006507ac_need_defaults=:
6508while test $# != 0
6509do
6510 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04006511 --*=?*)
6512 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6513 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006514 ac_shift=:
6515 ;;
jfigusc7e66e32013-05-08 11:32:55 -04006516 --*=)
6517 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6518 ac_optarg=
6519 ac_shift=:
6520 ;;
6521 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00006522 ac_option=$1
6523 ac_optarg=$2
6524 ac_shift=shift
6525 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006526 esac
6527
6528 case $ac_option in
6529 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00006530 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6531 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04006532 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6533 $as_echo "$ac_cs_version"; exit ;;
6534 --config | --confi | --conf | --con | --co | --c )
6535 $as_echo "$ac_cs_config"; exit ;;
6536 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00006537 debug=: ;;
6538 --file | --fil | --fi | --f )
6539 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04006540 case $ac_optarg in
6541 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6542 '') as_fn_error $? "missing file argument" ;;
6543 esac
6544 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006545 ac_need_defaults=false;;
6546 --header | --heade | --head | --hea )
6547 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04006548 case $ac_optarg in
6549 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6550 esac
6551 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006552 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04006553 --he | --h)
6554 # Conflict between --help and --header
6555 as_fn_error $? "ambiguous option: \`$1'
6556Try \`$0 --help' for more information.";;
6557 --help | --hel | -h )
6558 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006559 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6560 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6561 ac_cs_silent=: ;;
6562
6563 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04006564 -*) as_fn_error $? "unrecognized option: \`$1'
6565Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006566
jfigusc7e66e32013-05-08 11:32:55 -04006567 *) as_fn_append ac_config_targets " $1"
6568 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006569
6570 esac
6571 shift
6572done
6573
6574ac_configure_extra_args=
6575
6576if $ac_cs_silent; then
6577 exec 6>/dev/null
6578 ac_configure_extra_args="$ac_configure_extra_args --silent"
6579fi
6580
6581_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006583if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04006584 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6585 shift
6586 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6587 CONFIG_SHELL='$SHELL'
6588 export CONFIG_SHELL
6589 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00006590fi
6591
6592_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006593cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6594exec 5>>config.log
6595{
6596 echo
6597 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6598## Running $as_me. ##
6599_ASBOX
6600 $as_echo "$ac_log"
6601} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00006602
jfigusc7e66e32013-05-08 11:32:55 -04006603_ACEOF
6604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6605_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006606
jfigusc7e66e32013-05-08 11:32:55 -04006607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006608
jfigusc7e66e32013-05-08 11:32:55 -04006609# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00006610for ac_config_target in $ac_config_targets
6611do
jfigusc7e66e32013-05-08 11:32:55 -04006612 case $ac_config_target in
6613 "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
jfigusd196e022014-11-20 16:43:44 -05006614 "libsrtp2.pc") CONFIG_FILES="$CONFIG_FILES libsrtp2.pc" ;;
jfigusc7e66e32013-05-08 11:32:55 -04006615 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6616 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
6617 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6618
6619 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006620 esac
6621done
6622
jfigusc7e66e32013-05-08 11:32:55 -04006623
Cullen Jennings235513a2005-09-21 22:51:36 +00006624# If the user did not use the arguments to specify the items to instantiate,
6625# then the envvar interface is used. Set only those that are not.
6626# We use the long form for the default assignment because of an extremely
6627# bizarre bug on SunOS 4.1.3.
6628if $ac_need_defaults; then
6629 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6630 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6631fi
6632
6633# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04006634# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00006635# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04006636# Hook for its removal unless debugging.
6637# Note that there is a small window in which the directory will not be cleaned:
6638# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00006639$debug ||
6640{
jfigusc7e66e32013-05-08 11:32:55 -04006641 tmp= ac_tmp=
6642 trap 'exit_status=$?
6643 : "${ac_tmp:=$tmp}"
6644 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6645' 0
6646 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00006647}
Cullen Jennings235513a2005-09-21 22:51:36 +00006648# Create a (secure) tmp directory for tmp files.
6649
6650{
jfigusc7e66e32013-05-08 11:32:55 -04006651 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6652 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00006653} ||
6654{
jfigusc7e66e32013-05-08 11:32:55 -04006655 tmp=./conf$$-$RANDOM
6656 (umask 077 && mkdir "$tmp")
6657} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6658ac_tmp=$tmp
6659
6660# Set up the scripts for CONFIG_FILES section.
6661# No need to generate them if there are no CONFIG_FILES.
6662# This happens for instance with `./config.status config.h'.
6663if test -n "$CONFIG_FILES"; then
6664
6665
6666ac_cr=`echo X | tr X '\015'`
6667# On cygwin, bash can eat \r inside `` if the user requested igncr.
6668# But we know of no other shell where ac_cr would be empty at this
6669# point, so we can use a bashism as a fallback.
6670if test "x$ac_cr" = x; then
6671 eval ac_cr=\$\'\\r\'
6672fi
6673ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6674if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6675 ac_cs_awk_cr='\\r'
6676else
6677 ac_cs_awk_cr=$ac_cr
6678fi
6679
6680echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6681_ACEOF
6682
6683
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006684{
jfigusc7e66e32013-05-08 11:32:55 -04006685 echo "cat >conf$$subs.awk <<_ACEOF" &&
6686 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6687 echo "_ACEOF"
6688} >conf$$subs.sh ||
6689 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6690ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6691ac_delim='%!_!# '
6692for ac_last_try in false false false false false :; do
6693 . ./conf$$subs.sh ||
6694 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6695
6696 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6697 if test $ac_delim_n = $ac_delim_num; then
6698 break
6699 elif $ac_last_try; then
6700 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6701 else
6702 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6703 fi
6704done
6705rm -f conf$$subs.sh
6706
6707cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6708cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6709_ACEOF
6710sed -n '
6711h
6712s/^/S["/; s/!.*/"]=/
6713p
6714g
6715s/^[^!]*!//
6716:repl
6717t repl
6718s/'"$ac_delim"'$//
6719t delim
6720:nl
6721h
6722s/\(.\{148\}\)..*/\1/
6723t more1
6724s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6725p
6726n
6727b repl
6728:more1
6729s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6730p
6731g
6732s/.\{148\}//
6733t nl
6734:delim
6735h
6736s/\(.\{148\}\)..*/\1/
6737t more2
6738s/["\\]/\\&/g; s/^/"/; s/$/"/
6739p
6740b
6741:more2
6742s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6743p
6744g
6745s/.\{148\}//
6746t delim
6747' <conf$$subs.awk | sed '
6748/^[^""]/{
6749 N
6750 s/\n//
6751}
6752' >>$CONFIG_STATUS || ac_write_fail=1
6753rm -f conf$$subs.awk
6754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6755_ACAWK
6756cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6757 for (key in S) S_is_set[key] = 1
6758 FS = ""
6759
6760}
6761{
6762 line = $ 0
6763 nfields = split(line, field, "@")
6764 substed = 0
6765 len = length(field[1])
6766 for (i = 2; i < nfields; i++) {
6767 key = field[i]
6768 keylen = length(key)
6769 if (S_is_set[key]) {
6770 value = S[key]
6771 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6772 len += length(value) + length(field[++i])
6773 substed = 1
6774 } else
6775 len += 1 + keylen
6776 }
6777
6778 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006779}
jfigusa14b5a02013-03-29 12:24:12 -04006780
jfigusc7e66e32013-05-08 11:32:55 -04006781_ACAWK
6782_ACEOF
6783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6784if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6785 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6786else
6787 cat
6788fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6789 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04006790_ACEOF
6791
jfigusc7e66e32013-05-08 11:32:55 -04006792# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6793# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6794# trailing colons and then remove the whole line if VPATH becomes empty
6795# (actually we leave an empty line to preserve line numbers).
6796if test "x$srcdir" = x.; then
6797 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6798h
6799s///
6800s/^/:/
6801s/[ ]*$/:/
6802s/:\$(srcdir):/:/g
6803s/:\${srcdir}:/:/g
6804s/:@srcdir@:/:/g
6805s/^:*//
6806s/:*$//
6807x
6808s/\(=[ ]*\).*/\1/
6809G
6810s/\n//
6811s/^[^=]*=[ ]*$//
6812}'
6813fi
jfigusa14b5a02013-03-29 12:24:12 -04006814
jfigusc7e66e32013-05-08 11:32:55 -04006815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006816fi # test -n "$CONFIG_FILES"
6817
jfigusc7e66e32013-05-08 11:32:55 -04006818# Set up the scripts for CONFIG_HEADERS section.
6819# No need to generate them if there are no CONFIG_HEADERS.
6820# This happens for instance with `./config.status Makefile'.
6821if test -n "$CONFIG_HEADERS"; then
6822cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6823BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00006824_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006825
6826# Transform confdefs.h into an awk script `defines.awk', embedded as
6827# here-document in config.status, that substitutes the proper values into
6828# config.h.in to produce config.h.
6829
6830# Create a delimiter string that does not exist in confdefs.h, to ease
6831# handling of long lines.
6832ac_delim='%!_!# '
6833for ac_last_try in false false :; do
6834 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6835 if test -z "$ac_tt"; then
6836 break
6837 elif $ac_last_try; then
6838 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6839 else
6840 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6841 fi
6842done
6843
6844# For the awk script, D is an array of macro values keyed by name,
6845# likewise P contains macro parameters if any. Preserve backslash
6846# newline sequences.
6847
6848ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6849sed -n '
6850s/.\{148\}/&'"$ac_delim"'/g
6851t rset
6852:rset
6853s/^[ ]*#[ ]*define[ ][ ]*/ /
6854t def
6855d
6856:def
6857s/\\$//
6858t bsnl
6859s/["\\]/\\&/g
6860s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6861D["\1"]=" \3"/p
6862s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6863d
6864:bsnl
6865s/["\\]/\\&/g
6866s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6867D["\1"]=" \3\\\\\\n"\\/p
6868t cont
6869s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6870t cont
6871d
6872:cont
6873n
6874s/.\{148\}/&'"$ac_delim"'/g
6875t clear
6876:clear
6877s/\\$//
6878t bsnlc
6879s/["\\]/\\&/g; s/^/"/; s/$/"/p
6880d
6881:bsnlc
6882s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6883b cont
6884' <confdefs.h | sed '
6885s/'"$ac_delim"'/"\\\
6886"/g' >>$CONFIG_STATUS || ac_write_fail=1
6887
6888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6889 for (key in D) D_is_set[key] = 1
6890 FS = ""
6891}
6892/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6893 line = \$ 0
6894 split(line, arg, " ")
6895 if (arg[1] == "#") {
6896 defundef = arg[2]
6897 mac1 = arg[3]
6898 } else {
6899 defundef = substr(arg[1], 2)
6900 mac1 = arg[2]
6901 }
6902 split(mac1, mac2, "(") #)
6903 macro = mac2[1]
6904 prefix = substr(line, 1, index(line, defundef) - 1)
6905 if (D_is_set[macro]) {
6906 # Preserve the white space surrounding the "#".
6907 print prefix "define", macro P[macro] D[macro]
6908 next
6909 } else {
6910 # Replace #undef with comments. This is necessary, for example,
6911 # in the case of _POSIX_SOURCE, which is predefined and required
6912 # on some systems where configure will not decide to define it.
6913 if (defundef == "undef") {
6914 print "/*", prefix defundef, macro, "*/"
6915 next
6916 }
6917 }
6918}
6919{ print }
6920_ACAWK
6921_ACEOF
6922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6923 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6924fi # test -n "$CONFIG_HEADERS"
6925
6926
6927eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6928shift
6929for ac_tag
6930do
6931 case $ac_tag in
6932 :[FHLC]) ac_mode=$ac_tag; continue;;
6933 esac
6934 case $ac_mode$ac_tag in
6935 :[FHL]*:*);;
6936 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6937 :[FH]-) ac_tag=-:-;;
6938 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6939 esac
6940 ac_save_IFS=$IFS
6941 IFS=:
6942 set x $ac_tag
6943 IFS=$ac_save_IFS
6944 shift
6945 ac_file=$1
6946 shift
6947
6948 case $ac_mode in
6949 :L) ac_source=$1;;
6950 :[FH])
6951 ac_file_inputs=
6952 for ac_f
6953 do
6954 case $ac_f in
6955 -) ac_f="$ac_tmp/stdin";;
6956 *) # Look for the file first in the build tree, then in the source tree
6957 # (if the path is not absolute). The absolute path cannot be DOS-style,
6958 # because $ac_f cannot contain `:'.
6959 test -f "$ac_f" ||
6960 case $ac_f in
6961 [\\/$]*) false;;
6962 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6963 esac ||
6964 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6965 esac
6966 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6967 as_fn_append ac_file_inputs " '$ac_f'"
6968 done
6969
6970 # Let's still pretend it is `configure' which instantiates (i.e., don't
6971 # use $as_me), people would be surprised to read:
6972 # /* config.h. Generated by config.status. */
6973 configure_input='Generated from '`
6974 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6975 `' by configure.'
6976 if test x"$ac_file" != x-; then
6977 configure_input="$ac_file. $configure_input"
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6979$as_echo "$as_me: creating $ac_file" >&6;}
6980 fi
6981 # Neutralize special characters interpreted by sed in replacement strings.
6982 case $configure_input in #(
6983 *\&* | *\|* | *\\* )
6984 ac_sed_conf_input=`$as_echo "$configure_input" |
6985 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6986 *) ac_sed_conf_input=$configure_input;;
6987 esac
6988
6989 case $ac_tag in
6990 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6991 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6992 esac
6993 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006994 esac
6995
jfigusc7e66e32013-05-08 11:32:55 -04006996 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006997$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006998 X"$ac_file" : 'X\(//\)[^/]' \| \
6999 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04007000 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7001$as_echo X"$ac_file" |
7002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7003 s//\1/
7004 q
7005 }
7006 /^X\(\/\/\)[^/].*/{
7007 s//\1/
7008 q
7009 }
7010 /^X\(\/\/\)$/{
7011 s//\1/
7012 q
7013 }
7014 /^X\(\/\).*/{
7015 s//\1/
7016 q
7017 }
7018 s/.*/./; q'`
7019 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00007020 ac_builddir=.
7021
jfigusc7e66e32013-05-08 11:32:55 -04007022case "$ac_dir" in
7023.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7024*)
7025 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7026 # A ".." for each directory in $ac_dir_suffix.
7027 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7028 case $ac_top_builddir_sub in
7029 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7030 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7031 esac ;;
7032esac
7033ac_abs_top_builddir=$ac_pwd
7034ac_abs_builddir=$ac_pwd$ac_dir_suffix
7035# for backward compatibility:
7036ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00007037
7038case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04007039 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00007040 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04007041 ac_top_srcdir=$ac_top_builddir_sub
7042 ac_abs_top_srcdir=$ac_pwd ;;
7043 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00007044 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04007045 ac_top_srcdir=$srcdir
7046 ac_abs_top_srcdir=$srcdir ;;
7047 *) # Relative name.
7048 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7049 ac_top_srcdir=$ac_top_build_prefix$srcdir
7050 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007051esac
jfigusc7e66e32013-05-08 11:32:55 -04007052ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00007053
Cullen Jennings235513a2005-09-21 22:51:36 +00007054
jfigusc7e66e32013-05-08 11:32:55 -04007055 case $ac_mode in
7056 :F)
7057 #
7058 # CONFIG_FILE
7059 #
Cullen Jennings235513a2005-09-21 22:51:36 +00007060
David McGrewb67061f2005-09-28 14:23:06 +00007061 case $INSTALL in
7062 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04007063 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00007064 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007065_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007066
7067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7068# If the template does not know about datarootdir, expand it.
7069# FIXME: This hack should be removed a few years after 2.60.
7070ac_datarootdir_hack=; ac_datarootdir_seen=
7071ac_sed_dataroot='
7072/datarootdir/ {
7073 p
7074 q
7075}
7076/@datadir@/p
7077/@docdir@/p
7078/@infodir@/p
7079/@localedir@/p
7080/@mandir@/p'
7081case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7082*datarootdir*) ac_datarootdir_seen=yes;;
7083*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7085$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7086_ACEOF
7087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7088 ac_datarootdir_hack='
7089 s&@datadir@&$datadir&g
7090 s&@docdir@&$docdir&g
7091 s&@infodir@&$infodir&g
7092 s&@localedir@&$localedir&g
7093 s&@mandir@&$mandir&g
7094 s&\\\${datarootdir}&$datarootdir&g' ;;
7095esac
7096_ACEOF
7097
7098# Neutralize VPATH when `$srcdir' = `.'.
7099# Shell code in configure.ac might set extrasub.
7100# FIXME: do we really want to maintain this feature?
7101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7102ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00007103$extrasub
7104_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007106:t
7107/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04007108s|@configure_input@|$ac_sed_conf_input|;t t
7109s&@top_builddir@&$ac_top_builddir_sub&;t t
7110s&@top_build_prefix@&$ac_top_build_prefix&;t t
7111s&@srcdir@&$ac_srcdir&;t t
7112s&@abs_srcdir@&$ac_abs_srcdir&;t t
7113s&@top_srcdir@&$ac_top_srcdir&;t t
7114s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7115s&@builddir@&$ac_builddir&;t t
7116s&@abs_builddir@&$ac_abs_builddir&;t t
7117s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7118s&@INSTALL@&$ac_INSTALL&;t t
7119$ac_datarootdir_hack
7120"
7121eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7122 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00007123
jfigusc7e66e32013-05-08 11:32:55 -04007124test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7125 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7126 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7127 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7129which seems to be undefined. Please make sure it is defined" >&5
7130$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7131which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007132
jfigusc7e66e32013-05-08 11:32:55 -04007133 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007134 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04007135 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7136 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7137 esac \
7138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7139 ;;
7140 :H)
7141 #
7142 # CONFIG_HEADER
7143 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007144 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04007145 {
7146 $as_echo "/* $configure_input */" \
7147 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7148 } >"$ac_tmp/config.h" \
7149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7150 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7152$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007153 else
jfigusc7e66e32013-05-08 11:32:55 -04007154 rm -f "$ac_file"
7155 mv "$ac_tmp/config.h" "$ac_file" \
7156 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007157 fi
7158 else
jfigusc7e66e32013-05-08 11:32:55 -04007159 $as_echo "/* $configure_input */" \
7160 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7161 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007162 fi
jfigusc7e66e32013-05-08 11:32:55 -04007163 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007164
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007165
jfigusc7e66e32013-05-08 11:32:55 -04007166 esac
7167
7168done # for ac_tag
7169
7170
7171as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007172_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007173ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04007174
jfigusc7e66e32013-05-08 11:32:55 -04007175test $ac_write_fail = 0 ||
7176 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7177
Cullen Jennings235513a2005-09-21 22:51:36 +00007178
7179# configure is writing to config.log, and then calls config.status.
7180# config.status does its own redirection, appending to config.log.
7181# Unfortunately, on DOS this fails, as config.log is still kept open
7182# by configure, so config.status won't be able to write to it; its
7183# output is simply discarded. So we exec the FD to /dev/null,
7184# effectively closing config.log, so it can be properly (re)opened and
7185# appended to by config.status. When coming back to configure, we
7186# need to make the FD available again.
7187if test "$no_create" != yes; then
7188 ac_cs_success=:
7189 ac_config_status_args=
7190 test "$silent" = yes &&
7191 ac_config_status_args="$ac_config_status_args --quiet"
7192 exec 5>/dev/null
7193 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7194 exec 5>>config.log
7195 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7196 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04007197 $ac_cs_success || as_fn_exit 1
7198fi
7199if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7201$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007202fi
7203
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00007204
7205# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04007206as_dir=crypto/cipher; as_fn_mkdir_p
7207as_dir=crypto/hash; as_fn_mkdir_p
7208as_dir=crypto/kernel; as_fn_mkdir_p
7209as_dir=crypto/math; as_fn_mkdir_p
7210as_dir=crypto/replay; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007211as_dir=crypto/test; as_fn_mkdir_p
7212as_dir=doc; as_fn_mkdir_p
7213as_dir=srtp; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007214as_dir=test; as_fn_mkdir_p