blob: 4ec05ba10dc2e664e74e0de738eb2b924272c383 [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ühlerd7f9f462017-05-24 08:57:35 +02003# Generated by GNU Autoconf 2.69 for libsrtp2 2.2.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ühlerd7f9f462017-05-24 08:57:35 +0200583PACKAGE_VERSION='2.2.0-pre'
584PACKAGE_STRING='libsrtp2 2.2.0-pre'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200585PACKAGE_BUGREPORT='https://github.com/cisco/libsrtp/issues'
586PACKAGE_URL=''
Cullen Jennings235513a2005-09-21 22:51:36 +0000587
Cullen Jennings235513a2005-09-21 22:51:36 +0000588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -0400591#ifdef HAVE_SYS_TYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000592# include <sys/types.h>
593#endif
jfigusc7e66e32013-05-08 11:32:55 -0400594#ifdef HAVE_SYS_STAT_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000595# include <sys/stat.h>
596#endif
jfigusc7e66e32013-05-08 11:32:55 -0400597#ifdef STDC_HEADERS
Cullen Jennings235513a2005-09-21 22:51:36 +0000598# include <stdlib.h>
599# include <stddef.h>
600#else
jfigusc7e66e32013-05-08 11:32:55 -0400601# ifdef HAVE_STDLIB_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000602# include <stdlib.h>
603# endif
604#endif
jfigusc7e66e32013-05-08 11:32:55 -0400605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000607# include <memory.h>
608# endif
609# include <string.h>
610#endif
jfigusc7e66e32013-05-08 11:32:55 -0400611#ifdef HAVE_STRINGS_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000612# include <strings.h>
613#endif
jfigusc7e66e32013-05-08 11:32:55 -0400614#ifdef HAVE_INTTYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000615# include <inttypes.h>
Cullen Jennings235513a2005-09-21 22:51:36 +0000616#endif
jfigusc7e66e32013-05-08 11:32:55 -0400617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000621# include <unistd.h>
622#endif"
623
jfigusc7e66e32013-05-08 11:32:55 -0400624ac_subst_vars='LTLIBOBJS
625LIBOBJS
Martin Meszaros96d0b9a2017-11-01 12:31:37 +0100626PCAP_LIB
Bernardo Torresb3c51422014-10-14 12:40:09 -0300627HAVE_PCAP
jfigusc7e66e32013-05-08 11:32:55 -0400628HMAC_OBJS
jfigusc7e66e32013-05-08 11:32:55 -0400629AES_ICM_OBJS
630USE_OPENSSL
Idar Tollefsen600ad962017-01-26 11:24:51 +0100631crypto_LIBS
632crypto_CFLAGS
633PKG_CONFIG_LIBDIR
634PKG_CONFIG_PATH
635PKG_CONFIG
jfigusc7e66e32013-05-08 11:32:55 -0400636EXE
637host_os
638host_vendor
639host_cpu
640host
641build_os
642build_vendor
643build_cpu
644build
645EGREP
646GREP
Idar Tollefsen600ad962017-01-26 11:24:51 +0100647SED
jfigusc7e66e32013-05-08 11:32:55 -0400648INSTALL_DATA
649INSTALL_SCRIPT
650INSTALL_PROGRAM
jfigus1ce6a742015-04-06 08:54:01 -0400651RANLIB
Idar Tollefsencb771f72017-05-03 13:20:08 +0200652ac_ct_AR
653AR
654EXTRA_CFLAGS
655CPP
jfigusc7e66e32013-05-08 11:32:55 -0400656OBJEXT
657EXEEXT
658ac_ct_CC
659CPPFLAGS
660LDFLAGS
661CFLAGS
662CC
jfigusc7e66e32013-05-08 11:32:55 -0400663target_alias
664host_alias
665build_alias
666LIBS
667ECHO_T
668ECHO_N
669ECHO_C
670DEFS
671mandir
672localedir
673libdir
674psdir
675pdfdir
676dvidir
677htmldir
678infodir
679docdir
680oldincludedir
681includedir
682localstatedir
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'
Cullen Jennings235513a2005-09-21 22:51:36 +0000764includedir='${prefix}/include'
765oldincludedir='/usr/include'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200766docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
jfigusc7e66e32013-05-08 11:32:55 -0400767infodir='${datarootdir}/info'
768htmldir='${docdir}'
769dvidir='${docdir}'
770pdfdir='${docdir}'
771psdir='${docdir}'
772libdir='${exec_prefix}/lib'
773localedir='${datarootdir}/locale'
774mandir='${datarootdir}/man'
Cullen Jennings235513a2005-09-21 22:51:36 +0000775
776ac_prev=
jfigusc7e66e32013-05-08 11:32:55 -0400777ac_dashdash=
Cullen Jennings235513a2005-09-21 22:51:36 +0000778for ac_option
779do
780 # If the previous option needs an argument, assign it.
781 if test -n "$ac_prev"; then
jfigusc7e66e32013-05-08 11:32:55 -0400782 eval $ac_prev=\$ac_option
Cullen Jennings235513a2005-09-21 22:51:36 +0000783 ac_prev=
784 continue
785 fi
786
jfigusc7e66e32013-05-08 11:32:55 -0400787 case $ac_option in
788 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
789 *=) ac_optarg= ;;
790 *) ac_optarg=yes ;;
791 esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000792
793 # Accept the important Cygnus configure options, so we can diagnose typos.
794
jfigusc7e66e32013-05-08 11:32:55 -0400795 case $ac_dashdash$ac_option in
796 --)
797 ac_dashdash=yes ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000798
799 -bindir | --bindir | --bindi | --bind | --bin | --bi)
800 ac_prev=bindir ;;
801 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
802 bindir=$ac_optarg ;;
803
804 -build | --build | --buil | --bui | --bu)
805 ac_prev=build_alias ;;
806 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
807 build_alias=$ac_optarg ;;
808
809 -cache-file | --cache-file | --cache-fil | --cache-fi \
810 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
811 ac_prev=cache_file ;;
812 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
813 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
814 cache_file=$ac_optarg ;;
815
816 --config-cache | -C)
817 cache_file=config.cache ;;
818
jfigusc7e66e32013-05-08 11:32:55 -0400819 -datadir | --datadir | --datadi | --datad)
Cullen Jennings235513a2005-09-21 22:51:36 +0000820 ac_prev=datadir ;;
jfigusc7e66e32013-05-08 11:32:55 -0400821 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000822 datadir=$ac_optarg ;;
823
jfigusc7e66e32013-05-08 11:32:55 -0400824 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
825 | --dataroo | --dataro | --datar)
826 ac_prev=datarootdir ;;
827 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
828 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
829 datarootdir=$ac_optarg ;;
830
Cullen Jennings235513a2005-09-21 22:51:36 +0000831 -disable-* | --disable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400832 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000833 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400834 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
835 as_fn_error $? "invalid feature name: $ac_useropt"
836 ac_useropt_orig=$ac_useropt
837 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
838 case $ac_user_opts in
839 *"
840"enable_$ac_useropt"
841"*) ;;
842 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
843 ac_unrecognized_sep=', ';;
844 esac
845 eval enable_$ac_useropt=no ;;
846
847 -docdir | --docdir | --docdi | --doc | --do)
848 ac_prev=docdir ;;
849 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
850 docdir=$ac_optarg ;;
851
852 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
853 ac_prev=dvidir ;;
854 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
855 dvidir=$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000856
857 -enable-* | --enable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400858 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000859 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400860 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
861 as_fn_error $? "invalid feature name: $ac_useropt"
862 ac_useropt_orig=$ac_useropt
863 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
864 case $ac_user_opts in
865 *"
866"enable_$ac_useropt"
867"*) ;;
868 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
869 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000870 esac
jfigusc7e66e32013-05-08 11:32:55 -0400871 eval enable_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000872
873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875 | --exec | --exe | --ex)
876 ac_prev=exec_prefix ;;
877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879 | --exec=* | --exe=* | --ex=*)
880 exec_prefix=$ac_optarg ;;
881
882 -gas | --gas | --ga | --g)
883 # Obsolete; use --with-gas.
884 with_gas=yes ;;
885
886 -help | --help | --hel | --he | -h)
887 ac_init_help=long ;;
888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889 ac_init_help=recursive ;;
890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891 ac_init_help=short ;;
892
893 -host | --host | --hos | --ho)
894 ac_prev=host_alias ;;
895 -host=* | --host=* | --hos=* | --ho=*)
896 host_alias=$ac_optarg ;;
897
jfigusc7e66e32013-05-08 11:32:55 -0400898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 ac_prev=htmldir ;;
900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 | --ht=*)
902 htmldir=$ac_optarg ;;
903
Cullen Jennings235513a2005-09-21 22:51:36 +0000904 -includedir | --includedir | --includedi | --included | --include \
905 | --includ | --inclu | --incl | --inc)
906 ac_prev=includedir ;;
907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908 | --includ=* | --inclu=* | --incl=* | --inc=*)
909 includedir=$ac_optarg ;;
910
911 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 ac_prev=infodir ;;
913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914 infodir=$ac_optarg ;;
915
916 -libdir | --libdir | --libdi | --libd)
917 ac_prev=libdir ;;
918 -libdir=* | --libdir=* | --libdi=* | --libd=*)
919 libdir=$ac_optarg ;;
920
921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922 | --libexe | --libex | --libe)
923 ac_prev=libexecdir ;;
924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925 | --libexe=* | --libex=* | --libe=*)
926 libexecdir=$ac_optarg ;;
927
jfigusc7e66e32013-05-08 11:32:55 -0400928 -localedir | --localedir | --localedi | --localed | --locale)
929 ac_prev=localedir ;;
930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931 localedir=$ac_optarg ;;
932
Cullen Jennings235513a2005-09-21 22:51:36 +0000933 -localstatedir | --localstatedir | --localstatedi | --localstated \
jfigusc7e66e32013-05-08 11:32:55 -0400934 | --localstate | --localstat | --localsta | --localst | --locals)
Cullen Jennings235513a2005-09-21 22:51:36 +0000935 ac_prev=localstatedir ;;
936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
jfigusc7e66e32013-05-08 11:32:55 -0400937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000938 localstatedir=$ac_optarg ;;
939
940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 ac_prev=mandir ;;
942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943 mandir=$ac_optarg ;;
944
945 -nfp | --nfp | --nf)
946 # Obsolete; use --without-fp.
947 with_fp=no ;;
948
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950 | --no-cr | --no-c | -n)
951 no_create=yes ;;
952
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955 no_recursion=yes ;;
956
957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959 | --oldin | --oldi | --old | --ol | --o)
960 ac_prev=oldincludedir ;;
961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964 oldincludedir=$ac_optarg ;;
965
966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 ac_prev=prefix ;;
968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969 prefix=$ac_optarg ;;
970
971 -program-prefix | --program-prefix | --program-prefi | --program-pref \
972 | --program-pre | --program-pr | --program-p)
973 ac_prev=program_prefix ;;
974 -program-prefix=* | --program-prefix=* | --program-prefi=* \
975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976 program_prefix=$ac_optarg ;;
977
978 -program-suffix | --program-suffix | --program-suffi | --program-suff \
979 | --program-suf | --program-su | --program-s)
980 ac_prev=program_suffix ;;
981 -program-suffix=* | --program-suffix=* | --program-suffi=* \
982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983 program_suffix=$ac_optarg ;;
984
985 -program-transform-name | --program-transform-name \
986 | --program-transform-nam | --program-transform-na \
987 | --program-transform-n | --program-transform- \
988 | --program-transform | --program-transfor \
989 | --program-transfo | --program-transf \
990 | --program-trans | --program-tran \
991 | --progr-tra | --program-tr | --program-t)
992 ac_prev=program_transform_name ;;
993 -program-transform-name=* | --program-transform-name=* \
994 | --program-transform-nam=* | --program-transform-na=* \
995 | --program-transform-n=* | --program-transform-=* \
996 | --program-transform=* | --program-transfor=* \
997 | --program-transfo=* | --program-transf=* \
998 | --program-trans=* | --program-tran=* \
999 | --progr-tra=* | --program-tr=* | --program-t=*)
1000 program_transform_name=$ac_optarg ;;
1001
jfigusc7e66e32013-05-08 11:32:55 -04001002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 ac_prev=pdfdir ;;
1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005 pdfdir=$ac_optarg ;;
1006
1007 -psdir | --psdir | --psdi | --psd | --ps)
1008 ac_prev=psdir ;;
1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010 psdir=$ac_optarg ;;
1011
Cullen Jennings235513a2005-09-21 22:51:36 +00001012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1014 silent=yes ;;
1015
1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 ac_prev=sbindir ;;
1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 | --sbi=* | --sb=*)
1020 sbindir=$ac_optarg ;;
1021
1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024 | --sharedst | --shareds | --shared | --share | --shar \
1025 | --sha | --sh)
1026 ac_prev=sharedstatedir ;;
1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 | --sha=* | --sh=*)
1031 sharedstatedir=$ac_optarg ;;
1032
1033 -site | --site | --sit)
1034 ac_prev=site ;;
1035 -site=* | --site=* | --sit=*)
1036 site=$ac_optarg ;;
1037
1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 ac_prev=srcdir ;;
1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041 srcdir=$ac_optarg ;;
1042
1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044 | --syscon | --sysco | --sysc | --sys | --sy)
1045 ac_prev=sysconfdir ;;
1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048 sysconfdir=$ac_optarg ;;
1049
1050 -target | --target | --targe | --targ | --tar | --ta | --t)
1051 ac_prev=target_alias ;;
1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053 target_alias=$ac_optarg ;;
1054
1055 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056 verbose=yes ;;
1057
1058 -version | --version | --versio | --versi | --vers | -V)
1059 ac_init_version=: ;;
1060
1061 -with-* | --with-*)
jfigusc7e66e32013-05-08 11:32:55 -04001062 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001063 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 as_fn_error $? "invalid package name: $ac_useropt"
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1069 *"
1070"with_$ac_useropt"
1071"*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +00001074 esac
jfigusc7e66e32013-05-08 11:32:55 -04001075 eval with_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001076
1077 -without-* | --without-*)
jfigusc7e66e32013-05-08 11:32:55 -04001078 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001079 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error $? "invalid package name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1085 *"
1086"with_$ac_useropt"
1087"*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval with_$ac_useropt=no ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001092
1093 --x)
1094 # Obsolete; use --with-x.
1095 with_x=yes ;;
1096
1097 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1098 | --x-incl | --x-inc | --x-in | --x-i)
1099 ac_prev=x_includes ;;
1100 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1101 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1102 x_includes=$ac_optarg ;;
1103
1104 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1105 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1106 ac_prev=x_libraries ;;
1107 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1108 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1109 x_libraries=$ac_optarg ;;
1110
jfigusc7e66e32013-05-08 11:32:55 -04001111 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1112Try \`$0 --help' for more information"
Cullen Jennings235513a2005-09-21 22:51:36 +00001113 ;;
1114
1115 *=*)
1116 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1117 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001118 case $ac_envvar in #(
1119 '' | [0-9]* | *[!_$as_cr_alnum]* )
1120 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1121 esac
1122 eval $ac_envvar=\$ac_optarg
Cullen Jennings235513a2005-09-21 22:51:36 +00001123 export $ac_envvar ;;
1124
1125 *)
1126 # FIXME: should be removed in autoconf 3.0.
jfigusc7e66e32013-05-08 11:32:55 -04001127 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Cullen Jennings235513a2005-09-21 22:51:36 +00001128 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jfigusc7e66e32013-05-08 11:32:55 -04001129 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1130 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Cullen Jennings235513a2005-09-21 22:51:36 +00001131 ;;
1132
1133 esac
1134done
1135
1136if test -n "$ac_prev"; then
1137 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jfigusc7e66e32013-05-08 11:32:55 -04001138 as_fn_error $? "missing argument to $ac_option"
Cullen Jennings235513a2005-09-21 22:51:36 +00001139fi
1140
jfigusc7e66e32013-05-08 11:32:55 -04001141if test -n "$ac_unrecognized_opts"; then
1142 case $enable_option_checking in
1143 no) ;;
1144 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1145 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001146 esac
jfigusc7e66e32013-05-08 11:32:55 -04001147fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001148
jfigusc7e66e32013-05-08 11:32:55 -04001149# Check all directory arguments for consistency.
1150for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1151 datadir sysconfdir sharedstatedir localstatedir includedir \
1152 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Pascal Bühlerd7f9f462017-05-24 08:57:35 +02001153 libdir localedir mandir
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001154do
jfigusc7e66e32013-05-08 11:32:55 -04001155 eval ac_val=\$$ac_var
1156 # Remove trailing slashes.
jfigusa14b5a02013-03-29 12:24:12 -04001157 case $ac_val in
jfigusc7e66e32013-05-08 11:32:55 -04001158 */ )
1159 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1160 eval $ac_var=\$ac_val;;
jfigusa14b5a02013-03-29 12:24:12 -04001161 esac
jfigusc7e66e32013-05-08 11:32:55 -04001162 # Be sure to have absolute directory names.
1163 case $ac_val in
1164 [\\/$]* | ?:[\\/]* ) continue;;
1165 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1166 esac
1167 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Cullen Jennings235513a2005-09-21 22:51:36 +00001168done
1169
1170# There might be people who depend on the old broken behavior: `$host'
1171# used to hold the argument of --host etc.
1172# FIXME: To remove some day.
1173build=$build_alias
1174host=$host_alias
1175target=$target_alias
1176
1177# FIXME: To remove some day.
1178if test "x$host_alias" != x; then
1179 if test "x$build_alias" = x; then
1180 cross_compiling=maybe
Cullen Jennings235513a2005-09-21 22:51:36 +00001181 elif test "x$build_alias" != "x$host_alias"; then
1182 cross_compiling=yes
1183 fi
1184fi
1185
1186ac_tool_prefix=
1187test -n "$host_alias" && ac_tool_prefix=$host_alias-
1188
1189test "$silent" = yes && exec 6>/dev/null
1190
1191
jfigusc7e66e32013-05-08 11:32:55 -04001192ac_pwd=`pwd` && test -n "$ac_pwd" &&
1193ac_ls_di=`ls -di .` &&
1194ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1195 as_fn_error $? "working directory cannot be determined"
1196test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1197 as_fn_error $? "pwd does not report name of working directory"
1198
1199
Cullen Jennings235513a2005-09-21 22:51:36 +00001200# Find the source files, if location was not specified.
1201if test -z "$srcdir"; then
1202 ac_srcdir_defaulted=yes
jfigusc7e66e32013-05-08 11:32:55 -04001203 # Try the directory containing this script, then the parent directory.
1204 ac_confdir=`$as_dirname -- "$as_myself" ||
1205$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1206 X"$as_myself" : 'X\(//\)[^/]' \| \
1207 X"$as_myself" : 'X\(//\)$' \| \
1208 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1209$as_echo X"$as_myself" |
1210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1211 s//\1/
1212 q
1213 }
1214 /^X\(\/\/\)[^/].*/{
1215 s//\1/
1216 q
1217 }
1218 /^X\(\/\/\)$/{
1219 s//\1/
1220 q
1221 }
1222 /^X\(\/\).*/{
1223 s//\1/
1224 q
1225 }
1226 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001227 srcdir=$ac_confdir
jfigusc7e66e32013-05-08 11:32:55 -04001228 if test ! -r "$srcdir/$ac_unique_file"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00001229 srcdir=..
1230 fi
1231else
1232 ac_srcdir_defaulted=no
1233fi
jfigusc7e66e32013-05-08 11:32:55 -04001234if test ! -r "$srcdir/$ac_unique_file"; then
1235 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1236 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Cullen Jennings235513a2005-09-21 22:51:36 +00001237fi
jfigusc7e66e32013-05-08 11:32:55 -04001238ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1239ac_abs_confdir=`(
1240 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1241 pwd)`
1242# When building in place, set srcdir=.
1243if test "$ac_abs_confdir" = "$ac_pwd"; then
1244 srcdir=.
1245fi
1246# Remove unnecessary trailing slashes from srcdir.
1247# Double slashes in file names in object file debugging info
1248# mess up M-x gdb in Emacs.
1249case $srcdir in
1250*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1251esac
1252for ac_var in $ac_precious_vars; do
1253 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1254 eval ac_env_${ac_var}_value=\$${ac_var}
1255 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1256 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1257done
Cullen Jennings235513a2005-09-21 22:51:36 +00001258
1259#
1260# Report the --help message.
1261#
1262if test "$ac_init_help" = "long"; then
1263 # Omit some internal or obsolete options to make the list less imposing.
1264 # This message is too long to be a string in the A/UX 3.1 sh.
1265 cat <<_ACEOF
Pascal Bühlerd7f9f462017-05-24 08:57:35 +02001266\`configure' configures libsrtp2 2.2.0-pre to adapt to many kinds of systems.
Cullen Jennings235513a2005-09-21 22:51:36 +00001267
1268Usage: $0 [OPTION]... [VAR=VALUE]...
1269
1270To assign environment variables (e.g., CC, CFLAGS...), specify them as
1271VAR=VALUE. See below for descriptions of some of the useful variables.
1272
1273Defaults for the options are specified in brackets.
1274
1275Configuration:
1276 -h, --help display this help and exit
1277 --help=short display options specific to this package
1278 --help=recursive display the short help of all the included packages
1279 -V, --version display version information and exit
jfigusc7e66e32013-05-08 11:32:55 -04001280 -q, --quiet, --silent do not print \`checking ...' messages
Cullen Jennings235513a2005-09-21 22:51:36 +00001281 --cache-file=FILE cache test results in FILE [disabled]
1282 -C, --config-cache alias for \`--cache-file=config.cache'
1283 -n, --no-create do not create output files
1284 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1285
Cullen Jennings235513a2005-09-21 22:51:36 +00001286Installation directories:
1287 --prefix=PREFIX install architecture-independent files in PREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001288 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +00001289 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001290 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +00001291
1292By default, \`make install' will install all the files in
1293\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1294an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1295for instance \`--prefix=\$HOME'.
1296
1297For better control, use the options below.
1298
1299Fine tuning of the installation directories:
jfigusc7e66e32013-05-08 11:32:55 -04001300 --bindir=DIR user executables [EPREFIX/bin]
1301 --sbindir=DIR system admin executables [EPREFIX/sbin]
1302 --libexecdir=DIR program executables [EPREFIX/libexec]
1303 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1304 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1305 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1306 --libdir=DIR object code libraries [EPREFIX/lib]
1307 --includedir=DIR C header files [PREFIX/include]
1308 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1309 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1310 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1311 --infodir=DIR info documentation [DATAROOTDIR/info]
1312 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1313 --mandir=DIR man documentation [DATAROOTDIR/man]
jfigusd196e022014-11-20 16:43:44 -05001314 --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp2]
jfigusc7e66e32013-05-08 11:32:55 -04001315 --htmldir=DIR html documentation [DOCDIR]
1316 --dvidir=DIR dvi documentation [DOCDIR]
1317 --pdfdir=DIR pdf documentation [DOCDIR]
1318 --psdir=DIR ps documentation [DOCDIR]
Cullen Jennings235513a2005-09-21 22:51:36 +00001319_ACEOF
1320
1321 cat <<\_ACEOF
1322
1323System types:
1324 --build=BUILD configure for building on BUILD [guessed]
1325 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1326_ACEOF
1327fi
1328
1329if test -n "$ac_init_help"; then
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001330 case $ac_init_help in
Pascal Bühlerd7f9f462017-05-24 08:57:35 +02001331 short | recursive ) echo "Configuration of libsrtp2 2.2.0-pre:";;
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001332 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00001333 cat <<\_ACEOF
1334
1335Optional Features:
jfigusc7e66e32013-05-08 11:32:55 -04001336 --disable-option-checking ignore unrecognized --enable/--with options
Cullen Jennings235513a2005-09-21 22:51:36 +00001337 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1338 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Pascal Bühler75918862017-02-19 18:33:50 +01001339 --enable-debug-logging Enable debug logging in all modules
jfigusc7e66e32013-05-08 11:32:55 -04001340 --enable-openssl compile in OpenSSL crypto engine
jfigus038d2cf2015-05-11 14:10:11 -04001341 --enable-openssl-kdf Use OpenSSL KDF algorithm
Pascal Bühler75918862017-02-19 18:33:50 +01001342 --enable-log-stdout redirecting logging to stdout
Cullen Jennings235513a2005-09-21 22:51:36 +00001343
jfigus038d2cf2015-05-11 14:10:11 -04001344Optional Packages:
1345 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1346 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1347 --with-openssl-dir Location of OpenSSL installation
Pascal Bühler75918862017-02-19 18:33:50 +01001348 --with-log-file Use file for logging
jfigus038d2cf2015-05-11 14:10:11 -04001349
Cullen Jennings235513a2005-09-21 22:51:36 +00001350Some influential environment variables:
1351 CC C compiler command
1352 CFLAGS C compiler flags
1353 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1354 nonstandard directory <lib dir>
jfigusc7e66e32013-05-08 11:32:55 -04001355 LIBS libraries to pass to the linker, e.g. -l<library>
1356 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1357 you have headers in a nonstandard directory <include dir>
Cullen Jennings235513a2005-09-21 22:51:36 +00001358 CPP C preprocessor
Idar Tollefsencb771f72017-05-03 13:20:08 +02001359 EXTRA_CFLAGS
1360 C compiler flags appended to the regular C compiler flags
1361 instead of overriding them
Idar Tollefsen600ad962017-01-26 11:24:51 +01001362 PKG_CONFIG path to pkg-config utility
1363 PKG_CONFIG_PATH
1364 directories to add to pkg-config's search path
1365 PKG_CONFIG_LIBDIR
1366 path overriding pkg-config's built-in search path
1367 crypto_CFLAGS
1368 C compiler flags for crypto, overriding pkg-config
1369 crypto_LIBS linker flags for crypto, overriding pkg-config
Cullen Jennings235513a2005-09-21 22:51:36 +00001370
1371Use these variables to override the choices made by `configure' or to help
1372it to find libraries and programs with nonstandard names/locations.
1373
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001374Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00001375_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001376ac_status=$?
Cullen Jennings235513a2005-09-21 22:51:36 +00001377fi
1378
1379if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
Cullen Jennings235513a2005-09-21 22:51:36 +00001381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jfigusc7e66e32013-05-08 11:32:55 -04001382 test -d "$ac_dir" ||
1383 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1384 continue
Cullen Jennings235513a2005-09-21 22:51:36 +00001385 ac_builddir=.
1386
jfigusc7e66e32013-05-08 11:32:55 -04001387case "$ac_dir" in
1388.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389*)
1390 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1391 # A ".." for each directory in $ac_dir_suffix.
1392 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1393 case $ac_top_builddir_sub in
1394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1396 esac ;;
1397esac
1398ac_abs_top_builddir=$ac_pwd
1399ac_abs_builddir=$ac_pwd$ac_dir_suffix
1400# for backward compatibility:
1401ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00001402
1403case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04001404 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00001405 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04001406 ac_top_srcdir=$ac_top_builddir_sub
1407 ac_abs_top_srcdir=$ac_pwd ;;
1408 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001409 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04001410 ac_top_srcdir=$srcdir
1411 ac_abs_top_srcdir=$srcdir ;;
1412 *) # Relative name.
1413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1414 ac_top_srcdir=$ac_top_build_prefix$srcdir
1415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001416esac
jfigusc7e66e32013-05-08 11:32:55 -04001417ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001418
jfigusc7e66e32013-05-08 11:32:55 -04001419 cd "$ac_dir" || { ac_status=$?; continue; }
1420 # Check for guested configure.
1421 if test -f "$ac_srcdir/configure.gnu"; then
1422 echo &&
1423 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1424 elif test -f "$ac_srcdir/configure"; then
1425 echo &&
1426 $SHELL "$ac_srcdir/configure" --help=recursive
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001427 else
jfigusc7e66e32013-05-08 11:32:55 -04001428 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1429 fi || ac_status=$?
1430 cd "$ac_pwd" || { ac_status=$?; break; }
Cullen Jennings235513a2005-09-21 22:51:36 +00001431 done
1432fi
1433
jfigusc7e66e32013-05-08 11:32:55 -04001434test -n "$ac_init_help" && exit $ac_status
Cullen Jennings235513a2005-09-21 22:51:36 +00001435if $ac_init_version; then
1436 cat <<\_ACEOF
Pascal Bühlerd7f9f462017-05-24 08:57:35 +02001437libsrtp2 configure 2.2.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04001438generated by GNU Autoconf 2.69
Cullen Jennings235513a2005-09-21 22:51:36 +00001439
jfigusc7e66e32013-05-08 11:32:55 -04001440Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00001441This configure script is free software; the Free Software Foundation
1442gives unlimited permission to copy, distribute and modify it.
1443_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001444 exit
Cullen Jennings235513a2005-09-21 22:51:36 +00001445fi
jfigusc7e66e32013-05-08 11:32:55 -04001446
1447## ------------------------ ##
1448## Autoconf initialization. ##
1449## ------------------------ ##
1450
1451# ac_fn_c_try_compile LINENO
1452# --------------------------
1453# Try to compile conftest.$ac_ext, and return whether this succeeded.
1454ac_fn_c_try_compile ()
1455{
1456 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1457 rm -f conftest.$ac_objext
1458 if { { ac_try="$ac_compile"
1459case "(($ac_try" in
1460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1461 *) ac_try_echo=$ac_try;;
1462esac
1463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1464$as_echo "$ac_try_echo"; } >&5
1465 (eval "$ac_compile") 2>conftest.err
1466 ac_status=$?
1467 if test -s conftest.err; then
1468 grep -v '^ *+' conftest.err >conftest.er1
1469 cat conftest.er1 >&5
1470 mv -f conftest.er1 conftest.err
1471 fi
1472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1473 test $ac_status = 0; } && {
1474 test -z "$ac_c_werror_flag" ||
1475 test ! -s conftest.err
1476 } && test -s conftest.$ac_objext; then :
1477 ac_retval=0
1478else
1479 $as_echo "$as_me: failed program was:" >&5
1480sed 's/^/| /' conftest.$ac_ext >&5
1481
1482 ac_retval=1
1483fi
1484 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1485 as_fn_set_status $ac_retval
1486
1487} # ac_fn_c_try_compile
1488
Idar Tollefsencb771f72017-05-03 13:20:08 +02001489# ac_fn_c_try_cpp LINENO
1490# ----------------------
1491# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1492ac_fn_c_try_cpp ()
1493{
1494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1495 if { { ac_try="$ac_cpp conftest.$ac_ext"
1496case "(($ac_try" in
1497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1498 *) ac_try_echo=$ac_try;;
1499esac
1500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1501$as_echo "$ac_try_echo"; } >&5
1502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1503 ac_status=$?
1504 if test -s conftest.err; then
1505 grep -v '^ *+' conftest.err >conftest.er1
1506 cat conftest.er1 >&5
1507 mv -f conftest.er1 conftest.err
1508 fi
1509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1510 test $ac_status = 0; } > conftest.i && {
1511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1512 test ! -s conftest.err
1513 }; then :
1514 ac_retval=0
1515else
1516 $as_echo "$as_me: failed program was:" >&5
1517sed 's/^/| /' conftest.$ac_ext >&5
1518
1519 ac_retval=1
1520fi
1521 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1522 as_fn_set_status $ac_retval
1523
1524} # ac_fn_c_try_cpp
1525
jfigusc7e66e32013-05-08 11:32:55 -04001526# ac_fn_c_try_run LINENO
1527# ----------------------
1528# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1529# that executables *can* be run.
1530ac_fn_c_try_run ()
1531{
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 if { { ac_try="$ac_link"
1534case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537esac
1538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539$as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_link") 2>&5
1541 ac_status=$?
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1544 { { case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547esac
1548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549$as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_try") 2>&5
1551 ac_status=$?
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; }; }; then :
1554 ac_retval=0
1555else
1556 $as_echo "$as_me: program exited with status $ac_status" >&5
1557 $as_echo "$as_me: failed program was:" >&5
1558sed 's/^/| /' conftest.$ac_ext >&5
1559
1560 ac_retval=$ac_status
1561fi
1562 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564 as_fn_set_status $ac_retval
1565
1566} # ac_fn_c_try_run
1567
jfigusc7e66e32013-05-08 11:32:55 -04001568# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1569# -------------------------------------------------------
1570# Tests whether HEADER exists and can be compiled using the include files in
1571# INCLUDES, setting the cache variable VAR accordingly.
1572ac_fn_c_check_header_compile ()
1573{
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1576$as_echo_n "checking for $2... " >&6; }
1577if eval \${$3+:} false; then :
1578 $as_echo_n "(cached) " >&6
1579else
1580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1581/* end confdefs.h. */
1582$4
1583#include <$2>
1584_ACEOF
1585if ac_fn_c_try_compile "$LINENO"; then :
1586 eval "$3=yes"
1587else
1588 eval "$3=no"
1589fi
1590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1591fi
1592eval ac_res=\$$3
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1594$as_echo "$ac_res" >&6; }
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596
1597} # ac_fn_c_check_header_compile
1598
jfigusc7e66e32013-05-08 11:32:55 -04001599# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1600# -------------------------------------------
1601# Tests whether TYPE exists after having included INCLUDES, setting cache
1602# variable VAR accordingly.
1603ac_fn_c_check_type ()
1604{
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607$as_echo_n "checking for $2... " >&6; }
1608if eval \${$3+:} false; then :
1609 $as_echo_n "(cached) " >&6
1610else
1611 eval "$3=no"
1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613/* end confdefs.h. */
1614$4
1615int
1616main ()
1617{
1618if (sizeof ($2))
1619 return 0;
1620 ;
1621 return 0;
1622}
1623_ACEOF
1624if ac_fn_c_try_compile "$LINENO"; then :
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626/* end confdefs.h. */
1627$4
1628int
1629main ()
1630{
1631if (sizeof (($2)))
1632 return 0;
1633 ;
1634 return 0;
1635}
1636_ACEOF
1637if ac_fn_c_try_compile "$LINENO"; then :
1638
1639else
1640 eval "$3=yes"
1641fi
1642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643fi
1644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645fi
1646eval ac_res=\$$3
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648$as_echo "$ac_res" >&6; }
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650
1651} # ac_fn_c_check_type
1652
1653# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1654# --------------------------------------------
1655# Tries to find the compile-time value of EXPR in a program that includes
1656# INCLUDES, setting VAR accordingly. Returns whether the value could be
1657# computed
1658ac_fn_c_compute_int ()
1659{
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 if test "$cross_compiling" = yes; then
1662 # Depending upon the size, compute the lo and hi bounds.
1663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664/* end confdefs.h. */
1665$4
1666int
1667main ()
1668{
1669static int test_array [1 - 2 * !(($2) >= 0)];
1670test_array [0] = 0;
1671return test_array [0];
1672
1673 ;
1674 return 0;
1675}
1676_ACEOF
1677if ac_fn_c_try_compile "$LINENO"; then :
1678 ac_lo=0 ac_mid=0
1679 while :; do
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681/* end confdefs.h. */
1682$4
1683int
1684main ()
1685{
1686static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1687test_array [0] = 0;
1688return test_array [0];
1689
1690 ;
1691 return 0;
1692}
1693_ACEOF
1694if ac_fn_c_try_compile "$LINENO"; then :
1695 ac_hi=$ac_mid; break
1696else
1697 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1698 if test $ac_lo -le $ac_mid; then
1699 ac_lo= ac_hi=
1700 break
1701 fi
1702 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1703fi
1704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1705 done
1706else
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708/* end confdefs.h. */
1709$4
1710int
1711main ()
1712{
1713static int test_array [1 - 2 * !(($2) < 0)];
1714test_array [0] = 0;
1715return test_array [0];
1716
1717 ;
1718 return 0;
1719}
1720_ACEOF
1721if ac_fn_c_try_compile "$LINENO"; then :
1722 ac_hi=-1 ac_mid=-1
1723 while :; do
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725/* end confdefs.h. */
1726$4
1727int
1728main ()
1729{
1730static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1731test_array [0] = 0;
1732return test_array [0];
1733
1734 ;
1735 return 0;
1736}
1737_ACEOF
1738if ac_fn_c_try_compile "$LINENO"; then :
1739 ac_lo=$ac_mid; break
1740else
1741 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1742 if test $ac_mid -le $ac_hi; then
1743 ac_lo= ac_hi=
1744 break
1745 fi
1746 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1747fi
1748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749 done
1750else
1751 ac_lo= ac_hi=
1752fi
1753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754fi
1755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756# Binary search between lo and hi bounds.
1757while test "x$ac_lo" != "x$ac_hi"; do
1758 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760/* end confdefs.h. */
1761$4
1762int
1763main ()
1764{
1765static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1766test_array [0] = 0;
1767return test_array [0];
1768
1769 ;
1770 return 0;
1771}
1772_ACEOF
1773if ac_fn_c_try_compile "$LINENO"; then :
1774 ac_hi=$ac_mid
1775else
1776 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1777fi
1778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779done
1780case $ac_lo in #((
1781?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1782'') ac_retval=1 ;;
1783esac
1784 else
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h. */
1787$4
1788static long int longval () { return $2; }
1789static unsigned long int ulongval () { return $2; }
1790#include <stdio.h>
1791#include <stdlib.h>
1792int
1793main ()
1794{
1795
1796 FILE *f = fopen ("conftest.val", "w");
1797 if (! f)
1798 return 1;
1799 if (($2) < 0)
1800 {
1801 long int i = longval ();
1802 if (i != ($2))
1803 return 1;
1804 fprintf (f, "%ld", i);
1805 }
1806 else
1807 {
1808 unsigned long int i = ulongval ();
1809 if (i != ($2))
1810 return 1;
1811 fprintf (f, "%lu", i);
1812 }
1813 /* Do not output a trailing newline, as this causes \r\n confusion
1814 on some platforms. */
1815 return ferror (f) || fclose (f) != 0;
1816
1817 ;
1818 return 0;
1819}
1820_ACEOF
1821if ac_fn_c_try_run "$LINENO"; then :
1822 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1823else
1824 ac_retval=1
1825fi
1826rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1827 conftest.$ac_objext conftest.beam conftest.$ac_ext
1828rm -f conftest.val
1829
1830 fi
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1833
1834} # ac_fn_c_compute_int
1835
1836# ac_fn_c_try_link LINENO
1837# -----------------------
1838# Try to link conftest.$ac_ext, and return whether this succeeded.
1839ac_fn_c_try_link ()
1840{
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext conftest$ac_exeext
1843 if { { ac_try="$ac_link"
1844case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847esac
1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849$as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_link") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1856 fi
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest$ac_exeext && {
1862 test "$cross_compiling" = yes ||
1863 test -x conftest$ac_exeext
1864 }; then :
1865 ac_retval=0
1866else
1867 $as_echo "$as_me: failed program was:" >&5
1868sed 's/^/| /' conftest.$ac_ext >&5
1869
1870 ac_retval=1
1871fi
1872 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1873 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1874 # interfere with the next link command; also delete a directory that is
1875 # left behind by Apple's compiler. We do this before executing the actions.
1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 as_fn_set_status $ac_retval
1879
1880} # ac_fn_c_try_link
1881
1882# ac_fn_c_check_func LINENO FUNC VAR
1883# ----------------------------------
1884# Tests whether FUNC exists, setting the cache variable VAR accordingly
1885ac_fn_c_check_func ()
1886{
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889$as_echo_n "checking for $2... " >&6; }
1890if eval \${$3+:} false; then :
1891 $as_echo_n "(cached) " >&6
1892else
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h. */
1895/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1897#define $2 innocuous_$2
1898
1899/* System header to define __stub macros and hopefully few prototypes,
1900 which can conflict with char $2 (); below.
1901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902 <limits.h> exists even on freestanding compilers. */
1903
1904#ifdef __STDC__
1905# include <limits.h>
1906#else
1907# include <assert.h>
1908#endif
1909
1910#undef $2
1911
1912/* Override any GCC internal prototype to avoid an error.
1913 Use char because int might match the return type of a GCC
1914 builtin and then its argument prototype would still apply. */
1915#ifdef __cplusplus
1916extern "C"
1917#endif
1918char $2 ();
1919/* The GNU C library defines this for functions which it implements
1920 to always fail with ENOSYS. Some functions are actually named
1921 something starting with __ and the normal name is an alias. */
1922#if defined __stub_$2 || defined __stub___$2
1923choke me
1924#endif
1925
1926int
1927main ()
1928{
1929return $2 ();
1930 ;
1931 return 0;
1932}
1933_ACEOF
1934if ac_fn_c_try_link "$LINENO"; then :
1935 eval "$3=yes"
1936else
1937 eval "$3=no"
1938fi
1939rm -f core conftest.err conftest.$ac_objext \
1940 conftest$ac_exeext conftest.$ac_ext
1941fi
1942eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944$as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946
1947} # ac_fn_c_check_func
1948cat >config.log <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00001949This file contains any messages produced by compilers while
1950running configure, to aid debugging if configure makes a mistake.
1951
Pascal Bühlerd7f9f462017-05-24 08:57:35 +02001952It was created by libsrtp2 $as_me 2.2.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04001953generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00001954
1955 $ $0 $@
1956
1957_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001958exec 5>>config.log
Cullen Jennings235513a2005-09-21 22:51:36 +00001959{
1960cat <<_ASUNAME
1961## --------- ##
1962## Platform. ##
1963## --------- ##
1964
1965hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1966uname -m = `(uname -m) 2>/dev/null || echo unknown`
1967uname -r = `(uname -r) 2>/dev/null || echo unknown`
1968uname -s = `(uname -s) 2>/dev/null || echo unknown`
1969uname -v = `(uname -v) 2>/dev/null || echo unknown`
1970
1971/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1972/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1973
1974/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1975/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1976/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
jfigusc7e66e32013-05-08 11:32:55 -04001977/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Cullen Jennings235513a2005-09-21 22:51:36 +00001978/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1979/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1980/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1981
1982_ASUNAME
1983
1984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985for as_dir in $PATH
1986do
1987 IFS=$as_save_IFS
1988 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04001989 $as_echo "PATH: $as_dir"
1990 done
1991IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00001992
1993} >&5
1994
1995cat >&5 <<_ACEOF
1996
1997
1998## ----------- ##
1999## Core tests. ##
2000## ----------- ##
2001
2002_ACEOF
2003
2004
2005# Keep a trace of the command line.
2006# Strip out --no-create and --no-recursion so they do not pile up.
2007# Strip out --silent because we don't want to record it for future runs.
2008# Also quote any args containing shell meta-characters.
2009# Make two passes to allow for proper duplicate-argument suppression.
2010ac_configure_args=
2011ac_configure_args0=
2012ac_configure_args1=
Cullen Jennings235513a2005-09-21 22:51:36 +00002013ac_must_keep_next=false
2014for ac_pass in 1 2
2015do
2016 for ac_arg
2017 do
2018 case $ac_arg in
2019 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2021 | -silent | --silent | --silen | --sile | --sil)
2022 continue ;;
jfigusc7e66e32013-05-08 11:32:55 -04002023 *\'*)
2024 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002025 esac
2026 case $ac_pass in
jfigusc7e66e32013-05-08 11:32:55 -04002027 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002028 2)
jfigusc7e66e32013-05-08 11:32:55 -04002029 as_fn_append ac_configure_args1 " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002030 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00002031 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00002032 else
David McGrewfec49dd2005-09-23 19:34:11 +00002033 case $ac_arg in
2034 *=* | --config-cache | -C | -disable-* | --disable-* \
2035 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2036 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2037 | -with-* | --with-* | -without-* | --without-* | --x)
2038 case "$ac_configure_args0 " in
2039 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2040 esac
2041 ;;
2042 -* ) ac_must_keep_next=true ;;
2043 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00002044 fi
jfigusc7e66e32013-05-08 11:32:55 -04002045 as_fn_append ac_configure_args " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002046 ;;
2047 esac
2048 done
2049done
jfigusc7e66e32013-05-08 11:32:55 -04002050{ ac_configure_args0=; unset ac_configure_args0;}
2051{ ac_configure_args1=; unset ac_configure_args1;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002052
2053# When interrupted or exit'd, cleanup temporary files, and complete
2054# config.log. We remove comments because anyway the quotes in there
2055# would cause problems or look ugly.
jfigusc7e66e32013-05-08 11:32:55 -04002056# WARNING: Use '\'' to represent an apostrophe within the trap.
2057# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Cullen Jennings235513a2005-09-21 22:51:36 +00002058trap 'exit_status=$?
2059 # Save into config.log some information that might help in debugging.
2060 {
2061 echo
2062
jfigusc7e66e32013-05-08 11:32:55 -04002063 $as_echo "## ---------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002064## Cache variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002065## ---------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002066 echo
2067 # The following way of writing the cache mishandles newlines in values,
jfigusc7e66e32013-05-08 11:32:55 -04002068(
2069 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2070 eval ac_val=\$$ac_var
2071 case $ac_val in #(
2072 *${as_nl}*)
2073 case $ac_var in #(
2074 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2075$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2076 esac
2077 case $ac_var in #(
2078 _ | IFS | as_nl) ;; #(
2079 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2080 *) { eval $ac_var=; unset $ac_var;} ;;
2081 esac ;;
2082 esac
2083 done
Cullen Jennings235513a2005-09-21 22:51:36 +00002084 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04002085 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2086 *${as_nl}ac_space=\ *)
Cullen Jennings235513a2005-09-21 22:51:36 +00002087 sed -n \
jfigusc7e66e32013-05-08 11:32:55 -04002088 "s/'\''/'\''\\\\'\'''\''/g;
2089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2090 ;; #(
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002091 *)
jfigusc7e66e32013-05-08 11:32:55 -04002092 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002093 ;;
jfigusc7e66e32013-05-08 11:32:55 -04002094 esac |
2095 sort
2096)
Cullen Jennings235513a2005-09-21 22:51:36 +00002097 echo
2098
jfigusc7e66e32013-05-08 11:32:55 -04002099 $as_echo "## ----------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002100## Output variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002101## ----------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002102 echo
2103 for ac_var in $ac_subst_vars
2104 do
jfigusc7e66e32013-05-08 11:32:55 -04002105 eval ac_val=\$$ac_var
2106 case $ac_val in
2107 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2108 esac
2109 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002110 done | sort
2111 echo
2112
2113 if test -n "$ac_subst_files"; then
jfigusc7e66e32013-05-08 11:32:55 -04002114 $as_echo "## ------------------- ##
2115## File substitutions. ##
2116## ------------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002117 echo
2118 for ac_var in $ac_subst_files
2119 do
jfigusc7e66e32013-05-08 11:32:55 -04002120 eval ac_val=\$$ac_var
2121 case $ac_val in
2122 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2123 esac
2124 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002125 done | sort
2126 echo
2127 fi
2128
2129 if test -s confdefs.h; then
jfigusc7e66e32013-05-08 11:32:55 -04002130 $as_echo "## ----------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002131## confdefs.h. ##
jfigusc7e66e32013-05-08 11:32:55 -04002132## ----------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002133 echo
jfigusc7e66e32013-05-08 11:32:55 -04002134 cat confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002135 echo
2136 fi
2137 test "$ac_signal" != 0 &&
jfigusc7e66e32013-05-08 11:32:55 -04002138 $as_echo "$as_me: caught signal $ac_signal"
2139 $as_echo "$as_me: exit $exit_status"
Cullen Jennings235513a2005-09-21 22:51:36 +00002140 } >&5
jfigusc7e66e32013-05-08 11:32:55 -04002141 rm -f core *.core core.conftest.* &&
2142 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Cullen Jennings235513a2005-09-21 22:51:36 +00002143 exit $exit_status
jfigusc7e66e32013-05-08 11:32:55 -04002144' 0
Cullen Jennings235513a2005-09-21 22:51:36 +00002145for ac_signal in 1 2 13 15; do
jfigusc7e66e32013-05-08 11:32:55 -04002146 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Cullen Jennings235513a2005-09-21 22:51:36 +00002147done
2148ac_signal=0
2149
2150# confdefs.h avoids OS command line length limits that DEFS can exceed.
jfigusc7e66e32013-05-08 11:32:55 -04002151rm -f -r conftest* confdefs.h
2152
2153$as_echo "/* confdefs.h */" > confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002154
2155# Predefined preprocessor variables.
2156
2157cat >>confdefs.h <<_ACEOF
2158#define PACKAGE_NAME "$PACKAGE_NAME"
2159_ACEOF
2160
Cullen Jennings235513a2005-09-21 22:51:36 +00002161cat >>confdefs.h <<_ACEOF
2162#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2163_ACEOF
2164
Cullen Jennings235513a2005-09-21 22:51:36 +00002165cat >>confdefs.h <<_ACEOF
2166#define PACKAGE_VERSION "$PACKAGE_VERSION"
2167_ACEOF
2168
Cullen Jennings235513a2005-09-21 22:51:36 +00002169cat >>confdefs.h <<_ACEOF
2170#define PACKAGE_STRING "$PACKAGE_STRING"
2171_ACEOF
2172
Cullen Jennings235513a2005-09-21 22:51:36 +00002173cat >>confdefs.h <<_ACEOF
2174#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2175_ACEOF
2176
jfigusc7e66e32013-05-08 11:32:55 -04002177cat >>confdefs.h <<_ACEOF
2178#define PACKAGE_URL "$PACKAGE_URL"
2179_ACEOF
2180
Cullen Jennings235513a2005-09-21 22:51:36 +00002181
2182# Let the site file select an alternate cache file if it wants to.
jfigusc7e66e32013-05-08 11:32:55 -04002183# Prefer an explicitly selected file to automatically selected ones.
2184ac_site_file1=NONE
2185ac_site_file2=NONE
2186if test -n "$CONFIG_SITE"; then
2187 # We do not want a PATH search for config.site.
2188 case $CONFIG_SITE in #((
2189 -*) ac_site_file1=./$CONFIG_SITE;;
2190 */*) ac_site_file1=$CONFIG_SITE;;
2191 *) ac_site_file1=./$CONFIG_SITE;;
2192 esac
2193elif test "x$prefix" != xNONE; then
2194 ac_site_file1=$prefix/share/config.site
2195 ac_site_file2=$prefix/etc/config.site
2196else
2197 ac_site_file1=$ac_default_prefix/share/config.site
2198 ac_site_file2=$ac_default_prefix/etc/config.site
Cullen Jennings235513a2005-09-21 22:51:36 +00002199fi
jfigusc7e66e32013-05-08 11:32:55 -04002200for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2201do
2202 test "x$ac_site_file" = xNONE && continue
2203 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2205$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002206 sed 's/^/| /' "$ac_site_file" >&5
jfigusc7e66e32013-05-08 11:32:55 -04002207 . "$ac_site_file" \
2208 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210as_fn_error $? "failed to load site script $ac_site_file
2211See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002212 fi
2213done
2214
2215if test -r "$cache_file"; then
jfigusc7e66e32013-05-08 11:32:55 -04002216 # Some versions of bash will fail to source /dev/null (special files
2217 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2218 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2220$as_echo "$as_me: loading cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002221 case $cache_file in
jfigusc7e66e32013-05-08 11:32:55 -04002222 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2223 *) . "./$cache_file";;
Cullen Jennings235513a2005-09-21 22:51:36 +00002224 esac
2225 fi
2226else
jfigusc7e66e32013-05-08 11:32:55 -04002227 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2228$as_echo "$as_me: creating cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002229 >$cache_file
2230fi
2231
2232# Check that the precious variables saved in the cache have kept the same
2233# value.
2234ac_cache_corrupted=false
jfigusc7e66e32013-05-08 11:32:55 -04002235for ac_var in $ac_precious_vars; do
Cullen Jennings235513a2005-09-21 22:51:36 +00002236 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2237 eval ac_new_set=\$ac_env_${ac_var}_set
jfigusc7e66e32013-05-08 11:32:55 -04002238 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2239 eval ac_new_val=\$ac_env_${ac_var}_value
Cullen Jennings235513a2005-09-21 22:51:36 +00002240 case $ac_old_set,$ac_new_set in
2241 set,)
jfigusc7e66e32013-05-08 11:32:55 -04002242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2243$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 +00002244 ac_cache_corrupted=: ;;
2245 ,set)
jfigusc7e66e32013-05-08 11:32:55 -04002246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2247$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002248 ac_cache_corrupted=: ;;
2249 ,);;
2250 *)
2251 if test "x$ac_old_val" != "x$ac_new_val"; then
jfigusc7e66e32013-05-08 11:32:55 -04002252 # differences in whitespace do not lead to failure.
2253 ac_old_val_w=`echo x $ac_old_val`
2254 ac_new_val_w=`echo x $ac_new_val`
2255 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2257$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2258 ac_cache_corrupted=:
2259 else
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2261$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2262 eval $ac_var=\$ac_old_val
2263 fi
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2265$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2267$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002268 fi;;
2269 esac
2270 # Pass precious variables to config.status.
2271 if test "$ac_new_set" = set; then
2272 case $ac_new_val in
jfigusc7e66e32013-05-08 11:32:55 -04002273 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002274 *) ac_arg=$ac_var=$ac_new_val ;;
2275 esac
2276 case " $ac_configure_args " in
2277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jfigusc7e66e32013-05-08 11:32:55 -04002278 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002279 esac
2280 fi
2281done
2282if $ac_cache_corrupted; then
jfigusc7e66e32013-05-08 11:32:55 -04002283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2286$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2287 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00002288fi
jfigusc7e66e32013-05-08 11:32:55 -04002289## -------------------- ##
2290## Main body of script. ##
2291## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002292
2293ac_ext=c
2294ac_cpp='$CPP $CPPFLAGS'
2295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298
2299
2300
Idar Tollefsen600ad962017-01-26 11:24:51 +01002301EMPTY_CFLAGS="no"
2302if test "x$CFLAGS" = "x"; then
2303 EMPTY_CFLAGS="yes"
David McGrewb67061f2005-09-28 14:23:06 +00002304fi
2305
Cullen Jennings235513a2005-09-21 22:51:36 +00002306ac_ext=c
2307ac_cpp='$CPP $CPPFLAGS'
2308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2310ac_compiler_gnu=$ac_cv_c_compiler_gnu
2311if test -n "$ac_tool_prefix"; then
2312 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2313set dummy ${ac_tool_prefix}gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2315$as_echo_n "checking for $ac_word... " >&6; }
2316if ${ac_cv_prog_CC+:} false; then :
2317 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002318else
2319 if test -n "$CC"; then
2320 ac_cv_prog_CC="$CC" # Let the user override the test.
2321else
2322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323for as_dir in $PATH
2324do
2325 IFS=$as_save_IFS
2326 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002327 for ac_exec_ext in '' $ac_executable_extensions; do
2328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002329 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002331 break 2
2332 fi
2333done
jfigusc7e66e32013-05-08 11:32:55 -04002334 done
2335IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002336
2337fi
2338fi
2339CC=$ac_cv_prog_CC
2340if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2342$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002343else
jfigusc7e66e32013-05-08 11:32:55 -04002344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2345$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002346fi
2347
jfigusc7e66e32013-05-08 11:32:55 -04002348
Cullen Jennings235513a2005-09-21 22:51:36 +00002349fi
2350if test -z "$ac_cv_prog_CC"; then
2351 ac_ct_CC=$CC
2352 # Extract the first word of "gcc", so it can be a program name with args.
2353set dummy gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2355$as_echo_n "checking for $ac_word... " >&6; }
2356if ${ac_cv_prog_ac_ct_CC+:} false; then :
2357 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002358else
2359 if test -n "$ac_ct_CC"; then
2360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2361else
2362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363for as_dir in $PATH
2364do
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002369 ac_cv_prog_ac_ct_CC="gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002371 break 2
2372 fi
2373done
jfigusc7e66e32013-05-08 11:32:55 -04002374 done
2375IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002376
2377fi
2378fi
2379ac_ct_CC=$ac_cv_prog_ac_ct_CC
2380if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2382$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002383else
jfigusc7e66e32013-05-08 11:32:55 -04002384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2385$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002386fi
2387
jfigusc7e66e32013-05-08 11:32:55 -04002388 if test "x$ac_ct_CC" = x; then
2389 CC=""
2390 else
2391 case $cross_compiling:$ac_tool_warned in
2392yes:)
2393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2395ac_tool_warned=yes ;;
2396esac
2397 CC=$ac_ct_CC
2398 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002399else
2400 CC="$ac_cv_prog_CC"
2401fi
2402
2403if test -z "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002404 if test -n "$ac_tool_prefix"; then
2405 # 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 +00002406set dummy ${ac_tool_prefix}cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2408$as_echo_n "checking for $ac_word... " >&6; }
2409if ${ac_cv_prog_CC+:} false; then :
2410 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002411else
2412 if test -n "$CC"; then
2413 ac_cv_prog_CC="$CC" # Let the user override the test.
2414else
2415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416for as_dir in $PATH
2417do
2418 IFS=$as_save_IFS
2419 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002422 ac_cv_prog_CC="${ac_tool_prefix}cc"
jfigusc7e66e32013-05-08 11:32:55 -04002423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002424 break 2
2425 fi
2426done
jfigusc7e66e32013-05-08 11:32:55 -04002427 done
2428IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002429
2430fi
2431fi
2432CC=$ac_cv_prog_CC
2433if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2435$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002436else
jfigusc7e66e32013-05-08 11:32:55 -04002437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2438$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002439fi
2440
jfigusc7e66e32013-05-08 11:32:55 -04002441
Cullen Jennings235513a2005-09-21 22:51:36 +00002442 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002443fi
2444if test -z "$CC"; then
2445 # Extract the first word of "cc", so it can be a program name with args.
2446set dummy cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2448$as_echo_n "checking for $ac_word... " >&6; }
2449if ${ac_cv_prog_CC+:} false; then :
2450 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002451else
2452 if test -n "$CC"; then
2453 ac_cv_prog_CC="$CC" # Let the user override the test.
2454else
2455 ac_prog_rejected=no
2456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457for as_dir in $PATH
2458do
2459 IFS=$as_save_IFS
2460 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002463 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2464 ac_prog_rejected=yes
2465 continue
2466 fi
2467 ac_cv_prog_CC="cc"
jfigusc7e66e32013-05-08 11:32:55 -04002468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002469 break 2
2470 fi
2471done
jfigusc7e66e32013-05-08 11:32:55 -04002472 done
2473IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002474
2475if test $ac_prog_rejected = yes; then
2476 # We found a bogon in the path, so make sure we never use it.
2477 set dummy $ac_cv_prog_CC
2478 shift
2479 if test $# != 0; then
2480 # We chose a different compiler from the bogus one.
2481 # However, it has the same basename, so the bogon will be chosen
2482 # first if we set CC to just the basename; use the full file name.
2483 shift
2484 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2485 fi
2486fi
2487fi
2488fi
2489CC=$ac_cv_prog_CC
2490if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2492$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002493else
jfigusc7e66e32013-05-08 11:32:55 -04002494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002496fi
2497
jfigusc7e66e32013-05-08 11:32:55 -04002498
Cullen Jennings235513a2005-09-21 22:51:36 +00002499fi
2500if test -z "$CC"; then
2501 if test -n "$ac_tool_prefix"; then
jfigusc7e66e32013-05-08 11:32:55 -04002502 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002503 do
2504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2505set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507$as_echo_n "checking for $ac_word... " >&6; }
2508if ${ac_cv_prog_CC+:} false; then :
2509 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002510else
2511 if test -n "$CC"; then
2512 ac_cv_prog_CC="$CC" # Let the user override the test.
2513else
2514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515for as_dir in $PATH
2516do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002521 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002523 break 2
2524 fi
2525done
jfigusc7e66e32013-05-08 11:32:55 -04002526 done
2527IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002528
2529fi
2530fi
2531CC=$ac_cv_prog_CC
2532if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2534$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002535else
jfigusc7e66e32013-05-08 11:32:55 -04002536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002538fi
2539
jfigusc7e66e32013-05-08 11:32:55 -04002540
Cullen Jennings235513a2005-09-21 22:51:36 +00002541 test -n "$CC" && break
2542 done
2543fi
2544if test -z "$CC"; then
2545 ac_ct_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04002546 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002547do
2548 # Extract the first word of "$ac_prog", so it can be a program name with args.
2549set dummy $ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2551$as_echo_n "checking for $ac_word... " >&6; }
2552if ${ac_cv_prog_ac_ct_CC+:} false; then :
2553 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002554else
2555 if test -n "$ac_ct_CC"; then
2556 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2557else
2558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH
2560do
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002565 ac_cv_prog_ac_ct_CC="$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002567 break 2
2568 fi
2569done
jfigusc7e66e32013-05-08 11:32:55 -04002570 done
2571IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002572
2573fi
2574fi
2575ac_ct_CC=$ac_cv_prog_ac_ct_CC
2576if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2578$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002579else
jfigusc7e66e32013-05-08 11:32:55 -04002580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002582fi
2583
jfigusc7e66e32013-05-08 11:32:55 -04002584
Cullen Jennings235513a2005-09-21 22:51:36 +00002585 test -n "$ac_ct_CC" && break
2586done
2587
jfigusc7e66e32013-05-08 11:32:55 -04002588 if test "x$ac_ct_CC" = x; then
2589 CC=""
2590 else
2591 case $cross_compiling:$ac_tool_warned in
2592yes:)
2593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2595ac_tool_warned=yes ;;
2596esac
2597 CC=$ac_ct_CC
2598 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002599fi
2600
2601fi
2602
2603
jfigusc7e66e32013-05-08 11:32:55 -04002604test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606as_fn_error $? "no acceptable C compiler found in \$PATH
2607See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002608
2609# Provide some information about the compiler.
jfigusc7e66e32013-05-08 11:32:55 -04002610$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2611set X $ac_compile
2612ac_compiler=$2
2613for ac_option in --version -v -V -qversion; do
2614 { { ac_try="$ac_compiler $ac_option >&5"
2615case "(($ac_try" in
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2618esac
2619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2620$as_echo "$ac_try_echo"; } >&5
2621 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Cullen Jennings235513a2005-09-21 22:51:36 +00002622 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002623 if test -s conftest.err; then
2624 sed '10a\
2625... rest of stderr output deleted ...
2626 10q' conftest.err >conftest.er1
2627 cat conftest.er1 >&5
2628 fi
2629 rm -f conftest.er1 conftest.err
2630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2631 test $ac_status = 0; }
2632done
Cullen Jennings235513a2005-09-21 22:51:36 +00002633
jfigusc7e66e32013-05-08 11:32:55 -04002634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002635/* end confdefs.h. */
2636
2637int
2638main ()
2639{
2640
2641 ;
2642 return 0;
2643}
2644_ACEOF
2645ac_clean_files_save=$ac_clean_files
jfigusc7e66e32013-05-08 11:32:55 -04002646ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Cullen Jennings235513a2005-09-21 22:51:36 +00002647# Try to create an executable without -o first, disregard a.out.
2648# It will help us diagnose broken compilers, and finding out an intuition
2649# of exeext.
jfigusc7e66e32013-05-08 11:32:55 -04002650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2651$as_echo_n "checking whether the C compiler works... " >&6; }
2652ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002653
jfigusc7e66e32013-05-08 11:32:55 -04002654# The possible output files:
2655ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2656
2657ac_rmfiles=
2658for ac_file in $ac_files
2659do
2660 case $ac_file in
2661 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2662 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2663 esac
2664done
2665rm -f $ac_rmfiles
2666
2667if { { ac_try="$ac_link_default"
2668case "(($ac_try" in
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2671esac
2672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2673$as_echo "$ac_try_echo"; } >&5
2674 (eval "$ac_link_default") 2>&5
2675 ac_status=$?
2676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2677 test $ac_status = 0; }; then :
2678 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2679# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2680# in a Makefile. We should not override ac_cv_exeext if it was cached,
2681# so that the user can short-circuit this test for compilers unknown to
2682# Autoconf.
2683for ac_file in $ac_files ''
Cullen Jennings235513a2005-09-21 22:51:36 +00002684do
2685 test -f "$ac_file" || continue
2686 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00002688 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002689 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00002690 # We found the default executable, but exeext='' is most
2691 # certainly right.
2692 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002693 *.* )
jfigusc7e66e32013-05-08 11:32:55 -04002694 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2695 then :; else
2696 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2697 fi
2698 # We set ac_cv_exeext here because the later test for it is not
2699 # safe: cross compilers may not add the suffix if given an `-o'
2700 # argument, so we may need to know it at that point already.
2701 # Even if this section looks crufty: it has the advantage of
2702 # actually working.
David McGrewfec49dd2005-09-23 19:34:11 +00002703 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002704 * )
David McGrewfec49dd2005-09-23 19:34:11 +00002705 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002706 esac
2707done
jfigusc7e66e32013-05-08 11:32:55 -04002708test "$ac_cv_exeext" = no && ac_cv_exeext=
2709
Cullen Jennings235513a2005-09-21 22:51:36 +00002710else
jfigusc7e66e32013-05-08 11:32:55 -04002711 ac_file=''
2712fi
2713if test -z "$ac_file"; then :
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715$as_echo "no" >&6; }
2716$as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002717sed 's/^/| /' conftest.$ac_ext >&5
2718
jfigusc7e66e32013-05-08 11:32:55 -04002719{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2721as_fn_error 77 "C compiler cannot create executables
2722See \`config.log' for more details" "$LINENO" 5; }
2723else
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2725$as_echo "yes" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002726fi
jfigusc7e66e32013-05-08 11:32:55 -04002727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2728$as_echo_n "checking for C compiler default output file name... " >&6; }
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2730$as_echo "$ac_file" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002731ac_exeext=$ac_cv_exeext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002732
jfigusc7e66e32013-05-08 11:32:55 -04002733rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002734ac_clean_files=$ac_clean_files_save
jfigusc7e66e32013-05-08 11:32:55 -04002735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2736$as_echo_n "checking for suffix of executables... " >&6; }
2737if { { ac_try="$ac_link"
2738case "(($ac_try" in
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2741esac
2742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2743$as_echo "$ac_try_echo"; } >&5
2744 (eval "$ac_link") 2>&5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002745 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2747 test $ac_status = 0; }; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002748 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2749# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2750# work properly (i.e., refer to `conftest.exe'), while it won't with
2751# `rm'.
2752for ac_file in conftest.exe conftest conftest.*; do
2753 test -f "$ac_file" || continue
2754 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002756 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00002757 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002758 * ) break;;
2759 esac
2760done
2761else
jfigusc7e66e32013-05-08 11:32:55 -04002762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2764as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2765See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002766fi
jfigusc7e66e32013-05-08 11:32:55 -04002767rm -f conftest conftest$ac_cv_exeext
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2769$as_echo "$ac_cv_exeext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002770
2771rm -f conftest.$ac_ext
2772EXEEXT=$ac_cv_exeext
2773ac_exeext=$EXEEXT
jfigusc7e66e32013-05-08 11:32:55 -04002774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775/* end confdefs.h. */
2776#include <stdio.h>
2777int
2778main ()
2779{
2780FILE *f = fopen ("conftest.out", "w");
2781 return ferror (f) || fclose (f) != 0;
2782
2783 ;
2784 return 0;
2785}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002786_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002787ac_clean_files="$ac_clean_files conftest.out"
2788# Check that the compiler produces executables we can run. If not, either
2789# the compiler is broken, or we cross compile.
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2791$as_echo_n "checking whether we are cross compiling... " >&6; }
2792if test "$cross_compiling" != yes; then
2793 { { ac_try="$ac_link"
2794case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2797esac
2798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2799$as_echo "$ac_try_echo"; } >&5
2800 (eval "$ac_link") 2>&5
2801 ac_status=$?
2802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2803 test $ac_status = 0; }
2804 if { ac_try='./conftest$ac_cv_exeext'
2805 { { case "(($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_try") 2>&5
2812 ac_status=$?
2813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2814 test $ac_status = 0; }; }; then
2815 cross_compiling=no
2816 else
2817 if test "$cross_compiling" = maybe; then
2818 cross_compiling=yes
2819 else
2820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2822as_fn_error $? "cannot run C compiled programs.
2823If you meant to cross compile, use \`--host'.
2824See \`config.log' for more details" "$LINENO" 5; }
2825 fi
2826 fi
2827fi
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2829$as_echo "$cross_compiling" >&6; }
2830
2831rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2832ac_clean_files=$ac_clean_files_save
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2834$as_echo_n "checking for suffix of object files... " >&6; }
2835if ${ac_cv_objext+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837else
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002839/* end confdefs.h. */
2840
2841int
2842main ()
2843{
2844
2845 ;
2846 return 0;
2847}
2848_ACEOF
2849rm -f conftest.o conftest.obj
jfigusc7e66e32013-05-08 11:32:55 -04002850if { { ac_try="$ac_compile"
2851case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854esac
2855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2856$as_echo "$ac_try_echo"; } >&5
2857 (eval "$ac_compile") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002858 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2860 test $ac_status = 0; }; then :
2861 for ac_file in conftest.o conftest.obj conftest.*; do
2862 test -f "$ac_file" || continue;
Cullen Jennings235513a2005-09-21 22:51:36 +00002863 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002865 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2866 break;;
2867 esac
2868done
2869else
jfigusc7e66e32013-05-08 11:32:55 -04002870 $as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002871sed 's/^/| /' conftest.$ac_ext >&5
2872
jfigusc7e66e32013-05-08 11:32:55 -04002873{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2875as_fn_error $? "cannot compute suffix of object files: cannot compile
2876See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002877fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002878rm -f conftest.$ac_cv_objext conftest.$ac_ext
2879fi
jfigusc7e66e32013-05-08 11:32:55 -04002880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2881$as_echo "$ac_cv_objext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002882OBJEXT=$ac_cv_objext
2883ac_objext=$OBJEXT
jfigusc7e66e32013-05-08 11:32:55 -04002884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2885$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2886if ${ac_cv_c_compiler_gnu+:} false; then :
2887 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002888else
jfigusc7e66e32013-05-08 11:32:55 -04002889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002890/* end confdefs.h. */
2891
2892int
2893main ()
2894{
2895#ifndef __GNUC__
2896 choke me
2897#endif
2898
2899 ;
2900 return 0;
2901}
2902_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002903if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002904 ac_compiler_gnu=yes
2905else
jfigusc7e66e32013-05-08 11:32:55 -04002906 ac_compiler_gnu=no
Cullen Jennings235513a2005-09-21 22:51:36 +00002907fi
jfigusc7e66e32013-05-08 11:32:55 -04002908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002909ac_cv_c_compiler_gnu=$ac_compiler_gnu
2910
2911fi
jfigusc7e66e32013-05-08 11:32:55 -04002912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2913$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2914if test $ac_compiler_gnu = yes; then
2915 GCC=yes
2916else
2917 GCC=
2918fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002919ac_test_CFLAGS=${CFLAGS+set}
2920ac_save_CFLAGS=$CFLAGS
jfigusc7e66e32013-05-08 11:32:55 -04002921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2922$as_echo_n "checking whether $CC accepts -g... " >&6; }
2923if ${ac_cv_prog_cc_g+:} false; then :
2924 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002925else
jfigusc7e66e32013-05-08 11:32:55 -04002926 ac_save_c_werror_flag=$ac_c_werror_flag
2927 ac_c_werror_flag=yes
2928 ac_cv_prog_cc_g=no
2929 CFLAGS="-g"
2930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002931/* end confdefs.h. */
2932
2933int
2934main ()
2935{
2936
2937 ;
2938 return 0;
2939}
2940_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002941if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002942 ac_cv_prog_cc_g=yes
2943else
jfigusc7e66e32013-05-08 11:32:55 -04002944 CFLAGS=""
2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00002947
jfigusc7e66e32013-05-08 11:32:55 -04002948int
2949main ()
2950{
2951
2952 ;
2953 return 0;
2954}
2955_ACEOF
2956if ac_fn_c_try_compile "$LINENO"; then :
2957
2958else
2959 ac_c_werror_flag=$ac_save_c_werror_flag
2960 CFLAGS="-g"
2961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2962/* end confdefs.h. */
2963
2964int
2965main ()
2966{
2967
2968 ;
2969 return 0;
2970}
2971_ACEOF
2972if ac_fn_c_try_compile "$LINENO"; then :
2973 ac_cv_prog_cc_g=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00002974fi
jfigusc7e66e32013-05-08 11:32:55 -04002975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002976fi
jfigusc7e66e32013-05-08 11:32:55 -04002977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978fi
2979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980 ac_c_werror_flag=$ac_save_c_werror_flag
2981fi
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2983$as_echo "$ac_cv_prog_cc_g" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002984if test "$ac_test_CFLAGS" = set; then
2985 CFLAGS=$ac_save_CFLAGS
2986elif test $ac_cv_prog_cc_g = yes; then
2987 if test "$GCC" = yes; then
2988 CFLAGS="-g -O2"
2989 else
2990 CFLAGS="-g"
2991 fi
2992else
2993 if test "$GCC" = yes; then
2994 CFLAGS="-O2"
2995 else
2996 CFLAGS=
2997 fi
2998fi
jfigusc7e66e32013-05-08 11:32:55 -04002999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3000$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3001if ${ac_cv_prog_cc_c89+:} false; then :
3002 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003003else
jfigusc7e66e32013-05-08 11:32:55 -04003004 ac_cv_prog_cc_c89=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003005ac_save_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04003006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003007/* end confdefs.h. */
3008#include <stdarg.h>
3009#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -04003010struct stat;
Cullen Jennings235513a2005-09-21 22:51:36 +00003011/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3012struct buf { int x; };
3013FILE * (*rcsopen) (struct buf *, struct stat *, int);
3014static char *e (p, i)
3015 char **p;
3016 int i;
3017{
3018 return p[i];
3019}
3020static char *f (char * (*g) (char **, int), char **p, ...)
3021{
3022 char *s;
3023 va_list v;
3024 va_start (v,p);
3025 s = g (p, va_arg (v,int));
3026 va_end (v);
3027 return s;
3028}
David McGrewfec49dd2005-09-23 19:34:11 +00003029
3030/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3031 function prototypes and stuff, but not '\xHH' hex character constants.
3032 These don't provoke an error unfortunately, instead are silently treated
jfigusc7e66e32013-05-08 11:32:55 -04003033 as 'x'. The following induces an error, until -std is added to get
David McGrewfec49dd2005-09-23 19:34:11 +00003034 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3035 array size at least. It's necessary to write '\x00'==0 to get something
jfigusc7e66e32013-05-08 11:32:55 -04003036 that's true only with -std. */
David McGrewfec49dd2005-09-23 19:34:11 +00003037int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3038
jfigusc7e66e32013-05-08 11:32:55 -04003039/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3040 inside strings and character constants. */
3041#define FOO(x) 'x'
3042int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3043
Cullen Jennings235513a2005-09-21 22:51:36 +00003044int test (int i, double x);
3045struct s1 {int (*f) (int a);};
3046struct s2 {int (*f) (double a);};
3047int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3048int argc;
3049char **argv;
3050int
3051main ()
3052{
3053return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3054 ;
3055 return 0;
3056}
3057_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003058for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3059 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Cullen Jennings235513a2005-09-21 22:51:36 +00003060do
3061 CC="$ac_save_CC $ac_arg"
jfigusc7e66e32013-05-08 11:32:55 -04003062 if ac_fn_c_try_compile "$LINENO"; then :
3063 ac_cv_prog_cc_c89=$ac_arg
Cullen Jennings235513a2005-09-21 22:51:36 +00003064fi
jfigusc7e66e32013-05-08 11:32:55 -04003065rm -f core conftest.err conftest.$ac_objext
3066 test "x$ac_cv_prog_cc_c89" != "xno" && break
Cullen Jennings235513a2005-09-21 22:51:36 +00003067done
jfigusc7e66e32013-05-08 11:32:55 -04003068rm -f conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003069CC=$ac_save_CC
3070
3071fi
jfigusc7e66e32013-05-08 11:32:55 -04003072# AC_CACHE_VAL
3073case "x$ac_cv_prog_cc_c89" in
3074 x)
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3076$as_echo "none needed" >&6; } ;;
3077 xno)
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3079$as_echo "unsupported" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003080 *)
jfigusc7e66e32013-05-08 11:32:55 -04003081 CC="$CC $ac_cv_prog_cc_c89"
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3083$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003084esac
jfigusc7e66e32013-05-08 11:32:55 -04003085if test "x$ac_cv_prog_cc_c89" != xno; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003086
3087fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003088
Cullen Jennings235513a2005-09-21 22:51:36 +00003089ac_ext=c
3090ac_cpp='$CPP $CPPFLAGS'
3091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094
Idar Tollefsencb771f72017-05-03 13:20:08 +02003095ac_ext=c
3096ac_cpp='$CPP $CPPFLAGS'
3097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3101$as_echo_n "checking how to run the C preprocessor... " >&6; }
3102# On Suns, sometimes $CPP names a directory.
3103if test -n "$CPP" && test -d "$CPP"; then
3104 CPP=
3105fi
3106if test -z "$CPP"; then
3107 if ${ac_cv_prog_CPP+:} false; then :
3108 $as_echo_n "(cached) " >&6
3109else
3110 # Double quotes because CPP needs to be expanded
3111 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3112 do
3113 ac_preproc_ok=false
3114for ac_c_preproc_warn_flag in '' yes
3115do
3116 # Use a header file that comes with gcc, so configuring glibc
3117 # with a fresh cross-compiler works.
3118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3119 # <limits.h> exists even on freestanding compilers.
3120 # On the NeXT, cc -E runs the code through the compiler's parser,
3121 # not just through cpp. "Syntax error" is here to catch this case.
3122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3123/* end confdefs.h. */
3124#ifdef __STDC__
3125# include <limits.h>
3126#else
3127# include <assert.h>
3128#endif
3129 Syntax error
3130_ACEOF
3131if ac_fn_c_try_cpp "$LINENO"; then :
3132
3133else
3134 # Broken: fails on valid input.
3135continue
3136fi
3137rm -f conftest.err conftest.i conftest.$ac_ext
3138
3139 # OK, works on sane cases. Now check whether nonexistent headers
3140 # can be detected and how.
3141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142/* end confdefs.h. */
3143#include <ac_nonexistent.h>
3144_ACEOF
3145if ac_fn_c_try_cpp "$LINENO"; then :
3146 # Broken: success on invalid input.
3147continue
3148else
3149 # Passes both tests.
3150ac_preproc_ok=:
3151break
3152fi
3153rm -f conftest.err conftest.i conftest.$ac_ext
3154
3155done
3156# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3157rm -f conftest.i conftest.err conftest.$ac_ext
3158if $ac_preproc_ok; then :
3159 break
3160fi
3161
3162 done
3163 ac_cv_prog_CPP=$CPP
3164
3165fi
3166 CPP=$ac_cv_prog_CPP
3167else
3168 ac_cv_prog_CPP=$CPP
3169fi
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3171$as_echo "$CPP" >&6; }
3172ac_preproc_ok=false
3173for ac_c_preproc_warn_flag in '' yes
3174do
3175 # Use a header file that comes with gcc, so configuring glibc
3176 # with a fresh cross-compiler works.
3177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3178 # <limits.h> exists even on freestanding compilers.
3179 # On the NeXT, cc -E runs the code through the compiler's parser,
3180 # not just through cpp. "Syntax error" is here to catch this case.
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182/* end confdefs.h. */
3183#ifdef __STDC__
3184# include <limits.h>
3185#else
3186# include <assert.h>
3187#endif
3188 Syntax error
3189_ACEOF
3190if ac_fn_c_try_cpp "$LINENO"; then :
3191
3192else
3193 # Broken: fails on valid input.
3194continue
3195fi
3196rm -f conftest.err conftest.i conftest.$ac_ext
3197
3198 # OK, works on sane cases. Now check whether nonexistent headers
3199 # can be detected and how.
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201/* end confdefs.h. */
3202#include <ac_nonexistent.h>
3203_ACEOF
3204if ac_fn_c_try_cpp "$LINENO"; then :
3205 # Broken: success on invalid input.
3206continue
3207else
3208 # Passes both tests.
3209ac_preproc_ok=:
3210break
3211fi
3212rm -f conftest.err conftest.i conftest.$ac_ext
3213
3214done
3215# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3216rm -f conftest.i conftest.err conftest.$ac_ext
3217if $ac_preproc_ok; then :
3218
3219else
3220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3222as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3223See \`config.log' for more details" "$LINENO" 5; }
3224fi
3225
3226ac_ext=c
3227ac_cpp='$CPP $CPPFLAGS'
3228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231
3232
Martin Meszaros3edfada2017-11-01 10:55:33 +01003233ac_aux_dir=
3234for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3235 if test -f "$ac_dir/install-sh"; then
3236 ac_aux_dir=$ac_dir
3237 ac_install_sh="$ac_aux_dir/install-sh -c"
3238 break
3239 elif test -f "$ac_dir/install.sh"; then
3240 ac_aux_dir=$ac_dir
3241 ac_install_sh="$ac_aux_dir/install.sh -c"
3242 break
3243 elif test -f "$ac_dir/shtool"; then
3244 ac_aux_dir=$ac_dir
3245 ac_install_sh="$ac_aux_dir/shtool install -c"
3246 break
3247 fi
3248done
3249if test -z "$ac_aux_dir"; then
3250 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3251fi
3252
3253# These three variables are undocumented and unsupported,
3254# and are intended to be withdrawn in a future Autoconf release.
3255# They can cause serious problems if a builder's source tree is in a directory
3256# whose full name contains unusual characters.
3257ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3258ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3259ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3260
3261
3262# Expand $ac_aux_dir to an absolute path.
3263am_aux_dir=`cd "$ac_aux_dir" && pwd`
Idar Tollefsencb771f72017-05-03 13:20:08 +02003264
jfigus1ce6a742015-04-06 08:54:01 -04003265
3266if test -n "$ac_tool_prefix"; then
3267 for ac_prog in ar lib "link -lib"
3268 do
3269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3270set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272$as_echo_n "checking for $ac_word... " >&6; }
3273if ${ac_cv_prog_AR+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275else
3276 if test -n "$AR"; then
3277 ac_cv_prog_AR="$AR" # Let the user override the test.
3278else
3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280for as_dir in $PATH
3281do
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3286 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 break 2
3289 fi
3290done
3291 done
3292IFS=$as_save_IFS
3293
3294fi
3295fi
3296AR=$ac_cv_prog_AR
3297if test -n "$AR"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3299$as_echo "$AR" >&6; }
3300else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302$as_echo "no" >&6; }
3303fi
3304
3305
3306 test -n "$AR" && break
3307 done
3308fi
3309if test -z "$AR"; then
3310 ac_ct_AR=$AR
3311 for ac_prog in ar lib "link -lib"
3312do
3313 # Extract the first word of "$ac_prog", so it can be a program name with args.
3314set dummy $ac_prog; ac_word=$2
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316$as_echo_n "checking for $ac_word... " >&6; }
3317if ${ac_cv_prog_ac_ct_AR+:} false; then :
3318 $as_echo_n "(cached) " >&6
3319else
3320 if test -n "$ac_ct_AR"; then
3321 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3322else
3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324for as_dir in $PATH
3325do
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_ac_ct_AR="$ac_prog"
3331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3333 fi
3334done
3335 done
3336IFS=$as_save_IFS
3337
3338fi
3339fi
3340ac_ct_AR=$ac_cv_prog_ac_ct_AR
3341if test -n "$ac_ct_AR"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3343$as_echo "$ac_ct_AR" >&6; }
3344else
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346$as_echo "no" >&6; }
3347fi
3348
3349
3350 test -n "$ac_ct_AR" && break
3351done
3352
3353 if test "x$ac_ct_AR" = x; then
3354 AR="false"
3355 else
3356 case $cross_compiling:$ac_tool_warned in
3357yes:)
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3360ac_tool_warned=yes ;;
3361esac
3362 AR=$ac_ct_AR
3363 fi
3364fi
3365
3366: ${AR=ar}
3367
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3369$as_echo_n "checking the archiver ($AR) interface... " >&6; }
3370if ${am_cv_ar_interface+:} false; then :
3371 $as_echo_n "(cached) " >&6
3372else
3373 ac_ext=c
3374ac_cpp='$CPP $CPPFLAGS'
3375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377ac_compiler_gnu=$ac_cv_c_compiler_gnu
3378
3379 am_cv_ar_interface=ar
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381/* end confdefs.h. */
3382int some_variable = 0;
3383_ACEOF
3384if ac_fn_c_try_compile "$LINENO"; then :
3385 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3387 (eval $am_ar_try) 2>&5
3388 ac_status=$?
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }
3391 if test "$ac_status" -eq 0; then
3392 am_cv_ar_interface=ar
3393 else
3394 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3396 (eval $am_ar_try) 2>&5
3397 ac_status=$?
3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }
3400 if test "$ac_status" -eq 0; then
3401 am_cv_ar_interface=lib
3402 else
3403 am_cv_ar_interface=unknown
3404 fi
3405 fi
3406 rm -f conftest.lib libconftest.a
3407
3408fi
3409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 ac_ext=c
3411ac_cpp='$CPP $CPPFLAGS'
3412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415
3416fi
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3418$as_echo "$am_cv_ar_interface" >&6; }
3419
3420case $am_cv_ar_interface in
3421ar)
3422 ;;
3423lib)
3424 # Microsoft lib, so override with the ar-lib wrapper script.
3425 # FIXME: It is wrong to rewrite AR.
3426 # But if we don't then we get into trouble of one sort or another.
3427 # A longer-term fix would be to have automake use am__AR in this case,
3428 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3429 # similar.
3430 AR="$am_aux_dir/ar-lib $AR"
3431 ;;
3432unknown)
3433 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3434 ;;
3435esac
3436
3437if test -n "$ac_tool_prefix"; then
3438 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3439set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441$as_echo_n "checking for $ac_word... " >&6; }
3442if ${ac_cv_prog_RANLIB+:} false; then :
3443 $as_echo_n "(cached) " >&6
3444else
3445 if test -n "$RANLIB"; then
3446 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3447else
3448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449for as_dir in $PATH
3450do
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3455 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 break 2
3458 fi
3459done
3460 done
3461IFS=$as_save_IFS
3462
3463fi
3464fi
3465RANLIB=$ac_cv_prog_RANLIB
3466if test -n "$RANLIB"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3468$as_echo "$RANLIB" >&6; }
3469else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471$as_echo "no" >&6; }
3472fi
3473
3474
3475fi
3476if test -z "$ac_cv_prog_RANLIB"; then
3477 ac_ct_RANLIB=$RANLIB
3478 # Extract the first word of "ranlib", so it can be a program name with args.
3479set dummy ranlib; ac_word=$2
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481$as_echo_n "checking for $ac_word... " >&6; }
3482if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484else
3485 if test -n "$ac_ct_RANLIB"; then
3486 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3487else
3488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489for as_dir in $PATH
3490do
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495 ac_cv_prog_ac_ct_RANLIB="ranlib"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 break 2
3498 fi
3499done
3500 done
3501IFS=$as_save_IFS
3502
3503fi
3504fi
3505ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3506if test -n "$ac_ct_RANLIB"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3508$as_echo "$ac_ct_RANLIB" >&6; }
3509else
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511$as_echo "no" >&6; }
3512fi
3513
3514 if test "x$ac_ct_RANLIB" = x; then
3515 RANLIB=":"
3516 else
3517 case $cross_compiling:$ac_tool_warned in
3518yes:)
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3521ac_tool_warned=yes ;;
3522esac
3523 RANLIB=$ac_ct_RANLIB
3524 fi
3525else
3526 RANLIB="$ac_cv_prog_RANLIB"
3527fi
3528
David McGrewb67061f2005-09-28 14:23:06 +00003529# Find a good install program. We prefer a C program (faster),
3530# so one script is as good as another. But avoid the broken or
3531# incompatible versions:
3532# SysV /etc/install, /usr/sbin/install
3533# SunOS /usr/etc/install
3534# IRIX /sbin/install
3535# AIX /bin/install
3536# AmigaOS /C/install, which installs bootblocks on floppy discs
3537# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3538# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3539# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3540# OS/2's system install, which has a completely different semantic
3541# ./install, which can be erroneously created by make from ./install.sh.
jfigusc7e66e32013-05-08 11:32:55 -04003542# Reject install programs that cannot install multiple files.
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3544$as_echo_n "checking for a BSD-compatible install... " >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00003545if test -z "$INSTALL"; then
jfigusc7e66e32013-05-08 11:32:55 -04003546if ${ac_cv_path_install+:} false; then :
3547 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003548else
David McGrewb67061f2005-09-28 14:23:06 +00003549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550for as_dir in $PATH
3551do
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04003554 # Account for people who put trailing slashes in PATH elements.
3555case $as_dir/ in #((
3556 ./ | .// | /[cC]/* | \
David McGrewb67061f2005-09-28 14:23:06 +00003557 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jfigusc7e66e32013-05-08 11:32:55 -04003558 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
David McGrewb67061f2005-09-28 14:23:06 +00003559 /usr/ucb/* ) ;;
3560 *)
3561 # OSF1 and SCO ODT 3.0 have their own names for install.
3562 # Don't use installbsd from OSF since it installs stuff as root
3563 # by default.
3564 for ac_prog in ginstall scoinst install; do
3565 for ac_exec_ext in '' $ac_executable_extensions; do
jfigusc7e66e32013-05-08 11:32:55 -04003566 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
David McGrewb67061f2005-09-28 14:23:06 +00003567 if test $ac_prog = install &&
3568 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3569 # AIX install. It has an incompatible calling convention.
3570 :
3571 elif test $ac_prog = install &&
3572 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3573 # program-specific install script used by HP pwplus--don't use.
3574 :
3575 else
jfigusc7e66e32013-05-08 11:32:55 -04003576 rm -rf conftest.one conftest.two conftest.dir
3577 echo one > conftest.one
3578 echo two > conftest.two
3579 mkdir conftest.dir
3580 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3581 test -s conftest.one && test -s conftest.two &&
3582 test -s conftest.dir/conftest.one &&
3583 test -s conftest.dir/conftest.two
3584 then
3585 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3586 break 3
3587 fi
David McGrewb67061f2005-09-28 14:23:06 +00003588 fi
3589 fi
3590 done
3591 done
3592 ;;
3593esac
Cullen Jennings235513a2005-09-21 22:51:36 +00003594
jfigusc7e66e32013-05-08 11:32:55 -04003595 done
3596IFS=$as_save_IFS
3597
3598rm -rf conftest.one conftest.two conftest.dir
Cullen Jennings235513a2005-09-21 22:51:36 +00003599
3600fi
David McGrewb67061f2005-09-28 14:23:06 +00003601 if test "${ac_cv_path_install+set}" = set; then
3602 INSTALL=$ac_cv_path_install
3603 else
jfigusc7e66e32013-05-08 11:32:55 -04003604 # As a last resort, use the slow shell script. Don't cache a
3605 # value for INSTALL within a source directory, because that will
David McGrewb67061f2005-09-28 14:23:06 +00003606 # break other packages using the cache if that directory is
jfigusc7e66e32013-05-08 11:32:55 -04003607 # removed, or if the value is a relative name.
David McGrewb67061f2005-09-28 14:23:06 +00003608 INSTALL=$ac_install_sh
3609 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003610fi
jfigusc7e66e32013-05-08 11:32:55 -04003611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3612$as_echo "$INSTALL" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003613
David McGrewb67061f2005-09-28 14:23:06 +00003614# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3615# It thinks the first close brace ends the variable substitution.
3616test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00003617
David McGrewb67061f2005-09-28 14:23:06 +00003618test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3619
3620test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00003621
Idar Tollefsen600ad962017-01-26 11:24:51 +01003622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3623$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3624if ${ac_cv_path_SED+:} false; then :
3625 $as_echo_n "(cached) " >&6
3626else
3627 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3628 for ac_i in 1 2 3 4 5 6 7; do
3629 ac_script="$ac_script$as_nl$ac_script"
3630 done
3631 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3632 { ac_script=; unset ac_script;}
3633 if test -z "$SED"; then
3634 ac_path_SED_found=false
3635 # Loop through the user's path and test for each of PROGNAME-LIST
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637for as_dir in $PATH
3638do
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_prog in sed gsed; do
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3644 as_fn_executable_p "$ac_path_SED" || continue
3645# Check for GNU ac_path_SED and select it if it is found.
3646 # Check for GNU $ac_path_SED
3647case `"$ac_path_SED" --version 2>&1` in
3648*GNU*)
3649 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3650*)
3651 ac_count=0
3652 $as_echo_n 0123456789 >"conftest.in"
3653 while :
3654 do
3655 cat "conftest.in" "conftest.in" >"conftest.tmp"
3656 mv "conftest.tmp" "conftest.in"
3657 cp "conftest.in" "conftest.nl"
3658 $as_echo '' >> "conftest.nl"
3659 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3661 as_fn_arith $ac_count + 1 && ac_count=$as_val
3662 if test $ac_count -gt ${ac_path_SED_max-0}; then
3663 # Best one so far, save it but keep looking for a better one
3664 ac_cv_path_SED="$ac_path_SED"
3665 ac_path_SED_max=$ac_count
3666 fi
3667 # 10*(2^10) chars as input seems more than enough
3668 test $ac_count -gt 10 && break
3669 done
3670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3671esac
3672
3673 $ac_path_SED_found && break 3
3674 done
3675 done
3676 done
3677IFS=$as_save_IFS
3678 if test -z "$ac_cv_path_SED"; then
3679 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3680 fi
3681else
3682 ac_cv_path_SED=$SED
3683fi
3684
3685fi
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3687$as_echo "$ac_cv_path_SED" >&6; }
3688 SED="$ac_cv_path_SED"
3689 rm -f conftest.sed
3690
Cullen Jennings235513a2005-09-21 22:51:36 +00003691
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003692
jfigusc7e66e32013-05-08 11:32:55 -04003693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3694$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3695if ${ac_cv_path_GREP+:} false; then :
3696 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003697else
jfigusc7e66e32013-05-08 11:32:55 -04003698 if test -z "$GREP"; then
3699 ac_path_GREP_found=false
3700 # Loop through the user's path and test for each of PROGNAME-LIST
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3703do
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for ac_prog in grep ggrep; do
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3709 as_fn_executable_p "$ac_path_GREP" || continue
3710# Check for GNU ac_path_GREP and select it if it is found.
3711 # Check for GNU $ac_path_GREP
3712case `"$ac_path_GREP" --version 2>&1` in
3713*GNU*)
3714 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3715*)
3716 ac_count=0
3717 $as_echo_n 0123456789 >"conftest.in"
3718 while :
3719 do
3720 cat "conftest.in" "conftest.in" >"conftest.tmp"
3721 mv "conftest.tmp" "conftest.in"
3722 cp "conftest.in" "conftest.nl"
3723 $as_echo 'GREP' >> "conftest.nl"
3724 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3725 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3726 as_fn_arith $ac_count + 1 && ac_count=$as_val
3727 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3728 # Best one so far, save it but keep looking for a better one
3729 ac_cv_path_GREP="$ac_path_GREP"
3730 ac_path_GREP_max=$ac_count
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003731 fi
jfigusc7e66e32013-05-08 11:32:55 -04003732 # 10*(2^10) chars as input seems more than enough
3733 test $ac_count -gt 10 && break
3734 done
3735 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3736esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003737
jfigusc7e66e32013-05-08 11:32:55 -04003738 $ac_path_GREP_found && break 3
3739 done
3740 done
3741 done
3742IFS=$as_save_IFS
3743 if test -z "$ac_cv_path_GREP"; then
3744 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3745 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003746else
jfigusc7e66e32013-05-08 11:32:55 -04003747 ac_cv_path_GREP=$GREP
3748fi
3749
3750fi
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3752$as_echo "$ac_cv_path_GREP" >&6; }
3753 GREP="$ac_cv_path_GREP"
3754
3755
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3757$as_echo_n "checking for egrep... " >&6; }
3758if ${ac_cv_path_EGREP+:} false; then :
3759 $as_echo_n "(cached) " >&6
3760else
3761 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3762 then ac_cv_path_EGREP="$GREP -E"
3763 else
3764 if test -z "$EGREP"; then
3765 ac_path_EGREP_found=false
3766 # Loop through the user's path and test for each of PROGNAME-LIST
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_prog in egrep; do
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3775 as_fn_executable_p "$ac_path_EGREP" || continue
3776# Check for GNU ac_path_EGREP and select it if it is found.
3777 # Check for GNU $ac_path_EGREP
3778case `"$ac_path_EGREP" --version 2>&1` in
3779*GNU*)
3780 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3781*)
3782 ac_count=0
3783 $as_echo_n 0123456789 >"conftest.in"
3784 while :
3785 do
3786 cat "conftest.in" "conftest.in" >"conftest.tmp"
3787 mv "conftest.tmp" "conftest.in"
3788 cp "conftest.in" "conftest.nl"
3789 $as_echo 'EGREP' >> "conftest.nl"
3790 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3791 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3792 as_fn_arith $ac_count + 1 && ac_count=$as_val
3793 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3794 # Best one so far, save it but keep looking for a better one
3795 ac_cv_path_EGREP="$ac_path_EGREP"
3796 ac_path_EGREP_max=$ac_count
3797 fi
3798 # 10*(2^10) chars as input seems more than enough
3799 test $ac_count -gt 10 && break
3800 done
3801 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3802esac
3803
3804 $ac_path_EGREP_found && break 3
3805 done
3806 done
3807 done
3808IFS=$as_save_IFS
3809 if test -z "$ac_cv_path_EGREP"; then
3810 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3811 fi
3812else
3813 ac_cv_path_EGREP=$EGREP
3814fi
3815
3816 fi
3817fi
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3819$as_echo "$ac_cv_path_EGREP" >&6; }
3820 EGREP="$ac_cv_path_EGREP"
3821
3822
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3824$as_echo_n "checking for ANSI C header files... " >&6; }
3825if ${ac_cv_header_stdc+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827else
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003829/* end confdefs.h. */
3830#include <stdlib.h>
3831#include <stdarg.h>
3832#include <string.h>
3833#include <float.h>
3834
3835int
3836main ()
3837{
3838
3839 ;
3840 return 0;
3841}
3842_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003843if ac_fn_c_try_compile "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003844 ac_cv_header_stdc=yes
3845else
jfigusc7e66e32013-05-08 11:32:55 -04003846 ac_cv_header_stdc=no
jfigusa14b5a02013-03-29 12:24:12 -04003847fi
jfigusc7e66e32013-05-08 11:32:55 -04003848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003849
3850if test $ac_cv_header_stdc = yes; then
3851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003853/* end confdefs.h. */
3854#include <string.h>
3855
3856_ACEOF
3857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003858 $EGREP "memchr" >/dev/null 2>&1; then :
3859
jfigusa14b5a02013-03-29 12:24:12 -04003860else
3861 ac_cv_header_stdc=no
3862fi
3863rm -f conftest*
3864
3865fi
3866
3867if test $ac_cv_header_stdc = yes; then
3868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003870/* end confdefs.h. */
3871#include <stdlib.h>
3872
3873_ACEOF
3874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003875 $EGREP "free" >/dev/null 2>&1; then :
3876
jfigusa14b5a02013-03-29 12:24:12 -04003877else
3878 ac_cv_header_stdc=no
3879fi
3880rm -f conftest*
3881
3882fi
3883
3884if test $ac_cv_header_stdc = yes; then
3885 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jfigusc7e66e32013-05-08 11:32:55 -04003886 if test "$cross_compiling" = yes; then :
jfigusa14b5a02013-03-29 12:24:12 -04003887 :
3888else
jfigusc7e66e32013-05-08 11:32:55 -04003889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003890/* end confdefs.h. */
3891#include <ctype.h>
jfigusc7e66e32013-05-08 11:32:55 -04003892#include <stdlib.h>
jfigusa14b5a02013-03-29 12:24:12 -04003893#if ((' ' & 0x0FF) == 0x020)
3894# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3895# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3896#else
3897# define ISLOWER(c) \
3898 (('a' <= (c) && (c) <= 'i') \
3899 || ('j' <= (c) && (c) <= 'r') \
3900 || ('s' <= (c) && (c) <= 'z'))
3901# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3902#endif
3903
3904#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3905int
3906main ()
3907{
3908 int i;
3909 for (i = 0; i < 256; i++)
3910 if (XOR (islower (i), ISLOWER (i))
3911 || toupper (i) != TOUPPER (i))
jfigusc7e66e32013-05-08 11:32:55 -04003912 return 2;
3913 return 0;
jfigusa14b5a02013-03-29 12:24:12 -04003914}
3915_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003916if ac_fn_c_try_run "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003917
jfigusc7e66e32013-05-08 11:32:55 -04003918else
3919 ac_cv_header_stdc=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003920fi
jfigusc7e66e32013-05-08 11:32:55 -04003921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3922 conftest.$ac_objext conftest.beam conftest.$ac_ext
3923fi
3924
jfigusa14b5a02013-03-29 12:24:12 -04003925fi
3926fi
jfigusc7e66e32013-05-08 11:32:55 -04003927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3928$as_echo "$ac_cv_header_stdc" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04003929if test $ac_cv_header_stdc = yes; then
3930
jfigusc7e66e32013-05-08 11:32:55 -04003931$as_echo "#define STDC_HEADERS 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04003932
3933fi
3934
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003935# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003936for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3937 inttypes.h stdint.h unistd.h
jfigusc7e66e32013-05-08 11:32:55 -04003938do :
3939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3940ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3941"
3942if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003943 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003944#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003945_ACEOF
3946
3947fi
3948
3949done
3950
3951
jfigusc7e66e32013-05-08 11:32:55 -04003952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3953$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3954if ${ac_cv_c_bigendian+:} false; then :
3955 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003956else
jfigusc7e66e32013-05-08 11:32:55 -04003957 ac_cv_c_bigendian=unknown
3958 # See if we're dealing with a universal compiler.
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003960/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003961#ifndef __APPLE_CC__
3962 not a universal capable compiler
3963 #endif
3964 typedef int dummy;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003965
jfigusc7e66e32013-05-08 11:32:55 -04003966_ACEOF
3967if ac_fn_c_try_compile "$LINENO"; then :
3968
3969 # Check for potential -arch flags. It is not universal unless
3970 # there are at least two -arch flags with different values.
3971 ac_arch=
3972 ac_prev=
3973 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3974 if test -n "$ac_prev"; then
3975 case $ac_word in
3976 i?86 | x86_64 | ppc | ppc64)
3977 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3978 ac_arch=$ac_word
3979 else
3980 ac_cv_c_bigendian=universal
3981 break
3982 fi
3983 ;;
3984 esac
3985 ac_prev=
3986 elif test "x$ac_word" = "x-arch"; then
3987 ac_prev=arch
3988 fi
3989 done
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003990fi
jfigusc7e66e32013-05-08 11:32:55 -04003991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992 if test $ac_cv_c_bigendian = unknown; then
3993 # See if sys/param.h defines the BYTE_ORDER macro.
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003995/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003996#include <sys/types.h>
3997 #include <sys/param.h>
3998
3999int
4000main ()
4001{
4002#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4003 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4004 && LITTLE_ENDIAN)
4005 bogus endian macros
4006 #endif
4007
4008 ;
4009 return 0;
4010}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004011_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004012if ac_fn_c_try_compile "$LINENO"; then :
4013 # It does; now see whether it defined to BIG_ENDIAN or not.
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004015/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004016#include <sys/types.h>
4017 #include <sys/param.h>
4018
4019int
4020main ()
4021{
4022#if BYTE_ORDER != BIG_ENDIAN
4023 not big endian
4024 #endif
4025
4026 ;
4027 return 0;
4028}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004029_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004030if ac_fn_c_try_compile "$LINENO"; then :
4031 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004032else
jfigusc7e66e32013-05-08 11:32:55 -04004033 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004034fi
jfigusc7e66e32013-05-08 11:32:55 -04004035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036fi
4037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 fi
4039 if test $ac_cv_c_bigendian = unknown; then
4040 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004042/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004043#include <limits.h>
4044
4045int
4046main ()
4047{
4048#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4049 bogus endian macros
4050 #endif
4051
4052 ;
4053 return 0;
4054}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004055_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004056if ac_fn_c_try_compile "$LINENO"; then :
4057 # It does; now see whether it defined to _BIG_ENDIAN or not.
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004059/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004060#include <limits.h>
4061
4062int
4063main ()
4064{
4065#ifndef _BIG_ENDIAN
4066 not big endian
4067 #endif
4068
4069 ;
4070 return 0;
4071}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004072_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004073if ac_fn_c_try_compile "$LINENO"; then :
4074 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004075else
jfigusc7e66e32013-05-08 11:32:55 -04004076 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004077fi
jfigusc7e66e32013-05-08 11:32:55 -04004078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079fi
4080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081 fi
4082 if test $ac_cv_c_bigendian = unknown; then
4083 # Compile a test program.
4084 if test "$cross_compiling" = yes; then :
4085 # Try to guess by grepping values from an object file.
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004087/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004088short int ascii_mm[] =
4089 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4090 short int ascii_ii[] =
4091 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4092 int use_ascii (int i) {
4093 return ascii_mm[i] + ascii_ii[i];
4094 }
4095 short int ebcdic_ii[] =
4096 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4097 short int ebcdic_mm[] =
4098 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4099 int use_ebcdic (int i) {
4100 return ebcdic_mm[i] + ebcdic_ii[i];
4101 }
4102 extern int foo;
4103
4104int
4105main ()
4106{
4107return use_ascii (foo) == use_ebcdic (foo);
4108 ;
4109 return 0;
4110}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004111_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004112if ac_fn_c_try_compile "$LINENO"; then :
4113 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4114 ac_cv_c_bigendian=yes
4115 fi
4116 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4117 if test "$ac_cv_c_bigendian" = unknown; then
4118 ac_cv_c_bigendian=no
4119 else
4120 # finding both strings is unlikely to happen, but who knows?
4121 ac_cv_c_bigendian=unknown
4122 fi
4123 fi
4124fi
4125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004126else
jfigusc7e66e32013-05-08 11:32:55 -04004127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004128/* end confdefs.h. */
4129$ac_includes_default
4130int
4131main ()
4132{
jfigusc7e66e32013-05-08 11:32:55 -04004133
4134 /* Are we little or big endian? From Harbison&Steele. */
4135 union
4136 {
4137 long int l;
4138 char c[sizeof (long int)];
4139 } u;
4140 u.l = 1;
4141 return u.c[sizeof (long int) - 1] == 1;
4142
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004143 ;
4144 return 0;
4145}
4146_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004147if ac_fn_c_try_run "$LINENO"; then :
4148 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004149else
jfigusc7e66e32013-05-08 11:32:55 -04004150 ac_cv_c_bigendian=yes
4151fi
4152rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4153 conftest.$ac_objext conftest.beam conftest.$ac_ext
4154fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004155
jfigusc7e66e32013-05-08 11:32:55 -04004156 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004157fi
jfigusc7e66e32013-05-08 11:32:55 -04004158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4159$as_echo "$ac_cv_c_bigendian" >&6; }
4160 case $ac_cv_c_bigendian in #(
4161 yes)
4162 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4163;; #(
4164 no)
4165 ;; #(
4166 universal)
4167
4168$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4169
4170 ;; #(
4171 *)
4172 as_fn_error $? "unknown endianness
4173 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4174 esac
4175
4176
4177# Make sure we can run config.sub.
4178$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4179 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4180
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4182$as_echo_n "checking build system type... " >&6; }
4183if ${ac_cv_build+:} false; then :
4184 $as_echo_n "(cached) " >&6
4185else
4186 ac_build_alias=$build_alias
4187test "x$ac_build_alias" = x &&
4188 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4189test "x$ac_build_alias" = x &&
4190 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4191ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4192 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4193
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004194fi
jfigusc7e66e32013-05-08 11:32:55 -04004195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4196$as_echo "$ac_cv_build" >&6; }
4197case $ac_cv_build in
4198*-*-*) ;;
4199*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4200esac
4201build=$ac_cv_build
4202ac_save_IFS=$IFS; IFS='-'
4203set x $ac_cv_build
4204shift
4205build_cpu=$1
4206build_vendor=$2
4207shift; shift
4208# Remember, the first character of IFS is used to create $*,
4209# except with old shells:
4210build_os=$*
4211IFS=$ac_save_IFS
4212case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4213
4214
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4216$as_echo_n "checking host system type... " >&6; }
4217if ${ac_cv_host+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219else
4220 if test "x$host_alias" = x; then
4221 ac_cv_host=$ac_cv_build
4222else
4223 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4224 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4225fi
4226
4227fi
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4229$as_echo "$ac_cv_host" >&6; }
4230case $ac_cv_host in
4231*-*-*) ;;
4232*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4233esac
4234host=$ac_cv_host
4235ac_save_IFS=$IFS; IFS='-'
4236set x $ac_cv_host
4237shift
4238host_cpu=$1
4239host_vendor=$2
4240shift; shift
4241# Remember, the first character of IFS is used to create $*,
4242# except with old shells:
4243host_os=$*
4244IFS=$ac_save_IFS
4245case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4246
4247
4248
4249case $host_cpu in
Idar Tollefsen600ad962017-01-26 11:24:51 +01004250 i*86 | x86_64 )
jfigusc7e66e32013-05-08 11:32:55 -04004251
4252$as_echo "#define CPU_CISC 1" >>confdefs.h
4253
4254
4255$as_echo "#define HAVE_X86 1" >>confdefs.h
Idar Tollefsen600ad962017-01-26 11:24:51 +01004256
4257 ;;
4258 * )
jfigusc7e66e32013-05-08 11:32:55 -04004259
4260$as_echo "#define CPU_RISC 1" >>confdefs.h
jfigusfb838412014-12-04 10:15:47 -05004261
Idar Tollefsen600ad962017-01-26 11:24:51 +01004262 ;;
jfigusc7e66e32013-05-08 11:32:55 -04004263esac
4264
4265case $host_os in
Idar Tollefsen600ad962017-01-26 11:24:51 +01004266 *cygwin*|*mingw* )
4267 EXE=.exe
4268 ;;
4269 * )
4270 EXE=""
4271 ;;
jfigusc7e66e32013-05-08 11:32:55 -04004272esac
4273 # define executable suffix; this is needed for `make clean'
4274
Idar Tollefsen600ad962017-01-26 11:24:51 +01004275supported_cflags=""
4276if test "$EMPTY_CFLAGS" = "no"; then
4277 supported_cflags="$CFLAGS"
4278fi
4279
4280WERROR=""
4281for w in -Werror -errwarn; do
4282 if test "x$WERROR" = "x"; then
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $w" >&5
4284$as_echo_n "checking whether ${CC-c} accepts $w... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004285 save_cflags="$CFLAGS"
4286 if test "x$CFLAGS" = "x"; then :
4287 CFLAGS="$w"
4288else
4289 CFLAGS="$CFLAGS $w"
4290fi
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004293int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004294_ACEOF
4295if ac_fn_c_try_compile "$LINENO"; then :
4296 WERROR="$w"
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4298$as_echo "yes" >&6; }
4299else
4300 CFLAGS="$save_cflags"
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302$as_echo "no" >&6; }
4303fi
4304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 fi
4306done
4307
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts -fPIC" >&5
4309$as_echo_n "checking whether ${CC-c} accepts -fPIC... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004310save_cflags="$CFLAGS"
4311if test "x$CFLAGS" = "x"; then :
4312 CFLAGS="-fPIC"
4313else
4314 CFLAGS="$CFLAGS -fPIC"
4315fi
4316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004318int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004319_ACEOF
4320if ac_fn_c_try_compile "$LINENO"; then :
4321 if test "x$supported_cflags" = "x"; then :
4322 supported_cflags="-fPIC"
4323else
4324 supported_cflags="$supported_cflags -fPIC"
4325fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01004326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4327$as_echo "yes" >&6; }
4328else
4329 CFLAGS="$save_cflags"
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331$as_echo "no" >&6; }
4332fi
4333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334
4335if test "$EMPTY_CFLAGS" = "yes"; then
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004336 for f in -Wall -pedantic -Wstrict-prototypes; do
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4338$as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004339 save_cflags="$CFLAGS"
4340 if test "x$CFLAGS" = "x"; then :
4341 CFLAGS="$f"
4342else
4343 CFLAGS="$CFLAGS $f"
4344fi
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004347int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004348_ACEOF
4349if ac_fn_c_try_compile "$LINENO"; then :
4350 if test "x$supported_cflags" = "x"; then :
4351 supported_cflags="$f"
4352else
4353 supported_cflags="$supported_cflags $f"
4354fi
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356$as_echo "yes" >&6; }
4357else
4358 CFLAGS="$save_cflags"
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360$as_echo "no" >&6; }
4361fi
4362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 done
4364
4365 OOPT=""
4366 for f in -O4 -O3; do
4367 if test "x$OOPT" = "x"; then
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4369$as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004370 save_cflags="$CFLAGS"
4371 if test "x$CFLAGS" = "x"; then :
4372 CFLAGS="$f"
4373else
4374 CFLAGS="$CFLAGS $f"
4375fi
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004378int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004379_ACEOF
4380if ac_fn_c_try_compile "$LINENO"; then :
4381 if test "x$supported_cflags" = "x"; then :
4382 supported_cflags="$f"
4383else
4384 supported_cflags="$supported_cflags $f"
4385fi
4386 OOPT="$f"
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4388$as_echo "yes" >&6; }
4389else
4390 CFLAGS="$save_cflags"
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392$as_echo "no" >&6; }
4393fi
4394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395 fi
4396 done
4397
4398 for f in -fexpensive-optimizations -funroll-loops; do
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4400$as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004401 save_cflags="$CFLAGS"
4402 if test "x$CFLAGS" = "x"; then :
4403 CFLAGS="$f"
4404else
4405 CFLAGS="$CFLAGS $f"
4406fi
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004409int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004410_ACEOF
4411if ac_fn_c_try_compile "$LINENO"; then :
4412 if test "x$supported_cflags" = "x"; then :
4413 supported_cflags="$f"
4414else
4415 supported_cflags="$supported_cflags $f"
4416fi
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4418$as_echo "yes" >&6; }
4419else
4420 CFLAGS="$save_cflags"
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422$as_echo "no" >&6; }
4423fi
4424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425 done
4426fi
4427
4428for f in -Wno-language-extension-token; do
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4430$as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004431 save_cflags="$CFLAGS"
4432 testf=$(echo "$f" | $SED 's|-Wno-\(.*\)|-W\1|g')
4433 if test "x$CFLAGS" = "x"; then :
4434 CFLAGS="$testf"
4435else
4436 CFLAGS="$CFLAGS $testf"
4437fi
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004440int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004441_ACEOF
4442if ac_fn_c_try_compile "$LINENO"; then :
4443 if test "x$supported_cflags" = "x"; then :
4444 supported_cflags="$f"
4445else
4446 supported_cflags="$supported_cflags $f"
4447fi
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4449$as_echo "yes" >&6; }
4450else
4451 CFLAGS="$save_cflags"
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453$as_echo "no" >&6; }
4454fi
4455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456done
4457
4458CFLAGS="$supported_cflags"
jfigusc7e66e32013-05-08 11:32:55 -04004459
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4461$as_echo_n "checking for ANSI C header files... " >&6; }
4462if ${ac_cv_header_stdc+:} false; then :
4463 $as_echo_n "(cached) " >&6
4464else
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466/* end confdefs.h. */
4467#include <stdlib.h>
4468#include <stdarg.h>
4469#include <string.h>
4470#include <float.h>
4471
4472int
4473main ()
4474{
4475
4476 ;
4477 return 0;
4478}
4479_ACEOF
4480if ac_fn_c_try_compile "$LINENO"; then :
4481 ac_cv_header_stdc=yes
4482else
4483 ac_cv_header_stdc=no
4484fi
4485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486
4487if test $ac_cv_header_stdc = yes; then
4488 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490/* end confdefs.h. */
4491#include <string.h>
4492
4493_ACEOF
4494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4495 $EGREP "memchr" >/dev/null 2>&1; then :
4496
4497else
4498 ac_cv_header_stdc=no
4499fi
4500rm -f conftest*
4501
4502fi
4503
4504if test $ac_cv_header_stdc = yes; then
4505 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507/* end confdefs.h. */
4508#include <stdlib.h>
4509
4510_ACEOF
4511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4512 $EGREP "free" >/dev/null 2>&1; then :
4513
4514else
4515 ac_cv_header_stdc=no
4516fi
4517rm -f conftest*
4518
4519fi
4520
4521if test $ac_cv_header_stdc = yes; then
4522 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4523 if test "$cross_compiling" = yes; then :
4524 :
4525else
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527/* end confdefs.h. */
4528#include <ctype.h>
4529#include <stdlib.h>
4530#if ((' ' & 0x0FF) == 0x020)
4531# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4532# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4533#else
4534# define ISLOWER(c) \
4535 (('a' <= (c) && (c) <= 'i') \
4536 || ('j' <= (c) && (c) <= 'r') \
4537 || ('s' <= (c) && (c) <= 'z'))
4538# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4539#endif
4540
4541#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4542int
4543main ()
4544{
4545 int i;
4546 for (i = 0; i < 256; i++)
4547 if (XOR (islower (i), ISLOWER (i))
4548 || toupper (i) != TOUPPER (i))
4549 return 2;
4550 return 0;
4551}
4552_ACEOF
4553if ac_fn_c_try_run "$LINENO"; then :
4554
4555else
4556 ac_cv_header_stdc=no
4557fi
4558rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4559 conftest.$ac_objext conftest.beam conftest.$ac_ext
4560fi
4561
4562fi
4563fi
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4565$as_echo "$ac_cv_header_stdc" >&6; }
4566if test $ac_cv_header_stdc = yes; then
4567
4568$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4569
4570fi
4571
Idar Tollefsen600ad962017-01-26 11:24:51 +01004572for 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 -04004573do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01004574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4575ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4576"
4577if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
jfigusc7e66e32013-05-08 11:32:55 -04004578 cat >>confdefs.h <<_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01004579#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
jfigusc7e66e32013-05-08 11:32:55 -04004580_ACEOF
4581
4582fi
4583
4584done
4585
4586
4587for ac_header in sys/socket.h netinet/in.h arpa/inet.h
4588do :
4589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Idar Tollefsen600ad962017-01-26 11:24:51 +01004590ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4591"
jfigusc7e66e32013-05-08 11:32:55 -04004592if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4593 cat >>confdefs.h <<_ACEOF
4594#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4595_ACEOF
4596
4597fi
4598
4599done
4600
4601for ac_header in windows.h
4602do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01004603 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4604"
jfigusc7e66e32013-05-08 11:32:55 -04004605if test "x$ac_cv_header_windows_h" = xyes; then :
4606 cat >>confdefs.h <<_ACEOF
4607#define HAVE_WINDOWS_H 1
4608_ACEOF
4609 for ac_header in winsock2.h
4610do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01004611 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default
4612"
jfigusc7e66e32013-05-08 11:32:55 -04004613if test "x$ac_cv_header_winsock2_h" = xyes; then :
4614 cat >>confdefs.h <<_ACEOF
4615#define HAVE_WINSOCK2_H 1
4616_ACEOF
4617
4618fi
4619
4620done
4621
4622fi
4623
4624done
4625
4626
jfigusc7e66e32013-05-08 11:32:55 -04004627ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
4628if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004629
David McGrewfec49dd2005-09-23 19:34:11 +00004630cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004631#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004632_ACEOF
4633
4634
4635fi
jfigusc7e66e32013-05-08 11:32:55 -04004636ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4637if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004638
4639cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004640#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004641_ACEOF
4642
4643
4644fi
jfigusc7e66e32013-05-08 11:32:55 -04004645ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4646if test "x$ac_cv_type_int16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004647
4648cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004649#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004650_ACEOF
4651
4652
4653fi
jfigusc7e66e32013-05-08 11:32:55 -04004654ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4655if test "x$ac_cv_type_uint16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004656
4657cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004658#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004659_ACEOF
4660
4661
4662fi
jfigusc7e66e32013-05-08 11:32:55 -04004663ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
4664if test "x$ac_cv_type_int32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004665
4666cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004667#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004668_ACEOF
4669
4670
4671fi
jfigusc7e66e32013-05-08 11:32:55 -04004672ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4673if test "x$ac_cv_type_uint32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004674
4675cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004676#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004677_ACEOF
4678
4679
4680fi
jfigusc7e66e32013-05-08 11:32:55 -04004681ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4682if test "x$ac_cv_type_uint64_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004683
4684cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004685#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004686_ACEOF
4687
4688
4689fi
4690
jfigusc7e66e32013-05-08 11:32:55 -04004691# The cast to long int works around a bug in the HP C Compiler
4692# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4693# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4694# This bug is HP SR number 8606223364.
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4696$as_echo_n "checking size of unsigned long... " >&6; }
4697if ${ac_cv_sizeof_unsigned_long+:} false; then :
4698 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004699else
jfigusc7e66e32013-05-08 11:32:55 -04004700 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 +00004701
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004702else
4703 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4706as_fn_error 77 "cannot compute sizeof (unsigned long)
4707See \`config.log' for more details" "$LINENO" 5; }
4708 else
4709 ac_cv_sizeof_unsigned_long=0
4710 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004711fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004712
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004713fi
jfigusc7e66e32013-05-08 11:32:55 -04004714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4715$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004716
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004717
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004718
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004719cat >>confdefs.h <<_ACEOF
4720#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
4721_ACEOF
4722
David McGrewfec49dd2005-09-23 19:34:11 +00004723
jfigusc7e66e32013-05-08 11:32:55 -04004724# The cast to long int works around a bug in the HP C Compiler
4725# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4726# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4727# This bug is HP SR number 8606223364.
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
4729$as_echo_n "checking size of unsigned long long... " >&6; }
4730if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
4731 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00004732else
jfigusc7e66e32013-05-08 11:32:55 -04004733 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 +00004734
David McGrewfec49dd2005-09-23 19:34:11 +00004735else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004736 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4739as_fn_error 77 "cannot compute sizeof (unsigned long long)
4740See \`config.log' for more details" "$LINENO" 5; }
4741 else
4742 ac_cv_sizeof_unsigned_long_long=0
4743 fi
David McGrewfec49dd2005-09-23 19:34:11 +00004744fi
4745
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004746fi
jfigusc7e66e32013-05-08 11:32:55 -04004747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
4748$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004749
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004750
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004751
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004752cat >>confdefs.h <<_ACEOF
4753#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00004754_ACEOF
4755
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004756
Cullen Jennings235513a2005-09-21 22:51:36 +00004757
jfigusc7e66e32013-05-08 11:32:55 -04004758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4759$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4760if ${ac_cv_c_const+:} false; then :
4761 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004762else
jfigusc7e66e32013-05-08 11:32:55 -04004763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004764/* end confdefs.h. */
4765
4766int
4767main ()
4768{
jfigusc7e66e32013-05-08 11:32:55 -04004769
Cullen Jennings235513a2005-09-21 22:51:36 +00004770#ifndef __cplusplus
jfigusc7e66e32013-05-08 11:32:55 -04004771 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00004772 typedef int charset[2];
jfigusc7e66e32013-05-08 11:32:55 -04004773 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00004774 /* SunOS 4.1.1 cc rejects this. */
jfigusc7e66e32013-05-08 11:32:55 -04004775 char const *const *pcpcc;
4776 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00004777 /* NEC SVR4.0.2 mips cc rejects this. */
4778 struct point {int x, y;};
4779 static struct point const zero = {0,0};
4780 /* AIX XL C 1.02.0.0 rejects this.
4781 It does not let you subtract one const X* pointer from another in
4782 an arm of an if-expression whose if-part is not a constant
4783 expression */
4784 const char *g = "string";
jfigusc7e66e32013-05-08 11:32:55 -04004785 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00004786 /* HPUX 7.0 cc rejects these. */
jfigusc7e66e32013-05-08 11:32:55 -04004787 ++pcpcc;
4788 ppc = (char**) pcpcc;
4789 pcpcc = (char const *const *) ppc;
4790 { /* SCO 3.2v4 cc rejects this sort of thing. */
4791 char tx;
4792 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00004793 char const *s = 0 ? (char *) 0 : (char const *) 0;
4794
4795 *t++ = 0;
jfigusc7e66e32013-05-08 11:32:55 -04004796 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004797 }
4798 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4799 int x[] = {25, 17};
4800 const int *foo = &x[0];
4801 ++foo;
4802 }
4803 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4804 typedef const int *iptr;
4805 iptr p = 0;
4806 ++p;
4807 }
jfigusc7e66e32013-05-08 11:32:55 -04004808 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00004809 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusc7e66e32013-05-08 11:32:55 -04004810 struct s { int j; const int *ap[3]; } bx;
4811 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00004812 }
4813 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4814 const int foo = 10;
jfigusc7e66e32013-05-08 11:32:55 -04004815 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004816 }
jfigusc7e66e32013-05-08 11:32:55 -04004817 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00004818#endif
4819
4820 ;
4821 return 0;
4822}
4823_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004824if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004825 ac_cv_c_const=yes
4826else
jfigusc7e66e32013-05-08 11:32:55 -04004827 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00004828fi
jfigusc7e66e32013-05-08 11:32:55 -04004829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004830fi
jfigusc7e66e32013-05-08 11:32:55 -04004831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4832$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004833if test $ac_cv_c_const = no; then
4834
jfigusc7e66e32013-05-08 11:32:55 -04004835$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004836
4837fi
4838
jfigusc7e66e32013-05-08 11:32:55 -04004839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4840$as_echo_n "checking for inline... " >&6; }
4841if ${ac_cv_c_inline+:} false; then :
4842 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004843else
4844 ac_cv_c_inline=no
4845for ac_kw in inline __inline__ __inline; do
jfigusc7e66e32013-05-08 11:32:55 -04004846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004847/* end confdefs.h. */
4848#ifndef __cplusplus
4849typedef int foo_t;
4850static $ac_kw foo_t static_foo () {return 0; }
4851$ac_kw foo_t foo () {return 0; }
4852#endif
4853
4854_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004855if ac_fn_c_try_compile "$LINENO"; then :
4856 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00004857fi
jfigusc7e66e32013-05-08 11:32:55 -04004858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00004860done
4861
4862fi
jfigusc7e66e32013-05-08 11:32:55 -04004863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4864$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00004865
Cullen Jennings235513a2005-09-21 22:51:36 +00004866case $ac_cv_c_inline in
4867 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00004868 *)
4869 case $ac_cv_c_inline in
4870 no) ac_val=;;
4871 *) ac_val=$ac_cv_c_inline;;
4872 esac
4873 cat >>confdefs.h <<_ACEOF
4874#ifndef __cplusplus
4875#define inline $ac_val
4876#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00004877_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00004878 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00004879esac
4880
jfigusc7e66e32013-05-08 11:32:55 -04004881ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4882if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004883
Cullen Jennings235513a2005-09-21 22:51:36 +00004884else
4885
4886cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004887#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00004888_ACEOF
4889
4890fi
4891
4892
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00004893for ac_func in socket inet_aton usleep sigaction
jfigusc7e66e32013-05-08 11:32:55 -04004894do :
4895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4896ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4897if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004898 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004899#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00004900_ACEOF
4901
4902fi
4903done
4904
4905
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004906if test "x$ac_cv_func_socket" = "xno"; then
jfigusc7e66e32013-05-08 11:32:55 -04004907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4908$as_echo_n "checking for socket in -lsocket... " >&6; }
4909if ${ac_cv_lib_socket_socket+:} false; then :
4910 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00004911else
4912 ac_check_lib_save_LIBS=$LIBS
4913LIBS="-lsocket $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04004914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004915/* end confdefs.h. */
4916
jfigusc7e66e32013-05-08 11:32:55 -04004917/* Override any GCC internal prototype to avoid an error.
4918 Use char because int might match the return type of a GCC
4919 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00004920#ifdef __cplusplus
4921extern "C"
4922#endif
David McGrewb67061f2005-09-28 14:23:06 +00004923char socket ();
4924int
4925main ()
4926{
jfigusc7e66e32013-05-08 11:32:55 -04004927return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00004928 ;
4929 return 0;
4930}
4931_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004932if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00004933 ac_cv_lib_socket_socket=yes
4934else
jfigusc7e66e32013-05-08 11:32:55 -04004935 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00004936fi
jfigusc7e66e32013-05-08 11:32:55 -04004937rm -f core conftest.err conftest.$ac_objext \
4938 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004939LIBS=$ac_check_lib_save_LIBS
4940fi
jfigusc7e66e32013-05-08 11:32:55 -04004941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4942$as_echo "$ac_cv_lib_socket_socket" >&6; }
4943if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00004944 cat >>confdefs.h <<_ACEOF
4945#define HAVE_LIBSOCKET 1
4946_ACEOF
4947
4948 LIBS="-lsocket $LIBS"
4949
4950fi
4951
jfigusc7e66e32013-05-08 11:32:55 -04004952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
4953$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004954 SAVELIBS="$LIBS"
4955 LIBS="$LIBS -lwsock32"
jfigusc7e66e32013-05-08 11:32:55 -04004956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004957/* end confdefs.h. */
4958
4959#include <winsock2.h>
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004960int main(void)
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004961{
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004962 int fd = socket(0, 0, 0);
4963 if (fd < 0)
4964 return -1;
4965 else
4966 return 0;
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004967}
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004968
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004969_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004970if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004971 ac_cv_func_socket=yes
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
jfigusc7e66e32013-05-08 11:32:55 -04004973$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004974else
jfigusc7e66e32013-05-08 11:32:55 -04004975 LIBS="$SAVELIBS"
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
jfigusc7e66e32013-05-08 11:32:55 -04004977$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004978fi
jfigusc7e66e32013-05-08 11:32:55 -04004979rm -f core conftest.err conftest.$ac_objext \
4980 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004981fi
David McGrewb67061f2005-09-28 14:23:06 +00004982
Pascal Bühler75918862017-02-19 18:33:50 +01004983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug logging in all modules" >&5
4984$as_echo_n "checking whether to enable debug logging in all modules... " >&6; }
4985# Check whether --enable-debug-logging was given.
4986if test "${enable_debug_logging+set}" = set; then :
4987 enableval=$enable_debug_logging;
David McGrewb67061f2005-09-28 14:23:06 +00004988else
Pascal Bühler75918862017-02-19 18:33:50 +01004989 enable_debug_logging=no
jfigusc7e66e32013-05-08 11:32:55 -04004990fi
4991
Pascal Bühler75918862017-02-19 18:33:50 +01004992if test "$enable_debug_logging" = "yes"; then
David McGrewb67061f2005-09-28 14:23:06 +00004993
Pascal Bühler75918862017-02-19 18:33:50 +01004994$as_echo "#define ENABLE_DEBUG_LOGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004995
4996fi
Pascal Bühler75918862017-02-19 18:33:50 +01004997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_logging" >&5
4998$as_echo "$enable_debug_logging" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004999
Idar Tollefsen600ad962017-01-26 11:24:51 +01005000
5001
5002
5003
5004
5005
5006
5007if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5008 if test -n "$ac_tool_prefix"; then
5009 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5010set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012$as_echo_n "checking for $ac_word... " >&6; }
5013if ${ac_cv_path_PKG_CONFIG+:} false; then :
5014 $as_echo_n "(cached) " >&6
5015else
5016 case $PKG_CONFIG in
5017 [\\/]* | ?:[\\/]*)
5018 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5019 ;;
5020 *)
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022for as_dir in $PATH
5023do
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5031 fi
5032done
5033 done
5034IFS=$as_save_IFS
5035
5036 ;;
5037esac
5038fi
5039PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5040if test -n "$PKG_CONFIG"; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5042$as_echo "$PKG_CONFIG" >&6; }
5043else
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045$as_echo "no" >&6; }
5046fi
5047
5048
5049fi
5050if test -z "$ac_cv_path_PKG_CONFIG"; then
5051 ac_pt_PKG_CONFIG=$PKG_CONFIG
5052 # Extract the first word of "pkg-config", so it can be a program name with args.
5053set dummy pkg-config; ac_word=$2
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055$as_echo_n "checking for $ac_word... " >&6; }
5056if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5057 $as_echo_n "(cached) " >&6
5058else
5059 case $ac_pt_PKG_CONFIG in
5060 [\\/]* | ?:[\\/]*)
5061 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5062 ;;
5063 *)
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065for as_dir in $PATH
5066do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5074 fi
5075done
5076 done
5077IFS=$as_save_IFS
5078
5079 ;;
5080esac
5081fi
5082ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5083if test -n "$ac_pt_PKG_CONFIG"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5085$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5086else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088$as_echo "no" >&6; }
5089fi
5090
5091 if test "x$ac_pt_PKG_CONFIG" = x; then
5092 PKG_CONFIG=""
5093 else
5094 case $cross_compiling:$ac_tool_warned in
5095yes:)
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5098ac_tool_warned=yes ;;
5099esac
5100 PKG_CONFIG=$ac_pt_PKG_CONFIG
5101 fi
5102else
5103 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5104fi
5105
5106fi
5107if test -n "$PKG_CONFIG"; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005108 _pkg_min_version=0.9.0
Idar Tollefsen600ad962017-01-26 11:24:51 +01005109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5110$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5111 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5113$as_echo "yes" >&6; }
5114 else
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116$as_echo "no" >&6; }
5117 PKG_CONFIG=""
5118 fi
5119fi
Pascal Bühlerac872e72017-02-09 14:55:27 +01005120if test "x$PKG_CONFIG" != "x"; then :
5121 PKG_CONFIG="$PKG_CONFIG --static"
5122fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005123
jfigusc7e66e32013-05-08 11:32:55 -04005124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
5125$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
5126# Check whether --enable-openssl was given.
5127if test "${enable_openssl+set}" = set; then :
5128 enableval=$enable_openssl;
5129else
5130 enable_openssl=no
5131fi
jfigusa14b5a02013-03-29 12:24:12 -04005132
jfigus2b486652014-07-24 15:01:41 -04005133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
5134$as_echo "$enable_openssl" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04005135if test "$enable_openssl" = "yes"; then
jfigus038d2cf2015-05-11 14:10:11 -04005136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user specified OpenSSL directory" >&5
5137$as_echo_n "checking for user specified OpenSSL directory... " >&6; }
5138
5139# Check whether --with-openssl-dir was given.
5140if test "${with_openssl_dir+set}" = set; then :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005141 withval=$with_openssl_dir; if test "x$PKG_CONFIG" != "x" && test -f $with_openssl_dir/lib/pkgconfig/libcrypto.pc; then
5142 if test "x$PKG_CONFIG_PATH" = "x"; then
5143 export PKG_CONFIG_PATH="$with_openssl_dir/lib/pkgconfig"
5144 else
5145 export PKG_CONFIG_PATH="$with_openssl_dir/lib/pkgconfig:$PKG_CONFIG_PATH"
5146 fi
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl_dir" >&5
5148$as_echo "$with_openssl_dir" >&6; }
5149 elif test -d $with_openssl_dir/lib; then
5150 CFLAGS="$CFLAGS -I$with_openssl_dir/include"
5151 if test "x$LDFLAGS" = "x"; then
5152 LDFLAGS="-L$with_openssl_dir/lib"
5153 else
5154 LDFLAGS="$LDFLAGS -L$with_openssl_dir/lib"
5155 fi
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl_dir" >&5
5157$as_echo "$with_openssl_dir" >&6; }
5158 else
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
5160$as_echo "invalid" >&6; }
5161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5163as_fn_error $? "Invalid OpenSSL location: $with_openssl_dir
5164See \`config.log' for more details" "$LINENO" 5; }
5165 fi
jfigus038d2cf2015-05-11 14:10:11 -04005166else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168$as_echo "no" >&6; }
jfigus038d2cf2015-05-11 14:10:11 -04005169fi
5170
5171
Idar Tollefsen600ad962017-01-26 11:24:51 +01005172 if test "x$PKG_CONFIG" != "x"; then
Cullen Jenningse1de50f2013-05-22 12:27:28 -06005173
Idar Tollefsen600ad962017-01-26 11:24:51 +01005174pkg_failed=no
Martin Meszaros3edfada2017-11-01 10:55:33 +01005175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcrypto >= 1.0.1" >&5
5176$as_echo_n "checking for libcrypto >= 1.0.1... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01005177
5178if test -n "$crypto_CFLAGS"; then
5179 pkg_cv_crypto_CFLAGS="$crypto_CFLAGS"
5180 elif test -n "$PKG_CONFIG"; then
5181 if test -n "$PKG_CONFIG" && \
Pascal Bühlerac872e72017-02-09 14:55:27 +01005182 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.1\""; } >&5
5183 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.1") 2>&5
Idar Tollefsen600ad962017-01-26 11:24:51 +01005184 ac_status=$?
5185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5186 test $ac_status = 0; }; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005187 pkg_cv_crypto_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1.0.1" 2>/dev/null`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005188 test "x$?" != "x0" && pkg_failed=yes
5189else
5190 pkg_failed=yes
5191fi
5192 else
5193 pkg_failed=untried
5194fi
5195if test -n "$crypto_LIBS"; then
5196 pkg_cv_crypto_LIBS="$crypto_LIBS"
5197 elif test -n "$PKG_CONFIG"; then
5198 if test -n "$PKG_CONFIG" && \
Pascal Bühlerac872e72017-02-09 14:55:27 +01005199 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.1\""; } >&5
5200 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.1") 2>&5
Idar Tollefsen600ad962017-01-26 11:24:51 +01005201 ac_status=$?
5202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5203 test $ac_status = 0; }; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005204 pkg_cv_crypto_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1.0.1" 2>/dev/null`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005205 test "x$?" != "x0" && pkg_failed=yes
5206else
5207 pkg_failed=yes
5208fi
5209 else
5210 pkg_failed=untried
5211fi
5212
5213
5214
5215if test $pkg_failed = yes; then
Martin Meszaros3edfada2017-11-01 10:55:33 +01005216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Idar Tollefsen600ad962017-01-26 11:24:51 +01005217$as_echo "no" >&6; }
5218
5219if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5220 _pkg_short_errors_supported=yes
5221else
5222 _pkg_short_errors_supported=no
5223fi
5224 if test $_pkg_short_errors_supported = yes; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005225 crypto_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1.0.1" 2>&1`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005226 else
Pascal Bühlerac872e72017-02-09 14:55:27 +01005227 crypto_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1.0.1" 2>&1`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005228 fi
5229 # Put the nasty error message in config.log where it belongs
5230 echo "$crypto_PKG_ERRORS" >&5
5231
Pascal Bühlerac872e72017-02-09 14:55:27 +01005232 as_fn_error $? "Package requirements (libcrypto >= 1.0.1) were not met:
Idar Tollefsen600ad962017-01-26 11:24:51 +01005233
5234$crypto_PKG_ERRORS
5235
5236Consider adjusting the PKG_CONFIG_PATH environment variable if you
5237installed software in a non-standard prefix.
5238
5239Alternatively, you may set the environment variables crypto_CFLAGS
5240and crypto_LIBS to avoid the need to call pkg-config.
5241See the pkg-config man page for more details." "$LINENO" 5
5242elif test $pkg_failed = untried; then
Martin Meszaros3edfada2017-11-01 10:55:33 +01005243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Idar Tollefsen600ad962017-01-26 11:24:51 +01005244$as_echo "no" >&6; }
5245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5247as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5248is in your PATH or set the PKG_CONFIG environment variable to the full
5249path to pkg-config.
5250
5251Alternatively, you may set the environment variables crypto_CFLAGS
5252and crypto_LIBS to avoid the need to call pkg-config.
5253See the pkg-config man page for more details.
5254
5255To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5256See \`config.log' for more details" "$LINENO" 5; }
5257else
5258 crypto_CFLAGS=$pkg_cv_crypto_CFLAGS
5259 crypto_LIBS=$pkg_cv_crypto_LIBS
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5261$as_echo "yes" >&6; }
5262 CFLAGS="$CFLAGS $crypto_CFLAGS"
5263 LIBS="$crypto_LIBS $LIBS"
5264fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005265 else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
jfigusb5fad5f2015-02-26 12:25:08 -05005267$as_echo_n "checking for dlopen in -ldl... " >&6; }
5268if ${ac_cv_lib_dl_dlopen+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270else
5271 ac_check_lib_save_LIBS=$LIBS
5272LIBS="-ldl $LIBS"
5273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274/* end confdefs.h. */
5275
5276/* Override any GCC internal prototype to avoid an error.
5277 Use char because int might match the return type of a GCC
5278 builtin and then its argument prototype would still apply. */
5279#ifdef __cplusplus
5280extern "C"
5281#endif
5282char dlopen ();
5283int
5284main ()
5285{
5286return dlopen ();
5287 ;
5288 return 0;
5289}
5290_ACEOF
5291if ac_fn_c_try_link "$LINENO"; then :
5292 ac_cv_lib_dl_dlopen=yes
5293else
5294 ac_cv_lib_dl_dlopen=no
5295fi
5296rm -f core conftest.err conftest.$ac_objext \
5297 conftest$ac_exeext conftest.$ac_ext
5298LIBS=$ac_check_lib_save_LIBS
5299fi
5300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5301$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5302if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5303 cat >>confdefs.h <<_ACEOF
5304#define HAVE_LIBDL 1
5305_ACEOF
5306
5307 LIBS="-ldl $LIBS"
5308
5309else
jfigus13fd6942015-03-02 09:09:13 -05005310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libdl" >&5
5311$as_echo "$as_me: WARNING: can't find libdl" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005312fi
5313
Idar Tollefsen600ad962017-01-26 11:24:51 +01005314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
jfigusb5fad5f2015-02-26 12:25:08 -05005315$as_echo_n "checking for inflate in -lz... " >&6; }
5316if ${ac_cv_lib_z_inflate+:} false; then :
5317 $as_echo_n "(cached) " >&6
5318else
5319 ac_check_lib_save_LIBS=$LIBS
5320LIBS="-lz $LIBS"
5321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322/* end confdefs.h. */
5323
5324/* Override any GCC internal prototype to avoid an error.
5325 Use char because int might match the return type of a GCC
5326 builtin and then its argument prototype would still apply. */
5327#ifdef __cplusplus
5328extern "C"
5329#endif
5330char inflate ();
5331int
5332main ()
5333{
5334return inflate ();
5335 ;
5336 return 0;
5337}
5338_ACEOF
5339if ac_fn_c_try_link "$LINENO"; then :
5340 ac_cv_lib_z_inflate=yes
5341else
5342 ac_cv_lib_z_inflate=no
5343fi
5344rm -f core conftest.err conftest.$ac_objext \
5345 conftest$ac_exeext conftest.$ac_ext
5346LIBS=$ac_check_lib_save_LIBS
5347fi
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
5349$as_echo "$ac_cv_lib_z_inflate" >&6; }
5350if test "x$ac_cv_lib_z_inflate" = xyes; then :
5351 cat >>confdefs.h <<_ACEOF
5352#define HAVE_LIBZ 1
5353_ACEOF
5354
5355 LIBS="-lz $LIBS"
5356
5357else
jfigus13fd6942015-03-02 09:09:13 -05005358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libz" >&5
5359$as_echo "$as_me: WARNING: can't find libz" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005360fi
5361
Idar Tollefsen600ad962017-01-26 11:24:51 +01005362 fi
5363
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_EncryptInit" >&5
5365$as_echo_n "checking for library containing EVP_EncryptInit... " >&6; }
5366if ${ac_cv_search_EVP_EncryptInit+:} false; then :
jfigusc7e66e32013-05-08 11:32:55 -04005367 $as_echo_n "(cached) " >&6
5368else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005369 ac_func_search_save_LIBS=$LIBS
jfigusc7e66e32013-05-08 11:32:55 -04005370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371/* end confdefs.h. */
5372
5373/* Override any GCC internal prototype to avoid an error.
5374 Use char because int might match the return type of a GCC
5375 builtin and then its argument prototype would still apply. */
5376#ifdef __cplusplus
5377extern "C"
5378#endif
5379char EVP_EncryptInit ();
5380int
5381main ()
5382{
5383return EVP_EncryptInit ();
5384 ;
5385 return 0;
5386}
5387_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005388for ac_lib in '' crypto; do
5389 if test -z "$ac_lib"; then
5390 ac_res="none required"
5391 else
5392 ac_res=-l$ac_lib
5393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5394 fi
5395 if ac_fn_c_try_link "$LINENO"; then :
5396 ac_cv_search_EVP_EncryptInit=$ac_res
jfigusc7e66e32013-05-08 11:32:55 -04005397fi
5398rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01005399 conftest$ac_exeext
5400 if ${ac_cv_search_EVP_EncryptInit+:} false; then :
5401 break
jfigusc7e66e32013-05-08 11:32:55 -04005402fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005403done
5404if ${ac_cv_search_EVP_EncryptInit+:} false; then :
jfigusc7e66e32013-05-08 11:32:55 -04005405
Idar Tollefsen600ad962017-01-26 11:24:51 +01005406else
5407 ac_cv_search_EVP_EncryptInit=no
5408fi
5409rm conftest.$ac_ext
5410LIBS=$ac_func_search_save_LIBS
5411fi
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_EncryptInit" >&5
5413$as_echo "$ac_cv_search_EVP_EncryptInit" >&6; }
5414ac_res=$ac_cv_search_EVP_EncryptInit
5415if test "$ac_res" != no; then :
5416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04005417
5418else
5419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01005421as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigus5b22e372013-05-09 09:23:26 -04005422See \`config.log' for more details" "$LINENO" 5; }
5423fi
5424
Idar Tollefsen600ad962017-01-26 11:24:51 +01005425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_aes_128_ctr" >&5
5426$as_echo_n "checking for library containing EVP_aes_128_ctr... " >&6; }
5427if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
jfigus5b22e372013-05-09 09:23:26 -04005428 $as_echo_n "(cached) " >&6
5429else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005430 ac_func_search_save_LIBS=$LIBS
jfigus5b22e372013-05-09 09:23:26 -04005431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432/* end confdefs.h. */
5433
5434/* Override any GCC internal prototype to avoid an error.
5435 Use char because int might match the return type of a GCC
5436 builtin and then its argument prototype would still apply. */
5437#ifdef __cplusplus
5438extern "C"
5439#endif
5440char EVP_aes_128_ctr ();
5441int
5442main ()
5443{
5444return EVP_aes_128_ctr ();
5445 ;
5446 return 0;
5447}
5448_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005449for ac_lib in '' crypto; do
5450 if test -z "$ac_lib"; then
5451 ac_res="none required"
5452 else
5453 ac_res=-l$ac_lib
5454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5455 fi
5456 if ac_fn_c_try_link "$LINENO"; then :
5457 ac_cv_search_EVP_aes_128_ctr=$ac_res
jfigus5b22e372013-05-09 09:23:26 -04005458fi
5459rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01005460 conftest$ac_exeext
5461 if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
5462 break
jfigus5b22e372013-05-09 09:23:26 -04005463fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005464done
5465if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
jfigus5b22e372013-05-09 09:23:26 -04005466
Idar Tollefsen600ad962017-01-26 11:24:51 +01005467else
5468 ac_cv_search_EVP_aes_128_ctr=no
5469fi
5470rm conftest.$ac_ext
5471LIBS=$ac_func_search_save_LIBS
5472fi
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_aes_128_ctr" >&5
5474$as_echo "$ac_cv_search_EVP_aes_128_ctr" >&6; }
5475ac_res=$ac_cv_search_EVP_aes_128_ctr
5476if test "$ac_res" != no; then :
5477 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus5b22e372013-05-09 09:23:26 -04005478
5479else
5480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01005482as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigusc7e66e32013-05-08 11:32:55 -04005483See \`config.log' for more details" "$LINENO" 5; }
5484fi
5485
Idar Tollefsen600ad962017-01-26 11:24:51 +01005486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_aes_128_gcm" >&5
5487$as_echo_n "checking for library containing EVP_aes_128_gcm... " >&6; }
5488if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
jfigus7882dd92013-08-02 16:08:23 -04005489 $as_echo_n "(cached) " >&6
5490else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005491 ac_func_search_save_LIBS=$LIBS
jfigus7882dd92013-08-02 16:08:23 -04005492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493/* end confdefs.h. */
5494
5495/* Override any GCC internal prototype to avoid an error.
5496 Use char because int might match the return type of a GCC
5497 builtin and then its argument prototype would still apply. */
5498#ifdef __cplusplus
5499extern "C"
5500#endif
5501char EVP_aes_128_gcm ();
5502int
5503main ()
5504{
5505return EVP_aes_128_gcm ();
5506 ;
5507 return 0;
5508}
5509_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005510for ac_lib in '' crypto; do
5511 if test -z "$ac_lib"; then
5512 ac_res="none required"
5513 else
5514 ac_res=-l$ac_lib
5515 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5516 fi
5517 if ac_fn_c_try_link "$LINENO"; then :
5518 ac_cv_search_EVP_aes_128_gcm=$ac_res
jfigus7882dd92013-08-02 16:08:23 -04005519fi
5520rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01005521 conftest$ac_exeext
5522 if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
5523 break
jfigus7882dd92013-08-02 16:08:23 -04005524fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005525done
5526if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
jfigus7882dd92013-08-02 16:08:23 -04005527
Idar Tollefsen600ad962017-01-26 11:24:51 +01005528else
5529 ac_cv_search_EVP_aes_128_gcm=no
5530fi
5531rm conftest.$ac_ext
5532LIBS=$ac_func_search_save_LIBS
5533fi
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_aes_128_gcm" >&5
5535$as_echo "$ac_cv_search_EVP_aes_128_gcm" >&6; }
5536ac_res=$ac_cv_search_EVP_aes_128_gcm
5537if test "$ac_res" != no; then :
5538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus7882dd92013-08-02 16:08:23 -04005539
5540else
5541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01005543as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigus7882dd92013-08-02 16:08:23 -04005544See \`config.log' for more details" "$LINENO" 5; }
5545fi
5546
jfigusc7e66e32013-05-08 11:32:55 -04005547
Idar Tollefsen600ad962017-01-26 11:24:51 +01005548
jfigusc7e66e32013-05-08 11:32:55 -04005549$as_echo "#define OPENSSL 1" >>confdefs.h
5550
jfigus7882dd92013-08-02 16:08:23 -04005551 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
jfigusc7e66e32013-05-08 11:32:55 -04005552 HMAC_OBJS=crypto/hash/hmac_ossl.o
5553 USE_OPENSSL=1
5554
jfigus038d2cf2015-05-11 14:10:11 -04005555
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL KDF algorithm" >&5
5557$as_echo_n "checking whether to leverage OpenSSL KDF algorithm... " >&6; }
5558 # Check whether --enable-openssl-kdf was given.
5559if test "${enable_openssl_kdf+set}" = set; then :
5560 enableval=$enable_openssl_kdf;
5561else
5562 enable_openssl_kdf=no
5563fi
5564
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl_kdf" >&5
5566$as_echo "$enable_openssl_kdf" >&6; }
5567 if test "$enable_openssl_kdf" = "yes"; then
Idar Tollefsen600ad962017-01-26 11:24:51 +01005568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kdf_srtp" >&5
5569$as_echo_n "checking for library containing kdf_srtp... " >&6; }
5570if ${ac_cv_search_kdf_srtp+:} false; then :
jfigus038d2cf2015-05-11 14:10:11 -04005571 $as_echo_n "(cached) " >&6
5572else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005573 ac_func_search_save_LIBS=$LIBS
jfigus038d2cf2015-05-11 14:10:11 -04005574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575/* end confdefs.h. */
5576
5577/* Override any GCC internal prototype to avoid an error.
5578 Use char because int might match the return type of a GCC
5579 builtin and then its argument prototype would still apply. */
5580#ifdef __cplusplus
5581extern "C"
5582#endif
5583char kdf_srtp ();
5584int
5585main ()
5586{
5587return kdf_srtp ();
5588 ;
5589 return 0;
5590}
5591_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005592for ac_lib in '' crypto; do
5593 if test -z "$ac_lib"; then
5594 ac_res="none required"
5595 else
5596 ac_res=-l$ac_lib
5597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5598 fi
5599 if ac_fn_c_try_link "$LINENO"; then :
5600 ac_cv_search_kdf_srtp=$ac_res
jfigus038d2cf2015-05-11 14:10:11 -04005601fi
5602rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01005603 conftest$ac_exeext
5604 if ${ac_cv_search_kdf_srtp+:} false; then :
5605 break
jfigus038d2cf2015-05-11 14:10:11 -04005606fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005607done
5608if ${ac_cv_search_kdf_srtp+:} false; then :
jfigus038d2cf2015-05-11 14:10:11 -04005609
Idar Tollefsen600ad962017-01-26 11:24:51 +01005610else
5611 ac_cv_search_kdf_srtp=no
5612fi
5613rm conftest.$ac_ext
5614LIBS=$ac_func_search_save_LIBS
5615fi
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kdf_srtp" >&5
5617$as_echo "$ac_cv_search_kdf_srtp" >&6; }
5618ac_res=$ac_cv_search_kdf_srtp
5619if test "$ac_res" != no; then :
5620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus038d2cf2015-05-11 14:10:11 -04005621
5622else
5623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5625as_fn_error $? "can't find openssl KDF lib
5626See \`config.log' for more details" "$LINENO" 5; }
5627fi
5628
5629
5630$as_echo "#define OPENSSL_KDF 1" >>confdefs.h
5631
5632 fi
jfigusc7e66e32013-05-08 11:32:55 -04005633else
jfigusa3127b82014-11-19 14:46:52 -05005634 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o"
jfigusc7e66e32013-05-08 11:32:55 -04005635 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
5636fi
5637
5638
5639
Martin Meszaros96d0b9a2017-11-01 12:31:37 +01005640PCAP_LIB=""
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
5642$as_echo_n "checking for pcap_create in -lpcap... " >&6; }
5643if ${ac_cv_lib_pcap_pcap_create+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645else
5646 ac_check_lib_save_LIBS=$LIBS
5647LIBS="-lpcap $LIBS"
5648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649/* end confdefs.h. */
5650
5651/* Override any GCC internal prototype to avoid an error.
5652 Use char because int might match the return type of a GCC
5653 builtin and then its argument prototype would still apply. */
5654#ifdef __cplusplus
5655extern "C"
5656#endif
5657char pcap_create ();
5658int
5659main ()
5660{
5661return pcap_create ();
5662 ;
5663 return 0;
5664}
5665_ACEOF
5666if ac_fn_c_try_link "$LINENO"; then :
5667 ac_cv_lib_pcap_pcap_create=yes
5668else
5669 ac_cv_lib_pcap_pcap_create=no
5670fi
5671rm -f core conftest.err conftest.$ac_objext \
5672 conftest$ac_exeext conftest.$ac_ext
5673LIBS=$ac_check_lib_save_LIBS
5674fi
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
5676$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
5677if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
Martin Meszaros96d0b9a2017-11-01 12:31:37 +01005678 PCAP_LIB="-lpcap"
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005679
Bernardo Torresb3c51422014-10-14 12:40:09 -03005680$as_echo "#define HAVE_PCAP 1" >>confdefs.h
5681
Idar Tollefsen600ad962017-01-26 11:24:51 +01005682 HAVE_PCAP=1
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005683
5684fi
5685
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005686
Martin Meszaros3edfada2017-11-01 10:55:33 +01005687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lwpcap" >&5
5688$as_echo_n "checking for pcap_create in -lwpcap... " >&6; }
5689if ${ac_cv_lib_wpcap_pcap_create+:} false; then :
5690 $as_echo_n "(cached) " >&6
5691else
5692 ac_check_lib_save_LIBS=$LIBS
5693LIBS="-lwpcap $LIBS"
5694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695/* end confdefs.h. */
5696
5697/* Override any GCC internal prototype to avoid an error.
5698 Use char because int might match the return type of a GCC
5699 builtin and then its argument prototype would still apply. */
5700#ifdef __cplusplus
5701extern "C"
5702#endif
5703char pcap_create ();
5704int
5705main ()
5706{
5707return pcap_create ();
5708 ;
5709 return 0;
5710}
5711_ACEOF
5712if ac_fn_c_try_link "$LINENO"; then :
5713 ac_cv_lib_wpcap_pcap_create=yes
5714else
5715 ac_cv_lib_wpcap_pcap_create=no
5716fi
5717rm -f core conftest.err conftest.$ac_objext \
5718 conftest$ac_exeext conftest.$ac_ext
5719LIBS=$ac_check_lib_save_LIBS
5720fi
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wpcap_pcap_create" >&5
5722$as_echo "$ac_cv_lib_wpcap_pcap_create" >&6; }
5723if test "x$ac_cv_lib_wpcap_pcap_create" = xyes; then :
Martin Meszaros96d0b9a2017-11-01 12:31:37 +01005724 PCAP_LIB="-lwpcap"
Martin Meszaros3edfada2017-11-01 10:55:33 +01005725
5726$as_echo "#define HAVE_PCAP 1" >>confdefs.h
5727
5728 HAVE_PCAP=1
5729
5730fi
5731
5732
Martin Meszaros96d0b9a2017-11-01 12:31:37 +01005733
Pascal Bühler75918862017-02-19 18:33:50 +01005734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to redirect logging to stdout" >&5
5735$as_echo_n "checking whether to redirect logging to stdout... " >&6; }
5736# Check whether --enable-log-stdout was given.
5737if test "${enable_log_stdout+set}" = set; then :
5738 enableval=$enable_log_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00005739else
Pascal Bühler75918862017-02-19 18:33:50 +01005740 enable_log_stdout=no
jfigusc7e66e32013-05-08 11:32:55 -04005741fi
5742
Pascal Bühler75918862017-02-19 18:33:50 +01005743if test "$enable_log_stdout" = "yes"; then
David McGrewb67061f2005-09-28 14:23:06 +00005744
jfigusc7e66e32013-05-08 11:32:55 -04005745$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005746
5747fi
Pascal Bühler75918862017-02-19 18:33:50 +01005748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_stdout" >&5
5749$as_echo "$enable_log_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005750
Pascal Bühler75918862017-02-19 18:33:50 +01005751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking wheather to use a file for logging" >&5
5752$as_echo_n "checking wheather to use a file for logging... " >&6; }
5753
5754# Check whether --with-log-file was given.
5755if test "${with_log_file+set}" = set; then :
5756 withval=$with_log_file; case x$with_log_file in #(
5757 x) :
5758 valid_with_log_file="no" ;; #(
5759 xyes) :
5760 valid_with_log_file="no" ;; #(
5761 *) :
5762 valid_with_error_file="yes" ;;
5763esac
5764 if test "$valid_with_log_file" = "no"; then :
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
5766$as_echo "invalid" >&6; }
5767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5769as_fn_error $? "Invalid value for --with-log-file: \"$with_log_file\"
5770See \`config.log' for more details" "$LINENO" 5; }
David McGrewb67061f2005-09-28 14:23:06 +00005771else
Pascal Bühler75918862017-02-19 18:33:50 +01005772
5773cat >>confdefs.h <<_ACEOF
5774#define ERR_REPORTING_FILE "$with_log_file"
5775_ACEOF
5776
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using log file: \"$with_log_file\"" >&5
5778$as_echo "using log file: \"$with_log_file\"" >&6; }
5779fi
5780else
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782$as_echo "no" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04005783fi
5784
David McGrewb67061f2005-09-28 14:23:06 +00005785
Pascal Bühler75918862017-02-19 18:33:50 +01005786if test "$enable_log_stdout" = "yes" && test "x$with_log_file" != "x"; then :
5787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5789as_fn_error $? "Can only use one of --enable-log-stdout and --with-log-file; they are mutually exclusive
5790See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005791fi
David McGrewb67061f2005-09-28 14:23:06 +00005792
Idar Tollefsencb771f72017-05-03 13:20:08 +02005793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra C compiler flags" >&5
5794$as_echo_n "checking for extra C compiler flags... " >&6; }
5795if test "x$EXTRA_CFLAGS" != "x"; then :
5796 if test "x$CFLAGS" = "x"; then :
5797 CFLAGS="$EXTRA_CFLAGS"
5798else
5799 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
5800fi
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_CFLAGS" >&5
5802$as_echo "$EXTRA_CFLAGS" >&6; }
5803else
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805$as_echo "no" >&6; }
5806fi
5807
jfigusc7e66e32013-05-08 11:32:55 -04005808ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00005809
5810
Idar Tollefsen600ad962017-01-26 11:24:51 +01005811ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile libsrtp2.pc"
jfigusc7e66e32013-05-08 11:32:55 -04005812
Cullen Jennings235513a2005-09-21 22:51:36 +00005813cat >confcache <<\_ACEOF
5814# This file is a shell script that caches the results of configure
5815# tests run on this system so they can be shared between configure
5816# scripts and configure runs, see configure's option --config-cache.
5817# It is not useful on other systems. If it contains results you don't
5818# want to keep, you may remove or edit it.
5819#
5820# config.status only pays attention to the cache file if you give it
5821# the --recheck option to rerun configure.
5822#
5823# `ac_cv_env_foo' variables (set or unset) will be overridden when
5824# loading this file, other *unset* `ac_cv_foo' will be assigned the
5825# following values.
5826
5827_ACEOF
5828
5829# The following way of writing the cache mishandles newlines in values,
5830# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04005831# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00005832# Ultrix sh set writes to stderr and can't be redirected directly,
5833# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04005834(
5835 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5836 eval ac_val=\$$ac_var
5837 case $ac_val in #(
5838 *${as_nl}*)
5839 case $ac_var in #(
5840 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5841$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5842 esac
5843 case $ac_var in #(
5844 _ | IFS | as_nl) ;; #(
5845 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5846 *) { eval $ac_var=; unset $ac_var;} ;;
5847 esac ;;
5848 esac
5849 done
5850
Cullen Jennings235513a2005-09-21 22:51:36 +00005851 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04005852 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5853 *${as_nl}ac_space=\ *)
5854 # `set' does not quote correctly, so add quotes: double-quote
5855 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00005856 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00005857 "s/'/'\\\\''/g;
5858 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04005859 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00005860 *)
5861 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04005862 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00005863 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005864 esac |
5865 sort
5866) |
Cullen Jennings235513a2005-09-21 22:51:36 +00005867 sed '
jfigusc7e66e32013-05-08 11:32:55 -04005868 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00005869 t clear
jfigusc7e66e32013-05-08 11:32:55 -04005870 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00005871 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5872 t end
jfigusc7e66e32013-05-08 11:32:55 -04005873 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5874 :end' >>confcache
5875if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5876 if test -w "$cache_file"; then
5877 if test "x$cache_file" != "x/dev/null"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5879$as_echo "$as_me: updating cache $cache_file" >&6;}
5880 if test ! -f "$cache_file" || test -h "$cache_file"; then
5881 cat confcache >"$cache_file"
5882 else
5883 case $cache_file in #(
5884 */* | ?:*)
5885 mv -f confcache "$cache_file"$$ &&
5886 mv -f "$cache_file"$$ "$cache_file" ;; #(
5887 *)
5888 mv -f confcache "$cache_file" ;;
5889 esac
5890 fi
5891 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005892 else
jfigusc7e66e32013-05-08 11:32:55 -04005893 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5894$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00005895 fi
5896fi
5897rm -f confcache
5898
5899test "x$prefix" = xNONE && prefix=$ac_default_prefix
5900# Let make expand exec_prefix.
5901test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5902
Cullen Jennings235513a2005-09-21 22:51:36 +00005903DEFS=-DHAVE_CONFIG_H
5904
5905ac_libobjs=
5906ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04005907U=
Cullen Jennings235513a2005-09-21 22:51:36 +00005908for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5909 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04005910 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5911 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5912 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5913 # will be set to the directory where LIBOBJS objects are built.
5914 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5915 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00005916done
5917LIBOBJS=$ac_libobjs
5918
5919LTLIBOBJS=$ac_ltlibobjs
5920
5921
5922
jfigusc7e66e32013-05-08 11:32:55 -04005923
5924: "${CONFIG_STATUS=./config.status}"
5925ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00005926ac_clean_files_save=$ac_clean_files
5927ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04005928{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5929$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5930as_write_fail=0
5931cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005932#! $SHELL
5933# Generated by $as_me.
5934# Run this file to recreate the current configuration.
5935# Compiler output produced by configure, useful for debugging
5936# configure, is in config.log if it exists.
5937
5938debug=false
5939ac_cs_recheck=false
5940ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04005941
Cullen Jennings235513a2005-09-21 22:51:36 +00005942SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04005943export SHELL
5944_ASEOF
5945cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5946## -------------------- ##
5947## M4sh Initialization. ##
5948## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00005949
jfigusc7e66e32013-05-08 11:32:55 -04005950# Be more Bourne compatible
5951DUALCASE=1; export DUALCASE # for MKS sh
5952if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005953 emulate sh
5954 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04005955 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00005956 # is contrary to our usage. Disable this feature.
5957 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04005958 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00005959else
jfigusc7e66e32013-05-08 11:32:55 -04005960 case `(set -o) 2>/dev/null` in #(
5961 *posix*) :
5962 set -o posix ;; #(
5963 *) :
5964 ;;
5965esac
Cullen Jennings235513a2005-09-21 22:51:36 +00005966fi
5967
5968
jfigusc7e66e32013-05-08 11:32:55 -04005969as_nl='
5970'
5971export as_nl
5972# Printing a long string crashes Solaris 7 /usr/bin/printf.
5973as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5974as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5975as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5976# Prefer a ksh shell builtin over an external printf program on Solaris,
5977# but without wasting forks for bash or zsh.
5978if test -z "$BASH_VERSION$ZSH_VERSION" \
5979 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5980 as_echo='print -r --'
5981 as_echo_n='print -rn --'
5982elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5983 as_echo='printf %s\n'
5984 as_echo_n='printf %s'
5985else
5986 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5987 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5988 as_echo_n='/usr/ucb/echo -n'
5989 else
5990 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5991 as_echo_n_body='eval
5992 arg=$1;
5993 case $arg in #(
5994 *"$as_nl"*)
5995 expr "X$arg" : "X\\(.*\\)$as_nl";
5996 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5997 esac;
5998 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5999 '
6000 export as_echo_n_body
6001 as_echo_n='sh -c $as_echo_n_body as_echo'
6002 fi
6003 export as_echo_body
6004 as_echo='sh -c $as_echo_body as_echo'
6005fi
6006
6007# The user is always right.
6008if test "${PATH_SEPARATOR+set}" != set; then
6009 PATH_SEPARATOR=:
6010 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6011 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6012 PATH_SEPARATOR=';'
6013 }
6014fi
6015
6016
6017# IFS
6018# We need space, tab and new line, in precisely that order. Quoting is
6019# there to prevent editors from complaining about space-tab.
6020# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6021# splitting by setting IFS to empty value.)
6022IFS=" "" $as_nl"
6023
6024# Find who we are. Look in the path if we contain no directory separator.
6025as_myself=
6026case $0 in #((
6027 *[\\/]* ) as_myself=$0 ;;
6028 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029for as_dir in $PATH
6030do
6031 IFS=$as_save_IFS
6032 test -z "$as_dir" && as_dir=.
6033 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6034 done
6035IFS=$as_save_IFS
6036
6037 ;;
6038esac
6039# We did not find ourselves, most probably we were run as `sh COMMAND'
6040# in which case we are not to be found in the path.
6041if test "x$as_myself" = x; then
6042 as_myself=$0
6043fi
6044if test ! -f "$as_myself"; then
6045 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6046 exit 1
6047fi
6048
6049# Unset variables that we do not need and which cause bugs (e.g. in
6050# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6051# suppresses any "Segmentation fault" message there. '((' could
6052# trigger a bug in pdksh 5.2.14.
6053for as_var in BASH_ENV ENV MAIL MAILPATH
6054do eval test x\${$as_var+set} = xset \
6055 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6056done
Cullen Jennings235513a2005-09-21 22:51:36 +00006057PS1='$ '
6058PS2='> '
6059PS4='+ '
6060
6061# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04006062LC_ALL=C
6063export LC_ALL
6064LANGUAGE=C
6065export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04006066
jfigusc7e66e32013-05-08 11:32:55 -04006067# CDPATH.
6068(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6069
6070
6071# as_fn_error STATUS ERROR [LINENO LOG_FD]
6072# ----------------------------------------
6073# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6074# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6075# script with STATUS, using 1 if that was 0.
6076as_fn_error ()
6077{
6078 as_status=$1; test $as_status -eq 0 && as_status=1
6079 if test "$4"; then
6080 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6081 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6082 fi
6083 $as_echo "$as_me: error: $2" >&2
6084 as_fn_exit $as_status
6085} # as_fn_error
6086
6087
6088# as_fn_set_status STATUS
6089# -----------------------
6090# Set $? to STATUS, without forking.
6091as_fn_set_status ()
6092{
6093 return $1
6094} # as_fn_set_status
6095
6096# as_fn_exit STATUS
6097# -----------------
6098# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6099as_fn_exit ()
6100{
6101 set +e
6102 as_fn_set_status $1
6103 exit $1
6104} # as_fn_exit
6105
6106# as_fn_unset VAR
6107# ---------------
6108# Portably unset VAR.
6109as_fn_unset ()
6110{
6111 { eval $1=; unset $1;}
6112}
6113as_unset=as_fn_unset
6114# as_fn_append VAR VALUE
6115# ----------------------
6116# Append the text in VALUE to the end of the definition contained in VAR. Take
6117# advantage of any shell optimizations that allow amortized linear growth over
6118# repeated appends, instead of the typical quadratic growth present in naive
6119# implementations.
6120if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6121 eval 'as_fn_append ()
6122 {
6123 eval $1+=\$2
6124 }'
6125else
6126 as_fn_append ()
6127 {
6128 eval $1=\$$1\$2
6129 }
6130fi # as_fn_append
6131
6132# as_fn_arith ARG...
6133# ------------------
6134# Perform arithmetic evaluation on the ARGs, and store the result in the
6135# global $as_val. Take advantage of shells that can avoid forks. The arguments
6136# must be portable across $(()) and expr.
6137if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6138 eval 'as_fn_arith ()
6139 {
6140 as_val=$(( $* ))
6141 }'
6142else
6143 as_fn_arith ()
6144 {
6145 as_val=`expr "$@" || test $? -eq 1`
6146 }
6147fi # as_fn_arith
6148
6149
6150if expr a : '\(a\)' >/dev/null 2>&1 &&
6151 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006152 as_expr=expr
6153else
6154 as_expr=false
6155fi
6156
jfigusc7e66e32013-05-08 11:32:55 -04006157if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006158 as_basename=basename
6159else
6160 as_basename=false
6161fi
6162
jfigusc7e66e32013-05-08 11:32:55 -04006163if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6164 as_dirname=dirname
6165else
6166 as_dirname=false
6167fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006168
jfigusc7e66e32013-05-08 11:32:55 -04006169as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006170$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6171 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006172 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6173$as_echo X/"$0" |
6174 sed '/^.*\/\([^/][^/]*\)\/*$/{
6175 s//\1/
6176 q
6177 }
6178 /^X\/\(\/\/\)$/{
6179 s//\1/
6180 q
6181 }
6182 /^X\/\(\/\).*/{
6183 s//\1/
6184 q
6185 }
6186 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006187
Cullen Jennings235513a2005-09-21 22:51:36 +00006188# Avoid depending upon Character Ranges.
6189as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6190as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6191as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6192as_cr_digits='0123456789'
6193as_cr_alnum=$as_cr_Letters$as_cr_digits
6194
jfigusc7e66e32013-05-08 11:32:55 -04006195ECHO_C= ECHO_N= ECHO_T=
6196case `echo -n x` in #(((((
6197-n*)
6198 case `echo 'xy\c'` in
6199 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6200 xy) ECHO_C='\c';;
6201 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6202 ECHO_T=' ';;
6203 esac;;
6204*)
6205 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00006206esac
6207
Cullen Jennings235513a2005-09-21 22:51:36 +00006208rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04006209if test -d conf$$.dir; then
6210 rm -f conf$$.dir/conf$$.file
6211else
6212 rm -f conf$$.dir
6213 mkdir conf$$.dir 2>/dev/null
6214fi
6215if (echo >conf$$.file) 2>/dev/null; then
6216 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006217 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04006218 # ... but there are two gotchas:
6219 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6220 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6221 # In both cases, we have to default to `cp -pR'.
6222 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6223 as_ln_s='cp -pR'
6224 elif ln conf$$.file conf$$ 2>/dev/null; then
6225 as_ln_s=ln
6226 else
6227 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006228 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006229else
jfigusc7e66e32013-05-08 11:32:55 -04006230 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006231fi
jfigusc7e66e32013-05-08 11:32:55 -04006232rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6233rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00006234
jfigusc7e66e32013-05-08 11:32:55 -04006235
6236# as_fn_mkdir_p
6237# -------------
6238# Create "$as_dir" as a directory, including parents if necessary.
6239as_fn_mkdir_p ()
6240{
6241
6242 case $as_dir in #(
6243 -*) as_dir=./$as_dir;;
6244 esac
6245 test -d "$as_dir" || eval $as_mkdir_p || {
6246 as_dirs=
6247 while :; do
6248 case $as_dir in #(
6249 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6250 *) as_qdir=$as_dir;;
6251 esac
6252 as_dirs="'$as_qdir' $as_dirs"
6253 as_dir=`$as_dirname -- "$as_dir" ||
6254$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6255 X"$as_dir" : 'X\(//\)[^/]' \| \
6256 X"$as_dir" : 'X\(//\)$' \| \
6257 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6258$as_echo X"$as_dir" |
6259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6260 s//\1/
6261 q
6262 }
6263 /^X\(\/\/\)[^/].*/{
6264 s//\1/
6265 q
6266 }
6267 /^X\(\/\/\)$/{
6268 s//\1/
6269 q
6270 }
6271 /^X\(\/\).*/{
6272 s//\1/
6273 q
6274 }
6275 s/.*/./; q'`
6276 test -d "$as_dir" && break
6277 done
6278 test -z "$as_dirs" || eval "mkdir $as_dirs"
6279 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6280
6281
6282} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006283if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04006284 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00006285else
David McGrewfec49dd2005-09-23 19:34:11 +00006286 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00006287 as_mkdir_p=false
6288fi
6289
jfigusc7e66e32013-05-08 11:32:55 -04006290
6291# as_fn_executable_p FILE
6292# -----------------------
6293# Test if FILE is an executable regular file.
6294as_fn_executable_p ()
6295{
6296 test -f "$1" && test -x "$1"
6297} # as_fn_executable_p
6298as_test_x='test -x'
6299as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006300
6301# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00006302as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006303
6304# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00006305as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006306
6307
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006308exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04006309## ----------------------------------- ##
6310## Main body of $CONFIG_STATUS script. ##
6311## ----------------------------------- ##
6312_ASEOF
6313test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006314
jfigusc7e66e32013-05-08 11:32:55 -04006315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6316# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00006317# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04006318# values after options handling.
6319ac_log="
Pascal Bühlerd7f9f462017-05-24 08:57:35 +02006320This file was extended by libsrtp2 $as_me 2.2.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04006321generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00006322
6323 CONFIG_FILES = $CONFIG_FILES
6324 CONFIG_HEADERS = $CONFIG_HEADERS
6325 CONFIG_LINKS = $CONFIG_LINKS
6326 CONFIG_COMMANDS = $CONFIG_COMMANDS
6327 $ $0 $@
6328
jfigusc7e66e32013-05-08 11:32:55 -04006329on `(hostname || uname -n) 2>/dev/null | sed 1q`
6330"
6331
Cullen Jennings235513a2005-09-21 22:51:36 +00006332_ACEOF
6333
jfigusc7e66e32013-05-08 11:32:55 -04006334case $ac_config_files in *"
6335"*) set x $ac_config_files; shift; ac_config_files=$*;;
6336esac
6337
6338case $ac_config_headers in *"
6339"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6340esac
6341
6342
6343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006344# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04006345config_files="$ac_config_files"
6346config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00006347
jfigusc7e66e32013-05-08 11:32:55 -04006348_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006349
jfigusc7e66e32013-05-08 11:32:55 -04006350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006351ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04006352\`$as_me' instantiates files and other configuration actions
6353from templates according to the current configuration. Unless the files
6354and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00006355
jfigusc7e66e32013-05-08 11:32:55 -04006356Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00006357
6358 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04006359 -V, --version print version number and configuration settings, then exit
6360 --config print configuration, then exit
6361 -q, --quiet, --silent
6362 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00006363 -d, --debug don't remove temporary files
6364 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04006365 --file=FILE[:TEMPLATE]
6366 instantiate the configuration file FILE
6367 --header=FILE[:TEMPLATE]
6368 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00006369
6370Configuration files:
6371$config_files
6372
6373Configuration headers:
6374$config_headers
6375
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02006376Report bugs to <https://github.com/cisco/libsrtp/issues>."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006377
jfigusc7e66e32013-05-08 11:32:55 -04006378_ACEOF
6379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6380ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00006381ac_cs_version="\\
Pascal Bühlerd7f9f462017-05-24 08:57:35 +02006382libsrtp2 config.status 2.2.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04006383configured by $0, generated by GNU Autoconf 2.69,
6384 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00006385
jfigusc7e66e32013-05-08 11:32:55 -04006386Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00006387This config.status script is free software; the Free Software Foundation
6388gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04006389
6390ac_pwd='$ac_pwd'
6391srcdir='$srcdir'
6392INSTALL='$INSTALL'
6393test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00006394_ACEOF
6395
jfigusc7e66e32013-05-08 11:32:55 -04006396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6397# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00006398ac_need_defaults=:
6399while test $# != 0
6400do
6401 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04006402 --*=?*)
6403 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6404 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006405 ac_shift=:
6406 ;;
jfigusc7e66e32013-05-08 11:32:55 -04006407 --*=)
6408 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6409 ac_optarg=
6410 ac_shift=:
6411 ;;
6412 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00006413 ac_option=$1
6414 ac_optarg=$2
6415 ac_shift=shift
6416 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006417 esac
6418
6419 case $ac_option in
6420 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00006421 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6422 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04006423 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6424 $as_echo "$ac_cs_version"; exit ;;
6425 --config | --confi | --conf | --con | --co | --c )
6426 $as_echo "$ac_cs_config"; exit ;;
6427 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00006428 debug=: ;;
6429 --file | --fil | --fi | --f )
6430 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04006431 case $ac_optarg in
6432 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6433 '') as_fn_error $? "missing file argument" ;;
6434 esac
6435 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006436 ac_need_defaults=false;;
6437 --header | --heade | --head | --hea )
6438 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04006439 case $ac_optarg in
6440 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6441 esac
6442 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006443 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04006444 --he | --h)
6445 # Conflict between --help and --header
6446 as_fn_error $? "ambiguous option: \`$1'
6447Try \`$0 --help' for more information.";;
6448 --help | --hel | -h )
6449 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006450 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6451 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6452 ac_cs_silent=: ;;
6453
6454 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04006455 -*) as_fn_error $? "unrecognized option: \`$1'
6456Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006457
jfigusc7e66e32013-05-08 11:32:55 -04006458 *) as_fn_append ac_config_targets " $1"
6459 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006460
6461 esac
6462 shift
6463done
6464
6465ac_configure_extra_args=
6466
6467if $ac_cs_silent; then
6468 exec 6>/dev/null
6469 ac_configure_extra_args="$ac_configure_extra_args --silent"
6470fi
6471
6472_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006474if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04006475 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6476 shift
6477 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6478 CONFIG_SHELL='$SHELL'
6479 export CONFIG_SHELL
6480 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00006481fi
6482
6483_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6485exec 5>>config.log
6486{
6487 echo
6488 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6489## Running $as_me. ##
6490_ASBOX
6491 $as_echo "$ac_log"
6492} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00006493
jfigusc7e66e32013-05-08 11:32:55 -04006494_ACEOF
6495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6496_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006497
jfigusc7e66e32013-05-08 11:32:55 -04006498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006499
jfigusc7e66e32013-05-08 11:32:55 -04006500# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00006501for ac_config_target in $ac_config_targets
6502do
jfigusc7e66e32013-05-08 11:32:55 -04006503 case $ac_config_target in
6504 "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
6505 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6506 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
6507 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Idar Tollefsen600ad962017-01-26 11:24:51 +01006508 "libsrtp2.pc") CONFIG_FILES="$CONFIG_FILES libsrtp2.pc" ;;
jfigusc7e66e32013-05-08 11:32:55 -04006509
6510 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006511 esac
6512done
6513
jfigusc7e66e32013-05-08 11:32:55 -04006514
Cullen Jennings235513a2005-09-21 22:51:36 +00006515# If the user did not use the arguments to specify the items to instantiate,
6516# then the envvar interface is used. Set only those that are not.
6517# We use the long form for the default assignment because of an extremely
6518# bizarre bug on SunOS 4.1.3.
6519if $ac_need_defaults; then
6520 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6521 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6522fi
6523
6524# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04006525# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00006526# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04006527# Hook for its removal unless debugging.
6528# Note that there is a small window in which the directory will not be cleaned:
6529# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00006530$debug ||
6531{
jfigusc7e66e32013-05-08 11:32:55 -04006532 tmp= ac_tmp=
6533 trap 'exit_status=$?
6534 : "${ac_tmp:=$tmp}"
6535 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6536' 0
6537 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00006538}
Cullen Jennings235513a2005-09-21 22:51:36 +00006539# Create a (secure) tmp directory for tmp files.
6540
6541{
jfigusc7e66e32013-05-08 11:32:55 -04006542 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6543 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00006544} ||
6545{
jfigusc7e66e32013-05-08 11:32:55 -04006546 tmp=./conf$$-$RANDOM
6547 (umask 077 && mkdir "$tmp")
6548} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6549ac_tmp=$tmp
6550
6551# Set up the scripts for CONFIG_FILES section.
6552# No need to generate them if there are no CONFIG_FILES.
6553# This happens for instance with `./config.status config.h'.
6554if test -n "$CONFIG_FILES"; then
6555
6556
6557ac_cr=`echo X | tr X '\015'`
6558# On cygwin, bash can eat \r inside `` if the user requested igncr.
6559# But we know of no other shell where ac_cr would be empty at this
6560# point, so we can use a bashism as a fallback.
6561if test "x$ac_cr" = x; then
6562 eval ac_cr=\$\'\\r\'
6563fi
6564ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6565if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6566 ac_cs_awk_cr='\\r'
6567else
6568 ac_cs_awk_cr=$ac_cr
6569fi
6570
6571echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6572_ACEOF
6573
6574
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006575{
jfigusc7e66e32013-05-08 11:32:55 -04006576 echo "cat >conf$$subs.awk <<_ACEOF" &&
6577 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6578 echo "_ACEOF"
6579} >conf$$subs.sh ||
6580 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6581ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6582ac_delim='%!_!# '
6583for ac_last_try in false false false false false :; do
6584 . ./conf$$subs.sh ||
6585 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6586
6587 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6588 if test $ac_delim_n = $ac_delim_num; then
6589 break
6590 elif $ac_last_try; then
6591 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6592 else
6593 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6594 fi
6595done
6596rm -f conf$$subs.sh
6597
6598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6599cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6600_ACEOF
6601sed -n '
6602h
6603s/^/S["/; s/!.*/"]=/
6604p
6605g
6606s/^[^!]*!//
6607:repl
6608t repl
6609s/'"$ac_delim"'$//
6610t delim
6611:nl
6612h
6613s/\(.\{148\}\)..*/\1/
6614t more1
6615s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6616p
6617n
6618b repl
6619:more1
6620s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6621p
6622g
6623s/.\{148\}//
6624t nl
6625:delim
6626h
6627s/\(.\{148\}\)..*/\1/
6628t more2
6629s/["\\]/\\&/g; s/^/"/; s/$/"/
6630p
6631b
6632:more2
6633s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6634p
6635g
6636s/.\{148\}//
6637t delim
6638' <conf$$subs.awk | sed '
6639/^[^""]/{
6640 N
6641 s/\n//
6642}
6643' >>$CONFIG_STATUS || ac_write_fail=1
6644rm -f conf$$subs.awk
6645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6646_ACAWK
6647cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6648 for (key in S) S_is_set[key] = 1
6649 FS = ""
6650
6651}
6652{
6653 line = $ 0
6654 nfields = split(line, field, "@")
6655 substed = 0
6656 len = length(field[1])
6657 for (i = 2; i < nfields; i++) {
6658 key = field[i]
6659 keylen = length(key)
6660 if (S_is_set[key]) {
6661 value = S[key]
6662 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6663 len += length(value) + length(field[++i])
6664 substed = 1
6665 } else
6666 len += 1 + keylen
6667 }
6668
6669 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006670}
jfigusa14b5a02013-03-29 12:24:12 -04006671
jfigusc7e66e32013-05-08 11:32:55 -04006672_ACAWK
6673_ACEOF
6674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6675if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6676 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6677else
6678 cat
6679fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6680 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04006681_ACEOF
6682
jfigusc7e66e32013-05-08 11:32:55 -04006683# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6684# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6685# trailing colons and then remove the whole line if VPATH becomes empty
6686# (actually we leave an empty line to preserve line numbers).
6687if test "x$srcdir" = x.; then
6688 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6689h
6690s///
6691s/^/:/
6692s/[ ]*$/:/
6693s/:\$(srcdir):/:/g
6694s/:\${srcdir}:/:/g
6695s/:@srcdir@:/:/g
6696s/^:*//
6697s/:*$//
6698x
6699s/\(=[ ]*\).*/\1/
6700G
6701s/\n//
6702s/^[^=]*=[ ]*$//
6703}'
6704fi
jfigusa14b5a02013-03-29 12:24:12 -04006705
jfigusc7e66e32013-05-08 11:32:55 -04006706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006707fi # test -n "$CONFIG_FILES"
6708
jfigusc7e66e32013-05-08 11:32:55 -04006709# Set up the scripts for CONFIG_HEADERS section.
6710# No need to generate them if there are no CONFIG_HEADERS.
6711# This happens for instance with `./config.status Makefile'.
6712if test -n "$CONFIG_HEADERS"; then
6713cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6714BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00006715_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006716
6717# Transform confdefs.h into an awk script `defines.awk', embedded as
6718# here-document in config.status, that substitutes the proper values into
6719# config.h.in to produce config.h.
6720
6721# Create a delimiter string that does not exist in confdefs.h, to ease
6722# handling of long lines.
6723ac_delim='%!_!# '
6724for ac_last_try in false false :; do
6725 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6726 if test -z "$ac_tt"; then
6727 break
6728 elif $ac_last_try; then
6729 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6730 else
6731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6732 fi
6733done
6734
6735# For the awk script, D is an array of macro values keyed by name,
6736# likewise P contains macro parameters if any. Preserve backslash
6737# newline sequences.
6738
6739ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6740sed -n '
6741s/.\{148\}/&'"$ac_delim"'/g
6742t rset
6743:rset
6744s/^[ ]*#[ ]*define[ ][ ]*/ /
6745t def
6746d
6747:def
6748s/\\$//
6749t bsnl
6750s/["\\]/\\&/g
6751s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6752D["\1"]=" \3"/p
6753s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6754d
6755:bsnl
6756s/["\\]/\\&/g
6757s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6758D["\1"]=" \3\\\\\\n"\\/p
6759t cont
6760s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6761t cont
6762d
6763:cont
6764n
6765s/.\{148\}/&'"$ac_delim"'/g
6766t clear
6767:clear
6768s/\\$//
6769t bsnlc
6770s/["\\]/\\&/g; s/^/"/; s/$/"/p
6771d
6772:bsnlc
6773s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6774b cont
6775' <confdefs.h | sed '
6776s/'"$ac_delim"'/"\\\
6777"/g' >>$CONFIG_STATUS || ac_write_fail=1
6778
6779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6780 for (key in D) D_is_set[key] = 1
6781 FS = ""
6782}
6783/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6784 line = \$ 0
6785 split(line, arg, " ")
6786 if (arg[1] == "#") {
6787 defundef = arg[2]
6788 mac1 = arg[3]
6789 } else {
6790 defundef = substr(arg[1], 2)
6791 mac1 = arg[2]
6792 }
6793 split(mac1, mac2, "(") #)
6794 macro = mac2[1]
6795 prefix = substr(line, 1, index(line, defundef) - 1)
6796 if (D_is_set[macro]) {
6797 # Preserve the white space surrounding the "#".
6798 print prefix "define", macro P[macro] D[macro]
6799 next
6800 } else {
6801 # Replace #undef with comments. This is necessary, for example,
6802 # in the case of _POSIX_SOURCE, which is predefined and required
6803 # on some systems where configure will not decide to define it.
6804 if (defundef == "undef") {
6805 print "/*", prefix defundef, macro, "*/"
6806 next
6807 }
6808 }
6809}
6810{ print }
6811_ACAWK
6812_ACEOF
6813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6814 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6815fi # test -n "$CONFIG_HEADERS"
6816
6817
6818eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6819shift
6820for ac_tag
6821do
6822 case $ac_tag in
6823 :[FHLC]) ac_mode=$ac_tag; continue;;
6824 esac
6825 case $ac_mode$ac_tag in
6826 :[FHL]*:*);;
6827 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6828 :[FH]-) ac_tag=-:-;;
6829 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6830 esac
6831 ac_save_IFS=$IFS
6832 IFS=:
6833 set x $ac_tag
6834 IFS=$ac_save_IFS
6835 shift
6836 ac_file=$1
6837 shift
6838
6839 case $ac_mode in
6840 :L) ac_source=$1;;
6841 :[FH])
6842 ac_file_inputs=
6843 for ac_f
6844 do
6845 case $ac_f in
6846 -) ac_f="$ac_tmp/stdin";;
6847 *) # Look for the file first in the build tree, then in the source tree
6848 # (if the path is not absolute). The absolute path cannot be DOS-style,
6849 # because $ac_f cannot contain `:'.
6850 test -f "$ac_f" ||
6851 case $ac_f in
6852 [\\/$]*) false;;
6853 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6854 esac ||
6855 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6856 esac
6857 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6858 as_fn_append ac_file_inputs " '$ac_f'"
6859 done
6860
6861 # Let's still pretend it is `configure' which instantiates (i.e., don't
6862 # use $as_me), people would be surprised to read:
6863 # /* config.h. Generated by config.status. */
6864 configure_input='Generated from '`
6865 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6866 `' by configure.'
6867 if test x"$ac_file" != x-; then
6868 configure_input="$ac_file. $configure_input"
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6870$as_echo "$as_me: creating $ac_file" >&6;}
6871 fi
6872 # Neutralize special characters interpreted by sed in replacement strings.
6873 case $configure_input in #(
6874 *\&* | *\|* | *\\* )
6875 ac_sed_conf_input=`$as_echo "$configure_input" |
6876 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6877 *) ac_sed_conf_input=$configure_input;;
6878 esac
6879
6880 case $ac_tag in
6881 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6883 esac
6884 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006885 esac
6886
jfigusc7e66e32013-05-08 11:32:55 -04006887 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006888$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006889 X"$ac_file" : 'X\(//\)[^/]' \| \
6890 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006891 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6892$as_echo X"$ac_file" |
6893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6894 s//\1/
6895 q
6896 }
6897 /^X\(\/\/\)[^/].*/{
6898 s//\1/
6899 q
6900 }
6901 /^X\(\/\/\)$/{
6902 s//\1/
6903 q
6904 }
6905 /^X\(\/\).*/{
6906 s//\1/
6907 q
6908 }
6909 s/.*/./; q'`
6910 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006911 ac_builddir=.
6912
jfigusc7e66e32013-05-08 11:32:55 -04006913case "$ac_dir" in
6914.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6915*)
6916 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6917 # A ".." for each directory in $ac_dir_suffix.
6918 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6919 case $ac_top_builddir_sub in
6920 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6921 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6922 esac ;;
6923esac
6924ac_abs_top_builddir=$ac_pwd
6925ac_abs_builddir=$ac_pwd$ac_dir_suffix
6926# for backward compatibility:
6927ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00006928
6929case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04006930 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00006931 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04006932 ac_top_srcdir=$ac_top_builddir_sub
6933 ac_abs_top_srcdir=$ac_pwd ;;
6934 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00006935 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04006936 ac_top_srcdir=$srcdir
6937 ac_abs_top_srcdir=$srcdir ;;
6938 *) # Relative name.
6939 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6940 ac_top_srcdir=$ac_top_build_prefix$srcdir
6941 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006942esac
jfigusc7e66e32013-05-08 11:32:55 -04006943ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00006944
Cullen Jennings235513a2005-09-21 22:51:36 +00006945
jfigusc7e66e32013-05-08 11:32:55 -04006946 case $ac_mode in
6947 :F)
6948 #
6949 # CONFIG_FILE
6950 #
Cullen Jennings235513a2005-09-21 22:51:36 +00006951
David McGrewb67061f2005-09-28 14:23:06 +00006952 case $INSTALL in
6953 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04006954 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00006955 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006956_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006957
6958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6959# If the template does not know about datarootdir, expand it.
6960# FIXME: This hack should be removed a few years after 2.60.
6961ac_datarootdir_hack=; ac_datarootdir_seen=
6962ac_sed_dataroot='
6963/datarootdir/ {
6964 p
6965 q
6966}
6967/@datadir@/p
6968/@docdir@/p
6969/@infodir@/p
6970/@localedir@/p
6971/@mandir@/p'
6972case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6973*datarootdir*) ac_datarootdir_seen=yes;;
6974*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6976$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6977_ACEOF
6978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6979 ac_datarootdir_hack='
6980 s&@datadir@&$datadir&g
6981 s&@docdir@&$docdir&g
6982 s&@infodir@&$infodir&g
6983 s&@localedir@&$localedir&g
6984 s&@mandir@&$mandir&g
6985 s&\\\${datarootdir}&$datarootdir&g' ;;
6986esac
6987_ACEOF
6988
6989# Neutralize VPATH when `$srcdir' = `.'.
6990# Shell code in configure.ac might set extrasub.
6991# FIXME: do we really want to maintain this feature?
6992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6993ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00006994$extrasub
6995_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006997:t
6998/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04006999s|@configure_input@|$ac_sed_conf_input|;t t
7000s&@top_builddir@&$ac_top_builddir_sub&;t t
7001s&@top_build_prefix@&$ac_top_build_prefix&;t t
7002s&@srcdir@&$ac_srcdir&;t t
7003s&@abs_srcdir@&$ac_abs_srcdir&;t t
7004s&@top_srcdir@&$ac_top_srcdir&;t t
7005s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7006s&@builddir@&$ac_builddir&;t t
7007s&@abs_builddir@&$ac_abs_builddir&;t t
7008s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7009s&@INSTALL@&$ac_INSTALL&;t t
7010$ac_datarootdir_hack
7011"
7012eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7013 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00007014
jfigusc7e66e32013-05-08 11:32:55 -04007015test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7016 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7017 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7018 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7020which seems to be undefined. Please make sure it is defined" >&5
7021$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7022which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007023
jfigusc7e66e32013-05-08 11:32:55 -04007024 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007025 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04007026 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7027 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7028 esac \
7029 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7030 ;;
7031 :H)
7032 #
7033 # CONFIG_HEADER
7034 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007035 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04007036 {
7037 $as_echo "/* $configure_input */" \
7038 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7039 } >"$ac_tmp/config.h" \
7040 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7041 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7043$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007044 else
jfigusc7e66e32013-05-08 11:32:55 -04007045 rm -f "$ac_file"
7046 mv "$ac_tmp/config.h" "$ac_file" \
7047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007048 fi
7049 else
jfigusc7e66e32013-05-08 11:32:55 -04007050 $as_echo "/* $configure_input */" \
7051 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7052 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007053 fi
jfigusc7e66e32013-05-08 11:32:55 -04007054 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007055
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007056
jfigusc7e66e32013-05-08 11:32:55 -04007057 esac
7058
7059done # for ac_tag
7060
7061
7062as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007063_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007064ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04007065
jfigusc7e66e32013-05-08 11:32:55 -04007066test $ac_write_fail = 0 ||
7067 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7068
Cullen Jennings235513a2005-09-21 22:51:36 +00007069
7070# configure is writing to config.log, and then calls config.status.
7071# config.status does its own redirection, appending to config.log.
7072# Unfortunately, on DOS this fails, as config.log is still kept open
7073# by configure, so config.status won't be able to write to it; its
7074# output is simply discarded. So we exec the FD to /dev/null,
7075# effectively closing config.log, so it can be properly (re)opened and
7076# appended to by config.status. When coming back to configure, we
7077# need to make the FD available again.
7078if test "$no_create" != yes; then
7079 ac_cs_success=:
7080 ac_config_status_args=
7081 test "$silent" = yes &&
7082 ac_config_status_args="$ac_config_status_args --quiet"
7083 exec 5>/dev/null
7084 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7085 exec 5>>config.log
7086 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7087 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04007088 $ac_cs_success || as_fn_exit 1
7089fi
7090if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7092$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007093fi
7094
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00007095
7096# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04007097as_dir=crypto/cipher; as_fn_mkdir_p
7098as_dir=crypto/hash; as_fn_mkdir_p
7099as_dir=crypto/kernel; as_fn_mkdir_p
7100as_dir=crypto/math; as_fn_mkdir_p
7101as_dir=crypto/replay; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007102as_dir=crypto/test; as_fn_mkdir_p
7103as_dir=doc; as_fn_mkdir_p
7104as_dir=srtp; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007105as_dir=test; as_fn_mkdir_p