blob: 29cc58119d9df2a8d240fa1607319cada6265c77 [file] [log] [blame]
Cullen Jennings235513a2005-09-21 22:51:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +02003# Generated by GNU Autoconf 2.69 for libsrtp2 2.3.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'
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +0200583PACKAGE_VERSION='2.3.0-pre'
584PACKAGE_STRING='libsrtp2 2.3.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
Martin Meszaros96d0b9a2017-11-01 12:31:37 +0100626PCAP_LIB
Bernardo Torresb3c51422014-10-14 12:40:09 -0300627HAVE_PCAP
jfigusc7e66e32013-05-08 11:32:55 -0400628HMAC_OBJS
jfigusc7e66e32013-05-08 11:32:55 -0400629AES_ICM_OBJS
630USE_OPENSSL
Idar Tollefsen600ad962017-01-26 11:24:51 +0100631crypto_LIBS
632crypto_CFLAGS
633PKG_CONFIG_LIBDIR
634PKG_CONFIG_PATH
635PKG_CONFIG
jfigusc7e66e32013-05-08 11:32:55 -0400636EXE
637host_os
638host_vendor
639host_cpu
640host
641build_os
642build_vendor
643build_cpu
644build
645EGREP
646GREP
Idar Tollefsen600ad962017-01-26 11:24:51 +0100647SED
jfigusc7e66e32013-05-08 11:32:55 -0400648INSTALL_DATA
649INSTALL_SCRIPT
650INSTALL_PROGRAM
jfigus1ce6a742015-04-06 08:54:01 -0400651RANLIB
Idar Tollefsencb771f72017-05-03 13:20:08 +0200652ac_ct_AR
653AR
654EXTRA_CFLAGS
655CPP
jfigusc7e66e32013-05-08 11:32:55 -0400656OBJEXT
657EXEEXT
658ac_ct_CC
659CPPFLAGS
660LDFLAGS
661CFLAGS
662CC
jfigusc7e66e32013-05-08 11:32:55 -0400663target_alias
664host_alias
665build_alias
666LIBS
667ECHO_T
668ECHO_N
669ECHO_C
670DEFS
671mandir
672localedir
673libdir
674psdir
675pdfdir
676dvidir
677htmldir
678infodir
679docdir
680oldincludedir
681includedir
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +0200682runstatedir
jfigusc7e66e32013-05-08 11:32:55 -0400683localstatedir
684sharedstatedir
685sysconfdir
686datadir
687datarootdir
688libexecdir
689sbindir
690bindir
691program_transform_name
692prefix
693exec_prefix
694PACKAGE_URL
695PACKAGE_BUGREPORT
696PACKAGE_STRING
697PACKAGE_VERSION
698PACKAGE_TARNAME
699PACKAGE_NAME
700PATH_SEPARATOR
701SHELL'
Cullen Jennings235513a2005-09-21 22:51:36 +0000702ac_subst_files=''
jfigusc7e66e32013-05-08 11:32:55 -0400703ac_user_opts='
704enable_option_checking
Pascal Bühler75918862017-02-19 18:33:50 +0100705enable_debug_logging
jfigusc7e66e32013-05-08 11:32:55 -0400706enable_openssl
jfigus038d2cf2015-05-11 14:10:11 -0400707with_openssl_dir
708enable_openssl_kdf
Pascal Bühler75918862017-02-19 18:33:50 +0100709enable_log_stdout
710with_log_file
jfigusc7e66e32013-05-08 11:32:55 -0400711'
712 ac_precious_vars='build_alias
713host_alias
714target_alias
715CC
716CFLAGS
717LDFLAGS
718LIBS
719CPPFLAGS
Idar Tollefsen600ad962017-01-26 11:24:51 +0100720CPP
Idar Tollefsencb771f72017-05-03 13:20:08 +0200721EXTRA_CFLAGS
Idar Tollefsen600ad962017-01-26 11:24:51 +0100722PKG_CONFIG
723PKG_CONFIG_PATH
724PKG_CONFIG_LIBDIR
725crypto_CFLAGS
726crypto_LIBS'
jfigusc7e66e32013-05-08 11:32:55 -0400727
Cullen Jennings235513a2005-09-21 22:51:36 +0000728
729# Initialize some variables set by options.
730ac_init_help=
731ac_init_version=false
jfigusc7e66e32013-05-08 11:32:55 -0400732ac_unrecognized_opts=
733ac_unrecognized_sep=
Cullen Jennings235513a2005-09-21 22:51:36 +0000734# The variables have the same names as the options, with
735# dashes changed to underlines.
736cache_file=/dev/null
737exec_prefix=NONE
738no_create=
739no_recursion=
740prefix=NONE
741program_prefix=NONE
742program_suffix=NONE
743program_transform_name=s,x,x,
744silent=
745site=
746srcdir=
747verbose=
748x_includes=NONE
749x_libraries=NONE
750
751# Installation directory options.
752# These are left unexpanded so users can "make install exec_prefix=/foo"
753# and all the variables that are supposed to be based on exec_prefix
754# by default will actually change.
755# Use braces instead of parens because sh, perl, etc. also accept them.
jfigusc7e66e32013-05-08 11:32:55 -0400756# (The list follows the same order as the GNU Coding Standards.)
Cullen Jennings235513a2005-09-21 22:51:36 +0000757bindir='${exec_prefix}/bin'
758sbindir='${exec_prefix}/sbin'
759libexecdir='${exec_prefix}/libexec'
jfigusc7e66e32013-05-08 11:32:55 -0400760datarootdir='${prefix}/share'
761datadir='${datarootdir}'
Cullen Jennings235513a2005-09-21 22:51:36 +0000762sysconfdir='${prefix}/etc'
763sharedstatedir='${prefix}/com'
764localstatedir='${prefix}/var'
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +0200765runstatedir='${localstatedir}/run'
Cullen Jennings235513a2005-09-21 22:51:36 +0000766includedir='${prefix}/include'
767oldincludedir='/usr/include'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200768docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
jfigusc7e66e32013-05-08 11:32:55 -0400769infodir='${datarootdir}/info'
770htmldir='${docdir}'
771dvidir='${docdir}'
772pdfdir='${docdir}'
773psdir='${docdir}'
774libdir='${exec_prefix}/lib'
775localedir='${datarootdir}/locale'
776mandir='${datarootdir}/man'
Cullen Jennings235513a2005-09-21 22:51:36 +0000777
778ac_prev=
jfigusc7e66e32013-05-08 11:32:55 -0400779ac_dashdash=
Cullen Jennings235513a2005-09-21 22:51:36 +0000780for ac_option
781do
782 # If the previous option needs an argument, assign it.
783 if test -n "$ac_prev"; then
jfigusc7e66e32013-05-08 11:32:55 -0400784 eval $ac_prev=\$ac_option
Cullen Jennings235513a2005-09-21 22:51:36 +0000785 ac_prev=
786 continue
787 fi
788
jfigusc7e66e32013-05-08 11:32:55 -0400789 case $ac_option in
790 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
791 *=) ac_optarg= ;;
792 *) ac_optarg=yes ;;
793 esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000794
795 # Accept the important Cygnus configure options, so we can diagnose typos.
796
jfigusc7e66e32013-05-08 11:32:55 -0400797 case $ac_dashdash$ac_option in
798 --)
799 ac_dashdash=yes ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000800
801 -bindir | --bindir | --bindi | --bind | --bin | --bi)
802 ac_prev=bindir ;;
803 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
804 bindir=$ac_optarg ;;
805
806 -build | --build | --buil | --bui | --bu)
807 ac_prev=build_alias ;;
808 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
809 build_alias=$ac_optarg ;;
810
811 -cache-file | --cache-file | --cache-fil | --cache-fi \
812 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
813 ac_prev=cache_file ;;
814 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
815 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
816 cache_file=$ac_optarg ;;
817
818 --config-cache | -C)
819 cache_file=config.cache ;;
820
jfigusc7e66e32013-05-08 11:32:55 -0400821 -datadir | --datadir | --datadi | --datad)
Cullen Jennings235513a2005-09-21 22:51:36 +0000822 ac_prev=datadir ;;
jfigusc7e66e32013-05-08 11:32:55 -0400823 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000824 datadir=$ac_optarg ;;
825
jfigusc7e66e32013-05-08 11:32:55 -0400826 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
827 | --dataroo | --dataro | --datar)
828 ac_prev=datarootdir ;;
829 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
830 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
831 datarootdir=$ac_optarg ;;
832
Cullen Jennings235513a2005-09-21 22:51:36 +0000833 -disable-* | --disable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400834 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000835 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400836 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
837 as_fn_error $? "invalid feature name: $ac_useropt"
838 ac_useropt_orig=$ac_useropt
839 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
840 case $ac_user_opts in
841 *"
842"enable_$ac_useropt"
843"*) ;;
844 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
845 ac_unrecognized_sep=', ';;
846 esac
847 eval enable_$ac_useropt=no ;;
848
849 -docdir | --docdir | --docdi | --doc | --do)
850 ac_prev=docdir ;;
851 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
852 docdir=$ac_optarg ;;
853
854 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
855 ac_prev=dvidir ;;
856 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
857 dvidir=$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000858
859 -enable-* | --enable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400860 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000861 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
863 as_fn_error $? "invalid feature name: $ac_useropt"
864 ac_useropt_orig=$ac_useropt
865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866 case $ac_user_opts in
867 *"
868"enable_$ac_useropt"
869"*) ;;
870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
871 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000872 esac
jfigusc7e66e32013-05-08 11:32:55 -0400873 eval enable_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000874
875 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
876 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
877 | --exec | --exe | --ex)
878 ac_prev=exec_prefix ;;
879 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
880 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
881 | --exec=* | --exe=* | --ex=*)
882 exec_prefix=$ac_optarg ;;
883
884 -gas | --gas | --ga | --g)
885 # Obsolete; use --with-gas.
886 with_gas=yes ;;
887
888 -help | --help | --hel | --he | -h)
889 ac_init_help=long ;;
890 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
891 ac_init_help=recursive ;;
892 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
893 ac_init_help=short ;;
894
895 -host | --host | --hos | --ho)
896 ac_prev=host_alias ;;
897 -host=* | --host=* | --hos=* | --ho=*)
898 host_alias=$ac_optarg ;;
899
jfigusc7e66e32013-05-08 11:32:55 -0400900 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
901 ac_prev=htmldir ;;
902 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
903 | --ht=*)
904 htmldir=$ac_optarg ;;
905
Cullen Jennings235513a2005-09-21 22:51:36 +0000906 -includedir | --includedir | --includedi | --included | --include \
907 | --includ | --inclu | --incl | --inc)
908 ac_prev=includedir ;;
909 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
910 | --includ=* | --inclu=* | --incl=* | --inc=*)
911 includedir=$ac_optarg ;;
912
913 -infodir | --infodir | --infodi | --infod | --info | --inf)
914 ac_prev=infodir ;;
915 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
916 infodir=$ac_optarg ;;
917
918 -libdir | --libdir | --libdi | --libd)
919 ac_prev=libdir ;;
920 -libdir=* | --libdir=* | --libdi=* | --libd=*)
921 libdir=$ac_optarg ;;
922
923 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
924 | --libexe | --libex | --libe)
925 ac_prev=libexecdir ;;
926 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
927 | --libexe=* | --libex=* | --libe=*)
928 libexecdir=$ac_optarg ;;
929
jfigusc7e66e32013-05-08 11:32:55 -0400930 -localedir | --localedir | --localedi | --localed | --locale)
931 ac_prev=localedir ;;
932 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
933 localedir=$ac_optarg ;;
934
Cullen Jennings235513a2005-09-21 22:51:36 +0000935 -localstatedir | --localstatedir | --localstatedi | --localstated \
jfigusc7e66e32013-05-08 11:32:55 -0400936 | --localstate | --localstat | --localsta | --localst | --locals)
Cullen Jennings235513a2005-09-21 22:51:36 +0000937 ac_prev=localstatedir ;;
938 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
jfigusc7e66e32013-05-08 11:32:55 -0400939 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000940 localstatedir=$ac_optarg ;;
941
942 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
943 ac_prev=mandir ;;
944 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
945 mandir=$ac_optarg ;;
946
947 -nfp | --nfp | --nf)
948 # Obsolete; use --without-fp.
949 with_fp=no ;;
950
951 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
952 | --no-cr | --no-c | -n)
953 no_create=yes ;;
954
955 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
956 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
957 no_recursion=yes ;;
958
959 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
960 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
961 | --oldin | --oldi | --old | --ol | --o)
962 ac_prev=oldincludedir ;;
963 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
964 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
965 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
966 oldincludedir=$ac_optarg ;;
967
968 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
969 ac_prev=prefix ;;
970 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
971 prefix=$ac_optarg ;;
972
973 -program-prefix | --program-prefix | --program-prefi | --program-pref \
974 | --program-pre | --program-pr | --program-p)
975 ac_prev=program_prefix ;;
976 -program-prefix=* | --program-prefix=* | --program-prefi=* \
977 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
978 program_prefix=$ac_optarg ;;
979
980 -program-suffix | --program-suffix | --program-suffi | --program-suff \
981 | --program-suf | --program-su | --program-s)
982 ac_prev=program_suffix ;;
983 -program-suffix=* | --program-suffix=* | --program-suffi=* \
984 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
985 program_suffix=$ac_optarg ;;
986
987 -program-transform-name | --program-transform-name \
988 | --program-transform-nam | --program-transform-na \
989 | --program-transform-n | --program-transform- \
990 | --program-transform | --program-transfor \
991 | --program-transfo | --program-transf \
992 | --program-trans | --program-tran \
993 | --progr-tra | --program-tr | --program-t)
994 ac_prev=program_transform_name ;;
995 -program-transform-name=* | --program-transform-name=* \
996 | --program-transform-nam=* | --program-transform-na=* \
997 | --program-transform-n=* | --program-transform-=* \
998 | --program-transform=* | --program-transfor=* \
999 | --program-transfo=* | --program-transf=* \
1000 | --program-trans=* | --program-tran=* \
1001 | --progr-tra=* | --program-tr=* | --program-t=*)
1002 program_transform_name=$ac_optarg ;;
1003
jfigusc7e66e32013-05-08 11:32:55 -04001004 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1005 ac_prev=pdfdir ;;
1006 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1007 pdfdir=$ac_optarg ;;
1008
1009 -psdir | --psdir | --psdi | --psd | --ps)
1010 ac_prev=psdir ;;
1011 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1012 psdir=$ac_optarg ;;
1013
Cullen Jennings235513a2005-09-21 22:51:36 +00001014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 silent=yes ;;
1017
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +02001018 -runstatedir | --runstatedir | --runstatedi | --runstated \
1019 | --runstate | --runstat | --runsta | --runst | --runs \
1020 | --run | --ru | --r)
1021 ac_prev=runstatedir ;;
1022 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1023 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1024 | --run=* | --ru=* | --r=*)
1025 runstatedir=$ac_optarg ;;
1026
Cullen Jennings235513a2005-09-21 22:51:36 +00001027 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1028 ac_prev=sbindir ;;
1029 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1030 | --sbi=* | --sb=*)
1031 sbindir=$ac_optarg ;;
1032
1033 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1034 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1035 | --sharedst | --shareds | --shared | --share | --shar \
1036 | --sha | --sh)
1037 ac_prev=sharedstatedir ;;
1038 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1039 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1040 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1041 | --sha=* | --sh=*)
1042 sharedstatedir=$ac_optarg ;;
1043
1044 -site | --site | --sit)
1045 ac_prev=site ;;
1046 -site=* | --site=* | --sit=*)
1047 site=$ac_optarg ;;
1048
1049 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1050 ac_prev=srcdir ;;
1051 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1052 srcdir=$ac_optarg ;;
1053
1054 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1055 | --syscon | --sysco | --sysc | --sys | --sy)
1056 ac_prev=sysconfdir ;;
1057 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1058 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1059 sysconfdir=$ac_optarg ;;
1060
1061 -target | --target | --targe | --targ | --tar | --ta | --t)
1062 ac_prev=target_alias ;;
1063 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1064 target_alias=$ac_optarg ;;
1065
1066 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1067 verbose=yes ;;
1068
1069 -version | --version | --versio | --versi | --vers | -V)
1070 ac_init_version=: ;;
1071
1072 -with-* | --with-*)
jfigusc7e66e32013-05-08 11:32:55 -04001073 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001074 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error $? "invalid package name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1080 *"
1081"with_$ac_useropt"
1082"*) ;;
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +00001085 esac
jfigusc7e66e32013-05-08 11:32:55 -04001086 eval with_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001087
1088 -without-* | --without-*)
jfigusc7e66e32013-05-08 11:32:55 -04001089 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001090 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error $? "invalid package name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1096 *"
1097"with_$ac_useropt"
1098"*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval with_$ac_useropt=no ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001103
1104 --x)
1105 # Obsolete; use --with-x.
1106 with_x=yes ;;
1107
1108 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1109 | --x-incl | --x-inc | --x-in | --x-i)
1110 ac_prev=x_includes ;;
1111 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1112 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1113 x_includes=$ac_optarg ;;
1114
1115 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1116 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1117 ac_prev=x_libraries ;;
1118 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1119 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1120 x_libraries=$ac_optarg ;;
1121
jfigusc7e66e32013-05-08 11:32:55 -04001122 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1123Try \`$0 --help' for more information"
Cullen Jennings235513a2005-09-21 22:51:36 +00001124 ;;
1125
1126 *=*)
1127 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1128 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001129 case $ac_envvar in #(
1130 '' | [0-9]* | *[!_$as_cr_alnum]* )
1131 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1132 esac
1133 eval $ac_envvar=\$ac_optarg
Cullen Jennings235513a2005-09-21 22:51:36 +00001134 export $ac_envvar ;;
1135
1136 *)
1137 # FIXME: should be removed in autoconf 3.0.
jfigusc7e66e32013-05-08 11:32:55 -04001138 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Cullen Jennings235513a2005-09-21 22:51:36 +00001139 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jfigusc7e66e32013-05-08 11:32:55 -04001140 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1141 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Cullen Jennings235513a2005-09-21 22:51:36 +00001142 ;;
1143
1144 esac
1145done
1146
1147if test -n "$ac_prev"; then
1148 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jfigusc7e66e32013-05-08 11:32:55 -04001149 as_fn_error $? "missing argument to $ac_option"
Cullen Jennings235513a2005-09-21 22:51:36 +00001150fi
1151
jfigusc7e66e32013-05-08 11:32:55 -04001152if test -n "$ac_unrecognized_opts"; then
1153 case $enable_option_checking in
1154 no) ;;
1155 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1156 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001157 esac
jfigusc7e66e32013-05-08 11:32:55 -04001158fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001159
jfigusc7e66e32013-05-08 11:32:55 -04001160# Check all directory arguments for consistency.
1161for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1162 datadir sysconfdir sharedstatedir localstatedir includedir \
1163 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +02001164 libdir localedir mandir runstatedir
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001165do
jfigusc7e66e32013-05-08 11:32:55 -04001166 eval ac_val=\$$ac_var
1167 # Remove trailing slashes.
jfigusa14b5a02013-03-29 12:24:12 -04001168 case $ac_val in
jfigusc7e66e32013-05-08 11:32:55 -04001169 */ )
1170 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1171 eval $ac_var=\$ac_val;;
jfigusa14b5a02013-03-29 12:24:12 -04001172 esac
jfigusc7e66e32013-05-08 11:32:55 -04001173 # Be sure to have absolute directory names.
1174 case $ac_val in
1175 [\\/$]* | ?:[\\/]* ) continue;;
1176 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1177 esac
1178 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Cullen Jennings235513a2005-09-21 22:51:36 +00001179done
1180
1181# There might be people who depend on the old broken behavior: `$host'
1182# used to hold the argument of --host etc.
1183# FIXME: To remove some day.
1184build=$build_alias
1185host=$host_alias
1186target=$target_alias
1187
1188# FIXME: To remove some day.
1189if test "x$host_alias" != x; then
1190 if test "x$build_alias" = x; then
1191 cross_compiling=maybe
Cullen Jennings235513a2005-09-21 22:51:36 +00001192 elif test "x$build_alias" != "x$host_alias"; then
1193 cross_compiling=yes
1194 fi
1195fi
1196
1197ac_tool_prefix=
1198test -n "$host_alias" && ac_tool_prefix=$host_alias-
1199
1200test "$silent" = yes && exec 6>/dev/null
1201
1202
jfigusc7e66e32013-05-08 11:32:55 -04001203ac_pwd=`pwd` && test -n "$ac_pwd" &&
1204ac_ls_di=`ls -di .` &&
1205ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1206 as_fn_error $? "working directory cannot be determined"
1207test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1208 as_fn_error $? "pwd does not report name of working directory"
1209
1210
Cullen Jennings235513a2005-09-21 22:51:36 +00001211# Find the source files, if location was not specified.
1212if test -z "$srcdir"; then
1213 ac_srcdir_defaulted=yes
jfigusc7e66e32013-05-08 11:32:55 -04001214 # Try the directory containing this script, then the parent directory.
1215 ac_confdir=`$as_dirname -- "$as_myself" ||
1216$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1217 X"$as_myself" : 'X\(//\)[^/]' \| \
1218 X"$as_myself" : 'X\(//\)$' \| \
1219 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1220$as_echo X"$as_myself" |
1221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1222 s//\1/
1223 q
1224 }
1225 /^X\(\/\/\)[^/].*/{
1226 s//\1/
1227 q
1228 }
1229 /^X\(\/\/\)$/{
1230 s//\1/
1231 q
1232 }
1233 /^X\(\/\).*/{
1234 s//\1/
1235 q
1236 }
1237 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001238 srcdir=$ac_confdir
jfigusc7e66e32013-05-08 11:32:55 -04001239 if test ! -r "$srcdir/$ac_unique_file"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00001240 srcdir=..
1241 fi
1242else
1243 ac_srcdir_defaulted=no
1244fi
jfigusc7e66e32013-05-08 11:32:55 -04001245if test ! -r "$srcdir/$ac_unique_file"; then
1246 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1247 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Cullen Jennings235513a2005-09-21 22:51:36 +00001248fi
jfigusc7e66e32013-05-08 11:32:55 -04001249ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1250ac_abs_confdir=`(
1251 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1252 pwd)`
1253# When building in place, set srcdir=.
1254if test "$ac_abs_confdir" = "$ac_pwd"; then
1255 srcdir=.
1256fi
1257# Remove unnecessary trailing slashes from srcdir.
1258# Double slashes in file names in object file debugging info
1259# mess up M-x gdb in Emacs.
1260case $srcdir in
1261*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1262esac
1263for ac_var in $ac_precious_vars; do
1264 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1265 eval ac_env_${ac_var}_value=\$${ac_var}
1266 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1267 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1268done
Cullen Jennings235513a2005-09-21 22:51:36 +00001269
1270#
1271# Report the --help message.
1272#
1273if test "$ac_init_help" = "long"; then
1274 # Omit some internal or obsolete options to make the list less imposing.
1275 # This message is too long to be a string in the A/UX 3.1 sh.
1276 cat <<_ACEOF
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +02001277\`configure' configures libsrtp2 2.3.0-pre to adapt to many kinds of systems.
Cullen Jennings235513a2005-09-21 22:51:36 +00001278
1279Usage: $0 [OPTION]... [VAR=VALUE]...
1280
1281To assign environment variables (e.g., CC, CFLAGS...), specify them as
1282VAR=VALUE. See below for descriptions of some of the useful variables.
1283
1284Defaults for the options are specified in brackets.
1285
1286Configuration:
1287 -h, --help display this help and exit
1288 --help=short display options specific to this package
1289 --help=recursive display the short help of all the included packages
1290 -V, --version display version information and exit
jfigusc7e66e32013-05-08 11:32:55 -04001291 -q, --quiet, --silent do not print \`checking ...' messages
Cullen Jennings235513a2005-09-21 22:51:36 +00001292 --cache-file=FILE cache test results in FILE [disabled]
1293 -C, --config-cache alias for \`--cache-file=config.cache'
1294 -n, --no-create do not create output files
1295 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1296
Cullen Jennings235513a2005-09-21 22:51:36 +00001297Installation directories:
1298 --prefix=PREFIX install architecture-independent files in PREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001299 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +00001300 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001301 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +00001302
1303By default, \`make install' will install all the files in
1304\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1305an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1306for instance \`--prefix=\$HOME'.
1307
1308For better control, use the options below.
1309
1310Fine tuning of the installation directories:
jfigusc7e66e32013-05-08 11:32:55 -04001311 --bindir=DIR user executables [EPREFIX/bin]
1312 --sbindir=DIR system admin executables [EPREFIX/sbin]
1313 --libexecdir=DIR program executables [EPREFIX/libexec]
1314 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1315 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1316 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +02001317 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
jfigusc7e66e32013-05-08 11:32:55 -04001318 --libdir=DIR object code libraries [EPREFIX/lib]
1319 --includedir=DIR C header files [PREFIX/include]
1320 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1321 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1322 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1323 --infodir=DIR info documentation [DATAROOTDIR/info]
1324 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1325 --mandir=DIR man documentation [DATAROOTDIR/man]
jfigusd196e022014-11-20 16:43:44 -05001326 --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp2]
jfigusc7e66e32013-05-08 11:32:55 -04001327 --htmldir=DIR html documentation [DOCDIR]
1328 --dvidir=DIR dvi documentation [DOCDIR]
1329 --pdfdir=DIR pdf documentation [DOCDIR]
1330 --psdir=DIR ps documentation [DOCDIR]
Cullen Jennings235513a2005-09-21 22:51:36 +00001331_ACEOF
1332
1333 cat <<\_ACEOF
1334
1335System types:
1336 --build=BUILD configure for building on BUILD [guessed]
1337 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1338_ACEOF
1339fi
1340
1341if test -n "$ac_init_help"; then
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001342 case $ac_init_help in
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +02001343 short | recursive ) echo "Configuration of libsrtp2 2.3.0-pre:";;
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001344 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00001345 cat <<\_ACEOF
1346
1347Optional Features:
jfigusc7e66e32013-05-08 11:32:55 -04001348 --disable-option-checking ignore unrecognized --enable/--with options
Cullen Jennings235513a2005-09-21 22:51:36 +00001349 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1350 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Pascal Bühler75918862017-02-19 18:33:50 +01001351 --enable-debug-logging Enable debug logging in all modules
jfigusc7e66e32013-05-08 11:32:55 -04001352 --enable-openssl compile in OpenSSL crypto engine
jfigus038d2cf2015-05-11 14:10:11 -04001353 --enable-openssl-kdf Use OpenSSL KDF algorithm
Pascal Bühler75918862017-02-19 18:33:50 +01001354 --enable-log-stdout redirecting logging to stdout
Cullen Jennings235513a2005-09-21 22:51:36 +00001355
jfigus038d2cf2015-05-11 14:10:11 -04001356Optional Packages:
1357 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1358 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1359 --with-openssl-dir Location of OpenSSL installation
Pascal Bühler75918862017-02-19 18:33:50 +01001360 --with-log-file Use file for logging
jfigus038d2cf2015-05-11 14:10:11 -04001361
Cullen Jennings235513a2005-09-21 22:51:36 +00001362Some influential environment variables:
1363 CC C compiler command
1364 CFLAGS C compiler flags
1365 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1366 nonstandard directory <lib dir>
jfigusc7e66e32013-05-08 11:32:55 -04001367 LIBS libraries to pass to the linker, e.g. -l<library>
1368 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1369 you have headers in a nonstandard directory <include dir>
Cullen Jennings235513a2005-09-21 22:51:36 +00001370 CPP C preprocessor
Idar Tollefsencb771f72017-05-03 13:20:08 +02001371 EXTRA_CFLAGS
1372 C compiler flags appended to the regular C compiler flags
1373 instead of overriding them
Idar Tollefsen600ad962017-01-26 11:24:51 +01001374 PKG_CONFIG path to pkg-config utility
1375 PKG_CONFIG_PATH
1376 directories to add to pkg-config's search path
1377 PKG_CONFIG_LIBDIR
1378 path overriding pkg-config's built-in search path
1379 crypto_CFLAGS
1380 C compiler flags for crypto, overriding pkg-config
1381 crypto_LIBS linker flags for crypto, overriding pkg-config
Cullen Jennings235513a2005-09-21 22:51:36 +00001382
1383Use these variables to override the choices made by `configure' or to help
1384it to find libraries and programs with nonstandard names/locations.
1385
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001386Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00001387_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001388ac_status=$?
Cullen Jennings235513a2005-09-21 22:51:36 +00001389fi
1390
1391if test "$ac_init_help" = "recursive"; then
1392 # If there are subdirs, report their specific --help.
Cullen Jennings235513a2005-09-21 22:51:36 +00001393 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jfigusc7e66e32013-05-08 11:32:55 -04001394 test -d "$ac_dir" ||
1395 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1396 continue
Cullen Jennings235513a2005-09-21 22:51:36 +00001397 ac_builddir=.
1398
jfigusc7e66e32013-05-08 11:32:55 -04001399case "$ac_dir" in
1400.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401*)
1402 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1403 # A ".." for each directory in $ac_dir_suffix.
1404 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1405 case $ac_top_builddir_sub in
1406 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1408 esac ;;
1409esac
1410ac_abs_top_builddir=$ac_pwd
1411ac_abs_builddir=$ac_pwd$ac_dir_suffix
1412# for backward compatibility:
1413ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00001414
1415case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04001416 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00001417 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04001418 ac_top_srcdir=$ac_top_builddir_sub
1419 ac_abs_top_srcdir=$ac_pwd ;;
1420 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001421 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04001422 ac_top_srcdir=$srcdir
1423 ac_abs_top_srcdir=$srcdir ;;
1424 *) # Relative name.
1425 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1426 ac_top_srcdir=$ac_top_build_prefix$srcdir
1427 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001428esac
jfigusc7e66e32013-05-08 11:32:55 -04001429ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001430
jfigusc7e66e32013-05-08 11:32:55 -04001431 cd "$ac_dir" || { ac_status=$?; continue; }
1432 # Check for guested configure.
1433 if test -f "$ac_srcdir/configure.gnu"; then
1434 echo &&
1435 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1436 elif test -f "$ac_srcdir/configure"; then
1437 echo &&
1438 $SHELL "$ac_srcdir/configure" --help=recursive
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001439 else
jfigusc7e66e32013-05-08 11:32:55 -04001440 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1441 fi || ac_status=$?
1442 cd "$ac_pwd" || { ac_status=$?; break; }
Cullen Jennings235513a2005-09-21 22:51:36 +00001443 done
1444fi
1445
jfigusc7e66e32013-05-08 11:32:55 -04001446test -n "$ac_init_help" && exit $ac_status
Cullen Jennings235513a2005-09-21 22:51:36 +00001447if $ac_init_version; then
1448 cat <<\_ACEOF
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +02001449libsrtp2 configure 2.3.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04001450generated by GNU Autoconf 2.69
Cullen Jennings235513a2005-09-21 22:51:36 +00001451
jfigusc7e66e32013-05-08 11:32:55 -04001452Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00001453This configure script is free software; the Free Software Foundation
1454gives unlimited permission to copy, distribute and modify it.
1455_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001456 exit
Cullen Jennings235513a2005-09-21 22:51:36 +00001457fi
jfigusc7e66e32013-05-08 11:32:55 -04001458
1459## ------------------------ ##
1460## Autoconf initialization. ##
1461## ------------------------ ##
1462
1463# ac_fn_c_try_compile LINENO
1464# --------------------------
1465# Try to compile conftest.$ac_ext, and return whether this succeeded.
1466ac_fn_c_try_compile ()
1467{
1468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1469 rm -f conftest.$ac_objext
1470 if { { ac_try="$ac_compile"
1471case "(($ac_try" in
1472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1473 *) ac_try_echo=$ac_try;;
1474esac
1475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1476$as_echo "$ac_try_echo"; } >&5
1477 (eval "$ac_compile") 2>conftest.err
1478 ac_status=$?
1479 if test -s conftest.err; then
1480 grep -v '^ *+' conftest.err >conftest.er1
1481 cat conftest.er1 >&5
1482 mv -f conftest.er1 conftest.err
1483 fi
1484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1485 test $ac_status = 0; } && {
1486 test -z "$ac_c_werror_flag" ||
1487 test ! -s conftest.err
1488 } && test -s conftest.$ac_objext; then :
1489 ac_retval=0
1490else
1491 $as_echo "$as_me: failed program was:" >&5
1492sed 's/^/| /' conftest.$ac_ext >&5
1493
1494 ac_retval=1
1495fi
1496 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1497 as_fn_set_status $ac_retval
1498
1499} # ac_fn_c_try_compile
1500
Idar Tollefsencb771f72017-05-03 13:20:08 +02001501# ac_fn_c_try_cpp LINENO
1502# ----------------------
1503# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1504ac_fn_c_try_cpp ()
1505{
1506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1507 if { { ac_try="$ac_cpp conftest.$ac_ext"
1508case "(($ac_try" in
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1511esac
1512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513$as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1515 ac_status=$?
1516 if test -s conftest.err; then
1517 grep -v '^ *+' conftest.err >conftest.er1
1518 cat conftest.er1 >&5
1519 mv -f conftest.er1 conftest.err
1520 fi
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } > conftest.i && {
1523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1525 }; then :
1526 ac_retval=0
1527else
1528 $as_echo "$as_me: failed program was:" >&5
1529sed 's/^/| /' conftest.$ac_ext >&5
1530
1531 ac_retval=1
1532fi
1533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534 as_fn_set_status $ac_retval
1535
1536} # ac_fn_c_try_cpp
1537
jfigusc7e66e32013-05-08 11:32:55 -04001538# ac_fn_c_try_run LINENO
1539# ----------------------
1540# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1541# that executables *can* be run.
1542ac_fn_c_try_run ()
1543{
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 if { { ac_try="$ac_link"
1546case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549esac
1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551$as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_link") 2>&5
1553 ac_status=$?
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1556 { { case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1559esac
1560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561$as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_try") 2>&5
1563 ac_status=$?
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; }; }; then :
1566 ac_retval=0
1567else
1568 $as_echo "$as_me: program exited with status $ac_status" >&5
1569 $as_echo "$as_me: failed program was:" >&5
1570sed 's/^/| /' conftest.$ac_ext >&5
1571
1572 ac_retval=$ac_status
1573fi
1574 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576 as_fn_set_status $ac_retval
1577
1578} # ac_fn_c_try_run
1579
jfigusc7e66e32013-05-08 11:32:55 -04001580# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1581# -------------------------------------------------------
1582# Tests whether HEADER exists and can be compiled using the include files in
1583# INCLUDES, setting the cache variable VAR accordingly.
1584ac_fn_c_check_header_compile ()
1585{
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1588$as_echo_n "checking for $2... " >&6; }
1589if eval \${$3+:} false; then :
1590 $as_echo_n "(cached) " >&6
1591else
1592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1593/* end confdefs.h. */
1594$4
1595#include <$2>
1596_ACEOF
1597if ac_fn_c_try_compile "$LINENO"; then :
1598 eval "$3=yes"
1599else
1600 eval "$3=no"
1601fi
1602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1603fi
1604eval ac_res=\$$3
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1606$as_echo "$ac_res" >&6; }
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608
1609} # ac_fn_c_check_header_compile
1610
jfigusc7e66e32013-05-08 11:32:55 -04001611# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1612# -------------------------------------------
1613# Tests whether TYPE exists after having included INCLUDES, setting cache
1614# variable VAR accordingly.
1615ac_fn_c_check_type ()
1616{
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1619$as_echo_n "checking for $2... " >&6; }
1620if eval \${$3+:} false; then :
1621 $as_echo_n "(cached) " >&6
1622else
1623 eval "$3=no"
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625/* end confdefs.h. */
1626$4
1627int
1628main ()
1629{
1630if (sizeof ($2))
1631 return 0;
1632 ;
1633 return 0;
1634}
1635_ACEOF
1636if ac_fn_c_try_compile "$LINENO"; then :
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638/* end confdefs.h. */
1639$4
1640int
1641main ()
1642{
1643if (sizeof (($2)))
1644 return 0;
1645 ;
1646 return 0;
1647}
1648_ACEOF
1649if ac_fn_c_try_compile "$LINENO"; then :
1650
1651else
1652 eval "$3=yes"
1653fi
1654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655fi
1656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1657fi
1658eval ac_res=\$$3
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660$as_echo "$ac_res" >&6; }
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662
1663} # ac_fn_c_check_type
1664
1665# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1666# --------------------------------------------
1667# Tries to find the compile-time value of EXPR in a program that includes
1668# INCLUDES, setting VAR accordingly. Returns whether the value could be
1669# computed
1670ac_fn_c_compute_int ()
1671{
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if test "$cross_compiling" = yes; then
1674 # Depending upon the size, compute the lo and hi bounds.
1675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676/* end confdefs.h. */
1677$4
1678int
1679main ()
1680{
1681static int test_array [1 - 2 * !(($2) >= 0)];
1682test_array [0] = 0;
1683return test_array [0];
1684
1685 ;
1686 return 0;
1687}
1688_ACEOF
1689if ac_fn_c_try_compile "$LINENO"; then :
1690 ac_lo=0 ac_mid=0
1691 while :; do
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693/* end confdefs.h. */
1694$4
1695int
1696main ()
1697{
1698static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1699test_array [0] = 0;
1700return test_array [0];
1701
1702 ;
1703 return 0;
1704}
1705_ACEOF
1706if ac_fn_c_try_compile "$LINENO"; then :
1707 ac_hi=$ac_mid; break
1708else
1709 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1710 if test $ac_lo -le $ac_mid; then
1711 ac_lo= ac_hi=
1712 break
1713 fi
1714 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1715fi
1716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717 done
1718else
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720/* end confdefs.h. */
1721$4
1722int
1723main ()
1724{
1725static int test_array [1 - 2 * !(($2) < 0)];
1726test_array [0] = 0;
1727return test_array [0];
1728
1729 ;
1730 return 0;
1731}
1732_ACEOF
1733if ac_fn_c_try_compile "$LINENO"; then :
1734 ac_hi=-1 ac_mid=-1
1735 while :; do
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737/* end confdefs.h. */
1738$4
1739int
1740main ()
1741{
1742static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1743test_array [0] = 0;
1744return test_array [0];
1745
1746 ;
1747 return 0;
1748}
1749_ACEOF
1750if ac_fn_c_try_compile "$LINENO"; then :
1751 ac_lo=$ac_mid; break
1752else
1753 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1754 if test $ac_mid -le $ac_hi; then
1755 ac_lo= ac_hi=
1756 break
1757 fi
1758 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1759fi
1760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761 done
1762else
1763 ac_lo= ac_hi=
1764fi
1765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766fi
1767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768# Binary search between lo and hi bounds.
1769while test "x$ac_lo" != "x$ac_hi"; do
1770 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772/* end confdefs.h. */
1773$4
1774int
1775main ()
1776{
1777static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1778test_array [0] = 0;
1779return test_array [0];
1780
1781 ;
1782 return 0;
1783}
1784_ACEOF
1785if ac_fn_c_try_compile "$LINENO"; then :
1786 ac_hi=$ac_mid
1787else
1788 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1789fi
1790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791done
1792case $ac_lo in #((
1793?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1794'') ac_retval=1 ;;
1795esac
1796 else
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h. */
1799$4
1800static long int longval () { return $2; }
1801static unsigned long int ulongval () { return $2; }
1802#include <stdio.h>
1803#include <stdlib.h>
1804int
1805main ()
1806{
1807
1808 FILE *f = fopen ("conftest.val", "w");
1809 if (! f)
1810 return 1;
1811 if (($2) < 0)
1812 {
1813 long int i = longval ();
1814 if (i != ($2))
1815 return 1;
1816 fprintf (f, "%ld", i);
1817 }
1818 else
1819 {
1820 unsigned long int i = ulongval ();
1821 if (i != ($2))
1822 return 1;
1823 fprintf (f, "%lu", i);
1824 }
1825 /* Do not output a trailing newline, as this causes \r\n confusion
1826 on some platforms. */
1827 return ferror (f) || fclose (f) != 0;
1828
1829 ;
1830 return 0;
1831}
1832_ACEOF
1833if ac_fn_c_try_run "$LINENO"; then :
1834 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1835else
1836 ac_retval=1
1837fi
1838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1839 conftest.$ac_objext conftest.beam conftest.$ac_ext
1840rm -f conftest.val
1841
1842 fi
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 as_fn_set_status $ac_retval
1845
1846} # ac_fn_c_compute_int
1847
1848# ac_fn_c_try_link LINENO
1849# -----------------------
1850# Try to link conftest.$ac_ext, and return whether this succeeded.
1851ac_fn_c_try_link ()
1852{
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 rm -f conftest.$ac_objext conftest$ac_exeext
1855 if { { ac_try="$ac_link"
1856case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859esac
1860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861$as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_link") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1868 fi
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && {
1871 test -z "$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 } && test -s conftest$ac_exeext && {
1874 test "$cross_compiling" = yes ||
1875 test -x conftest$ac_exeext
1876 }; then :
1877 ac_retval=0
1878else
1879 $as_echo "$as_me: failed program was:" >&5
1880sed 's/^/| /' conftest.$ac_ext >&5
1881
1882 ac_retval=1
1883fi
1884 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1885 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1886 # interfere with the next link command; also delete a directory that is
1887 # left behind by Apple's compiler. We do this before executing the actions.
1888 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 as_fn_set_status $ac_retval
1891
1892} # ac_fn_c_try_link
1893
1894# ac_fn_c_check_func LINENO FUNC VAR
1895# ----------------------------------
1896# Tests whether FUNC exists, setting the cache variable VAR accordingly
1897ac_fn_c_check_func ()
1898{
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901$as_echo_n "checking for $2... " >&6; }
1902if eval \${$3+:} false; then :
1903 $as_echo_n "(cached) " >&6
1904else
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906/* end confdefs.h. */
1907/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1909#define $2 innocuous_$2
1910
1911/* System header to define __stub macros and hopefully few prototypes,
1912 which can conflict with char $2 (); below.
1913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1914 <limits.h> exists even on freestanding compilers. */
1915
1916#ifdef __STDC__
1917# include <limits.h>
1918#else
1919# include <assert.h>
1920#endif
1921
1922#undef $2
1923
1924/* Override any GCC internal prototype to avoid an error.
1925 Use char because int might match the return type of a GCC
1926 builtin and then its argument prototype would still apply. */
1927#ifdef __cplusplus
1928extern "C"
1929#endif
1930char $2 ();
1931/* The GNU C library defines this for functions which it implements
1932 to always fail with ENOSYS. Some functions are actually named
1933 something starting with __ and the normal name is an alias. */
1934#if defined __stub_$2 || defined __stub___$2
1935choke me
1936#endif
1937
1938int
1939main ()
1940{
1941return $2 ();
1942 ;
1943 return 0;
1944}
1945_ACEOF
1946if ac_fn_c_try_link "$LINENO"; then :
1947 eval "$3=yes"
1948else
1949 eval "$3=no"
1950fi
1951rm -f core conftest.err conftest.$ac_objext \
1952 conftest$ac_exeext conftest.$ac_ext
1953fi
1954eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956$as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958
1959} # ac_fn_c_check_func
1960cat >config.log <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00001961This file contains any messages produced by compilers while
1962running configure, to aid debugging if configure makes a mistake.
1963
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +02001964It was created by libsrtp2 $as_me 2.3.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04001965generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00001966
1967 $ $0 $@
1968
1969_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001970exec 5>>config.log
Cullen Jennings235513a2005-09-21 22:51:36 +00001971{
1972cat <<_ASUNAME
1973## --------- ##
1974## Platform. ##
1975## --------- ##
1976
1977hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1978uname -m = `(uname -m) 2>/dev/null || echo unknown`
1979uname -r = `(uname -r) 2>/dev/null || echo unknown`
1980uname -s = `(uname -s) 2>/dev/null || echo unknown`
1981uname -v = `(uname -v) 2>/dev/null || echo unknown`
1982
1983/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1984/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1985
1986/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1987/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1988/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
jfigusc7e66e32013-05-08 11:32:55 -04001989/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Cullen Jennings235513a2005-09-21 22:51:36 +00001990/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1991/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1992/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1993
1994_ASUNAME
1995
1996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997for as_dir in $PATH
1998do
1999 IFS=$as_save_IFS
2000 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002001 $as_echo "PATH: $as_dir"
2002 done
2003IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002004
2005} >&5
2006
2007cat >&5 <<_ACEOF
2008
2009
2010## ----------- ##
2011## Core tests. ##
2012## ----------- ##
2013
2014_ACEOF
2015
2016
2017# Keep a trace of the command line.
2018# Strip out --no-create and --no-recursion so they do not pile up.
2019# Strip out --silent because we don't want to record it for future runs.
2020# Also quote any args containing shell meta-characters.
2021# Make two passes to allow for proper duplicate-argument suppression.
2022ac_configure_args=
2023ac_configure_args0=
2024ac_configure_args1=
Cullen Jennings235513a2005-09-21 22:51:36 +00002025ac_must_keep_next=false
2026for ac_pass in 1 2
2027do
2028 for ac_arg
2029 do
2030 case $ac_arg in
2031 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2033 | -silent | --silent | --silen | --sile | --sil)
2034 continue ;;
jfigusc7e66e32013-05-08 11:32:55 -04002035 *\'*)
2036 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002037 esac
2038 case $ac_pass in
jfigusc7e66e32013-05-08 11:32:55 -04002039 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002040 2)
jfigusc7e66e32013-05-08 11:32:55 -04002041 as_fn_append ac_configure_args1 " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002042 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00002043 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00002044 else
David McGrewfec49dd2005-09-23 19:34:11 +00002045 case $ac_arg in
2046 *=* | --config-cache | -C | -disable-* | --disable-* \
2047 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2048 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2049 | -with-* | --with-* | -without-* | --without-* | --x)
2050 case "$ac_configure_args0 " in
2051 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2052 esac
2053 ;;
2054 -* ) ac_must_keep_next=true ;;
2055 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00002056 fi
jfigusc7e66e32013-05-08 11:32:55 -04002057 as_fn_append ac_configure_args " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002058 ;;
2059 esac
2060 done
2061done
jfigusc7e66e32013-05-08 11:32:55 -04002062{ ac_configure_args0=; unset ac_configure_args0;}
2063{ ac_configure_args1=; unset ac_configure_args1;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002064
2065# When interrupted or exit'd, cleanup temporary files, and complete
2066# config.log. We remove comments because anyway the quotes in there
2067# would cause problems or look ugly.
jfigusc7e66e32013-05-08 11:32:55 -04002068# WARNING: Use '\'' to represent an apostrophe within the trap.
2069# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Cullen Jennings235513a2005-09-21 22:51:36 +00002070trap 'exit_status=$?
2071 # Save into config.log some information that might help in debugging.
2072 {
2073 echo
2074
jfigusc7e66e32013-05-08 11:32:55 -04002075 $as_echo "## ---------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002076## Cache variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002077## ---------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002078 echo
2079 # The following way of writing the cache mishandles newlines in values,
jfigusc7e66e32013-05-08 11:32:55 -04002080(
2081 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2082 eval ac_val=\$$ac_var
2083 case $ac_val in #(
2084 *${as_nl}*)
2085 case $ac_var in #(
2086 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2087$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2088 esac
2089 case $ac_var in #(
2090 _ | IFS | as_nl) ;; #(
2091 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2092 *) { eval $ac_var=; unset $ac_var;} ;;
2093 esac ;;
2094 esac
2095 done
Cullen Jennings235513a2005-09-21 22:51:36 +00002096 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04002097 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2098 *${as_nl}ac_space=\ *)
Cullen Jennings235513a2005-09-21 22:51:36 +00002099 sed -n \
jfigusc7e66e32013-05-08 11:32:55 -04002100 "s/'\''/'\''\\\\'\'''\''/g;
2101 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2102 ;; #(
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002103 *)
jfigusc7e66e32013-05-08 11:32:55 -04002104 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002105 ;;
jfigusc7e66e32013-05-08 11:32:55 -04002106 esac |
2107 sort
2108)
Cullen Jennings235513a2005-09-21 22:51:36 +00002109 echo
2110
jfigusc7e66e32013-05-08 11:32:55 -04002111 $as_echo "## ----------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002112## Output variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002113## ----------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002114 echo
2115 for ac_var in $ac_subst_vars
2116 do
jfigusc7e66e32013-05-08 11:32:55 -04002117 eval ac_val=\$$ac_var
2118 case $ac_val in
2119 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2120 esac
2121 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002122 done | sort
2123 echo
2124
2125 if test -n "$ac_subst_files"; then
jfigusc7e66e32013-05-08 11:32:55 -04002126 $as_echo "## ------------------- ##
2127## File substitutions. ##
2128## ------------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002129 echo
2130 for ac_var in $ac_subst_files
2131 do
jfigusc7e66e32013-05-08 11:32:55 -04002132 eval ac_val=\$$ac_var
2133 case $ac_val in
2134 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2135 esac
2136 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002137 done | sort
2138 echo
2139 fi
2140
2141 if test -s confdefs.h; then
jfigusc7e66e32013-05-08 11:32:55 -04002142 $as_echo "## ----------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002143## confdefs.h. ##
jfigusc7e66e32013-05-08 11:32:55 -04002144## ----------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002145 echo
jfigusc7e66e32013-05-08 11:32:55 -04002146 cat confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002147 echo
2148 fi
2149 test "$ac_signal" != 0 &&
jfigusc7e66e32013-05-08 11:32:55 -04002150 $as_echo "$as_me: caught signal $ac_signal"
2151 $as_echo "$as_me: exit $exit_status"
Cullen Jennings235513a2005-09-21 22:51:36 +00002152 } >&5
jfigusc7e66e32013-05-08 11:32:55 -04002153 rm -f core *.core core.conftest.* &&
2154 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Cullen Jennings235513a2005-09-21 22:51:36 +00002155 exit $exit_status
jfigusc7e66e32013-05-08 11:32:55 -04002156' 0
Cullen Jennings235513a2005-09-21 22:51:36 +00002157for ac_signal in 1 2 13 15; do
jfigusc7e66e32013-05-08 11:32:55 -04002158 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Cullen Jennings235513a2005-09-21 22:51:36 +00002159done
2160ac_signal=0
2161
2162# confdefs.h avoids OS command line length limits that DEFS can exceed.
jfigusc7e66e32013-05-08 11:32:55 -04002163rm -f -r conftest* confdefs.h
2164
2165$as_echo "/* confdefs.h */" > confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002166
2167# Predefined preprocessor variables.
2168
2169cat >>confdefs.h <<_ACEOF
2170#define PACKAGE_NAME "$PACKAGE_NAME"
2171_ACEOF
2172
Cullen Jennings235513a2005-09-21 22:51:36 +00002173cat >>confdefs.h <<_ACEOF
2174#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2175_ACEOF
2176
Cullen Jennings235513a2005-09-21 22:51:36 +00002177cat >>confdefs.h <<_ACEOF
2178#define PACKAGE_VERSION "$PACKAGE_VERSION"
2179_ACEOF
2180
Cullen Jennings235513a2005-09-21 22:51:36 +00002181cat >>confdefs.h <<_ACEOF
2182#define PACKAGE_STRING "$PACKAGE_STRING"
2183_ACEOF
2184
Cullen Jennings235513a2005-09-21 22:51:36 +00002185cat >>confdefs.h <<_ACEOF
2186#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2187_ACEOF
2188
jfigusc7e66e32013-05-08 11:32:55 -04002189cat >>confdefs.h <<_ACEOF
2190#define PACKAGE_URL "$PACKAGE_URL"
2191_ACEOF
2192
Cullen Jennings235513a2005-09-21 22:51:36 +00002193
2194# Let the site file select an alternate cache file if it wants to.
jfigusc7e66e32013-05-08 11:32:55 -04002195# Prefer an explicitly selected file to automatically selected ones.
2196ac_site_file1=NONE
2197ac_site_file2=NONE
2198if test -n "$CONFIG_SITE"; then
2199 # We do not want a PATH search for config.site.
2200 case $CONFIG_SITE in #((
2201 -*) ac_site_file1=./$CONFIG_SITE;;
2202 */*) ac_site_file1=$CONFIG_SITE;;
2203 *) ac_site_file1=./$CONFIG_SITE;;
2204 esac
2205elif test "x$prefix" != xNONE; then
2206 ac_site_file1=$prefix/share/config.site
2207 ac_site_file2=$prefix/etc/config.site
2208else
2209 ac_site_file1=$ac_default_prefix/share/config.site
2210 ac_site_file2=$ac_default_prefix/etc/config.site
Cullen Jennings235513a2005-09-21 22:51:36 +00002211fi
jfigusc7e66e32013-05-08 11:32:55 -04002212for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2213do
2214 test "x$ac_site_file" = xNONE && continue
2215 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2217$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002218 sed 's/^/| /' "$ac_site_file" >&5
jfigusc7e66e32013-05-08 11:32:55 -04002219 . "$ac_site_file" \
2220 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2222as_fn_error $? "failed to load site script $ac_site_file
2223See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002224 fi
2225done
2226
2227if test -r "$cache_file"; then
jfigusc7e66e32013-05-08 11:32:55 -04002228 # Some versions of bash will fail to source /dev/null (special files
2229 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2230 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2232$as_echo "$as_me: loading cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002233 case $cache_file in
jfigusc7e66e32013-05-08 11:32:55 -04002234 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2235 *) . "./$cache_file";;
Cullen Jennings235513a2005-09-21 22:51:36 +00002236 esac
2237 fi
2238else
jfigusc7e66e32013-05-08 11:32:55 -04002239 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2240$as_echo "$as_me: creating cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002241 >$cache_file
2242fi
2243
2244# Check that the precious variables saved in the cache have kept the same
2245# value.
2246ac_cache_corrupted=false
jfigusc7e66e32013-05-08 11:32:55 -04002247for ac_var in $ac_precious_vars; do
Cullen Jennings235513a2005-09-21 22:51:36 +00002248 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2249 eval ac_new_set=\$ac_env_${ac_var}_set
jfigusc7e66e32013-05-08 11:32:55 -04002250 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2251 eval ac_new_val=\$ac_env_${ac_var}_value
Cullen Jennings235513a2005-09-21 22:51:36 +00002252 case $ac_old_set,$ac_new_set in
2253 set,)
jfigusc7e66e32013-05-08 11:32:55 -04002254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2255$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 +00002256 ac_cache_corrupted=: ;;
2257 ,set)
jfigusc7e66e32013-05-08 11:32:55 -04002258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2259$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002260 ac_cache_corrupted=: ;;
2261 ,);;
2262 *)
2263 if test "x$ac_old_val" != "x$ac_new_val"; then
jfigusc7e66e32013-05-08 11:32:55 -04002264 # differences in whitespace do not lead to failure.
2265 ac_old_val_w=`echo x $ac_old_val`
2266 ac_new_val_w=`echo x $ac_new_val`
2267 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2269$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2270 ac_cache_corrupted=:
2271 else
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2273$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2274 eval $ac_var=\$ac_old_val
2275 fi
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2277$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2279$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002280 fi;;
2281 esac
2282 # Pass precious variables to config.status.
2283 if test "$ac_new_set" = set; then
2284 case $ac_new_val in
jfigusc7e66e32013-05-08 11:32:55 -04002285 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002286 *) ac_arg=$ac_var=$ac_new_val ;;
2287 esac
2288 case " $ac_configure_args " in
2289 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jfigusc7e66e32013-05-08 11:32:55 -04002290 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002291 esac
2292 fi
2293done
2294if $ac_cache_corrupted; then
jfigusc7e66e32013-05-08 11:32:55 -04002295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2298$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2299 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00002300fi
jfigusc7e66e32013-05-08 11:32:55 -04002301## -------------------- ##
2302## Main body of script. ##
2303## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002304
2305ac_ext=c
2306ac_cpp='$CPP $CPPFLAGS'
2307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310
2311
2312
Idar Tollefsen600ad962017-01-26 11:24:51 +01002313EMPTY_CFLAGS="no"
2314if test "x$CFLAGS" = "x"; then
2315 EMPTY_CFLAGS="yes"
David McGrewb67061f2005-09-28 14:23:06 +00002316fi
2317
Cullen Jennings235513a2005-09-21 22:51:36 +00002318ac_ext=c
2319ac_cpp='$CPP $CPPFLAGS'
2320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2322ac_compiler_gnu=$ac_cv_c_compiler_gnu
2323if test -n "$ac_tool_prefix"; then
2324 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2325set dummy ${ac_tool_prefix}gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2327$as_echo_n "checking for $ac_word... " >&6; }
2328if ${ac_cv_prog_CC+:} false; then :
2329 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002330else
2331 if test -n "$CC"; then
2332 ac_cv_prog_CC="$CC" # Let the user override the test.
2333else
2334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335for as_dir in $PATH
2336do
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002341 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002343 break 2
2344 fi
2345done
jfigusc7e66e32013-05-08 11:32:55 -04002346 done
2347IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002348
2349fi
2350fi
2351CC=$ac_cv_prog_CC
2352if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2354$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002355else
jfigusc7e66e32013-05-08 11:32:55 -04002356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2357$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002358fi
2359
jfigusc7e66e32013-05-08 11:32:55 -04002360
Cullen Jennings235513a2005-09-21 22:51:36 +00002361fi
2362if test -z "$ac_cv_prog_CC"; then
2363 ac_ct_CC=$CC
2364 # Extract the first word of "gcc", so it can be a program name with args.
2365set dummy gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2367$as_echo_n "checking for $ac_word... " >&6; }
2368if ${ac_cv_prog_ac_ct_CC+:} false; then :
2369 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002370else
2371 if test -n "$ac_ct_CC"; then
2372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2373else
2374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375for as_dir in $PATH
2376do
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002381 ac_cv_prog_ac_ct_CC="gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002383 break 2
2384 fi
2385done
jfigusc7e66e32013-05-08 11:32:55 -04002386 done
2387IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002388
2389fi
2390fi
2391ac_ct_CC=$ac_cv_prog_ac_ct_CC
2392if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2394$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002395else
jfigusc7e66e32013-05-08 11:32:55 -04002396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2397$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002398fi
2399
jfigusc7e66e32013-05-08 11:32:55 -04002400 if test "x$ac_ct_CC" = x; then
2401 CC=""
2402 else
2403 case $cross_compiling:$ac_tool_warned in
2404yes:)
2405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2407ac_tool_warned=yes ;;
2408esac
2409 CC=$ac_ct_CC
2410 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002411else
2412 CC="$ac_cv_prog_CC"
2413fi
2414
2415if test -z "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002416 if test -n "$ac_tool_prefix"; then
2417 # 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 +00002418set dummy ${ac_tool_prefix}cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2420$as_echo_n "checking for $ac_word... " >&6; }
2421if ${ac_cv_prog_CC+:} false; then :
2422 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002423else
2424 if test -n "$CC"; then
2425 ac_cv_prog_CC="$CC" # Let the user override the test.
2426else
2427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428for as_dir in $PATH
2429do
2430 IFS=$as_save_IFS
2431 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002434 ac_cv_prog_CC="${ac_tool_prefix}cc"
jfigusc7e66e32013-05-08 11:32:55 -04002435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002436 break 2
2437 fi
2438done
jfigusc7e66e32013-05-08 11:32:55 -04002439 done
2440IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002441
2442fi
2443fi
2444CC=$ac_cv_prog_CC
2445if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2447$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002448else
jfigusc7e66e32013-05-08 11:32:55 -04002449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2450$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002451fi
2452
jfigusc7e66e32013-05-08 11:32:55 -04002453
Cullen Jennings235513a2005-09-21 22:51:36 +00002454 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002455fi
2456if test -z "$CC"; then
2457 # Extract the first word of "cc", so it can be a program name with args.
2458set dummy cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2460$as_echo_n "checking for $ac_word... " >&6; }
2461if ${ac_cv_prog_CC+:} false; then :
2462 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002463else
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2466else
2467 ac_prog_rejected=no
2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002475 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2476 ac_prog_rejected=yes
2477 continue
2478 fi
2479 ac_cv_prog_CC="cc"
jfigusc7e66e32013-05-08 11:32:55 -04002480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002481 break 2
2482 fi
2483done
jfigusc7e66e32013-05-08 11:32:55 -04002484 done
2485IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002486
2487if test $ac_prog_rejected = yes; then
2488 # We found a bogon in the path, so make sure we never use it.
2489 set dummy $ac_cv_prog_CC
2490 shift
2491 if test $# != 0; then
2492 # We chose a different compiler from the bogus one.
2493 # However, it has the same basename, so the bogon will be chosen
2494 # first if we set CC to just the basename; use the full file name.
2495 shift
2496 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2497 fi
2498fi
2499fi
2500fi
2501CC=$ac_cv_prog_CC
2502if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2504$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002505else
jfigusc7e66e32013-05-08 11:32:55 -04002506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002508fi
2509
jfigusc7e66e32013-05-08 11:32:55 -04002510
Cullen Jennings235513a2005-09-21 22:51:36 +00002511fi
2512if test -z "$CC"; then
2513 if test -n "$ac_tool_prefix"; then
jfigusc7e66e32013-05-08 11:32:55 -04002514 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002515 do
2516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2517set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519$as_echo_n "checking for $ac_word... " >&6; }
2520if ${ac_cv_prog_CC+:} false; then :
2521 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002522else
2523 if test -n "$CC"; then
2524 ac_cv_prog_CC="$CC" # Let the user override the test.
2525else
2526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527for as_dir in $PATH
2528do
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002533 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002535 break 2
2536 fi
2537done
jfigusc7e66e32013-05-08 11:32:55 -04002538 done
2539IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002540
2541fi
2542fi
2543CC=$ac_cv_prog_CC
2544if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2546$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002547else
jfigusc7e66e32013-05-08 11:32:55 -04002548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002550fi
2551
jfigusc7e66e32013-05-08 11:32:55 -04002552
Cullen Jennings235513a2005-09-21 22:51:36 +00002553 test -n "$CC" && break
2554 done
2555fi
2556if test -z "$CC"; then
2557 ac_ct_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04002558 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002559do
2560 # Extract the first word of "$ac_prog", so it can be a program name with args.
2561set dummy $ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563$as_echo_n "checking for $ac_word... " >&6; }
2564if ${ac_cv_prog_ac_ct_CC+:} false; then :
2565 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002566else
2567 if test -n "$ac_ct_CC"; then
2568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2569else
2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571for as_dir in $PATH
2572do
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002577 ac_cv_prog_ac_ct_CC="$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002579 break 2
2580 fi
2581done
jfigusc7e66e32013-05-08 11:32:55 -04002582 done
2583IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002584
2585fi
2586fi
2587ac_ct_CC=$ac_cv_prog_ac_ct_CC
2588if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2590$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002591else
jfigusc7e66e32013-05-08 11:32:55 -04002592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002594fi
2595
jfigusc7e66e32013-05-08 11:32:55 -04002596
Cullen Jennings235513a2005-09-21 22:51:36 +00002597 test -n "$ac_ct_CC" && break
2598done
2599
jfigusc7e66e32013-05-08 11:32:55 -04002600 if test "x$ac_ct_CC" = x; then
2601 CC=""
2602 else
2603 case $cross_compiling:$ac_tool_warned in
2604yes:)
2605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2607ac_tool_warned=yes ;;
2608esac
2609 CC=$ac_ct_CC
2610 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002611fi
2612
2613fi
2614
2615
jfigusc7e66e32013-05-08 11:32:55 -04002616test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2618as_fn_error $? "no acceptable C compiler found in \$PATH
2619See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002620
2621# Provide some information about the compiler.
jfigusc7e66e32013-05-08 11:32:55 -04002622$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2623set X $ac_compile
2624ac_compiler=$2
2625for ac_option in --version -v -V -qversion; do
2626 { { ac_try="$ac_compiler $ac_option >&5"
2627case "(($ac_try" in
2628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629 *) ac_try_echo=$ac_try;;
2630esac
2631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2632$as_echo "$ac_try_echo"; } >&5
2633 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Cullen Jennings235513a2005-09-21 22:51:36 +00002634 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002635 if test -s conftest.err; then
2636 sed '10a\
2637... rest of stderr output deleted ...
2638 10q' conftest.err >conftest.er1
2639 cat conftest.er1 >&5
2640 fi
2641 rm -f conftest.er1 conftest.err
2642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2643 test $ac_status = 0; }
2644done
Cullen Jennings235513a2005-09-21 22:51:36 +00002645
jfigusc7e66e32013-05-08 11:32:55 -04002646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002647/* end confdefs.h. */
2648
2649int
2650main ()
2651{
2652
2653 ;
2654 return 0;
2655}
2656_ACEOF
2657ac_clean_files_save=$ac_clean_files
jfigusc7e66e32013-05-08 11:32:55 -04002658ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Cullen Jennings235513a2005-09-21 22:51:36 +00002659# Try to create an executable without -o first, disregard a.out.
2660# It will help us diagnose broken compilers, and finding out an intuition
2661# of exeext.
jfigusc7e66e32013-05-08 11:32:55 -04002662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2663$as_echo_n "checking whether the C compiler works... " >&6; }
2664ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002665
jfigusc7e66e32013-05-08 11:32:55 -04002666# The possible output files:
2667ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2668
2669ac_rmfiles=
2670for ac_file in $ac_files
2671do
2672 case $ac_file in
2673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2674 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2675 esac
2676done
2677rm -f $ac_rmfiles
2678
2679if { { ac_try="$ac_link_default"
2680case "(($ac_try" in
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2683esac
2684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2685$as_echo "$ac_try_echo"; } >&5
2686 (eval "$ac_link_default") 2>&5
2687 ac_status=$?
2688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2689 test $ac_status = 0; }; then :
2690 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2691# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2692# in a Makefile. We should not override ac_cv_exeext if it was cached,
2693# so that the user can short-circuit this test for compilers unknown to
2694# Autoconf.
2695for ac_file in $ac_files ''
Cullen Jennings235513a2005-09-21 22:51:36 +00002696do
2697 test -f "$ac_file" || continue
2698 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00002700 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002701 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00002702 # We found the default executable, but exeext='' is most
2703 # certainly right.
2704 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002705 *.* )
jfigusc7e66e32013-05-08 11:32:55 -04002706 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2707 then :; else
2708 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2709 fi
2710 # We set ac_cv_exeext here because the later test for it is not
2711 # safe: cross compilers may not add the suffix if given an `-o'
2712 # argument, so we may need to know it at that point already.
2713 # Even if this section looks crufty: it has the advantage of
2714 # actually working.
David McGrewfec49dd2005-09-23 19:34:11 +00002715 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002716 * )
David McGrewfec49dd2005-09-23 19:34:11 +00002717 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002718 esac
2719done
jfigusc7e66e32013-05-08 11:32:55 -04002720test "$ac_cv_exeext" = no && ac_cv_exeext=
2721
Cullen Jennings235513a2005-09-21 22:51:36 +00002722else
jfigusc7e66e32013-05-08 11:32:55 -04002723 ac_file=''
2724fi
2725if test -z "$ac_file"; then :
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2727$as_echo "no" >&6; }
2728$as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002729sed 's/^/| /' conftest.$ac_ext >&5
2730
jfigusc7e66e32013-05-08 11:32:55 -04002731{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2733as_fn_error 77 "C compiler cannot create executables
2734See \`config.log' for more details" "$LINENO" 5; }
2735else
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2737$as_echo "yes" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002738fi
jfigusc7e66e32013-05-08 11:32:55 -04002739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2740$as_echo_n "checking for C compiler default output file name... " >&6; }
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2742$as_echo "$ac_file" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002743ac_exeext=$ac_cv_exeext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002744
jfigusc7e66e32013-05-08 11:32:55 -04002745rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002746ac_clean_files=$ac_clean_files_save
jfigusc7e66e32013-05-08 11:32:55 -04002747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2748$as_echo_n "checking for suffix of executables... " >&6; }
2749if { { ac_try="$ac_link"
2750case "(($ac_try" in
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2753esac
2754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2755$as_echo "$ac_try_echo"; } >&5
2756 (eval "$ac_link") 2>&5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002757 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2759 test $ac_status = 0; }; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002760 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2761# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2762# work properly (i.e., refer to `conftest.exe'), while it won't with
2763# `rm'.
2764for ac_file in conftest.exe conftest conftest.*; do
2765 test -f "$ac_file" || continue
2766 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002768 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00002769 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002770 * ) break;;
2771 esac
2772done
2773else
jfigusc7e66e32013-05-08 11:32:55 -04002774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2775$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2776as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2777See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002778fi
jfigusc7e66e32013-05-08 11:32:55 -04002779rm -f conftest conftest$ac_cv_exeext
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2781$as_echo "$ac_cv_exeext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002782
2783rm -f conftest.$ac_ext
2784EXEEXT=$ac_cv_exeext
2785ac_exeext=$EXEEXT
jfigusc7e66e32013-05-08 11:32:55 -04002786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2787/* end confdefs.h. */
2788#include <stdio.h>
2789int
2790main ()
2791{
2792FILE *f = fopen ("conftest.out", "w");
2793 return ferror (f) || fclose (f) != 0;
2794
2795 ;
2796 return 0;
2797}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002798_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002799ac_clean_files="$ac_clean_files conftest.out"
2800# Check that the compiler produces executables we can run. If not, either
2801# the compiler is broken, or we cross compile.
2802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2803$as_echo_n "checking whether we are cross compiling... " >&6; }
2804if test "$cross_compiling" != yes; then
2805 { { ac_try="$ac_link"
2806case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809esac
2810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2811$as_echo "$ac_try_echo"; } >&5
2812 (eval "$ac_link") 2>&5
2813 ac_status=$?
2814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2815 test $ac_status = 0; }
2816 if { ac_try='./conftest$ac_cv_exeext'
2817 { { case "(($ac_try" in
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2820esac
2821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2822$as_echo "$ac_try_echo"; } >&5
2823 (eval "$ac_try") 2>&5
2824 ac_status=$?
2825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2826 test $ac_status = 0; }; }; then
2827 cross_compiling=no
2828 else
2829 if test "$cross_compiling" = maybe; then
2830 cross_compiling=yes
2831 else
2832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2834as_fn_error $? "cannot run C compiled programs.
2835If you meant to cross compile, use \`--host'.
2836See \`config.log' for more details" "$LINENO" 5; }
2837 fi
2838 fi
2839fi
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2841$as_echo "$cross_compiling" >&6; }
2842
2843rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2844ac_clean_files=$ac_clean_files_save
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2846$as_echo_n "checking for suffix of object files... " >&6; }
2847if ${ac_cv_objext+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849else
2850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002851/* end confdefs.h. */
2852
2853int
2854main ()
2855{
2856
2857 ;
2858 return 0;
2859}
2860_ACEOF
2861rm -f conftest.o conftest.obj
jfigusc7e66e32013-05-08 11:32:55 -04002862if { { ac_try="$ac_compile"
2863case "(($ac_try" in
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2866esac
2867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2868$as_echo "$ac_try_echo"; } >&5
2869 (eval "$ac_compile") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002870 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2872 test $ac_status = 0; }; then :
2873 for ac_file in conftest.o conftest.obj conftest.*; do
2874 test -f "$ac_file" || continue;
Cullen Jennings235513a2005-09-21 22:51:36 +00002875 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002877 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2878 break;;
2879 esac
2880done
2881else
jfigusc7e66e32013-05-08 11:32:55 -04002882 $as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002883sed 's/^/| /' conftest.$ac_ext >&5
2884
jfigusc7e66e32013-05-08 11:32:55 -04002885{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2887as_fn_error $? "cannot compute suffix of object files: cannot compile
2888See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002889fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002890rm -f conftest.$ac_cv_objext conftest.$ac_ext
2891fi
jfigusc7e66e32013-05-08 11:32:55 -04002892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2893$as_echo "$ac_cv_objext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002894OBJEXT=$ac_cv_objext
2895ac_objext=$OBJEXT
jfigusc7e66e32013-05-08 11:32:55 -04002896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2897$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2898if ${ac_cv_c_compiler_gnu+:} false; then :
2899 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002900else
jfigusc7e66e32013-05-08 11:32:55 -04002901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002902/* end confdefs.h. */
2903
2904int
2905main ()
2906{
2907#ifndef __GNUC__
2908 choke me
2909#endif
2910
2911 ;
2912 return 0;
2913}
2914_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002915if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002916 ac_compiler_gnu=yes
2917else
jfigusc7e66e32013-05-08 11:32:55 -04002918 ac_compiler_gnu=no
Cullen Jennings235513a2005-09-21 22:51:36 +00002919fi
jfigusc7e66e32013-05-08 11:32:55 -04002920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002921ac_cv_c_compiler_gnu=$ac_compiler_gnu
2922
2923fi
jfigusc7e66e32013-05-08 11:32:55 -04002924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2925$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2926if test $ac_compiler_gnu = yes; then
2927 GCC=yes
2928else
2929 GCC=
2930fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002931ac_test_CFLAGS=${CFLAGS+set}
2932ac_save_CFLAGS=$CFLAGS
jfigusc7e66e32013-05-08 11:32:55 -04002933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2934$as_echo_n "checking whether $CC accepts -g... " >&6; }
2935if ${ac_cv_prog_cc_g+:} false; then :
2936 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002937else
jfigusc7e66e32013-05-08 11:32:55 -04002938 ac_save_c_werror_flag=$ac_c_werror_flag
2939 ac_c_werror_flag=yes
2940 ac_cv_prog_cc_g=no
2941 CFLAGS="-g"
2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002943/* end confdefs.h. */
2944
2945int
2946main ()
2947{
2948
2949 ;
2950 return 0;
2951}
2952_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002953if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002954 ac_cv_prog_cc_g=yes
2955else
jfigusc7e66e32013-05-08 11:32:55 -04002956 CFLAGS=""
2957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2958/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00002959
jfigusc7e66e32013-05-08 11:32:55 -04002960int
2961main ()
2962{
2963
2964 ;
2965 return 0;
2966}
2967_ACEOF
2968if ac_fn_c_try_compile "$LINENO"; then :
2969
2970else
2971 ac_c_werror_flag=$ac_save_c_werror_flag
2972 CFLAGS="-g"
2973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2974/* end confdefs.h. */
2975
2976int
2977main ()
2978{
2979
2980 ;
2981 return 0;
2982}
2983_ACEOF
2984if ac_fn_c_try_compile "$LINENO"; then :
2985 ac_cv_prog_cc_g=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00002986fi
jfigusc7e66e32013-05-08 11:32:55 -04002987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002988fi
jfigusc7e66e32013-05-08 11:32:55 -04002989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2990fi
2991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 ac_c_werror_flag=$ac_save_c_werror_flag
2993fi
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2995$as_echo "$ac_cv_prog_cc_g" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002996if test "$ac_test_CFLAGS" = set; then
2997 CFLAGS=$ac_save_CFLAGS
2998elif test $ac_cv_prog_cc_g = yes; then
2999 if test "$GCC" = yes; then
3000 CFLAGS="-g -O2"
3001 else
3002 CFLAGS="-g"
3003 fi
3004else
3005 if test "$GCC" = yes; then
3006 CFLAGS="-O2"
3007 else
3008 CFLAGS=
3009 fi
3010fi
jfigusc7e66e32013-05-08 11:32:55 -04003011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3012$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3013if ${ac_cv_prog_cc_c89+:} false; then :
3014 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003015else
jfigusc7e66e32013-05-08 11:32:55 -04003016 ac_cv_prog_cc_c89=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003017ac_save_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04003018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003019/* end confdefs.h. */
3020#include <stdarg.h>
3021#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -04003022struct stat;
Cullen Jennings235513a2005-09-21 22:51:36 +00003023/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3024struct buf { int x; };
3025FILE * (*rcsopen) (struct buf *, struct stat *, int);
3026static char *e (p, i)
3027 char **p;
3028 int i;
3029{
3030 return p[i];
3031}
3032static char *f (char * (*g) (char **, int), char **p, ...)
3033{
3034 char *s;
3035 va_list v;
3036 va_start (v,p);
3037 s = g (p, va_arg (v,int));
3038 va_end (v);
3039 return s;
3040}
David McGrewfec49dd2005-09-23 19:34:11 +00003041
3042/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3043 function prototypes and stuff, but not '\xHH' hex character constants.
3044 These don't provoke an error unfortunately, instead are silently treated
jfigusc7e66e32013-05-08 11:32:55 -04003045 as 'x'. The following induces an error, until -std is added to get
David McGrewfec49dd2005-09-23 19:34:11 +00003046 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3047 array size at least. It's necessary to write '\x00'==0 to get something
jfigusc7e66e32013-05-08 11:32:55 -04003048 that's true only with -std. */
David McGrewfec49dd2005-09-23 19:34:11 +00003049int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3050
jfigusc7e66e32013-05-08 11:32:55 -04003051/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3052 inside strings and character constants. */
3053#define FOO(x) 'x'
3054int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3055
Cullen Jennings235513a2005-09-21 22:51:36 +00003056int test (int i, double x);
3057struct s1 {int (*f) (int a);};
3058struct s2 {int (*f) (double a);};
3059int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3060int argc;
3061char **argv;
3062int
3063main ()
3064{
3065return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3066 ;
3067 return 0;
3068}
3069_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003070for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3071 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Cullen Jennings235513a2005-09-21 22:51:36 +00003072do
3073 CC="$ac_save_CC $ac_arg"
jfigusc7e66e32013-05-08 11:32:55 -04003074 if ac_fn_c_try_compile "$LINENO"; then :
3075 ac_cv_prog_cc_c89=$ac_arg
Cullen Jennings235513a2005-09-21 22:51:36 +00003076fi
jfigusc7e66e32013-05-08 11:32:55 -04003077rm -f core conftest.err conftest.$ac_objext
3078 test "x$ac_cv_prog_cc_c89" != "xno" && break
Cullen Jennings235513a2005-09-21 22:51:36 +00003079done
jfigusc7e66e32013-05-08 11:32:55 -04003080rm -f conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003081CC=$ac_save_CC
3082
3083fi
jfigusc7e66e32013-05-08 11:32:55 -04003084# AC_CACHE_VAL
3085case "x$ac_cv_prog_cc_c89" in
3086 x)
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3088$as_echo "none needed" >&6; } ;;
3089 xno)
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3091$as_echo "unsupported" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003092 *)
jfigusc7e66e32013-05-08 11:32:55 -04003093 CC="$CC $ac_cv_prog_cc_c89"
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3095$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003096esac
jfigusc7e66e32013-05-08 11:32:55 -04003097if test "x$ac_cv_prog_cc_c89" != xno; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003098
3099fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003100
Cullen Jennings235513a2005-09-21 22:51:36 +00003101ac_ext=c
3102ac_cpp='$CPP $CPPFLAGS'
3103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3105ac_compiler_gnu=$ac_cv_c_compiler_gnu
3106
Idar Tollefsencb771f72017-05-03 13:20:08 +02003107ac_ext=c
3108ac_cpp='$CPP $CPPFLAGS'
3109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111ac_compiler_gnu=$ac_cv_c_compiler_gnu
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3113$as_echo_n "checking how to run the C preprocessor... " >&6; }
3114# On Suns, sometimes $CPP names a directory.
3115if test -n "$CPP" && test -d "$CPP"; then
3116 CPP=
3117fi
3118if test -z "$CPP"; then
3119 if ${ac_cv_prog_CPP+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121else
3122 # Double quotes because CPP needs to be expanded
3123 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3124 do
3125 ac_preproc_ok=false
3126for ac_c_preproc_warn_flag in '' yes
3127do
3128 # Use a header file that comes with gcc, so configuring glibc
3129 # with a fresh cross-compiler works.
3130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3131 # <limits.h> exists even on freestanding compilers.
3132 # On the NeXT, cc -E runs the code through the compiler's parser,
3133 # not just through cpp. "Syntax error" is here to catch this case.
3134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3135/* end confdefs.h. */
3136#ifdef __STDC__
3137# include <limits.h>
3138#else
3139# include <assert.h>
3140#endif
3141 Syntax error
3142_ACEOF
3143if ac_fn_c_try_cpp "$LINENO"; then :
3144
3145else
3146 # Broken: fails on valid input.
3147continue
3148fi
3149rm -f conftest.err conftest.i conftest.$ac_ext
3150
3151 # OK, works on sane cases. Now check whether nonexistent headers
3152 # can be detected and how.
3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154/* end confdefs.h. */
3155#include <ac_nonexistent.h>
3156_ACEOF
3157if ac_fn_c_try_cpp "$LINENO"; then :
3158 # Broken: success on invalid input.
3159continue
3160else
3161 # Passes both tests.
3162ac_preproc_ok=:
3163break
3164fi
3165rm -f conftest.err conftest.i conftest.$ac_ext
3166
3167done
3168# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3169rm -f conftest.i conftest.err conftest.$ac_ext
3170if $ac_preproc_ok; then :
3171 break
3172fi
3173
3174 done
3175 ac_cv_prog_CPP=$CPP
3176
3177fi
3178 CPP=$ac_cv_prog_CPP
3179else
3180 ac_cv_prog_CPP=$CPP
3181fi
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3183$as_echo "$CPP" >&6; }
3184ac_preproc_ok=false
3185for ac_c_preproc_warn_flag in '' yes
3186do
3187 # Use a header file that comes with gcc, so configuring glibc
3188 # with a fresh cross-compiler works.
3189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3190 # <limits.h> exists even on freestanding compilers.
3191 # On the NeXT, cc -E runs the code through the compiler's parser,
3192 # not just through cpp. "Syntax error" is here to catch this case.
3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194/* end confdefs.h. */
3195#ifdef __STDC__
3196# include <limits.h>
3197#else
3198# include <assert.h>
3199#endif
3200 Syntax error
3201_ACEOF
3202if ac_fn_c_try_cpp "$LINENO"; then :
3203
3204else
3205 # Broken: fails on valid input.
3206continue
3207fi
3208rm -f conftest.err conftest.i conftest.$ac_ext
3209
3210 # OK, works on sane cases. Now check whether nonexistent headers
3211 # can be detected and how.
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213/* end confdefs.h. */
3214#include <ac_nonexistent.h>
3215_ACEOF
3216if ac_fn_c_try_cpp "$LINENO"; then :
3217 # Broken: success on invalid input.
3218continue
3219else
3220 # Passes both tests.
3221ac_preproc_ok=:
3222break
3223fi
3224rm -f conftest.err conftest.i conftest.$ac_ext
3225
3226done
3227# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3228rm -f conftest.i conftest.err conftest.$ac_ext
3229if $ac_preproc_ok; then :
3230
3231else
3232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3235See \`config.log' for more details" "$LINENO" 5; }
3236fi
3237
3238ac_ext=c
3239ac_cpp='$CPP $CPPFLAGS'
3240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243
3244
Martin Meszaros3edfada2017-11-01 10:55:33 +01003245ac_aux_dir=
3246for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3247 if test -f "$ac_dir/install-sh"; then
3248 ac_aux_dir=$ac_dir
3249 ac_install_sh="$ac_aux_dir/install-sh -c"
3250 break
3251 elif test -f "$ac_dir/install.sh"; then
3252 ac_aux_dir=$ac_dir
3253 ac_install_sh="$ac_aux_dir/install.sh -c"
3254 break
3255 elif test -f "$ac_dir/shtool"; then
3256 ac_aux_dir=$ac_dir
3257 ac_install_sh="$ac_aux_dir/shtool install -c"
3258 break
3259 fi
3260done
3261if test -z "$ac_aux_dir"; then
3262 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3263fi
3264
3265# These three variables are undocumented and unsupported,
3266# and are intended to be withdrawn in a future Autoconf release.
3267# They can cause serious problems if a builder's source tree is in a directory
3268# whose full name contains unusual characters.
3269ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3270ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3271ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3272
3273
3274# Expand $ac_aux_dir to an absolute path.
3275am_aux_dir=`cd "$ac_aux_dir" && pwd`
Idar Tollefsencb771f72017-05-03 13:20:08 +02003276
jfigus1ce6a742015-04-06 08:54:01 -04003277
3278if test -n "$ac_tool_prefix"; then
3279 for ac_prog in ar lib "link -lib"
3280 do
3281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3282set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284$as_echo_n "checking for $ac_word... " >&6; }
3285if ${ac_cv_prog_AR+:} false; then :
3286 $as_echo_n "(cached) " >&6
3287else
3288 if test -n "$AR"; then
3289 ac_cv_prog_AR="$AR" # Let the user override the test.
3290else
3291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292for as_dir in $PATH
3293do
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3301 fi
3302done
3303 done
3304IFS=$as_save_IFS
3305
3306fi
3307fi
3308AR=$ac_cv_prog_AR
3309if test -n "$AR"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3311$as_echo "$AR" >&6; }
3312else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314$as_echo "no" >&6; }
3315fi
3316
3317
3318 test -n "$AR" && break
3319 done
3320fi
3321if test -z "$AR"; then
3322 ac_ct_AR=$AR
3323 for ac_prog in ar lib "link -lib"
3324do
3325 # Extract the first word of "$ac_prog", so it can be a program name with args.
3326set dummy $ac_prog; ac_word=$2
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328$as_echo_n "checking for $ac_word... " >&6; }
3329if ${ac_cv_prog_ac_ct_AR+:} false; then :
3330 $as_echo_n "(cached) " >&6
3331else
3332 if test -n "$ac_ct_AR"; then
3333 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3334else
3335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336for as_dir in $PATH
3337do
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3342 ac_cv_prog_ac_ct_AR="$ac_prog"
3343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 break 2
3345 fi
3346done
3347 done
3348IFS=$as_save_IFS
3349
3350fi
3351fi
3352ac_ct_AR=$ac_cv_prog_ac_ct_AR
3353if test -n "$ac_ct_AR"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3355$as_echo "$ac_ct_AR" >&6; }
3356else
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358$as_echo "no" >&6; }
3359fi
3360
3361
3362 test -n "$ac_ct_AR" && break
3363done
3364
3365 if test "x$ac_ct_AR" = x; then
3366 AR="false"
3367 else
3368 case $cross_compiling:$ac_tool_warned in
3369yes:)
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3372ac_tool_warned=yes ;;
3373esac
3374 AR=$ac_ct_AR
3375 fi
3376fi
3377
3378: ${AR=ar}
3379
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3381$as_echo_n "checking the archiver ($AR) interface... " >&6; }
3382if ${am_cv_ar_interface+:} false; then :
3383 $as_echo_n "(cached) " >&6
3384else
3385 ac_ext=c
3386ac_cpp='$CPP $CPPFLAGS'
3387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390
3391 am_cv_ar_interface=ar
3392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393/* end confdefs.h. */
3394int some_variable = 0;
3395_ACEOF
3396if ac_fn_c_try_compile "$LINENO"; then :
3397 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3399 (eval $am_ar_try) 2>&5
3400 ac_status=$?
3401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402 test $ac_status = 0; }
3403 if test "$ac_status" -eq 0; then
3404 am_cv_ar_interface=ar
3405 else
3406 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3408 (eval $am_ar_try) 2>&5
3409 ac_status=$?
3410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411 test $ac_status = 0; }
3412 if test "$ac_status" -eq 0; then
3413 am_cv_ar_interface=lib
3414 else
3415 am_cv_ar_interface=unknown
3416 fi
3417 fi
3418 rm -f conftest.lib libconftest.a
3419
3420fi
3421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 ac_ext=c
3423ac_cpp='$CPP $CPPFLAGS'
3424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426ac_compiler_gnu=$ac_cv_c_compiler_gnu
3427
3428fi
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3430$as_echo "$am_cv_ar_interface" >&6; }
3431
3432case $am_cv_ar_interface in
3433ar)
3434 ;;
3435lib)
3436 # Microsoft lib, so override with the ar-lib wrapper script.
3437 # FIXME: It is wrong to rewrite AR.
3438 # But if we don't then we get into trouble of one sort or another.
3439 # A longer-term fix would be to have automake use am__AR in this case,
3440 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3441 # similar.
3442 AR="$am_aux_dir/ar-lib $AR"
3443 ;;
3444unknown)
3445 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3446 ;;
3447esac
3448
3449if test -n "$ac_tool_prefix"; then
3450 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3451set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453$as_echo_n "checking for $ac_word... " >&6; }
3454if ${ac_cv_prog_RANLIB+:} false; then :
3455 $as_echo_n "(cached) " >&6
3456else
3457 if test -n "$RANLIB"; then
3458 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3459else
3460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461for as_dir in $PATH
3462do
3463 IFS=$as_save_IFS
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3467 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 break 2
3470 fi
3471done
3472 done
3473IFS=$as_save_IFS
3474
3475fi
3476fi
3477RANLIB=$ac_cv_prog_RANLIB
3478if test -n "$RANLIB"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3480$as_echo "$RANLIB" >&6; }
3481else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483$as_echo "no" >&6; }
3484fi
3485
3486
3487fi
3488if test -z "$ac_cv_prog_RANLIB"; then
3489 ac_ct_RANLIB=$RANLIB
3490 # Extract the first word of "ranlib", so it can be a program name with args.
3491set dummy ranlib; ac_word=$2
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493$as_echo_n "checking for $ac_word... " >&6; }
3494if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3495 $as_echo_n "(cached) " >&6
3496else
3497 if test -n "$ac_ct_RANLIB"; then
3498 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3499else
3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501for as_dir in $PATH
3502do
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507 ac_cv_prog_ac_ct_RANLIB="ranlib"
3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 break 2
3510 fi
3511done
3512 done
3513IFS=$as_save_IFS
3514
3515fi
3516fi
3517ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3518if test -n "$ac_ct_RANLIB"; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3520$as_echo "$ac_ct_RANLIB" >&6; }
3521else
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523$as_echo "no" >&6; }
3524fi
3525
3526 if test "x$ac_ct_RANLIB" = x; then
3527 RANLIB=":"
3528 else
3529 case $cross_compiling:$ac_tool_warned in
3530yes:)
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3533ac_tool_warned=yes ;;
3534esac
3535 RANLIB=$ac_ct_RANLIB
3536 fi
3537else
3538 RANLIB="$ac_cv_prog_RANLIB"
3539fi
3540
David McGrewb67061f2005-09-28 14:23:06 +00003541# Find a good install program. We prefer a C program (faster),
3542# so one script is as good as another. But avoid the broken or
3543# incompatible versions:
3544# SysV /etc/install, /usr/sbin/install
3545# SunOS /usr/etc/install
3546# IRIX /sbin/install
3547# AIX /bin/install
3548# AmigaOS /C/install, which installs bootblocks on floppy discs
3549# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3550# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3551# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3552# OS/2's system install, which has a completely different semantic
3553# ./install, which can be erroneously created by make from ./install.sh.
jfigusc7e66e32013-05-08 11:32:55 -04003554# Reject install programs that cannot install multiple files.
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3556$as_echo_n "checking for a BSD-compatible install... " >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00003557if test -z "$INSTALL"; then
jfigusc7e66e32013-05-08 11:32:55 -04003558if ${ac_cv_path_install+:} false; then :
3559 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003560else
David McGrewb67061f2005-09-28 14:23:06 +00003561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562for as_dir in $PATH
3563do
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04003566 # Account for people who put trailing slashes in PATH elements.
3567case $as_dir/ in #((
3568 ./ | .// | /[cC]/* | \
David McGrewb67061f2005-09-28 14:23:06 +00003569 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jfigusc7e66e32013-05-08 11:32:55 -04003570 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
David McGrewb67061f2005-09-28 14:23:06 +00003571 /usr/ucb/* ) ;;
3572 *)
3573 # OSF1 and SCO ODT 3.0 have their own names for install.
3574 # Don't use installbsd from OSF since it installs stuff as root
3575 # by default.
3576 for ac_prog in ginstall scoinst install; do
3577 for ac_exec_ext in '' $ac_executable_extensions; do
jfigusc7e66e32013-05-08 11:32:55 -04003578 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
David McGrewb67061f2005-09-28 14:23:06 +00003579 if test $ac_prog = install &&
3580 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3581 # AIX install. It has an incompatible calling convention.
3582 :
3583 elif test $ac_prog = install &&
3584 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3585 # program-specific install script used by HP pwplus--don't use.
3586 :
3587 else
jfigusc7e66e32013-05-08 11:32:55 -04003588 rm -rf conftest.one conftest.two conftest.dir
3589 echo one > conftest.one
3590 echo two > conftest.two
3591 mkdir conftest.dir
3592 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3593 test -s conftest.one && test -s conftest.two &&
3594 test -s conftest.dir/conftest.one &&
3595 test -s conftest.dir/conftest.two
3596 then
3597 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3598 break 3
3599 fi
David McGrewb67061f2005-09-28 14:23:06 +00003600 fi
3601 fi
3602 done
3603 done
3604 ;;
3605esac
Cullen Jennings235513a2005-09-21 22:51:36 +00003606
jfigusc7e66e32013-05-08 11:32:55 -04003607 done
3608IFS=$as_save_IFS
3609
3610rm -rf conftest.one conftest.two conftest.dir
Cullen Jennings235513a2005-09-21 22:51:36 +00003611
3612fi
David McGrewb67061f2005-09-28 14:23:06 +00003613 if test "${ac_cv_path_install+set}" = set; then
3614 INSTALL=$ac_cv_path_install
3615 else
jfigusc7e66e32013-05-08 11:32:55 -04003616 # As a last resort, use the slow shell script. Don't cache a
3617 # value for INSTALL within a source directory, because that will
David McGrewb67061f2005-09-28 14:23:06 +00003618 # break other packages using the cache if that directory is
jfigusc7e66e32013-05-08 11:32:55 -04003619 # removed, or if the value is a relative name.
David McGrewb67061f2005-09-28 14:23:06 +00003620 INSTALL=$ac_install_sh
3621 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003622fi
jfigusc7e66e32013-05-08 11:32:55 -04003623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3624$as_echo "$INSTALL" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003625
David McGrewb67061f2005-09-28 14:23:06 +00003626# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3627# It thinks the first close brace ends the variable substitution.
3628test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00003629
David McGrewb67061f2005-09-28 14:23:06 +00003630test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3631
3632test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00003633
Idar Tollefsen600ad962017-01-26 11:24:51 +01003634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3635$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3636if ${ac_cv_path_SED+:} false; then :
3637 $as_echo_n "(cached) " >&6
3638else
3639 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3640 for ac_i in 1 2 3 4 5 6 7; do
3641 ac_script="$ac_script$as_nl$ac_script"
3642 done
3643 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3644 { ac_script=; unset ac_script;}
3645 if test -z "$SED"; then
3646 ac_path_SED_found=false
3647 # Loop through the user's path and test for each of PROGNAME-LIST
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649for as_dir in $PATH
3650do
3651 IFS=$as_save_IFS
3652 test -z "$as_dir" && as_dir=.
3653 for ac_prog in sed gsed; do
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3656 as_fn_executable_p "$ac_path_SED" || continue
3657# Check for GNU ac_path_SED and select it if it is found.
3658 # Check for GNU $ac_path_SED
3659case `"$ac_path_SED" --version 2>&1` in
3660*GNU*)
3661 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3662*)
3663 ac_count=0
3664 $as_echo_n 0123456789 >"conftest.in"
3665 while :
3666 do
3667 cat "conftest.in" "conftest.in" >"conftest.tmp"
3668 mv "conftest.tmp" "conftest.in"
3669 cp "conftest.in" "conftest.nl"
3670 $as_echo '' >> "conftest.nl"
3671 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3673 as_fn_arith $ac_count + 1 && ac_count=$as_val
3674 if test $ac_count -gt ${ac_path_SED_max-0}; then
3675 # Best one so far, save it but keep looking for a better one
3676 ac_cv_path_SED="$ac_path_SED"
3677 ac_path_SED_max=$ac_count
3678 fi
3679 # 10*(2^10) chars as input seems more than enough
3680 test $ac_count -gt 10 && break
3681 done
3682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3683esac
3684
3685 $ac_path_SED_found && break 3
3686 done
3687 done
3688 done
3689IFS=$as_save_IFS
3690 if test -z "$ac_cv_path_SED"; then
3691 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3692 fi
3693else
3694 ac_cv_path_SED=$SED
3695fi
3696
3697fi
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3699$as_echo "$ac_cv_path_SED" >&6; }
3700 SED="$ac_cv_path_SED"
3701 rm -f conftest.sed
3702
Cullen Jennings235513a2005-09-21 22:51:36 +00003703
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003704
jfigusc7e66e32013-05-08 11:32:55 -04003705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3706$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3707if ${ac_cv_path_GREP+:} false; then :
3708 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003709else
jfigusc7e66e32013-05-08 11:32:55 -04003710 if test -z "$GREP"; then
3711 ac_path_GREP_found=false
3712 # Loop through the user's path and test for each of PROGNAME-LIST
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3715do
3716 IFS=$as_save_IFS
3717 test -z "$as_dir" && as_dir=.
3718 for ac_prog in grep ggrep; do
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3721 as_fn_executable_p "$ac_path_GREP" || continue
3722# Check for GNU ac_path_GREP and select it if it is found.
3723 # Check for GNU $ac_path_GREP
3724case `"$ac_path_GREP" --version 2>&1` in
3725*GNU*)
3726 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3727*)
3728 ac_count=0
3729 $as_echo_n 0123456789 >"conftest.in"
3730 while :
3731 do
3732 cat "conftest.in" "conftest.in" >"conftest.tmp"
3733 mv "conftest.tmp" "conftest.in"
3734 cp "conftest.in" "conftest.nl"
3735 $as_echo 'GREP' >> "conftest.nl"
3736 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3737 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3738 as_fn_arith $ac_count + 1 && ac_count=$as_val
3739 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3740 # Best one so far, save it but keep looking for a better one
3741 ac_cv_path_GREP="$ac_path_GREP"
3742 ac_path_GREP_max=$ac_count
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003743 fi
jfigusc7e66e32013-05-08 11:32:55 -04003744 # 10*(2^10) chars as input seems more than enough
3745 test $ac_count -gt 10 && break
3746 done
3747 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3748esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003749
jfigusc7e66e32013-05-08 11:32:55 -04003750 $ac_path_GREP_found && break 3
3751 done
3752 done
3753 done
3754IFS=$as_save_IFS
3755 if test -z "$ac_cv_path_GREP"; then
3756 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3757 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003758else
jfigusc7e66e32013-05-08 11:32:55 -04003759 ac_cv_path_GREP=$GREP
3760fi
3761
3762fi
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3764$as_echo "$ac_cv_path_GREP" >&6; }
3765 GREP="$ac_cv_path_GREP"
3766
3767
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3769$as_echo_n "checking for egrep... " >&6; }
3770if ${ac_cv_path_EGREP+:} false; then :
3771 $as_echo_n "(cached) " >&6
3772else
3773 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3774 then ac_cv_path_EGREP="$GREP -E"
3775 else
3776 if test -z "$EGREP"; then
3777 ac_path_EGREP_found=false
3778 # Loop through the user's path and test for each of PROGNAME-LIST
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3781do
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
3784 for ac_prog in egrep; do
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3787 as_fn_executable_p "$ac_path_EGREP" || continue
3788# Check for GNU ac_path_EGREP and select it if it is found.
3789 # Check for GNU $ac_path_EGREP
3790case `"$ac_path_EGREP" --version 2>&1` in
3791*GNU*)
3792 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3793*)
3794 ac_count=0
3795 $as_echo_n 0123456789 >"conftest.in"
3796 while :
3797 do
3798 cat "conftest.in" "conftest.in" >"conftest.tmp"
3799 mv "conftest.tmp" "conftest.in"
3800 cp "conftest.in" "conftest.nl"
3801 $as_echo 'EGREP' >> "conftest.nl"
3802 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3804 as_fn_arith $ac_count + 1 && ac_count=$as_val
3805 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3806 # Best one so far, save it but keep looking for a better one
3807 ac_cv_path_EGREP="$ac_path_EGREP"
3808 ac_path_EGREP_max=$ac_count
3809 fi
3810 # 10*(2^10) chars as input seems more than enough
3811 test $ac_count -gt 10 && break
3812 done
3813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3814esac
3815
3816 $ac_path_EGREP_found && break 3
3817 done
3818 done
3819 done
3820IFS=$as_save_IFS
3821 if test -z "$ac_cv_path_EGREP"; then
3822 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3823 fi
3824else
3825 ac_cv_path_EGREP=$EGREP
3826fi
3827
3828 fi
3829fi
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3831$as_echo "$ac_cv_path_EGREP" >&6; }
3832 EGREP="$ac_cv_path_EGREP"
3833
3834
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3836$as_echo_n "checking for ANSI C header files... " >&6; }
3837if ${ac_cv_header_stdc+:} false; then :
3838 $as_echo_n "(cached) " >&6
3839else
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003841/* end confdefs.h. */
3842#include <stdlib.h>
3843#include <stdarg.h>
3844#include <string.h>
3845#include <float.h>
3846
3847int
3848main ()
3849{
3850
3851 ;
3852 return 0;
3853}
3854_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003855if ac_fn_c_try_compile "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003856 ac_cv_header_stdc=yes
3857else
jfigusc7e66e32013-05-08 11:32:55 -04003858 ac_cv_header_stdc=no
jfigusa14b5a02013-03-29 12:24:12 -04003859fi
jfigusc7e66e32013-05-08 11:32:55 -04003860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003861
3862if test $ac_cv_header_stdc = yes; then
3863 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003865/* end confdefs.h. */
3866#include <string.h>
3867
3868_ACEOF
3869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003870 $EGREP "memchr" >/dev/null 2>&1; then :
3871
jfigusa14b5a02013-03-29 12:24:12 -04003872else
3873 ac_cv_header_stdc=no
3874fi
3875rm -f conftest*
3876
3877fi
3878
3879if test $ac_cv_header_stdc = yes; then
3880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003882/* end confdefs.h. */
3883#include <stdlib.h>
3884
3885_ACEOF
3886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003887 $EGREP "free" >/dev/null 2>&1; then :
3888
jfigusa14b5a02013-03-29 12:24:12 -04003889else
3890 ac_cv_header_stdc=no
3891fi
3892rm -f conftest*
3893
3894fi
3895
3896if test $ac_cv_header_stdc = yes; then
3897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jfigusc7e66e32013-05-08 11:32:55 -04003898 if test "$cross_compiling" = yes; then :
jfigusa14b5a02013-03-29 12:24:12 -04003899 :
3900else
jfigusc7e66e32013-05-08 11:32:55 -04003901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003902/* end confdefs.h. */
3903#include <ctype.h>
jfigusc7e66e32013-05-08 11:32:55 -04003904#include <stdlib.h>
jfigusa14b5a02013-03-29 12:24:12 -04003905#if ((' ' & 0x0FF) == 0x020)
3906# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3907# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3908#else
3909# define ISLOWER(c) \
3910 (('a' <= (c) && (c) <= 'i') \
3911 || ('j' <= (c) && (c) <= 'r') \
3912 || ('s' <= (c) && (c) <= 'z'))
3913# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3914#endif
3915
3916#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3917int
3918main ()
3919{
3920 int i;
3921 for (i = 0; i < 256; i++)
3922 if (XOR (islower (i), ISLOWER (i))
3923 || toupper (i) != TOUPPER (i))
jfigusc7e66e32013-05-08 11:32:55 -04003924 return 2;
3925 return 0;
jfigusa14b5a02013-03-29 12:24:12 -04003926}
3927_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003928if ac_fn_c_try_run "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003929
jfigusc7e66e32013-05-08 11:32:55 -04003930else
3931 ac_cv_header_stdc=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003932fi
jfigusc7e66e32013-05-08 11:32:55 -04003933rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3934 conftest.$ac_objext conftest.beam conftest.$ac_ext
3935fi
3936
jfigusa14b5a02013-03-29 12:24:12 -04003937fi
3938fi
jfigusc7e66e32013-05-08 11:32:55 -04003939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3940$as_echo "$ac_cv_header_stdc" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04003941if test $ac_cv_header_stdc = yes; then
3942
jfigusc7e66e32013-05-08 11:32:55 -04003943$as_echo "#define STDC_HEADERS 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04003944
3945fi
3946
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003947# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003948for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3949 inttypes.h stdint.h unistd.h
jfigusc7e66e32013-05-08 11:32:55 -04003950do :
3951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3952ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3953"
3954if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003955 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003956#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003957_ACEOF
3958
3959fi
3960
3961done
3962
3963
jfigusc7e66e32013-05-08 11:32:55 -04003964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3965$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3966if ${ac_cv_c_bigendian+:} false; then :
3967 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003968else
jfigusc7e66e32013-05-08 11:32:55 -04003969 ac_cv_c_bigendian=unknown
3970 # See if we're dealing with a universal compiler.
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003972/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003973#ifndef __APPLE_CC__
3974 not a universal capable compiler
3975 #endif
3976 typedef int dummy;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003977
jfigusc7e66e32013-05-08 11:32:55 -04003978_ACEOF
3979if ac_fn_c_try_compile "$LINENO"; then :
3980
3981 # Check for potential -arch flags. It is not universal unless
3982 # there are at least two -arch flags with different values.
3983 ac_arch=
3984 ac_prev=
3985 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3986 if test -n "$ac_prev"; then
3987 case $ac_word in
3988 i?86 | x86_64 | ppc | ppc64)
3989 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3990 ac_arch=$ac_word
3991 else
3992 ac_cv_c_bigendian=universal
3993 break
3994 fi
3995 ;;
3996 esac
3997 ac_prev=
3998 elif test "x$ac_word" = "x-arch"; then
3999 ac_prev=arch
4000 fi
4001 done
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004002fi
jfigusc7e66e32013-05-08 11:32:55 -04004003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004 if test $ac_cv_c_bigendian = unknown; then
4005 # See if sys/param.h defines the BYTE_ORDER macro.
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004007/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004008#include <sys/types.h>
4009 #include <sys/param.h>
4010
4011int
4012main ()
4013{
4014#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4015 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4016 && LITTLE_ENDIAN)
4017 bogus endian macros
4018 #endif
4019
4020 ;
4021 return 0;
4022}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004023_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004024if ac_fn_c_try_compile "$LINENO"; then :
4025 # It does; now see whether it defined to BIG_ENDIAN or not.
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004027/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004028#include <sys/types.h>
4029 #include <sys/param.h>
4030
4031int
4032main ()
4033{
4034#if BYTE_ORDER != BIG_ENDIAN
4035 not big endian
4036 #endif
4037
4038 ;
4039 return 0;
4040}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004041_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004042if ac_fn_c_try_compile "$LINENO"; then :
4043 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004044else
jfigusc7e66e32013-05-08 11:32:55 -04004045 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004046fi
jfigusc7e66e32013-05-08 11:32:55 -04004047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048fi
4049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050 fi
4051 if test $ac_cv_c_bigendian = unknown; then
4052 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004054/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004055#include <limits.h>
4056
4057int
4058main ()
4059{
4060#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4061 bogus endian macros
4062 #endif
4063
4064 ;
4065 return 0;
4066}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004067_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004068if ac_fn_c_try_compile "$LINENO"; then :
4069 # It does; now see whether it defined to _BIG_ENDIAN or not.
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004071/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004072#include <limits.h>
4073
4074int
4075main ()
4076{
4077#ifndef _BIG_ENDIAN
4078 not big endian
4079 #endif
4080
4081 ;
4082 return 0;
4083}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004084_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004085if ac_fn_c_try_compile "$LINENO"; then :
4086 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004087else
jfigusc7e66e32013-05-08 11:32:55 -04004088 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004089fi
jfigusc7e66e32013-05-08 11:32:55 -04004090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091fi
4092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 fi
4094 if test $ac_cv_c_bigendian = unknown; then
4095 # Compile a test program.
4096 if test "$cross_compiling" = yes; then :
4097 # Try to guess by grepping values from an object file.
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004099/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004100short int ascii_mm[] =
4101 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4102 short int ascii_ii[] =
4103 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4104 int use_ascii (int i) {
4105 return ascii_mm[i] + ascii_ii[i];
4106 }
4107 short int ebcdic_ii[] =
4108 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4109 short int ebcdic_mm[] =
4110 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4111 int use_ebcdic (int i) {
4112 return ebcdic_mm[i] + ebcdic_ii[i];
4113 }
4114 extern int foo;
4115
4116int
4117main ()
4118{
4119return use_ascii (foo) == use_ebcdic (foo);
4120 ;
4121 return 0;
4122}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004123_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004124if ac_fn_c_try_compile "$LINENO"; then :
4125 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4126 ac_cv_c_bigendian=yes
4127 fi
4128 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4129 if test "$ac_cv_c_bigendian" = unknown; then
4130 ac_cv_c_bigendian=no
4131 else
4132 # finding both strings is unlikely to happen, but who knows?
4133 ac_cv_c_bigendian=unknown
4134 fi
4135 fi
4136fi
4137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004138else
jfigusc7e66e32013-05-08 11:32:55 -04004139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004140/* end confdefs.h. */
4141$ac_includes_default
4142int
4143main ()
4144{
jfigusc7e66e32013-05-08 11:32:55 -04004145
4146 /* Are we little or big endian? From Harbison&Steele. */
4147 union
4148 {
4149 long int l;
4150 char c[sizeof (long int)];
4151 } u;
4152 u.l = 1;
4153 return u.c[sizeof (long int) - 1] == 1;
4154
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004155 ;
4156 return 0;
4157}
4158_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004159if ac_fn_c_try_run "$LINENO"; then :
4160 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004161else
jfigusc7e66e32013-05-08 11:32:55 -04004162 ac_cv_c_bigendian=yes
4163fi
4164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4165 conftest.$ac_objext conftest.beam conftest.$ac_ext
4166fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004167
jfigusc7e66e32013-05-08 11:32:55 -04004168 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004169fi
jfigusc7e66e32013-05-08 11:32:55 -04004170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4171$as_echo "$ac_cv_c_bigendian" >&6; }
4172 case $ac_cv_c_bigendian in #(
4173 yes)
4174 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4175;; #(
4176 no)
4177 ;; #(
4178 universal)
4179
4180$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4181
4182 ;; #(
4183 *)
4184 as_fn_error $? "unknown endianness
4185 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4186 esac
4187
4188
4189# Make sure we can run config.sub.
4190$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4191 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4192
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4194$as_echo_n "checking build system type... " >&6; }
4195if ${ac_cv_build+:} false; then :
4196 $as_echo_n "(cached) " >&6
4197else
4198 ac_build_alias=$build_alias
4199test "x$ac_build_alias" = x &&
4200 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4201test "x$ac_build_alias" = x &&
4202 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4203ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4204 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4205
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004206fi
jfigusc7e66e32013-05-08 11:32:55 -04004207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4208$as_echo "$ac_cv_build" >&6; }
4209case $ac_cv_build in
4210*-*-*) ;;
4211*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4212esac
4213build=$ac_cv_build
4214ac_save_IFS=$IFS; IFS='-'
4215set x $ac_cv_build
4216shift
4217build_cpu=$1
4218build_vendor=$2
4219shift; shift
4220# Remember, the first character of IFS is used to create $*,
4221# except with old shells:
4222build_os=$*
4223IFS=$ac_save_IFS
4224case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4225
4226
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4228$as_echo_n "checking host system type... " >&6; }
4229if ${ac_cv_host+:} false; then :
4230 $as_echo_n "(cached) " >&6
4231else
4232 if test "x$host_alias" = x; then
4233 ac_cv_host=$ac_cv_build
4234else
4235 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4236 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4237fi
4238
4239fi
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4241$as_echo "$ac_cv_host" >&6; }
4242case $ac_cv_host in
4243*-*-*) ;;
4244*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4245esac
4246host=$ac_cv_host
4247ac_save_IFS=$IFS; IFS='-'
4248set x $ac_cv_host
4249shift
4250host_cpu=$1
4251host_vendor=$2
4252shift; shift
4253# Remember, the first character of IFS is used to create $*,
4254# except with old shells:
4255host_os=$*
4256IFS=$ac_save_IFS
4257case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4258
4259
4260
4261case $host_cpu in
Idar Tollefsen600ad962017-01-26 11:24:51 +01004262 i*86 | x86_64 )
jfigusc7e66e32013-05-08 11:32:55 -04004263
4264$as_echo "#define CPU_CISC 1" >>confdefs.h
4265
4266
4267$as_echo "#define HAVE_X86 1" >>confdefs.h
Idar Tollefsen600ad962017-01-26 11:24:51 +01004268
4269 ;;
4270 * )
jfigusc7e66e32013-05-08 11:32:55 -04004271
4272$as_echo "#define CPU_RISC 1" >>confdefs.h
jfigusfb838412014-12-04 10:15:47 -05004273
Idar Tollefsen600ad962017-01-26 11:24:51 +01004274 ;;
jfigusc7e66e32013-05-08 11:32:55 -04004275esac
4276
4277case $host_os in
Idar Tollefsen600ad962017-01-26 11:24:51 +01004278 *cygwin*|*mingw* )
4279 EXE=.exe
4280 ;;
4281 * )
4282 EXE=""
4283 ;;
jfigusc7e66e32013-05-08 11:32:55 -04004284esac
4285 # define executable suffix; this is needed for `make clean'
4286
Idar Tollefsen600ad962017-01-26 11:24:51 +01004287supported_cflags=""
4288if test "$EMPTY_CFLAGS" = "no"; then
4289 supported_cflags="$CFLAGS"
4290fi
4291
4292WERROR=""
4293for w in -Werror -errwarn; do
4294 if test "x$WERROR" = "x"; then
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $w" >&5
4296$as_echo_n "checking whether ${CC-c} accepts $w... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004297 save_cflags="$CFLAGS"
4298 if test "x$CFLAGS" = "x"; then :
4299 CFLAGS="$w"
4300else
4301 CFLAGS="$CFLAGS $w"
4302fi
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004305int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004306_ACEOF
4307if ac_fn_c_try_compile "$LINENO"; then :
4308 WERROR="$w"
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4310$as_echo "yes" >&6; }
4311else
4312 CFLAGS="$save_cflags"
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314$as_echo "no" >&6; }
4315fi
4316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317 fi
4318done
4319
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts -fPIC" >&5
4321$as_echo_n "checking whether ${CC-c} accepts -fPIC... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004322save_cflags="$CFLAGS"
4323if test "x$CFLAGS" = "x"; then :
4324 CFLAGS="-fPIC"
4325else
4326 CFLAGS="$CFLAGS -fPIC"
4327fi
4328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004330int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004331_ACEOF
4332if ac_fn_c_try_compile "$LINENO"; then :
4333 if test "x$supported_cflags" = "x"; then :
4334 supported_cflags="-fPIC"
4335else
4336 supported_cflags="$supported_cflags -fPIC"
4337fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01004338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4339$as_echo "yes" >&6; }
4340else
4341 CFLAGS="$save_cflags"
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343$as_echo "no" >&6; }
4344fi
4345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346
4347if test "$EMPTY_CFLAGS" = "yes"; then
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004348 for f in -Wall -pedantic -Wstrict-prototypes; do
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4350$as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004351 save_cflags="$CFLAGS"
4352 if test "x$CFLAGS" = "x"; then :
4353 CFLAGS="$f"
4354else
4355 CFLAGS="$CFLAGS $f"
4356fi
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004359int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004360_ACEOF
4361if ac_fn_c_try_compile "$LINENO"; then :
4362 if test "x$supported_cflags" = "x"; then :
4363 supported_cflags="$f"
4364else
4365 supported_cflags="$supported_cflags $f"
4366fi
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4368$as_echo "yes" >&6; }
4369else
4370 CFLAGS="$save_cflags"
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372$as_echo "no" >&6; }
4373fi
4374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 done
4376
4377 OOPT=""
4378 for f in -O4 -O3; do
4379 if test "x$OOPT" = "x"; then
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4381$as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004382 save_cflags="$CFLAGS"
4383 if test "x$CFLAGS" = "x"; then :
4384 CFLAGS="$f"
4385else
4386 CFLAGS="$CFLAGS $f"
4387fi
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004390int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004391_ACEOF
4392if ac_fn_c_try_compile "$LINENO"; then :
4393 if test "x$supported_cflags" = "x"; then :
4394 supported_cflags="$f"
4395else
4396 supported_cflags="$supported_cflags $f"
4397fi
4398 OOPT="$f"
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4400$as_echo "yes" >&6; }
4401else
4402 CFLAGS="$save_cflags"
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4404$as_echo "no" >&6; }
4405fi
4406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 fi
4408 done
4409
4410 for f in -fexpensive-optimizations -funroll-loops; do
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4412$as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004413 save_cflags="$CFLAGS"
4414 if test "x$CFLAGS" = "x"; then :
4415 CFLAGS="$f"
4416else
4417 CFLAGS="$CFLAGS $f"
4418fi
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004421int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004422_ACEOF
4423if ac_fn_c_try_compile "$LINENO"; then :
4424 if test "x$supported_cflags" = "x"; then :
4425 supported_cflags="$f"
4426else
4427 supported_cflags="$supported_cflags $f"
4428fi
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4430$as_echo "yes" >&6; }
4431else
4432 CFLAGS="$save_cflags"
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434$as_echo "no" >&6; }
4435fi
4436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 done
4438fi
4439
4440for f in -Wno-language-extension-token; do
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4442$as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004443 save_cflags="$CFLAGS"
4444 testf=$(echo "$f" | $SED 's|-Wno-\(.*\)|-W\1|g')
4445 if test "x$CFLAGS" = "x"; then :
4446 CFLAGS="$testf"
4447else
4448 CFLAGS="$CFLAGS $testf"
4449fi
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004452int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004453_ACEOF
4454if ac_fn_c_try_compile "$LINENO"; then :
4455 if test "x$supported_cflags" = "x"; then :
4456 supported_cflags="$f"
4457else
4458 supported_cflags="$supported_cflags $f"
4459fi
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4461$as_echo "yes" >&6; }
4462else
4463 CFLAGS="$save_cflags"
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465$as_echo "no" >&6; }
4466fi
4467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468done
4469
4470CFLAGS="$supported_cflags"
jfigusc7e66e32013-05-08 11:32:55 -04004471
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4473$as_echo_n "checking for ANSI C header files... " >&6; }
4474if ${ac_cv_header_stdc+:} false; then :
4475 $as_echo_n "(cached) " >&6
4476else
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478/* end confdefs.h. */
4479#include <stdlib.h>
4480#include <stdarg.h>
4481#include <string.h>
4482#include <float.h>
4483
4484int
4485main ()
4486{
4487
4488 ;
4489 return 0;
4490}
4491_ACEOF
4492if ac_fn_c_try_compile "$LINENO"; then :
4493 ac_cv_header_stdc=yes
4494else
4495 ac_cv_header_stdc=no
4496fi
4497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498
4499if test $ac_cv_header_stdc = yes; then
4500 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502/* end confdefs.h. */
4503#include <string.h>
4504
4505_ACEOF
4506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4507 $EGREP "memchr" >/dev/null 2>&1; then :
4508
4509else
4510 ac_cv_header_stdc=no
4511fi
4512rm -f conftest*
4513
4514fi
4515
4516if test $ac_cv_header_stdc = yes; then
4517 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519/* end confdefs.h. */
4520#include <stdlib.h>
4521
4522_ACEOF
4523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4524 $EGREP "free" >/dev/null 2>&1; then :
4525
4526else
4527 ac_cv_header_stdc=no
4528fi
4529rm -f conftest*
4530
4531fi
4532
4533if test $ac_cv_header_stdc = yes; then
4534 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4535 if test "$cross_compiling" = yes; then :
4536 :
4537else
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539/* end confdefs.h. */
4540#include <ctype.h>
4541#include <stdlib.h>
4542#if ((' ' & 0x0FF) == 0x020)
4543# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4544# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4545#else
4546# define ISLOWER(c) \
4547 (('a' <= (c) && (c) <= 'i') \
4548 || ('j' <= (c) && (c) <= 'r') \
4549 || ('s' <= (c) && (c) <= 'z'))
4550# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4551#endif
4552
4553#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4554int
4555main ()
4556{
4557 int i;
4558 for (i = 0; i < 256; i++)
4559 if (XOR (islower (i), ISLOWER (i))
4560 || toupper (i) != TOUPPER (i))
4561 return 2;
4562 return 0;
4563}
4564_ACEOF
4565if ac_fn_c_try_run "$LINENO"; then :
4566
4567else
4568 ac_cv_header_stdc=no
4569fi
4570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4571 conftest.$ac_objext conftest.beam conftest.$ac_ext
4572fi
4573
4574fi
4575fi
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4577$as_echo "$ac_cv_header_stdc" >&6; }
4578if test $ac_cv_header_stdc = yes; then
4579
4580$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4581
4582fi
4583
Idar Tollefsen600ad962017-01-26 11:24:51 +01004584for ac_header in unistd.h byteswap.h stdint.h sys/uio.h inttypes.h sys/types.h machine/types.h sys/int_types.h
jfigusc7e66e32013-05-08 11:32:55 -04004585do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01004586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4587ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4588"
4589if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
jfigusc7e66e32013-05-08 11:32:55 -04004590 cat >>confdefs.h <<_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01004591#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
jfigusc7e66e32013-05-08 11:32:55 -04004592_ACEOF
4593
4594fi
4595
4596done
4597
4598
4599for ac_header in sys/socket.h netinet/in.h arpa/inet.h
4600do :
4601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Idar Tollefsen600ad962017-01-26 11:24:51 +01004602ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4603"
jfigusc7e66e32013-05-08 11:32:55 -04004604if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4605 cat >>confdefs.h <<_ACEOF
4606#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4607_ACEOF
4608
4609fi
4610
4611done
4612
4613for ac_header in windows.h
4614do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01004615 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4616"
jfigusc7e66e32013-05-08 11:32:55 -04004617if test "x$ac_cv_header_windows_h" = xyes; then :
4618 cat >>confdefs.h <<_ACEOF
4619#define HAVE_WINDOWS_H 1
4620_ACEOF
4621 for ac_header in winsock2.h
4622do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01004623 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default
4624"
jfigusc7e66e32013-05-08 11:32:55 -04004625if test "x$ac_cv_header_winsock2_h" = xyes; then :
4626 cat >>confdefs.h <<_ACEOF
4627#define HAVE_WINSOCK2_H 1
4628_ACEOF
4629
4630fi
4631
4632done
4633
4634fi
4635
4636done
4637
4638
jfigusc7e66e32013-05-08 11:32:55 -04004639ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
4640if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004641
David McGrewfec49dd2005-09-23 19:34:11 +00004642cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004643#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004644_ACEOF
4645
4646
4647fi
jfigusc7e66e32013-05-08 11:32:55 -04004648ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4649if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004650
4651cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004652#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004653_ACEOF
4654
4655
4656fi
jfigusc7e66e32013-05-08 11:32:55 -04004657ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4658if test "x$ac_cv_type_int16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004659
4660cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004661#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004662_ACEOF
4663
4664
4665fi
jfigusc7e66e32013-05-08 11:32:55 -04004666ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4667if test "x$ac_cv_type_uint16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004668
4669cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004670#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004671_ACEOF
4672
4673
4674fi
jfigusc7e66e32013-05-08 11:32:55 -04004675ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
4676if test "x$ac_cv_type_int32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004677
4678cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004679#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004680_ACEOF
4681
4682
4683fi
jfigusc7e66e32013-05-08 11:32:55 -04004684ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4685if test "x$ac_cv_type_uint32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004686
4687cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004688#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004689_ACEOF
4690
4691
4692fi
jfigusc7e66e32013-05-08 11:32:55 -04004693ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4694if test "x$ac_cv_type_uint64_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004695
4696cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004697#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004698_ACEOF
4699
4700
4701fi
4702
jfigusc7e66e32013-05-08 11:32:55 -04004703# The cast to long int works around a bug in the HP C Compiler
4704# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4705# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4706# This bug is HP SR number 8606223364.
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4708$as_echo_n "checking size of unsigned long... " >&6; }
4709if ${ac_cv_sizeof_unsigned_long+:} false; then :
4710 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004711else
jfigusc7e66e32013-05-08 11:32:55 -04004712 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 +00004713
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004714else
4715 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4718as_fn_error 77 "cannot compute sizeof (unsigned long)
4719See \`config.log' for more details" "$LINENO" 5; }
4720 else
4721 ac_cv_sizeof_unsigned_long=0
4722 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004723fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004724
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004725fi
jfigusc7e66e32013-05-08 11:32:55 -04004726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4727$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004728
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004729
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004730
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004731cat >>confdefs.h <<_ACEOF
4732#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
4733_ACEOF
4734
David McGrewfec49dd2005-09-23 19:34:11 +00004735
jfigusc7e66e32013-05-08 11:32:55 -04004736# The cast to long int works around a bug in the HP C Compiler
4737# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4738# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4739# This bug is HP SR number 8606223364.
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
4741$as_echo_n "checking size of unsigned long long... " >&6; }
4742if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
4743 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00004744else
jfigusc7e66e32013-05-08 11:32:55 -04004745 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 +00004746
David McGrewfec49dd2005-09-23 19:34:11 +00004747else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004748 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4751as_fn_error 77 "cannot compute sizeof (unsigned long long)
4752See \`config.log' for more details" "$LINENO" 5; }
4753 else
4754 ac_cv_sizeof_unsigned_long_long=0
4755 fi
David McGrewfec49dd2005-09-23 19:34:11 +00004756fi
4757
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004758fi
jfigusc7e66e32013-05-08 11:32:55 -04004759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
4760$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004761
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004762
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004763
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004764cat >>confdefs.h <<_ACEOF
4765#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00004766_ACEOF
4767
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004768
Cullen Jennings235513a2005-09-21 22:51:36 +00004769
jfigusc7e66e32013-05-08 11:32:55 -04004770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4771$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4772if ${ac_cv_c_const+:} false; then :
4773 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004774else
jfigusc7e66e32013-05-08 11:32:55 -04004775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004776/* end confdefs.h. */
4777
4778int
4779main ()
4780{
jfigusc7e66e32013-05-08 11:32:55 -04004781
Cullen Jennings235513a2005-09-21 22:51:36 +00004782#ifndef __cplusplus
jfigusc7e66e32013-05-08 11:32:55 -04004783 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00004784 typedef int charset[2];
jfigusc7e66e32013-05-08 11:32:55 -04004785 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00004786 /* SunOS 4.1.1 cc rejects this. */
jfigusc7e66e32013-05-08 11:32:55 -04004787 char const *const *pcpcc;
4788 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00004789 /* NEC SVR4.0.2 mips cc rejects this. */
4790 struct point {int x, y;};
4791 static struct point const zero = {0,0};
4792 /* AIX XL C 1.02.0.0 rejects this.
4793 It does not let you subtract one const X* pointer from another in
4794 an arm of an if-expression whose if-part is not a constant
4795 expression */
4796 const char *g = "string";
jfigusc7e66e32013-05-08 11:32:55 -04004797 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00004798 /* HPUX 7.0 cc rejects these. */
jfigusc7e66e32013-05-08 11:32:55 -04004799 ++pcpcc;
4800 ppc = (char**) pcpcc;
4801 pcpcc = (char const *const *) ppc;
4802 { /* SCO 3.2v4 cc rejects this sort of thing. */
4803 char tx;
4804 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00004805 char const *s = 0 ? (char *) 0 : (char const *) 0;
4806
4807 *t++ = 0;
jfigusc7e66e32013-05-08 11:32:55 -04004808 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004809 }
4810 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4811 int x[] = {25, 17};
4812 const int *foo = &x[0];
4813 ++foo;
4814 }
4815 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4816 typedef const int *iptr;
4817 iptr p = 0;
4818 ++p;
4819 }
jfigusc7e66e32013-05-08 11:32:55 -04004820 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00004821 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusc7e66e32013-05-08 11:32:55 -04004822 struct s { int j; const int *ap[3]; } bx;
4823 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00004824 }
4825 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4826 const int foo = 10;
jfigusc7e66e32013-05-08 11:32:55 -04004827 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004828 }
jfigusc7e66e32013-05-08 11:32:55 -04004829 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00004830#endif
4831
4832 ;
4833 return 0;
4834}
4835_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004836if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004837 ac_cv_c_const=yes
4838else
jfigusc7e66e32013-05-08 11:32:55 -04004839 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00004840fi
jfigusc7e66e32013-05-08 11:32:55 -04004841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004842fi
jfigusc7e66e32013-05-08 11:32:55 -04004843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4844$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004845if test $ac_cv_c_const = no; then
4846
jfigusc7e66e32013-05-08 11:32:55 -04004847$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004848
4849fi
4850
jfigusc7e66e32013-05-08 11:32:55 -04004851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4852$as_echo_n "checking for inline... " >&6; }
4853if ${ac_cv_c_inline+:} false; then :
4854 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004855else
4856 ac_cv_c_inline=no
4857for ac_kw in inline __inline__ __inline; do
jfigusc7e66e32013-05-08 11:32:55 -04004858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004859/* end confdefs.h. */
4860#ifndef __cplusplus
4861typedef int foo_t;
4862static $ac_kw foo_t static_foo () {return 0; }
4863$ac_kw foo_t foo () {return 0; }
4864#endif
4865
4866_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004867if ac_fn_c_try_compile "$LINENO"; then :
4868 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00004869fi
jfigusc7e66e32013-05-08 11:32:55 -04004870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00004872done
4873
4874fi
jfigusc7e66e32013-05-08 11:32:55 -04004875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4876$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00004877
Cullen Jennings235513a2005-09-21 22:51:36 +00004878case $ac_cv_c_inline in
4879 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00004880 *)
4881 case $ac_cv_c_inline in
4882 no) ac_val=;;
4883 *) ac_val=$ac_cv_c_inline;;
4884 esac
4885 cat >>confdefs.h <<_ACEOF
4886#ifndef __cplusplus
4887#define inline $ac_val
4888#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00004889_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00004890 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00004891esac
4892
jfigusc7e66e32013-05-08 11:32:55 -04004893ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4894if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004895
Cullen Jennings235513a2005-09-21 22:51:36 +00004896else
4897
4898cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004899#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00004900_ACEOF
4901
4902fi
4903
4904
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00004905for ac_func in socket inet_aton usleep sigaction
jfigusc7e66e32013-05-08 11:32:55 -04004906do :
4907 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4908ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4909if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004910 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004911#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00004912_ACEOF
4913
4914fi
4915done
4916
4917
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004918if test "x$ac_cv_func_socket" = "xno"; then
jfigusc7e66e32013-05-08 11:32:55 -04004919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4920$as_echo_n "checking for socket in -lsocket... " >&6; }
4921if ${ac_cv_lib_socket_socket+:} false; then :
4922 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00004923else
4924 ac_check_lib_save_LIBS=$LIBS
4925LIBS="-lsocket $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04004926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004927/* end confdefs.h. */
4928
jfigusc7e66e32013-05-08 11:32:55 -04004929/* Override any GCC internal prototype to avoid an error.
4930 Use char because int might match the return type of a GCC
4931 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00004932#ifdef __cplusplus
4933extern "C"
4934#endif
David McGrewb67061f2005-09-28 14:23:06 +00004935char socket ();
4936int
4937main ()
4938{
jfigusc7e66e32013-05-08 11:32:55 -04004939return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00004940 ;
4941 return 0;
4942}
4943_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004944if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00004945 ac_cv_lib_socket_socket=yes
4946else
jfigusc7e66e32013-05-08 11:32:55 -04004947 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00004948fi
jfigusc7e66e32013-05-08 11:32:55 -04004949rm -f core conftest.err conftest.$ac_objext \
4950 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004951LIBS=$ac_check_lib_save_LIBS
4952fi
jfigusc7e66e32013-05-08 11:32:55 -04004953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4954$as_echo "$ac_cv_lib_socket_socket" >&6; }
4955if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00004956 cat >>confdefs.h <<_ACEOF
4957#define HAVE_LIBSOCKET 1
4958_ACEOF
4959
4960 LIBS="-lsocket $LIBS"
4961
4962fi
4963
jfigusc7e66e32013-05-08 11:32:55 -04004964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
4965$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004966 SAVELIBS="$LIBS"
4967 LIBS="$LIBS -lwsock32"
jfigusc7e66e32013-05-08 11:32:55 -04004968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004969/* end confdefs.h. */
4970
4971#include <winsock2.h>
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004972int main(void)
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004973{
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004974 int fd = socket(0, 0, 0);
4975 if (fd < 0)
4976 return -1;
4977 else
4978 return 0;
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004979}
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004980
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004981_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004982if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004983 ac_cv_func_socket=yes
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
jfigusc7e66e32013-05-08 11:32:55 -04004985$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004986else
jfigusc7e66e32013-05-08 11:32:55 -04004987 LIBS="$SAVELIBS"
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
jfigusc7e66e32013-05-08 11:32:55 -04004989$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004990fi
jfigusc7e66e32013-05-08 11:32:55 -04004991rm -f core conftest.err conftest.$ac_objext \
4992 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004993fi
David McGrewb67061f2005-09-28 14:23:06 +00004994
Pascal Bühler75918862017-02-19 18:33:50 +01004995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug logging in all modules" >&5
4996$as_echo_n "checking whether to enable debug logging in all modules... " >&6; }
4997# Check whether --enable-debug-logging was given.
4998if test "${enable_debug_logging+set}" = set; then :
4999 enableval=$enable_debug_logging;
David McGrewb67061f2005-09-28 14:23:06 +00005000else
Pascal Bühler75918862017-02-19 18:33:50 +01005001 enable_debug_logging=no
jfigusc7e66e32013-05-08 11:32:55 -04005002fi
5003
Pascal Bühler75918862017-02-19 18:33:50 +01005004if test "$enable_debug_logging" = "yes"; then
David McGrewb67061f2005-09-28 14:23:06 +00005005
Pascal Bühler75918862017-02-19 18:33:50 +01005006$as_echo "#define ENABLE_DEBUG_LOGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005007
5008fi
Pascal Bühler75918862017-02-19 18:33:50 +01005009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_logging" >&5
5010$as_echo "$enable_debug_logging" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005011
Idar Tollefsen600ad962017-01-26 11:24:51 +01005012
5013
5014
5015
5016
5017
5018
5019if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5020 if test -n "$ac_tool_prefix"; then
5021 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5022set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024$as_echo_n "checking for $ac_word... " >&6; }
5025if ${ac_cv_path_PKG_CONFIG+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027else
5028 case $PKG_CONFIG in
5029 [\\/]* | ?:[\\/]*)
5030 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5031 ;;
5032 *)
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5043 fi
5044done
5045 done
5046IFS=$as_save_IFS
5047
5048 ;;
5049esac
5050fi
5051PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5052if test -n "$PKG_CONFIG"; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5054$as_echo "$PKG_CONFIG" >&6; }
5055else
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057$as_echo "no" >&6; }
5058fi
5059
5060
5061fi
5062if test -z "$ac_cv_path_PKG_CONFIG"; then
5063 ac_pt_PKG_CONFIG=$PKG_CONFIG
5064 # Extract the first word of "pkg-config", so it can be a program name with args.
5065set dummy pkg-config; ac_word=$2
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067$as_echo_n "checking for $ac_word... " >&6; }
5068if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5069 $as_echo_n "(cached) " >&6
5070else
5071 case $ac_pt_PKG_CONFIG in
5072 [\\/]* | ?:[\\/]*)
5073 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5074 ;;
5075 *)
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077for as_dir in $PATH
5078do
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5083 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 break 2
5086 fi
5087done
5088 done
5089IFS=$as_save_IFS
5090
5091 ;;
5092esac
5093fi
5094ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5095if test -n "$ac_pt_PKG_CONFIG"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5097$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5098else
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100$as_echo "no" >&6; }
5101fi
5102
5103 if test "x$ac_pt_PKG_CONFIG" = x; then
5104 PKG_CONFIG=""
5105 else
5106 case $cross_compiling:$ac_tool_warned in
5107yes:)
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5110ac_tool_warned=yes ;;
5111esac
5112 PKG_CONFIG=$ac_pt_PKG_CONFIG
5113 fi
5114else
5115 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5116fi
5117
5118fi
5119if test -n "$PKG_CONFIG"; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005120 _pkg_min_version=0.9.0
Idar Tollefsen600ad962017-01-26 11:24:51 +01005121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5122$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5123 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5125$as_echo "yes" >&6; }
5126 else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128$as_echo "no" >&6; }
5129 PKG_CONFIG=""
5130 fi
5131fi
Pascal Bühlerac872e72017-02-09 14:55:27 +01005132if test "x$PKG_CONFIG" != "x"; then :
5133 PKG_CONFIG="$PKG_CONFIG --static"
5134fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005135
jfigusc7e66e32013-05-08 11:32:55 -04005136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
5137$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
5138# Check whether --enable-openssl was given.
5139if test "${enable_openssl+set}" = set; then :
5140 enableval=$enable_openssl;
5141else
5142 enable_openssl=no
5143fi
jfigusa14b5a02013-03-29 12:24:12 -04005144
jfigus2b486652014-07-24 15:01:41 -04005145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
5146$as_echo "$enable_openssl" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04005147if test "$enable_openssl" = "yes"; then
jfigus038d2cf2015-05-11 14:10:11 -04005148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user specified OpenSSL directory" >&5
5149$as_echo_n "checking for user specified OpenSSL directory... " >&6; }
5150
5151# Check whether --with-openssl-dir was given.
5152if test "${with_openssl_dir+set}" = set; then :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005153 withval=$with_openssl_dir; if test "x$PKG_CONFIG" != "x" && test -f $with_openssl_dir/lib/pkgconfig/libcrypto.pc; then
5154 if test "x$PKG_CONFIG_PATH" = "x"; then
5155 export PKG_CONFIG_PATH="$with_openssl_dir/lib/pkgconfig"
5156 else
5157 export PKG_CONFIG_PATH="$with_openssl_dir/lib/pkgconfig:$PKG_CONFIG_PATH"
5158 fi
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl_dir" >&5
5160$as_echo "$with_openssl_dir" >&6; }
5161 elif test -d $with_openssl_dir/lib; then
5162 CFLAGS="$CFLAGS -I$with_openssl_dir/include"
5163 if test "x$LDFLAGS" = "x"; then
5164 LDFLAGS="-L$with_openssl_dir/lib"
5165 else
5166 LDFLAGS="$LDFLAGS -L$with_openssl_dir/lib"
5167 fi
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl_dir" >&5
5169$as_echo "$with_openssl_dir" >&6; }
5170 else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
5172$as_echo "invalid" >&6; }
5173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5175as_fn_error $? "Invalid OpenSSL location: $with_openssl_dir
5176See \`config.log' for more details" "$LINENO" 5; }
5177 fi
jfigus038d2cf2015-05-11 14:10:11 -04005178else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180$as_echo "no" >&6; }
jfigus038d2cf2015-05-11 14:10:11 -04005181fi
5182
5183
Idar Tollefsen600ad962017-01-26 11:24:51 +01005184 if test "x$PKG_CONFIG" != "x"; then
Cullen Jenningse1de50f2013-05-22 12:27:28 -06005185
Idar Tollefsen600ad962017-01-26 11:24:51 +01005186pkg_failed=no
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +02005187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
5188$as_echo_n "checking for crypto... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01005189
5190if test -n "$crypto_CFLAGS"; then
5191 pkg_cv_crypto_CFLAGS="$crypto_CFLAGS"
5192 elif test -n "$PKG_CONFIG"; then
5193 if test -n "$PKG_CONFIG" && \
Pascal Bühlerac872e72017-02-09 14:55:27 +01005194 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.1\""; } >&5
5195 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.1") 2>&5
Idar Tollefsen600ad962017-01-26 11:24:51 +01005196 ac_status=$?
5197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5198 test $ac_status = 0; }; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005199 pkg_cv_crypto_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1.0.1" 2>/dev/null`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005200 test "x$?" != "x0" && pkg_failed=yes
5201else
5202 pkg_failed=yes
5203fi
5204 else
5205 pkg_failed=untried
5206fi
5207if test -n "$crypto_LIBS"; then
5208 pkg_cv_crypto_LIBS="$crypto_LIBS"
5209 elif test -n "$PKG_CONFIG"; then
5210 if test -n "$PKG_CONFIG" && \
Pascal Bühlerac872e72017-02-09 14:55:27 +01005211 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.1\""; } >&5
5212 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.1") 2>&5
Idar Tollefsen600ad962017-01-26 11:24:51 +01005213 ac_status=$?
5214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5215 test $ac_status = 0; }; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005216 pkg_cv_crypto_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1.0.1" 2>/dev/null`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005217 test "x$?" != "x0" && pkg_failed=yes
5218else
5219 pkg_failed=yes
5220fi
5221 else
5222 pkg_failed=untried
5223fi
5224
5225
5226
5227if test $pkg_failed = yes; then
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +02005228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Idar Tollefsen600ad962017-01-26 11:24:51 +01005229$as_echo "no" >&6; }
5230
5231if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5232 _pkg_short_errors_supported=yes
5233else
5234 _pkg_short_errors_supported=no
5235fi
5236 if test $_pkg_short_errors_supported = yes; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005237 crypto_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1.0.1" 2>&1`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005238 else
Pascal Bühlerac872e72017-02-09 14:55:27 +01005239 crypto_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1.0.1" 2>&1`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005240 fi
5241 # Put the nasty error message in config.log where it belongs
5242 echo "$crypto_PKG_ERRORS" >&5
5243
Pascal Bühlerac872e72017-02-09 14:55:27 +01005244 as_fn_error $? "Package requirements (libcrypto >= 1.0.1) were not met:
Idar Tollefsen600ad962017-01-26 11:24:51 +01005245
5246$crypto_PKG_ERRORS
5247
5248Consider adjusting the PKG_CONFIG_PATH environment variable if you
5249installed software in a non-standard prefix.
5250
5251Alternatively, you may set the environment variables crypto_CFLAGS
5252and crypto_LIBS to avoid the need to call pkg-config.
5253See the pkg-config man page for more details." "$LINENO" 5
5254elif test $pkg_failed = untried; then
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +02005255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Idar Tollefsen600ad962017-01-26 11:24:51 +01005256$as_echo "no" >&6; }
5257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5259as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5260is in your PATH or set the PKG_CONFIG environment variable to the full
5261path to pkg-config.
5262
5263Alternatively, you may set the environment variables crypto_CFLAGS
5264and crypto_LIBS to avoid the need to call pkg-config.
5265See the pkg-config man page for more details.
5266
5267To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5268See \`config.log' for more details" "$LINENO" 5; }
5269else
5270 crypto_CFLAGS=$pkg_cv_crypto_CFLAGS
5271 crypto_LIBS=$pkg_cv_crypto_LIBS
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5273$as_echo "yes" >&6; }
5274 CFLAGS="$CFLAGS $crypto_CFLAGS"
5275 LIBS="$crypto_LIBS $LIBS"
5276fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005277 else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
jfigusb5fad5f2015-02-26 12:25:08 -05005279$as_echo_n "checking for dlopen in -ldl... " >&6; }
5280if ${ac_cv_lib_dl_dlopen+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282else
5283 ac_check_lib_save_LIBS=$LIBS
5284LIBS="-ldl $LIBS"
5285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286/* end confdefs.h. */
5287
5288/* Override any GCC internal prototype to avoid an error.
5289 Use char because int might match the return type of a GCC
5290 builtin and then its argument prototype would still apply. */
5291#ifdef __cplusplus
5292extern "C"
5293#endif
5294char dlopen ();
5295int
5296main ()
5297{
5298return dlopen ();
5299 ;
5300 return 0;
5301}
5302_ACEOF
5303if ac_fn_c_try_link "$LINENO"; then :
5304 ac_cv_lib_dl_dlopen=yes
5305else
5306 ac_cv_lib_dl_dlopen=no
5307fi
5308rm -f core conftest.err conftest.$ac_objext \
5309 conftest$ac_exeext conftest.$ac_ext
5310LIBS=$ac_check_lib_save_LIBS
5311fi
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5313$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5314if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5315 cat >>confdefs.h <<_ACEOF
5316#define HAVE_LIBDL 1
5317_ACEOF
5318
5319 LIBS="-ldl $LIBS"
5320
5321else
jfigus13fd6942015-03-02 09:09:13 -05005322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libdl" >&5
5323$as_echo "$as_me: WARNING: can't find libdl" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005324fi
5325
Idar Tollefsen600ad962017-01-26 11:24:51 +01005326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
jfigusb5fad5f2015-02-26 12:25:08 -05005327$as_echo_n "checking for inflate in -lz... " >&6; }
5328if ${ac_cv_lib_z_inflate+:} false; then :
5329 $as_echo_n "(cached) " >&6
5330else
5331 ac_check_lib_save_LIBS=$LIBS
5332LIBS="-lz $LIBS"
5333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334/* end confdefs.h. */
5335
5336/* Override any GCC internal prototype to avoid an error.
5337 Use char because int might match the return type of a GCC
5338 builtin and then its argument prototype would still apply. */
5339#ifdef __cplusplus
5340extern "C"
5341#endif
5342char inflate ();
5343int
5344main ()
5345{
5346return inflate ();
5347 ;
5348 return 0;
5349}
5350_ACEOF
5351if ac_fn_c_try_link "$LINENO"; then :
5352 ac_cv_lib_z_inflate=yes
5353else
5354 ac_cv_lib_z_inflate=no
5355fi
5356rm -f core conftest.err conftest.$ac_objext \
5357 conftest$ac_exeext conftest.$ac_ext
5358LIBS=$ac_check_lib_save_LIBS
5359fi
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
5361$as_echo "$ac_cv_lib_z_inflate" >&6; }
5362if test "x$ac_cv_lib_z_inflate" = xyes; then :
5363 cat >>confdefs.h <<_ACEOF
5364#define HAVE_LIBZ 1
5365_ACEOF
5366
5367 LIBS="-lz $LIBS"
5368
5369else
jfigus13fd6942015-03-02 09:09:13 -05005370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libz" >&5
5371$as_echo "$as_me: WARNING: can't find libz" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005372fi
5373
Idar Tollefsen600ad962017-01-26 11:24:51 +01005374 fi
5375
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_EncryptInit" >&5
5377$as_echo_n "checking for library containing EVP_EncryptInit... " >&6; }
5378if ${ac_cv_search_EVP_EncryptInit+:} false; then :
jfigusc7e66e32013-05-08 11:32:55 -04005379 $as_echo_n "(cached) " >&6
5380else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005381 ac_func_search_save_LIBS=$LIBS
jfigusc7e66e32013-05-08 11:32:55 -04005382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383/* end confdefs.h. */
5384
5385/* Override any GCC internal prototype to avoid an error.
5386 Use char because int might match the return type of a GCC
5387 builtin and then its argument prototype would still apply. */
5388#ifdef __cplusplus
5389extern "C"
5390#endif
5391char EVP_EncryptInit ();
5392int
5393main ()
5394{
5395return EVP_EncryptInit ();
5396 ;
5397 return 0;
5398}
5399_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005400for ac_lib in '' crypto; do
5401 if test -z "$ac_lib"; then
5402 ac_res="none required"
5403 else
5404 ac_res=-l$ac_lib
5405 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5406 fi
5407 if ac_fn_c_try_link "$LINENO"; then :
5408 ac_cv_search_EVP_EncryptInit=$ac_res
jfigusc7e66e32013-05-08 11:32:55 -04005409fi
5410rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01005411 conftest$ac_exeext
5412 if ${ac_cv_search_EVP_EncryptInit+:} false; then :
5413 break
jfigusc7e66e32013-05-08 11:32:55 -04005414fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005415done
5416if ${ac_cv_search_EVP_EncryptInit+:} false; then :
jfigusc7e66e32013-05-08 11:32:55 -04005417
Idar Tollefsen600ad962017-01-26 11:24:51 +01005418else
5419 ac_cv_search_EVP_EncryptInit=no
5420fi
5421rm conftest.$ac_ext
5422LIBS=$ac_func_search_save_LIBS
5423fi
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_EncryptInit" >&5
5425$as_echo "$ac_cv_search_EVP_EncryptInit" >&6; }
5426ac_res=$ac_cv_search_EVP_EncryptInit
5427if test "$ac_res" != no; then :
5428 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04005429
5430else
5431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01005433as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigus5b22e372013-05-09 09:23:26 -04005434See \`config.log' for more details" "$LINENO" 5; }
5435fi
5436
Idar Tollefsen600ad962017-01-26 11:24:51 +01005437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_aes_128_ctr" >&5
5438$as_echo_n "checking for library containing EVP_aes_128_ctr... " >&6; }
5439if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
jfigus5b22e372013-05-09 09:23:26 -04005440 $as_echo_n "(cached) " >&6
5441else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005442 ac_func_search_save_LIBS=$LIBS
jfigus5b22e372013-05-09 09:23:26 -04005443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444/* end confdefs.h. */
5445
5446/* Override any GCC internal prototype to avoid an error.
5447 Use char because int might match the return type of a GCC
5448 builtin and then its argument prototype would still apply. */
5449#ifdef __cplusplus
5450extern "C"
5451#endif
5452char EVP_aes_128_ctr ();
5453int
5454main ()
5455{
5456return EVP_aes_128_ctr ();
5457 ;
5458 return 0;
5459}
5460_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005461for ac_lib in '' crypto; do
5462 if test -z "$ac_lib"; then
5463 ac_res="none required"
5464 else
5465 ac_res=-l$ac_lib
5466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5467 fi
5468 if ac_fn_c_try_link "$LINENO"; then :
5469 ac_cv_search_EVP_aes_128_ctr=$ac_res
jfigus5b22e372013-05-09 09:23:26 -04005470fi
5471rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01005472 conftest$ac_exeext
5473 if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
5474 break
jfigus5b22e372013-05-09 09:23:26 -04005475fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005476done
5477if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
jfigus5b22e372013-05-09 09:23:26 -04005478
Idar Tollefsen600ad962017-01-26 11:24:51 +01005479else
5480 ac_cv_search_EVP_aes_128_ctr=no
5481fi
5482rm conftest.$ac_ext
5483LIBS=$ac_func_search_save_LIBS
5484fi
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_aes_128_ctr" >&5
5486$as_echo "$ac_cv_search_EVP_aes_128_ctr" >&6; }
5487ac_res=$ac_cv_search_EVP_aes_128_ctr
5488if test "$ac_res" != no; then :
5489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus5b22e372013-05-09 09:23:26 -04005490
5491else
5492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01005494as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigusc7e66e32013-05-08 11:32:55 -04005495See \`config.log' for more details" "$LINENO" 5; }
5496fi
5497
Idar Tollefsen600ad962017-01-26 11:24:51 +01005498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_aes_128_gcm" >&5
5499$as_echo_n "checking for library containing EVP_aes_128_gcm... " >&6; }
5500if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
jfigus7882dd92013-08-02 16:08:23 -04005501 $as_echo_n "(cached) " >&6
5502else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005503 ac_func_search_save_LIBS=$LIBS
jfigus7882dd92013-08-02 16:08:23 -04005504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505/* end confdefs.h. */
5506
5507/* Override any GCC internal prototype to avoid an error.
5508 Use char because int might match the return type of a GCC
5509 builtin and then its argument prototype would still apply. */
5510#ifdef __cplusplus
5511extern "C"
5512#endif
5513char EVP_aes_128_gcm ();
5514int
5515main ()
5516{
5517return EVP_aes_128_gcm ();
5518 ;
5519 return 0;
5520}
5521_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005522for ac_lib in '' crypto; do
5523 if test -z "$ac_lib"; then
5524 ac_res="none required"
5525 else
5526 ac_res=-l$ac_lib
5527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5528 fi
5529 if ac_fn_c_try_link "$LINENO"; then :
5530 ac_cv_search_EVP_aes_128_gcm=$ac_res
jfigus7882dd92013-08-02 16:08:23 -04005531fi
5532rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01005533 conftest$ac_exeext
5534 if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
5535 break
jfigus7882dd92013-08-02 16:08:23 -04005536fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005537done
5538if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
jfigus7882dd92013-08-02 16:08:23 -04005539
Idar Tollefsen600ad962017-01-26 11:24:51 +01005540else
5541 ac_cv_search_EVP_aes_128_gcm=no
5542fi
5543rm conftest.$ac_ext
5544LIBS=$ac_func_search_save_LIBS
5545fi
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_aes_128_gcm" >&5
5547$as_echo "$ac_cv_search_EVP_aes_128_gcm" >&6; }
5548ac_res=$ac_cv_search_EVP_aes_128_gcm
5549if test "$ac_res" != no; then :
5550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus7882dd92013-08-02 16:08:23 -04005551
5552else
5553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01005555as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigus7882dd92013-08-02 16:08:23 -04005556See \`config.log' for more details" "$LINENO" 5; }
5557fi
5558
jfigusc7e66e32013-05-08 11:32:55 -04005559
Idar Tollefsen600ad962017-01-26 11:24:51 +01005560
jfigusc7e66e32013-05-08 11:32:55 -04005561$as_echo "#define OPENSSL 1" >>confdefs.h
5562
jfigus7882dd92013-08-02 16:08:23 -04005563 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
jfigusc7e66e32013-05-08 11:32:55 -04005564 HMAC_OBJS=crypto/hash/hmac_ossl.o
5565 USE_OPENSSL=1
5566
jfigus038d2cf2015-05-11 14:10:11 -04005567
Joachim Bauchec465b82018-05-30 12:23:36 +02005568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OPENSSL_cleanse is broken" >&5
5569$as_echo_n "checking if OPENSSL_cleanse is broken... " >&6; }
5570 if test "$cross_compiling" = yes; then :
5571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5573as_fn_error $? "cannot run test program while cross compiling
5574See \`config.log' for more details" "$LINENO" 5; }
5575else
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577/* end confdefs.h. */
5578
5579 #include <stdio.h>
5580 #include <openssl/crypto.h>
5581
5582int
5583main ()
5584{
5585
5586 #define BUFFER_SIZE (16)
5587 char buffer[BUFFER_SIZE];
5588 int i;
5589 for (i = 0; i < BUFFER_SIZE; i++) {
5590 buffer[i] = i & 0xff;
5591 }
5592 OPENSSL_cleanse(buffer, BUFFER_SIZE);
5593 for (i = 0; i < BUFFER_SIZE; i++) {
5594 if (buffer[i]) {
5595 printf("Buffer contents not zero at position %d (is %d)\n", i,
5596 buffer[i]);
5597 return 1;
5598 }
5599 }
5600
5601 ;
5602 return 0;
5603}
5604_ACEOF
5605if ac_fn_c_try_run "$LINENO"; then :
5606 openssl_cleanse_broken=no
5607else
5608
5609 openssl_cleanse_broken=yes
5610
5611$as_echo "#define OPENSSL_CLEANSE_BROKEN 1" >>confdefs.h
5612
5613
5614fi
5615rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5616 conftest.$ac_objext conftest.beam conftest.$ac_ext
5617fi
5618
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_cleanse_broken" >&5
5620$as_echo "$openssl_cleanse_broken" >&6; }
5621
jfigus038d2cf2015-05-11 14:10:11 -04005622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL KDF algorithm" >&5
5623$as_echo_n "checking whether to leverage OpenSSL KDF algorithm... " >&6; }
5624 # Check whether --enable-openssl-kdf was given.
5625if test "${enable_openssl_kdf+set}" = set; then :
5626 enableval=$enable_openssl_kdf;
5627else
5628 enable_openssl_kdf=no
5629fi
5630
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl_kdf" >&5
5632$as_echo "$enable_openssl_kdf" >&6; }
5633 if test "$enable_openssl_kdf" = "yes"; then
Idar Tollefsen600ad962017-01-26 11:24:51 +01005634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kdf_srtp" >&5
5635$as_echo_n "checking for library containing kdf_srtp... " >&6; }
5636if ${ac_cv_search_kdf_srtp+:} false; then :
jfigus038d2cf2015-05-11 14:10:11 -04005637 $as_echo_n "(cached) " >&6
5638else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005639 ac_func_search_save_LIBS=$LIBS
jfigus038d2cf2015-05-11 14:10:11 -04005640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641/* end confdefs.h. */
5642
5643/* Override any GCC internal prototype to avoid an error.
5644 Use char because int might match the return type of a GCC
5645 builtin and then its argument prototype would still apply. */
5646#ifdef __cplusplus
5647extern "C"
5648#endif
5649char kdf_srtp ();
5650int
5651main ()
5652{
5653return kdf_srtp ();
5654 ;
5655 return 0;
5656}
5657_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005658for ac_lib in '' crypto; do
5659 if test -z "$ac_lib"; then
5660 ac_res="none required"
5661 else
5662 ac_res=-l$ac_lib
5663 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5664 fi
5665 if ac_fn_c_try_link "$LINENO"; then :
5666 ac_cv_search_kdf_srtp=$ac_res
jfigus038d2cf2015-05-11 14:10:11 -04005667fi
5668rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01005669 conftest$ac_exeext
5670 if ${ac_cv_search_kdf_srtp+:} false; then :
5671 break
jfigus038d2cf2015-05-11 14:10:11 -04005672fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005673done
5674if ${ac_cv_search_kdf_srtp+:} false; then :
jfigus038d2cf2015-05-11 14:10:11 -04005675
Idar Tollefsen600ad962017-01-26 11:24:51 +01005676else
5677 ac_cv_search_kdf_srtp=no
5678fi
5679rm conftest.$ac_ext
5680LIBS=$ac_func_search_save_LIBS
5681fi
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kdf_srtp" >&5
5683$as_echo "$ac_cv_search_kdf_srtp" >&6; }
5684ac_res=$ac_cv_search_kdf_srtp
5685if test "$ac_res" != no; then :
5686 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus038d2cf2015-05-11 14:10:11 -04005687
5688else
5689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5691as_fn_error $? "can't find openssl KDF lib
5692See \`config.log' for more details" "$LINENO" 5; }
5693fi
5694
5695
5696$as_echo "#define OPENSSL_KDF 1" >>confdefs.h
5697
5698 fi
jfigusc7e66e32013-05-08 11:32:55 -04005699else
jfigusa3127b82014-11-19 14:46:52 -05005700 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o"
jfigusc7e66e32013-05-08 11:32:55 -04005701 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
5702fi
5703
5704
5705
Martin Meszarosf59ef4a2017-11-01 10:55:33 +01005706
Martin Meszaros96d0b9a2017-11-01 12:31:37 +01005707PCAP_LIB=""
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
5709$as_echo_n "checking for pcap_create in -lpcap... " >&6; }
5710if ${ac_cv_lib_pcap_pcap_create+:} false; then :
5711 $as_echo_n "(cached) " >&6
5712else
5713 ac_check_lib_save_LIBS=$LIBS
5714LIBS="-lpcap $LIBS"
5715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716/* end confdefs.h. */
5717
5718/* Override any GCC internal prototype to avoid an error.
5719 Use char because int might match the return type of a GCC
5720 builtin and then its argument prototype would still apply. */
5721#ifdef __cplusplus
5722extern "C"
5723#endif
5724char pcap_create ();
5725int
5726main ()
5727{
5728return pcap_create ();
5729 ;
5730 return 0;
5731}
5732_ACEOF
5733if ac_fn_c_try_link "$LINENO"; then :
5734 ac_cv_lib_pcap_pcap_create=yes
5735else
5736 ac_cv_lib_pcap_pcap_create=no
5737fi
5738rm -f core conftest.err conftest.$ac_objext \
5739 conftest$ac_exeext conftest.$ac_ext
5740LIBS=$ac_check_lib_save_LIBS
5741fi
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
5743$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
5744if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
Martin Meszaros96d0b9a2017-11-01 12:31:37 +01005745 PCAP_LIB="-lpcap"
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005746
Bernardo Torresb3c51422014-10-14 12:40:09 -03005747$as_echo "#define HAVE_PCAP 1" >>confdefs.h
5748
Idar Tollefsen600ad962017-01-26 11:24:51 +01005749 HAVE_PCAP=1
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005750
5751fi
5752
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005753
Martin Meszaros3edfada2017-11-01 10:55:33 +01005754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lwpcap" >&5
5755$as_echo_n "checking for pcap_create in -lwpcap... " >&6; }
5756if ${ac_cv_lib_wpcap_pcap_create+:} false; then :
5757 $as_echo_n "(cached) " >&6
5758else
5759 ac_check_lib_save_LIBS=$LIBS
5760LIBS="-lwpcap $LIBS"
5761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762/* end confdefs.h. */
5763
5764/* Override any GCC internal prototype to avoid an error.
5765 Use char because int might match the return type of a GCC
5766 builtin and then its argument prototype would still apply. */
5767#ifdef __cplusplus
5768extern "C"
5769#endif
5770char pcap_create ();
5771int
5772main ()
5773{
5774return pcap_create ();
5775 ;
5776 return 0;
5777}
5778_ACEOF
5779if ac_fn_c_try_link "$LINENO"; then :
5780 ac_cv_lib_wpcap_pcap_create=yes
5781else
5782 ac_cv_lib_wpcap_pcap_create=no
5783fi
5784rm -f core conftest.err conftest.$ac_objext \
5785 conftest$ac_exeext conftest.$ac_ext
5786LIBS=$ac_check_lib_save_LIBS
5787fi
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wpcap_pcap_create" >&5
5789$as_echo "$ac_cv_lib_wpcap_pcap_create" >&6; }
5790if test "x$ac_cv_lib_wpcap_pcap_create" = xyes; then :
Martin Meszaros96d0b9a2017-11-01 12:31:37 +01005791 PCAP_LIB="-lwpcap"
Martin Meszaros3edfada2017-11-01 10:55:33 +01005792
5793$as_echo "#define HAVE_PCAP 1" >>confdefs.h
5794
5795 HAVE_PCAP=1
5796
5797fi
5798
5799
Martin Meszaros96d0b9a2017-11-01 12:31:37 +01005800
Pascal Bühler75918862017-02-19 18:33:50 +01005801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to redirect logging to stdout" >&5
5802$as_echo_n "checking whether to redirect logging to stdout... " >&6; }
5803# Check whether --enable-log-stdout was given.
5804if test "${enable_log_stdout+set}" = set; then :
5805 enableval=$enable_log_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00005806else
Pascal Bühler75918862017-02-19 18:33:50 +01005807 enable_log_stdout=no
jfigusc7e66e32013-05-08 11:32:55 -04005808fi
5809
Pascal Bühler75918862017-02-19 18:33:50 +01005810if test "$enable_log_stdout" = "yes"; then
David McGrewb67061f2005-09-28 14:23:06 +00005811
jfigusc7e66e32013-05-08 11:32:55 -04005812$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005813
5814fi
Pascal Bühler75918862017-02-19 18:33:50 +01005815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_stdout" >&5
5816$as_echo "$enable_log_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005817
Pascal Bühler75918862017-02-19 18:33:50 +01005818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking wheather to use a file for logging" >&5
5819$as_echo_n "checking wheather to use a file for logging... " >&6; }
5820
5821# Check whether --with-log-file was given.
5822if test "${with_log_file+set}" = set; then :
5823 withval=$with_log_file; case x$with_log_file in #(
5824 x) :
5825 valid_with_log_file="no" ;; #(
5826 xyes) :
5827 valid_with_log_file="no" ;; #(
5828 *) :
5829 valid_with_error_file="yes" ;;
5830esac
5831 if test "$valid_with_log_file" = "no"; then :
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
5833$as_echo "invalid" >&6; }
5834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5835$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836as_fn_error $? "Invalid value for --with-log-file: \"$with_log_file\"
5837See \`config.log' for more details" "$LINENO" 5; }
David McGrewb67061f2005-09-28 14:23:06 +00005838else
Pascal Bühler75918862017-02-19 18:33:50 +01005839
5840cat >>confdefs.h <<_ACEOF
5841#define ERR_REPORTING_FILE "$with_log_file"
5842_ACEOF
5843
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using log file: \"$with_log_file\"" >&5
5845$as_echo "using log file: \"$with_log_file\"" >&6; }
5846fi
5847else
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849$as_echo "no" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04005850fi
5851
David McGrewb67061f2005-09-28 14:23:06 +00005852
Pascal Bühler75918862017-02-19 18:33:50 +01005853if test "$enable_log_stdout" = "yes" && test "x$with_log_file" != "x"; then :
5854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5855$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5856as_fn_error $? "Can only use one of --enable-log-stdout and --with-log-file; they are mutually exclusive
5857See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005858fi
David McGrewb67061f2005-09-28 14:23:06 +00005859
Idar Tollefsencb771f72017-05-03 13:20:08 +02005860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra C compiler flags" >&5
5861$as_echo_n "checking for extra C compiler flags... " >&6; }
5862if test "x$EXTRA_CFLAGS" != "x"; then :
5863 if test "x$CFLAGS" = "x"; then :
5864 CFLAGS="$EXTRA_CFLAGS"
5865else
5866 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
5867fi
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_CFLAGS" >&5
5869$as_echo "$EXTRA_CFLAGS" >&6; }
5870else
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872$as_echo "no" >&6; }
5873fi
5874
jfigusc7e66e32013-05-08 11:32:55 -04005875ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00005876
5877
Idar Tollefsen600ad962017-01-26 11:24:51 +01005878ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile libsrtp2.pc"
jfigusc7e66e32013-05-08 11:32:55 -04005879
Cullen Jennings235513a2005-09-21 22:51:36 +00005880cat >confcache <<\_ACEOF
5881# This file is a shell script that caches the results of configure
5882# tests run on this system so they can be shared between configure
5883# scripts and configure runs, see configure's option --config-cache.
5884# It is not useful on other systems. If it contains results you don't
5885# want to keep, you may remove or edit it.
5886#
5887# config.status only pays attention to the cache file if you give it
5888# the --recheck option to rerun configure.
5889#
5890# `ac_cv_env_foo' variables (set or unset) will be overridden when
5891# loading this file, other *unset* `ac_cv_foo' will be assigned the
5892# following values.
5893
5894_ACEOF
5895
5896# The following way of writing the cache mishandles newlines in values,
5897# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04005898# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00005899# Ultrix sh set writes to stderr and can't be redirected directly,
5900# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04005901(
5902 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5903 eval ac_val=\$$ac_var
5904 case $ac_val in #(
5905 *${as_nl}*)
5906 case $ac_var in #(
5907 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5908$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5909 esac
5910 case $ac_var in #(
5911 _ | IFS | as_nl) ;; #(
5912 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5913 *) { eval $ac_var=; unset $ac_var;} ;;
5914 esac ;;
5915 esac
5916 done
5917
Cullen Jennings235513a2005-09-21 22:51:36 +00005918 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04005919 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5920 *${as_nl}ac_space=\ *)
5921 # `set' does not quote correctly, so add quotes: double-quote
5922 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00005923 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00005924 "s/'/'\\\\''/g;
5925 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04005926 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00005927 *)
5928 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04005929 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00005930 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005931 esac |
5932 sort
5933) |
Cullen Jennings235513a2005-09-21 22:51:36 +00005934 sed '
jfigusc7e66e32013-05-08 11:32:55 -04005935 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00005936 t clear
jfigusc7e66e32013-05-08 11:32:55 -04005937 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00005938 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5939 t end
jfigusc7e66e32013-05-08 11:32:55 -04005940 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5941 :end' >>confcache
5942if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5943 if test -w "$cache_file"; then
5944 if test "x$cache_file" != "x/dev/null"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5946$as_echo "$as_me: updating cache $cache_file" >&6;}
5947 if test ! -f "$cache_file" || test -h "$cache_file"; then
5948 cat confcache >"$cache_file"
5949 else
5950 case $cache_file in #(
5951 */* | ?:*)
5952 mv -f confcache "$cache_file"$$ &&
5953 mv -f "$cache_file"$$ "$cache_file" ;; #(
5954 *)
5955 mv -f confcache "$cache_file" ;;
5956 esac
5957 fi
5958 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005959 else
jfigusc7e66e32013-05-08 11:32:55 -04005960 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5961$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00005962 fi
5963fi
5964rm -f confcache
5965
5966test "x$prefix" = xNONE && prefix=$ac_default_prefix
5967# Let make expand exec_prefix.
5968test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5969
Cullen Jennings235513a2005-09-21 22:51:36 +00005970DEFS=-DHAVE_CONFIG_H
5971
5972ac_libobjs=
5973ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04005974U=
Cullen Jennings235513a2005-09-21 22:51:36 +00005975for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5976 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04005977 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5978 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5979 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5980 # will be set to the directory where LIBOBJS objects are built.
5981 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5982 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00005983done
5984LIBOBJS=$ac_libobjs
5985
5986LTLIBOBJS=$ac_ltlibobjs
5987
5988
5989
jfigusc7e66e32013-05-08 11:32:55 -04005990
5991: "${CONFIG_STATUS=./config.status}"
5992ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00005993ac_clean_files_save=$ac_clean_files
5994ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04005995{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5996$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5997as_write_fail=0
5998cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005999#! $SHELL
6000# Generated by $as_me.
6001# Run this file to recreate the current configuration.
6002# Compiler output produced by configure, useful for debugging
6003# configure, is in config.log if it exists.
6004
6005debug=false
6006ac_cs_recheck=false
6007ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04006008
Cullen Jennings235513a2005-09-21 22:51:36 +00006009SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04006010export SHELL
6011_ASEOF
6012cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6013## -------------------- ##
6014## M4sh Initialization. ##
6015## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00006016
jfigusc7e66e32013-05-08 11:32:55 -04006017# Be more Bourne compatible
6018DUALCASE=1; export DUALCASE # for MKS sh
6019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00006020 emulate sh
6021 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04006022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00006023 # is contrary to our usage. Disable this feature.
6024 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04006025 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00006026else
jfigusc7e66e32013-05-08 11:32:55 -04006027 case `(set -o) 2>/dev/null` in #(
6028 *posix*) :
6029 set -o posix ;; #(
6030 *) :
6031 ;;
6032esac
Cullen Jennings235513a2005-09-21 22:51:36 +00006033fi
6034
6035
jfigusc7e66e32013-05-08 11:32:55 -04006036as_nl='
6037'
6038export as_nl
6039# Printing a long string crashes Solaris 7 /usr/bin/printf.
6040as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6041as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6042as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6043# Prefer a ksh shell builtin over an external printf program on Solaris,
6044# but without wasting forks for bash or zsh.
6045if test -z "$BASH_VERSION$ZSH_VERSION" \
6046 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6047 as_echo='print -r --'
6048 as_echo_n='print -rn --'
6049elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6050 as_echo='printf %s\n'
6051 as_echo_n='printf %s'
6052else
6053 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6054 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6055 as_echo_n='/usr/ucb/echo -n'
6056 else
6057 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6058 as_echo_n_body='eval
6059 arg=$1;
6060 case $arg in #(
6061 *"$as_nl"*)
6062 expr "X$arg" : "X\\(.*\\)$as_nl";
6063 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6064 esac;
6065 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6066 '
6067 export as_echo_n_body
6068 as_echo_n='sh -c $as_echo_n_body as_echo'
6069 fi
6070 export as_echo_body
6071 as_echo='sh -c $as_echo_body as_echo'
6072fi
6073
6074# The user is always right.
6075if test "${PATH_SEPARATOR+set}" != set; then
6076 PATH_SEPARATOR=:
6077 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6078 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6079 PATH_SEPARATOR=';'
6080 }
6081fi
6082
6083
6084# IFS
6085# We need space, tab and new line, in precisely that order. Quoting is
6086# there to prevent editors from complaining about space-tab.
6087# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6088# splitting by setting IFS to empty value.)
6089IFS=" "" $as_nl"
6090
6091# Find who we are. Look in the path if we contain no directory separator.
6092as_myself=
6093case $0 in #((
6094 *[\\/]* ) as_myself=$0 ;;
6095 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096for as_dir in $PATH
6097do
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6101 done
6102IFS=$as_save_IFS
6103
6104 ;;
6105esac
6106# We did not find ourselves, most probably we were run as `sh COMMAND'
6107# in which case we are not to be found in the path.
6108if test "x$as_myself" = x; then
6109 as_myself=$0
6110fi
6111if test ! -f "$as_myself"; then
6112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6113 exit 1
6114fi
6115
6116# Unset variables that we do not need and which cause bugs (e.g. in
6117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6118# suppresses any "Segmentation fault" message there. '((' could
6119# trigger a bug in pdksh 5.2.14.
6120for as_var in BASH_ENV ENV MAIL MAILPATH
6121do eval test x\${$as_var+set} = xset \
6122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6123done
Cullen Jennings235513a2005-09-21 22:51:36 +00006124PS1='$ '
6125PS2='> '
6126PS4='+ '
6127
6128# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04006129LC_ALL=C
6130export LC_ALL
6131LANGUAGE=C
6132export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04006133
jfigusc7e66e32013-05-08 11:32:55 -04006134# CDPATH.
6135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6136
6137
6138# as_fn_error STATUS ERROR [LINENO LOG_FD]
6139# ----------------------------------------
6140# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6141# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6142# script with STATUS, using 1 if that was 0.
6143as_fn_error ()
6144{
6145 as_status=$1; test $as_status -eq 0 && as_status=1
6146 if test "$4"; then
6147 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6148 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6149 fi
6150 $as_echo "$as_me: error: $2" >&2
6151 as_fn_exit $as_status
6152} # as_fn_error
6153
6154
6155# as_fn_set_status STATUS
6156# -----------------------
6157# Set $? to STATUS, without forking.
6158as_fn_set_status ()
6159{
6160 return $1
6161} # as_fn_set_status
6162
6163# as_fn_exit STATUS
6164# -----------------
6165# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6166as_fn_exit ()
6167{
6168 set +e
6169 as_fn_set_status $1
6170 exit $1
6171} # as_fn_exit
6172
6173# as_fn_unset VAR
6174# ---------------
6175# Portably unset VAR.
6176as_fn_unset ()
6177{
6178 { eval $1=; unset $1;}
6179}
6180as_unset=as_fn_unset
6181# as_fn_append VAR VALUE
6182# ----------------------
6183# Append the text in VALUE to the end of the definition contained in VAR. Take
6184# advantage of any shell optimizations that allow amortized linear growth over
6185# repeated appends, instead of the typical quadratic growth present in naive
6186# implementations.
6187if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6188 eval 'as_fn_append ()
6189 {
6190 eval $1+=\$2
6191 }'
6192else
6193 as_fn_append ()
6194 {
6195 eval $1=\$$1\$2
6196 }
6197fi # as_fn_append
6198
6199# as_fn_arith ARG...
6200# ------------------
6201# Perform arithmetic evaluation on the ARGs, and store the result in the
6202# global $as_val. Take advantage of shells that can avoid forks. The arguments
6203# must be portable across $(()) and expr.
6204if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6205 eval 'as_fn_arith ()
6206 {
6207 as_val=$(( $* ))
6208 }'
6209else
6210 as_fn_arith ()
6211 {
6212 as_val=`expr "$@" || test $? -eq 1`
6213 }
6214fi # as_fn_arith
6215
6216
6217if expr a : '\(a\)' >/dev/null 2>&1 &&
6218 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006219 as_expr=expr
6220else
6221 as_expr=false
6222fi
6223
jfigusc7e66e32013-05-08 11:32:55 -04006224if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006225 as_basename=basename
6226else
6227 as_basename=false
6228fi
6229
jfigusc7e66e32013-05-08 11:32:55 -04006230if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6231 as_dirname=dirname
6232else
6233 as_dirname=false
6234fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006235
jfigusc7e66e32013-05-08 11:32:55 -04006236as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006237$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6238 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006239 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6240$as_echo X/"$0" |
6241 sed '/^.*\/\([^/][^/]*\)\/*$/{
6242 s//\1/
6243 q
6244 }
6245 /^X\/\(\/\/\)$/{
6246 s//\1/
6247 q
6248 }
6249 /^X\/\(\/\).*/{
6250 s//\1/
6251 q
6252 }
6253 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006254
Cullen Jennings235513a2005-09-21 22:51:36 +00006255# Avoid depending upon Character Ranges.
6256as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6257as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6258as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6259as_cr_digits='0123456789'
6260as_cr_alnum=$as_cr_Letters$as_cr_digits
6261
jfigusc7e66e32013-05-08 11:32:55 -04006262ECHO_C= ECHO_N= ECHO_T=
6263case `echo -n x` in #(((((
6264-n*)
6265 case `echo 'xy\c'` in
6266 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6267 xy) ECHO_C='\c';;
6268 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6269 ECHO_T=' ';;
6270 esac;;
6271*)
6272 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00006273esac
6274
Cullen Jennings235513a2005-09-21 22:51:36 +00006275rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04006276if test -d conf$$.dir; then
6277 rm -f conf$$.dir/conf$$.file
6278else
6279 rm -f conf$$.dir
6280 mkdir conf$$.dir 2>/dev/null
6281fi
6282if (echo >conf$$.file) 2>/dev/null; then
6283 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006284 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04006285 # ... but there are two gotchas:
6286 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6287 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6288 # In both cases, we have to default to `cp -pR'.
6289 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6290 as_ln_s='cp -pR'
6291 elif ln conf$$.file conf$$ 2>/dev/null; then
6292 as_ln_s=ln
6293 else
6294 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006295 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006296else
jfigusc7e66e32013-05-08 11:32:55 -04006297 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006298fi
jfigusc7e66e32013-05-08 11:32:55 -04006299rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6300rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00006301
jfigusc7e66e32013-05-08 11:32:55 -04006302
6303# as_fn_mkdir_p
6304# -------------
6305# Create "$as_dir" as a directory, including parents if necessary.
6306as_fn_mkdir_p ()
6307{
6308
6309 case $as_dir in #(
6310 -*) as_dir=./$as_dir;;
6311 esac
6312 test -d "$as_dir" || eval $as_mkdir_p || {
6313 as_dirs=
6314 while :; do
6315 case $as_dir in #(
6316 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6317 *) as_qdir=$as_dir;;
6318 esac
6319 as_dirs="'$as_qdir' $as_dirs"
6320 as_dir=`$as_dirname -- "$as_dir" ||
6321$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6322 X"$as_dir" : 'X\(//\)[^/]' \| \
6323 X"$as_dir" : 'X\(//\)$' \| \
6324 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6325$as_echo X"$as_dir" |
6326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6327 s//\1/
6328 q
6329 }
6330 /^X\(\/\/\)[^/].*/{
6331 s//\1/
6332 q
6333 }
6334 /^X\(\/\/\)$/{
6335 s//\1/
6336 q
6337 }
6338 /^X\(\/\).*/{
6339 s//\1/
6340 q
6341 }
6342 s/.*/./; q'`
6343 test -d "$as_dir" && break
6344 done
6345 test -z "$as_dirs" || eval "mkdir $as_dirs"
6346 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6347
6348
6349} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006350if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04006351 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00006352else
David McGrewfec49dd2005-09-23 19:34:11 +00006353 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00006354 as_mkdir_p=false
6355fi
6356
jfigusc7e66e32013-05-08 11:32:55 -04006357
6358# as_fn_executable_p FILE
6359# -----------------------
6360# Test if FILE is an executable regular file.
6361as_fn_executable_p ()
6362{
6363 test -f "$1" && test -x "$1"
6364} # as_fn_executable_p
6365as_test_x='test -x'
6366as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006367
6368# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00006369as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006370
6371# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00006372as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006373
6374
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006375exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04006376## ----------------------------------- ##
6377## Main body of $CONFIG_STATUS script. ##
6378## ----------------------------------- ##
6379_ASEOF
6380test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006381
jfigusc7e66e32013-05-08 11:32:55 -04006382cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6383# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00006384# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04006385# values after options handling.
6386ac_log="
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +02006387This file was extended by libsrtp2 $as_me 2.3.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04006388generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00006389
6390 CONFIG_FILES = $CONFIG_FILES
6391 CONFIG_HEADERS = $CONFIG_HEADERS
6392 CONFIG_LINKS = $CONFIG_LINKS
6393 CONFIG_COMMANDS = $CONFIG_COMMANDS
6394 $ $0 $@
6395
jfigusc7e66e32013-05-08 11:32:55 -04006396on `(hostname || uname -n) 2>/dev/null | sed 1q`
6397"
6398
Cullen Jennings235513a2005-09-21 22:51:36 +00006399_ACEOF
6400
jfigusc7e66e32013-05-08 11:32:55 -04006401case $ac_config_files in *"
6402"*) set x $ac_config_files; shift; ac_config_files=$*;;
6403esac
6404
6405case $ac_config_headers in *"
6406"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6407esac
6408
6409
6410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006411# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04006412config_files="$ac_config_files"
6413config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00006414
jfigusc7e66e32013-05-08 11:32:55 -04006415_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006416
jfigusc7e66e32013-05-08 11:32:55 -04006417cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006418ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04006419\`$as_me' instantiates files and other configuration actions
6420from templates according to the current configuration. Unless the files
6421and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00006422
jfigusc7e66e32013-05-08 11:32:55 -04006423Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00006424
6425 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04006426 -V, --version print version number and configuration settings, then exit
6427 --config print configuration, then exit
6428 -q, --quiet, --silent
6429 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00006430 -d, --debug don't remove temporary files
6431 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04006432 --file=FILE[:TEMPLATE]
6433 instantiate the configuration file FILE
6434 --header=FILE[:TEMPLATE]
6435 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00006436
6437Configuration files:
6438$config_files
6439
6440Configuration headers:
6441$config_headers
6442
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02006443Report bugs to <https://github.com/cisco/libsrtp/issues>."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006444
jfigusc7e66e32013-05-08 11:32:55 -04006445_ACEOF
6446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6447ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00006448ac_cs_version="\\
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +02006449libsrtp2 config.status 2.3.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04006450configured by $0, generated by GNU Autoconf 2.69,
6451 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00006452
jfigusc7e66e32013-05-08 11:32:55 -04006453Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00006454This config.status script is free software; the Free Software Foundation
6455gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04006456
6457ac_pwd='$ac_pwd'
6458srcdir='$srcdir'
6459INSTALL='$INSTALL'
6460test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00006461_ACEOF
6462
jfigusc7e66e32013-05-08 11:32:55 -04006463cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6464# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00006465ac_need_defaults=:
6466while test $# != 0
6467do
6468 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04006469 --*=?*)
6470 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6471 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006472 ac_shift=:
6473 ;;
jfigusc7e66e32013-05-08 11:32:55 -04006474 --*=)
6475 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6476 ac_optarg=
6477 ac_shift=:
6478 ;;
6479 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00006480 ac_option=$1
6481 ac_optarg=$2
6482 ac_shift=shift
6483 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006484 esac
6485
6486 case $ac_option in
6487 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00006488 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6489 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04006490 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6491 $as_echo "$ac_cs_version"; exit ;;
6492 --config | --confi | --conf | --con | --co | --c )
6493 $as_echo "$ac_cs_config"; exit ;;
6494 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00006495 debug=: ;;
6496 --file | --fil | --fi | --f )
6497 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04006498 case $ac_optarg in
6499 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6500 '') as_fn_error $? "missing file argument" ;;
6501 esac
6502 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006503 ac_need_defaults=false;;
6504 --header | --heade | --head | --hea )
6505 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04006506 case $ac_optarg in
6507 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6508 esac
6509 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006510 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04006511 --he | --h)
6512 # Conflict between --help and --header
6513 as_fn_error $? "ambiguous option: \`$1'
6514Try \`$0 --help' for more information.";;
6515 --help | --hel | -h )
6516 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6518 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6519 ac_cs_silent=: ;;
6520
6521 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04006522 -*) as_fn_error $? "unrecognized option: \`$1'
6523Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006524
jfigusc7e66e32013-05-08 11:32:55 -04006525 *) as_fn_append ac_config_targets " $1"
6526 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006527
6528 esac
6529 shift
6530done
6531
6532ac_configure_extra_args=
6533
6534if $ac_cs_silent; then
6535 exec 6>/dev/null
6536 ac_configure_extra_args="$ac_configure_extra_args --silent"
6537fi
6538
6539_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006541if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04006542 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6543 shift
6544 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6545 CONFIG_SHELL='$SHELL'
6546 export CONFIG_SHELL
6547 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00006548fi
6549
6550_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6552exec 5>>config.log
6553{
6554 echo
6555 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6556## Running $as_me. ##
6557_ASBOX
6558 $as_echo "$ac_log"
6559} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00006560
jfigusc7e66e32013-05-08 11:32:55 -04006561_ACEOF
6562cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6563_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006564
jfigusc7e66e32013-05-08 11:32:55 -04006565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006566
jfigusc7e66e32013-05-08 11:32:55 -04006567# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00006568for ac_config_target in $ac_config_targets
6569do
jfigusc7e66e32013-05-08 11:32:55 -04006570 case $ac_config_target in
6571 "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
6572 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6573 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
6574 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Idar Tollefsen600ad962017-01-26 11:24:51 +01006575 "libsrtp2.pc") CONFIG_FILES="$CONFIG_FILES libsrtp2.pc" ;;
jfigusc7e66e32013-05-08 11:32:55 -04006576
6577 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006578 esac
6579done
6580
jfigusc7e66e32013-05-08 11:32:55 -04006581
Cullen Jennings235513a2005-09-21 22:51:36 +00006582# If the user did not use the arguments to specify the items to instantiate,
6583# then the envvar interface is used. Set only those that are not.
6584# We use the long form for the default assignment because of an extremely
6585# bizarre bug on SunOS 4.1.3.
6586if $ac_need_defaults; then
6587 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6588 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6589fi
6590
6591# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04006592# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00006593# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04006594# Hook for its removal unless debugging.
6595# Note that there is a small window in which the directory will not be cleaned:
6596# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00006597$debug ||
6598{
jfigusc7e66e32013-05-08 11:32:55 -04006599 tmp= ac_tmp=
6600 trap 'exit_status=$?
6601 : "${ac_tmp:=$tmp}"
6602 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6603' 0
6604 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00006605}
Cullen Jennings235513a2005-09-21 22:51:36 +00006606# Create a (secure) tmp directory for tmp files.
6607
6608{
jfigusc7e66e32013-05-08 11:32:55 -04006609 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6610 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00006611} ||
6612{
jfigusc7e66e32013-05-08 11:32:55 -04006613 tmp=./conf$$-$RANDOM
6614 (umask 077 && mkdir "$tmp")
6615} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6616ac_tmp=$tmp
6617
6618# Set up the scripts for CONFIG_FILES section.
6619# No need to generate them if there are no CONFIG_FILES.
6620# This happens for instance with `./config.status config.h'.
6621if test -n "$CONFIG_FILES"; then
6622
6623
6624ac_cr=`echo X | tr X '\015'`
6625# On cygwin, bash can eat \r inside `` if the user requested igncr.
6626# But we know of no other shell where ac_cr would be empty at this
6627# point, so we can use a bashism as a fallback.
6628if test "x$ac_cr" = x; then
6629 eval ac_cr=\$\'\\r\'
6630fi
6631ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6632if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6633 ac_cs_awk_cr='\\r'
6634else
6635 ac_cs_awk_cr=$ac_cr
6636fi
6637
6638echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6639_ACEOF
6640
6641
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006642{
jfigusc7e66e32013-05-08 11:32:55 -04006643 echo "cat >conf$$subs.awk <<_ACEOF" &&
6644 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6645 echo "_ACEOF"
6646} >conf$$subs.sh ||
6647 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6648ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6649ac_delim='%!_!# '
6650for ac_last_try in false false false false false :; do
6651 . ./conf$$subs.sh ||
6652 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6653
6654 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6655 if test $ac_delim_n = $ac_delim_num; then
6656 break
6657 elif $ac_last_try; then
6658 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6659 else
6660 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6661 fi
6662done
6663rm -f conf$$subs.sh
6664
6665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6666cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6667_ACEOF
6668sed -n '
6669h
6670s/^/S["/; s/!.*/"]=/
6671p
6672g
6673s/^[^!]*!//
6674:repl
6675t repl
6676s/'"$ac_delim"'$//
6677t delim
6678:nl
6679h
6680s/\(.\{148\}\)..*/\1/
6681t more1
6682s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6683p
6684n
6685b repl
6686:more1
6687s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6688p
6689g
6690s/.\{148\}//
6691t nl
6692:delim
6693h
6694s/\(.\{148\}\)..*/\1/
6695t more2
6696s/["\\]/\\&/g; s/^/"/; s/$/"/
6697p
6698b
6699:more2
6700s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6701p
6702g
6703s/.\{148\}//
6704t delim
6705' <conf$$subs.awk | sed '
6706/^[^""]/{
6707 N
6708 s/\n//
6709}
6710' >>$CONFIG_STATUS || ac_write_fail=1
6711rm -f conf$$subs.awk
6712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6713_ACAWK
6714cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6715 for (key in S) S_is_set[key] = 1
6716 FS = ""
6717
6718}
6719{
6720 line = $ 0
6721 nfields = split(line, field, "@")
6722 substed = 0
6723 len = length(field[1])
6724 for (i = 2; i < nfields; i++) {
6725 key = field[i]
6726 keylen = length(key)
6727 if (S_is_set[key]) {
6728 value = S[key]
6729 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6730 len += length(value) + length(field[++i])
6731 substed = 1
6732 } else
6733 len += 1 + keylen
6734 }
6735
6736 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006737}
jfigusa14b5a02013-03-29 12:24:12 -04006738
jfigusc7e66e32013-05-08 11:32:55 -04006739_ACAWK
6740_ACEOF
6741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6742if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6743 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6744else
6745 cat
6746fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6747 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04006748_ACEOF
6749
jfigusc7e66e32013-05-08 11:32:55 -04006750# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6751# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6752# trailing colons and then remove the whole line if VPATH becomes empty
6753# (actually we leave an empty line to preserve line numbers).
6754if test "x$srcdir" = x.; then
6755 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6756h
6757s///
6758s/^/:/
6759s/[ ]*$/:/
6760s/:\$(srcdir):/:/g
6761s/:\${srcdir}:/:/g
6762s/:@srcdir@:/:/g
6763s/^:*//
6764s/:*$//
6765x
6766s/\(=[ ]*\).*/\1/
6767G
6768s/\n//
6769s/^[^=]*=[ ]*$//
6770}'
6771fi
jfigusa14b5a02013-03-29 12:24:12 -04006772
jfigusc7e66e32013-05-08 11:32:55 -04006773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006774fi # test -n "$CONFIG_FILES"
6775
jfigusc7e66e32013-05-08 11:32:55 -04006776# Set up the scripts for CONFIG_HEADERS section.
6777# No need to generate them if there are no CONFIG_HEADERS.
6778# This happens for instance with `./config.status Makefile'.
6779if test -n "$CONFIG_HEADERS"; then
6780cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6781BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00006782_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006783
6784# Transform confdefs.h into an awk script `defines.awk', embedded as
6785# here-document in config.status, that substitutes the proper values into
6786# config.h.in to produce config.h.
6787
6788# Create a delimiter string that does not exist in confdefs.h, to ease
6789# handling of long lines.
6790ac_delim='%!_!# '
6791for ac_last_try in false false :; do
6792 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6793 if test -z "$ac_tt"; then
6794 break
6795 elif $ac_last_try; then
6796 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6797 else
6798 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6799 fi
6800done
6801
6802# For the awk script, D is an array of macro values keyed by name,
6803# likewise P contains macro parameters if any. Preserve backslash
6804# newline sequences.
6805
6806ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6807sed -n '
6808s/.\{148\}/&'"$ac_delim"'/g
6809t rset
6810:rset
6811s/^[ ]*#[ ]*define[ ][ ]*/ /
6812t def
6813d
6814:def
6815s/\\$//
6816t bsnl
6817s/["\\]/\\&/g
6818s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6819D["\1"]=" \3"/p
6820s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6821d
6822:bsnl
6823s/["\\]/\\&/g
6824s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6825D["\1"]=" \3\\\\\\n"\\/p
6826t cont
6827s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6828t cont
6829d
6830:cont
6831n
6832s/.\{148\}/&'"$ac_delim"'/g
6833t clear
6834:clear
6835s/\\$//
6836t bsnlc
6837s/["\\]/\\&/g; s/^/"/; s/$/"/p
6838d
6839:bsnlc
6840s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6841b cont
6842' <confdefs.h | sed '
6843s/'"$ac_delim"'/"\\\
6844"/g' >>$CONFIG_STATUS || ac_write_fail=1
6845
6846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6847 for (key in D) D_is_set[key] = 1
6848 FS = ""
6849}
6850/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6851 line = \$ 0
6852 split(line, arg, " ")
6853 if (arg[1] == "#") {
6854 defundef = arg[2]
6855 mac1 = arg[3]
6856 } else {
6857 defundef = substr(arg[1], 2)
6858 mac1 = arg[2]
6859 }
6860 split(mac1, mac2, "(") #)
6861 macro = mac2[1]
6862 prefix = substr(line, 1, index(line, defundef) - 1)
6863 if (D_is_set[macro]) {
6864 # Preserve the white space surrounding the "#".
6865 print prefix "define", macro P[macro] D[macro]
6866 next
6867 } else {
6868 # Replace #undef with comments. This is necessary, for example,
6869 # in the case of _POSIX_SOURCE, which is predefined and required
6870 # on some systems where configure will not decide to define it.
6871 if (defundef == "undef") {
6872 print "/*", prefix defundef, macro, "*/"
6873 next
6874 }
6875 }
6876}
6877{ print }
6878_ACAWK
6879_ACEOF
6880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6881 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6882fi # test -n "$CONFIG_HEADERS"
6883
6884
6885eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6886shift
6887for ac_tag
6888do
6889 case $ac_tag in
6890 :[FHLC]) ac_mode=$ac_tag; continue;;
6891 esac
6892 case $ac_mode$ac_tag in
6893 :[FHL]*:*);;
6894 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6895 :[FH]-) ac_tag=-:-;;
6896 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6897 esac
6898 ac_save_IFS=$IFS
6899 IFS=:
6900 set x $ac_tag
6901 IFS=$ac_save_IFS
6902 shift
6903 ac_file=$1
6904 shift
6905
6906 case $ac_mode in
6907 :L) ac_source=$1;;
6908 :[FH])
6909 ac_file_inputs=
6910 for ac_f
6911 do
6912 case $ac_f in
6913 -) ac_f="$ac_tmp/stdin";;
6914 *) # Look for the file first in the build tree, then in the source tree
6915 # (if the path is not absolute). The absolute path cannot be DOS-style,
6916 # because $ac_f cannot contain `:'.
6917 test -f "$ac_f" ||
6918 case $ac_f in
6919 [\\/$]*) false;;
6920 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6921 esac ||
6922 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6923 esac
6924 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6925 as_fn_append ac_file_inputs " '$ac_f'"
6926 done
6927
6928 # Let's still pretend it is `configure' which instantiates (i.e., don't
6929 # use $as_me), people would be surprised to read:
6930 # /* config.h. Generated by config.status. */
6931 configure_input='Generated from '`
6932 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6933 `' by configure.'
6934 if test x"$ac_file" != x-; then
6935 configure_input="$ac_file. $configure_input"
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6937$as_echo "$as_me: creating $ac_file" >&6;}
6938 fi
6939 # Neutralize special characters interpreted by sed in replacement strings.
6940 case $configure_input in #(
6941 *\&* | *\|* | *\\* )
6942 ac_sed_conf_input=`$as_echo "$configure_input" |
6943 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6944 *) ac_sed_conf_input=$configure_input;;
6945 esac
6946
6947 case $ac_tag in
6948 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6949 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6950 esac
6951 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006952 esac
6953
jfigusc7e66e32013-05-08 11:32:55 -04006954 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006955$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006956 X"$ac_file" : 'X\(//\)[^/]' \| \
6957 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006958 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6959$as_echo X"$ac_file" |
6960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6961 s//\1/
6962 q
6963 }
6964 /^X\(\/\/\)[^/].*/{
6965 s//\1/
6966 q
6967 }
6968 /^X\(\/\/\)$/{
6969 s//\1/
6970 q
6971 }
6972 /^X\(\/\).*/{
6973 s//\1/
6974 q
6975 }
6976 s/.*/./; q'`
6977 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006978 ac_builddir=.
6979
jfigusc7e66e32013-05-08 11:32:55 -04006980case "$ac_dir" in
6981.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6982*)
6983 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6984 # A ".." for each directory in $ac_dir_suffix.
6985 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6986 case $ac_top_builddir_sub in
6987 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6988 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6989 esac ;;
6990esac
6991ac_abs_top_builddir=$ac_pwd
6992ac_abs_builddir=$ac_pwd$ac_dir_suffix
6993# for backward compatibility:
6994ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00006995
6996case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04006997 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00006998 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04006999 ac_top_srcdir=$ac_top_builddir_sub
7000 ac_abs_top_srcdir=$ac_pwd ;;
7001 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00007002 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04007003 ac_top_srcdir=$srcdir
7004 ac_abs_top_srcdir=$srcdir ;;
7005 *) # Relative name.
7006 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7007 ac_top_srcdir=$ac_top_build_prefix$srcdir
7008 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007009esac
jfigusc7e66e32013-05-08 11:32:55 -04007010ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00007011
Cullen Jennings235513a2005-09-21 22:51:36 +00007012
jfigusc7e66e32013-05-08 11:32:55 -04007013 case $ac_mode in
7014 :F)
7015 #
7016 # CONFIG_FILE
7017 #
Cullen Jennings235513a2005-09-21 22:51:36 +00007018
David McGrewb67061f2005-09-28 14:23:06 +00007019 case $INSTALL in
7020 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04007021 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00007022 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007023_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007024
7025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7026# If the template does not know about datarootdir, expand it.
7027# FIXME: This hack should be removed a few years after 2.60.
7028ac_datarootdir_hack=; ac_datarootdir_seen=
7029ac_sed_dataroot='
7030/datarootdir/ {
7031 p
7032 q
7033}
7034/@datadir@/p
7035/@docdir@/p
7036/@infodir@/p
7037/@localedir@/p
7038/@mandir@/p'
7039case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7040*datarootdir*) ac_datarootdir_seen=yes;;
7041*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7043$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7044_ACEOF
7045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7046 ac_datarootdir_hack='
7047 s&@datadir@&$datadir&g
7048 s&@docdir@&$docdir&g
7049 s&@infodir@&$infodir&g
7050 s&@localedir@&$localedir&g
7051 s&@mandir@&$mandir&g
7052 s&\\\${datarootdir}&$datarootdir&g' ;;
7053esac
7054_ACEOF
7055
7056# Neutralize VPATH when `$srcdir' = `.'.
7057# Shell code in configure.ac might set extrasub.
7058# FIXME: do we really want to maintain this feature?
7059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7060ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00007061$extrasub
7062_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007063cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007064:t
7065/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04007066s|@configure_input@|$ac_sed_conf_input|;t t
7067s&@top_builddir@&$ac_top_builddir_sub&;t t
7068s&@top_build_prefix@&$ac_top_build_prefix&;t t
7069s&@srcdir@&$ac_srcdir&;t t
7070s&@abs_srcdir@&$ac_abs_srcdir&;t t
7071s&@top_srcdir@&$ac_top_srcdir&;t t
7072s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7073s&@builddir@&$ac_builddir&;t t
7074s&@abs_builddir@&$ac_abs_builddir&;t t
7075s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7076s&@INSTALL@&$ac_INSTALL&;t t
7077$ac_datarootdir_hack
7078"
7079eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7080 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00007081
jfigusc7e66e32013-05-08 11:32:55 -04007082test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7083 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7084 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7085 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7087which seems to be undefined. Please make sure it is defined" >&5
7088$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7089which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007090
jfigusc7e66e32013-05-08 11:32:55 -04007091 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007092 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04007093 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7094 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7095 esac \
7096 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7097 ;;
7098 :H)
7099 #
7100 # CONFIG_HEADER
7101 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007102 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04007103 {
7104 $as_echo "/* $configure_input */" \
7105 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7106 } >"$ac_tmp/config.h" \
7107 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7108 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7110$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007111 else
jfigusc7e66e32013-05-08 11:32:55 -04007112 rm -f "$ac_file"
7113 mv "$ac_tmp/config.h" "$ac_file" \
7114 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007115 fi
7116 else
jfigusc7e66e32013-05-08 11:32:55 -04007117 $as_echo "/* $configure_input */" \
7118 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7119 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007120 fi
jfigusc7e66e32013-05-08 11:32:55 -04007121 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007122
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007123
jfigusc7e66e32013-05-08 11:32:55 -04007124 esac
7125
7126done # for ac_tag
7127
7128
7129as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007130_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007131ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04007132
jfigusc7e66e32013-05-08 11:32:55 -04007133test $ac_write_fail = 0 ||
7134 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7135
Cullen Jennings235513a2005-09-21 22:51:36 +00007136
7137# configure is writing to config.log, and then calls config.status.
7138# config.status does its own redirection, appending to config.log.
7139# Unfortunately, on DOS this fails, as config.log is still kept open
7140# by configure, so config.status won't be able to write to it; its
7141# output is simply discarded. So we exec the FD to /dev/null,
7142# effectively closing config.log, so it can be properly (re)opened and
7143# appended to by config.status. When coming back to configure, we
7144# need to make the FD available again.
7145if test "$no_create" != yes; then
7146 ac_cs_success=:
7147 ac_config_status_args=
7148 test "$silent" = yes &&
7149 ac_config_status_args="$ac_config_status_args --quiet"
7150 exec 5>/dev/null
7151 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7152 exec 5>>config.log
7153 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7154 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04007155 $ac_cs_success || as_fn_exit 1
7156fi
7157if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7159$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007160fi
7161
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00007162
7163# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04007164as_dir=crypto/cipher; as_fn_mkdir_p
7165as_dir=crypto/hash; as_fn_mkdir_p
7166as_dir=crypto/kernel; as_fn_mkdir_p
7167as_dir=crypto/math; as_fn_mkdir_p
7168as_dir=crypto/replay; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007169as_dir=crypto/test; as_fn_mkdir_p
7170as_dir=doc; as_fn_mkdir_p
7171as_dir=srtp; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007172as_dir=test; as_fn_mkdir_p