blob: cf069bb46ff0ccb6762f46dd7ab7ad6d2aef84dd [file] [log] [blame]
Cullen Jennings235513a2005-09-21 22:51:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Pascal Bühler34acba62017-01-19 10:57:30 +01003# Generated by GNU Autoconf 2.69 for libsrtp2 2.1.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 Bühler34acba62017-01-19 10:57:30 +0100583PACKAGE_VERSION='2.1.0-pre'
584PACKAGE_STRING='libsrtp2 2.1.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
Bernardo Torresb3c51422014-10-14 12:40:09 -0300626HAVE_PCAP
jfigusc7e66e32013-05-08 11:32:55 -0400627HMAC_OBJS
jfigusc7e66e32013-05-08 11:32:55 -0400628AES_ICM_OBJS
629USE_OPENSSL
Idar Tollefsen600ad962017-01-26 11:24:51 +0100630crypto_LIBS
631crypto_CFLAGS
632PKG_CONFIG_LIBDIR
633PKG_CONFIG_PATH
634PKG_CONFIG
jfigusc7e66e32013-05-08 11:32:55 -0400635EXE
636host_os
637host_vendor
638host_cpu
639host
640build_os
641build_vendor
642build_cpu
643build
644EGREP
645GREP
Idar Tollefsen600ad962017-01-26 11:24:51 +0100646SED
jfigusc7e66e32013-05-08 11:32:55 -0400647INSTALL_DATA
648INSTALL_SCRIPT
649INSTALL_PROGRAM
jfigus1ce6a742015-04-06 08:54:01 -0400650RANLIB
Idar Tollefsencb771f72017-05-03 13:20:08 +0200651ac_ct_AR
652AR
653EXTRA_CFLAGS
654CPP
jfigusc7e66e32013-05-08 11:32:55 -0400655OBJEXT
656EXEEXT
657ac_ct_CC
658CPPFLAGS
659LDFLAGS
660CFLAGS
661CC
jfigusc7e66e32013-05-08 11:32:55 -0400662target_alias
663host_alias
664build_alias
665LIBS
666ECHO_T
667ECHO_N
668ECHO_C
669DEFS
670mandir
671localedir
672libdir
673psdir
674pdfdir
675dvidir
676htmldir
677infodir
678docdir
679oldincludedir
680includedir
Idar Tollefsencb771f72017-05-03 13:20:08 +0200681runstatedir
jfigusc7e66e32013-05-08 11:32:55 -0400682localstatedir
683sharedstatedir
684sysconfdir
685datadir
686datarootdir
687libexecdir
688sbindir
689bindir
690program_transform_name
691prefix
692exec_prefix
693PACKAGE_URL
694PACKAGE_BUGREPORT
695PACKAGE_STRING
696PACKAGE_VERSION
697PACKAGE_TARNAME
698PACKAGE_NAME
699PATH_SEPARATOR
700SHELL'
Cullen Jennings235513a2005-09-21 22:51:36 +0000701ac_subst_files=''
jfigusc7e66e32013-05-08 11:32:55 -0400702ac_user_opts='
703enable_option_checking
Pascal Bühler75918862017-02-19 18:33:50 +0100704enable_debug_logging
jfigusc7e66e32013-05-08 11:32:55 -0400705enable_openssl
jfigus038d2cf2015-05-11 14:10:11 -0400706with_openssl_dir
707enable_openssl_kdf
Pascal Bühler75918862017-02-19 18:33:50 +0100708enable_log_stdout
709with_log_file
jfigusc7e66e32013-05-08 11:32:55 -0400710'
711 ac_precious_vars='build_alias
712host_alias
713target_alias
714CC
715CFLAGS
716LDFLAGS
717LIBS
718CPPFLAGS
Idar Tollefsen600ad962017-01-26 11:24:51 +0100719CPP
Idar Tollefsencb771f72017-05-03 13:20:08 +0200720EXTRA_CFLAGS
Idar Tollefsen600ad962017-01-26 11:24:51 +0100721PKG_CONFIG
722PKG_CONFIG_PATH
723PKG_CONFIG_LIBDIR
724crypto_CFLAGS
725crypto_LIBS'
jfigusc7e66e32013-05-08 11:32:55 -0400726
Cullen Jennings235513a2005-09-21 22:51:36 +0000727
728# Initialize some variables set by options.
729ac_init_help=
730ac_init_version=false
jfigusc7e66e32013-05-08 11:32:55 -0400731ac_unrecognized_opts=
732ac_unrecognized_sep=
Cullen Jennings235513a2005-09-21 22:51:36 +0000733# The variables have the same names as the options, with
734# dashes changed to underlines.
735cache_file=/dev/null
736exec_prefix=NONE
737no_create=
738no_recursion=
739prefix=NONE
740program_prefix=NONE
741program_suffix=NONE
742program_transform_name=s,x,x,
743silent=
744site=
745srcdir=
746verbose=
747x_includes=NONE
748x_libraries=NONE
749
750# Installation directory options.
751# These are left unexpanded so users can "make install exec_prefix=/foo"
752# and all the variables that are supposed to be based on exec_prefix
753# by default will actually change.
754# Use braces instead of parens because sh, perl, etc. also accept them.
jfigusc7e66e32013-05-08 11:32:55 -0400755# (The list follows the same order as the GNU Coding Standards.)
Cullen Jennings235513a2005-09-21 22:51:36 +0000756bindir='${exec_prefix}/bin'
757sbindir='${exec_prefix}/sbin'
758libexecdir='${exec_prefix}/libexec'
jfigusc7e66e32013-05-08 11:32:55 -0400759datarootdir='${prefix}/share'
760datadir='${datarootdir}'
Cullen Jennings235513a2005-09-21 22:51:36 +0000761sysconfdir='${prefix}/etc'
762sharedstatedir='${prefix}/com'
763localstatedir='${prefix}/var'
Idar Tollefsencb771f72017-05-03 13:20:08 +0200764runstatedir='${localstatedir}/run'
Cullen Jennings235513a2005-09-21 22:51:36 +0000765includedir='${prefix}/include'
766oldincludedir='/usr/include'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200767docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
jfigusc7e66e32013-05-08 11:32:55 -0400768infodir='${datarootdir}/info'
769htmldir='${docdir}'
770dvidir='${docdir}'
771pdfdir='${docdir}'
772psdir='${docdir}'
773libdir='${exec_prefix}/lib'
774localedir='${datarootdir}/locale'
775mandir='${datarootdir}/man'
Cullen Jennings235513a2005-09-21 22:51:36 +0000776
777ac_prev=
jfigusc7e66e32013-05-08 11:32:55 -0400778ac_dashdash=
Cullen Jennings235513a2005-09-21 22:51:36 +0000779for ac_option
780do
781 # If the previous option needs an argument, assign it.
782 if test -n "$ac_prev"; then
jfigusc7e66e32013-05-08 11:32:55 -0400783 eval $ac_prev=\$ac_option
Cullen Jennings235513a2005-09-21 22:51:36 +0000784 ac_prev=
785 continue
786 fi
787
jfigusc7e66e32013-05-08 11:32:55 -0400788 case $ac_option in
789 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
790 *=) ac_optarg= ;;
791 *) ac_optarg=yes ;;
792 esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000793
794 # Accept the important Cygnus configure options, so we can diagnose typos.
795
jfigusc7e66e32013-05-08 11:32:55 -0400796 case $ac_dashdash$ac_option in
797 --)
798 ac_dashdash=yes ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000799
800 -bindir | --bindir | --bindi | --bind | --bin | --bi)
801 ac_prev=bindir ;;
802 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
803 bindir=$ac_optarg ;;
804
805 -build | --build | --buil | --bui | --bu)
806 ac_prev=build_alias ;;
807 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
808 build_alias=$ac_optarg ;;
809
810 -cache-file | --cache-file | --cache-fil | --cache-fi \
811 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
812 ac_prev=cache_file ;;
813 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
814 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
815 cache_file=$ac_optarg ;;
816
817 --config-cache | -C)
818 cache_file=config.cache ;;
819
jfigusc7e66e32013-05-08 11:32:55 -0400820 -datadir | --datadir | --datadi | --datad)
Cullen Jennings235513a2005-09-21 22:51:36 +0000821 ac_prev=datadir ;;
jfigusc7e66e32013-05-08 11:32:55 -0400822 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000823 datadir=$ac_optarg ;;
824
jfigusc7e66e32013-05-08 11:32:55 -0400825 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
826 | --dataroo | --dataro | --datar)
827 ac_prev=datarootdir ;;
828 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
829 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
830 datarootdir=$ac_optarg ;;
831
Cullen Jennings235513a2005-09-21 22:51:36 +0000832 -disable-* | --disable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400833 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000834 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400835 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
836 as_fn_error $? "invalid feature name: $ac_useropt"
837 ac_useropt_orig=$ac_useropt
838 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
839 case $ac_user_opts in
840 *"
841"enable_$ac_useropt"
842"*) ;;
843 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
844 ac_unrecognized_sep=', ';;
845 esac
846 eval enable_$ac_useropt=no ;;
847
848 -docdir | --docdir | --docdi | --doc | --do)
849 ac_prev=docdir ;;
850 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
851 docdir=$ac_optarg ;;
852
853 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
854 ac_prev=dvidir ;;
855 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
856 dvidir=$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000857
858 -enable-* | --enable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400859 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000860 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862 as_fn_error $? "invalid feature name: $ac_useropt"
863 ac_useropt_orig=$ac_useropt
864 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865 case $ac_user_opts in
866 *"
867"enable_$ac_useropt"
868"*) ;;
869 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
870 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000871 esac
jfigusc7e66e32013-05-08 11:32:55 -0400872 eval enable_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000873
874 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
875 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
876 | --exec | --exe | --ex)
877 ac_prev=exec_prefix ;;
878 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
879 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
880 | --exec=* | --exe=* | --ex=*)
881 exec_prefix=$ac_optarg ;;
882
883 -gas | --gas | --ga | --g)
884 # Obsolete; use --with-gas.
885 with_gas=yes ;;
886
887 -help | --help | --hel | --he | -h)
888 ac_init_help=long ;;
889 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
890 ac_init_help=recursive ;;
891 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
892 ac_init_help=short ;;
893
894 -host | --host | --hos | --ho)
895 ac_prev=host_alias ;;
896 -host=* | --host=* | --hos=* | --ho=*)
897 host_alias=$ac_optarg ;;
898
jfigusc7e66e32013-05-08 11:32:55 -0400899 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
900 ac_prev=htmldir ;;
901 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
902 | --ht=*)
903 htmldir=$ac_optarg ;;
904
Cullen Jennings235513a2005-09-21 22:51:36 +0000905 -includedir | --includedir | --includedi | --included | --include \
906 | --includ | --inclu | --incl | --inc)
907 ac_prev=includedir ;;
908 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
909 | --includ=* | --inclu=* | --incl=* | --inc=*)
910 includedir=$ac_optarg ;;
911
912 -infodir | --infodir | --infodi | --infod | --info | --inf)
913 ac_prev=infodir ;;
914 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
915 infodir=$ac_optarg ;;
916
917 -libdir | --libdir | --libdi | --libd)
918 ac_prev=libdir ;;
919 -libdir=* | --libdir=* | --libdi=* | --libd=*)
920 libdir=$ac_optarg ;;
921
922 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
923 | --libexe | --libex | --libe)
924 ac_prev=libexecdir ;;
925 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
926 | --libexe=* | --libex=* | --libe=*)
927 libexecdir=$ac_optarg ;;
928
jfigusc7e66e32013-05-08 11:32:55 -0400929 -localedir | --localedir | --localedi | --localed | --locale)
930 ac_prev=localedir ;;
931 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
932 localedir=$ac_optarg ;;
933
Cullen Jennings235513a2005-09-21 22:51:36 +0000934 -localstatedir | --localstatedir | --localstatedi | --localstated \
jfigusc7e66e32013-05-08 11:32:55 -0400935 | --localstate | --localstat | --localsta | --localst | --locals)
Cullen Jennings235513a2005-09-21 22:51:36 +0000936 ac_prev=localstatedir ;;
937 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
jfigusc7e66e32013-05-08 11:32:55 -0400938 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000939 localstatedir=$ac_optarg ;;
940
941 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
942 ac_prev=mandir ;;
943 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
944 mandir=$ac_optarg ;;
945
946 -nfp | --nfp | --nf)
947 # Obsolete; use --without-fp.
948 with_fp=no ;;
949
950 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
951 | --no-cr | --no-c | -n)
952 no_create=yes ;;
953
954 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
955 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
956 no_recursion=yes ;;
957
958 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
959 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
960 | --oldin | --oldi | --old | --ol | --o)
961 ac_prev=oldincludedir ;;
962 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
963 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
964 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
965 oldincludedir=$ac_optarg ;;
966
967 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
968 ac_prev=prefix ;;
969 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
970 prefix=$ac_optarg ;;
971
972 -program-prefix | --program-prefix | --program-prefi | --program-pref \
973 | --program-pre | --program-pr | --program-p)
974 ac_prev=program_prefix ;;
975 -program-prefix=* | --program-prefix=* | --program-prefi=* \
976 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
977 program_prefix=$ac_optarg ;;
978
979 -program-suffix | --program-suffix | --program-suffi | --program-suff \
980 | --program-suf | --program-su | --program-s)
981 ac_prev=program_suffix ;;
982 -program-suffix=* | --program-suffix=* | --program-suffi=* \
983 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
984 program_suffix=$ac_optarg ;;
985
986 -program-transform-name | --program-transform-name \
987 | --program-transform-nam | --program-transform-na \
988 | --program-transform-n | --program-transform- \
989 | --program-transform | --program-transfor \
990 | --program-transfo | --program-transf \
991 | --program-trans | --program-tran \
992 | --progr-tra | --program-tr | --program-t)
993 ac_prev=program_transform_name ;;
994 -program-transform-name=* | --program-transform-name=* \
995 | --program-transform-nam=* | --program-transform-na=* \
996 | --program-transform-n=* | --program-transform-=* \
997 | --program-transform=* | --program-transfor=* \
998 | --program-transfo=* | --program-transf=* \
999 | --program-trans=* | --program-tran=* \
1000 | --progr-tra=* | --program-tr=* | --program-t=*)
1001 program_transform_name=$ac_optarg ;;
1002
jfigusc7e66e32013-05-08 11:32:55 -04001003 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1004 ac_prev=pdfdir ;;
1005 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1006 pdfdir=$ac_optarg ;;
1007
1008 -psdir | --psdir | --psdi | --psd | --ps)
1009 ac_prev=psdir ;;
1010 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1011 psdir=$ac_optarg ;;
1012
Cullen Jennings235513a2005-09-21 22:51:36 +00001013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1014 | -silent | --silent | --silen | --sile | --sil)
1015 silent=yes ;;
1016
Idar Tollefsencb771f72017-05-03 13:20:08 +02001017 -runstatedir | --runstatedir | --runstatedi | --runstated \
1018 | --runstate | --runstat | --runsta | --runst | --runs \
1019 | --run | --ru | --r)
1020 ac_prev=runstatedir ;;
1021 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1022 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1023 | --run=* | --ru=* | --r=*)
1024 runstatedir=$ac_optarg ;;
1025
Cullen Jennings235513a2005-09-21 22:51:36 +00001026 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1027 ac_prev=sbindir ;;
1028 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1029 | --sbi=* | --sb=*)
1030 sbindir=$ac_optarg ;;
1031
1032 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034 | --sharedst | --shareds | --shared | --share | --shar \
1035 | --sha | --sh)
1036 ac_prev=sharedstatedir ;;
1037 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1040 | --sha=* | --sh=*)
1041 sharedstatedir=$ac_optarg ;;
1042
1043 -site | --site | --sit)
1044 ac_prev=site ;;
1045 -site=* | --site=* | --sit=*)
1046 site=$ac_optarg ;;
1047
1048 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1049 ac_prev=srcdir ;;
1050 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1051 srcdir=$ac_optarg ;;
1052
1053 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1054 | --syscon | --sysco | --sysc | --sys | --sy)
1055 ac_prev=sysconfdir ;;
1056 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1057 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1058 sysconfdir=$ac_optarg ;;
1059
1060 -target | --target | --targe | --targ | --tar | --ta | --t)
1061 ac_prev=target_alias ;;
1062 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1063 target_alias=$ac_optarg ;;
1064
1065 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1066 verbose=yes ;;
1067
1068 -version | --version | --versio | --versi | --vers | -V)
1069 ac_init_version=: ;;
1070
1071 -with-* | --with-*)
jfigusc7e66e32013-05-08 11:32:55 -04001072 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001073 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error $? "invalid package name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080"with_$ac_useropt"
1081"*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +00001084 esac
jfigusc7e66e32013-05-08 11:32:55 -04001085 eval with_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001086
1087 -without-* | --without-*)
jfigusc7e66e32013-05-08 11:32:55 -04001088 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001089 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error $? "invalid package name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1095 *"
1096"with_$ac_useropt"
1097"*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1100 esac
1101 eval with_$ac_useropt=no ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001102
1103 --x)
1104 # Obsolete; use --with-x.
1105 with_x=yes ;;
1106
1107 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1108 | --x-incl | --x-inc | --x-in | --x-i)
1109 ac_prev=x_includes ;;
1110 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1111 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1112 x_includes=$ac_optarg ;;
1113
1114 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1115 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1116 ac_prev=x_libraries ;;
1117 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1118 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1119 x_libraries=$ac_optarg ;;
1120
jfigusc7e66e32013-05-08 11:32:55 -04001121 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1122Try \`$0 --help' for more information"
Cullen Jennings235513a2005-09-21 22:51:36 +00001123 ;;
1124
1125 *=*)
1126 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1127 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001128 case $ac_envvar in #(
1129 '' | [0-9]* | *[!_$as_cr_alnum]* )
1130 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1131 esac
1132 eval $ac_envvar=\$ac_optarg
Cullen Jennings235513a2005-09-21 22:51:36 +00001133 export $ac_envvar ;;
1134
1135 *)
1136 # FIXME: should be removed in autoconf 3.0.
jfigusc7e66e32013-05-08 11:32:55 -04001137 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Cullen Jennings235513a2005-09-21 22:51:36 +00001138 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jfigusc7e66e32013-05-08 11:32:55 -04001139 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1140 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Cullen Jennings235513a2005-09-21 22:51:36 +00001141 ;;
1142
1143 esac
1144done
1145
1146if test -n "$ac_prev"; then
1147 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jfigusc7e66e32013-05-08 11:32:55 -04001148 as_fn_error $? "missing argument to $ac_option"
Cullen Jennings235513a2005-09-21 22:51:36 +00001149fi
1150
jfigusc7e66e32013-05-08 11:32:55 -04001151if test -n "$ac_unrecognized_opts"; then
1152 case $enable_option_checking in
1153 no) ;;
1154 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1155 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001156 esac
jfigusc7e66e32013-05-08 11:32:55 -04001157fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001158
jfigusc7e66e32013-05-08 11:32:55 -04001159# Check all directory arguments for consistency.
1160for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1161 datadir sysconfdir sharedstatedir localstatedir includedir \
1162 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Idar Tollefsencb771f72017-05-03 13:20:08 +02001163 libdir localedir mandir runstatedir
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001164do
jfigusc7e66e32013-05-08 11:32:55 -04001165 eval ac_val=\$$ac_var
1166 # Remove trailing slashes.
jfigusa14b5a02013-03-29 12:24:12 -04001167 case $ac_val in
jfigusc7e66e32013-05-08 11:32:55 -04001168 */ )
1169 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1170 eval $ac_var=\$ac_val;;
jfigusa14b5a02013-03-29 12:24:12 -04001171 esac
jfigusc7e66e32013-05-08 11:32:55 -04001172 # Be sure to have absolute directory names.
1173 case $ac_val in
1174 [\\/$]* | ?:[\\/]* ) continue;;
1175 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1176 esac
1177 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Cullen Jennings235513a2005-09-21 22:51:36 +00001178done
1179
1180# There might be people who depend on the old broken behavior: `$host'
1181# used to hold the argument of --host etc.
1182# FIXME: To remove some day.
1183build=$build_alias
1184host=$host_alias
1185target=$target_alias
1186
1187# FIXME: To remove some day.
1188if test "x$host_alias" != x; then
1189 if test "x$build_alias" = x; then
1190 cross_compiling=maybe
Cullen Jennings235513a2005-09-21 22:51:36 +00001191 elif test "x$build_alias" != "x$host_alias"; then
1192 cross_compiling=yes
1193 fi
1194fi
1195
1196ac_tool_prefix=
1197test -n "$host_alias" && ac_tool_prefix=$host_alias-
1198
1199test "$silent" = yes && exec 6>/dev/null
1200
1201
jfigusc7e66e32013-05-08 11:32:55 -04001202ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203ac_ls_di=`ls -di .` &&
1204ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205 as_fn_error $? "working directory cannot be determined"
1206test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1207 as_fn_error $? "pwd does not report name of working directory"
1208
1209
Cullen Jennings235513a2005-09-21 22:51:36 +00001210# Find the source files, if location was not specified.
1211if test -z "$srcdir"; then
1212 ac_srcdir_defaulted=yes
jfigusc7e66e32013-05-08 11:32:55 -04001213 # Try the directory containing this script, then the parent directory.
1214 ac_confdir=`$as_dirname -- "$as_myself" ||
1215$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1216 X"$as_myself" : 'X\(//\)[^/]' \| \
1217 X"$as_myself" : 'X\(//\)$' \| \
1218 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1219$as_echo X"$as_myself" |
1220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1221 s//\1/
1222 q
1223 }
1224 /^X\(\/\/\)[^/].*/{
1225 s//\1/
1226 q
1227 }
1228 /^X\(\/\/\)$/{
1229 s//\1/
1230 q
1231 }
1232 /^X\(\/\).*/{
1233 s//\1/
1234 q
1235 }
1236 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001237 srcdir=$ac_confdir
jfigusc7e66e32013-05-08 11:32:55 -04001238 if test ! -r "$srcdir/$ac_unique_file"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00001239 srcdir=..
1240 fi
1241else
1242 ac_srcdir_defaulted=no
1243fi
jfigusc7e66e32013-05-08 11:32:55 -04001244if test ! -r "$srcdir/$ac_unique_file"; then
1245 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1246 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Cullen Jennings235513a2005-09-21 22:51:36 +00001247fi
jfigusc7e66e32013-05-08 11:32:55 -04001248ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1249ac_abs_confdir=`(
1250 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1251 pwd)`
1252# When building in place, set srcdir=.
1253if test "$ac_abs_confdir" = "$ac_pwd"; then
1254 srcdir=.
1255fi
1256# Remove unnecessary trailing slashes from srcdir.
1257# Double slashes in file names in object file debugging info
1258# mess up M-x gdb in Emacs.
1259case $srcdir in
1260*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1261esac
1262for ac_var in $ac_precious_vars; do
1263 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1264 eval ac_env_${ac_var}_value=\$${ac_var}
1265 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1266 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1267done
Cullen Jennings235513a2005-09-21 22:51:36 +00001268
1269#
1270# Report the --help message.
1271#
1272if test "$ac_init_help" = "long"; then
1273 # Omit some internal or obsolete options to make the list less imposing.
1274 # This message is too long to be a string in the A/UX 3.1 sh.
1275 cat <<_ACEOF
Pascal Bühler34acba62017-01-19 10:57:30 +01001276\`configure' configures libsrtp2 2.1.0-pre to adapt to many kinds of systems.
Cullen Jennings235513a2005-09-21 22:51:36 +00001277
1278Usage: $0 [OPTION]... [VAR=VALUE]...
1279
1280To assign environment variables (e.g., CC, CFLAGS...), specify them as
1281VAR=VALUE. See below for descriptions of some of the useful variables.
1282
1283Defaults for the options are specified in brackets.
1284
1285Configuration:
1286 -h, --help display this help and exit
1287 --help=short display options specific to this package
1288 --help=recursive display the short help of all the included packages
1289 -V, --version display version information and exit
jfigusc7e66e32013-05-08 11:32:55 -04001290 -q, --quiet, --silent do not print \`checking ...' messages
Cullen Jennings235513a2005-09-21 22:51:36 +00001291 --cache-file=FILE cache test results in FILE [disabled]
1292 -C, --config-cache alias for \`--cache-file=config.cache'
1293 -n, --no-create do not create output files
1294 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1295
Cullen Jennings235513a2005-09-21 22:51:36 +00001296Installation directories:
1297 --prefix=PREFIX install architecture-independent files in PREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001298 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +00001299 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001300 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +00001301
1302By default, \`make install' will install all the files in
1303\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1304an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1305for instance \`--prefix=\$HOME'.
1306
1307For better control, use the options below.
1308
1309Fine tuning of the installation directories:
jfigusc7e66e32013-05-08 11:32:55 -04001310 --bindir=DIR user executables [EPREFIX/bin]
1311 --sbindir=DIR system admin executables [EPREFIX/sbin]
1312 --libexecdir=DIR program executables [EPREFIX/libexec]
1313 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1314 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1315 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Idar Tollefsencb771f72017-05-03 13:20:08 +02001316 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
jfigusc7e66e32013-05-08 11:32:55 -04001317 --libdir=DIR object code libraries [EPREFIX/lib]
1318 --includedir=DIR C header files [PREFIX/include]
1319 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1320 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1321 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1322 --infodir=DIR info documentation [DATAROOTDIR/info]
1323 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1324 --mandir=DIR man documentation [DATAROOTDIR/man]
jfigusd196e022014-11-20 16:43:44 -05001325 --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp2]
jfigusc7e66e32013-05-08 11:32:55 -04001326 --htmldir=DIR html documentation [DOCDIR]
1327 --dvidir=DIR dvi documentation [DOCDIR]
1328 --pdfdir=DIR pdf documentation [DOCDIR]
1329 --psdir=DIR ps documentation [DOCDIR]
Cullen Jennings235513a2005-09-21 22:51:36 +00001330_ACEOF
1331
1332 cat <<\_ACEOF
1333
1334System types:
1335 --build=BUILD configure for building on BUILD [guessed]
1336 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1337_ACEOF
1338fi
1339
1340if test -n "$ac_init_help"; then
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001341 case $ac_init_help in
Pascal Bühler34acba62017-01-19 10:57:30 +01001342 short | recursive ) echo "Configuration of libsrtp2 2.1.0-pre:";;
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001343 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00001344 cat <<\_ACEOF
1345
1346Optional Features:
jfigusc7e66e32013-05-08 11:32:55 -04001347 --disable-option-checking ignore unrecognized --enable/--with options
Cullen Jennings235513a2005-09-21 22:51:36 +00001348 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1349 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Pascal Bühler75918862017-02-19 18:33:50 +01001350 --enable-debug-logging Enable debug logging in all modules
jfigusc7e66e32013-05-08 11:32:55 -04001351 --enable-openssl compile in OpenSSL crypto engine
jfigus038d2cf2015-05-11 14:10:11 -04001352 --enable-openssl-kdf Use OpenSSL KDF algorithm
Pascal Bühler75918862017-02-19 18:33:50 +01001353 --enable-log-stdout redirecting logging to stdout
Cullen Jennings235513a2005-09-21 22:51:36 +00001354
jfigus038d2cf2015-05-11 14:10:11 -04001355Optional Packages:
1356 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1357 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1358 --with-openssl-dir Location of OpenSSL installation
Pascal Bühler75918862017-02-19 18:33:50 +01001359 --with-log-file Use file for logging
jfigus038d2cf2015-05-11 14:10:11 -04001360
Cullen Jennings235513a2005-09-21 22:51:36 +00001361Some influential environment variables:
1362 CC C compiler command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1365 nonstandard directory <lib dir>
jfigusc7e66e32013-05-08 11:32:55 -04001366 LIBS libraries to pass to the linker, e.g. -l<library>
1367 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1368 you have headers in a nonstandard directory <include dir>
Cullen Jennings235513a2005-09-21 22:51:36 +00001369 CPP C preprocessor
Idar Tollefsencb771f72017-05-03 13:20:08 +02001370 EXTRA_CFLAGS
1371 C compiler flags appended to the regular C compiler flags
1372 instead of overriding them
Idar Tollefsen600ad962017-01-26 11:24:51 +01001373 PKG_CONFIG path to pkg-config utility
1374 PKG_CONFIG_PATH
1375 directories to add to pkg-config's search path
1376 PKG_CONFIG_LIBDIR
1377 path overriding pkg-config's built-in search path
1378 crypto_CFLAGS
1379 C compiler flags for crypto, overriding pkg-config
1380 crypto_LIBS linker flags for crypto, overriding pkg-config
Cullen Jennings235513a2005-09-21 22:51:36 +00001381
1382Use these variables to override the choices made by `configure' or to help
1383it to find libraries and programs with nonstandard names/locations.
1384
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001385Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00001386_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001387ac_status=$?
Cullen Jennings235513a2005-09-21 22:51:36 +00001388fi
1389
1390if test "$ac_init_help" = "recursive"; then
1391 # If there are subdirs, report their specific --help.
Cullen Jennings235513a2005-09-21 22:51:36 +00001392 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jfigusc7e66e32013-05-08 11:32:55 -04001393 test -d "$ac_dir" ||
1394 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1395 continue
Cullen Jennings235513a2005-09-21 22:51:36 +00001396 ac_builddir=.
1397
jfigusc7e66e32013-05-08 11:32:55 -04001398case "$ac_dir" in
1399.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400*)
1401 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1402 # A ".." for each directory in $ac_dir_suffix.
1403 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1404 case $ac_top_builddir_sub in
1405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1407 esac ;;
1408esac
1409ac_abs_top_builddir=$ac_pwd
1410ac_abs_builddir=$ac_pwd$ac_dir_suffix
1411# for backward compatibility:
1412ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00001413
1414case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04001415 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00001416 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04001417 ac_top_srcdir=$ac_top_builddir_sub
1418 ac_abs_top_srcdir=$ac_pwd ;;
1419 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001420 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04001421 ac_top_srcdir=$srcdir
1422 ac_abs_top_srcdir=$srcdir ;;
1423 *) # Relative name.
1424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1425 ac_top_srcdir=$ac_top_build_prefix$srcdir
1426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001427esac
jfigusc7e66e32013-05-08 11:32:55 -04001428ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001429
jfigusc7e66e32013-05-08 11:32:55 -04001430 cd "$ac_dir" || { ac_status=$?; continue; }
1431 # Check for guested configure.
1432 if test -f "$ac_srcdir/configure.gnu"; then
1433 echo &&
1434 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1435 elif test -f "$ac_srcdir/configure"; then
1436 echo &&
1437 $SHELL "$ac_srcdir/configure" --help=recursive
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001438 else
jfigusc7e66e32013-05-08 11:32:55 -04001439 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1440 fi || ac_status=$?
1441 cd "$ac_pwd" || { ac_status=$?; break; }
Cullen Jennings235513a2005-09-21 22:51:36 +00001442 done
1443fi
1444
jfigusc7e66e32013-05-08 11:32:55 -04001445test -n "$ac_init_help" && exit $ac_status
Cullen Jennings235513a2005-09-21 22:51:36 +00001446if $ac_init_version; then
1447 cat <<\_ACEOF
Pascal Bühler34acba62017-01-19 10:57:30 +01001448libsrtp2 configure 2.1.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04001449generated by GNU Autoconf 2.69
Cullen Jennings235513a2005-09-21 22:51:36 +00001450
jfigusc7e66e32013-05-08 11:32:55 -04001451Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00001452This configure script is free software; the Free Software Foundation
1453gives unlimited permission to copy, distribute and modify it.
1454_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001455 exit
Cullen Jennings235513a2005-09-21 22:51:36 +00001456fi
jfigusc7e66e32013-05-08 11:32:55 -04001457
1458## ------------------------ ##
1459## Autoconf initialization. ##
1460## ------------------------ ##
1461
1462# ac_fn_c_try_compile LINENO
1463# --------------------------
1464# Try to compile conftest.$ac_ext, and return whether this succeeded.
1465ac_fn_c_try_compile ()
1466{
1467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1468 rm -f conftest.$ac_objext
1469 if { { ac_try="$ac_compile"
1470case "(($ac_try" in
1471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1472 *) ac_try_echo=$ac_try;;
1473esac
1474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1475$as_echo "$ac_try_echo"; } >&5
1476 (eval "$ac_compile") 2>conftest.err
1477 ac_status=$?
1478 if test -s conftest.err; then
1479 grep -v '^ *+' conftest.err >conftest.er1
1480 cat conftest.er1 >&5
1481 mv -f conftest.er1 conftest.err
1482 fi
1483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1484 test $ac_status = 0; } && {
1485 test -z "$ac_c_werror_flag" ||
1486 test ! -s conftest.err
1487 } && test -s conftest.$ac_objext; then :
1488 ac_retval=0
1489else
1490 $as_echo "$as_me: failed program was:" >&5
1491sed 's/^/| /' conftest.$ac_ext >&5
1492
1493 ac_retval=1
1494fi
1495 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1496 as_fn_set_status $ac_retval
1497
1498} # ac_fn_c_try_compile
1499
Idar Tollefsencb771f72017-05-03 13:20:08 +02001500# ac_fn_c_try_cpp LINENO
1501# ----------------------
1502# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1503ac_fn_c_try_cpp ()
1504{
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 if { { ac_try="$ac_cpp conftest.$ac_ext"
1507case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510esac
1511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512$as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1514 ac_status=$?
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1519 fi
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } > conftest.i && {
1522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 }; then :
1525 ac_retval=0
1526else
1527 $as_echo "$as_me: failed program was:" >&5
1528sed 's/^/| /' conftest.$ac_ext >&5
1529
1530 ac_retval=1
1531fi
1532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533 as_fn_set_status $ac_retval
1534
1535} # ac_fn_c_try_cpp
1536
jfigusc7e66e32013-05-08 11:32:55 -04001537# ac_fn_c_try_run LINENO
1538# ----------------------
1539# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1540# that executables *can* be run.
1541ac_fn_c_try_run ()
1542{
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 if { { ac_try="$ac_link"
1545case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548esac
1549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550$as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_link") 2>&5
1552 ac_status=$?
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1555 { { case "(($ac_try" in
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1558esac
1559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560$as_echo "$ac_try_echo"; } >&5
1561 (eval "$ac_try") 2>&5
1562 ac_status=$?
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; }; }; then :
1565 ac_retval=0
1566else
1567 $as_echo "$as_me: program exited with status $ac_status" >&5
1568 $as_echo "$as_me: failed program was:" >&5
1569sed 's/^/| /' conftest.$ac_ext >&5
1570
1571 ac_retval=$ac_status
1572fi
1573 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575 as_fn_set_status $ac_retval
1576
1577} # ac_fn_c_try_run
1578
jfigusc7e66e32013-05-08 11:32:55 -04001579# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1580# -------------------------------------------------------
1581# Tests whether HEADER exists and can be compiled using the include files in
1582# INCLUDES, setting the cache variable VAR accordingly.
1583ac_fn_c_check_header_compile ()
1584{
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587$as_echo_n "checking for $2... " >&6; }
1588if eval \${$3+:} false; then :
1589 $as_echo_n "(cached) " >&6
1590else
1591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592/* end confdefs.h. */
1593$4
1594#include <$2>
1595_ACEOF
1596if ac_fn_c_try_compile "$LINENO"; then :
1597 eval "$3=yes"
1598else
1599 eval "$3=no"
1600fi
1601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1602fi
1603eval ac_res=\$$3
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1605$as_echo "$ac_res" >&6; }
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607
1608} # ac_fn_c_check_header_compile
1609
jfigusc7e66e32013-05-08 11:32:55 -04001610# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1611# -------------------------------------------
1612# Tests whether TYPE exists after having included INCLUDES, setting cache
1613# variable VAR accordingly.
1614ac_fn_c_check_type ()
1615{
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618$as_echo_n "checking for $2... " >&6; }
1619if eval \${$3+:} false; then :
1620 $as_echo_n "(cached) " >&6
1621else
1622 eval "$3=no"
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624/* end confdefs.h. */
1625$4
1626int
1627main ()
1628{
1629if (sizeof ($2))
1630 return 0;
1631 ;
1632 return 0;
1633}
1634_ACEOF
1635if ac_fn_c_try_compile "$LINENO"; then :
1636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637/* end confdefs.h. */
1638$4
1639int
1640main ()
1641{
1642if (sizeof (($2)))
1643 return 0;
1644 ;
1645 return 0;
1646}
1647_ACEOF
1648if ac_fn_c_try_compile "$LINENO"; then :
1649
1650else
1651 eval "$3=yes"
1652fi
1653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1654fi
1655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1656fi
1657eval ac_res=\$$3
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1659$as_echo "$ac_res" >&6; }
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661
1662} # ac_fn_c_check_type
1663
1664# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1665# --------------------------------------------
1666# Tries to find the compile-time value of EXPR in a program that includes
1667# INCLUDES, setting VAR accordingly. Returns whether the value could be
1668# computed
1669ac_fn_c_compute_int ()
1670{
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 if test "$cross_compiling" = yes; then
1673 # Depending upon the size, compute the lo and hi bounds.
1674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675/* end confdefs.h. */
1676$4
1677int
1678main ()
1679{
1680static int test_array [1 - 2 * !(($2) >= 0)];
1681test_array [0] = 0;
1682return test_array [0];
1683
1684 ;
1685 return 0;
1686}
1687_ACEOF
1688if ac_fn_c_try_compile "$LINENO"; then :
1689 ac_lo=0 ac_mid=0
1690 while :; do
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692/* end confdefs.h. */
1693$4
1694int
1695main ()
1696{
1697static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1698test_array [0] = 0;
1699return test_array [0];
1700
1701 ;
1702 return 0;
1703}
1704_ACEOF
1705if ac_fn_c_try_compile "$LINENO"; then :
1706 ac_hi=$ac_mid; break
1707else
1708 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1709 if test $ac_lo -le $ac_mid; then
1710 ac_lo= ac_hi=
1711 break
1712 fi
1713 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1714fi
1715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716 done
1717else
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719/* end confdefs.h. */
1720$4
1721int
1722main ()
1723{
1724static int test_array [1 - 2 * !(($2) < 0)];
1725test_array [0] = 0;
1726return test_array [0];
1727
1728 ;
1729 return 0;
1730}
1731_ACEOF
1732if ac_fn_c_try_compile "$LINENO"; then :
1733 ac_hi=-1 ac_mid=-1
1734 while :; do
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736/* end confdefs.h. */
1737$4
1738int
1739main ()
1740{
1741static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1742test_array [0] = 0;
1743return test_array [0];
1744
1745 ;
1746 return 0;
1747}
1748_ACEOF
1749if ac_fn_c_try_compile "$LINENO"; then :
1750 ac_lo=$ac_mid; break
1751else
1752 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1753 if test $ac_mid -le $ac_hi; then
1754 ac_lo= ac_hi=
1755 break
1756 fi
1757 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1758fi
1759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 done
1761else
1762 ac_lo= ac_hi=
1763fi
1764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1765fi
1766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767# Binary search between lo and hi bounds.
1768while test "x$ac_lo" != "x$ac_hi"; do
1769 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771/* end confdefs.h. */
1772$4
1773int
1774main ()
1775{
1776static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1777test_array [0] = 0;
1778return test_array [0];
1779
1780 ;
1781 return 0;
1782}
1783_ACEOF
1784if ac_fn_c_try_compile "$LINENO"; then :
1785 ac_hi=$ac_mid
1786else
1787 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1788fi
1789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790done
1791case $ac_lo in #((
1792?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1793'') ac_retval=1 ;;
1794esac
1795 else
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h. */
1798$4
1799static long int longval () { return $2; }
1800static unsigned long int ulongval () { return $2; }
1801#include <stdio.h>
1802#include <stdlib.h>
1803int
1804main ()
1805{
1806
1807 FILE *f = fopen ("conftest.val", "w");
1808 if (! f)
1809 return 1;
1810 if (($2) < 0)
1811 {
1812 long int i = longval ();
1813 if (i != ($2))
1814 return 1;
1815 fprintf (f, "%ld", i);
1816 }
1817 else
1818 {
1819 unsigned long int i = ulongval ();
1820 if (i != ($2))
1821 return 1;
1822 fprintf (f, "%lu", i);
1823 }
1824 /* Do not output a trailing newline, as this causes \r\n confusion
1825 on some platforms. */
1826 return ferror (f) || fclose (f) != 0;
1827
1828 ;
1829 return 0;
1830}
1831_ACEOF
1832if ac_fn_c_try_run "$LINENO"; then :
1833 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1834else
1835 ac_retval=1
1836fi
1837rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1838 conftest.$ac_objext conftest.beam conftest.$ac_ext
1839rm -f conftest.val
1840
1841 fi
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1844
1845} # ac_fn_c_compute_int
1846
1847# ac_fn_c_try_link LINENO
1848# -----------------------
1849# Try to link conftest.$ac_ext, and return whether this succeeded.
1850ac_fn_c_try_link ()
1851{
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext conftest$ac_exeext
1854 if { { ac_try="$ac_link"
1855case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858esac
1859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860$as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1867 fi
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_c_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest$ac_exeext && {
1873 test "$cross_compiling" = yes ||
1874 test -x conftest$ac_exeext
1875 }; then :
1876 ac_retval=0
1877else
1878 $as_echo "$as_me: failed program was:" >&5
1879sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=1
1882fi
1883 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1884 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1885 # interfere with the next link command; also delete a directory that is
1886 # left behind by Apple's compiler. We do this before executing the actions.
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1890
1891} # ac_fn_c_try_link
1892
1893# ac_fn_c_check_func LINENO FUNC VAR
1894# ----------------------------------
1895# Tests whether FUNC exists, setting the cache variable VAR accordingly
1896ac_fn_c_check_func ()
1897{
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900$as_echo_n "checking for $2... " >&6; }
1901if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1903else
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905/* end confdefs.h. */
1906/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1908#define $2 innocuous_$2
1909
1910/* System header to define __stub macros and hopefully few prototypes,
1911 which can conflict with char $2 (); below.
1912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1913 <limits.h> exists even on freestanding compilers. */
1914
1915#ifdef __STDC__
1916# include <limits.h>
1917#else
1918# include <assert.h>
1919#endif
1920
1921#undef $2
1922
1923/* Override any GCC internal prototype to avoid an error.
1924 Use char because int might match the return type of a GCC
1925 builtin and then its argument prototype would still apply. */
1926#ifdef __cplusplus
1927extern "C"
1928#endif
1929char $2 ();
1930/* The GNU C library defines this for functions which it implements
1931 to always fail with ENOSYS. Some functions are actually named
1932 something starting with __ and the normal name is an alias. */
1933#if defined __stub_$2 || defined __stub___$2
1934choke me
1935#endif
1936
1937int
1938main ()
1939{
1940return $2 ();
1941 ;
1942 return 0;
1943}
1944_ACEOF
1945if ac_fn_c_try_link "$LINENO"; then :
1946 eval "$3=yes"
1947else
1948 eval "$3=no"
1949fi
1950rm -f core conftest.err conftest.$ac_objext \
1951 conftest$ac_exeext conftest.$ac_ext
1952fi
1953eval ac_res=\$$3
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955$as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957
1958} # ac_fn_c_check_func
1959cat >config.log <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00001960This file contains any messages produced by compilers while
1961running configure, to aid debugging if configure makes a mistake.
1962
Pascal Bühler34acba62017-01-19 10:57:30 +01001963It was created by libsrtp2 $as_me 2.1.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04001964generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00001965
1966 $ $0 $@
1967
1968_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001969exec 5>>config.log
Cullen Jennings235513a2005-09-21 22:51:36 +00001970{
1971cat <<_ASUNAME
1972## --------- ##
1973## Platform. ##
1974## --------- ##
1975
1976hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1977uname -m = `(uname -m) 2>/dev/null || echo unknown`
1978uname -r = `(uname -r) 2>/dev/null || echo unknown`
1979uname -s = `(uname -s) 2>/dev/null || echo unknown`
1980uname -v = `(uname -v) 2>/dev/null || echo unknown`
1981
1982/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1983/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1984
1985/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1986/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1987/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
jfigusc7e66e32013-05-08 11:32:55 -04001988/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Cullen Jennings235513a2005-09-21 22:51:36 +00001989/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1990/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1991/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1992
1993_ASUNAME
1994
1995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996for as_dir in $PATH
1997do
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002000 $as_echo "PATH: $as_dir"
2001 done
2002IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002003
2004} >&5
2005
2006cat >&5 <<_ACEOF
2007
2008
2009## ----------- ##
2010## Core tests. ##
2011## ----------- ##
2012
2013_ACEOF
2014
2015
2016# Keep a trace of the command line.
2017# Strip out --no-create and --no-recursion so they do not pile up.
2018# Strip out --silent because we don't want to record it for future runs.
2019# Also quote any args containing shell meta-characters.
2020# Make two passes to allow for proper duplicate-argument suppression.
2021ac_configure_args=
2022ac_configure_args0=
2023ac_configure_args1=
Cullen Jennings235513a2005-09-21 22:51:36 +00002024ac_must_keep_next=false
2025for ac_pass in 1 2
2026do
2027 for ac_arg
2028 do
2029 case $ac_arg in
2030 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2032 | -silent | --silent | --silen | --sile | --sil)
2033 continue ;;
jfigusc7e66e32013-05-08 11:32:55 -04002034 *\'*)
2035 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002036 esac
2037 case $ac_pass in
jfigusc7e66e32013-05-08 11:32:55 -04002038 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002039 2)
jfigusc7e66e32013-05-08 11:32:55 -04002040 as_fn_append ac_configure_args1 " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002041 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00002042 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00002043 else
David McGrewfec49dd2005-09-23 19:34:11 +00002044 case $ac_arg in
2045 *=* | --config-cache | -C | -disable-* | --disable-* \
2046 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2047 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2048 | -with-* | --with-* | -without-* | --without-* | --x)
2049 case "$ac_configure_args0 " in
2050 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2051 esac
2052 ;;
2053 -* ) ac_must_keep_next=true ;;
2054 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00002055 fi
jfigusc7e66e32013-05-08 11:32:55 -04002056 as_fn_append ac_configure_args " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002057 ;;
2058 esac
2059 done
2060done
jfigusc7e66e32013-05-08 11:32:55 -04002061{ ac_configure_args0=; unset ac_configure_args0;}
2062{ ac_configure_args1=; unset ac_configure_args1;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002063
2064# When interrupted or exit'd, cleanup temporary files, and complete
2065# config.log. We remove comments because anyway the quotes in there
2066# would cause problems or look ugly.
jfigusc7e66e32013-05-08 11:32:55 -04002067# WARNING: Use '\'' to represent an apostrophe within the trap.
2068# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Cullen Jennings235513a2005-09-21 22:51:36 +00002069trap 'exit_status=$?
2070 # Save into config.log some information that might help in debugging.
2071 {
2072 echo
2073
jfigusc7e66e32013-05-08 11:32:55 -04002074 $as_echo "## ---------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002075## Cache variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002076## ---------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002077 echo
2078 # The following way of writing the cache mishandles newlines in values,
jfigusc7e66e32013-05-08 11:32:55 -04002079(
2080 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2081 eval ac_val=\$$ac_var
2082 case $ac_val in #(
2083 *${as_nl}*)
2084 case $ac_var in #(
2085 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2086$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2087 esac
2088 case $ac_var in #(
2089 _ | IFS | as_nl) ;; #(
2090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2091 *) { eval $ac_var=; unset $ac_var;} ;;
2092 esac ;;
2093 esac
2094 done
Cullen Jennings235513a2005-09-21 22:51:36 +00002095 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04002096 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2097 *${as_nl}ac_space=\ *)
Cullen Jennings235513a2005-09-21 22:51:36 +00002098 sed -n \
jfigusc7e66e32013-05-08 11:32:55 -04002099 "s/'\''/'\''\\\\'\'''\''/g;
2100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2101 ;; #(
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002102 *)
jfigusc7e66e32013-05-08 11:32:55 -04002103 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002104 ;;
jfigusc7e66e32013-05-08 11:32:55 -04002105 esac |
2106 sort
2107)
Cullen Jennings235513a2005-09-21 22:51:36 +00002108 echo
2109
jfigusc7e66e32013-05-08 11:32:55 -04002110 $as_echo "## ----------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002111## Output variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002112## ----------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002113 echo
2114 for ac_var in $ac_subst_vars
2115 do
jfigusc7e66e32013-05-08 11:32:55 -04002116 eval ac_val=\$$ac_var
2117 case $ac_val in
2118 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119 esac
2120 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002121 done | sort
2122 echo
2123
2124 if test -n "$ac_subst_files"; then
jfigusc7e66e32013-05-08 11:32:55 -04002125 $as_echo "## ------------------- ##
2126## File substitutions. ##
2127## ------------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002128 echo
2129 for ac_var in $ac_subst_files
2130 do
jfigusc7e66e32013-05-08 11:32:55 -04002131 eval ac_val=\$$ac_var
2132 case $ac_val in
2133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2134 esac
2135 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002136 done | sort
2137 echo
2138 fi
2139
2140 if test -s confdefs.h; then
jfigusc7e66e32013-05-08 11:32:55 -04002141 $as_echo "## ----------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002142## confdefs.h. ##
jfigusc7e66e32013-05-08 11:32:55 -04002143## ----------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002144 echo
jfigusc7e66e32013-05-08 11:32:55 -04002145 cat confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002146 echo
2147 fi
2148 test "$ac_signal" != 0 &&
jfigusc7e66e32013-05-08 11:32:55 -04002149 $as_echo "$as_me: caught signal $ac_signal"
2150 $as_echo "$as_me: exit $exit_status"
Cullen Jennings235513a2005-09-21 22:51:36 +00002151 } >&5
jfigusc7e66e32013-05-08 11:32:55 -04002152 rm -f core *.core core.conftest.* &&
2153 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Cullen Jennings235513a2005-09-21 22:51:36 +00002154 exit $exit_status
jfigusc7e66e32013-05-08 11:32:55 -04002155' 0
Cullen Jennings235513a2005-09-21 22:51:36 +00002156for ac_signal in 1 2 13 15; do
jfigusc7e66e32013-05-08 11:32:55 -04002157 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Cullen Jennings235513a2005-09-21 22:51:36 +00002158done
2159ac_signal=0
2160
2161# confdefs.h avoids OS command line length limits that DEFS can exceed.
jfigusc7e66e32013-05-08 11:32:55 -04002162rm -f -r conftest* confdefs.h
2163
2164$as_echo "/* confdefs.h */" > confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002165
2166# Predefined preprocessor variables.
2167
2168cat >>confdefs.h <<_ACEOF
2169#define PACKAGE_NAME "$PACKAGE_NAME"
2170_ACEOF
2171
Cullen Jennings235513a2005-09-21 22:51:36 +00002172cat >>confdefs.h <<_ACEOF
2173#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2174_ACEOF
2175
Cullen Jennings235513a2005-09-21 22:51:36 +00002176cat >>confdefs.h <<_ACEOF
2177#define PACKAGE_VERSION "$PACKAGE_VERSION"
2178_ACEOF
2179
Cullen Jennings235513a2005-09-21 22:51:36 +00002180cat >>confdefs.h <<_ACEOF
2181#define PACKAGE_STRING "$PACKAGE_STRING"
2182_ACEOF
2183
Cullen Jennings235513a2005-09-21 22:51:36 +00002184cat >>confdefs.h <<_ACEOF
2185#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2186_ACEOF
2187
jfigusc7e66e32013-05-08 11:32:55 -04002188cat >>confdefs.h <<_ACEOF
2189#define PACKAGE_URL "$PACKAGE_URL"
2190_ACEOF
2191
Cullen Jennings235513a2005-09-21 22:51:36 +00002192
2193# Let the site file select an alternate cache file if it wants to.
jfigusc7e66e32013-05-08 11:32:55 -04002194# Prefer an explicitly selected file to automatically selected ones.
2195ac_site_file1=NONE
2196ac_site_file2=NONE
2197if test -n "$CONFIG_SITE"; then
2198 # We do not want a PATH search for config.site.
2199 case $CONFIG_SITE in #((
2200 -*) ac_site_file1=./$CONFIG_SITE;;
2201 */*) ac_site_file1=$CONFIG_SITE;;
2202 *) ac_site_file1=./$CONFIG_SITE;;
2203 esac
2204elif test "x$prefix" != xNONE; then
2205 ac_site_file1=$prefix/share/config.site
2206 ac_site_file2=$prefix/etc/config.site
2207else
2208 ac_site_file1=$ac_default_prefix/share/config.site
2209 ac_site_file2=$ac_default_prefix/etc/config.site
Cullen Jennings235513a2005-09-21 22:51:36 +00002210fi
jfigusc7e66e32013-05-08 11:32:55 -04002211for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2212do
2213 test "x$ac_site_file" = xNONE && continue
2214 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2216$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002217 sed 's/^/| /' "$ac_site_file" >&5
jfigusc7e66e32013-05-08 11:32:55 -04002218 . "$ac_site_file" \
2219 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2221as_fn_error $? "failed to load site script $ac_site_file
2222See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002223 fi
2224done
2225
2226if test -r "$cache_file"; then
jfigusc7e66e32013-05-08 11:32:55 -04002227 # Some versions of bash will fail to source /dev/null (special files
2228 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2229 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2231$as_echo "$as_me: loading cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002232 case $cache_file in
jfigusc7e66e32013-05-08 11:32:55 -04002233 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2234 *) . "./$cache_file";;
Cullen Jennings235513a2005-09-21 22:51:36 +00002235 esac
2236 fi
2237else
jfigusc7e66e32013-05-08 11:32:55 -04002238 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2239$as_echo "$as_me: creating cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002240 >$cache_file
2241fi
2242
2243# Check that the precious variables saved in the cache have kept the same
2244# value.
2245ac_cache_corrupted=false
jfigusc7e66e32013-05-08 11:32:55 -04002246for ac_var in $ac_precious_vars; do
Cullen Jennings235513a2005-09-21 22:51:36 +00002247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2248 eval ac_new_set=\$ac_env_${ac_var}_set
jfigusc7e66e32013-05-08 11:32:55 -04002249 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2250 eval ac_new_val=\$ac_env_${ac_var}_value
Cullen Jennings235513a2005-09-21 22:51:36 +00002251 case $ac_old_set,$ac_new_set in
2252 set,)
jfigusc7e66e32013-05-08 11:32:55 -04002253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2254$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 +00002255 ac_cache_corrupted=: ;;
2256 ,set)
jfigusc7e66e32013-05-08 11:32:55 -04002257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2258$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002259 ac_cache_corrupted=: ;;
2260 ,);;
2261 *)
2262 if test "x$ac_old_val" != "x$ac_new_val"; then
jfigusc7e66e32013-05-08 11:32:55 -04002263 # differences in whitespace do not lead to failure.
2264 ac_old_val_w=`echo x $ac_old_val`
2265 ac_new_val_w=`echo x $ac_new_val`
2266 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2268$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2269 ac_cache_corrupted=:
2270 else
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2272$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2273 eval $ac_var=\$ac_old_val
2274 fi
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2276$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2278$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002279 fi;;
2280 esac
2281 # Pass precious variables to config.status.
2282 if test "$ac_new_set" = set; then
2283 case $ac_new_val in
jfigusc7e66e32013-05-08 11:32:55 -04002284 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002285 *) ac_arg=$ac_var=$ac_new_val ;;
2286 esac
2287 case " $ac_configure_args " in
2288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jfigusc7e66e32013-05-08 11:32:55 -04002289 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002290 esac
2291 fi
2292done
2293if $ac_cache_corrupted; then
jfigusc7e66e32013-05-08 11:32:55 -04002294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2297$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2298 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00002299fi
jfigusc7e66e32013-05-08 11:32:55 -04002300## -------------------- ##
2301## Main body of script. ##
2302## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002303
2304ac_ext=c
2305ac_cpp='$CPP $CPPFLAGS'
2306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2308ac_compiler_gnu=$ac_cv_c_compiler_gnu
2309
2310
2311
Idar Tollefsen600ad962017-01-26 11:24:51 +01002312EMPTY_CFLAGS="no"
2313if test "x$CFLAGS" = "x"; then
2314 EMPTY_CFLAGS="yes"
David McGrewb67061f2005-09-28 14:23:06 +00002315fi
2316
Cullen Jennings235513a2005-09-21 22:51:36 +00002317ac_ext=c
2318ac_cpp='$CPP $CPPFLAGS'
2319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322if test -n "$ac_tool_prefix"; then
2323 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2324set dummy ${ac_tool_prefix}gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2326$as_echo_n "checking for $ac_word... " >&6; }
2327if ${ac_cv_prog_CC+:} false; then :
2328 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002329else
2330 if test -n "$CC"; then
2331 ac_cv_prog_CC="$CC" # Let the user override the test.
2332else
2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334for as_dir in $PATH
2335do
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002340 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002342 break 2
2343 fi
2344done
jfigusc7e66e32013-05-08 11:32:55 -04002345 done
2346IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002347
2348fi
2349fi
2350CC=$ac_cv_prog_CC
2351if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2353$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002354else
jfigusc7e66e32013-05-08 11:32:55 -04002355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2356$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002357fi
2358
jfigusc7e66e32013-05-08 11:32:55 -04002359
Cullen Jennings235513a2005-09-21 22:51:36 +00002360fi
2361if test -z "$ac_cv_prog_CC"; then
2362 ac_ct_CC=$CC
2363 # Extract the first word of "gcc", so it can be a program name with args.
2364set dummy gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2366$as_echo_n "checking for $ac_word... " >&6; }
2367if ${ac_cv_prog_ac_ct_CC+:} false; then :
2368 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002369else
2370 if test -n "$ac_ct_CC"; then
2371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2372else
2373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374for as_dir in $PATH
2375do
2376 IFS=$as_save_IFS
2377 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002380 ac_cv_prog_ac_ct_CC="gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002382 break 2
2383 fi
2384done
jfigusc7e66e32013-05-08 11:32:55 -04002385 done
2386IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002387
2388fi
2389fi
2390ac_ct_CC=$ac_cv_prog_ac_ct_CC
2391if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2393$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002394else
jfigusc7e66e32013-05-08 11:32:55 -04002395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2396$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002397fi
2398
jfigusc7e66e32013-05-08 11:32:55 -04002399 if test "x$ac_ct_CC" = x; then
2400 CC=""
2401 else
2402 case $cross_compiling:$ac_tool_warned in
2403yes:)
2404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2406ac_tool_warned=yes ;;
2407esac
2408 CC=$ac_ct_CC
2409 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002410else
2411 CC="$ac_cv_prog_CC"
2412fi
2413
2414if test -z "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002415 if test -n "$ac_tool_prefix"; then
2416 # 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 +00002417set dummy ${ac_tool_prefix}cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2419$as_echo_n "checking for $ac_word... " >&6; }
2420if ${ac_cv_prog_CC+:} false; then :
2421 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002422else
2423 if test -n "$CC"; then
2424 ac_cv_prog_CC="$CC" # Let the user override the test.
2425else
2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427for as_dir in $PATH
2428do
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002433 ac_cv_prog_CC="${ac_tool_prefix}cc"
jfigusc7e66e32013-05-08 11:32:55 -04002434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002435 break 2
2436 fi
2437done
jfigusc7e66e32013-05-08 11:32:55 -04002438 done
2439IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002440
2441fi
2442fi
2443CC=$ac_cv_prog_CC
2444if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2446$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002447else
jfigusc7e66e32013-05-08 11:32:55 -04002448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2449$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002450fi
2451
jfigusc7e66e32013-05-08 11:32:55 -04002452
Cullen Jennings235513a2005-09-21 22:51:36 +00002453 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002454fi
2455if test -z "$CC"; then
2456 # Extract the first word of "cc", so it can be a program name with args.
2457set dummy cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2459$as_echo_n "checking for $ac_word... " >&6; }
2460if ${ac_cv_prog_CC+:} false; then :
2461 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002462else
2463 if test -n "$CC"; then
2464 ac_cv_prog_CC="$CC" # Let the user override the test.
2465else
2466 ac_prog_rejected=no
2467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468for as_dir in $PATH
2469do
2470 IFS=$as_save_IFS
2471 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002474 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2475 ac_prog_rejected=yes
2476 continue
2477 fi
2478 ac_cv_prog_CC="cc"
jfigusc7e66e32013-05-08 11:32:55 -04002479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002480 break 2
2481 fi
2482done
jfigusc7e66e32013-05-08 11:32:55 -04002483 done
2484IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002485
2486if test $ac_prog_rejected = yes; then
2487 # We found a bogon in the path, so make sure we never use it.
2488 set dummy $ac_cv_prog_CC
2489 shift
2490 if test $# != 0; then
2491 # We chose a different compiler from the bogus one.
2492 # However, it has the same basename, so the bogon will be chosen
2493 # first if we set CC to just the basename; use the full file name.
2494 shift
2495 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2496 fi
2497fi
2498fi
2499fi
2500CC=$ac_cv_prog_CC
2501if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2503$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002504else
jfigusc7e66e32013-05-08 11:32:55 -04002505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2506$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002507fi
2508
jfigusc7e66e32013-05-08 11:32:55 -04002509
Cullen Jennings235513a2005-09-21 22:51:36 +00002510fi
2511if test -z "$CC"; then
2512 if test -n "$ac_tool_prefix"; then
jfigusc7e66e32013-05-08 11:32:55 -04002513 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002514 do
2515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2516set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518$as_echo_n "checking for $ac_word... " >&6; }
2519if ${ac_cv_prog_CC+:} false; then :
2520 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002521else
2522 if test -n "$CC"; then
2523 ac_cv_prog_CC="$CC" # Let the user override the test.
2524else
2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH
2527do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002532 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002534 break 2
2535 fi
2536done
jfigusc7e66e32013-05-08 11:32:55 -04002537 done
2538IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002539
2540fi
2541fi
2542CC=$ac_cv_prog_CC
2543if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2545$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002546else
jfigusc7e66e32013-05-08 11:32:55 -04002547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002549fi
2550
jfigusc7e66e32013-05-08 11:32:55 -04002551
Cullen Jennings235513a2005-09-21 22:51:36 +00002552 test -n "$CC" && break
2553 done
2554fi
2555if test -z "$CC"; then
2556 ac_ct_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04002557 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002558do
2559 # Extract the first word of "$ac_prog", so it can be a program name with args.
2560set dummy $ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2562$as_echo_n "checking for $ac_word... " >&6; }
2563if ${ac_cv_prog_ac_ct_CC+:} false; then :
2564 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002565else
2566 if test -n "$ac_ct_CC"; then
2567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2568else
2569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570for as_dir in $PATH
2571do
2572 IFS=$as_save_IFS
2573 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002576 ac_cv_prog_ac_ct_CC="$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002578 break 2
2579 fi
2580done
jfigusc7e66e32013-05-08 11:32:55 -04002581 done
2582IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002583
2584fi
2585fi
2586ac_ct_CC=$ac_cv_prog_ac_ct_CC
2587if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2589$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002590else
jfigusc7e66e32013-05-08 11:32:55 -04002591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002593fi
2594
jfigusc7e66e32013-05-08 11:32:55 -04002595
Cullen Jennings235513a2005-09-21 22:51:36 +00002596 test -n "$ac_ct_CC" && break
2597done
2598
jfigusc7e66e32013-05-08 11:32:55 -04002599 if test "x$ac_ct_CC" = x; then
2600 CC=""
2601 else
2602 case $cross_compiling:$ac_tool_warned in
2603yes:)
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2606ac_tool_warned=yes ;;
2607esac
2608 CC=$ac_ct_CC
2609 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002610fi
2611
2612fi
2613
2614
jfigusc7e66e32013-05-08 11:32:55 -04002615test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2617as_fn_error $? "no acceptable C compiler found in \$PATH
2618See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002619
2620# Provide some information about the compiler.
jfigusc7e66e32013-05-08 11:32:55 -04002621$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2622set X $ac_compile
2623ac_compiler=$2
2624for ac_option in --version -v -V -qversion; do
2625 { { ac_try="$ac_compiler $ac_option >&5"
2626case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2629esac
2630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2631$as_echo "$ac_try_echo"; } >&5
2632 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Cullen Jennings235513a2005-09-21 22:51:36 +00002633 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002634 if test -s conftest.err; then
2635 sed '10a\
2636... rest of stderr output deleted ...
2637 10q' conftest.err >conftest.er1
2638 cat conftest.er1 >&5
2639 fi
2640 rm -f conftest.er1 conftest.err
2641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2642 test $ac_status = 0; }
2643done
Cullen Jennings235513a2005-09-21 22:51:36 +00002644
jfigusc7e66e32013-05-08 11:32:55 -04002645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002646/* end confdefs.h. */
2647
2648int
2649main ()
2650{
2651
2652 ;
2653 return 0;
2654}
2655_ACEOF
2656ac_clean_files_save=$ac_clean_files
jfigusc7e66e32013-05-08 11:32:55 -04002657ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Cullen Jennings235513a2005-09-21 22:51:36 +00002658# Try to create an executable without -o first, disregard a.out.
2659# It will help us diagnose broken compilers, and finding out an intuition
2660# of exeext.
jfigusc7e66e32013-05-08 11:32:55 -04002661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2662$as_echo_n "checking whether the C compiler works... " >&6; }
2663ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002664
jfigusc7e66e32013-05-08 11:32:55 -04002665# The possible output files:
2666ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2667
2668ac_rmfiles=
2669for ac_file in $ac_files
2670do
2671 case $ac_file in
2672 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2673 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2674 esac
2675done
2676rm -f $ac_rmfiles
2677
2678if { { ac_try="$ac_link_default"
2679case "(($ac_try" in
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2682esac
2683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2684$as_echo "$ac_try_echo"; } >&5
2685 (eval "$ac_link_default") 2>&5
2686 ac_status=$?
2687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2688 test $ac_status = 0; }; then :
2689 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2690# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2691# in a Makefile. We should not override ac_cv_exeext if it was cached,
2692# so that the user can short-circuit this test for compilers unknown to
2693# Autoconf.
2694for ac_file in $ac_files ''
Cullen Jennings235513a2005-09-21 22:51:36 +00002695do
2696 test -f "$ac_file" || continue
2697 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002698 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00002699 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002700 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00002701 # We found the default executable, but exeext='' is most
2702 # certainly right.
2703 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002704 *.* )
jfigusc7e66e32013-05-08 11:32:55 -04002705 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2706 then :; else
2707 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2708 fi
2709 # We set ac_cv_exeext here because the later test for it is not
2710 # safe: cross compilers may not add the suffix if given an `-o'
2711 # argument, so we may need to know it at that point already.
2712 # Even if this section looks crufty: it has the advantage of
2713 # actually working.
David McGrewfec49dd2005-09-23 19:34:11 +00002714 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002715 * )
David McGrewfec49dd2005-09-23 19:34:11 +00002716 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002717 esac
2718done
jfigusc7e66e32013-05-08 11:32:55 -04002719test "$ac_cv_exeext" = no && ac_cv_exeext=
2720
Cullen Jennings235513a2005-09-21 22:51:36 +00002721else
jfigusc7e66e32013-05-08 11:32:55 -04002722 ac_file=''
2723fi
2724if test -z "$ac_file"; then :
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726$as_echo "no" >&6; }
2727$as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002728sed 's/^/| /' conftest.$ac_ext >&5
2729
jfigusc7e66e32013-05-08 11:32:55 -04002730{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2732as_fn_error 77 "C compiler cannot create executables
2733See \`config.log' for more details" "$LINENO" 5; }
2734else
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2736$as_echo "yes" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002737fi
jfigusc7e66e32013-05-08 11:32:55 -04002738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2739$as_echo_n "checking for C compiler default output file name... " >&6; }
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2741$as_echo "$ac_file" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002742ac_exeext=$ac_cv_exeext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002743
jfigusc7e66e32013-05-08 11:32:55 -04002744rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002745ac_clean_files=$ac_clean_files_save
jfigusc7e66e32013-05-08 11:32:55 -04002746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2747$as_echo_n "checking for suffix of executables... " >&6; }
2748if { { ac_try="$ac_link"
2749case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752esac
2753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2754$as_echo "$ac_try_echo"; } >&5
2755 (eval "$ac_link") 2>&5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002756 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2758 test $ac_status = 0; }; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002759 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2760# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2761# work properly (i.e., refer to `conftest.exe'), while it won't with
2762# `rm'.
2763for ac_file in conftest.exe conftest conftest.*; do
2764 test -f "$ac_file" || continue
2765 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002767 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00002768 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002769 * ) break;;
2770 esac
2771done
2772else
jfigusc7e66e32013-05-08 11:32:55 -04002773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2775as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2776See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002777fi
jfigusc7e66e32013-05-08 11:32:55 -04002778rm -f conftest conftest$ac_cv_exeext
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2780$as_echo "$ac_cv_exeext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002781
2782rm -f conftest.$ac_ext
2783EXEEXT=$ac_cv_exeext
2784ac_exeext=$EXEEXT
jfigusc7e66e32013-05-08 11:32:55 -04002785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2786/* end confdefs.h. */
2787#include <stdio.h>
2788int
2789main ()
2790{
2791FILE *f = fopen ("conftest.out", "w");
2792 return ferror (f) || fclose (f) != 0;
2793
2794 ;
2795 return 0;
2796}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002797_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002798ac_clean_files="$ac_clean_files conftest.out"
2799# Check that the compiler produces executables we can run. If not, either
2800# the compiler is broken, or we cross compile.
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2802$as_echo_n "checking whether we are cross compiling... " >&6; }
2803if test "$cross_compiling" != yes; then
2804 { { ac_try="$ac_link"
2805case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2808esac
2809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2810$as_echo "$ac_try_echo"; } >&5
2811 (eval "$ac_link") 2>&5
2812 ac_status=$?
2813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2814 test $ac_status = 0; }
2815 if { ac_try='./conftest$ac_cv_exeext'
2816 { { case "(($ac_try" in
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2819esac
2820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2821$as_echo "$ac_try_echo"; } >&5
2822 (eval "$ac_try") 2>&5
2823 ac_status=$?
2824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2825 test $ac_status = 0; }; }; then
2826 cross_compiling=no
2827 else
2828 if test "$cross_compiling" = maybe; then
2829 cross_compiling=yes
2830 else
2831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2833as_fn_error $? "cannot run C compiled programs.
2834If you meant to cross compile, use \`--host'.
2835See \`config.log' for more details" "$LINENO" 5; }
2836 fi
2837 fi
2838fi
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2840$as_echo "$cross_compiling" >&6; }
2841
2842rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2843ac_clean_files=$ac_clean_files_save
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2845$as_echo_n "checking for suffix of object files... " >&6; }
2846if ${ac_cv_objext+:} false; then :
2847 $as_echo_n "(cached) " >&6
2848else
2849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002850/* end confdefs.h. */
2851
2852int
2853main ()
2854{
2855
2856 ;
2857 return 0;
2858}
2859_ACEOF
2860rm -f conftest.o conftest.obj
jfigusc7e66e32013-05-08 11:32:55 -04002861if { { ac_try="$ac_compile"
2862case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2865esac
2866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2867$as_echo "$ac_try_echo"; } >&5
2868 (eval "$ac_compile") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002869 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2871 test $ac_status = 0; }; then :
2872 for ac_file in conftest.o conftest.obj conftest.*; do
2873 test -f "$ac_file" || continue;
Cullen Jennings235513a2005-09-21 22:51:36 +00002874 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002876 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2877 break;;
2878 esac
2879done
2880else
jfigusc7e66e32013-05-08 11:32:55 -04002881 $as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002882sed 's/^/| /' conftest.$ac_ext >&5
2883
jfigusc7e66e32013-05-08 11:32:55 -04002884{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2886as_fn_error $? "cannot compute suffix of object files: cannot compile
2887See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002888fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002889rm -f conftest.$ac_cv_objext conftest.$ac_ext
2890fi
jfigusc7e66e32013-05-08 11:32:55 -04002891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2892$as_echo "$ac_cv_objext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002893OBJEXT=$ac_cv_objext
2894ac_objext=$OBJEXT
jfigusc7e66e32013-05-08 11:32:55 -04002895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2896$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2897if ${ac_cv_c_compiler_gnu+:} false; then :
2898 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002899else
jfigusc7e66e32013-05-08 11:32:55 -04002900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002901/* end confdefs.h. */
2902
2903int
2904main ()
2905{
2906#ifndef __GNUC__
2907 choke me
2908#endif
2909
2910 ;
2911 return 0;
2912}
2913_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002914if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002915 ac_compiler_gnu=yes
2916else
jfigusc7e66e32013-05-08 11:32:55 -04002917 ac_compiler_gnu=no
Cullen Jennings235513a2005-09-21 22:51:36 +00002918fi
jfigusc7e66e32013-05-08 11:32:55 -04002919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002920ac_cv_c_compiler_gnu=$ac_compiler_gnu
2921
2922fi
jfigusc7e66e32013-05-08 11:32:55 -04002923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2924$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2925if test $ac_compiler_gnu = yes; then
2926 GCC=yes
2927else
2928 GCC=
2929fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002930ac_test_CFLAGS=${CFLAGS+set}
2931ac_save_CFLAGS=$CFLAGS
jfigusc7e66e32013-05-08 11:32:55 -04002932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2933$as_echo_n "checking whether $CC accepts -g... " >&6; }
2934if ${ac_cv_prog_cc_g+:} false; then :
2935 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002936else
jfigusc7e66e32013-05-08 11:32:55 -04002937 ac_save_c_werror_flag=$ac_c_werror_flag
2938 ac_c_werror_flag=yes
2939 ac_cv_prog_cc_g=no
2940 CFLAGS="-g"
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002942/* end confdefs.h. */
2943
2944int
2945main ()
2946{
2947
2948 ;
2949 return 0;
2950}
2951_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002952if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002953 ac_cv_prog_cc_g=yes
2954else
jfigusc7e66e32013-05-08 11:32:55 -04002955 CFLAGS=""
2956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2957/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00002958
jfigusc7e66e32013-05-08 11:32:55 -04002959int
2960main ()
2961{
2962
2963 ;
2964 return 0;
2965}
2966_ACEOF
2967if ac_fn_c_try_compile "$LINENO"; then :
2968
2969else
2970 ac_c_werror_flag=$ac_save_c_werror_flag
2971 CFLAGS="-g"
2972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2973/* end confdefs.h. */
2974
2975int
2976main ()
2977{
2978
2979 ;
2980 return 0;
2981}
2982_ACEOF
2983if ac_fn_c_try_compile "$LINENO"; then :
2984 ac_cv_prog_cc_g=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00002985fi
jfigusc7e66e32013-05-08 11:32:55 -04002986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002987fi
jfigusc7e66e32013-05-08 11:32:55 -04002988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989fi
2990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2991 ac_c_werror_flag=$ac_save_c_werror_flag
2992fi
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2994$as_echo "$ac_cv_prog_cc_g" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002995if test "$ac_test_CFLAGS" = set; then
2996 CFLAGS=$ac_save_CFLAGS
2997elif test $ac_cv_prog_cc_g = yes; then
2998 if test "$GCC" = yes; then
2999 CFLAGS="-g -O2"
3000 else
3001 CFLAGS="-g"
3002 fi
3003else
3004 if test "$GCC" = yes; then
3005 CFLAGS="-O2"
3006 else
3007 CFLAGS=
3008 fi
3009fi
jfigusc7e66e32013-05-08 11:32:55 -04003010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3011$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3012if ${ac_cv_prog_cc_c89+:} false; then :
3013 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003014else
jfigusc7e66e32013-05-08 11:32:55 -04003015 ac_cv_prog_cc_c89=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003016ac_save_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04003017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003018/* end confdefs.h. */
3019#include <stdarg.h>
3020#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -04003021struct stat;
Cullen Jennings235513a2005-09-21 22:51:36 +00003022/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3023struct buf { int x; };
3024FILE * (*rcsopen) (struct buf *, struct stat *, int);
3025static char *e (p, i)
3026 char **p;
3027 int i;
3028{
3029 return p[i];
3030}
3031static char *f (char * (*g) (char **, int), char **p, ...)
3032{
3033 char *s;
3034 va_list v;
3035 va_start (v,p);
3036 s = g (p, va_arg (v,int));
3037 va_end (v);
3038 return s;
3039}
David McGrewfec49dd2005-09-23 19:34:11 +00003040
3041/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3042 function prototypes and stuff, but not '\xHH' hex character constants.
3043 These don't provoke an error unfortunately, instead are silently treated
jfigusc7e66e32013-05-08 11:32:55 -04003044 as 'x'. The following induces an error, until -std is added to get
David McGrewfec49dd2005-09-23 19:34:11 +00003045 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3046 array size at least. It's necessary to write '\x00'==0 to get something
jfigusc7e66e32013-05-08 11:32:55 -04003047 that's true only with -std. */
David McGrewfec49dd2005-09-23 19:34:11 +00003048int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3049
jfigusc7e66e32013-05-08 11:32:55 -04003050/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3051 inside strings and character constants. */
3052#define FOO(x) 'x'
3053int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3054
Cullen Jennings235513a2005-09-21 22:51:36 +00003055int test (int i, double x);
3056struct s1 {int (*f) (int a);};
3057struct s2 {int (*f) (double a);};
3058int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3059int argc;
3060char **argv;
3061int
3062main ()
3063{
3064return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3065 ;
3066 return 0;
3067}
3068_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003069for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3070 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Cullen Jennings235513a2005-09-21 22:51:36 +00003071do
3072 CC="$ac_save_CC $ac_arg"
jfigusc7e66e32013-05-08 11:32:55 -04003073 if ac_fn_c_try_compile "$LINENO"; then :
3074 ac_cv_prog_cc_c89=$ac_arg
Cullen Jennings235513a2005-09-21 22:51:36 +00003075fi
jfigusc7e66e32013-05-08 11:32:55 -04003076rm -f core conftest.err conftest.$ac_objext
3077 test "x$ac_cv_prog_cc_c89" != "xno" && break
Cullen Jennings235513a2005-09-21 22:51:36 +00003078done
jfigusc7e66e32013-05-08 11:32:55 -04003079rm -f conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003080CC=$ac_save_CC
3081
3082fi
jfigusc7e66e32013-05-08 11:32:55 -04003083# AC_CACHE_VAL
3084case "x$ac_cv_prog_cc_c89" in
3085 x)
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3087$as_echo "none needed" >&6; } ;;
3088 xno)
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3090$as_echo "unsupported" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003091 *)
jfigusc7e66e32013-05-08 11:32:55 -04003092 CC="$CC $ac_cv_prog_cc_c89"
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3094$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003095esac
jfigusc7e66e32013-05-08 11:32:55 -04003096if test "x$ac_cv_prog_cc_c89" != xno; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003097
3098fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003099
Cullen Jennings235513a2005-09-21 22:51:36 +00003100ac_ext=c
3101ac_cpp='$CPP $CPPFLAGS'
3102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105
Idar Tollefsencb771f72017-05-03 13:20:08 +02003106ac_ext=c
3107ac_cpp='$CPP $CPPFLAGS'
3108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3112$as_echo_n "checking how to run the C preprocessor... " >&6; }
3113# On Suns, sometimes $CPP names a directory.
3114if test -n "$CPP" && test -d "$CPP"; then
3115 CPP=
3116fi
3117if test -z "$CPP"; then
3118 if ${ac_cv_prog_CPP+:} false; then :
3119 $as_echo_n "(cached) " >&6
3120else
3121 # Double quotes because CPP needs to be expanded
3122 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3123 do
3124 ac_preproc_ok=false
3125for ac_c_preproc_warn_flag in '' yes
3126do
3127 # Use a header file that comes with gcc, so configuring glibc
3128 # with a fresh cross-compiler works.
3129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3130 # <limits.h> exists even on freestanding compilers.
3131 # On the NeXT, cc -E runs the code through the compiler's parser,
3132 # not just through cpp. "Syntax error" is here to catch this case.
3133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134/* end confdefs.h. */
3135#ifdef __STDC__
3136# include <limits.h>
3137#else
3138# include <assert.h>
3139#endif
3140 Syntax error
3141_ACEOF
3142if ac_fn_c_try_cpp "$LINENO"; then :
3143
3144else
3145 # Broken: fails on valid input.
3146continue
3147fi
3148rm -f conftest.err conftest.i conftest.$ac_ext
3149
3150 # OK, works on sane cases. Now check whether nonexistent headers
3151 # can be detected and how.
3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153/* end confdefs.h. */
3154#include <ac_nonexistent.h>
3155_ACEOF
3156if ac_fn_c_try_cpp "$LINENO"; then :
3157 # Broken: success on invalid input.
3158continue
3159else
3160 # Passes both tests.
3161ac_preproc_ok=:
3162break
3163fi
3164rm -f conftest.err conftest.i conftest.$ac_ext
3165
3166done
3167# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3168rm -f conftest.i conftest.err conftest.$ac_ext
3169if $ac_preproc_ok; then :
3170 break
3171fi
3172
3173 done
3174 ac_cv_prog_CPP=$CPP
3175
3176fi
3177 CPP=$ac_cv_prog_CPP
3178else
3179 ac_cv_prog_CPP=$CPP
3180fi
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3182$as_echo "$CPP" >&6; }
3183ac_preproc_ok=false
3184for ac_c_preproc_warn_flag in '' yes
3185do
3186 # Use a header file that comes with gcc, so configuring glibc
3187 # with a fresh cross-compiler works.
3188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3189 # <limits.h> exists even on freestanding compilers.
3190 # On the NeXT, cc -E runs the code through the compiler's parser,
3191 # not just through cpp. "Syntax error" is here to catch this case.
3192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193/* end confdefs.h. */
3194#ifdef __STDC__
3195# include <limits.h>
3196#else
3197# include <assert.h>
3198#endif
3199 Syntax error
3200_ACEOF
3201if ac_fn_c_try_cpp "$LINENO"; then :
3202
3203else
3204 # Broken: fails on valid input.
3205continue
3206fi
3207rm -f conftest.err conftest.i conftest.$ac_ext
3208
3209 # OK, works on sane cases. Now check whether nonexistent headers
3210 # can be detected and how.
3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212/* end confdefs.h. */
3213#include <ac_nonexistent.h>
3214_ACEOF
3215if ac_fn_c_try_cpp "$LINENO"; then :
3216 # Broken: success on invalid input.
3217continue
3218else
3219 # Passes both tests.
3220ac_preproc_ok=:
3221break
3222fi
3223rm -f conftest.err conftest.i conftest.$ac_ext
3224
3225done
3226# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3227rm -f conftest.i conftest.err conftest.$ac_ext
3228if $ac_preproc_ok; then :
3229
3230else
3231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3234See \`config.log' for more details" "$LINENO" 5; }
3235fi
3236
3237ac_ext=c
3238ac_cpp='$CPP $CPPFLAGS'
3239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242
3243
3244ac_aux_dir=
3245for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3246 if test -f "$ac_dir/install-sh"; then
3247 ac_aux_dir=$ac_dir
3248 ac_install_sh="$ac_aux_dir/install-sh -c"
3249 break
3250 elif test -f "$ac_dir/install.sh"; then
3251 ac_aux_dir=$ac_dir
3252 ac_install_sh="$ac_aux_dir/install.sh -c"
3253 break
3254 elif test -f "$ac_dir/shtool"; then
3255 ac_aux_dir=$ac_dir
3256 ac_install_sh="$ac_aux_dir/shtool install -c"
3257 break
3258 fi
3259done
3260if test -z "$ac_aux_dir"; then
3261 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3262fi
3263
3264# These three variables are undocumented and unsupported,
3265# and are intended to be withdrawn in a future Autoconf release.
3266# They can cause serious problems if a builder's source tree is in a directory
3267# whose full name contains unusual characters.
3268ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3269ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3270ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3271
3272
3273# Expand $ac_aux_dir to an absolute path.
3274am_aux_dir=`cd "$ac_aux_dir" && pwd`
3275
jfigus1ce6a742015-04-06 08:54:01 -04003276
3277if test -n "$ac_tool_prefix"; then
3278 for ac_prog in ar lib "link -lib"
3279 do
3280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3281set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283$as_echo_n "checking for $ac_word... " >&6; }
3284if ${ac_cv_prog_AR+:} false; then :
3285 $as_echo_n "(cached) " >&6
3286else
3287 if test -n "$AR"; then
3288 ac_cv_prog_AR="$AR" # Let the user override the test.
3289else
3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291for as_dir in $PATH
3292do
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3297 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 break 2
3300 fi
3301done
3302 done
3303IFS=$as_save_IFS
3304
3305fi
3306fi
3307AR=$ac_cv_prog_AR
3308if test -n "$AR"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3310$as_echo "$AR" >&6; }
3311else
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313$as_echo "no" >&6; }
3314fi
3315
3316
3317 test -n "$AR" && break
3318 done
3319fi
3320if test -z "$AR"; then
3321 ac_ct_AR=$AR
3322 for ac_prog in ar lib "link -lib"
3323do
3324 # Extract the first word of "$ac_prog", so it can be a program name with args.
3325set dummy $ac_prog; ac_word=$2
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327$as_echo_n "checking for $ac_word... " >&6; }
3328if ${ac_cv_prog_ac_ct_AR+:} false; then :
3329 $as_echo_n "(cached) " >&6
3330else
3331 if test -n "$ac_ct_AR"; then
3332 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3333else
3334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335for as_dir in $PATH
3336do
3337 IFS=$as_save_IFS
3338 test -z "$as_dir" && as_dir=.
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3341 ac_cv_prog_ac_ct_AR="$ac_prog"
3342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3343 break 2
3344 fi
3345done
3346 done
3347IFS=$as_save_IFS
3348
3349fi
3350fi
3351ac_ct_AR=$ac_cv_prog_ac_ct_AR
3352if test -n "$ac_ct_AR"; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3354$as_echo "$ac_ct_AR" >&6; }
3355else
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357$as_echo "no" >&6; }
3358fi
3359
3360
3361 test -n "$ac_ct_AR" && break
3362done
3363
3364 if test "x$ac_ct_AR" = x; then
3365 AR="false"
3366 else
3367 case $cross_compiling:$ac_tool_warned in
3368yes:)
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3371ac_tool_warned=yes ;;
3372esac
3373 AR=$ac_ct_AR
3374 fi
3375fi
3376
3377: ${AR=ar}
3378
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3380$as_echo_n "checking the archiver ($AR) interface... " >&6; }
3381if ${am_cv_ar_interface+:} false; then :
3382 $as_echo_n "(cached) " >&6
3383else
3384 ac_ext=c
3385ac_cpp='$CPP $CPPFLAGS'
3386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389
3390 am_cv_ar_interface=ar
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392/* end confdefs.h. */
3393int some_variable = 0;
3394_ACEOF
3395if ac_fn_c_try_compile "$LINENO"; then :
3396 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3398 (eval $am_ar_try) 2>&5
3399 ac_status=$?
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }
3402 if test "$ac_status" -eq 0; then
3403 am_cv_ar_interface=ar
3404 else
3405 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3407 (eval $am_ar_try) 2>&5
3408 ac_status=$?
3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410 test $ac_status = 0; }
3411 if test "$ac_status" -eq 0; then
3412 am_cv_ar_interface=lib
3413 else
3414 am_cv_ar_interface=unknown
3415 fi
3416 fi
3417 rm -f conftest.lib libconftest.a
3418
3419fi
3420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3421 ac_ext=c
3422ac_cpp='$CPP $CPPFLAGS'
3423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426
3427fi
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3429$as_echo "$am_cv_ar_interface" >&6; }
3430
3431case $am_cv_ar_interface in
3432ar)
3433 ;;
3434lib)
3435 # Microsoft lib, so override with the ar-lib wrapper script.
3436 # FIXME: It is wrong to rewrite AR.
3437 # But if we don't then we get into trouble of one sort or another.
3438 # A longer-term fix would be to have automake use am__AR in this case,
3439 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3440 # similar.
3441 AR="$am_aux_dir/ar-lib $AR"
3442 ;;
3443unknown)
3444 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3445 ;;
3446esac
3447
3448if test -n "$ac_tool_prefix"; then
3449 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3450set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452$as_echo_n "checking for $ac_word... " >&6; }
3453if ${ac_cv_prog_RANLIB+:} false; then :
3454 $as_echo_n "(cached) " >&6
3455else
3456 if test -n "$RANLIB"; then
3457 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3458else
3459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460for as_dir in $PATH
3461do
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3466 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 break 2
3469 fi
3470done
3471 done
3472IFS=$as_save_IFS
3473
3474fi
3475fi
3476RANLIB=$ac_cv_prog_RANLIB
3477if test -n "$RANLIB"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3479$as_echo "$RANLIB" >&6; }
3480else
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482$as_echo "no" >&6; }
3483fi
3484
3485
3486fi
3487if test -z "$ac_cv_prog_RANLIB"; then
3488 ac_ct_RANLIB=$RANLIB
3489 # Extract the first word of "ranlib", so it can be a program name with args.
3490set dummy ranlib; ac_word=$2
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492$as_echo_n "checking for $ac_word... " >&6; }
3493if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3494 $as_echo_n "(cached) " >&6
3495else
3496 if test -n "$ac_ct_RANLIB"; then
3497 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3498else
3499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500for as_dir in $PATH
3501do
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3506 ac_cv_prog_ac_ct_RANLIB="ranlib"
3507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 break 2
3509 fi
3510done
3511 done
3512IFS=$as_save_IFS
3513
3514fi
3515fi
3516ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3517if test -n "$ac_ct_RANLIB"; then
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3519$as_echo "$ac_ct_RANLIB" >&6; }
3520else
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522$as_echo "no" >&6; }
3523fi
3524
3525 if test "x$ac_ct_RANLIB" = x; then
3526 RANLIB=":"
3527 else
3528 case $cross_compiling:$ac_tool_warned in
3529yes:)
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3532ac_tool_warned=yes ;;
3533esac
3534 RANLIB=$ac_ct_RANLIB
3535 fi
3536else
3537 RANLIB="$ac_cv_prog_RANLIB"
3538fi
3539
David McGrewb67061f2005-09-28 14:23:06 +00003540# Find a good install program. We prefer a C program (faster),
3541# so one script is as good as another. But avoid the broken or
3542# incompatible versions:
3543# SysV /etc/install, /usr/sbin/install
3544# SunOS /usr/etc/install
3545# IRIX /sbin/install
3546# AIX /bin/install
3547# AmigaOS /C/install, which installs bootblocks on floppy discs
3548# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3549# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3550# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3551# OS/2's system install, which has a completely different semantic
3552# ./install, which can be erroneously created by make from ./install.sh.
jfigusc7e66e32013-05-08 11:32:55 -04003553# Reject install programs that cannot install multiple files.
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3555$as_echo_n "checking for a BSD-compatible install... " >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00003556if test -z "$INSTALL"; then
jfigusc7e66e32013-05-08 11:32:55 -04003557if ${ac_cv_path_install+:} false; then :
3558 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003559else
David McGrewb67061f2005-09-28 14:23:06 +00003560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561for as_dir in $PATH
3562do
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04003565 # Account for people who put trailing slashes in PATH elements.
3566case $as_dir/ in #((
3567 ./ | .// | /[cC]/* | \
David McGrewb67061f2005-09-28 14:23:06 +00003568 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jfigusc7e66e32013-05-08 11:32:55 -04003569 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
David McGrewb67061f2005-09-28 14:23:06 +00003570 /usr/ucb/* ) ;;
3571 *)
3572 # OSF1 and SCO ODT 3.0 have their own names for install.
3573 # Don't use installbsd from OSF since it installs stuff as root
3574 # by default.
3575 for ac_prog in ginstall scoinst install; do
3576 for ac_exec_ext in '' $ac_executable_extensions; do
jfigusc7e66e32013-05-08 11:32:55 -04003577 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
David McGrewb67061f2005-09-28 14:23:06 +00003578 if test $ac_prog = install &&
3579 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3580 # AIX install. It has an incompatible calling convention.
3581 :
3582 elif test $ac_prog = install &&
3583 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3584 # program-specific install script used by HP pwplus--don't use.
3585 :
3586 else
jfigusc7e66e32013-05-08 11:32:55 -04003587 rm -rf conftest.one conftest.two conftest.dir
3588 echo one > conftest.one
3589 echo two > conftest.two
3590 mkdir conftest.dir
3591 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3592 test -s conftest.one && test -s conftest.two &&
3593 test -s conftest.dir/conftest.one &&
3594 test -s conftest.dir/conftest.two
3595 then
3596 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3597 break 3
3598 fi
David McGrewb67061f2005-09-28 14:23:06 +00003599 fi
3600 fi
3601 done
3602 done
3603 ;;
3604esac
Cullen Jennings235513a2005-09-21 22:51:36 +00003605
jfigusc7e66e32013-05-08 11:32:55 -04003606 done
3607IFS=$as_save_IFS
3608
3609rm -rf conftest.one conftest.two conftest.dir
Cullen Jennings235513a2005-09-21 22:51:36 +00003610
3611fi
David McGrewb67061f2005-09-28 14:23:06 +00003612 if test "${ac_cv_path_install+set}" = set; then
3613 INSTALL=$ac_cv_path_install
3614 else
jfigusc7e66e32013-05-08 11:32:55 -04003615 # As a last resort, use the slow shell script. Don't cache a
3616 # value for INSTALL within a source directory, because that will
David McGrewb67061f2005-09-28 14:23:06 +00003617 # break other packages using the cache if that directory is
jfigusc7e66e32013-05-08 11:32:55 -04003618 # removed, or if the value is a relative name.
David McGrewb67061f2005-09-28 14:23:06 +00003619 INSTALL=$ac_install_sh
3620 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003621fi
jfigusc7e66e32013-05-08 11:32:55 -04003622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3623$as_echo "$INSTALL" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003624
David McGrewb67061f2005-09-28 14:23:06 +00003625# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3626# It thinks the first close brace ends the variable substitution.
3627test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00003628
David McGrewb67061f2005-09-28 14:23:06 +00003629test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3630
3631test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00003632
Idar Tollefsen600ad962017-01-26 11:24:51 +01003633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3634$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3635if ${ac_cv_path_SED+:} false; then :
3636 $as_echo_n "(cached) " >&6
3637else
3638 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3639 for ac_i in 1 2 3 4 5 6 7; do
3640 ac_script="$ac_script$as_nl$ac_script"
3641 done
3642 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3643 { ac_script=; unset ac_script;}
3644 if test -z "$SED"; then
3645 ac_path_SED_found=false
3646 # Loop through the user's path and test for each of PROGNAME-LIST
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648for as_dir in $PATH
3649do
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for ac_prog in sed gsed; do
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3655 as_fn_executable_p "$ac_path_SED" || continue
3656# Check for GNU ac_path_SED and select it if it is found.
3657 # Check for GNU $ac_path_SED
3658case `"$ac_path_SED" --version 2>&1` in
3659*GNU*)
3660 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3661*)
3662 ac_count=0
3663 $as_echo_n 0123456789 >"conftest.in"
3664 while :
3665 do
3666 cat "conftest.in" "conftest.in" >"conftest.tmp"
3667 mv "conftest.tmp" "conftest.in"
3668 cp "conftest.in" "conftest.nl"
3669 $as_echo '' >> "conftest.nl"
3670 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3672 as_fn_arith $ac_count + 1 && ac_count=$as_val
3673 if test $ac_count -gt ${ac_path_SED_max-0}; then
3674 # Best one so far, save it but keep looking for a better one
3675 ac_cv_path_SED="$ac_path_SED"
3676 ac_path_SED_max=$ac_count
3677 fi
3678 # 10*(2^10) chars as input seems more than enough
3679 test $ac_count -gt 10 && break
3680 done
3681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3682esac
3683
3684 $ac_path_SED_found && break 3
3685 done
3686 done
3687 done
3688IFS=$as_save_IFS
3689 if test -z "$ac_cv_path_SED"; then
3690 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3691 fi
3692else
3693 ac_cv_path_SED=$SED
3694fi
3695
3696fi
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3698$as_echo "$ac_cv_path_SED" >&6; }
3699 SED="$ac_cv_path_SED"
3700 rm -f conftest.sed
3701
Cullen Jennings235513a2005-09-21 22:51:36 +00003702
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003703
jfigusc7e66e32013-05-08 11:32:55 -04003704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3705$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3706if ${ac_cv_path_GREP+:} false; then :
3707 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003708else
jfigusc7e66e32013-05-08 11:32:55 -04003709 if test -z "$GREP"; then
3710 ac_path_GREP_found=false
3711 # Loop through the user's path and test for each of PROGNAME-LIST
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3714do
3715 IFS=$as_save_IFS
3716 test -z "$as_dir" && as_dir=.
3717 for ac_prog in grep ggrep; do
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3720 as_fn_executable_p "$ac_path_GREP" || continue
3721# Check for GNU ac_path_GREP and select it if it is found.
3722 # Check for GNU $ac_path_GREP
3723case `"$ac_path_GREP" --version 2>&1` in
3724*GNU*)
3725 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3726*)
3727 ac_count=0
3728 $as_echo_n 0123456789 >"conftest.in"
3729 while :
3730 do
3731 cat "conftest.in" "conftest.in" >"conftest.tmp"
3732 mv "conftest.tmp" "conftest.in"
3733 cp "conftest.in" "conftest.nl"
3734 $as_echo 'GREP' >> "conftest.nl"
3735 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3737 as_fn_arith $ac_count + 1 && ac_count=$as_val
3738 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3739 # Best one so far, save it but keep looking for a better one
3740 ac_cv_path_GREP="$ac_path_GREP"
3741 ac_path_GREP_max=$ac_count
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003742 fi
jfigusc7e66e32013-05-08 11:32:55 -04003743 # 10*(2^10) chars as input seems more than enough
3744 test $ac_count -gt 10 && break
3745 done
3746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3747esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003748
jfigusc7e66e32013-05-08 11:32:55 -04003749 $ac_path_GREP_found && break 3
3750 done
3751 done
3752 done
3753IFS=$as_save_IFS
3754 if test -z "$ac_cv_path_GREP"; then
3755 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3756 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003757else
jfigusc7e66e32013-05-08 11:32:55 -04003758 ac_cv_path_GREP=$GREP
3759fi
3760
3761fi
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3763$as_echo "$ac_cv_path_GREP" >&6; }
3764 GREP="$ac_cv_path_GREP"
3765
3766
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3768$as_echo_n "checking for egrep... " >&6; }
3769if ${ac_cv_path_EGREP+:} false; then :
3770 $as_echo_n "(cached) " >&6
3771else
3772 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3773 then ac_cv_path_EGREP="$GREP -E"
3774 else
3775 if test -z "$EGREP"; then
3776 ac_path_EGREP_found=false
3777 # Loop through the user's path and test for each of PROGNAME-LIST
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3780do
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
3783 for ac_prog in egrep; do
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3786 as_fn_executable_p "$ac_path_EGREP" || continue
3787# Check for GNU ac_path_EGREP and select it if it is found.
3788 # Check for GNU $ac_path_EGREP
3789case `"$ac_path_EGREP" --version 2>&1` in
3790*GNU*)
3791 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3792*)
3793 ac_count=0
3794 $as_echo_n 0123456789 >"conftest.in"
3795 while :
3796 do
3797 cat "conftest.in" "conftest.in" >"conftest.tmp"
3798 mv "conftest.tmp" "conftest.in"
3799 cp "conftest.in" "conftest.nl"
3800 $as_echo 'EGREP' >> "conftest.nl"
3801 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3802 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3803 as_fn_arith $ac_count + 1 && ac_count=$as_val
3804 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3805 # Best one so far, save it but keep looking for a better one
3806 ac_cv_path_EGREP="$ac_path_EGREP"
3807 ac_path_EGREP_max=$ac_count
3808 fi
3809 # 10*(2^10) chars as input seems more than enough
3810 test $ac_count -gt 10 && break
3811 done
3812 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3813esac
3814
3815 $ac_path_EGREP_found && break 3
3816 done
3817 done
3818 done
3819IFS=$as_save_IFS
3820 if test -z "$ac_cv_path_EGREP"; then
3821 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3822 fi
3823else
3824 ac_cv_path_EGREP=$EGREP
3825fi
3826
3827 fi
3828fi
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3830$as_echo "$ac_cv_path_EGREP" >&6; }
3831 EGREP="$ac_cv_path_EGREP"
3832
3833
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3835$as_echo_n "checking for ANSI C header files... " >&6; }
3836if ${ac_cv_header_stdc+:} false; then :
3837 $as_echo_n "(cached) " >&6
3838else
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003840/* end confdefs.h. */
3841#include <stdlib.h>
3842#include <stdarg.h>
3843#include <string.h>
3844#include <float.h>
3845
3846int
3847main ()
3848{
3849
3850 ;
3851 return 0;
3852}
3853_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003854if ac_fn_c_try_compile "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003855 ac_cv_header_stdc=yes
3856else
jfigusc7e66e32013-05-08 11:32:55 -04003857 ac_cv_header_stdc=no
jfigusa14b5a02013-03-29 12:24:12 -04003858fi
jfigusc7e66e32013-05-08 11:32:55 -04003859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003860
3861if test $ac_cv_header_stdc = yes; then
3862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003864/* end confdefs.h. */
3865#include <string.h>
3866
3867_ACEOF
3868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003869 $EGREP "memchr" >/dev/null 2>&1; then :
3870
jfigusa14b5a02013-03-29 12:24:12 -04003871else
3872 ac_cv_header_stdc=no
3873fi
3874rm -f conftest*
3875
3876fi
3877
3878if test $ac_cv_header_stdc = yes; then
3879 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003881/* end confdefs.h. */
3882#include <stdlib.h>
3883
3884_ACEOF
3885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003886 $EGREP "free" >/dev/null 2>&1; then :
3887
jfigusa14b5a02013-03-29 12:24:12 -04003888else
3889 ac_cv_header_stdc=no
3890fi
3891rm -f conftest*
3892
3893fi
3894
3895if test $ac_cv_header_stdc = yes; then
3896 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jfigusc7e66e32013-05-08 11:32:55 -04003897 if test "$cross_compiling" = yes; then :
jfigusa14b5a02013-03-29 12:24:12 -04003898 :
3899else
jfigusc7e66e32013-05-08 11:32:55 -04003900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003901/* end confdefs.h. */
3902#include <ctype.h>
jfigusc7e66e32013-05-08 11:32:55 -04003903#include <stdlib.h>
jfigusa14b5a02013-03-29 12:24:12 -04003904#if ((' ' & 0x0FF) == 0x020)
3905# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3906# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3907#else
3908# define ISLOWER(c) \
3909 (('a' <= (c) && (c) <= 'i') \
3910 || ('j' <= (c) && (c) <= 'r') \
3911 || ('s' <= (c) && (c) <= 'z'))
3912# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3913#endif
3914
3915#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3916int
3917main ()
3918{
3919 int i;
3920 for (i = 0; i < 256; i++)
3921 if (XOR (islower (i), ISLOWER (i))
3922 || toupper (i) != TOUPPER (i))
jfigusc7e66e32013-05-08 11:32:55 -04003923 return 2;
3924 return 0;
jfigusa14b5a02013-03-29 12:24:12 -04003925}
3926_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003927if ac_fn_c_try_run "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003928
jfigusc7e66e32013-05-08 11:32:55 -04003929else
3930 ac_cv_header_stdc=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003931fi
jfigusc7e66e32013-05-08 11:32:55 -04003932rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3933 conftest.$ac_objext conftest.beam conftest.$ac_ext
3934fi
3935
jfigusa14b5a02013-03-29 12:24:12 -04003936fi
3937fi
jfigusc7e66e32013-05-08 11:32:55 -04003938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3939$as_echo "$ac_cv_header_stdc" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04003940if test $ac_cv_header_stdc = yes; then
3941
jfigusc7e66e32013-05-08 11:32:55 -04003942$as_echo "#define STDC_HEADERS 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04003943
3944fi
3945
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003946# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003947for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3948 inttypes.h stdint.h unistd.h
jfigusc7e66e32013-05-08 11:32:55 -04003949do :
3950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3951ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3952"
3953if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003954 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003955#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003956_ACEOF
3957
3958fi
3959
3960done
3961
3962
jfigusc7e66e32013-05-08 11:32:55 -04003963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3964$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3965if ${ac_cv_c_bigendian+:} false; then :
3966 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003967else
jfigusc7e66e32013-05-08 11:32:55 -04003968 ac_cv_c_bigendian=unknown
3969 # See if we're dealing with a universal compiler.
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003971/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003972#ifndef __APPLE_CC__
3973 not a universal capable compiler
3974 #endif
3975 typedef int dummy;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003976
jfigusc7e66e32013-05-08 11:32:55 -04003977_ACEOF
3978if ac_fn_c_try_compile "$LINENO"; then :
3979
3980 # Check for potential -arch flags. It is not universal unless
3981 # there are at least two -arch flags with different values.
3982 ac_arch=
3983 ac_prev=
3984 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3985 if test -n "$ac_prev"; then
3986 case $ac_word in
3987 i?86 | x86_64 | ppc | ppc64)
3988 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3989 ac_arch=$ac_word
3990 else
3991 ac_cv_c_bigendian=universal
3992 break
3993 fi
3994 ;;
3995 esac
3996 ac_prev=
3997 elif test "x$ac_word" = "x-arch"; then
3998 ac_prev=arch
3999 fi
4000 done
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004001fi
jfigusc7e66e32013-05-08 11:32:55 -04004002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 if test $ac_cv_c_bigendian = unknown; then
4004 # See if sys/param.h defines the BYTE_ORDER macro.
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004006/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004007#include <sys/types.h>
4008 #include <sys/param.h>
4009
4010int
4011main ()
4012{
4013#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4014 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4015 && LITTLE_ENDIAN)
4016 bogus endian macros
4017 #endif
4018
4019 ;
4020 return 0;
4021}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004022_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004023if ac_fn_c_try_compile "$LINENO"; then :
4024 # It does; now see whether it defined to BIG_ENDIAN or not.
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004026/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004027#include <sys/types.h>
4028 #include <sys/param.h>
4029
4030int
4031main ()
4032{
4033#if BYTE_ORDER != BIG_ENDIAN
4034 not big endian
4035 #endif
4036
4037 ;
4038 return 0;
4039}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004040_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004041if ac_fn_c_try_compile "$LINENO"; then :
4042 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004043else
jfigusc7e66e32013-05-08 11:32:55 -04004044 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004045fi
jfigusc7e66e32013-05-08 11:32:55 -04004046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047fi
4048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 fi
4050 if test $ac_cv_c_bigendian = unknown; then
4051 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004053/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004054#include <limits.h>
4055
4056int
4057main ()
4058{
4059#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4060 bogus endian macros
4061 #endif
4062
4063 ;
4064 return 0;
4065}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004066_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004067if ac_fn_c_try_compile "$LINENO"; then :
4068 # It does; now see whether it defined to _BIG_ENDIAN or not.
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004070/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004071#include <limits.h>
4072
4073int
4074main ()
4075{
4076#ifndef _BIG_ENDIAN
4077 not big endian
4078 #endif
4079
4080 ;
4081 return 0;
4082}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004083_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004084if ac_fn_c_try_compile "$LINENO"; then :
4085 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004086else
jfigusc7e66e32013-05-08 11:32:55 -04004087 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004088fi
jfigusc7e66e32013-05-08 11:32:55 -04004089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090fi
4091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 fi
4093 if test $ac_cv_c_bigendian = unknown; then
4094 # Compile a test program.
4095 if test "$cross_compiling" = yes; then :
4096 # Try to guess by grepping values from an object file.
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004098/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004099short int ascii_mm[] =
4100 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4101 short int ascii_ii[] =
4102 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4103 int use_ascii (int i) {
4104 return ascii_mm[i] + ascii_ii[i];
4105 }
4106 short int ebcdic_ii[] =
4107 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4108 short int ebcdic_mm[] =
4109 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4110 int use_ebcdic (int i) {
4111 return ebcdic_mm[i] + ebcdic_ii[i];
4112 }
4113 extern int foo;
4114
4115int
4116main ()
4117{
4118return use_ascii (foo) == use_ebcdic (foo);
4119 ;
4120 return 0;
4121}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004122_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004123if ac_fn_c_try_compile "$LINENO"; then :
4124 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4125 ac_cv_c_bigendian=yes
4126 fi
4127 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4128 if test "$ac_cv_c_bigendian" = unknown; then
4129 ac_cv_c_bigendian=no
4130 else
4131 # finding both strings is unlikely to happen, but who knows?
4132 ac_cv_c_bigendian=unknown
4133 fi
4134 fi
4135fi
4136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004137else
jfigusc7e66e32013-05-08 11:32:55 -04004138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004139/* end confdefs.h. */
4140$ac_includes_default
4141int
4142main ()
4143{
jfigusc7e66e32013-05-08 11:32:55 -04004144
4145 /* Are we little or big endian? From Harbison&Steele. */
4146 union
4147 {
4148 long int l;
4149 char c[sizeof (long int)];
4150 } u;
4151 u.l = 1;
4152 return u.c[sizeof (long int) - 1] == 1;
4153
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004154 ;
4155 return 0;
4156}
4157_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004158if ac_fn_c_try_run "$LINENO"; then :
4159 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004160else
jfigusc7e66e32013-05-08 11:32:55 -04004161 ac_cv_c_bigendian=yes
4162fi
4163rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4164 conftest.$ac_objext conftest.beam conftest.$ac_ext
4165fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004166
jfigusc7e66e32013-05-08 11:32:55 -04004167 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004168fi
jfigusc7e66e32013-05-08 11:32:55 -04004169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4170$as_echo "$ac_cv_c_bigendian" >&6; }
4171 case $ac_cv_c_bigendian in #(
4172 yes)
4173 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4174;; #(
4175 no)
4176 ;; #(
4177 universal)
4178
4179$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4180
4181 ;; #(
4182 *)
4183 as_fn_error $? "unknown endianness
4184 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4185 esac
4186
4187
4188# Make sure we can run config.sub.
4189$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4190 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4191
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4193$as_echo_n "checking build system type... " >&6; }
4194if ${ac_cv_build+:} false; then :
4195 $as_echo_n "(cached) " >&6
4196else
4197 ac_build_alias=$build_alias
4198test "x$ac_build_alias" = x &&
4199 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4200test "x$ac_build_alias" = x &&
4201 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4202ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4203 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4204
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004205fi
jfigusc7e66e32013-05-08 11:32:55 -04004206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4207$as_echo "$ac_cv_build" >&6; }
4208case $ac_cv_build in
4209*-*-*) ;;
4210*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4211esac
4212build=$ac_cv_build
4213ac_save_IFS=$IFS; IFS='-'
4214set x $ac_cv_build
4215shift
4216build_cpu=$1
4217build_vendor=$2
4218shift; shift
4219# Remember, the first character of IFS is used to create $*,
4220# except with old shells:
4221build_os=$*
4222IFS=$ac_save_IFS
4223case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4224
4225
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4227$as_echo_n "checking host system type... " >&6; }
4228if ${ac_cv_host+:} false; then :
4229 $as_echo_n "(cached) " >&6
4230else
4231 if test "x$host_alias" = x; then
4232 ac_cv_host=$ac_cv_build
4233else
4234 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4235 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4236fi
4237
4238fi
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4240$as_echo "$ac_cv_host" >&6; }
4241case $ac_cv_host in
4242*-*-*) ;;
4243*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4244esac
4245host=$ac_cv_host
4246ac_save_IFS=$IFS; IFS='-'
4247set x $ac_cv_host
4248shift
4249host_cpu=$1
4250host_vendor=$2
4251shift; shift
4252# Remember, the first character of IFS is used to create $*,
4253# except with old shells:
4254host_os=$*
4255IFS=$ac_save_IFS
4256case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4257
4258
4259
4260case $host_cpu in
Idar Tollefsen600ad962017-01-26 11:24:51 +01004261 i*86 | x86_64 )
jfigusc7e66e32013-05-08 11:32:55 -04004262
4263$as_echo "#define CPU_CISC 1" >>confdefs.h
4264
4265
4266$as_echo "#define HAVE_X86 1" >>confdefs.h
Idar Tollefsen600ad962017-01-26 11:24:51 +01004267
4268 ;;
4269 * )
jfigusc7e66e32013-05-08 11:32:55 -04004270
4271$as_echo "#define CPU_RISC 1" >>confdefs.h
jfigusfb838412014-12-04 10:15:47 -05004272
Idar Tollefsen600ad962017-01-26 11:24:51 +01004273 ;;
jfigusc7e66e32013-05-08 11:32:55 -04004274esac
4275
4276case $host_os in
Idar Tollefsen600ad962017-01-26 11:24:51 +01004277 *cygwin*|*mingw* )
4278 EXE=.exe
4279 ;;
4280 * )
4281 EXE=""
4282 ;;
jfigusc7e66e32013-05-08 11:32:55 -04004283esac
4284 # define executable suffix; this is needed for `make clean'
4285
Idar Tollefsen600ad962017-01-26 11:24:51 +01004286supported_cflags=""
4287if test "$EMPTY_CFLAGS" = "no"; then
4288 supported_cflags="$CFLAGS"
4289fi
4290
4291WERROR=""
4292for w in -Werror -errwarn; do
4293 if test "x$WERROR" = "x"; then
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $w" >&5
4295$as_echo_n "checking whether ${CC-c} accepts $w... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004296 save_cflags="$CFLAGS"
4297 if test "x$CFLAGS" = "x"; then :
4298 CFLAGS="$w"
4299else
4300 CFLAGS="$CFLAGS $w"
4301fi
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004304int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004305_ACEOF
4306if ac_fn_c_try_compile "$LINENO"; then :
4307 WERROR="$w"
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4309$as_echo "yes" >&6; }
4310else
4311 CFLAGS="$save_cflags"
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4313$as_echo "no" >&6; }
4314fi
4315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 fi
4317done
4318
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts -fPIC" >&5
4320$as_echo_n "checking whether ${CC-c} accepts -fPIC... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004321save_cflags="$CFLAGS"
4322if test "x$CFLAGS" = "x"; then :
4323 CFLAGS="-fPIC"
4324else
4325 CFLAGS="$CFLAGS -fPIC"
4326fi
4327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004329int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004330_ACEOF
4331if ac_fn_c_try_compile "$LINENO"; then :
4332 if test "x$supported_cflags" = "x"; then :
4333 supported_cflags="-fPIC"
4334else
4335 supported_cflags="$supported_cflags -fPIC"
4336fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01004337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4338$as_echo "yes" >&6; }
4339else
4340 CFLAGS="$save_cflags"
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342$as_echo "no" >&6; }
4343fi
4344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345
4346if test "$EMPTY_CFLAGS" = "yes"; then
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004347 for f in -Wall -pedantic -Wstrict-prototypes; do
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4349$as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004350 save_cflags="$CFLAGS"
4351 if test "x$CFLAGS" = "x"; then :
4352 CFLAGS="$f"
4353else
4354 CFLAGS="$CFLAGS $f"
4355fi
4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004358int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004359_ACEOF
4360if ac_fn_c_try_compile "$LINENO"; then :
4361 if test "x$supported_cflags" = "x"; then :
4362 supported_cflags="$f"
4363else
4364 supported_cflags="$supported_cflags $f"
4365fi
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4367$as_echo "yes" >&6; }
4368else
4369 CFLAGS="$save_cflags"
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371$as_echo "no" >&6; }
4372fi
4373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374 done
4375
4376 OOPT=""
4377 for f in -O4 -O3; do
4378 if test "x$OOPT" = "x"; then
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4380$as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004381 save_cflags="$CFLAGS"
4382 if test "x$CFLAGS" = "x"; then :
4383 CFLAGS="$f"
4384else
4385 CFLAGS="$CFLAGS $f"
4386fi
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004389int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004390_ACEOF
4391if ac_fn_c_try_compile "$LINENO"; then :
4392 if test "x$supported_cflags" = "x"; then :
4393 supported_cflags="$f"
4394else
4395 supported_cflags="$supported_cflags $f"
4396fi
4397 OOPT="$f"
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4399$as_echo "yes" >&6; }
4400else
4401 CFLAGS="$save_cflags"
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403$as_echo "no" >&6; }
4404fi
4405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406 fi
4407 done
4408
4409 for f in -fexpensive-optimizations -funroll-loops; do
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4411$as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004412 save_cflags="$CFLAGS"
4413 if test "x$CFLAGS" = "x"; then :
4414 CFLAGS="$f"
4415else
4416 CFLAGS="$CFLAGS $f"
4417fi
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004420int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004421_ACEOF
4422if ac_fn_c_try_compile "$LINENO"; then :
4423 if test "x$supported_cflags" = "x"; then :
4424 supported_cflags="$f"
4425else
4426 supported_cflags="$supported_cflags $f"
4427fi
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4429$as_echo "yes" >&6; }
4430else
4431 CFLAGS="$save_cflags"
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433$as_echo "no" >&6; }
4434fi
4435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436 done
4437fi
4438
4439for f in -Wno-language-extension-token; do
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4441$as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004442 save_cflags="$CFLAGS"
4443 testf=$(echo "$f" | $SED 's|-Wno-\(.*\)|-W\1|g')
4444 if test "x$CFLAGS" = "x"; then :
4445 CFLAGS="$testf"
4446else
4447 CFLAGS="$CFLAGS $testf"
4448fi
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004451int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004452_ACEOF
4453if ac_fn_c_try_compile "$LINENO"; then :
4454 if test "x$supported_cflags" = "x"; then :
4455 supported_cflags="$f"
4456else
4457 supported_cflags="$supported_cflags $f"
4458fi
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4460$as_echo "yes" >&6; }
4461else
4462 CFLAGS="$save_cflags"
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464$as_echo "no" >&6; }
4465fi
4466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467done
4468
4469CFLAGS="$supported_cflags"
jfigusc7e66e32013-05-08 11:32:55 -04004470
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4472$as_echo_n "checking for ANSI C header files... " >&6; }
4473if ${ac_cv_header_stdc+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475else
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477/* end confdefs.h. */
4478#include <stdlib.h>
4479#include <stdarg.h>
4480#include <string.h>
4481#include <float.h>
4482
4483int
4484main ()
4485{
4486
4487 ;
4488 return 0;
4489}
4490_ACEOF
4491if ac_fn_c_try_compile "$LINENO"; then :
4492 ac_cv_header_stdc=yes
4493else
4494 ac_cv_header_stdc=no
4495fi
4496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4497
4498if test $ac_cv_header_stdc = yes; then
4499 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501/* end confdefs.h. */
4502#include <string.h>
4503
4504_ACEOF
4505if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4506 $EGREP "memchr" >/dev/null 2>&1; then :
4507
4508else
4509 ac_cv_header_stdc=no
4510fi
4511rm -f conftest*
4512
4513fi
4514
4515if test $ac_cv_header_stdc = yes; then
4516 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518/* end confdefs.h. */
4519#include <stdlib.h>
4520
4521_ACEOF
4522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4523 $EGREP "free" >/dev/null 2>&1; then :
4524
4525else
4526 ac_cv_header_stdc=no
4527fi
4528rm -f conftest*
4529
4530fi
4531
4532if test $ac_cv_header_stdc = yes; then
4533 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4534 if test "$cross_compiling" = yes; then :
4535 :
4536else
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538/* end confdefs.h. */
4539#include <ctype.h>
4540#include <stdlib.h>
4541#if ((' ' & 0x0FF) == 0x020)
4542# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4543# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4544#else
4545# define ISLOWER(c) \
4546 (('a' <= (c) && (c) <= 'i') \
4547 || ('j' <= (c) && (c) <= 'r') \
4548 || ('s' <= (c) && (c) <= 'z'))
4549# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4550#endif
4551
4552#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4553int
4554main ()
4555{
4556 int i;
4557 for (i = 0; i < 256; i++)
4558 if (XOR (islower (i), ISLOWER (i))
4559 || toupper (i) != TOUPPER (i))
4560 return 2;
4561 return 0;
4562}
4563_ACEOF
4564if ac_fn_c_try_run "$LINENO"; then :
4565
4566else
4567 ac_cv_header_stdc=no
4568fi
4569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4570 conftest.$ac_objext conftest.beam conftest.$ac_ext
4571fi
4572
4573fi
4574fi
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4576$as_echo "$ac_cv_header_stdc" >&6; }
4577if test $ac_cv_header_stdc = yes; then
4578
4579$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4580
4581fi
4582
Idar Tollefsen600ad962017-01-26 11:24:51 +01004583for 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 -04004584do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01004585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4586ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4587"
4588if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
jfigusc7e66e32013-05-08 11:32:55 -04004589 cat >>confdefs.h <<_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01004590#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
jfigusc7e66e32013-05-08 11:32:55 -04004591_ACEOF
4592
4593fi
4594
4595done
4596
4597
4598for ac_header in sys/socket.h netinet/in.h arpa/inet.h
4599do :
4600 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Idar Tollefsen600ad962017-01-26 11:24:51 +01004601ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4602"
jfigusc7e66e32013-05-08 11:32:55 -04004603if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4604 cat >>confdefs.h <<_ACEOF
4605#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4606_ACEOF
4607
4608fi
4609
4610done
4611
4612for ac_header in windows.h
4613do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01004614 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4615"
jfigusc7e66e32013-05-08 11:32:55 -04004616if test "x$ac_cv_header_windows_h" = xyes; then :
4617 cat >>confdefs.h <<_ACEOF
4618#define HAVE_WINDOWS_H 1
4619_ACEOF
4620 for ac_header in winsock2.h
4621do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01004622 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default
4623"
jfigusc7e66e32013-05-08 11:32:55 -04004624if test "x$ac_cv_header_winsock2_h" = xyes; then :
4625 cat >>confdefs.h <<_ACEOF
4626#define HAVE_WINSOCK2_H 1
4627_ACEOF
4628
4629fi
4630
4631done
4632
4633fi
4634
4635done
4636
4637
jfigusc7e66e32013-05-08 11:32:55 -04004638ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
4639if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004640
David McGrewfec49dd2005-09-23 19:34:11 +00004641cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004642#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004643_ACEOF
4644
4645
4646fi
jfigusc7e66e32013-05-08 11:32:55 -04004647ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4648if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004649
4650cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004651#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004652_ACEOF
4653
4654
4655fi
jfigusc7e66e32013-05-08 11:32:55 -04004656ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4657if test "x$ac_cv_type_int16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004658
4659cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004660#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004661_ACEOF
4662
4663
4664fi
jfigusc7e66e32013-05-08 11:32:55 -04004665ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4666if test "x$ac_cv_type_uint16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004667
4668cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004669#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004670_ACEOF
4671
4672
4673fi
jfigusc7e66e32013-05-08 11:32:55 -04004674ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
4675if test "x$ac_cv_type_int32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004676
4677cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004678#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004679_ACEOF
4680
4681
4682fi
jfigusc7e66e32013-05-08 11:32:55 -04004683ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4684if test "x$ac_cv_type_uint32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004685
4686cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004687#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004688_ACEOF
4689
4690
4691fi
jfigusc7e66e32013-05-08 11:32:55 -04004692ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4693if test "x$ac_cv_type_uint64_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004694
4695cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004696#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004697_ACEOF
4698
4699
4700fi
4701
jfigusc7e66e32013-05-08 11:32:55 -04004702# The cast to long int works around a bug in the HP C Compiler
4703# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4704# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4705# This bug is HP SR number 8606223364.
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4707$as_echo_n "checking size of unsigned long... " >&6; }
4708if ${ac_cv_sizeof_unsigned_long+:} false; then :
4709 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004710else
jfigusc7e66e32013-05-08 11:32:55 -04004711 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 +00004712
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004713else
4714 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4717as_fn_error 77 "cannot compute sizeof (unsigned long)
4718See \`config.log' for more details" "$LINENO" 5; }
4719 else
4720 ac_cv_sizeof_unsigned_long=0
4721 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004722fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004723
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004724fi
jfigusc7e66e32013-05-08 11:32:55 -04004725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4726$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004727
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004728
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004729
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004730cat >>confdefs.h <<_ACEOF
4731#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
4732_ACEOF
4733
David McGrewfec49dd2005-09-23 19:34:11 +00004734
jfigusc7e66e32013-05-08 11:32:55 -04004735# The cast to long int works around a bug in the HP C Compiler
4736# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4737# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4738# This bug is HP SR number 8606223364.
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
4740$as_echo_n "checking size of unsigned long long... " >&6; }
4741if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
4742 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00004743else
jfigusc7e66e32013-05-08 11:32:55 -04004744 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 +00004745
David McGrewfec49dd2005-09-23 19:34:11 +00004746else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004747 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4750as_fn_error 77 "cannot compute sizeof (unsigned long long)
4751See \`config.log' for more details" "$LINENO" 5; }
4752 else
4753 ac_cv_sizeof_unsigned_long_long=0
4754 fi
David McGrewfec49dd2005-09-23 19:34:11 +00004755fi
4756
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004757fi
jfigusc7e66e32013-05-08 11:32:55 -04004758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
4759$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004760
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004761
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004762
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004763cat >>confdefs.h <<_ACEOF
4764#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00004765_ACEOF
4766
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004767
Cullen Jennings235513a2005-09-21 22:51:36 +00004768
jfigusc7e66e32013-05-08 11:32:55 -04004769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4770$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4771if ${ac_cv_c_const+:} false; then :
4772 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004773else
jfigusc7e66e32013-05-08 11:32:55 -04004774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004775/* end confdefs.h. */
4776
4777int
4778main ()
4779{
jfigusc7e66e32013-05-08 11:32:55 -04004780
Cullen Jennings235513a2005-09-21 22:51:36 +00004781#ifndef __cplusplus
jfigusc7e66e32013-05-08 11:32:55 -04004782 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00004783 typedef int charset[2];
jfigusc7e66e32013-05-08 11:32:55 -04004784 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00004785 /* SunOS 4.1.1 cc rejects this. */
jfigusc7e66e32013-05-08 11:32:55 -04004786 char const *const *pcpcc;
4787 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00004788 /* NEC SVR4.0.2 mips cc rejects this. */
4789 struct point {int x, y;};
4790 static struct point const zero = {0,0};
4791 /* AIX XL C 1.02.0.0 rejects this.
4792 It does not let you subtract one const X* pointer from another in
4793 an arm of an if-expression whose if-part is not a constant
4794 expression */
4795 const char *g = "string";
jfigusc7e66e32013-05-08 11:32:55 -04004796 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00004797 /* HPUX 7.0 cc rejects these. */
jfigusc7e66e32013-05-08 11:32:55 -04004798 ++pcpcc;
4799 ppc = (char**) pcpcc;
4800 pcpcc = (char const *const *) ppc;
4801 { /* SCO 3.2v4 cc rejects this sort of thing. */
4802 char tx;
4803 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00004804 char const *s = 0 ? (char *) 0 : (char const *) 0;
4805
4806 *t++ = 0;
jfigusc7e66e32013-05-08 11:32:55 -04004807 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004808 }
4809 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4810 int x[] = {25, 17};
4811 const int *foo = &x[0];
4812 ++foo;
4813 }
4814 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4815 typedef const int *iptr;
4816 iptr p = 0;
4817 ++p;
4818 }
jfigusc7e66e32013-05-08 11:32:55 -04004819 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00004820 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusc7e66e32013-05-08 11:32:55 -04004821 struct s { int j; const int *ap[3]; } bx;
4822 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00004823 }
4824 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4825 const int foo = 10;
jfigusc7e66e32013-05-08 11:32:55 -04004826 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004827 }
jfigusc7e66e32013-05-08 11:32:55 -04004828 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00004829#endif
4830
4831 ;
4832 return 0;
4833}
4834_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004835if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004836 ac_cv_c_const=yes
4837else
jfigusc7e66e32013-05-08 11:32:55 -04004838 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00004839fi
jfigusc7e66e32013-05-08 11:32:55 -04004840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004841fi
jfigusc7e66e32013-05-08 11:32:55 -04004842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4843$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004844if test $ac_cv_c_const = no; then
4845
jfigusc7e66e32013-05-08 11:32:55 -04004846$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004847
4848fi
4849
jfigusc7e66e32013-05-08 11:32:55 -04004850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4851$as_echo_n "checking for inline... " >&6; }
4852if ${ac_cv_c_inline+:} false; then :
4853 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004854else
4855 ac_cv_c_inline=no
4856for ac_kw in inline __inline__ __inline; do
jfigusc7e66e32013-05-08 11:32:55 -04004857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004858/* end confdefs.h. */
4859#ifndef __cplusplus
4860typedef int foo_t;
4861static $ac_kw foo_t static_foo () {return 0; }
4862$ac_kw foo_t foo () {return 0; }
4863#endif
4864
4865_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004866if ac_fn_c_try_compile "$LINENO"; then :
4867 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00004868fi
jfigusc7e66e32013-05-08 11:32:55 -04004869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00004871done
4872
4873fi
jfigusc7e66e32013-05-08 11:32:55 -04004874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4875$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00004876
Cullen Jennings235513a2005-09-21 22:51:36 +00004877case $ac_cv_c_inline in
4878 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00004879 *)
4880 case $ac_cv_c_inline in
4881 no) ac_val=;;
4882 *) ac_val=$ac_cv_c_inline;;
4883 esac
4884 cat >>confdefs.h <<_ACEOF
4885#ifndef __cplusplus
4886#define inline $ac_val
4887#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00004888_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00004889 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00004890esac
4891
jfigusc7e66e32013-05-08 11:32:55 -04004892ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4893if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004894
Cullen Jennings235513a2005-09-21 22:51:36 +00004895else
4896
4897cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004898#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00004899_ACEOF
4900
4901fi
4902
4903
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00004904for ac_func in socket inet_aton usleep sigaction
jfigusc7e66e32013-05-08 11:32:55 -04004905do :
4906 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4907ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4908if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004909 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004910#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00004911_ACEOF
4912
4913fi
4914done
4915
4916
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004917if test "x$ac_cv_func_socket" = "xno"; then
jfigusc7e66e32013-05-08 11:32:55 -04004918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4919$as_echo_n "checking for socket in -lsocket... " >&6; }
4920if ${ac_cv_lib_socket_socket+:} false; then :
4921 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00004922else
4923 ac_check_lib_save_LIBS=$LIBS
4924LIBS="-lsocket $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04004925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004926/* end confdefs.h. */
4927
jfigusc7e66e32013-05-08 11:32:55 -04004928/* Override any GCC internal prototype to avoid an error.
4929 Use char because int might match the return type of a GCC
4930 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00004931#ifdef __cplusplus
4932extern "C"
4933#endif
David McGrewb67061f2005-09-28 14:23:06 +00004934char socket ();
4935int
4936main ()
4937{
jfigusc7e66e32013-05-08 11:32:55 -04004938return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00004939 ;
4940 return 0;
4941}
4942_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004943if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00004944 ac_cv_lib_socket_socket=yes
4945else
jfigusc7e66e32013-05-08 11:32:55 -04004946 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00004947fi
jfigusc7e66e32013-05-08 11:32:55 -04004948rm -f core conftest.err conftest.$ac_objext \
4949 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004950LIBS=$ac_check_lib_save_LIBS
4951fi
jfigusc7e66e32013-05-08 11:32:55 -04004952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4953$as_echo "$ac_cv_lib_socket_socket" >&6; }
4954if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00004955 cat >>confdefs.h <<_ACEOF
4956#define HAVE_LIBSOCKET 1
4957_ACEOF
4958
4959 LIBS="-lsocket $LIBS"
4960
4961fi
4962
jfigusc7e66e32013-05-08 11:32:55 -04004963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
4964$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004965 SAVELIBS="$LIBS"
4966 LIBS="$LIBS -lwsock32"
jfigusc7e66e32013-05-08 11:32:55 -04004967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004968/* end confdefs.h. */
4969
4970#include <winsock2.h>
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004971int main(void)
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004972{
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004973 int fd = socket(0, 0, 0);
4974 if (fd < 0)
4975 return -1;
4976 else
4977 return 0;
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004978}
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004979
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004980_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004981if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004982 ac_cv_func_socket=yes
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
jfigusc7e66e32013-05-08 11:32:55 -04004984$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004985else
jfigusc7e66e32013-05-08 11:32:55 -04004986 LIBS="$SAVELIBS"
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
jfigusc7e66e32013-05-08 11:32:55 -04004988$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004989fi
jfigusc7e66e32013-05-08 11:32:55 -04004990rm -f core conftest.err conftest.$ac_objext \
4991 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004992fi
David McGrewb67061f2005-09-28 14:23:06 +00004993
Pascal Bühler75918862017-02-19 18:33:50 +01004994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug logging in all modules" >&5
4995$as_echo_n "checking whether to enable debug logging in all modules... " >&6; }
4996# Check whether --enable-debug-logging was given.
4997if test "${enable_debug_logging+set}" = set; then :
4998 enableval=$enable_debug_logging;
David McGrewb67061f2005-09-28 14:23:06 +00004999else
Pascal Bühler75918862017-02-19 18:33:50 +01005000 enable_debug_logging=no
jfigusc7e66e32013-05-08 11:32:55 -04005001fi
5002
Pascal Bühler75918862017-02-19 18:33:50 +01005003if test "$enable_debug_logging" = "yes"; then
David McGrewb67061f2005-09-28 14:23:06 +00005004
Pascal Bühler75918862017-02-19 18:33:50 +01005005$as_echo "#define ENABLE_DEBUG_LOGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005006
5007fi
Pascal Bühler75918862017-02-19 18:33:50 +01005008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_logging" >&5
5009$as_echo "$enable_debug_logging" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005010
Idar Tollefsen600ad962017-01-26 11:24:51 +01005011
5012
5013
5014
5015
5016
5017
5018if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5019 if test -n "$ac_tool_prefix"; then
5020 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5021set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023$as_echo_n "checking for $ac_word... " >&6; }
5024if ${ac_cv_path_PKG_CONFIG+:} false; then :
5025 $as_echo_n "(cached) " >&6
5026else
5027 case $PKG_CONFIG in
5028 [\\/]* | ?:[\\/]*)
5029 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5030 ;;
5031 *)
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033for as_dir in $PATH
5034do
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 break 2
5042 fi
5043done
5044 done
5045IFS=$as_save_IFS
5046
5047 ;;
5048esac
5049fi
5050PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5051if test -n "$PKG_CONFIG"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5053$as_echo "$PKG_CONFIG" >&6; }
5054else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056$as_echo "no" >&6; }
5057fi
5058
5059
5060fi
5061if test -z "$ac_cv_path_PKG_CONFIG"; then
5062 ac_pt_PKG_CONFIG=$PKG_CONFIG
5063 # Extract the first word of "pkg-config", so it can be a program name with args.
5064set dummy pkg-config; ac_word=$2
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066$as_echo_n "checking for $ac_word... " >&6; }
5067if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069else
5070 case $ac_pt_PKG_CONFIG in
5071 [\\/]* | ?:[\\/]*)
5072 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5073 ;;
5074 *)
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076for as_dir in $PATH
5077do
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5082 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5085 fi
5086done
5087 done
5088IFS=$as_save_IFS
5089
5090 ;;
5091esac
5092fi
5093ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5094if test -n "$ac_pt_PKG_CONFIG"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5096$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5097else
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099$as_echo "no" >&6; }
5100fi
5101
5102 if test "x$ac_pt_PKG_CONFIG" = x; then
5103 PKG_CONFIG=""
5104 else
5105 case $cross_compiling:$ac_tool_warned in
5106yes:)
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5109ac_tool_warned=yes ;;
5110esac
5111 PKG_CONFIG=$ac_pt_PKG_CONFIG
5112 fi
5113else
5114 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5115fi
5116
5117fi
5118if test -n "$PKG_CONFIG"; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005119 _pkg_min_version=0.9.0
Idar Tollefsen600ad962017-01-26 11:24:51 +01005120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5121$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5122 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5124$as_echo "yes" >&6; }
5125 else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127$as_echo "no" >&6; }
5128 PKG_CONFIG=""
5129 fi
5130fi
Pascal Bühlerac872e72017-02-09 14:55:27 +01005131if test "x$PKG_CONFIG" != "x"; then :
5132 PKG_CONFIG="$PKG_CONFIG --static"
5133fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005134
jfigusc7e66e32013-05-08 11:32:55 -04005135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
5136$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
5137# Check whether --enable-openssl was given.
5138if test "${enable_openssl+set}" = set; then :
5139 enableval=$enable_openssl;
5140else
5141 enable_openssl=no
5142fi
jfigusa14b5a02013-03-29 12:24:12 -04005143
jfigus2b486652014-07-24 15:01:41 -04005144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
5145$as_echo "$enable_openssl" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04005146if test "$enable_openssl" = "yes"; then
jfigus038d2cf2015-05-11 14:10:11 -04005147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user specified OpenSSL directory" >&5
5148$as_echo_n "checking for user specified OpenSSL directory... " >&6; }
5149
5150# Check whether --with-openssl-dir was given.
5151if test "${with_openssl_dir+set}" = set; then :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005152 withval=$with_openssl_dir; if test "x$PKG_CONFIG" != "x" && test -f $with_openssl_dir/lib/pkgconfig/libcrypto.pc; then
5153 if test "x$PKG_CONFIG_PATH" = "x"; then
5154 export PKG_CONFIG_PATH="$with_openssl_dir/lib/pkgconfig"
5155 else
5156 export PKG_CONFIG_PATH="$with_openssl_dir/lib/pkgconfig:$PKG_CONFIG_PATH"
5157 fi
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl_dir" >&5
5159$as_echo "$with_openssl_dir" >&6; }
5160 elif test -d $with_openssl_dir/lib; then
5161 CFLAGS="$CFLAGS -I$with_openssl_dir/include"
5162 if test "x$LDFLAGS" = "x"; then
5163 LDFLAGS="-L$with_openssl_dir/lib"
5164 else
5165 LDFLAGS="$LDFLAGS -L$with_openssl_dir/lib"
5166 fi
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl_dir" >&5
5168$as_echo "$with_openssl_dir" >&6; }
5169 else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
5171$as_echo "invalid" >&6; }
5172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5174as_fn_error $? "Invalid OpenSSL location: $with_openssl_dir
5175See \`config.log' for more details" "$LINENO" 5; }
5176 fi
jfigus038d2cf2015-05-11 14:10:11 -04005177else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179$as_echo "no" >&6; }
jfigus038d2cf2015-05-11 14:10:11 -04005180fi
5181
5182
Idar Tollefsen600ad962017-01-26 11:24:51 +01005183 if test "x$PKG_CONFIG" != "x"; then
Cullen Jenningse1de50f2013-05-22 12:27:28 -06005184
Idar Tollefsen600ad962017-01-26 11:24:51 +01005185pkg_failed=no
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
5187$as_echo_n "checking for crypto... " >&6; }
5188
5189if test -n "$crypto_CFLAGS"; then
5190 pkg_cv_crypto_CFLAGS="$crypto_CFLAGS"
5191 elif test -n "$PKG_CONFIG"; then
5192 if test -n "$PKG_CONFIG" && \
Pascal Bühlerac872e72017-02-09 14:55:27 +01005193 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.1\""; } >&5
5194 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.1") 2>&5
Idar Tollefsen600ad962017-01-26 11:24:51 +01005195 ac_status=$?
5196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5197 test $ac_status = 0; }; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005198 pkg_cv_crypto_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1.0.1" 2>/dev/null`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005199 test "x$?" != "x0" && pkg_failed=yes
5200else
5201 pkg_failed=yes
5202fi
5203 else
5204 pkg_failed=untried
5205fi
5206if test -n "$crypto_LIBS"; then
5207 pkg_cv_crypto_LIBS="$crypto_LIBS"
5208 elif test -n "$PKG_CONFIG"; then
5209 if test -n "$PKG_CONFIG" && \
Pascal Bühlerac872e72017-02-09 14:55:27 +01005210 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.1\""; } >&5
5211 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.1") 2>&5
Idar Tollefsen600ad962017-01-26 11:24:51 +01005212 ac_status=$?
5213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5214 test $ac_status = 0; }; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005215 pkg_cv_crypto_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1.0.1" 2>/dev/null`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005216 test "x$?" != "x0" && pkg_failed=yes
5217else
5218 pkg_failed=yes
5219fi
5220 else
5221 pkg_failed=untried
5222fi
5223
5224
5225
5226if test $pkg_failed = yes; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228$as_echo "no" >&6; }
5229
5230if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5231 _pkg_short_errors_supported=yes
5232else
5233 _pkg_short_errors_supported=no
5234fi
5235 if test $_pkg_short_errors_supported = yes; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005236 crypto_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1.0.1" 2>&1`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005237 else
Pascal Bühlerac872e72017-02-09 14:55:27 +01005238 crypto_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1.0.1" 2>&1`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005239 fi
5240 # Put the nasty error message in config.log where it belongs
5241 echo "$crypto_PKG_ERRORS" >&5
5242
Pascal Bühlerac872e72017-02-09 14:55:27 +01005243 as_fn_error $? "Package requirements (libcrypto >= 1.0.1) were not met:
Idar Tollefsen600ad962017-01-26 11:24:51 +01005244
5245$crypto_PKG_ERRORS
5246
5247Consider adjusting the PKG_CONFIG_PATH environment variable if you
5248installed software in a non-standard prefix.
5249
5250Alternatively, you may set the environment variables crypto_CFLAGS
5251and crypto_LIBS to avoid the need to call pkg-config.
5252See the pkg-config man page for more details." "$LINENO" 5
5253elif test $pkg_failed = untried; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255$as_echo "no" >&6; }
5256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5258as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5259is in your PATH or set the PKG_CONFIG environment variable to the full
5260path to pkg-config.
5261
5262Alternatively, you may set the environment variables crypto_CFLAGS
5263and crypto_LIBS to avoid the need to call pkg-config.
5264See the pkg-config man page for more details.
5265
5266To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5267See \`config.log' for more details" "$LINENO" 5; }
5268else
5269 crypto_CFLAGS=$pkg_cv_crypto_CFLAGS
5270 crypto_LIBS=$pkg_cv_crypto_LIBS
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5272$as_echo "yes" >&6; }
5273 CFLAGS="$CFLAGS $crypto_CFLAGS"
5274 LIBS="$crypto_LIBS $LIBS"
5275fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005276 else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
jfigusb5fad5f2015-02-26 12:25:08 -05005278$as_echo_n "checking for dlopen in -ldl... " >&6; }
5279if ${ac_cv_lib_dl_dlopen+:} false; then :
5280 $as_echo_n "(cached) " >&6
5281else
5282 ac_check_lib_save_LIBS=$LIBS
5283LIBS="-ldl $LIBS"
5284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285/* end confdefs.h. */
5286
5287/* Override any GCC internal prototype to avoid an error.
5288 Use char because int might match the return type of a GCC
5289 builtin and then its argument prototype would still apply. */
5290#ifdef __cplusplus
5291extern "C"
5292#endif
5293char dlopen ();
5294int
5295main ()
5296{
5297return dlopen ();
5298 ;
5299 return 0;
5300}
5301_ACEOF
5302if ac_fn_c_try_link "$LINENO"; then :
5303 ac_cv_lib_dl_dlopen=yes
5304else
5305 ac_cv_lib_dl_dlopen=no
5306fi
5307rm -f core conftest.err conftest.$ac_objext \
5308 conftest$ac_exeext conftest.$ac_ext
5309LIBS=$ac_check_lib_save_LIBS
5310fi
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5312$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5313if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5314 cat >>confdefs.h <<_ACEOF
5315#define HAVE_LIBDL 1
5316_ACEOF
5317
5318 LIBS="-ldl $LIBS"
5319
5320else
jfigus13fd6942015-03-02 09:09:13 -05005321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libdl" >&5
5322$as_echo "$as_me: WARNING: can't find libdl" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005323fi
5324
Idar Tollefsen600ad962017-01-26 11:24:51 +01005325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
jfigusb5fad5f2015-02-26 12:25:08 -05005326$as_echo_n "checking for inflate in -lz... " >&6; }
5327if ${ac_cv_lib_z_inflate+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329else
5330 ac_check_lib_save_LIBS=$LIBS
5331LIBS="-lz $LIBS"
5332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h. */
5334
5335/* Override any GCC internal prototype to avoid an error.
5336 Use char because int might match the return type of a GCC
5337 builtin and then its argument prototype would still apply. */
5338#ifdef __cplusplus
5339extern "C"
5340#endif
5341char inflate ();
5342int
5343main ()
5344{
5345return inflate ();
5346 ;
5347 return 0;
5348}
5349_ACEOF
5350if ac_fn_c_try_link "$LINENO"; then :
5351 ac_cv_lib_z_inflate=yes
5352else
5353 ac_cv_lib_z_inflate=no
5354fi
5355rm -f core conftest.err conftest.$ac_objext \
5356 conftest$ac_exeext conftest.$ac_ext
5357LIBS=$ac_check_lib_save_LIBS
5358fi
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
5360$as_echo "$ac_cv_lib_z_inflate" >&6; }
5361if test "x$ac_cv_lib_z_inflate" = xyes; then :
5362 cat >>confdefs.h <<_ACEOF
5363#define HAVE_LIBZ 1
5364_ACEOF
5365
5366 LIBS="-lz $LIBS"
5367
5368else
jfigus13fd6942015-03-02 09:09:13 -05005369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libz" >&5
5370$as_echo "$as_me: WARNING: can't find libz" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005371fi
5372
Idar Tollefsen600ad962017-01-26 11:24:51 +01005373 fi
5374
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_EncryptInit" >&5
5376$as_echo_n "checking for library containing EVP_EncryptInit... " >&6; }
5377if ${ac_cv_search_EVP_EncryptInit+:} false; then :
jfigusc7e66e32013-05-08 11:32:55 -04005378 $as_echo_n "(cached) " >&6
5379else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005380 ac_func_search_save_LIBS=$LIBS
jfigusc7e66e32013-05-08 11:32:55 -04005381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382/* end confdefs.h. */
5383
5384/* Override any GCC internal prototype to avoid an error.
5385 Use char because int might match the return type of a GCC
5386 builtin and then its argument prototype would still apply. */
5387#ifdef __cplusplus
5388extern "C"
5389#endif
5390char EVP_EncryptInit ();
5391int
5392main ()
5393{
5394return EVP_EncryptInit ();
5395 ;
5396 return 0;
5397}
5398_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005399for ac_lib in '' crypto; do
5400 if test -z "$ac_lib"; then
5401 ac_res="none required"
5402 else
5403 ac_res=-l$ac_lib
5404 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5405 fi
5406 if ac_fn_c_try_link "$LINENO"; then :
5407 ac_cv_search_EVP_EncryptInit=$ac_res
jfigusc7e66e32013-05-08 11:32:55 -04005408fi
5409rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01005410 conftest$ac_exeext
5411 if ${ac_cv_search_EVP_EncryptInit+:} false; then :
5412 break
jfigusc7e66e32013-05-08 11:32:55 -04005413fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005414done
5415if ${ac_cv_search_EVP_EncryptInit+:} false; then :
jfigusc7e66e32013-05-08 11:32:55 -04005416
Idar Tollefsen600ad962017-01-26 11:24:51 +01005417else
5418 ac_cv_search_EVP_EncryptInit=no
5419fi
5420rm conftest.$ac_ext
5421LIBS=$ac_func_search_save_LIBS
5422fi
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_EncryptInit" >&5
5424$as_echo "$ac_cv_search_EVP_EncryptInit" >&6; }
5425ac_res=$ac_cv_search_EVP_EncryptInit
5426if test "$ac_res" != no; then :
5427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04005428
5429else
5430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01005432as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigus5b22e372013-05-09 09:23:26 -04005433See \`config.log' for more details" "$LINENO" 5; }
5434fi
5435
Idar Tollefsen600ad962017-01-26 11:24:51 +01005436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_aes_128_ctr" >&5
5437$as_echo_n "checking for library containing EVP_aes_128_ctr... " >&6; }
5438if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
jfigus5b22e372013-05-09 09:23:26 -04005439 $as_echo_n "(cached) " >&6
5440else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005441 ac_func_search_save_LIBS=$LIBS
jfigus5b22e372013-05-09 09:23:26 -04005442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443/* end confdefs.h. */
5444
5445/* Override any GCC internal prototype to avoid an error.
5446 Use char because int might match the return type of a GCC
5447 builtin and then its argument prototype would still apply. */
5448#ifdef __cplusplus
5449extern "C"
5450#endif
5451char EVP_aes_128_ctr ();
5452int
5453main ()
5454{
5455return EVP_aes_128_ctr ();
5456 ;
5457 return 0;
5458}
5459_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005460for ac_lib in '' crypto; do
5461 if test -z "$ac_lib"; then
5462 ac_res="none required"
5463 else
5464 ac_res=-l$ac_lib
5465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5466 fi
5467 if ac_fn_c_try_link "$LINENO"; then :
5468 ac_cv_search_EVP_aes_128_ctr=$ac_res
jfigus5b22e372013-05-09 09:23:26 -04005469fi
5470rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01005471 conftest$ac_exeext
5472 if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
5473 break
jfigus5b22e372013-05-09 09:23:26 -04005474fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005475done
5476if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
jfigus5b22e372013-05-09 09:23:26 -04005477
Idar Tollefsen600ad962017-01-26 11:24:51 +01005478else
5479 ac_cv_search_EVP_aes_128_ctr=no
5480fi
5481rm conftest.$ac_ext
5482LIBS=$ac_func_search_save_LIBS
5483fi
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_aes_128_ctr" >&5
5485$as_echo "$ac_cv_search_EVP_aes_128_ctr" >&6; }
5486ac_res=$ac_cv_search_EVP_aes_128_ctr
5487if test "$ac_res" != no; then :
5488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus5b22e372013-05-09 09:23:26 -04005489
5490else
5491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01005493as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigusc7e66e32013-05-08 11:32:55 -04005494See \`config.log' for more details" "$LINENO" 5; }
5495fi
5496
Idar Tollefsen600ad962017-01-26 11:24:51 +01005497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_aes_128_gcm" >&5
5498$as_echo_n "checking for library containing EVP_aes_128_gcm... " >&6; }
5499if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
jfigus7882dd92013-08-02 16:08:23 -04005500 $as_echo_n "(cached) " >&6
5501else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005502 ac_func_search_save_LIBS=$LIBS
jfigus7882dd92013-08-02 16:08:23 -04005503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504/* end confdefs.h. */
5505
5506/* Override any GCC internal prototype to avoid an error.
5507 Use char because int might match the return type of a GCC
5508 builtin and then its argument prototype would still apply. */
5509#ifdef __cplusplus
5510extern "C"
5511#endif
5512char EVP_aes_128_gcm ();
5513int
5514main ()
5515{
5516return EVP_aes_128_gcm ();
5517 ;
5518 return 0;
5519}
5520_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005521for ac_lib in '' crypto; do
5522 if test -z "$ac_lib"; then
5523 ac_res="none required"
5524 else
5525 ac_res=-l$ac_lib
5526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5527 fi
5528 if ac_fn_c_try_link "$LINENO"; then :
5529 ac_cv_search_EVP_aes_128_gcm=$ac_res
jfigus7882dd92013-08-02 16:08:23 -04005530fi
5531rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01005532 conftest$ac_exeext
5533 if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
5534 break
jfigus7882dd92013-08-02 16:08:23 -04005535fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005536done
5537if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
jfigus7882dd92013-08-02 16:08:23 -04005538
Idar Tollefsen600ad962017-01-26 11:24:51 +01005539else
5540 ac_cv_search_EVP_aes_128_gcm=no
5541fi
5542rm conftest.$ac_ext
5543LIBS=$ac_func_search_save_LIBS
5544fi
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_aes_128_gcm" >&5
5546$as_echo "$ac_cv_search_EVP_aes_128_gcm" >&6; }
5547ac_res=$ac_cv_search_EVP_aes_128_gcm
5548if test "$ac_res" != no; then :
5549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus7882dd92013-08-02 16:08:23 -04005550
5551else
5552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01005554as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigus7882dd92013-08-02 16:08:23 -04005555See \`config.log' for more details" "$LINENO" 5; }
5556fi
5557
jfigusc7e66e32013-05-08 11:32:55 -04005558
Idar Tollefsen600ad962017-01-26 11:24:51 +01005559
jfigusc7e66e32013-05-08 11:32:55 -04005560$as_echo "#define OPENSSL 1" >>confdefs.h
5561
jfigus7882dd92013-08-02 16:08:23 -04005562 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
jfigusc7e66e32013-05-08 11:32:55 -04005563 HMAC_OBJS=crypto/hash/hmac_ossl.o
5564 USE_OPENSSL=1
5565
jfigus038d2cf2015-05-11 14:10:11 -04005566
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL KDF algorithm" >&5
5568$as_echo_n "checking whether to leverage OpenSSL KDF algorithm... " >&6; }
5569 # Check whether --enable-openssl-kdf was given.
5570if test "${enable_openssl_kdf+set}" = set; then :
5571 enableval=$enable_openssl_kdf;
5572else
5573 enable_openssl_kdf=no
5574fi
5575
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl_kdf" >&5
5577$as_echo "$enable_openssl_kdf" >&6; }
5578 if test "$enable_openssl_kdf" = "yes"; then
Idar Tollefsen600ad962017-01-26 11:24:51 +01005579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kdf_srtp" >&5
5580$as_echo_n "checking for library containing kdf_srtp... " >&6; }
5581if ${ac_cv_search_kdf_srtp+:} false; then :
jfigus038d2cf2015-05-11 14:10:11 -04005582 $as_echo_n "(cached) " >&6
5583else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005584 ac_func_search_save_LIBS=$LIBS
jfigus038d2cf2015-05-11 14:10:11 -04005585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586/* end confdefs.h. */
5587
5588/* Override any GCC internal prototype to avoid an error.
5589 Use char because int might match the return type of a GCC
5590 builtin and then its argument prototype would still apply. */
5591#ifdef __cplusplus
5592extern "C"
5593#endif
5594char kdf_srtp ();
5595int
5596main ()
5597{
5598return kdf_srtp ();
5599 ;
5600 return 0;
5601}
5602_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005603for ac_lib in '' crypto; do
5604 if test -z "$ac_lib"; then
5605 ac_res="none required"
5606 else
5607 ac_res=-l$ac_lib
5608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5609 fi
5610 if ac_fn_c_try_link "$LINENO"; then :
5611 ac_cv_search_kdf_srtp=$ac_res
jfigus038d2cf2015-05-11 14:10:11 -04005612fi
5613rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01005614 conftest$ac_exeext
5615 if ${ac_cv_search_kdf_srtp+:} false; then :
5616 break
jfigus038d2cf2015-05-11 14:10:11 -04005617fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005618done
5619if ${ac_cv_search_kdf_srtp+:} false; then :
jfigus038d2cf2015-05-11 14:10:11 -04005620
Idar Tollefsen600ad962017-01-26 11:24:51 +01005621else
5622 ac_cv_search_kdf_srtp=no
5623fi
5624rm conftest.$ac_ext
5625LIBS=$ac_func_search_save_LIBS
5626fi
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kdf_srtp" >&5
5628$as_echo "$ac_cv_search_kdf_srtp" >&6; }
5629ac_res=$ac_cv_search_kdf_srtp
5630if test "$ac_res" != no; then :
5631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus038d2cf2015-05-11 14:10:11 -04005632
5633else
5634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5636as_fn_error $? "can't find openssl KDF lib
5637See \`config.log' for more details" "$LINENO" 5; }
5638fi
5639
5640
5641$as_echo "#define OPENSSL_KDF 1" >>confdefs.h
5642
5643 fi
jfigusc7e66e32013-05-08 11:32:55 -04005644else
jfigusa3127b82014-11-19 14:46:52 -05005645 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o"
jfigusc7e66e32013-05-08 11:32:55 -04005646 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
5647fi
5648
5649
5650
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
5652$as_echo_n "checking for pcap_create in -lpcap... " >&6; }
5653if ${ac_cv_lib_pcap_pcap_create+:} false; then :
5654 $as_echo_n "(cached) " >&6
5655else
5656 ac_check_lib_save_LIBS=$LIBS
5657LIBS="-lpcap $LIBS"
5658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659/* end confdefs.h. */
5660
5661/* Override any GCC internal prototype to avoid an error.
5662 Use char because int might match the return type of a GCC
5663 builtin and then its argument prototype would still apply. */
5664#ifdef __cplusplus
5665extern "C"
5666#endif
5667char pcap_create ();
5668int
5669main ()
5670{
5671return pcap_create ();
5672 ;
5673 return 0;
5674}
5675_ACEOF
5676if ac_fn_c_try_link "$LINENO"; then :
5677 ac_cv_lib_pcap_pcap_create=yes
5678else
5679 ac_cv_lib_pcap_pcap_create=no
5680fi
5681rm -f core conftest.err conftest.$ac_objext \
5682 conftest$ac_exeext conftest.$ac_ext
5683LIBS=$ac_check_lib_save_LIBS
5684fi
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
5686$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
5687if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005688 LIBS="-lpcap $LIBS"
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005689
Bernardo Torresb3c51422014-10-14 12:40:09 -03005690$as_echo "#define HAVE_PCAP 1" >>confdefs.h
5691
Idar Tollefsen600ad962017-01-26 11:24:51 +01005692 HAVE_PCAP=1
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005693
5694fi
5695
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005696
Pascal Bühler75918862017-02-19 18:33:50 +01005697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to redirect logging to stdout" >&5
5698$as_echo_n "checking whether to redirect logging to stdout... " >&6; }
5699# Check whether --enable-log-stdout was given.
5700if test "${enable_log_stdout+set}" = set; then :
5701 enableval=$enable_log_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00005702else
Pascal Bühler75918862017-02-19 18:33:50 +01005703 enable_log_stdout=no
jfigusc7e66e32013-05-08 11:32:55 -04005704fi
5705
Pascal Bühler75918862017-02-19 18:33:50 +01005706if test "$enable_log_stdout" = "yes"; then
David McGrewb67061f2005-09-28 14:23:06 +00005707
jfigusc7e66e32013-05-08 11:32:55 -04005708$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005709
5710fi
Pascal Bühler75918862017-02-19 18:33:50 +01005711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_stdout" >&5
5712$as_echo "$enable_log_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005713
Pascal Bühler75918862017-02-19 18:33:50 +01005714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking wheather to use a file for logging" >&5
5715$as_echo_n "checking wheather to use a file for logging... " >&6; }
5716
5717# Check whether --with-log-file was given.
5718if test "${with_log_file+set}" = set; then :
5719 withval=$with_log_file; case x$with_log_file in #(
5720 x) :
5721 valid_with_log_file="no" ;; #(
5722 xyes) :
5723 valid_with_log_file="no" ;; #(
5724 *) :
5725 valid_with_error_file="yes" ;;
5726esac
5727 if test "$valid_with_log_file" = "no"; then :
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
5729$as_echo "invalid" >&6; }
5730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5732as_fn_error $? "Invalid value for --with-log-file: \"$with_log_file\"
5733See \`config.log' for more details" "$LINENO" 5; }
David McGrewb67061f2005-09-28 14:23:06 +00005734else
Pascal Bühler75918862017-02-19 18:33:50 +01005735
5736cat >>confdefs.h <<_ACEOF
5737#define ERR_REPORTING_FILE "$with_log_file"
5738_ACEOF
5739
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using log file: \"$with_log_file\"" >&5
5741$as_echo "using log file: \"$with_log_file\"" >&6; }
5742fi
5743else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745$as_echo "no" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04005746fi
5747
David McGrewb67061f2005-09-28 14:23:06 +00005748
Pascal Bühler75918862017-02-19 18:33:50 +01005749if test "$enable_log_stdout" = "yes" && test "x$with_log_file" != "x"; then :
5750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5752as_fn_error $? "Can only use one of --enable-log-stdout and --with-log-file; they are mutually exclusive
5753See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005754fi
David McGrewb67061f2005-09-28 14:23:06 +00005755
Idar Tollefsencb771f72017-05-03 13:20:08 +02005756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra C compiler flags" >&5
5757$as_echo_n "checking for extra C compiler flags... " >&6; }
5758if test "x$EXTRA_CFLAGS" != "x"; then :
5759 if test "x$CFLAGS" = "x"; then :
5760 CFLAGS="$EXTRA_CFLAGS"
5761else
5762 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
5763fi
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_CFLAGS" >&5
5765$as_echo "$EXTRA_CFLAGS" >&6; }
5766else
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768$as_echo "no" >&6; }
5769fi
5770
jfigusc7e66e32013-05-08 11:32:55 -04005771ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00005772
5773
Idar Tollefsen600ad962017-01-26 11:24:51 +01005774ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile libsrtp2.pc"
jfigusc7e66e32013-05-08 11:32:55 -04005775
Cullen Jennings235513a2005-09-21 22:51:36 +00005776cat >confcache <<\_ACEOF
5777# This file is a shell script that caches the results of configure
5778# tests run on this system so they can be shared between configure
5779# scripts and configure runs, see configure's option --config-cache.
5780# It is not useful on other systems. If it contains results you don't
5781# want to keep, you may remove or edit it.
5782#
5783# config.status only pays attention to the cache file if you give it
5784# the --recheck option to rerun configure.
5785#
5786# `ac_cv_env_foo' variables (set or unset) will be overridden when
5787# loading this file, other *unset* `ac_cv_foo' will be assigned the
5788# following values.
5789
5790_ACEOF
5791
5792# The following way of writing the cache mishandles newlines in values,
5793# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04005794# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00005795# Ultrix sh set writes to stderr and can't be redirected directly,
5796# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04005797(
5798 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5799 eval ac_val=\$$ac_var
5800 case $ac_val in #(
5801 *${as_nl}*)
5802 case $ac_var in #(
5803 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5804$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5805 esac
5806 case $ac_var in #(
5807 _ | IFS | as_nl) ;; #(
5808 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5809 *) { eval $ac_var=; unset $ac_var;} ;;
5810 esac ;;
5811 esac
5812 done
5813
Cullen Jennings235513a2005-09-21 22:51:36 +00005814 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04005815 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5816 *${as_nl}ac_space=\ *)
5817 # `set' does not quote correctly, so add quotes: double-quote
5818 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00005819 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00005820 "s/'/'\\\\''/g;
5821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04005822 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00005823 *)
5824 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04005825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00005826 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005827 esac |
5828 sort
5829) |
Cullen Jennings235513a2005-09-21 22:51:36 +00005830 sed '
jfigusc7e66e32013-05-08 11:32:55 -04005831 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00005832 t clear
jfigusc7e66e32013-05-08 11:32:55 -04005833 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00005834 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5835 t end
jfigusc7e66e32013-05-08 11:32:55 -04005836 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5837 :end' >>confcache
5838if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5839 if test -w "$cache_file"; then
5840 if test "x$cache_file" != "x/dev/null"; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5842$as_echo "$as_me: updating cache $cache_file" >&6;}
5843 if test ! -f "$cache_file" || test -h "$cache_file"; then
5844 cat confcache >"$cache_file"
5845 else
5846 case $cache_file in #(
5847 */* | ?:*)
5848 mv -f confcache "$cache_file"$$ &&
5849 mv -f "$cache_file"$$ "$cache_file" ;; #(
5850 *)
5851 mv -f confcache "$cache_file" ;;
5852 esac
5853 fi
5854 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005855 else
jfigusc7e66e32013-05-08 11:32:55 -04005856 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5857$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00005858 fi
5859fi
5860rm -f confcache
5861
5862test "x$prefix" = xNONE && prefix=$ac_default_prefix
5863# Let make expand exec_prefix.
5864test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5865
Cullen Jennings235513a2005-09-21 22:51:36 +00005866DEFS=-DHAVE_CONFIG_H
5867
5868ac_libobjs=
5869ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04005870U=
Cullen Jennings235513a2005-09-21 22:51:36 +00005871for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5872 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04005873 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5874 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5875 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5876 # will be set to the directory where LIBOBJS objects are built.
5877 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5878 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00005879done
5880LIBOBJS=$ac_libobjs
5881
5882LTLIBOBJS=$ac_ltlibobjs
5883
5884
5885
jfigusc7e66e32013-05-08 11:32:55 -04005886
5887: "${CONFIG_STATUS=./config.status}"
5888ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00005889ac_clean_files_save=$ac_clean_files
5890ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04005891{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5892$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5893as_write_fail=0
5894cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005895#! $SHELL
5896# Generated by $as_me.
5897# Run this file to recreate the current configuration.
5898# Compiler output produced by configure, useful for debugging
5899# configure, is in config.log if it exists.
5900
5901debug=false
5902ac_cs_recheck=false
5903ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04005904
Cullen Jennings235513a2005-09-21 22:51:36 +00005905SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04005906export SHELL
5907_ASEOF
5908cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5909## -------------------- ##
5910## M4sh Initialization. ##
5911## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00005912
jfigusc7e66e32013-05-08 11:32:55 -04005913# Be more Bourne compatible
5914DUALCASE=1; export DUALCASE # for MKS sh
5915if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005916 emulate sh
5917 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04005918 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00005919 # is contrary to our usage. Disable this feature.
5920 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04005921 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00005922else
jfigusc7e66e32013-05-08 11:32:55 -04005923 case `(set -o) 2>/dev/null` in #(
5924 *posix*) :
5925 set -o posix ;; #(
5926 *) :
5927 ;;
5928esac
Cullen Jennings235513a2005-09-21 22:51:36 +00005929fi
5930
5931
jfigusc7e66e32013-05-08 11:32:55 -04005932as_nl='
5933'
5934export as_nl
5935# Printing a long string crashes Solaris 7 /usr/bin/printf.
5936as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5937as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5938as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5939# Prefer a ksh shell builtin over an external printf program on Solaris,
5940# but without wasting forks for bash or zsh.
5941if test -z "$BASH_VERSION$ZSH_VERSION" \
5942 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5943 as_echo='print -r --'
5944 as_echo_n='print -rn --'
5945elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5946 as_echo='printf %s\n'
5947 as_echo_n='printf %s'
5948else
5949 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5950 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5951 as_echo_n='/usr/ucb/echo -n'
5952 else
5953 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5954 as_echo_n_body='eval
5955 arg=$1;
5956 case $arg in #(
5957 *"$as_nl"*)
5958 expr "X$arg" : "X\\(.*\\)$as_nl";
5959 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5960 esac;
5961 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5962 '
5963 export as_echo_n_body
5964 as_echo_n='sh -c $as_echo_n_body as_echo'
5965 fi
5966 export as_echo_body
5967 as_echo='sh -c $as_echo_body as_echo'
5968fi
5969
5970# The user is always right.
5971if test "${PATH_SEPARATOR+set}" != set; then
5972 PATH_SEPARATOR=:
5973 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5974 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5975 PATH_SEPARATOR=';'
5976 }
5977fi
5978
5979
5980# IFS
5981# We need space, tab and new line, in precisely that order. Quoting is
5982# there to prevent editors from complaining about space-tab.
5983# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5984# splitting by setting IFS to empty value.)
5985IFS=" "" $as_nl"
5986
5987# Find who we are. Look in the path if we contain no directory separator.
5988as_myself=
5989case $0 in #((
5990 *[\\/]* ) as_myself=$0 ;;
5991 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992for as_dir in $PATH
5993do
5994 IFS=$as_save_IFS
5995 test -z "$as_dir" && as_dir=.
5996 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5997 done
5998IFS=$as_save_IFS
5999
6000 ;;
6001esac
6002# We did not find ourselves, most probably we were run as `sh COMMAND'
6003# in which case we are not to be found in the path.
6004if test "x$as_myself" = x; then
6005 as_myself=$0
6006fi
6007if test ! -f "$as_myself"; then
6008 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6009 exit 1
6010fi
6011
6012# Unset variables that we do not need and which cause bugs (e.g. in
6013# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6014# suppresses any "Segmentation fault" message there. '((' could
6015# trigger a bug in pdksh 5.2.14.
6016for as_var in BASH_ENV ENV MAIL MAILPATH
6017do eval test x\${$as_var+set} = xset \
6018 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6019done
Cullen Jennings235513a2005-09-21 22:51:36 +00006020PS1='$ '
6021PS2='> '
6022PS4='+ '
6023
6024# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04006025LC_ALL=C
6026export LC_ALL
6027LANGUAGE=C
6028export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04006029
jfigusc7e66e32013-05-08 11:32:55 -04006030# CDPATH.
6031(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6032
6033
6034# as_fn_error STATUS ERROR [LINENO LOG_FD]
6035# ----------------------------------------
6036# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6037# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6038# script with STATUS, using 1 if that was 0.
6039as_fn_error ()
6040{
6041 as_status=$1; test $as_status -eq 0 && as_status=1
6042 if test "$4"; then
6043 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6044 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6045 fi
6046 $as_echo "$as_me: error: $2" >&2
6047 as_fn_exit $as_status
6048} # as_fn_error
6049
6050
6051# as_fn_set_status STATUS
6052# -----------------------
6053# Set $? to STATUS, without forking.
6054as_fn_set_status ()
6055{
6056 return $1
6057} # as_fn_set_status
6058
6059# as_fn_exit STATUS
6060# -----------------
6061# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6062as_fn_exit ()
6063{
6064 set +e
6065 as_fn_set_status $1
6066 exit $1
6067} # as_fn_exit
6068
6069# as_fn_unset VAR
6070# ---------------
6071# Portably unset VAR.
6072as_fn_unset ()
6073{
6074 { eval $1=; unset $1;}
6075}
6076as_unset=as_fn_unset
6077# as_fn_append VAR VALUE
6078# ----------------------
6079# Append the text in VALUE to the end of the definition contained in VAR. Take
6080# advantage of any shell optimizations that allow amortized linear growth over
6081# repeated appends, instead of the typical quadratic growth present in naive
6082# implementations.
6083if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6084 eval 'as_fn_append ()
6085 {
6086 eval $1+=\$2
6087 }'
6088else
6089 as_fn_append ()
6090 {
6091 eval $1=\$$1\$2
6092 }
6093fi # as_fn_append
6094
6095# as_fn_arith ARG...
6096# ------------------
6097# Perform arithmetic evaluation on the ARGs, and store the result in the
6098# global $as_val. Take advantage of shells that can avoid forks. The arguments
6099# must be portable across $(()) and expr.
6100if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6101 eval 'as_fn_arith ()
6102 {
6103 as_val=$(( $* ))
6104 }'
6105else
6106 as_fn_arith ()
6107 {
6108 as_val=`expr "$@" || test $? -eq 1`
6109 }
6110fi # as_fn_arith
6111
6112
6113if expr a : '\(a\)' >/dev/null 2>&1 &&
6114 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006115 as_expr=expr
6116else
6117 as_expr=false
6118fi
6119
jfigusc7e66e32013-05-08 11:32:55 -04006120if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006121 as_basename=basename
6122else
6123 as_basename=false
6124fi
6125
jfigusc7e66e32013-05-08 11:32:55 -04006126if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6127 as_dirname=dirname
6128else
6129 as_dirname=false
6130fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006131
jfigusc7e66e32013-05-08 11:32:55 -04006132as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006133$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6134 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6136$as_echo X/"$0" |
6137 sed '/^.*\/\([^/][^/]*\)\/*$/{
6138 s//\1/
6139 q
6140 }
6141 /^X\/\(\/\/\)$/{
6142 s//\1/
6143 q
6144 }
6145 /^X\/\(\/\).*/{
6146 s//\1/
6147 q
6148 }
6149 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006150
Cullen Jennings235513a2005-09-21 22:51:36 +00006151# Avoid depending upon Character Ranges.
6152as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6153as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6154as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6155as_cr_digits='0123456789'
6156as_cr_alnum=$as_cr_Letters$as_cr_digits
6157
jfigusc7e66e32013-05-08 11:32:55 -04006158ECHO_C= ECHO_N= ECHO_T=
6159case `echo -n x` in #(((((
6160-n*)
6161 case `echo 'xy\c'` in
6162 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6163 xy) ECHO_C='\c';;
6164 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6165 ECHO_T=' ';;
6166 esac;;
6167*)
6168 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00006169esac
6170
Cullen Jennings235513a2005-09-21 22:51:36 +00006171rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04006172if test -d conf$$.dir; then
6173 rm -f conf$$.dir/conf$$.file
6174else
6175 rm -f conf$$.dir
6176 mkdir conf$$.dir 2>/dev/null
6177fi
6178if (echo >conf$$.file) 2>/dev/null; then
6179 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006180 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04006181 # ... but there are two gotchas:
6182 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6183 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6184 # In both cases, we have to default to `cp -pR'.
6185 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6186 as_ln_s='cp -pR'
6187 elif ln conf$$.file conf$$ 2>/dev/null; then
6188 as_ln_s=ln
6189 else
6190 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006191 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006192else
jfigusc7e66e32013-05-08 11:32:55 -04006193 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006194fi
jfigusc7e66e32013-05-08 11:32:55 -04006195rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6196rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00006197
jfigusc7e66e32013-05-08 11:32:55 -04006198
6199# as_fn_mkdir_p
6200# -------------
6201# Create "$as_dir" as a directory, including parents if necessary.
6202as_fn_mkdir_p ()
6203{
6204
6205 case $as_dir in #(
6206 -*) as_dir=./$as_dir;;
6207 esac
6208 test -d "$as_dir" || eval $as_mkdir_p || {
6209 as_dirs=
6210 while :; do
6211 case $as_dir in #(
6212 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6213 *) as_qdir=$as_dir;;
6214 esac
6215 as_dirs="'$as_qdir' $as_dirs"
6216 as_dir=`$as_dirname -- "$as_dir" ||
6217$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6218 X"$as_dir" : 'X\(//\)[^/]' \| \
6219 X"$as_dir" : 'X\(//\)$' \| \
6220 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6221$as_echo X"$as_dir" |
6222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6223 s//\1/
6224 q
6225 }
6226 /^X\(\/\/\)[^/].*/{
6227 s//\1/
6228 q
6229 }
6230 /^X\(\/\/\)$/{
6231 s//\1/
6232 q
6233 }
6234 /^X\(\/\).*/{
6235 s//\1/
6236 q
6237 }
6238 s/.*/./; q'`
6239 test -d "$as_dir" && break
6240 done
6241 test -z "$as_dirs" || eval "mkdir $as_dirs"
6242 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6243
6244
6245} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006246if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04006247 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00006248else
David McGrewfec49dd2005-09-23 19:34:11 +00006249 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00006250 as_mkdir_p=false
6251fi
6252
jfigusc7e66e32013-05-08 11:32:55 -04006253
6254# as_fn_executable_p FILE
6255# -----------------------
6256# Test if FILE is an executable regular file.
6257as_fn_executable_p ()
6258{
6259 test -f "$1" && test -x "$1"
6260} # as_fn_executable_p
6261as_test_x='test -x'
6262as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006263
6264# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00006265as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006266
6267# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00006268as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006269
6270
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006271exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04006272## ----------------------------------- ##
6273## Main body of $CONFIG_STATUS script. ##
6274## ----------------------------------- ##
6275_ASEOF
6276test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006277
jfigusc7e66e32013-05-08 11:32:55 -04006278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6279# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00006280# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04006281# values after options handling.
6282ac_log="
Pascal Bühler34acba62017-01-19 10:57:30 +01006283This file was extended by libsrtp2 $as_me 2.1.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04006284generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00006285
6286 CONFIG_FILES = $CONFIG_FILES
6287 CONFIG_HEADERS = $CONFIG_HEADERS
6288 CONFIG_LINKS = $CONFIG_LINKS
6289 CONFIG_COMMANDS = $CONFIG_COMMANDS
6290 $ $0 $@
6291
jfigusc7e66e32013-05-08 11:32:55 -04006292on `(hostname || uname -n) 2>/dev/null | sed 1q`
6293"
6294
Cullen Jennings235513a2005-09-21 22:51:36 +00006295_ACEOF
6296
jfigusc7e66e32013-05-08 11:32:55 -04006297case $ac_config_files in *"
6298"*) set x $ac_config_files; shift; ac_config_files=$*;;
6299esac
6300
6301case $ac_config_headers in *"
6302"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6303esac
6304
6305
6306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006307# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04006308config_files="$ac_config_files"
6309config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00006310
jfigusc7e66e32013-05-08 11:32:55 -04006311_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006312
jfigusc7e66e32013-05-08 11:32:55 -04006313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006314ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04006315\`$as_me' instantiates files and other configuration actions
6316from templates according to the current configuration. Unless the files
6317and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00006318
jfigusc7e66e32013-05-08 11:32:55 -04006319Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00006320
6321 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04006322 -V, --version print version number and configuration settings, then exit
6323 --config print configuration, then exit
6324 -q, --quiet, --silent
6325 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00006326 -d, --debug don't remove temporary files
6327 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04006328 --file=FILE[:TEMPLATE]
6329 instantiate the configuration file FILE
6330 --header=FILE[:TEMPLATE]
6331 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00006332
6333Configuration files:
6334$config_files
6335
6336Configuration headers:
6337$config_headers
6338
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02006339Report bugs to <https://github.com/cisco/libsrtp/issues>."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006340
jfigusc7e66e32013-05-08 11:32:55 -04006341_ACEOF
6342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6343ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00006344ac_cs_version="\\
Pascal Bühler34acba62017-01-19 10:57:30 +01006345libsrtp2 config.status 2.1.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04006346configured by $0, generated by GNU Autoconf 2.69,
6347 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00006348
jfigusc7e66e32013-05-08 11:32:55 -04006349Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00006350This config.status script is free software; the Free Software Foundation
6351gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04006352
6353ac_pwd='$ac_pwd'
6354srcdir='$srcdir'
6355INSTALL='$INSTALL'
6356test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00006357_ACEOF
6358
jfigusc7e66e32013-05-08 11:32:55 -04006359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6360# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00006361ac_need_defaults=:
6362while test $# != 0
6363do
6364 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04006365 --*=?*)
6366 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6367 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006368 ac_shift=:
6369 ;;
jfigusc7e66e32013-05-08 11:32:55 -04006370 --*=)
6371 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6372 ac_optarg=
6373 ac_shift=:
6374 ;;
6375 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00006376 ac_option=$1
6377 ac_optarg=$2
6378 ac_shift=shift
6379 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006380 esac
6381
6382 case $ac_option in
6383 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00006384 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6385 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04006386 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6387 $as_echo "$ac_cs_version"; exit ;;
6388 --config | --confi | --conf | --con | --co | --c )
6389 $as_echo "$ac_cs_config"; exit ;;
6390 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00006391 debug=: ;;
6392 --file | --fil | --fi | --f )
6393 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04006394 case $ac_optarg in
6395 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6396 '') as_fn_error $? "missing file argument" ;;
6397 esac
6398 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006399 ac_need_defaults=false;;
6400 --header | --heade | --head | --hea )
6401 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04006402 case $ac_optarg in
6403 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6404 esac
6405 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006406 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04006407 --he | --h)
6408 # Conflict between --help and --header
6409 as_fn_error $? "ambiguous option: \`$1'
6410Try \`$0 --help' for more information.";;
6411 --help | --hel | -h )
6412 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006413 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6414 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6415 ac_cs_silent=: ;;
6416
6417 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04006418 -*) as_fn_error $? "unrecognized option: \`$1'
6419Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006420
jfigusc7e66e32013-05-08 11:32:55 -04006421 *) as_fn_append ac_config_targets " $1"
6422 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006423
6424 esac
6425 shift
6426done
6427
6428ac_configure_extra_args=
6429
6430if $ac_cs_silent; then
6431 exec 6>/dev/null
6432 ac_configure_extra_args="$ac_configure_extra_args --silent"
6433fi
6434
6435_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006437if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04006438 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6439 shift
6440 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6441 CONFIG_SHELL='$SHELL'
6442 export CONFIG_SHELL
6443 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00006444fi
6445
6446_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6448exec 5>>config.log
6449{
6450 echo
6451 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6452## Running $as_me. ##
6453_ASBOX
6454 $as_echo "$ac_log"
6455} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00006456
jfigusc7e66e32013-05-08 11:32:55 -04006457_ACEOF
6458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6459_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006460
jfigusc7e66e32013-05-08 11:32:55 -04006461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006462
jfigusc7e66e32013-05-08 11:32:55 -04006463# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00006464for ac_config_target in $ac_config_targets
6465do
jfigusc7e66e32013-05-08 11:32:55 -04006466 case $ac_config_target in
6467 "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
6468 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6469 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
6470 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Idar Tollefsen600ad962017-01-26 11:24:51 +01006471 "libsrtp2.pc") CONFIG_FILES="$CONFIG_FILES libsrtp2.pc" ;;
jfigusc7e66e32013-05-08 11:32:55 -04006472
6473 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006474 esac
6475done
6476
jfigusc7e66e32013-05-08 11:32:55 -04006477
Cullen Jennings235513a2005-09-21 22:51:36 +00006478# If the user did not use the arguments to specify the items to instantiate,
6479# then the envvar interface is used. Set only those that are not.
6480# We use the long form for the default assignment because of an extremely
6481# bizarre bug on SunOS 4.1.3.
6482if $ac_need_defaults; then
6483 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6484 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6485fi
6486
6487# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04006488# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00006489# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04006490# Hook for its removal unless debugging.
6491# Note that there is a small window in which the directory will not be cleaned:
6492# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00006493$debug ||
6494{
jfigusc7e66e32013-05-08 11:32:55 -04006495 tmp= ac_tmp=
6496 trap 'exit_status=$?
6497 : "${ac_tmp:=$tmp}"
6498 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6499' 0
6500 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00006501}
Cullen Jennings235513a2005-09-21 22:51:36 +00006502# Create a (secure) tmp directory for tmp files.
6503
6504{
jfigusc7e66e32013-05-08 11:32:55 -04006505 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6506 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00006507} ||
6508{
jfigusc7e66e32013-05-08 11:32:55 -04006509 tmp=./conf$$-$RANDOM
6510 (umask 077 && mkdir "$tmp")
6511} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6512ac_tmp=$tmp
6513
6514# Set up the scripts for CONFIG_FILES section.
6515# No need to generate them if there are no CONFIG_FILES.
6516# This happens for instance with `./config.status config.h'.
6517if test -n "$CONFIG_FILES"; then
6518
6519
6520ac_cr=`echo X | tr X '\015'`
6521# On cygwin, bash can eat \r inside `` if the user requested igncr.
6522# But we know of no other shell where ac_cr would be empty at this
6523# point, so we can use a bashism as a fallback.
6524if test "x$ac_cr" = x; then
6525 eval ac_cr=\$\'\\r\'
6526fi
6527ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6528if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6529 ac_cs_awk_cr='\\r'
6530else
6531 ac_cs_awk_cr=$ac_cr
6532fi
6533
6534echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6535_ACEOF
6536
6537
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006538{
jfigusc7e66e32013-05-08 11:32:55 -04006539 echo "cat >conf$$subs.awk <<_ACEOF" &&
6540 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6541 echo "_ACEOF"
6542} >conf$$subs.sh ||
6543 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6544ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6545ac_delim='%!_!# '
6546for ac_last_try in false false false false false :; do
6547 . ./conf$$subs.sh ||
6548 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6549
6550 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6551 if test $ac_delim_n = $ac_delim_num; then
6552 break
6553 elif $ac_last_try; then
6554 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6555 else
6556 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6557 fi
6558done
6559rm -f conf$$subs.sh
6560
6561cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6562cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6563_ACEOF
6564sed -n '
6565h
6566s/^/S["/; s/!.*/"]=/
6567p
6568g
6569s/^[^!]*!//
6570:repl
6571t repl
6572s/'"$ac_delim"'$//
6573t delim
6574:nl
6575h
6576s/\(.\{148\}\)..*/\1/
6577t more1
6578s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6579p
6580n
6581b repl
6582:more1
6583s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6584p
6585g
6586s/.\{148\}//
6587t nl
6588:delim
6589h
6590s/\(.\{148\}\)..*/\1/
6591t more2
6592s/["\\]/\\&/g; s/^/"/; s/$/"/
6593p
6594b
6595:more2
6596s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6597p
6598g
6599s/.\{148\}//
6600t delim
6601' <conf$$subs.awk | sed '
6602/^[^""]/{
6603 N
6604 s/\n//
6605}
6606' >>$CONFIG_STATUS || ac_write_fail=1
6607rm -f conf$$subs.awk
6608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6609_ACAWK
6610cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6611 for (key in S) S_is_set[key] = 1
6612 FS = ""
6613
6614}
6615{
6616 line = $ 0
6617 nfields = split(line, field, "@")
6618 substed = 0
6619 len = length(field[1])
6620 for (i = 2; i < nfields; i++) {
6621 key = field[i]
6622 keylen = length(key)
6623 if (S_is_set[key]) {
6624 value = S[key]
6625 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6626 len += length(value) + length(field[++i])
6627 substed = 1
6628 } else
6629 len += 1 + keylen
6630 }
6631
6632 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006633}
jfigusa14b5a02013-03-29 12:24:12 -04006634
jfigusc7e66e32013-05-08 11:32:55 -04006635_ACAWK
6636_ACEOF
6637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6638if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6639 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6640else
6641 cat
6642fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6643 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04006644_ACEOF
6645
jfigusc7e66e32013-05-08 11:32:55 -04006646# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6647# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6648# trailing colons and then remove the whole line if VPATH becomes empty
6649# (actually we leave an empty line to preserve line numbers).
6650if test "x$srcdir" = x.; then
6651 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6652h
6653s///
6654s/^/:/
6655s/[ ]*$/:/
6656s/:\$(srcdir):/:/g
6657s/:\${srcdir}:/:/g
6658s/:@srcdir@:/:/g
6659s/^:*//
6660s/:*$//
6661x
6662s/\(=[ ]*\).*/\1/
6663G
6664s/\n//
6665s/^[^=]*=[ ]*$//
6666}'
6667fi
jfigusa14b5a02013-03-29 12:24:12 -04006668
jfigusc7e66e32013-05-08 11:32:55 -04006669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006670fi # test -n "$CONFIG_FILES"
6671
jfigusc7e66e32013-05-08 11:32:55 -04006672# Set up the scripts for CONFIG_HEADERS section.
6673# No need to generate them if there are no CONFIG_HEADERS.
6674# This happens for instance with `./config.status Makefile'.
6675if test -n "$CONFIG_HEADERS"; then
6676cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6677BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00006678_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006679
6680# Transform confdefs.h into an awk script `defines.awk', embedded as
6681# here-document in config.status, that substitutes the proper values into
6682# config.h.in to produce config.h.
6683
6684# Create a delimiter string that does not exist in confdefs.h, to ease
6685# handling of long lines.
6686ac_delim='%!_!# '
6687for ac_last_try in false false :; do
6688 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6689 if test -z "$ac_tt"; then
6690 break
6691 elif $ac_last_try; then
6692 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6693 else
6694 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6695 fi
6696done
6697
6698# For the awk script, D is an array of macro values keyed by name,
6699# likewise P contains macro parameters if any. Preserve backslash
6700# newline sequences.
6701
6702ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6703sed -n '
6704s/.\{148\}/&'"$ac_delim"'/g
6705t rset
6706:rset
6707s/^[ ]*#[ ]*define[ ][ ]*/ /
6708t def
6709d
6710:def
6711s/\\$//
6712t bsnl
6713s/["\\]/\\&/g
6714s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6715D["\1"]=" \3"/p
6716s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6717d
6718:bsnl
6719s/["\\]/\\&/g
6720s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6721D["\1"]=" \3\\\\\\n"\\/p
6722t cont
6723s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6724t cont
6725d
6726:cont
6727n
6728s/.\{148\}/&'"$ac_delim"'/g
6729t clear
6730:clear
6731s/\\$//
6732t bsnlc
6733s/["\\]/\\&/g; s/^/"/; s/$/"/p
6734d
6735:bsnlc
6736s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6737b cont
6738' <confdefs.h | sed '
6739s/'"$ac_delim"'/"\\\
6740"/g' >>$CONFIG_STATUS || ac_write_fail=1
6741
6742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6743 for (key in D) D_is_set[key] = 1
6744 FS = ""
6745}
6746/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6747 line = \$ 0
6748 split(line, arg, " ")
6749 if (arg[1] == "#") {
6750 defundef = arg[2]
6751 mac1 = arg[3]
6752 } else {
6753 defundef = substr(arg[1], 2)
6754 mac1 = arg[2]
6755 }
6756 split(mac1, mac2, "(") #)
6757 macro = mac2[1]
6758 prefix = substr(line, 1, index(line, defundef) - 1)
6759 if (D_is_set[macro]) {
6760 # Preserve the white space surrounding the "#".
6761 print prefix "define", macro P[macro] D[macro]
6762 next
6763 } else {
6764 # Replace #undef with comments. This is necessary, for example,
6765 # in the case of _POSIX_SOURCE, which is predefined and required
6766 # on some systems where configure will not decide to define it.
6767 if (defundef == "undef") {
6768 print "/*", prefix defundef, macro, "*/"
6769 next
6770 }
6771 }
6772}
6773{ print }
6774_ACAWK
6775_ACEOF
6776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6777 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6778fi # test -n "$CONFIG_HEADERS"
6779
6780
6781eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6782shift
6783for ac_tag
6784do
6785 case $ac_tag in
6786 :[FHLC]) ac_mode=$ac_tag; continue;;
6787 esac
6788 case $ac_mode$ac_tag in
6789 :[FHL]*:*);;
6790 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6791 :[FH]-) ac_tag=-:-;;
6792 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6793 esac
6794 ac_save_IFS=$IFS
6795 IFS=:
6796 set x $ac_tag
6797 IFS=$ac_save_IFS
6798 shift
6799 ac_file=$1
6800 shift
6801
6802 case $ac_mode in
6803 :L) ac_source=$1;;
6804 :[FH])
6805 ac_file_inputs=
6806 for ac_f
6807 do
6808 case $ac_f in
6809 -) ac_f="$ac_tmp/stdin";;
6810 *) # Look for the file first in the build tree, then in the source tree
6811 # (if the path is not absolute). The absolute path cannot be DOS-style,
6812 # because $ac_f cannot contain `:'.
6813 test -f "$ac_f" ||
6814 case $ac_f in
6815 [\\/$]*) false;;
6816 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6817 esac ||
6818 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6819 esac
6820 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6821 as_fn_append ac_file_inputs " '$ac_f'"
6822 done
6823
6824 # Let's still pretend it is `configure' which instantiates (i.e., don't
6825 # use $as_me), people would be surprised to read:
6826 # /* config.h. Generated by config.status. */
6827 configure_input='Generated from '`
6828 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6829 `' by configure.'
6830 if test x"$ac_file" != x-; then
6831 configure_input="$ac_file. $configure_input"
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6833$as_echo "$as_me: creating $ac_file" >&6;}
6834 fi
6835 # Neutralize special characters interpreted by sed in replacement strings.
6836 case $configure_input in #(
6837 *\&* | *\|* | *\\* )
6838 ac_sed_conf_input=`$as_echo "$configure_input" |
6839 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6840 *) ac_sed_conf_input=$configure_input;;
6841 esac
6842
6843 case $ac_tag in
6844 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6845 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6846 esac
6847 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006848 esac
6849
jfigusc7e66e32013-05-08 11:32:55 -04006850 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006851$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006852 X"$ac_file" : 'X\(//\)[^/]' \| \
6853 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006854 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6855$as_echo X"$ac_file" |
6856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6857 s//\1/
6858 q
6859 }
6860 /^X\(\/\/\)[^/].*/{
6861 s//\1/
6862 q
6863 }
6864 /^X\(\/\/\)$/{
6865 s//\1/
6866 q
6867 }
6868 /^X\(\/\).*/{
6869 s//\1/
6870 q
6871 }
6872 s/.*/./; q'`
6873 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006874 ac_builddir=.
6875
jfigusc7e66e32013-05-08 11:32:55 -04006876case "$ac_dir" in
6877.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6878*)
6879 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6880 # A ".." for each directory in $ac_dir_suffix.
6881 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6882 case $ac_top_builddir_sub in
6883 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6884 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6885 esac ;;
6886esac
6887ac_abs_top_builddir=$ac_pwd
6888ac_abs_builddir=$ac_pwd$ac_dir_suffix
6889# for backward compatibility:
6890ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00006891
6892case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04006893 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00006894 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04006895 ac_top_srcdir=$ac_top_builddir_sub
6896 ac_abs_top_srcdir=$ac_pwd ;;
6897 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00006898 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04006899 ac_top_srcdir=$srcdir
6900 ac_abs_top_srcdir=$srcdir ;;
6901 *) # Relative name.
6902 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6903 ac_top_srcdir=$ac_top_build_prefix$srcdir
6904 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006905esac
jfigusc7e66e32013-05-08 11:32:55 -04006906ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00006907
Cullen Jennings235513a2005-09-21 22:51:36 +00006908
jfigusc7e66e32013-05-08 11:32:55 -04006909 case $ac_mode in
6910 :F)
6911 #
6912 # CONFIG_FILE
6913 #
Cullen Jennings235513a2005-09-21 22:51:36 +00006914
David McGrewb67061f2005-09-28 14:23:06 +00006915 case $INSTALL in
6916 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04006917 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00006918 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006919_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006920
6921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6922# If the template does not know about datarootdir, expand it.
6923# FIXME: This hack should be removed a few years after 2.60.
6924ac_datarootdir_hack=; ac_datarootdir_seen=
6925ac_sed_dataroot='
6926/datarootdir/ {
6927 p
6928 q
6929}
6930/@datadir@/p
6931/@docdir@/p
6932/@infodir@/p
6933/@localedir@/p
6934/@mandir@/p'
6935case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6936*datarootdir*) ac_datarootdir_seen=yes;;
6937*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6939$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6940_ACEOF
6941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6942 ac_datarootdir_hack='
6943 s&@datadir@&$datadir&g
6944 s&@docdir@&$docdir&g
6945 s&@infodir@&$infodir&g
6946 s&@localedir@&$localedir&g
6947 s&@mandir@&$mandir&g
6948 s&\\\${datarootdir}&$datarootdir&g' ;;
6949esac
6950_ACEOF
6951
6952# Neutralize VPATH when `$srcdir' = `.'.
6953# Shell code in configure.ac might set extrasub.
6954# FIXME: do we really want to maintain this feature?
6955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6956ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00006957$extrasub
6958_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006960:t
6961/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04006962s|@configure_input@|$ac_sed_conf_input|;t t
6963s&@top_builddir@&$ac_top_builddir_sub&;t t
6964s&@top_build_prefix@&$ac_top_build_prefix&;t t
6965s&@srcdir@&$ac_srcdir&;t t
6966s&@abs_srcdir@&$ac_abs_srcdir&;t t
6967s&@top_srcdir@&$ac_top_srcdir&;t t
6968s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6969s&@builddir@&$ac_builddir&;t t
6970s&@abs_builddir@&$ac_abs_builddir&;t t
6971s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6972s&@INSTALL@&$ac_INSTALL&;t t
6973$ac_datarootdir_hack
6974"
6975eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6976 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00006977
jfigusc7e66e32013-05-08 11:32:55 -04006978test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6979 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6980 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6981 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6983which seems to be undefined. Please make sure it is defined" >&5
6984$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6985which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006986
jfigusc7e66e32013-05-08 11:32:55 -04006987 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006988 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04006989 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6990 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6991 esac \
6992 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6993 ;;
6994 :H)
6995 #
6996 # CONFIG_HEADER
6997 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006998 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04006999 {
7000 $as_echo "/* $configure_input */" \
7001 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7002 } >"$ac_tmp/config.h" \
7003 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7004 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7006$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007007 else
jfigusc7e66e32013-05-08 11:32:55 -04007008 rm -f "$ac_file"
7009 mv "$ac_tmp/config.h" "$ac_file" \
7010 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007011 fi
7012 else
jfigusc7e66e32013-05-08 11:32:55 -04007013 $as_echo "/* $configure_input */" \
7014 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7015 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007016 fi
jfigusc7e66e32013-05-08 11:32:55 -04007017 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007018
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007019
jfigusc7e66e32013-05-08 11:32:55 -04007020 esac
7021
7022done # for ac_tag
7023
7024
7025as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007026_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007027ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04007028
jfigusc7e66e32013-05-08 11:32:55 -04007029test $ac_write_fail = 0 ||
7030 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7031
Cullen Jennings235513a2005-09-21 22:51:36 +00007032
7033# configure is writing to config.log, and then calls config.status.
7034# config.status does its own redirection, appending to config.log.
7035# Unfortunately, on DOS this fails, as config.log is still kept open
7036# by configure, so config.status won't be able to write to it; its
7037# output is simply discarded. So we exec the FD to /dev/null,
7038# effectively closing config.log, so it can be properly (re)opened and
7039# appended to by config.status. When coming back to configure, we
7040# need to make the FD available again.
7041if test "$no_create" != yes; then
7042 ac_cs_success=:
7043 ac_config_status_args=
7044 test "$silent" = yes &&
7045 ac_config_status_args="$ac_config_status_args --quiet"
7046 exec 5>/dev/null
7047 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7048 exec 5>>config.log
7049 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7050 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04007051 $ac_cs_success || as_fn_exit 1
7052fi
7053if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7055$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007056fi
7057
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00007058
7059# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04007060as_dir=crypto/cipher; as_fn_mkdir_p
7061as_dir=crypto/hash; as_fn_mkdir_p
7062as_dir=crypto/kernel; as_fn_mkdir_p
7063as_dir=crypto/math; as_fn_mkdir_p
7064as_dir=crypto/replay; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007065as_dir=crypto/test; as_fn_mkdir_p
7066as_dir=doc; as_fn_mkdir_p
7067as_dir=srtp; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007068as_dir=test; as_fn_mkdir_p