blob: 58083a37860d9cb890bb27e3972227a694b75f49 [file] [log] [blame]
Cullen Jennings235513a2005-09-21 22:51:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Pascal Bühler34acba62017-01-19 10:57:30 +01003# Generated by GNU Autoconf 2.69 for libsrtp2 2.1.0-pre.
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02004#
5# Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00006#
jfigusc7e66e32013-05-08 11:32:55 -04007#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
Cullen Jennings235513a2005-09-21 22:51:36 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
jfigusc7e66e32013-05-08 11:32:55 -040013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +000016
jfigusc7e66e32013-05-08 11:32:55 -040017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +000020 emulate sh
21 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -040022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -040025 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +000026else
jfigusc7e66e32013-05-08 11:32:55 -040027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
Cullen Jennings235513a2005-09-21 22:51:36 +000033fi
34
35
jfigusc7e66e32013-05-08 11:32:55 -040036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
Cullen Jennings235513a2005-09-21 22:51:36 +0000124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -0400129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -0400133
jfigusc7e66e32013-05-08 11:32:55 -0400134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://github.com/cisco/libsrtp/issues about your
271$0: system, including any error possibly output before this
jfigusc7e66e32013-05-08 11:32:55 -0400272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000424 as_expr=expr
425else
426 as_expr=false
427fi
428
jfigusc7e66e32013-05-08 11:32:55 -0400429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000430 as_basename=basename
431else
432 as_basename=false
433fi
434
jfigusc7e66e32013-05-08 11:32:55 -0400435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
Cullen Jennings235513a2005-09-21 22:51:36 +0000440
jfigusc7e66e32013-05-08 11:32:55 -0400441as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +0000442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -0400444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000459
Cullen Jennings235513a2005-09-21 22:51:36 +0000460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
Cullen Jennings235513a2005-09-21 22:51:36 +0000467
jfigusc7e66e32013-05-08 11:32:55 -0400468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
Cullen Jennings235513a2005-09-21 22:51:36 +0000477 sed '
jfigusc7e66e32013-05-08 11:32:55 -0400478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
Cullen Jennings235513a2005-09-21 22:51:36 +0000482 N
jfigusc7e66e32013-05-08 11:32:55 -0400483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Cullen Jennings235513a2005-09-21 22:51:36 +0000485 t loop
jfigusc7e66e32013-05-08 11:32:55 -0400486 s/-\n.*//
Cullen Jennings235513a2005-09-21 22:51:36 +0000487 ' >$as_me.lineno &&
jfigusc7e66e32013-05-08 11:32:55 -0400488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Cullen Jennings235513a2005-09-21 22:51:36 +0000490
jfigusc7e66e32013-05-08 11:32:55 -0400491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
Cullen Jennings235513a2005-09-21 22:51:36 +0000495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
jfigusc7e66e32013-05-08 11:32:55 -0400497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
Cullen Jennings235513a2005-09-21 22:51:36 +0000499 # Exit status is that of the last command.
500 exit
501}
502
jfigusc7e66e32013-05-08 11:32:55 -0400503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512*)
513 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000514esac
515
Cullen Jennings235513a2005-09-21 22:51:36 +0000516rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -0400517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -0600525 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -0400526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +0000536 fi
Cullen Jennings235513a2005-09-21 22:51:36 +0000537else
jfigusc7e66e32013-05-08 11:32:55 -0400538 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +0000539fi
jfigusc7e66e32013-05-08 11:32:55 -0400540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +0000542
543if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -0400544 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +0000545else
David McGrewfec49dd2005-09-23 19:34:11 +0000546 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +0000547 as_mkdir_p=false
548fi
549
jfigusc7e66e32013-05-08 11:32:55 -0400550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +0000552
553# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +0000554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000555
556# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +0000557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000558
559
jfigusc7e66e32013-05-08 11:32:55 -0400560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
Cullen Jennings235513a2005-09-21 22:51:36 +0000562
563# Name of the host.
jfigusc7e66e32013-05-08 11:32:55 -0400564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Cullen Jennings235513a2005-09-21 22:51:36 +0000565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
Cullen Jennings235513a2005-09-21 22:51:36 +0000568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
jfigusc7e66e32013-05-08 11:32:55 -0400572ac_clean_files=
Cullen Jennings235513a2005-09-21 22:51:36 +0000573ac_config_libobj_dir=.
jfigusc7e66e32013-05-08 11:32:55 -0400574LIBOBJS=
Cullen Jennings235513a2005-09-21 22:51:36 +0000575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
Cullen Jennings235513a2005-09-21 22:51:36 +0000579
580# Identity of this package.
jfigusd196e022014-11-20 16:43:44 -0500581PACKAGE_NAME='libsrtp2'
582PACKAGE_TARNAME='libsrtp2'
Pascal Bühler34acba62017-01-19 10:57:30 +0100583PACKAGE_VERSION='2.1.0-pre'
584PACKAGE_STRING='libsrtp2 2.1.0-pre'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200585PACKAGE_BUGREPORT='https://github.com/cisco/libsrtp/issues'
586PACKAGE_URL=''
Cullen Jennings235513a2005-09-21 22:51:36 +0000587
Cullen Jennings235513a2005-09-21 22:51:36 +0000588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -0400591#ifdef HAVE_SYS_TYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000592# include <sys/types.h>
593#endif
jfigusc7e66e32013-05-08 11:32:55 -0400594#ifdef HAVE_SYS_STAT_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000595# include <sys/stat.h>
596#endif
jfigusc7e66e32013-05-08 11:32:55 -0400597#ifdef STDC_HEADERS
Cullen Jennings235513a2005-09-21 22:51:36 +0000598# include <stdlib.h>
599# include <stddef.h>
600#else
jfigusc7e66e32013-05-08 11:32:55 -0400601# ifdef HAVE_STDLIB_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000602# include <stdlib.h>
603# endif
604#endif
jfigusc7e66e32013-05-08 11:32:55 -0400605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000607# include <memory.h>
608# endif
609# include <string.h>
610#endif
jfigusc7e66e32013-05-08 11:32:55 -0400611#ifdef HAVE_STRINGS_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000612# include <strings.h>
613#endif
jfigusc7e66e32013-05-08 11:32:55 -0400614#ifdef HAVE_INTTYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000615# include <inttypes.h>
Cullen Jennings235513a2005-09-21 22:51:36 +0000616#endif
jfigusc7e66e32013-05-08 11:32:55 -0400617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000621# include <unistd.h>
622#endif"
623
jfigusc7e66e32013-05-08 11:32:55 -0400624ac_subst_vars='LTLIBOBJS
625LIBOBJS
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200626HAVE_PKG_CONFIG
627PKG_CONFIG
Bernardo Torresb3c51422014-10-14 12:40:09 -0300628HAVE_PCAP
jfigusc7e66e32013-05-08 11:32:55 -0400629HMAC_OBJS
jfigusc7e66e32013-05-08 11:32:55 -0400630AES_ICM_OBJS
631USE_OPENSSL
632EXE
633host_os
634host_vendor
635host_cpu
636host
637build_os
638build_vendor
639build_cpu
640build
641EGREP
642GREP
643CPP
644INSTALL_DATA
645INSTALL_SCRIPT
646INSTALL_PROGRAM
jfigus1ce6a742015-04-06 08:54:01 -0400647RANLIB
jfigusc7e66e32013-05-08 11:32:55 -0400648OBJEXT
649EXEEXT
650ac_ct_CC
651CPPFLAGS
652LDFLAGS
653CFLAGS
654CC
jfigus1ce6a742015-04-06 08:54:01 -0400655ac_ct_AR
656AR
jfigusc7e66e32013-05-08 11:32:55 -0400657target_alias
658host_alias
659build_alias
660LIBS
661ECHO_T
662ECHO_N
663ECHO_C
664DEFS
665mandir
666localedir
667libdir
668psdir
669pdfdir
670dvidir
671htmldir
672infodir
673docdir
674oldincludedir
675includedir
676localstatedir
677sharedstatedir
678sysconfdir
679datadir
680datarootdir
681libexecdir
682sbindir
683bindir
684program_transform_name
685prefix
686exec_prefix
687PACKAGE_URL
688PACKAGE_BUGREPORT
689PACKAGE_STRING
690PACKAGE_VERSION
691PACKAGE_TARNAME
692PACKAGE_NAME
693PATH_SEPARATOR
694SHELL'
Cullen Jennings235513a2005-09-21 22:51:36 +0000695ac_subst_files=''
jfigusc7e66e32013-05-08 11:32:55 -0400696ac_user_opts='
697enable_option_checking
jfigusc7e66e32013-05-08 11:32:55 -0400698enable_debug
699enable_generic_aesicm
700enable_openssl
jfigus038d2cf2015-05-11 14:10:11 -0400701with_openssl_dir
702enable_openssl_kdf
jfigusc7e66e32013-05-08 11:32:55 -0400703enable_stdout
704enable_console
jfigusc7e66e32013-05-08 11:32:55 -0400705'
706 ac_precious_vars='build_alias
707host_alias
708target_alias
709CC
710CFLAGS
711LDFLAGS
712LIBS
713CPPFLAGS
714CPP'
715
Cullen Jennings235513a2005-09-21 22:51:36 +0000716
717# Initialize some variables set by options.
718ac_init_help=
719ac_init_version=false
jfigusc7e66e32013-05-08 11:32:55 -0400720ac_unrecognized_opts=
721ac_unrecognized_sep=
Cullen Jennings235513a2005-09-21 22:51:36 +0000722# The variables have the same names as the options, with
723# dashes changed to underlines.
724cache_file=/dev/null
725exec_prefix=NONE
726no_create=
727no_recursion=
728prefix=NONE
729program_prefix=NONE
730program_suffix=NONE
731program_transform_name=s,x,x,
732silent=
733site=
734srcdir=
735verbose=
736x_includes=NONE
737x_libraries=NONE
738
739# Installation directory options.
740# These are left unexpanded so users can "make install exec_prefix=/foo"
741# and all the variables that are supposed to be based on exec_prefix
742# by default will actually change.
743# Use braces instead of parens because sh, perl, etc. also accept them.
jfigusc7e66e32013-05-08 11:32:55 -0400744# (The list follows the same order as the GNU Coding Standards.)
Cullen Jennings235513a2005-09-21 22:51:36 +0000745bindir='${exec_prefix}/bin'
746sbindir='${exec_prefix}/sbin'
747libexecdir='${exec_prefix}/libexec'
jfigusc7e66e32013-05-08 11:32:55 -0400748datarootdir='${prefix}/share'
749datadir='${datarootdir}'
Cullen Jennings235513a2005-09-21 22:51:36 +0000750sysconfdir='${prefix}/etc'
751sharedstatedir='${prefix}/com'
752localstatedir='${prefix}/var'
Cullen Jennings235513a2005-09-21 22:51:36 +0000753includedir='${prefix}/include'
754oldincludedir='/usr/include'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200755docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
jfigusc7e66e32013-05-08 11:32:55 -0400756infodir='${datarootdir}/info'
757htmldir='${docdir}'
758dvidir='${docdir}'
759pdfdir='${docdir}'
760psdir='${docdir}'
761libdir='${exec_prefix}/lib'
762localedir='${datarootdir}/locale'
763mandir='${datarootdir}/man'
Cullen Jennings235513a2005-09-21 22:51:36 +0000764
765ac_prev=
jfigusc7e66e32013-05-08 11:32:55 -0400766ac_dashdash=
Cullen Jennings235513a2005-09-21 22:51:36 +0000767for ac_option
768do
769 # If the previous option needs an argument, assign it.
770 if test -n "$ac_prev"; then
jfigusc7e66e32013-05-08 11:32:55 -0400771 eval $ac_prev=\$ac_option
Cullen Jennings235513a2005-09-21 22:51:36 +0000772 ac_prev=
773 continue
774 fi
775
jfigusc7e66e32013-05-08 11:32:55 -0400776 case $ac_option in
777 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
778 *=) ac_optarg= ;;
779 *) ac_optarg=yes ;;
780 esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000781
782 # Accept the important Cygnus configure options, so we can diagnose typos.
783
jfigusc7e66e32013-05-08 11:32:55 -0400784 case $ac_dashdash$ac_option in
785 --)
786 ac_dashdash=yes ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000787
788 -bindir | --bindir | --bindi | --bind | --bin | --bi)
789 ac_prev=bindir ;;
790 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
791 bindir=$ac_optarg ;;
792
793 -build | --build | --buil | --bui | --bu)
794 ac_prev=build_alias ;;
795 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
796 build_alias=$ac_optarg ;;
797
798 -cache-file | --cache-file | --cache-fil | --cache-fi \
799 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
800 ac_prev=cache_file ;;
801 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
802 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
803 cache_file=$ac_optarg ;;
804
805 --config-cache | -C)
806 cache_file=config.cache ;;
807
jfigusc7e66e32013-05-08 11:32:55 -0400808 -datadir | --datadir | --datadi | --datad)
Cullen Jennings235513a2005-09-21 22:51:36 +0000809 ac_prev=datadir ;;
jfigusc7e66e32013-05-08 11:32:55 -0400810 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000811 datadir=$ac_optarg ;;
812
jfigusc7e66e32013-05-08 11:32:55 -0400813 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
814 | --dataroo | --dataro | --datar)
815 ac_prev=datarootdir ;;
816 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
817 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
818 datarootdir=$ac_optarg ;;
819
Cullen Jennings235513a2005-09-21 22:51:36 +0000820 -disable-* | --disable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400821 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000822 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400823 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
824 as_fn_error $? "invalid feature name: $ac_useropt"
825 ac_useropt_orig=$ac_useropt
826 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
827 case $ac_user_opts in
828 *"
829"enable_$ac_useropt"
830"*) ;;
831 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
832 ac_unrecognized_sep=', ';;
833 esac
834 eval enable_$ac_useropt=no ;;
835
836 -docdir | --docdir | --docdi | --doc | --do)
837 ac_prev=docdir ;;
838 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
839 docdir=$ac_optarg ;;
840
841 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
842 ac_prev=dvidir ;;
843 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
844 dvidir=$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000845
846 -enable-* | --enable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400847 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000848 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400849 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
850 as_fn_error $? "invalid feature name: $ac_useropt"
851 ac_useropt_orig=$ac_useropt
852 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
853 case $ac_user_opts in
854 *"
855"enable_$ac_useropt"
856"*) ;;
857 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
858 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000859 esac
jfigusc7e66e32013-05-08 11:32:55 -0400860 eval enable_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000861
862 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
863 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
864 | --exec | --exe | --ex)
865 ac_prev=exec_prefix ;;
866 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
867 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
868 | --exec=* | --exe=* | --ex=*)
869 exec_prefix=$ac_optarg ;;
870
871 -gas | --gas | --ga | --g)
872 # Obsolete; use --with-gas.
873 with_gas=yes ;;
874
875 -help | --help | --hel | --he | -h)
876 ac_init_help=long ;;
877 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
878 ac_init_help=recursive ;;
879 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
880 ac_init_help=short ;;
881
882 -host | --host | --hos | --ho)
883 ac_prev=host_alias ;;
884 -host=* | --host=* | --hos=* | --ho=*)
885 host_alias=$ac_optarg ;;
886
jfigusc7e66e32013-05-08 11:32:55 -0400887 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
888 ac_prev=htmldir ;;
889 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
890 | --ht=*)
891 htmldir=$ac_optarg ;;
892
Cullen Jennings235513a2005-09-21 22:51:36 +0000893 -includedir | --includedir | --includedi | --included | --include \
894 | --includ | --inclu | --incl | --inc)
895 ac_prev=includedir ;;
896 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
897 | --includ=* | --inclu=* | --incl=* | --inc=*)
898 includedir=$ac_optarg ;;
899
900 -infodir | --infodir | --infodi | --infod | --info | --inf)
901 ac_prev=infodir ;;
902 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
903 infodir=$ac_optarg ;;
904
905 -libdir | --libdir | --libdi | --libd)
906 ac_prev=libdir ;;
907 -libdir=* | --libdir=* | --libdi=* | --libd=*)
908 libdir=$ac_optarg ;;
909
910 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
911 | --libexe | --libex | --libe)
912 ac_prev=libexecdir ;;
913 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
914 | --libexe=* | --libex=* | --libe=*)
915 libexecdir=$ac_optarg ;;
916
jfigusc7e66e32013-05-08 11:32:55 -0400917 -localedir | --localedir | --localedi | --localed | --locale)
918 ac_prev=localedir ;;
919 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
920 localedir=$ac_optarg ;;
921
Cullen Jennings235513a2005-09-21 22:51:36 +0000922 -localstatedir | --localstatedir | --localstatedi | --localstated \
jfigusc7e66e32013-05-08 11:32:55 -0400923 | --localstate | --localstat | --localsta | --localst | --locals)
Cullen Jennings235513a2005-09-21 22:51:36 +0000924 ac_prev=localstatedir ;;
925 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
jfigusc7e66e32013-05-08 11:32:55 -0400926 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000927 localstatedir=$ac_optarg ;;
928
929 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
930 ac_prev=mandir ;;
931 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
932 mandir=$ac_optarg ;;
933
934 -nfp | --nfp | --nf)
935 # Obsolete; use --without-fp.
936 with_fp=no ;;
937
938 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
939 | --no-cr | --no-c | -n)
940 no_create=yes ;;
941
942 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
943 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
944 no_recursion=yes ;;
945
946 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
947 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
948 | --oldin | --oldi | --old | --ol | --o)
949 ac_prev=oldincludedir ;;
950 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
951 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
952 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
953 oldincludedir=$ac_optarg ;;
954
955 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
956 ac_prev=prefix ;;
957 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
958 prefix=$ac_optarg ;;
959
960 -program-prefix | --program-prefix | --program-prefi | --program-pref \
961 | --program-pre | --program-pr | --program-p)
962 ac_prev=program_prefix ;;
963 -program-prefix=* | --program-prefix=* | --program-prefi=* \
964 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
965 program_prefix=$ac_optarg ;;
966
967 -program-suffix | --program-suffix | --program-suffi | --program-suff \
968 | --program-suf | --program-su | --program-s)
969 ac_prev=program_suffix ;;
970 -program-suffix=* | --program-suffix=* | --program-suffi=* \
971 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
972 program_suffix=$ac_optarg ;;
973
974 -program-transform-name | --program-transform-name \
975 | --program-transform-nam | --program-transform-na \
976 | --program-transform-n | --program-transform- \
977 | --program-transform | --program-transfor \
978 | --program-transfo | --program-transf \
979 | --program-trans | --program-tran \
980 | --progr-tra | --program-tr | --program-t)
981 ac_prev=program_transform_name ;;
982 -program-transform-name=* | --program-transform-name=* \
983 | --program-transform-nam=* | --program-transform-na=* \
984 | --program-transform-n=* | --program-transform-=* \
985 | --program-transform=* | --program-transfor=* \
986 | --program-transfo=* | --program-transf=* \
987 | --program-trans=* | --program-tran=* \
988 | --progr-tra=* | --program-tr=* | --program-t=*)
989 program_transform_name=$ac_optarg ;;
990
jfigusc7e66e32013-05-08 11:32:55 -0400991 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
992 ac_prev=pdfdir ;;
993 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
994 pdfdir=$ac_optarg ;;
995
996 -psdir | --psdir | --psdi | --psd | --ps)
997 ac_prev=psdir ;;
998 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
999 psdir=$ac_optarg ;;
1000
Cullen Jennings235513a2005-09-21 22:51:36 +00001001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1002 | -silent | --silent | --silen | --sile | --sil)
1003 silent=yes ;;
1004
1005 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1006 ac_prev=sbindir ;;
1007 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1008 | --sbi=* | --sb=*)
1009 sbindir=$ac_optarg ;;
1010
1011 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1012 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1013 | --sharedst | --shareds | --shared | --share | --shar \
1014 | --sha | --sh)
1015 ac_prev=sharedstatedir ;;
1016 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1017 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1018 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1019 | --sha=* | --sh=*)
1020 sharedstatedir=$ac_optarg ;;
1021
1022 -site | --site | --sit)
1023 ac_prev=site ;;
1024 -site=* | --site=* | --sit=*)
1025 site=$ac_optarg ;;
1026
1027 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1028 ac_prev=srcdir ;;
1029 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1030 srcdir=$ac_optarg ;;
1031
1032 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1033 | --syscon | --sysco | --sysc | --sys | --sy)
1034 ac_prev=sysconfdir ;;
1035 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1036 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1037 sysconfdir=$ac_optarg ;;
1038
1039 -target | --target | --targe | --targ | --tar | --ta | --t)
1040 ac_prev=target_alias ;;
1041 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1042 target_alias=$ac_optarg ;;
1043
1044 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1045 verbose=yes ;;
1046
1047 -version | --version | --versio | --versi | --vers | -V)
1048 ac_init_version=: ;;
1049
1050 -with-* | --with-*)
jfigusc7e66e32013-05-08 11:32:55 -04001051 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001052 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid package name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1058 *"
1059"with_$ac_useropt"
1060"*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +00001063 esac
jfigusc7e66e32013-05-08 11:32:55 -04001064 eval with_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001065
1066 -without-* | --without-*)
jfigusc7e66e32013-05-08 11:32:55 -04001067 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001068 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 as_fn_error $? "invalid package name: $ac_useropt"
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1074 *"
1075"with_$ac_useropt"
1076"*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1079 esac
1080 eval with_$ac_useropt=no ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001081
1082 --x)
1083 # Obsolete; use --with-x.
1084 with_x=yes ;;
1085
1086 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1087 | --x-incl | --x-inc | --x-in | --x-i)
1088 ac_prev=x_includes ;;
1089 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1090 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1091 x_includes=$ac_optarg ;;
1092
1093 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1094 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1095 ac_prev=x_libraries ;;
1096 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1097 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1098 x_libraries=$ac_optarg ;;
1099
jfigusc7e66e32013-05-08 11:32:55 -04001100 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1101Try \`$0 --help' for more information"
Cullen Jennings235513a2005-09-21 22:51:36 +00001102 ;;
1103
1104 *=*)
1105 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1106 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001107 case $ac_envvar in #(
1108 '' | [0-9]* | *[!_$as_cr_alnum]* )
1109 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1110 esac
1111 eval $ac_envvar=\$ac_optarg
Cullen Jennings235513a2005-09-21 22:51:36 +00001112 export $ac_envvar ;;
1113
1114 *)
1115 # FIXME: should be removed in autoconf 3.0.
jfigusc7e66e32013-05-08 11:32:55 -04001116 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Cullen Jennings235513a2005-09-21 22:51:36 +00001117 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jfigusc7e66e32013-05-08 11:32:55 -04001118 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1119 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Cullen Jennings235513a2005-09-21 22:51:36 +00001120 ;;
1121
1122 esac
1123done
1124
1125if test -n "$ac_prev"; then
1126 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jfigusc7e66e32013-05-08 11:32:55 -04001127 as_fn_error $? "missing argument to $ac_option"
Cullen Jennings235513a2005-09-21 22:51:36 +00001128fi
1129
jfigusc7e66e32013-05-08 11:32:55 -04001130if test -n "$ac_unrecognized_opts"; then
1131 case $enable_option_checking in
1132 no) ;;
1133 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1134 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001135 esac
jfigusc7e66e32013-05-08 11:32:55 -04001136fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001137
jfigusc7e66e32013-05-08 11:32:55 -04001138# Check all directory arguments for consistency.
1139for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1140 datadir sysconfdir sharedstatedir localstatedir includedir \
1141 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1142 libdir localedir mandir
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001143do
jfigusc7e66e32013-05-08 11:32:55 -04001144 eval ac_val=\$$ac_var
1145 # Remove trailing slashes.
jfigusa14b5a02013-03-29 12:24:12 -04001146 case $ac_val in
jfigusc7e66e32013-05-08 11:32:55 -04001147 */ )
1148 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1149 eval $ac_var=\$ac_val;;
jfigusa14b5a02013-03-29 12:24:12 -04001150 esac
jfigusc7e66e32013-05-08 11:32:55 -04001151 # Be sure to have absolute directory names.
1152 case $ac_val in
1153 [\\/$]* | ?:[\\/]* ) continue;;
1154 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1155 esac
1156 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Cullen Jennings235513a2005-09-21 22:51:36 +00001157done
1158
1159# There might be people who depend on the old broken behavior: `$host'
1160# used to hold the argument of --host etc.
1161# FIXME: To remove some day.
1162build=$build_alias
1163host=$host_alias
1164target=$target_alias
1165
1166# FIXME: To remove some day.
1167if test "x$host_alias" != x; then
1168 if test "x$build_alias" = x; then
1169 cross_compiling=maybe
Cullen Jennings235513a2005-09-21 22:51:36 +00001170 elif test "x$build_alias" != "x$host_alias"; then
1171 cross_compiling=yes
1172 fi
1173fi
1174
1175ac_tool_prefix=
1176test -n "$host_alias" && ac_tool_prefix=$host_alias-
1177
1178test "$silent" = yes && exec 6>/dev/null
1179
1180
jfigusc7e66e32013-05-08 11:32:55 -04001181ac_pwd=`pwd` && test -n "$ac_pwd" &&
1182ac_ls_di=`ls -di .` &&
1183ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1184 as_fn_error $? "working directory cannot be determined"
1185test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1186 as_fn_error $? "pwd does not report name of working directory"
1187
1188
Cullen Jennings235513a2005-09-21 22:51:36 +00001189# Find the source files, if location was not specified.
1190if test -z "$srcdir"; then
1191 ac_srcdir_defaulted=yes
jfigusc7e66e32013-05-08 11:32:55 -04001192 # Try the directory containing this script, then the parent directory.
1193 ac_confdir=`$as_dirname -- "$as_myself" ||
1194$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1195 X"$as_myself" : 'X\(//\)[^/]' \| \
1196 X"$as_myself" : 'X\(//\)$' \| \
1197 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1198$as_echo X"$as_myself" |
1199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1200 s//\1/
1201 q
1202 }
1203 /^X\(\/\/\)[^/].*/{
1204 s//\1/
1205 q
1206 }
1207 /^X\(\/\/\)$/{
1208 s//\1/
1209 q
1210 }
1211 /^X\(\/\).*/{
1212 s//\1/
1213 q
1214 }
1215 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001216 srcdir=$ac_confdir
jfigusc7e66e32013-05-08 11:32:55 -04001217 if test ! -r "$srcdir/$ac_unique_file"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00001218 srcdir=..
1219 fi
1220else
1221 ac_srcdir_defaulted=no
1222fi
jfigusc7e66e32013-05-08 11:32:55 -04001223if test ! -r "$srcdir/$ac_unique_file"; then
1224 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1225 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Cullen Jennings235513a2005-09-21 22:51:36 +00001226fi
jfigusc7e66e32013-05-08 11:32:55 -04001227ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1228ac_abs_confdir=`(
1229 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1230 pwd)`
1231# When building in place, set srcdir=.
1232if test "$ac_abs_confdir" = "$ac_pwd"; then
1233 srcdir=.
1234fi
1235# Remove unnecessary trailing slashes from srcdir.
1236# Double slashes in file names in object file debugging info
1237# mess up M-x gdb in Emacs.
1238case $srcdir in
1239*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1240esac
1241for ac_var in $ac_precious_vars; do
1242 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_env_${ac_var}_value=\$${ac_var}
1244 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1245 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1246done
Cullen Jennings235513a2005-09-21 22:51:36 +00001247
1248#
1249# Report the --help message.
1250#
1251if test "$ac_init_help" = "long"; then
1252 # Omit some internal or obsolete options to make the list less imposing.
1253 # This message is too long to be a string in the A/UX 3.1 sh.
1254 cat <<_ACEOF
Pascal Bühler34acba62017-01-19 10:57:30 +01001255\`configure' configures libsrtp2 2.1.0-pre to adapt to many kinds of systems.
Cullen Jennings235513a2005-09-21 22:51:36 +00001256
1257Usage: $0 [OPTION]... [VAR=VALUE]...
1258
1259To assign environment variables (e.g., CC, CFLAGS...), specify them as
1260VAR=VALUE. See below for descriptions of some of the useful variables.
1261
1262Defaults for the options are specified in brackets.
1263
1264Configuration:
1265 -h, --help display this help and exit
1266 --help=short display options specific to this package
1267 --help=recursive display the short help of all the included packages
1268 -V, --version display version information and exit
jfigusc7e66e32013-05-08 11:32:55 -04001269 -q, --quiet, --silent do not print \`checking ...' messages
Cullen Jennings235513a2005-09-21 22:51:36 +00001270 --cache-file=FILE cache test results in FILE [disabled]
1271 -C, --config-cache alias for \`--cache-file=config.cache'
1272 -n, --no-create do not create output files
1273 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1274
Cullen Jennings235513a2005-09-21 22:51:36 +00001275Installation directories:
1276 --prefix=PREFIX install architecture-independent files in PREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001277 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +00001278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001279 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +00001280
1281By default, \`make install' will install all the files in
1282\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1283an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1284for instance \`--prefix=\$HOME'.
1285
1286For better control, use the options below.
1287
1288Fine tuning of the installation directories:
jfigusc7e66e32013-05-08 11:32:55 -04001289 --bindir=DIR user executables [EPREFIX/bin]
1290 --sbindir=DIR system admin executables [EPREFIX/sbin]
1291 --libexecdir=DIR program executables [EPREFIX/libexec]
1292 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1293 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1294 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1295 --libdir=DIR object code libraries [EPREFIX/lib]
1296 --includedir=DIR C header files [PREFIX/include]
1297 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1298 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1299 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1300 --infodir=DIR info documentation [DATAROOTDIR/info]
1301 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1302 --mandir=DIR man documentation [DATAROOTDIR/man]
jfigusd196e022014-11-20 16:43:44 -05001303 --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp2]
jfigusc7e66e32013-05-08 11:32:55 -04001304 --htmldir=DIR html documentation [DOCDIR]
1305 --dvidir=DIR dvi documentation [DOCDIR]
1306 --pdfdir=DIR pdf documentation [DOCDIR]
1307 --psdir=DIR ps documentation [DOCDIR]
Cullen Jennings235513a2005-09-21 22:51:36 +00001308_ACEOF
1309
1310 cat <<\_ACEOF
1311
1312System types:
1313 --build=BUILD configure for building on BUILD [guessed]
1314 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1315_ACEOF
1316fi
1317
1318if test -n "$ac_init_help"; then
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001319 case $ac_init_help in
Pascal Bühler34acba62017-01-19 10:57:30 +01001320 short | recursive ) echo "Configuration of libsrtp2 2.1.0-pre:";;
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001321 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00001322 cat <<\_ACEOF
1323
1324Optional Features:
jfigusc7e66e32013-05-08 11:32:55 -04001325 --disable-option-checking ignore unrecognized --enable/--with options
Cullen Jennings235513a2005-09-21 22:51:36 +00001326 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1327 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
David McGrewb67061f2005-09-28 14:23:06 +00001328 --disable-debug do not compile in dynamic debugging system
1329 --enable-generic-aesicm compile in changes for ISMAcryp
jfigusc7e66e32013-05-08 11:32:55 -04001330 --enable-openssl compile in OpenSSL crypto engine
jfigus038d2cf2015-05-11 14:10:11 -04001331 --enable-openssl-kdf Use OpenSSL KDF algorithm
jfigus97a80f42014-11-04 14:15:40 -05001332 --enable-stdout use stdout for debug/error reporting
David McGrewb67061f2005-09-28 14:23:06 +00001333 --enable-console use /dev/console for error reporting
Cullen Jennings235513a2005-09-21 22:51:36 +00001334
jfigus038d2cf2015-05-11 14:10:11 -04001335Optional Packages:
1336 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1337 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1338 --with-openssl-dir Location of OpenSSL installation
1339
Cullen Jennings235513a2005-09-21 22:51:36 +00001340Some influential environment variables:
1341 CC C compiler command
1342 CFLAGS C compiler flags
1343 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1344 nonstandard directory <lib dir>
jfigusc7e66e32013-05-08 11:32:55 -04001345 LIBS libraries to pass to the linker, e.g. -l<library>
1346 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1347 you have headers in a nonstandard directory <include dir>
Cullen Jennings235513a2005-09-21 22:51:36 +00001348 CPP C preprocessor
1349
1350Use these variables to override the choices made by `configure' or to help
1351it to find libraries and programs with nonstandard names/locations.
1352
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001353Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00001354_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001355ac_status=$?
Cullen Jennings235513a2005-09-21 22:51:36 +00001356fi
1357
1358if test "$ac_init_help" = "recursive"; then
1359 # If there are subdirs, report their specific --help.
Cullen Jennings235513a2005-09-21 22:51:36 +00001360 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jfigusc7e66e32013-05-08 11:32:55 -04001361 test -d "$ac_dir" ||
1362 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1363 continue
Cullen Jennings235513a2005-09-21 22:51:36 +00001364 ac_builddir=.
1365
jfigusc7e66e32013-05-08 11:32:55 -04001366case "$ac_dir" in
1367.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1368*)
1369 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1370 # A ".." for each directory in $ac_dir_suffix.
1371 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1372 case $ac_top_builddir_sub in
1373 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1374 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1375 esac ;;
1376esac
1377ac_abs_top_builddir=$ac_pwd
1378ac_abs_builddir=$ac_pwd$ac_dir_suffix
1379# for backward compatibility:
1380ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00001381
1382case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04001383 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00001384 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04001385 ac_top_srcdir=$ac_top_builddir_sub
1386 ac_abs_top_srcdir=$ac_pwd ;;
1387 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001388 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04001389 ac_top_srcdir=$srcdir
1390 ac_abs_top_srcdir=$srcdir ;;
1391 *) # Relative name.
1392 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1393 ac_top_srcdir=$ac_top_build_prefix$srcdir
1394 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001395esac
jfigusc7e66e32013-05-08 11:32:55 -04001396ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001397
jfigusc7e66e32013-05-08 11:32:55 -04001398 cd "$ac_dir" || { ac_status=$?; continue; }
1399 # Check for guested configure.
1400 if test -f "$ac_srcdir/configure.gnu"; then
1401 echo &&
1402 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1403 elif test -f "$ac_srcdir/configure"; then
1404 echo &&
1405 $SHELL "$ac_srcdir/configure" --help=recursive
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001406 else
jfigusc7e66e32013-05-08 11:32:55 -04001407 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1408 fi || ac_status=$?
1409 cd "$ac_pwd" || { ac_status=$?; break; }
Cullen Jennings235513a2005-09-21 22:51:36 +00001410 done
1411fi
1412
jfigusc7e66e32013-05-08 11:32:55 -04001413test -n "$ac_init_help" && exit $ac_status
Cullen Jennings235513a2005-09-21 22:51:36 +00001414if $ac_init_version; then
1415 cat <<\_ACEOF
Pascal Bühler34acba62017-01-19 10:57:30 +01001416libsrtp2 configure 2.1.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04001417generated by GNU Autoconf 2.69
Cullen Jennings235513a2005-09-21 22:51:36 +00001418
jfigusc7e66e32013-05-08 11:32:55 -04001419Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00001420This configure script is free software; the Free Software Foundation
1421gives unlimited permission to copy, distribute and modify it.
1422_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001423 exit
Cullen Jennings235513a2005-09-21 22:51:36 +00001424fi
jfigusc7e66e32013-05-08 11:32:55 -04001425
1426## ------------------------ ##
1427## Autoconf initialization. ##
1428## ------------------------ ##
1429
1430# ac_fn_c_try_compile LINENO
1431# --------------------------
1432# Try to compile conftest.$ac_ext, and return whether this succeeded.
1433ac_fn_c_try_compile ()
1434{
1435 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1436 rm -f conftest.$ac_objext
1437 if { { ac_try="$ac_compile"
1438case "(($ac_try" in
1439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1440 *) ac_try_echo=$ac_try;;
1441esac
1442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1443$as_echo "$ac_try_echo"; } >&5
1444 (eval "$ac_compile") 2>conftest.err
1445 ac_status=$?
1446 if test -s conftest.err; then
1447 grep -v '^ *+' conftest.err >conftest.er1
1448 cat conftest.er1 >&5
1449 mv -f conftest.er1 conftest.err
1450 fi
1451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1452 test $ac_status = 0; } && {
1453 test -z "$ac_c_werror_flag" ||
1454 test ! -s conftest.err
1455 } && test -s conftest.$ac_objext; then :
1456 ac_retval=0
1457else
1458 $as_echo "$as_me: failed program was:" >&5
1459sed 's/^/| /' conftest.$ac_ext >&5
1460
1461 ac_retval=1
1462fi
1463 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1464 as_fn_set_status $ac_retval
1465
1466} # ac_fn_c_try_compile
1467
1468# ac_fn_c_try_run LINENO
1469# ----------------------
1470# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1471# that executables *can* be run.
1472ac_fn_c_try_run ()
1473{
1474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1475 if { { ac_try="$ac_link"
1476case "(($ac_try" in
1477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478 *) ac_try_echo=$ac_try;;
1479esac
1480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481$as_echo "$ac_try_echo"; } >&5
1482 (eval "$ac_link") 2>&5
1483 ac_status=$?
1484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1485 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1486 { { case "(($ac_try" in
1487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1488 *) ac_try_echo=$ac_try;;
1489esac
1490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491$as_echo "$ac_try_echo"; } >&5
1492 (eval "$ac_try") 2>&5
1493 ac_status=$?
1494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1495 test $ac_status = 0; }; }; then :
1496 ac_retval=0
1497else
1498 $as_echo "$as_me: program exited with status $ac_status" >&5
1499 $as_echo "$as_me: failed program was:" >&5
1500sed 's/^/| /' conftest.$ac_ext >&5
1501
1502 ac_retval=$ac_status
1503fi
1504 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1505 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1506 as_fn_set_status $ac_retval
1507
1508} # ac_fn_c_try_run
1509
1510# ac_fn_c_try_cpp LINENO
1511# ----------------------
1512# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1513ac_fn_c_try_cpp ()
1514{
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 if { { ac_try="$ac_cpp conftest.$ac_ext"
1517case "(($ac_try" in
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1520esac
1521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522$as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1524 ac_status=$?
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1529 fi
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } > conftest.i && {
1532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1533 test ! -s conftest.err
1534 }; then :
1535 ac_retval=0
1536else
1537 $as_echo "$as_me: failed program was:" >&5
1538sed 's/^/| /' conftest.$ac_ext >&5
1539
1540 ac_retval=1
1541fi
1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543 as_fn_set_status $ac_retval
1544
1545} # ac_fn_c_try_cpp
1546
1547# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1548# -------------------------------------------------------
1549# Tests whether HEADER exists and can be compiled using the include files in
1550# INCLUDES, setting the cache variable VAR accordingly.
1551ac_fn_c_check_header_compile ()
1552{
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1555$as_echo_n "checking for $2... " >&6; }
1556if eval \${$3+:} false; then :
1557 $as_echo_n "(cached) " >&6
1558else
1559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1560/* end confdefs.h. */
1561$4
1562#include <$2>
1563_ACEOF
1564if ac_fn_c_try_compile "$LINENO"; then :
1565 eval "$3=yes"
1566else
1567 eval "$3=no"
1568fi
1569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1570fi
1571eval ac_res=\$$3
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1573$as_echo "$ac_res" >&6; }
1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575
1576} # ac_fn_c_check_header_compile
1577
1578# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1579# -------------------------------------------------------
1580# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1581# the include files in INCLUDES and setting the cache variable VAR
1582# accordingly.
1583ac_fn_c_check_header_mongrel ()
1584{
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 if eval \${$3+:} false; then :
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1588$as_echo_n "checking for $2... " >&6; }
1589if eval \${$3+:} false; then :
1590 $as_echo_n "(cached) " >&6
1591fi
1592eval ac_res=\$$3
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1594$as_echo "$ac_res" >&6; }
1595else
1596 # Is the header compilable?
1597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1598$as_echo_n "checking $2 usability... " >&6; }
1599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1600/* end confdefs.h. */
1601$4
1602#include <$2>
1603_ACEOF
1604if ac_fn_c_try_compile "$LINENO"; then :
1605 ac_header_compiler=yes
1606else
1607 ac_header_compiler=no
1608fi
1609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1611$as_echo "$ac_header_compiler" >&6; }
1612
1613# Is the header present?
1614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1615$as_echo_n "checking $2 presence... " >&6; }
1616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617/* end confdefs.h. */
1618#include <$2>
1619_ACEOF
1620if ac_fn_c_try_cpp "$LINENO"; then :
1621 ac_header_preproc=yes
1622else
1623 ac_header_preproc=no
1624fi
1625rm -f conftest.err conftest.i conftest.$ac_ext
1626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1627$as_echo "$ac_header_preproc" >&6; }
1628
1629# So? What about this header?
1630case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1631 yes:no: )
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1633$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1635$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1636 ;;
1637 no:yes:* )
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1639$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1641$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1643$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1645$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1647$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001648( $as_echo "## ------------------------------------------------------ ##
1649## Report this to https://github.com/cisco/libsrtp/issues ##
1650## ------------------------------------------------------ ##"
1651 ) | sed "s/^/$as_me: WARNING: /" >&2
jfigusc7e66e32013-05-08 11:32:55 -04001652 ;;
1653esac
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655$as_echo_n "checking for $2... " >&6; }
1656if eval \${$3+:} false; then :
1657 $as_echo_n "(cached) " >&6
1658else
1659 eval "$3=\$ac_header_compiler"
1660fi
1661eval ac_res=\$$3
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663$as_echo "$ac_res" >&6; }
1664fi
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666
1667} # ac_fn_c_check_header_mongrel
1668
1669# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1670# -------------------------------------------
1671# Tests whether TYPE exists after having included INCLUDES, setting cache
1672# variable VAR accordingly.
1673ac_fn_c_check_type ()
1674{
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677$as_echo_n "checking for $2... " >&6; }
1678if eval \${$3+:} false; then :
1679 $as_echo_n "(cached) " >&6
1680else
1681 eval "$3=no"
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683/* end confdefs.h. */
1684$4
1685int
1686main ()
1687{
1688if (sizeof ($2))
1689 return 0;
1690 ;
1691 return 0;
1692}
1693_ACEOF
1694if ac_fn_c_try_compile "$LINENO"; then :
1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696/* end confdefs.h. */
1697$4
1698int
1699main ()
1700{
1701if (sizeof (($2)))
1702 return 0;
1703 ;
1704 return 0;
1705}
1706_ACEOF
1707if ac_fn_c_try_compile "$LINENO"; then :
1708
1709else
1710 eval "$3=yes"
1711fi
1712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713fi
1714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1715fi
1716eval ac_res=\$$3
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718$as_echo "$ac_res" >&6; }
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720
1721} # ac_fn_c_check_type
1722
1723# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1724# --------------------------------------------
1725# Tries to find the compile-time value of EXPR in a program that includes
1726# INCLUDES, setting VAR accordingly. Returns whether the value could be
1727# computed
1728ac_fn_c_compute_int ()
1729{
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if test "$cross_compiling" = yes; then
1732 # Depending upon the size, compute the lo and hi bounds.
1733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734/* end confdefs.h. */
1735$4
1736int
1737main ()
1738{
1739static int test_array [1 - 2 * !(($2) >= 0)];
1740test_array [0] = 0;
1741return test_array [0];
1742
1743 ;
1744 return 0;
1745}
1746_ACEOF
1747if ac_fn_c_try_compile "$LINENO"; then :
1748 ac_lo=0 ac_mid=0
1749 while :; do
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751/* end confdefs.h. */
1752$4
1753int
1754main ()
1755{
1756static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1757test_array [0] = 0;
1758return test_array [0];
1759
1760 ;
1761 return 0;
1762}
1763_ACEOF
1764if ac_fn_c_try_compile "$LINENO"; then :
1765 ac_hi=$ac_mid; break
1766else
1767 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1768 if test $ac_lo -le $ac_mid; then
1769 ac_lo= ac_hi=
1770 break
1771 fi
1772 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1773fi
1774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775 done
1776else
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778/* end confdefs.h. */
1779$4
1780int
1781main ()
1782{
1783static int test_array [1 - 2 * !(($2) < 0)];
1784test_array [0] = 0;
1785return test_array [0];
1786
1787 ;
1788 return 0;
1789}
1790_ACEOF
1791if ac_fn_c_try_compile "$LINENO"; then :
1792 ac_hi=-1 ac_mid=-1
1793 while :; do
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795/* end confdefs.h. */
1796$4
1797int
1798main ()
1799{
1800static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1801test_array [0] = 0;
1802return test_array [0];
1803
1804 ;
1805 return 0;
1806}
1807_ACEOF
1808if ac_fn_c_try_compile "$LINENO"; then :
1809 ac_lo=$ac_mid; break
1810else
1811 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1812 if test $ac_mid -le $ac_hi; then
1813 ac_lo= ac_hi=
1814 break
1815 fi
1816 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1817fi
1818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 done
1820else
1821 ac_lo= ac_hi=
1822fi
1823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824fi
1825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826# Binary search between lo and hi bounds.
1827while test "x$ac_lo" != "x$ac_hi"; do
1828 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h. */
1831$4
1832int
1833main ()
1834{
1835static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1836test_array [0] = 0;
1837return test_array [0];
1838
1839 ;
1840 return 0;
1841}
1842_ACEOF
1843if ac_fn_c_try_compile "$LINENO"; then :
1844 ac_hi=$ac_mid
1845else
1846 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1847fi
1848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849done
1850case $ac_lo in #((
1851?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1852'') ac_retval=1 ;;
1853esac
1854 else
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856/* end confdefs.h. */
1857$4
1858static long int longval () { return $2; }
1859static unsigned long int ulongval () { return $2; }
1860#include <stdio.h>
1861#include <stdlib.h>
1862int
1863main ()
1864{
1865
1866 FILE *f = fopen ("conftest.val", "w");
1867 if (! f)
1868 return 1;
1869 if (($2) < 0)
1870 {
1871 long int i = longval ();
1872 if (i != ($2))
1873 return 1;
1874 fprintf (f, "%ld", i);
1875 }
1876 else
1877 {
1878 unsigned long int i = ulongval ();
1879 if (i != ($2))
1880 return 1;
1881 fprintf (f, "%lu", i);
1882 }
1883 /* Do not output a trailing newline, as this causes \r\n confusion
1884 on some platforms. */
1885 return ferror (f) || fclose (f) != 0;
1886
1887 ;
1888 return 0;
1889}
1890_ACEOF
1891if ac_fn_c_try_run "$LINENO"; then :
1892 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1893else
1894 ac_retval=1
1895fi
1896rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1897 conftest.$ac_objext conftest.beam conftest.$ac_ext
1898rm -f conftest.val
1899
1900 fi
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1903
1904} # ac_fn_c_compute_int
1905
1906# ac_fn_c_try_link LINENO
1907# -----------------------
1908# Try to link conftest.$ac_ext, and return whether this succeeded.
1909ac_fn_c_try_link ()
1910{
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 rm -f conftest.$ac_objext conftest$ac_exeext
1913 if { { ac_try="$ac_link"
1914case "(($ac_try" in
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1917esac
1918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919$as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_link") 2>conftest.err
1921 ac_status=$?
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1926 fi
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && {
1929 test -z "$ac_c_werror_flag" ||
1930 test ! -s conftest.err
1931 } && test -s conftest$ac_exeext && {
1932 test "$cross_compiling" = yes ||
1933 test -x conftest$ac_exeext
1934 }; then :
1935 ac_retval=0
1936else
1937 $as_echo "$as_me: failed program was:" >&5
1938sed 's/^/| /' conftest.$ac_ext >&5
1939
1940 ac_retval=1
1941fi
1942 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1943 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1944 # interfere with the next link command; also delete a directory that is
1945 # left behind by Apple's compiler. We do this before executing the actions.
1946 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 as_fn_set_status $ac_retval
1949
1950} # ac_fn_c_try_link
1951
1952# ac_fn_c_check_func LINENO FUNC VAR
1953# ----------------------------------
1954# Tests whether FUNC exists, setting the cache variable VAR accordingly
1955ac_fn_c_check_func ()
1956{
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959$as_echo_n "checking for $2... " >&6; }
1960if eval \${$3+:} false; then :
1961 $as_echo_n "(cached) " >&6
1962else
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964/* end confdefs.h. */
1965/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1967#define $2 innocuous_$2
1968
1969/* System header to define __stub macros and hopefully few prototypes,
1970 which can conflict with char $2 (); below.
1971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1972 <limits.h> exists even on freestanding compilers. */
1973
1974#ifdef __STDC__
1975# include <limits.h>
1976#else
1977# include <assert.h>
1978#endif
1979
1980#undef $2
1981
1982/* Override any GCC internal prototype to avoid an error.
1983 Use char because int might match the return type of a GCC
1984 builtin and then its argument prototype would still apply. */
1985#ifdef __cplusplus
1986extern "C"
1987#endif
1988char $2 ();
1989/* The GNU C library defines this for functions which it implements
1990 to always fail with ENOSYS. Some functions are actually named
1991 something starting with __ and the normal name is an alias. */
1992#if defined __stub_$2 || defined __stub___$2
1993choke me
1994#endif
1995
1996int
1997main ()
1998{
1999return $2 ();
2000 ;
2001 return 0;
2002}
2003_ACEOF
2004if ac_fn_c_try_link "$LINENO"; then :
2005 eval "$3=yes"
2006else
2007 eval "$3=no"
2008fi
2009rm -f core conftest.err conftest.$ac_objext \
2010 conftest$ac_exeext conftest.$ac_ext
2011fi
2012eval ac_res=\$$3
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014$as_echo "$ac_res" >&6; }
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016
2017} # ac_fn_c_check_func
2018cat >config.log <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002019This file contains any messages produced by compilers while
2020running configure, to aid debugging if configure makes a mistake.
2021
Pascal Bühler34acba62017-01-19 10:57:30 +01002022It was created by libsrtp2 $as_me 2.1.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04002023generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00002024
2025 $ $0 $@
2026
2027_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002028exec 5>>config.log
Cullen Jennings235513a2005-09-21 22:51:36 +00002029{
2030cat <<_ASUNAME
2031## --------- ##
2032## Platform. ##
2033## --------- ##
2034
2035hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2036uname -m = `(uname -m) 2>/dev/null || echo unknown`
2037uname -r = `(uname -r) 2>/dev/null || echo unknown`
2038uname -s = `(uname -s) 2>/dev/null || echo unknown`
2039uname -v = `(uname -v) 2>/dev/null || echo unknown`
2040
2041/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2042/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2043
2044/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2045/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2046/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
jfigusc7e66e32013-05-08 11:32:55 -04002047/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Cullen Jennings235513a2005-09-21 22:51:36 +00002048/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2049/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2050/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2051
2052_ASUNAME
2053
2054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055for as_dir in $PATH
2056do
2057 IFS=$as_save_IFS
2058 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002059 $as_echo "PATH: $as_dir"
2060 done
2061IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002062
2063} >&5
2064
2065cat >&5 <<_ACEOF
2066
2067
2068## ----------- ##
2069## Core tests. ##
2070## ----------- ##
2071
2072_ACEOF
2073
2074
2075# Keep a trace of the command line.
2076# Strip out --no-create and --no-recursion so they do not pile up.
2077# Strip out --silent because we don't want to record it for future runs.
2078# Also quote any args containing shell meta-characters.
2079# Make two passes to allow for proper duplicate-argument suppression.
2080ac_configure_args=
2081ac_configure_args0=
2082ac_configure_args1=
Cullen Jennings235513a2005-09-21 22:51:36 +00002083ac_must_keep_next=false
2084for ac_pass in 1 2
2085do
2086 for ac_arg
2087 do
2088 case $ac_arg in
2089 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2091 | -silent | --silent | --silen | --sile | --sil)
2092 continue ;;
jfigusc7e66e32013-05-08 11:32:55 -04002093 *\'*)
2094 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002095 esac
2096 case $ac_pass in
jfigusc7e66e32013-05-08 11:32:55 -04002097 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002098 2)
jfigusc7e66e32013-05-08 11:32:55 -04002099 as_fn_append ac_configure_args1 " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002100 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00002101 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00002102 else
David McGrewfec49dd2005-09-23 19:34:11 +00002103 case $ac_arg in
2104 *=* | --config-cache | -C | -disable-* | --disable-* \
2105 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2106 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2107 | -with-* | --with-* | -without-* | --without-* | --x)
2108 case "$ac_configure_args0 " in
2109 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2110 esac
2111 ;;
2112 -* ) ac_must_keep_next=true ;;
2113 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00002114 fi
jfigusc7e66e32013-05-08 11:32:55 -04002115 as_fn_append ac_configure_args " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002116 ;;
2117 esac
2118 done
2119done
jfigusc7e66e32013-05-08 11:32:55 -04002120{ ac_configure_args0=; unset ac_configure_args0;}
2121{ ac_configure_args1=; unset ac_configure_args1;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002122
2123# When interrupted or exit'd, cleanup temporary files, and complete
2124# config.log. We remove comments because anyway the quotes in there
2125# would cause problems or look ugly.
jfigusc7e66e32013-05-08 11:32:55 -04002126# WARNING: Use '\'' to represent an apostrophe within the trap.
2127# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Cullen Jennings235513a2005-09-21 22:51:36 +00002128trap 'exit_status=$?
2129 # Save into config.log some information that might help in debugging.
2130 {
2131 echo
2132
jfigusc7e66e32013-05-08 11:32:55 -04002133 $as_echo "## ---------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002134## Cache variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002135## ---------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002136 echo
2137 # The following way of writing the cache mishandles newlines in values,
jfigusc7e66e32013-05-08 11:32:55 -04002138(
2139 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2140 eval ac_val=\$$ac_var
2141 case $ac_val in #(
2142 *${as_nl}*)
2143 case $ac_var in #(
2144 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2145$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2146 esac
2147 case $ac_var in #(
2148 _ | IFS | as_nl) ;; #(
2149 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2150 *) { eval $ac_var=; unset $ac_var;} ;;
2151 esac ;;
2152 esac
2153 done
Cullen Jennings235513a2005-09-21 22:51:36 +00002154 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04002155 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2156 *${as_nl}ac_space=\ *)
Cullen Jennings235513a2005-09-21 22:51:36 +00002157 sed -n \
jfigusc7e66e32013-05-08 11:32:55 -04002158 "s/'\''/'\''\\\\'\'''\''/g;
2159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2160 ;; #(
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002161 *)
jfigusc7e66e32013-05-08 11:32:55 -04002162 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002163 ;;
jfigusc7e66e32013-05-08 11:32:55 -04002164 esac |
2165 sort
2166)
Cullen Jennings235513a2005-09-21 22:51:36 +00002167 echo
2168
jfigusc7e66e32013-05-08 11:32:55 -04002169 $as_echo "## ----------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002170## Output variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002171## ----------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002172 echo
2173 for ac_var in $ac_subst_vars
2174 do
jfigusc7e66e32013-05-08 11:32:55 -04002175 eval ac_val=\$$ac_var
2176 case $ac_val in
2177 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2178 esac
2179 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002180 done | sort
2181 echo
2182
2183 if test -n "$ac_subst_files"; then
jfigusc7e66e32013-05-08 11:32:55 -04002184 $as_echo "## ------------------- ##
2185## File substitutions. ##
2186## ------------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002187 echo
2188 for ac_var in $ac_subst_files
2189 do
jfigusc7e66e32013-05-08 11:32:55 -04002190 eval ac_val=\$$ac_var
2191 case $ac_val in
2192 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193 esac
2194 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002195 done | sort
2196 echo
2197 fi
2198
2199 if test -s confdefs.h; then
jfigusc7e66e32013-05-08 11:32:55 -04002200 $as_echo "## ----------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002201## confdefs.h. ##
jfigusc7e66e32013-05-08 11:32:55 -04002202## ----------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002203 echo
jfigusc7e66e32013-05-08 11:32:55 -04002204 cat confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002205 echo
2206 fi
2207 test "$ac_signal" != 0 &&
jfigusc7e66e32013-05-08 11:32:55 -04002208 $as_echo "$as_me: caught signal $ac_signal"
2209 $as_echo "$as_me: exit $exit_status"
Cullen Jennings235513a2005-09-21 22:51:36 +00002210 } >&5
jfigusc7e66e32013-05-08 11:32:55 -04002211 rm -f core *.core core.conftest.* &&
2212 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Cullen Jennings235513a2005-09-21 22:51:36 +00002213 exit $exit_status
jfigusc7e66e32013-05-08 11:32:55 -04002214' 0
Cullen Jennings235513a2005-09-21 22:51:36 +00002215for ac_signal in 1 2 13 15; do
jfigusc7e66e32013-05-08 11:32:55 -04002216 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Cullen Jennings235513a2005-09-21 22:51:36 +00002217done
2218ac_signal=0
2219
2220# confdefs.h avoids OS command line length limits that DEFS can exceed.
jfigusc7e66e32013-05-08 11:32:55 -04002221rm -f -r conftest* confdefs.h
2222
2223$as_echo "/* confdefs.h */" > confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002224
2225# Predefined preprocessor variables.
2226
2227cat >>confdefs.h <<_ACEOF
2228#define PACKAGE_NAME "$PACKAGE_NAME"
2229_ACEOF
2230
Cullen Jennings235513a2005-09-21 22:51:36 +00002231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2233_ACEOF
2234
Cullen Jennings235513a2005-09-21 22:51:36 +00002235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_VERSION "$PACKAGE_VERSION"
2237_ACEOF
2238
Cullen Jennings235513a2005-09-21 22:51:36 +00002239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_STRING "$PACKAGE_STRING"
2241_ACEOF
2242
Cullen Jennings235513a2005-09-21 22:51:36 +00002243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2245_ACEOF
2246
jfigusc7e66e32013-05-08 11:32:55 -04002247cat >>confdefs.h <<_ACEOF
2248#define PACKAGE_URL "$PACKAGE_URL"
2249_ACEOF
2250
Cullen Jennings235513a2005-09-21 22:51:36 +00002251
2252# Let the site file select an alternate cache file if it wants to.
jfigusc7e66e32013-05-08 11:32:55 -04002253# Prefer an explicitly selected file to automatically selected ones.
2254ac_site_file1=NONE
2255ac_site_file2=NONE
2256if test -n "$CONFIG_SITE"; then
2257 # We do not want a PATH search for config.site.
2258 case $CONFIG_SITE in #((
2259 -*) ac_site_file1=./$CONFIG_SITE;;
2260 */*) ac_site_file1=$CONFIG_SITE;;
2261 *) ac_site_file1=./$CONFIG_SITE;;
2262 esac
2263elif test "x$prefix" != xNONE; then
2264 ac_site_file1=$prefix/share/config.site
2265 ac_site_file2=$prefix/etc/config.site
2266else
2267 ac_site_file1=$ac_default_prefix/share/config.site
2268 ac_site_file2=$ac_default_prefix/etc/config.site
Cullen Jennings235513a2005-09-21 22:51:36 +00002269fi
jfigusc7e66e32013-05-08 11:32:55 -04002270for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2271do
2272 test "x$ac_site_file" = xNONE && continue
2273 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2275$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002276 sed 's/^/| /' "$ac_site_file" >&5
jfigusc7e66e32013-05-08 11:32:55 -04002277 . "$ac_site_file" \
2278 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2280as_fn_error $? "failed to load site script $ac_site_file
2281See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002282 fi
2283done
2284
2285if test -r "$cache_file"; then
jfigusc7e66e32013-05-08 11:32:55 -04002286 # Some versions of bash will fail to source /dev/null (special files
2287 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2288 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2290$as_echo "$as_me: loading cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002291 case $cache_file in
jfigusc7e66e32013-05-08 11:32:55 -04002292 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2293 *) . "./$cache_file";;
Cullen Jennings235513a2005-09-21 22:51:36 +00002294 esac
2295 fi
2296else
jfigusc7e66e32013-05-08 11:32:55 -04002297 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2298$as_echo "$as_me: creating cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002299 >$cache_file
2300fi
2301
2302# Check that the precious variables saved in the cache have kept the same
2303# value.
2304ac_cache_corrupted=false
jfigusc7e66e32013-05-08 11:32:55 -04002305for ac_var in $ac_precious_vars; do
Cullen Jennings235513a2005-09-21 22:51:36 +00002306 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2307 eval ac_new_set=\$ac_env_${ac_var}_set
jfigusc7e66e32013-05-08 11:32:55 -04002308 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2309 eval ac_new_val=\$ac_env_${ac_var}_value
Cullen Jennings235513a2005-09-21 22:51:36 +00002310 case $ac_old_set,$ac_new_set in
2311 set,)
jfigusc7e66e32013-05-08 11:32:55 -04002312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2313$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 +00002314 ac_cache_corrupted=: ;;
2315 ,set)
jfigusc7e66e32013-05-08 11:32:55 -04002316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2317$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002318 ac_cache_corrupted=: ;;
2319 ,);;
2320 *)
2321 if test "x$ac_old_val" != "x$ac_new_val"; then
jfigusc7e66e32013-05-08 11:32:55 -04002322 # differences in whitespace do not lead to failure.
2323 ac_old_val_w=`echo x $ac_old_val`
2324 ac_new_val_w=`echo x $ac_new_val`
2325 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2327$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2328 ac_cache_corrupted=:
2329 else
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2331$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2332 eval $ac_var=\$ac_old_val
2333 fi
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2335$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2337$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002338 fi;;
2339 esac
2340 # Pass precious variables to config.status.
2341 if test "$ac_new_set" = set; then
2342 case $ac_new_val in
jfigusc7e66e32013-05-08 11:32:55 -04002343 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002344 *) ac_arg=$ac_var=$ac_new_val ;;
2345 esac
2346 case " $ac_configure_args " in
2347 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jfigusc7e66e32013-05-08 11:32:55 -04002348 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002349 esac
2350 fi
2351done
2352if $ac_cache_corrupted; then
jfigusc7e66e32013-05-08 11:32:55 -04002353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2356$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2357 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00002358fi
jfigusc7e66e32013-05-08 11:32:55 -04002359## -------------------- ##
2360## Main body of script. ##
2361## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002362
2363ac_ext=c
2364ac_cpp='$CPP $CPPFLAGS'
2365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367ac_compiler_gnu=$ac_cv_c_compiler_gnu
2368
2369
2370
David McGrewb67061f2005-09-28 14:23:06 +00002371if test -z "$CFLAGS"; then
Sean Brightbfb9e302014-03-24 20:45:17 -04002372 CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
David McGrewb67061f2005-09-28 14:23:06 +00002373fi
2374
jfigus1ce6a742015-04-06 08:54:01 -04002375# expand $ac_aux_dir to an absolute path
2376am_aux_dir=`cd $ac_aux_dir && pwd`
Cullen Jennings235513a2005-09-21 22:51:36 +00002377
2378ac_ext=c
2379ac_cpp='$CPP $CPPFLAGS'
2380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2382ac_compiler_gnu=$ac_cv_c_compiler_gnu
2383if test -n "$ac_tool_prefix"; then
2384 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2385set dummy ${ac_tool_prefix}gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2387$as_echo_n "checking for $ac_word... " >&6; }
2388if ${ac_cv_prog_CC+:} false; then :
2389 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002390else
2391 if test -n "$CC"; then
2392 ac_cv_prog_CC="$CC" # Let the user override the test.
2393else
2394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395for as_dir in $PATH
2396do
2397 IFS=$as_save_IFS
2398 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002401 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002403 break 2
2404 fi
2405done
jfigusc7e66e32013-05-08 11:32:55 -04002406 done
2407IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002408
2409fi
2410fi
2411CC=$ac_cv_prog_CC
2412if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2414$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002415else
jfigusc7e66e32013-05-08 11:32:55 -04002416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2417$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002418fi
2419
jfigusc7e66e32013-05-08 11:32:55 -04002420
Cullen Jennings235513a2005-09-21 22:51:36 +00002421fi
2422if test -z "$ac_cv_prog_CC"; then
2423 ac_ct_CC=$CC
2424 # Extract the first word of "gcc", so it can be a program name with args.
2425set dummy gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2427$as_echo_n "checking for $ac_word... " >&6; }
2428if ${ac_cv_prog_ac_ct_CC+:} false; then :
2429 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002430else
2431 if test -n "$ac_ct_CC"; then
2432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2433else
2434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435for as_dir in $PATH
2436do
2437 IFS=$as_save_IFS
2438 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002441 ac_cv_prog_ac_ct_CC="gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002443 break 2
2444 fi
2445done
jfigusc7e66e32013-05-08 11:32:55 -04002446 done
2447IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002448
2449fi
2450fi
2451ac_ct_CC=$ac_cv_prog_ac_ct_CC
2452if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2454$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002455else
jfigusc7e66e32013-05-08 11:32:55 -04002456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2457$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002458fi
2459
jfigusc7e66e32013-05-08 11:32:55 -04002460 if test "x$ac_ct_CC" = x; then
2461 CC=""
2462 else
2463 case $cross_compiling:$ac_tool_warned in
2464yes:)
2465{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2466$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2467ac_tool_warned=yes ;;
2468esac
2469 CC=$ac_ct_CC
2470 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002471else
2472 CC="$ac_cv_prog_CC"
2473fi
2474
2475if test -z "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002476 if test -n "$ac_tool_prefix"; then
2477 # 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 +00002478set dummy ${ac_tool_prefix}cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2480$as_echo_n "checking for $ac_word... " >&6; }
2481if ${ac_cv_prog_CC+:} false; then :
2482 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002483else
2484 if test -n "$CC"; then
2485 ac_cv_prog_CC="$CC" # Let the user override the test.
2486else
2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002494 ac_cv_prog_CC="${ac_tool_prefix}cc"
jfigusc7e66e32013-05-08 11:32:55 -04002495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002496 break 2
2497 fi
2498done
jfigusc7e66e32013-05-08 11:32:55 -04002499 done
2500IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002501
2502fi
2503fi
2504CC=$ac_cv_prog_CC
2505if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2507$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002508else
jfigusc7e66e32013-05-08 11:32:55 -04002509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2510$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002511fi
2512
jfigusc7e66e32013-05-08 11:32:55 -04002513
Cullen Jennings235513a2005-09-21 22:51:36 +00002514 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002515fi
2516if test -z "$CC"; then
2517 # Extract the first word of "cc", so it can be a program name with args.
2518set dummy cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2520$as_echo_n "checking for $ac_word... " >&6; }
2521if ${ac_cv_prog_CC+:} false; then :
2522 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002523else
2524 if test -n "$CC"; then
2525 ac_cv_prog_CC="$CC" # Let the user override the test.
2526else
2527 ac_prog_rejected=no
2528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529for as_dir in $PATH
2530do
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002535 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2536 ac_prog_rejected=yes
2537 continue
2538 fi
2539 ac_cv_prog_CC="cc"
jfigusc7e66e32013-05-08 11:32:55 -04002540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002541 break 2
2542 fi
2543done
jfigusc7e66e32013-05-08 11:32:55 -04002544 done
2545IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002546
2547if test $ac_prog_rejected = yes; then
2548 # We found a bogon in the path, so make sure we never use it.
2549 set dummy $ac_cv_prog_CC
2550 shift
2551 if test $# != 0; then
2552 # We chose a different compiler from the bogus one.
2553 # However, it has the same basename, so the bogon will be chosen
2554 # first if we set CC to just the basename; use the full file name.
2555 shift
2556 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2557 fi
2558fi
2559fi
2560fi
2561CC=$ac_cv_prog_CC
2562if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2564$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002565else
jfigusc7e66e32013-05-08 11:32:55 -04002566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2567$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002568fi
2569
jfigusc7e66e32013-05-08 11:32:55 -04002570
Cullen Jennings235513a2005-09-21 22:51:36 +00002571fi
2572if test -z "$CC"; then
2573 if test -n "$ac_tool_prefix"; then
jfigusc7e66e32013-05-08 11:32:55 -04002574 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002575 do
2576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2577set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579$as_echo_n "checking for $ac_word... " >&6; }
2580if ${ac_cv_prog_CC+:} false; then :
2581 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002582else
2583 if test -n "$CC"; then
2584 ac_cv_prog_CC="$CC" # Let the user override the test.
2585else
2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002593 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002595 break 2
2596 fi
2597done
jfigusc7e66e32013-05-08 11:32:55 -04002598 done
2599IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002600
2601fi
2602fi
2603CC=$ac_cv_prog_CC
2604if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2606$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002607else
jfigusc7e66e32013-05-08 11:32:55 -04002608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002610fi
2611
jfigusc7e66e32013-05-08 11:32:55 -04002612
Cullen Jennings235513a2005-09-21 22:51:36 +00002613 test -n "$CC" && break
2614 done
2615fi
2616if test -z "$CC"; then
2617 ac_ct_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04002618 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002619do
2620 # Extract the first word of "$ac_prog", so it can be a program name with args.
2621set dummy $ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623$as_echo_n "checking for $ac_word... " >&6; }
2624if ${ac_cv_prog_ac_ct_CC+:} false; then :
2625 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002626else
2627 if test -n "$ac_ct_CC"; then
2628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2629else
2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631for as_dir in $PATH
2632do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002637 ac_cv_prog_ac_ct_CC="$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002639 break 2
2640 fi
2641done
jfigusc7e66e32013-05-08 11:32:55 -04002642 done
2643IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002644
2645fi
2646fi
2647ac_ct_CC=$ac_cv_prog_ac_ct_CC
2648if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2650$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002651else
jfigusc7e66e32013-05-08 11:32:55 -04002652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002654fi
2655
jfigusc7e66e32013-05-08 11:32:55 -04002656
Cullen Jennings235513a2005-09-21 22:51:36 +00002657 test -n "$ac_ct_CC" && break
2658done
2659
jfigusc7e66e32013-05-08 11:32:55 -04002660 if test "x$ac_ct_CC" = x; then
2661 CC=""
2662 else
2663 case $cross_compiling:$ac_tool_warned in
2664yes:)
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2666$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2667ac_tool_warned=yes ;;
2668esac
2669 CC=$ac_ct_CC
2670 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002671fi
2672
2673fi
2674
2675
jfigusc7e66e32013-05-08 11:32:55 -04002676test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2678as_fn_error $? "no acceptable C compiler found in \$PATH
2679See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002680
2681# Provide some information about the compiler.
jfigusc7e66e32013-05-08 11:32:55 -04002682$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2683set X $ac_compile
2684ac_compiler=$2
2685for ac_option in --version -v -V -qversion; do
2686 { { ac_try="$ac_compiler $ac_option >&5"
2687case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690esac
2691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2692$as_echo "$ac_try_echo"; } >&5
2693 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Cullen Jennings235513a2005-09-21 22:51:36 +00002694 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002695 if test -s conftest.err; then
2696 sed '10a\
2697... rest of stderr output deleted ...
2698 10q' conftest.err >conftest.er1
2699 cat conftest.er1 >&5
2700 fi
2701 rm -f conftest.er1 conftest.err
2702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2703 test $ac_status = 0; }
2704done
Cullen Jennings235513a2005-09-21 22:51:36 +00002705
jfigusc7e66e32013-05-08 11:32:55 -04002706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002707/* end confdefs.h. */
2708
2709int
2710main ()
2711{
2712
2713 ;
2714 return 0;
2715}
2716_ACEOF
2717ac_clean_files_save=$ac_clean_files
jfigusc7e66e32013-05-08 11:32:55 -04002718ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Cullen Jennings235513a2005-09-21 22:51:36 +00002719# Try to create an executable without -o first, disregard a.out.
2720# It will help us diagnose broken compilers, and finding out an intuition
2721# of exeext.
jfigusc7e66e32013-05-08 11:32:55 -04002722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2723$as_echo_n "checking whether the C compiler works... " >&6; }
2724ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002725
jfigusc7e66e32013-05-08 11:32:55 -04002726# The possible output files:
2727ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2728
2729ac_rmfiles=
2730for ac_file in $ac_files
2731do
2732 case $ac_file in
2733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2734 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2735 esac
2736done
2737rm -f $ac_rmfiles
2738
2739if { { ac_try="$ac_link_default"
2740case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2743esac
2744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2745$as_echo "$ac_try_echo"; } >&5
2746 (eval "$ac_link_default") 2>&5
2747 ac_status=$?
2748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2749 test $ac_status = 0; }; then :
2750 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2751# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2752# in a Makefile. We should not override ac_cv_exeext if it was cached,
2753# so that the user can short-circuit this test for compilers unknown to
2754# Autoconf.
2755for ac_file in $ac_files ''
Cullen Jennings235513a2005-09-21 22:51:36 +00002756do
2757 test -f "$ac_file" || continue
2758 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00002760 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002761 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00002762 # We found the default executable, but exeext='' is most
2763 # certainly right.
2764 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002765 *.* )
jfigusc7e66e32013-05-08 11:32:55 -04002766 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2767 then :; else
2768 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2769 fi
2770 # We set ac_cv_exeext here because the later test for it is not
2771 # safe: cross compilers may not add the suffix if given an `-o'
2772 # argument, so we may need to know it at that point already.
2773 # Even if this section looks crufty: it has the advantage of
2774 # actually working.
David McGrewfec49dd2005-09-23 19:34:11 +00002775 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002776 * )
David McGrewfec49dd2005-09-23 19:34:11 +00002777 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002778 esac
2779done
jfigusc7e66e32013-05-08 11:32:55 -04002780test "$ac_cv_exeext" = no && ac_cv_exeext=
2781
Cullen Jennings235513a2005-09-21 22:51:36 +00002782else
jfigusc7e66e32013-05-08 11:32:55 -04002783 ac_file=''
2784fi
2785if test -z "$ac_file"; then :
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787$as_echo "no" >&6; }
2788$as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002789sed 's/^/| /' conftest.$ac_ext >&5
2790
jfigusc7e66e32013-05-08 11:32:55 -04002791{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2792$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2793as_fn_error 77 "C compiler cannot create executables
2794See \`config.log' for more details" "$LINENO" 5; }
2795else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2797$as_echo "yes" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002798fi
jfigusc7e66e32013-05-08 11:32:55 -04002799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2800$as_echo_n "checking for C compiler default output file name... " >&6; }
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2802$as_echo "$ac_file" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002803ac_exeext=$ac_cv_exeext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002804
jfigusc7e66e32013-05-08 11:32:55 -04002805rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002806ac_clean_files=$ac_clean_files_save
jfigusc7e66e32013-05-08 11:32:55 -04002807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2808$as_echo_n "checking for suffix of executables... " >&6; }
2809if { { ac_try="$ac_link"
2810case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2813esac
2814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2815$as_echo "$ac_try_echo"; } >&5
2816 (eval "$ac_link") 2>&5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002817 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2819 test $ac_status = 0; }; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002820 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2821# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2822# work properly (i.e., refer to `conftest.exe'), while it won't with
2823# `rm'.
2824for ac_file in conftest.exe conftest conftest.*; do
2825 test -f "$ac_file" || continue
2826 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002828 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00002829 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002830 * ) break;;
2831 esac
2832done
2833else
jfigusc7e66e32013-05-08 11:32:55 -04002834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2835$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2836as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2837See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002838fi
jfigusc7e66e32013-05-08 11:32:55 -04002839rm -f conftest conftest$ac_cv_exeext
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2841$as_echo "$ac_cv_exeext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002842
2843rm -f conftest.$ac_ext
2844EXEEXT=$ac_cv_exeext
2845ac_exeext=$EXEEXT
jfigusc7e66e32013-05-08 11:32:55 -04002846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847/* end confdefs.h. */
2848#include <stdio.h>
2849int
2850main ()
2851{
2852FILE *f = fopen ("conftest.out", "w");
2853 return ferror (f) || fclose (f) != 0;
2854
2855 ;
2856 return 0;
2857}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002858_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002859ac_clean_files="$ac_clean_files conftest.out"
2860# Check that the compiler produces executables we can run. If not, either
2861# the compiler is broken, or we cross compile.
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2863$as_echo_n "checking whether we are cross compiling... " >&6; }
2864if test "$cross_compiling" != yes; then
2865 { { ac_try="$ac_link"
2866case "(($ac_try" in
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2869esac
2870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2871$as_echo "$ac_try_echo"; } >&5
2872 (eval "$ac_link") 2>&5
2873 ac_status=$?
2874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2875 test $ac_status = 0; }
2876 if { ac_try='./conftest$ac_cv_exeext'
2877 { { case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880esac
2881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2882$as_echo "$ac_try_echo"; } >&5
2883 (eval "$ac_try") 2>&5
2884 ac_status=$?
2885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2886 test $ac_status = 0; }; }; then
2887 cross_compiling=no
2888 else
2889 if test "$cross_compiling" = maybe; then
2890 cross_compiling=yes
2891 else
2892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2894as_fn_error $? "cannot run C compiled programs.
2895If you meant to cross compile, use \`--host'.
2896See \`config.log' for more details" "$LINENO" 5; }
2897 fi
2898 fi
2899fi
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2901$as_echo "$cross_compiling" >&6; }
2902
2903rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2904ac_clean_files=$ac_clean_files_save
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2906$as_echo_n "checking for suffix of object files... " >&6; }
2907if ${ac_cv_objext+:} false; then :
2908 $as_echo_n "(cached) " >&6
2909else
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002911/* end confdefs.h. */
2912
2913int
2914main ()
2915{
2916
2917 ;
2918 return 0;
2919}
2920_ACEOF
2921rm -f conftest.o conftest.obj
jfigusc7e66e32013-05-08 11:32:55 -04002922if { { ac_try="$ac_compile"
2923case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926esac
2927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2928$as_echo "$ac_try_echo"; } >&5
2929 (eval "$ac_compile") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002930 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2932 test $ac_status = 0; }; then :
2933 for ac_file in conftest.o conftest.obj conftest.*; do
2934 test -f "$ac_file" || continue;
Cullen Jennings235513a2005-09-21 22:51:36 +00002935 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002937 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2938 break;;
2939 esac
2940done
2941else
jfigusc7e66e32013-05-08 11:32:55 -04002942 $as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002943sed 's/^/| /' conftest.$ac_ext >&5
2944
jfigusc7e66e32013-05-08 11:32:55 -04002945{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2947as_fn_error $? "cannot compute suffix of object files: cannot compile
2948See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002949fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002950rm -f conftest.$ac_cv_objext conftest.$ac_ext
2951fi
jfigusc7e66e32013-05-08 11:32:55 -04002952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2953$as_echo "$ac_cv_objext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002954OBJEXT=$ac_cv_objext
2955ac_objext=$OBJEXT
jfigusc7e66e32013-05-08 11:32:55 -04002956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2957$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2958if ${ac_cv_c_compiler_gnu+:} false; then :
2959 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002960else
jfigusc7e66e32013-05-08 11:32:55 -04002961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002962/* end confdefs.h. */
2963
2964int
2965main ()
2966{
2967#ifndef __GNUC__
2968 choke me
2969#endif
2970
2971 ;
2972 return 0;
2973}
2974_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002975if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002976 ac_compiler_gnu=yes
2977else
jfigusc7e66e32013-05-08 11:32:55 -04002978 ac_compiler_gnu=no
Cullen Jennings235513a2005-09-21 22:51:36 +00002979fi
jfigusc7e66e32013-05-08 11:32:55 -04002980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002981ac_cv_c_compiler_gnu=$ac_compiler_gnu
2982
2983fi
jfigusc7e66e32013-05-08 11:32:55 -04002984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2985$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2986if test $ac_compiler_gnu = yes; then
2987 GCC=yes
2988else
2989 GCC=
2990fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002991ac_test_CFLAGS=${CFLAGS+set}
2992ac_save_CFLAGS=$CFLAGS
jfigusc7e66e32013-05-08 11:32:55 -04002993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2994$as_echo_n "checking whether $CC accepts -g... " >&6; }
2995if ${ac_cv_prog_cc_g+:} false; then :
2996 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002997else
jfigusc7e66e32013-05-08 11:32:55 -04002998 ac_save_c_werror_flag=$ac_c_werror_flag
2999 ac_c_werror_flag=yes
3000 ac_cv_prog_cc_g=no
3001 CFLAGS="-g"
3002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003003/* end confdefs.h. */
3004
3005int
3006main ()
3007{
3008
3009 ;
3010 return 0;
3011}
3012_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003013if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003014 ac_cv_prog_cc_g=yes
3015else
jfigusc7e66e32013-05-08 11:32:55 -04003016 CFLAGS=""
3017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00003019
jfigusc7e66e32013-05-08 11:32:55 -04003020int
3021main ()
3022{
3023
3024 ;
3025 return 0;
3026}
3027_ACEOF
3028if ac_fn_c_try_compile "$LINENO"; then :
3029
3030else
3031 ac_c_werror_flag=$ac_save_c_werror_flag
3032 CFLAGS="-g"
3033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3034/* end confdefs.h. */
3035
3036int
3037main ()
3038{
3039
3040 ;
3041 return 0;
3042}
3043_ACEOF
3044if ac_fn_c_try_compile "$LINENO"; then :
3045 ac_cv_prog_cc_g=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003046fi
jfigusc7e66e32013-05-08 11:32:55 -04003047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003048fi
jfigusc7e66e32013-05-08 11:32:55 -04003049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3050fi
3051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052 ac_c_werror_flag=$ac_save_c_werror_flag
3053fi
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3055$as_echo "$ac_cv_prog_cc_g" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003056if test "$ac_test_CFLAGS" = set; then
3057 CFLAGS=$ac_save_CFLAGS
3058elif test $ac_cv_prog_cc_g = yes; then
3059 if test "$GCC" = yes; then
3060 CFLAGS="-g -O2"
3061 else
3062 CFLAGS="-g"
3063 fi
3064else
3065 if test "$GCC" = yes; then
3066 CFLAGS="-O2"
3067 else
3068 CFLAGS=
3069 fi
3070fi
jfigusc7e66e32013-05-08 11:32:55 -04003071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3072$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3073if ${ac_cv_prog_cc_c89+:} false; then :
3074 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003075else
jfigusc7e66e32013-05-08 11:32:55 -04003076 ac_cv_prog_cc_c89=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003077ac_save_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04003078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003079/* end confdefs.h. */
3080#include <stdarg.h>
3081#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -04003082struct stat;
Cullen Jennings235513a2005-09-21 22:51:36 +00003083/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3084struct buf { int x; };
3085FILE * (*rcsopen) (struct buf *, struct stat *, int);
3086static char *e (p, i)
3087 char **p;
3088 int i;
3089{
3090 return p[i];
3091}
3092static char *f (char * (*g) (char **, int), char **p, ...)
3093{
3094 char *s;
3095 va_list v;
3096 va_start (v,p);
3097 s = g (p, va_arg (v,int));
3098 va_end (v);
3099 return s;
3100}
David McGrewfec49dd2005-09-23 19:34:11 +00003101
3102/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3103 function prototypes and stuff, but not '\xHH' hex character constants.
3104 These don't provoke an error unfortunately, instead are silently treated
jfigusc7e66e32013-05-08 11:32:55 -04003105 as 'x'. The following induces an error, until -std is added to get
David McGrewfec49dd2005-09-23 19:34:11 +00003106 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3107 array size at least. It's necessary to write '\x00'==0 to get something
jfigusc7e66e32013-05-08 11:32:55 -04003108 that's true only with -std. */
David McGrewfec49dd2005-09-23 19:34:11 +00003109int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3110
jfigusc7e66e32013-05-08 11:32:55 -04003111/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3112 inside strings and character constants. */
3113#define FOO(x) 'x'
3114int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3115
Cullen Jennings235513a2005-09-21 22:51:36 +00003116int test (int i, double x);
3117struct s1 {int (*f) (int a);};
3118struct s2 {int (*f) (double a);};
3119int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3120int argc;
3121char **argv;
3122int
3123main ()
3124{
3125return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3126 ;
3127 return 0;
3128}
3129_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003130for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3131 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Cullen Jennings235513a2005-09-21 22:51:36 +00003132do
3133 CC="$ac_save_CC $ac_arg"
jfigusc7e66e32013-05-08 11:32:55 -04003134 if ac_fn_c_try_compile "$LINENO"; then :
3135 ac_cv_prog_cc_c89=$ac_arg
Cullen Jennings235513a2005-09-21 22:51:36 +00003136fi
jfigusc7e66e32013-05-08 11:32:55 -04003137rm -f core conftest.err conftest.$ac_objext
3138 test "x$ac_cv_prog_cc_c89" != "xno" && break
Cullen Jennings235513a2005-09-21 22:51:36 +00003139done
jfigusc7e66e32013-05-08 11:32:55 -04003140rm -f conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003141CC=$ac_save_CC
3142
3143fi
jfigusc7e66e32013-05-08 11:32:55 -04003144# AC_CACHE_VAL
3145case "x$ac_cv_prog_cc_c89" in
3146 x)
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3148$as_echo "none needed" >&6; } ;;
3149 xno)
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3151$as_echo "unsupported" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003152 *)
jfigusc7e66e32013-05-08 11:32:55 -04003153 CC="$CC $ac_cv_prog_cc_c89"
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3155$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003156esac
jfigusc7e66e32013-05-08 11:32:55 -04003157if test "x$ac_cv_prog_cc_c89" != xno; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003158
3159fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003160
Cullen Jennings235513a2005-09-21 22:51:36 +00003161ac_ext=c
3162ac_cpp='$CPP $CPPFLAGS'
3163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166
jfigus1ce6a742015-04-06 08:54:01 -04003167
3168if test -n "$ac_tool_prefix"; then
3169 for ac_prog in ar lib "link -lib"
3170 do
3171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3172set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174$as_echo_n "checking for $ac_word... " >&6; }
3175if ${ac_cv_prog_AR+:} false; then :
3176 $as_echo_n "(cached) " >&6
3177else
3178 if test -n "$AR"; then
3179 ac_cv_prog_AR="$AR" # Let the user override the test.
3180else
3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182for as_dir in $PATH
3183do
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3191 fi
3192done
3193 done
3194IFS=$as_save_IFS
3195
3196fi
3197fi
3198AR=$ac_cv_prog_AR
3199if test -n "$AR"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3201$as_echo "$AR" >&6; }
3202else
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204$as_echo "no" >&6; }
3205fi
3206
3207
3208 test -n "$AR" && break
3209 done
3210fi
3211if test -z "$AR"; then
3212 ac_ct_AR=$AR
3213 for ac_prog in ar lib "link -lib"
3214do
3215 # Extract the first word of "$ac_prog", so it can be a program name with args.
3216set dummy $ac_prog; ac_word=$2
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218$as_echo_n "checking for $ac_word... " >&6; }
3219if ${ac_cv_prog_ac_ct_AR+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221else
3222 if test -n "$ac_ct_AR"; then
3223 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3224else
3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH
3227do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 ac_cv_prog_ac_ct_AR="$ac_prog"
3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 break 2
3235 fi
3236done
3237 done
3238IFS=$as_save_IFS
3239
3240fi
3241fi
3242ac_ct_AR=$ac_cv_prog_ac_ct_AR
3243if test -n "$ac_ct_AR"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3245$as_echo "$ac_ct_AR" >&6; }
3246else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248$as_echo "no" >&6; }
3249fi
3250
3251
3252 test -n "$ac_ct_AR" && break
3253done
3254
3255 if test "x$ac_ct_AR" = x; then
3256 AR="false"
3257 else
3258 case $cross_compiling:$ac_tool_warned in
3259yes:)
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3262ac_tool_warned=yes ;;
3263esac
3264 AR=$ac_ct_AR
3265 fi
3266fi
3267
3268: ${AR=ar}
3269
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3271$as_echo_n "checking the archiver ($AR) interface... " >&6; }
3272if ${am_cv_ar_interface+:} false; then :
3273 $as_echo_n "(cached) " >&6
3274else
3275 ac_ext=c
3276ac_cpp='$CPP $CPPFLAGS'
3277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280
3281 am_cv_ar_interface=ar
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283/* end confdefs.h. */
3284int some_variable = 0;
3285_ACEOF
3286if ac_fn_c_try_compile "$LINENO"; then :
3287 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3289 (eval $am_ar_try) 2>&5
3290 ac_status=$?
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }
3293 if test "$ac_status" -eq 0; then
3294 am_cv_ar_interface=ar
3295 else
3296 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3298 (eval $am_ar_try) 2>&5
3299 ac_status=$?
3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301 test $ac_status = 0; }
3302 if test "$ac_status" -eq 0; then
3303 am_cv_ar_interface=lib
3304 else
3305 am_cv_ar_interface=unknown
3306 fi
3307 fi
3308 rm -f conftest.lib libconftest.a
3309
3310fi
3311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312 ac_ext=c
3313ac_cpp='$CPP $CPPFLAGS'
3314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3316ac_compiler_gnu=$ac_cv_c_compiler_gnu
3317
3318fi
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3320$as_echo "$am_cv_ar_interface" >&6; }
3321
3322case $am_cv_ar_interface in
3323ar)
3324 ;;
3325lib)
3326 # Microsoft lib, so override with the ar-lib wrapper script.
3327 # FIXME: It is wrong to rewrite AR.
3328 # But if we don't then we get into trouble of one sort or another.
3329 # A longer-term fix would be to have automake use am__AR in this case,
3330 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3331 # similar.
3332 AR="$am_aux_dir/ar-lib $AR"
3333 ;;
3334unknown)
3335 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3336 ;;
3337esac
3338
3339if test -n "$ac_tool_prefix"; then
3340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3341set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343$as_echo_n "checking for $ac_word... " >&6; }
3344if ${ac_cv_prog_RANLIB+:} false; then :
3345 $as_echo_n "(cached) " >&6
3346else
3347 if test -n "$RANLIB"; then
3348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3349else
3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351for as_dir in $PATH
3352do
3353 IFS=$as_save_IFS
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 break 2
3360 fi
3361done
3362 done
3363IFS=$as_save_IFS
3364
3365fi
3366fi
3367RANLIB=$ac_cv_prog_RANLIB
3368if test -n "$RANLIB"; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3370$as_echo "$RANLIB" >&6; }
3371else
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373$as_echo "no" >&6; }
3374fi
3375
3376
3377fi
3378if test -z "$ac_cv_prog_RANLIB"; then
3379 ac_ct_RANLIB=$RANLIB
3380 # Extract the first word of "ranlib", so it can be a program name with args.
3381set dummy ranlib; ac_word=$2
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383$as_echo_n "checking for $ac_word... " >&6; }
3384if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3385 $as_echo_n "(cached) " >&6
3386else
3387 if test -n "$ac_ct_RANLIB"; then
3388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3389else
3390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391for as_dir in $PATH
3392do
3393 IFS=$as_save_IFS
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397 ac_cv_prog_ac_ct_RANLIB="ranlib"
3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 break 2
3400 fi
3401done
3402 done
3403IFS=$as_save_IFS
3404
3405fi
3406fi
3407ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3408if test -n "$ac_ct_RANLIB"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3410$as_echo "$ac_ct_RANLIB" >&6; }
3411else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413$as_echo "no" >&6; }
3414fi
3415
3416 if test "x$ac_ct_RANLIB" = x; then
3417 RANLIB=":"
3418 else
3419 case $cross_compiling:$ac_tool_warned in
3420yes:)
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3423ac_tool_warned=yes ;;
3424esac
3425 RANLIB=$ac_ct_RANLIB
3426 fi
3427else
3428 RANLIB="$ac_cv_prog_RANLIB"
3429fi
3430
3431ac_ext=c
3432ac_cpp='$CPP $CPPFLAGS'
3433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436if test -n "$ac_tool_prefix"; then
3437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3438set dummy ${ac_tool_prefix}gcc; ac_word=$2
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440$as_echo_n "checking for $ac_word... " >&6; }
3441if ${ac_cv_prog_CC+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443else
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3446else
3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448for as_dir in $PATH
3449do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458done
3459 done
3460IFS=$as_save_IFS
3461
3462fi
3463fi
3464CC=$ac_cv_prog_CC
3465if test -n "$CC"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3467$as_echo "$CC" >&6; }
3468else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470$as_echo "no" >&6; }
3471fi
3472
3473
3474fi
3475if test -z "$ac_cv_prog_CC"; then
3476 ac_ct_CC=$CC
3477 # Extract the first word of "gcc", so it can be a program name with args.
3478set dummy gcc; ac_word=$2
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480$as_echo_n "checking for $ac_word... " >&6; }
3481if ${ac_cv_prog_ac_ct_CC+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483else
3484 if test -n "$ac_ct_CC"; then
3485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3486else
3487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488for as_dir in $PATH
3489do
3490 IFS=$as_save_IFS
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494 ac_cv_prog_ac_ct_CC="gcc"
3495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 break 2
3497 fi
3498done
3499 done
3500IFS=$as_save_IFS
3501
3502fi
3503fi
3504ac_ct_CC=$ac_cv_prog_ac_ct_CC
3505if test -n "$ac_ct_CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3507$as_echo "$ac_ct_CC" >&6; }
3508else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510$as_echo "no" >&6; }
3511fi
3512
3513 if test "x$ac_ct_CC" = x; then
3514 CC=""
3515 else
3516 case $cross_compiling:$ac_tool_warned in
3517yes:)
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3520ac_tool_warned=yes ;;
3521esac
3522 CC=$ac_ct_CC
3523 fi
3524else
3525 CC="$ac_cv_prog_CC"
3526fi
3527
3528if test -z "$CC"; then
3529 if test -n "$ac_tool_prefix"; then
3530 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3531set dummy ${ac_tool_prefix}cc; ac_word=$2
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3533$as_echo_n "checking for $ac_word... " >&6; }
3534if ${ac_cv_prog_CC+:} false; then :
3535 $as_echo_n "(cached) " >&6
3536else
3537 if test -n "$CC"; then
3538 ac_cv_prog_CC="$CC" # Let the user override the test.
3539else
3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541for as_dir in $PATH
3542do
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3547 ac_cv_prog_CC="${ac_tool_prefix}cc"
3548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 break 2
3550 fi
3551done
3552 done
3553IFS=$as_save_IFS
3554
3555fi
3556fi
3557CC=$ac_cv_prog_CC
3558if test -n "$CC"; then
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3560$as_echo "$CC" >&6; }
3561else
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563$as_echo "no" >&6; }
3564fi
3565
3566
3567 fi
3568fi
3569if test -z "$CC"; then
3570 # Extract the first word of "cc", so it can be a program name with args.
3571set dummy cc; ac_word=$2
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573$as_echo_n "checking for $ac_word... " >&6; }
3574if ${ac_cv_prog_CC+:} false; then :
3575 $as_echo_n "(cached) " >&6
3576else
3577 if test -n "$CC"; then
3578 ac_cv_prog_CC="$CC" # Let the user override the test.
3579else
3580 ac_prog_rejected=no
3581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582for as_dir in $PATH
3583do
3584 IFS=$as_save_IFS
3585 test -z "$as_dir" && as_dir=.
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3589 ac_prog_rejected=yes
3590 continue
3591 fi
3592 ac_cv_prog_CC="cc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596done
3597 done
3598IFS=$as_save_IFS
3599
3600if test $ac_prog_rejected = yes; then
3601 # We found a bogon in the path, so make sure we never use it.
3602 set dummy $ac_cv_prog_CC
3603 shift
3604 if test $# != 0; then
3605 # We chose a different compiler from the bogus one.
3606 # However, it has the same basename, so the bogon will be chosen
3607 # first if we set CC to just the basename; use the full file name.
3608 shift
3609 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3610 fi
3611fi
3612fi
3613fi
3614CC=$ac_cv_prog_CC
3615if test -n "$CC"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617$as_echo "$CC" >&6; }
3618else
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620$as_echo "no" >&6; }
3621fi
3622
3623
3624fi
3625if test -z "$CC"; then
3626 if test -n "$ac_tool_prefix"; then
3627 for ac_prog in cl.exe
3628 do
3629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3630set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632$as_echo_n "checking for $ac_word... " >&6; }
3633if ${ac_cv_prog_CC+:} false; then :
3634 $as_echo_n "(cached) " >&6
3635else
3636 if test -n "$CC"; then
3637 ac_cv_prog_CC="$CC" # Let the user override the test.
3638else
3639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640for as_dir in $PATH
3641do
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3646 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 break 2
3649 fi
3650done
3651 done
3652IFS=$as_save_IFS
3653
3654fi
3655fi
3656CC=$ac_cv_prog_CC
3657if test -n "$CC"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3659$as_echo "$CC" >&6; }
3660else
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662$as_echo "no" >&6; }
3663fi
3664
3665
3666 test -n "$CC" && break
3667 done
3668fi
3669if test -z "$CC"; then
3670 ac_ct_CC=$CC
3671 for ac_prog in cl.exe
3672do
3673 # Extract the first word of "$ac_prog", so it can be a program name with args.
3674set dummy $ac_prog; ac_word=$2
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676$as_echo_n "checking for $ac_word... " >&6; }
3677if ${ac_cv_prog_ac_ct_CC+:} false; then :
3678 $as_echo_n "(cached) " >&6
3679else
3680 if test -n "$ac_ct_CC"; then
3681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3682else
3683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684for as_dir in $PATH
3685do
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3690 ac_cv_prog_ac_ct_CC="$ac_prog"
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 break 2
3693 fi
3694done
3695 done
3696IFS=$as_save_IFS
3697
3698fi
3699fi
3700ac_ct_CC=$ac_cv_prog_ac_ct_CC
3701if test -n "$ac_ct_CC"; then
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3703$as_echo "$ac_ct_CC" >&6; }
3704else
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706$as_echo "no" >&6; }
3707fi
3708
3709
3710 test -n "$ac_ct_CC" && break
3711done
3712
3713 if test "x$ac_ct_CC" = x; then
3714 CC=""
3715 else
3716 case $cross_compiling:$ac_tool_warned in
3717yes:)
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3720ac_tool_warned=yes ;;
3721esac
3722 CC=$ac_ct_CC
3723 fi
3724fi
3725
3726fi
3727
3728
3729test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3731as_fn_error $? "no acceptable C compiler found in \$PATH
3732See \`config.log' for more details" "$LINENO" 5; }
3733
3734# Provide some information about the compiler.
3735$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3736set X $ac_compile
3737ac_compiler=$2
3738for ac_option in --version -v -V -qversion; do
3739 { { ac_try="$ac_compiler $ac_option >&5"
3740case "(($ac_try" in
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3743esac
3744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3745$as_echo "$ac_try_echo"; } >&5
3746 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3747 ac_status=$?
3748 if test -s conftest.err; then
3749 sed '10a\
3750... rest of stderr output deleted ...
3751 10q' conftest.err >conftest.er1
3752 cat conftest.er1 >&5
3753 fi
3754 rm -f conftest.er1 conftest.err
3755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756 test $ac_status = 0; }
3757done
3758
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3760$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3761if ${ac_cv_c_compiler_gnu+:} false; then :
3762 $as_echo_n "(cached) " >&6
3763else
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765/* end confdefs.h. */
3766
3767int
3768main ()
3769{
3770#ifndef __GNUC__
3771 choke me
3772#endif
3773
3774 ;
3775 return 0;
3776}
3777_ACEOF
3778if ac_fn_c_try_compile "$LINENO"; then :
3779 ac_compiler_gnu=yes
3780else
3781 ac_compiler_gnu=no
3782fi
3783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784ac_cv_c_compiler_gnu=$ac_compiler_gnu
3785
3786fi
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3788$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3789if test $ac_compiler_gnu = yes; then
3790 GCC=yes
3791else
3792 GCC=
3793fi
3794ac_test_CFLAGS=${CFLAGS+set}
3795ac_save_CFLAGS=$CFLAGS
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3797$as_echo_n "checking whether $CC accepts -g... " >&6; }
3798if ${ac_cv_prog_cc_g+:} false; then :
3799 $as_echo_n "(cached) " >&6
3800else
3801 ac_save_c_werror_flag=$ac_c_werror_flag
3802 ac_c_werror_flag=yes
3803 ac_cv_prog_cc_g=no
3804 CFLAGS="-g"
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806/* end confdefs.h. */
3807
3808int
3809main ()
3810{
3811
3812 ;
3813 return 0;
3814}
3815_ACEOF
3816if ac_fn_c_try_compile "$LINENO"; then :
3817 ac_cv_prog_cc_g=yes
3818else
3819 CFLAGS=""
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821/* end confdefs.h. */
3822
3823int
3824main ()
3825{
3826
3827 ;
3828 return 0;
3829}
3830_ACEOF
3831if ac_fn_c_try_compile "$LINENO"; then :
3832
3833else
3834 ac_c_werror_flag=$ac_save_c_werror_flag
3835 CFLAGS="-g"
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837/* end confdefs.h. */
3838
3839int
3840main ()
3841{
3842
3843 ;
3844 return 0;
3845}
3846_ACEOF
3847if ac_fn_c_try_compile "$LINENO"; then :
3848 ac_cv_prog_cc_g=yes
3849fi
3850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851fi
3852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853fi
3854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 ac_c_werror_flag=$ac_save_c_werror_flag
3856fi
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3858$as_echo "$ac_cv_prog_cc_g" >&6; }
3859if test "$ac_test_CFLAGS" = set; then
3860 CFLAGS=$ac_save_CFLAGS
3861elif test $ac_cv_prog_cc_g = yes; then
3862 if test "$GCC" = yes; then
3863 CFLAGS="-g -O2"
3864 else
3865 CFLAGS="-g"
3866 fi
3867else
3868 if test "$GCC" = yes; then
3869 CFLAGS="-O2"
3870 else
3871 CFLAGS=
3872 fi
3873fi
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3875$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3876if ${ac_cv_prog_cc_c89+:} false; then :
3877 $as_echo_n "(cached) " >&6
3878else
3879 ac_cv_prog_cc_c89=no
3880ac_save_CC=$CC
3881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882/* end confdefs.h. */
3883#include <stdarg.h>
3884#include <stdio.h>
3885struct stat;
3886/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3887struct buf { int x; };
3888FILE * (*rcsopen) (struct buf *, struct stat *, int);
3889static char *e (p, i)
3890 char **p;
3891 int i;
3892{
3893 return p[i];
3894}
3895static char *f (char * (*g) (char **, int), char **p, ...)
3896{
3897 char *s;
3898 va_list v;
3899 va_start (v,p);
3900 s = g (p, va_arg (v,int));
3901 va_end (v);
3902 return s;
3903}
3904
3905/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3906 function prototypes and stuff, but not '\xHH' hex character constants.
3907 These don't provoke an error unfortunately, instead are silently treated
3908 as 'x'. The following induces an error, until -std is added to get
3909 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3910 array size at least. It's necessary to write '\x00'==0 to get something
3911 that's true only with -std. */
3912int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3913
3914/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3915 inside strings and character constants. */
3916#define FOO(x) 'x'
3917int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3918
3919int test (int i, double x);
3920struct s1 {int (*f) (int a);};
3921struct s2 {int (*f) (double a);};
3922int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3923int argc;
3924char **argv;
3925int
3926main ()
3927{
3928return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3929 ;
3930 return 0;
3931}
3932_ACEOF
3933for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3934 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3935do
3936 CC="$ac_save_CC $ac_arg"
3937 if ac_fn_c_try_compile "$LINENO"; then :
3938 ac_cv_prog_cc_c89=$ac_arg
3939fi
3940rm -f core conftest.err conftest.$ac_objext
3941 test "x$ac_cv_prog_cc_c89" != "xno" && break
3942done
3943rm -f conftest.$ac_ext
3944CC=$ac_save_CC
3945
3946fi
3947# AC_CACHE_VAL
3948case "x$ac_cv_prog_cc_c89" in
3949 x)
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3951$as_echo "none needed" >&6; } ;;
3952 xno)
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3954$as_echo "unsupported" >&6; } ;;
3955 *)
3956 CC="$CC $ac_cv_prog_cc_c89"
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3958$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3959esac
3960if test "x$ac_cv_prog_cc_c89" != xno; then :
3961
3962fi
3963
3964ac_ext=c
3965ac_cpp='$CPP $CPPFLAGS'
3966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968ac_compiler_gnu=$ac_cv_c_compiler_gnu
3969
David McGrewb67061f2005-09-28 14:23:06 +00003970ac_aux_dir=
jfigusc7e66e32013-05-08 11:32:55 -04003971for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3972 if test -f "$ac_dir/install-sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003973 ac_aux_dir=$ac_dir
3974 ac_install_sh="$ac_aux_dir/install-sh -c"
3975 break
jfigusc7e66e32013-05-08 11:32:55 -04003976 elif test -f "$ac_dir/install.sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003977 ac_aux_dir=$ac_dir
3978 ac_install_sh="$ac_aux_dir/install.sh -c"
3979 break
jfigusc7e66e32013-05-08 11:32:55 -04003980 elif test -f "$ac_dir/shtool"; then
David McGrewb67061f2005-09-28 14:23:06 +00003981 ac_aux_dir=$ac_dir
3982 ac_install_sh="$ac_aux_dir/shtool install -c"
3983 break
3984 fi
3985done
3986if test -z "$ac_aux_dir"; then
jfigusc7e66e32013-05-08 11:32:55 -04003987 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
David McGrewb67061f2005-09-28 14:23:06 +00003988fi
jfigusc7e66e32013-05-08 11:32:55 -04003989
3990# These three variables are undocumented and unsupported,
3991# and are intended to be withdrawn in a future Autoconf release.
3992# They can cause serious problems if a builder's source tree is in a directory
3993# whose full name contains unusual characters.
3994ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3995ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3996ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3997
Cullen Jennings235513a2005-09-21 22:51:36 +00003998
David McGrewb67061f2005-09-28 14:23:06 +00003999# Find a good install program. We prefer a C program (faster),
4000# so one script is as good as another. But avoid the broken or
4001# incompatible versions:
4002# SysV /etc/install, /usr/sbin/install
4003# SunOS /usr/etc/install
4004# IRIX /sbin/install
4005# AIX /bin/install
4006# AmigaOS /C/install, which installs bootblocks on floppy discs
4007# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4008# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4009# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4010# OS/2's system install, which has a completely different semantic
4011# ./install, which can be erroneously created by make from ./install.sh.
jfigusc7e66e32013-05-08 11:32:55 -04004012# Reject install programs that cannot install multiple files.
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4014$as_echo_n "checking for a BSD-compatible install... " >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00004015if test -z "$INSTALL"; then
jfigusc7e66e32013-05-08 11:32:55 -04004016if ${ac_cv_path_install+:} false; then :
4017 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004018else
David McGrewb67061f2005-09-28 14:23:06 +00004019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH
4021do
4022 IFS=$as_save_IFS
4023 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04004024 # Account for people who put trailing slashes in PATH elements.
4025case $as_dir/ in #((
4026 ./ | .// | /[cC]/* | \
David McGrewb67061f2005-09-28 14:23:06 +00004027 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jfigusc7e66e32013-05-08 11:32:55 -04004028 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
David McGrewb67061f2005-09-28 14:23:06 +00004029 /usr/ucb/* ) ;;
4030 *)
4031 # OSF1 and SCO ODT 3.0 have their own names for install.
4032 # Don't use installbsd from OSF since it installs stuff as root
4033 # by default.
4034 for ac_prog in ginstall scoinst install; do
4035 for ac_exec_ext in '' $ac_executable_extensions; do
jfigusc7e66e32013-05-08 11:32:55 -04004036 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
David McGrewb67061f2005-09-28 14:23:06 +00004037 if test $ac_prog = install &&
4038 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4039 # AIX install. It has an incompatible calling convention.
4040 :
4041 elif test $ac_prog = install &&
4042 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4043 # program-specific install script used by HP pwplus--don't use.
4044 :
4045 else
jfigusc7e66e32013-05-08 11:32:55 -04004046 rm -rf conftest.one conftest.two conftest.dir
4047 echo one > conftest.one
4048 echo two > conftest.two
4049 mkdir conftest.dir
4050 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4051 test -s conftest.one && test -s conftest.two &&
4052 test -s conftest.dir/conftest.one &&
4053 test -s conftest.dir/conftest.two
4054 then
4055 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4056 break 3
4057 fi
David McGrewb67061f2005-09-28 14:23:06 +00004058 fi
4059 fi
4060 done
4061 done
4062 ;;
4063esac
Cullen Jennings235513a2005-09-21 22:51:36 +00004064
jfigusc7e66e32013-05-08 11:32:55 -04004065 done
4066IFS=$as_save_IFS
4067
4068rm -rf conftest.one conftest.two conftest.dir
Cullen Jennings235513a2005-09-21 22:51:36 +00004069
4070fi
David McGrewb67061f2005-09-28 14:23:06 +00004071 if test "${ac_cv_path_install+set}" = set; then
4072 INSTALL=$ac_cv_path_install
4073 else
jfigusc7e66e32013-05-08 11:32:55 -04004074 # As a last resort, use the slow shell script. Don't cache a
4075 # value for INSTALL within a source directory, because that will
David McGrewb67061f2005-09-28 14:23:06 +00004076 # break other packages using the cache if that directory is
jfigusc7e66e32013-05-08 11:32:55 -04004077 # removed, or if the value is a relative name.
David McGrewb67061f2005-09-28 14:23:06 +00004078 INSTALL=$ac_install_sh
4079 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00004080fi
jfigusc7e66e32013-05-08 11:32:55 -04004081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4082$as_echo "$INSTALL" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004083
David McGrewb67061f2005-09-28 14:23:06 +00004084# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4085# It thinks the first close brace ends the variable substitution.
4086test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00004087
David McGrewb67061f2005-09-28 14:23:06 +00004088test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4089
4090test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00004091
4092
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004093ac_ext=c
4094ac_cpp='$CPP $CPPFLAGS'
4095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097ac_compiler_gnu=$ac_cv_c_compiler_gnu
jfigusc7e66e32013-05-08 11:32:55 -04004098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4099$as_echo_n "checking how to run the C preprocessor... " >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004100# On Suns, sometimes $CPP names a directory.
4101if test -n "$CPP" && test -d "$CPP"; then
4102 CPP=
4103fi
4104if test -z "$CPP"; then
jfigusc7e66e32013-05-08 11:32:55 -04004105 if ${ac_cv_prog_CPP+:} false; then :
4106 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004107else
4108 # Double quotes because CPP needs to be expanded
4109 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4110 do
4111 ac_preproc_ok=false
4112for ac_c_preproc_warn_flag in '' yes
4113do
4114 # Use a header file that comes with gcc, so configuring glibc
4115 # with a fresh cross-compiler works.
4116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4117 # <limits.h> exists even on freestanding compilers.
4118 # On the NeXT, cc -E runs the code through the compiler's parser,
4119 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04004120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004121/* end confdefs.h. */
4122#ifdef __STDC__
4123# include <limits.h>
4124#else
4125# include <assert.h>
4126#endif
4127 Syntax error
4128_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004129if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004130
jfigusc7e66e32013-05-08 11:32:55 -04004131else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004132 # Broken: fails on valid input.
4133continue
4134fi
jfigusc7e66e32013-05-08 11:32:55 -04004135rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004136
jfigusc7e66e32013-05-08 11:32:55 -04004137 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004138 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04004139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004140/* end confdefs.h. */
4141#include <ac_nonexistent.h>
4142_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004143if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004144 # Broken: success on invalid input.
4145continue
4146else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004147 # Passes both tests.
4148ac_preproc_ok=:
4149break
4150fi
jfigusc7e66e32013-05-08 11:32:55 -04004151rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004152
4153done
4154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04004155rm -f conftest.i conftest.err conftest.$ac_ext
4156if $ac_preproc_ok; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004157 break
4158fi
4159
4160 done
4161 ac_cv_prog_CPP=$CPP
4162
4163fi
4164 CPP=$ac_cv_prog_CPP
4165else
4166 ac_cv_prog_CPP=$CPP
4167fi
jfigusc7e66e32013-05-08 11:32:55 -04004168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4169$as_echo "$CPP" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004170ac_preproc_ok=false
4171for ac_c_preproc_warn_flag in '' yes
4172do
4173 # Use a header file that comes with gcc, so configuring glibc
4174 # with a fresh cross-compiler works.
4175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4176 # <limits.h> exists even on freestanding compilers.
4177 # On the NeXT, cc -E runs the code through the compiler's parser,
4178 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04004179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004180/* end confdefs.h. */
4181#ifdef __STDC__
4182# include <limits.h>
4183#else
4184# include <assert.h>
4185#endif
4186 Syntax error
4187_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004188if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004189
jfigusc7e66e32013-05-08 11:32:55 -04004190else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004191 # Broken: fails on valid input.
4192continue
4193fi
jfigusc7e66e32013-05-08 11:32:55 -04004194rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004195
jfigusc7e66e32013-05-08 11:32:55 -04004196 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004197 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04004198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004199/* end confdefs.h. */
4200#include <ac_nonexistent.h>
4201_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004202if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004203 # Broken: success on invalid input.
4204continue
4205else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004206 # Passes both tests.
4207ac_preproc_ok=:
4208break
4209fi
jfigusc7e66e32013-05-08 11:32:55 -04004210rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004211
4212done
4213# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04004214rm -f conftest.i conftest.err conftest.$ac_ext
4215if $ac_preproc_ok; then :
4216
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004217else
jfigusc7e66e32013-05-08 11:32:55 -04004218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4220as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4221See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004222fi
4223
4224ac_ext=c
4225ac_cpp='$CPP $CPPFLAGS'
4226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229
4230
jfigusc7e66e32013-05-08 11:32:55 -04004231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4232$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4233if ${ac_cv_path_GREP+:} false; then :
4234 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004235else
jfigusc7e66e32013-05-08 11:32:55 -04004236 if test -z "$GREP"; then
4237 ac_path_GREP_found=false
4238 # Loop through the user's path and test for each of PROGNAME-LIST
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4241do
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_prog in grep ggrep; do
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4247 as_fn_executable_p "$ac_path_GREP" || continue
4248# Check for GNU ac_path_GREP and select it if it is found.
4249 # Check for GNU $ac_path_GREP
4250case `"$ac_path_GREP" --version 2>&1` in
4251*GNU*)
4252 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4253*)
4254 ac_count=0
4255 $as_echo_n 0123456789 >"conftest.in"
4256 while :
4257 do
4258 cat "conftest.in" "conftest.in" >"conftest.tmp"
4259 mv "conftest.tmp" "conftest.in"
4260 cp "conftest.in" "conftest.nl"
4261 $as_echo 'GREP' >> "conftest.nl"
4262 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4264 as_fn_arith $ac_count + 1 && ac_count=$as_val
4265 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4266 # Best one so far, save it but keep looking for a better one
4267 ac_cv_path_GREP="$ac_path_GREP"
4268 ac_path_GREP_max=$ac_count
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004269 fi
jfigusc7e66e32013-05-08 11:32:55 -04004270 # 10*(2^10) chars as input seems more than enough
4271 test $ac_count -gt 10 && break
4272 done
4273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4274esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004275
jfigusc7e66e32013-05-08 11:32:55 -04004276 $ac_path_GREP_found && break 3
4277 done
4278 done
4279 done
4280IFS=$as_save_IFS
4281 if test -z "$ac_cv_path_GREP"; then
4282 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4283 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004284else
jfigusc7e66e32013-05-08 11:32:55 -04004285 ac_cv_path_GREP=$GREP
4286fi
4287
4288fi
4289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4290$as_echo "$ac_cv_path_GREP" >&6; }
4291 GREP="$ac_cv_path_GREP"
4292
4293
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4295$as_echo_n "checking for egrep... " >&6; }
4296if ${ac_cv_path_EGREP+:} false; then :
4297 $as_echo_n "(cached) " >&6
4298else
4299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4300 then ac_cv_path_EGREP="$GREP -E"
4301 else
4302 if test -z "$EGREP"; then
4303 ac_path_EGREP_found=false
4304 # Loop through the user's path and test for each of PROGNAME-LIST
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4307do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_prog in egrep; do
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4313 as_fn_executable_p "$ac_path_EGREP" || continue
4314# Check for GNU ac_path_EGREP and select it if it is found.
4315 # Check for GNU $ac_path_EGREP
4316case `"$ac_path_EGREP" --version 2>&1` in
4317*GNU*)
4318 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4319*)
4320 ac_count=0
4321 $as_echo_n 0123456789 >"conftest.in"
4322 while :
4323 do
4324 cat "conftest.in" "conftest.in" >"conftest.tmp"
4325 mv "conftest.tmp" "conftest.in"
4326 cp "conftest.in" "conftest.nl"
4327 $as_echo 'EGREP' >> "conftest.nl"
4328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4330 as_fn_arith $ac_count + 1 && ac_count=$as_val
4331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4332 # Best one so far, save it but keep looking for a better one
4333 ac_cv_path_EGREP="$ac_path_EGREP"
4334 ac_path_EGREP_max=$ac_count
4335 fi
4336 # 10*(2^10) chars as input seems more than enough
4337 test $ac_count -gt 10 && break
4338 done
4339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4340esac
4341
4342 $ac_path_EGREP_found && break 3
4343 done
4344 done
4345 done
4346IFS=$as_save_IFS
4347 if test -z "$ac_cv_path_EGREP"; then
4348 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4349 fi
4350else
4351 ac_cv_path_EGREP=$EGREP
4352fi
4353
4354 fi
4355fi
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4357$as_echo "$ac_cv_path_EGREP" >&6; }
4358 EGREP="$ac_cv_path_EGREP"
4359
4360
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4362$as_echo_n "checking for ANSI C header files... " >&6; }
4363if ${ac_cv_header_stdc+:} false; then :
4364 $as_echo_n "(cached) " >&6
4365else
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004367/* end confdefs.h. */
4368#include <stdlib.h>
4369#include <stdarg.h>
4370#include <string.h>
4371#include <float.h>
4372
4373int
4374main ()
4375{
4376
4377 ;
4378 return 0;
4379}
4380_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004381if ac_fn_c_try_compile "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04004382 ac_cv_header_stdc=yes
4383else
jfigusc7e66e32013-05-08 11:32:55 -04004384 ac_cv_header_stdc=no
jfigusa14b5a02013-03-29 12:24:12 -04004385fi
jfigusc7e66e32013-05-08 11:32:55 -04004386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004387
4388if test $ac_cv_header_stdc = yes; then
4389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04004390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004391/* end confdefs.h. */
4392#include <string.h>
4393
4394_ACEOF
4395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04004396 $EGREP "memchr" >/dev/null 2>&1; then :
4397
jfigusa14b5a02013-03-29 12:24:12 -04004398else
4399 ac_cv_header_stdc=no
4400fi
4401rm -f conftest*
4402
4403fi
4404
4405if test $ac_cv_header_stdc = yes; then
4406 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04004407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004408/* end confdefs.h. */
4409#include <stdlib.h>
4410
4411_ACEOF
4412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04004413 $EGREP "free" >/dev/null 2>&1; then :
4414
jfigusa14b5a02013-03-29 12:24:12 -04004415else
4416 ac_cv_header_stdc=no
4417fi
4418rm -f conftest*
4419
4420fi
4421
4422if test $ac_cv_header_stdc = yes; then
4423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jfigusc7e66e32013-05-08 11:32:55 -04004424 if test "$cross_compiling" = yes; then :
jfigusa14b5a02013-03-29 12:24:12 -04004425 :
4426else
jfigusc7e66e32013-05-08 11:32:55 -04004427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004428/* end confdefs.h. */
4429#include <ctype.h>
jfigusc7e66e32013-05-08 11:32:55 -04004430#include <stdlib.h>
jfigusa14b5a02013-03-29 12:24:12 -04004431#if ((' ' & 0x0FF) == 0x020)
4432# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4433# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4434#else
4435# define ISLOWER(c) \
4436 (('a' <= (c) && (c) <= 'i') \
4437 || ('j' <= (c) && (c) <= 'r') \
4438 || ('s' <= (c) && (c) <= 'z'))
4439# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4440#endif
4441
4442#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4443int
4444main ()
4445{
4446 int i;
4447 for (i = 0; i < 256; i++)
4448 if (XOR (islower (i), ISLOWER (i))
4449 || toupper (i) != TOUPPER (i))
jfigusc7e66e32013-05-08 11:32:55 -04004450 return 2;
4451 return 0;
jfigusa14b5a02013-03-29 12:24:12 -04004452}
4453_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004454if ac_fn_c_try_run "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04004455
jfigusc7e66e32013-05-08 11:32:55 -04004456else
4457 ac_cv_header_stdc=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004458fi
jfigusc7e66e32013-05-08 11:32:55 -04004459rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4460 conftest.$ac_objext conftest.beam conftest.$ac_ext
4461fi
4462
jfigusa14b5a02013-03-29 12:24:12 -04004463fi
4464fi
jfigusc7e66e32013-05-08 11:32:55 -04004465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4466$as_echo "$ac_cv_header_stdc" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04004467if test $ac_cv_header_stdc = yes; then
4468
jfigusc7e66e32013-05-08 11:32:55 -04004469$as_echo "#define STDC_HEADERS 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04004470
4471fi
4472
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004473# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004474for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4475 inttypes.h stdint.h unistd.h
jfigusc7e66e32013-05-08 11:32:55 -04004476do :
4477 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4478ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4479"
4480if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004481 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004482#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004483_ACEOF
4484
4485fi
4486
4487done
4488
4489
jfigusc7e66e32013-05-08 11:32:55 -04004490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4491$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4492if ${ac_cv_c_bigendian+:} false; then :
4493 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004494else
jfigusc7e66e32013-05-08 11:32:55 -04004495 ac_cv_c_bigendian=unknown
4496 # See if we're dealing with a universal compiler.
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004498/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004499#ifndef __APPLE_CC__
4500 not a universal capable compiler
4501 #endif
4502 typedef int dummy;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004503
jfigusc7e66e32013-05-08 11:32:55 -04004504_ACEOF
4505if ac_fn_c_try_compile "$LINENO"; then :
4506
4507 # Check for potential -arch flags. It is not universal unless
4508 # there are at least two -arch flags with different values.
4509 ac_arch=
4510 ac_prev=
4511 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4512 if test -n "$ac_prev"; then
4513 case $ac_word in
4514 i?86 | x86_64 | ppc | ppc64)
4515 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4516 ac_arch=$ac_word
4517 else
4518 ac_cv_c_bigendian=universal
4519 break
4520 fi
4521 ;;
4522 esac
4523 ac_prev=
4524 elif test "x$ac_word" = "x-arch"; then
4525 ac_prev=arch
4526 fi
4527 done
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004528fi
jfigusc7e66e32013-05-08 11:32:55 -04004529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530 if test $ac_cv_c_bigendian = unknown; then
4531 # See if sys/param.h defines the BYTE_ORDER macro.
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004533/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004534#include <sys/types.h>
4535 #include <sys/param.h>
4536
4537int
4538main ()
4539{
4540#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4541 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4542 && LITTLE_ENDIAN)
4543 bogus endian macros
4544 #endif
4545
4546 ;
4547 return 0;
4548}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004549_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004550if ac_fn_c_try_compile "$LINENO"; then :
4551 # It does; now see whether it defined to BIG_ENDIAN or not.
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004553/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004554#include <sys/types.h>
4555 #include <sys/param.h>
4556
4557int
4558main ()
4559{
4560#if BYTE_ORDER != BIG_ENDIAN
4561 not big endian
4562 #endif
4563
4564 ;
4565 return 0;
4566}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004567_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004568if ac_fn_c_try_compile "$LINENO"; then :
4569 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004570else
jfigusc7e66e32013-05-08 11:32:55 -04004571 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004572fi
jfigusc7e66e32013-05-08 11:32:55 -04004573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574fi
4575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 fi
4577 if test $ac_cv_c_bigendian = unknown; then
4578 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004580/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004581#include <limits.h>
4582
4583int
4584main ()
4585{
4586#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4587 bogus endian macros
4588 #endif
4589
4590 ;
4591 return 0;
4592}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004593_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004594if ac_fn_c_try_compile "$LINENO"; then :
4595 # It does; now see whether it defined to _BIG_ENDIAN or not.
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004597/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004598#include <limits.h>
4599
4600int
4601main ()
4602{
4603#ifndef _BIG_ENDIAN
4604 not big endian
4605 #endif
4606
4607 ;
4608 return 0;
4609}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004610_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004611if ac_fn_c_try_compile "$LINENO"; then :
4612 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004613else
jfigusc7e66e32013-05-08 11:32:55 -04004614 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004615fi
jfigusc7e66e32013-05-08 11:32:55 -04004616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617fi
4618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 fi
4620 if test $ac_cv_c_bigendian = unknown; then
4621 # Compile a test program.
4622 if test "$cross_compiling" = yes; then :
4623 # Try to guess by grepping values from an object file.
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004625/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004626short int ascii_mm[] =
4627 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4628 short int ascii_ii[] =
4629 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4630 int use_ascii (int i) {
4631 return ascii_mm[i] + ascii_ii[i];
4632 }
4633 short int ebcdic_ii[] =
4634 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4635 short int ebcdic_mm[] =
4636 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4637 int use_ebcdic (int i) {
4638 return ebcdic_mm[i] + ebcdic_ii[i];
4639 }
4640 extern int foo;
4641
4642int
4643main ()
4644{
4645return use_ascii (foo) == use_ebcdic (foo);
4646 ;
4647 return 0;
4648}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004649_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004650if ac_fn_c_try_compile "$LINENO"; then :
4651 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4652 ac_cv_c_bigendian=yes
4653 fi
4654 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4655 if test "$ac_cv_c_bigendian" = unknown; then
4656 ac_cv_c_bigendian=no
4657 else
4658 # finding both strings is unlikely to happen, but who knows?
4659 ac_cv_c_bigendian=unknown
4660 fi
4661 fi
4662fi
4663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004664else
jfigusc7e66e32013-05-08 11:32:55 -04004665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004666/* end confdefs.h. */
4667$ac_includes_default
4668int
4669main ()
4670{
jfigusc7e66e32013-05-08 11:32:55 -04004671
4672 /* Are we little or big endian? From Harbison&Steele. */
4673 union
4674 {
4675 long int l;
4676 char c[sizeof (long int)];
4677 } u;
4678 u.l = 1;
4679 return u.c[sizeof (long int) - 1] == 1;
4680
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004681 ;
4682 return 0;
4683}
4684_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004685if ac_fn_c_try_run "$LINENO"; then :
4686 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004687else
jfigusc7e66e32013-05-08 11:32:55 -04004688 ac_cv_c_bigendian=yes
4689fi
4690rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4691 conftest.$ac_objext conftest.beam conftest.$ac_ext
4692fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004693
jfigusc7e66e32013-05-08 11:32:55 -04004694 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004695fi
jfigusc7e66e32013-05-08 11:32:55 -04004696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4697$as_echo "$ac_cv_c_bigendian" >&6; }
4698 case $ac_cv_c_bigendian in #(
4699 yes)
4700 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4701;; #(
4702 no)
4703 ;; #(
4704 universal)
4705
4706$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4707
4708 ;; #(
4709 *)
4710 as_fn_error $? "unknown endianness
4711 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4712 esac
4713
4714
4715# Make sure we can run config.sub.
4716$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4717 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4718
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4720$as_echo_n "checking build system type... " >&6; }
4721if ${ac_cv_build+:} false; then :
4722 $as_echo_n "(cached) " >&6
4723else
4724 ac_build_alias=$build_alias
4725test "x$ac_build_alias" = x &&
4726 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4727test "x$ac_build_alias" = x &&
4728 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4729ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4730 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4731
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004732fi
jfigusc7e66e32013-05-08 11:32:55 -04004733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4734$as_echo "$ac_cv_build" >&6; }
4735case $ac_cv_build in
4736*-*-*) ;;
4737*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4738esac
4739build=$ac_cv_build
4740ac_save_IFS=$IFS; IFS='-'
4741set x $ac_cv_build
4742shift
4743build_cpu=$1
4744build_vendor=$2
4745shift; shift
4746# Remember, the first character of IFS is used to create $*,
4747# except with old shells:
4748build_os=$*
4749IFS=$ac_save_IFS
4750case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4751
4752
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4754$as_echo_n "checking host system type... " >&6; }
4755if ${ac_cv_host+:} false; then :
4756 $as_echo_n "(cached) " >&6
4757else
4758 if test "x$host_alias" = x; then
4759 ac_cv_host=$ac_cv_build
4760else
4761 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4762 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4763fi
4764
4765fi
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4767$as_echo "$ac_cv_host" >&6; }
4768case $ac_cv_host in
4769*-*-*) ;;
4770*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4771esac
4772host=$ac_cv_host
4773ac_save_IFS=$IFS; IFS='-'
4774set x $ac_cv_host
4775shift
4776host_cpu=$1
4777host_vendor=$2
4778shift; shift
4779# Remember, the first character of IFS is used to create $*,
4780# except with old shells:
4781host_os=$*
4782IFS=$ac_save_IFS
4783case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4784
4785
4786
4787case $host_cpu in
4788 i*86 | x86_64 )
4789
4790$as_echo "#define CPU_CISC 1" >>confdefs.h
4791
4792
4793$as_echo "#define HAVE_X86 1" >>confdefs.h
4794;;
4795 * )
jfigusc7e66e32013-05-08 11:32:55 -04004796
4797$as_echo "#define CPU_RISC 1" >>confdefs.h
jfigusfb838412014-12-04 10:15:47 -05004798
jfigusc7e66e32013-05-08 11:32:55 -04004799 ;;
4800esac
4801
4802case $host_os in
4803 *cygwin*|*mingw* )
4804 EXE=.exe
4805 HOST_IS_WINDOWS=yes
4806 ;;
4807 * )
4808 EXE=""
4809 ;;
4810esac
4811 # define executable suffix; this is needed for `make clean'
4812
jfigusc7e66e32013-05-08 11:32:55 -04004813
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4815$as_echo_n "checking for ANSI C header files... " >&6; }
4816if ${ac_cv_header_stdc+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818else
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820/* end confdefs.h. */
4821#include <stdlib.h>
4822#include <stdarg.h>
4823#include <string.h>
4824#include <float.h>
4825
4826int
4827main ()
4828{
4829
4830 ;
4831 return 0;
4832}
4833_ACEOF
4834if ac_fn_c_try_compile "$LINENO"; then :
4835 ac_cv_header_stdc=yes
4836else
4837 ac_cv_header_stdc=no
4838fi
4839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840
4841if test $ac_cv_header_stdc = yes; then
4842 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844/* end confdefs.h. */
4845#include <string.h>
4846
4847_ACEOF
4848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4849 $EGREP "memchr" >/dev/null 2>&1; then :
4850
4851else
4852 ac_cv_header_stdc=no
4853fi
4854rm -f conftest*
4855
4856fi
4857
4858if test $ac_cv_header_stdc = yes; then
4859 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861/* end confdefs.h. */
4862#include <stdlib.h>
4863
4864_ACEOF
4865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4866 $EGREP "free" >/dev/null 2>&1; then :
4867
4868else
4869 ac_cv_header_stdc=no
4870fi
4871rm -f conftest*
4872
4873fi
4874
4875if test $ac_cv_header_stdc = yes; then
4876 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4877 if test "$cross_compiling" = yes; then :
4878 :
4879else
4880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881/* end confdefs.h. */
4882#include <ctype.h>
4883#include <stdlib.h>
4884#if ((' ' & 0x0FF) == 0x020)
4885# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4886# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4887#else
4888# define ISLOWER(c) \
4889 (('a' <= (c) && (c) <= 'i') \
4890 || ('j' <= (c) && (c) <= 'r') \
4891 || ('s' <= (c) && (c) <= 'z'))
4892# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4893#endif
4894
4895#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4896int
4897main ()
4898{
4899 int i;
4900 for (i = 0; i < 256; i++)
4901 if (XOR (islower (i), ISLOWER (i))
4902 || toupper (i) != TOUPPER (i))
4903 return 2;
4904 return 0;
4905}
4906_ACEOF
4907if ac_fn_c_try_run "$LINENO"; then :
4908
4909else
4910 ac_cv_header_stdc=no
4911fi
4912rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4913 conftest.$ac_objext conftest.beam conftest.$ac_ext
4914fi
4915
4916fi
4917fi
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4919$as_echo "$ac_cv_header_stdc" >&6; }
4920if test $ac_cv_header_stdc = yes; then
4921
4922$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4923
4924fi
4925
4926for ac_header in stdlib.h
4927do :
4928 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4929if test "x$ac_cv_header_stdlib_h" = xyes; then :
4930 cat >>confdefs.h <<_ACEOF
4931#define HAVE_STDLIB_H 1
4932_ACEOF
4933
4934fi
4935
4936done
4937
4938for ac_header in unistd.h
4939do :
4940 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4941if test "x$ac_cv_header_unistd_h" = xyes; then :
4942 cat >>confdefs.h <<_ACEOF
4943#define HAVE_UNISTD_H 1
4944_ACEOF
4945
4946fi
4947
4948done
4949
4950for ac_header in byteswap.h
4951do :
4952 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
4953if test "x$ac_cv_header_byteswap_h" = xyes; then :
4954 cat >>confdefs.h <<_ACEOF
4955#define HAVE_BYTESWAP_H 1
4956_ACEOF
4957
4958fi
4959
4960done
4961
4962for ac_header in stdint.h
4963do :
4964 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4965if test "x$ac_cv_header_stdint_h" = xyes; then :
4966 cat >>confdefs.h <<_ACEOF
4967#define HAVE_STDINT_H 1
4968_ACEOF
4969
4970fi
4971
4972done
4973
4974for ac_header in sys/uio.h
4975do :
4976 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
4977if test "x$ac_cv_header_sys_uio_h" = xyes; then :
4978 cat >>confdefs.h <<_ACEOF
4979#define HAVE_SYS_UIO_H 1
4980_ACEOF
4981
4982fi
4983
4984done
4985
4986for ac_header in inttypes.h
4987do :
4988 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
4989if test "x$ac_cv_header_inttypes_h" = xyes; then :
4990 cat >>confdefs.h <<_ACEOF
4991#define HAVE_INTTYPES_H 1
4992_ACEOF
4993
4994fi
4995
4996done
4997
4998for ac_header in sys/types.h
4999do :
5000 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
5001if test "x$ac_cv_header_sys_types_h" = xyes; then :
5002 cat >>confdefs.h <<_ACEOF
5003#define HAVE_SYS_TYPES_H 1
5004_ACEOF
5005
5006fi
5007
5008done
5009
5010for ac_header in machine/types.h
5011do :
5012 ac_fn_c_check_header_mongrel "$LINENO" "machine/types.h" "ac_cv_header_machine_types_h" "$ac_includes_default"
5013if test "x$ac_cv_header_machine_types_h" = xyes; then :
5014 cat >>confdefs.h <<_ACEOF
5015#define HAVE_MACHINE_TYPES_H 1
5016_ACEOF
5017
5018fi
5019
5020done
5021
5022for ac_header in sys/int_types.h
5023do :
5024 ac_fn_c_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default"
5025if test "x$ac_cv_header_sys_int_types_h" = xyes; then :
5026 cat >>confdefs.h <<_ACEOF
5027#define HAVE_SYS_INT_TYPES_H 1
5028_ACEOF
5029
5030fi
5031
5032done
5033
5034
5035for ac_header in sys/socket.h netinet/in.h arpa/inet.h
5036do :
5037 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5038ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5039if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5040 cat >>confdefs.h <<_ACEOF
5041#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5042_ACEOF
5043
5044fi
5045
5046done
5047
5048for ac_header in windows.h
5049do :
5050 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
5051if test "x$ac_cv_header_windows_h" = xyes; then :
5052 cat >>confdefs.h <<_ACEOF
5053#define HAVE_WINDOWS_H 1
5054_ACEOF
5055 for ac_header in winsock2.h
5056do :
5057 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
5058if test "x$ac_cv_header_winsock2_h" = xyes; then :
5059 cat >>confdefs.h <<_ACEOF
5060#define HAVE_WINSOCK2_H 1
5061_ACEOF
5062
5063fi
5064
5065done
5066
5067fi
5068
5069done
5070
5071
jfigusc7e66e32013-05-08 11:32:55 -04005072ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
5073if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005074
David McGrewfec49dd2005-09-23 19:34:11 +00005075cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005076#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005077_ACEOF
5078
5079
5080fi
jfigusc7e66e32013-05-08 11:32:55 -04005081ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
5082if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005083
5084cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005085#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005086_ACEOF
5087
5088
5089fi
jfigusc7e66e32013-05-08 11:32:55 -04005090ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5091if test "x$ac_cv_type_int16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005092
5093cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005094#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005095_ACEOF
5096
5097
5098fi
jfigusc7e66e32013-05-08 11:32:55 -04005099ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5100if test "x$ac_cv_type_uint16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005101
5102cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005103#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005104_ACEOF
5105
5106
5107fi
jfigusc7e66e32013-05-08 11:32:55 -04005108ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5109if test "x$ac_cv_type_int32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005110
5111cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005112#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005113_ACEOF
5114
5115
5116fi
jfigusc7e66e32013-05-08 11:32:55 -04005117ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5118if test "x$ac_cv_type_uint32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005119
5120cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005121#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005122_ACEOF
5123
5124
5125fi
jfigusc7e66e32013-05-08 11:32:55 -04005126ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
5127if test "x$ac_cv_type_uint64_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005128
5129cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005130#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005131_ACEOF
5132
5133
5134fi
5135
jfigusc7e66e32013-05-08 11:32:55 -04005136# The cast to long int works around a bug in the HP C Compiler
5137# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5138# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5139# This bug is HP SR number 8606223364.
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
5141$as_echo_n "checking size of unsigned long... " >&6; }
5142if ${ac_cv_sizeof_unsigned_long+:} false; then :
5143 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005144else
jfigusc7e66e32013-05-08 11:32:55 -04005145 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 +00005146
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005147else
5148 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04005149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5151as_fn_error 77 "cannot compute sizeof (unsigned long)
5152See \`config.log' for more details" "$LINENO" 5; }
5153 else
5154 ac_cv_sizeof_unsigned_long=0
5155 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005156fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005157
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005158fi
jfigusc7e66e32013-05-08 11:32:55 -04005159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
5160$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005161
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005162
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005163
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005164cat >>confdefs.h <<_ACEOF
5165#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
5166_ACEOF
5167
David McGrewfec49dd2005-09-23 19:34:11 +00005168
jfigusc7e66e32013-05-08 11:32:55 -04005169# The cast to long int works around a bug in the HP C Compiler
5170# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5171# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5172# This bug is HP SR number 8606223364.
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
5174$as_echo_n "checking size of unsigned long long... " >&6; }
5175if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
5176 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00005177else
jfigusc7e66e32013-05-08 11:32:55 -04005178 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 +00005179
David McGrewfec49dd2005-09-23 19:34:11 +00005180else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005181 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04005182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5184as_fn_error 77 "cannot compute sizeof (unsigned long long)
5185See \`config.log' for more details" "$LINENO" 5; }
5186 else
5187 ac_cv_sizeof_unsigned_long_long=0
5188 fi
David McGrewfec49dd2005-09-23 19:34:11 +00005189fi
5190
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005191fi
jfigusc7e66e32013-05-08 11:32:55 -04005192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
5193$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005194
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005195
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005196
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005197cat >>confdefs.h <<_ACEOF
5198#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00005199_ACEOF
5200
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005201
Cullen Jennings235513a2005-09-21 22:51:36 +00005202
jfigusc7e66e32013-05-08 11:32:55 -04005203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5204$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5205if ${ac_cv_c_const+:} false; then :
5206 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005207else
jfigusc7e66e32013-05-08 11:32:55 -04005208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005209/* end confdefs.h. */
5210
5211int
5212main ()
5213{
jfigusc7e66e32013-05-08 11:32:55 -04005214
Cullen Jennings235513a2005-09-21 22:51:36 +00005215#ifndef __cplusplus
jfigusc7e66e32013-05-08 11:32:55 -04005216 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00005217 typedef int charset[2];
jfigusc7e66e32013-05-08 11:32:55 -04005218 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00005219 /* SunOS 4.1.1 cc rejects this. */
jfigusc7e66e32013-05-08 11:32:55 -04005220 char const *const *pcpcc;
5221 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00005222 /* NEC SVR4.0.2 mips cc rejects this. */
5223 struct point {int x, y;};
5224 static struct point const zero = {0,0};
5225 /* AIX XL C 1.02.0.0 rejects this.
5226 It does not let you subtract one const X* pointer from another in
5227 an arm of an if-expression whose if-part is not a constant
5228 expression */
5229 const char *g = "string";
jfigusc7e66e32013-05-08 11:32:55 -04005230 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00005231 /* HPUX 7.0 cc rejects these. */
jfigusc7e66e32013-05-08 11:32:55 -04005232 ++pcpcc;
5233 ppc = (char**) pcpcc;
5234 pcpcc = (char const *const *) ppc;
5235 { /* SCO 3.2v4 cc rejects this sort of thing. */
5236 char tx;
5237 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00005238 char const *s = 0 ? (char *) 0 : (char const *) 0;
5239
5240 *t++ = 0;
jfigusc7e66e32013-05-08 11:32:55 -04005241 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00005242 }
5243 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5244 int x[] = {25, 17};
5245 const int *foo = &x[0];
5246 ++foo;
5247 }
5248 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5249 typedef const int *iptr;
5250 iptr p = 0;
5251 ++p;
5252 }
jfigusc7e66e32013-05-08 11:32:55 -04005253 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00005254 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusc7e66e32013-05-08 11:32:55 -04005255 struct s { int j; const int *ap[3]; } bx;
5256 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00005257 }
5258 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5259 const int foo = 10;
jfigusc7e66e32013-05-08 11:32:55 -04005260 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00005261 }
jfigusc7e66e32013-05-08 11:32:55 -04005262 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00005263#endif
5264
5265 ;
5266 return 0;
5267}
5268_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005269if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005270 ac_cv_c_const=yes
5271else
jfigusc7e66e32013-05-08 11:32:55 -04005272 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00005273fi
jfigusc7e66e32013-05-08 11:32:55 -04005274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005275fi
jfigusc7e66e32013-05-08 11:32:55 -04005276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5277$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005278if test $ac_cv_c_const = no; then
5279
jfigusc7e66e32013-05-08 11:32:55 -04005280$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005281
5282fi
5283
jfigusc7e66e32013-05-08 11:32:55 -04005284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5285$as_echo_n "checking for inline... " >&6; }
5286if ${ac_cv_c_inline+:} false; then :
5287 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005288else
5289 ac_cv_c_inline=no
5290for ac_kw in inline __inline__ __inline; do
jfigusc7e66e32013-05-08 11:32:55 -04005291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005292/* end confdefs.h. */
5293#ifndef __cplusplus
5294typedef int foo_t;
5295static $ac_kw foo_t static_foo () {return 0; }
5296$ac_kw foo_t foo () {return 0; }
5297#endif
5298
5299_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005300if ac_fn_c_try_compile "$LINENO"; then :
5301 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00005302fi
jfigusc7e66e32013-05-08 11:32:55 -04005303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00005305done
5306
5307fi
jfigusc7e66e32013-05-08 11:32:55 -04005308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5309$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00005310
Cullen Jennings235513a2005-09-21 22:51:36 +00005311case $ac_cv_c_inline in
5312 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00005313 *)
5314 case $ac_cv_c_inline in
5315 no) ac_val=;;
5316 *) ac_val=$ac_cv_c_inline;;
5317 esac
5318 cat >>confdefs.h <<_ACEOF
5319#ifndef __cplusplus
5320#define inline $ac_val
5321#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00005322_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00005323 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005324esac
5325
jfigusc7e66e32013-05-08 11:32:55 -04005326ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5327if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005328
Cullen Jennings235513a2005-09-21 22:51:36 +00005329else
5330
5331cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005332#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00005333_ACEOF
5334
5335fi
5336
5337
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00005338for ac_func in socket inet_aton usleep sigaction
jfigusc7e66e32013-05-08 11:32:55 -04005339do :
5340 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5341ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5342if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005343 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005344#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00005345_ACEOF
5346
5347fi
5348done
5349
5350
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005351if test "x$ac_cv_func_socket" = "xno"; then
jfigusc7e66e32013-05-08 11:32:55 -04005352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5353$as_echo_n "checking for socket in -lsocket... " >&6; }
5354if ${ac_cv_lib_socket_socket+:} false; then :
5355 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00005356else
5357 ac_check_lib_save_LIBS=$LIBS
5358LIBS="-lsocket $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04005359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00005360/* end confdefs.h. */
5361
jfigusc7e66e32013-05-08 11:32:55 -04005362/* Override any GCC internal prototype to avoid an error.
5363 Use char because int might match the return type of a GCC
5364 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00005365#ifdef __cplusplus
5366extern "C"
5367#endif
David McGrewb67061f2005-09-28 14:23:06 +00005368char socket ();
5369int
5370main ()
5371{
jfigusc7e66e32013-05-08 11:32:55 -04005372return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00005373 ;
5374 return 0;
5375}
5376_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005377if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00005378 ac_cv_lib_socket_socket=yes
5379else
jfigusc7e66e32013-05-08 11:32:55 -04005380 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00005381fi
jfigusc7e66e32013-05-08 11:32:55 -04005382rm -f core conftest.err conftest.$ac_objext \
5383 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00005384LIBS=$ac_check_lib_save_LIBS
5385fi
jfigusc7e66e32013-05-08 11:32:55 -04005386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5387$as_echo "$ac_cv_lib_socket_socket" >&6; }
5388if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00005389 cat >>confdefs.h <<_ACEOF
5390#define HAVE_LIBSOCKET 1
5391_ACEOF
5392
5393 LIBS="-lsocket $LIBS"
5394
5395fi
5396
jfigusc7e66e32013-05-08 11:32:55 -04005397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
5398$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005399 SAVELIBS="$LIBS"
5400 LIBS="$LIBS -lwsock32"
jfigusc7e66e32013-05-08 11:32:55 -04005401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005402/* end confdefs.h. */
5403
5404#include <winsock2.h>
5405
5406int
5407main ()
5408{
5409
5410socket(0, 0, 0);
5411
5412 ;
5413 return 0;
5414}
5415_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005416if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005417 ac_cv_func_socket=yes
jfigusc7e66e32013-05-08 11:32:55 -04005418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5419$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005420else
jfigusc7e66e32013-05-08 11:32:55 -04005421 LIBS="$SAVELIBS"
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005424fi
jfigusc7e66e32013-05-08 11:32:55 -04005425rm -f core conftest.err conftest.$ac_objext \
5426 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005427fi
David McGrewb67061f2005-09-28 14:23:06 +00005428
jfigusc7e66e32013-05-08 11:32:55 -04005429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debugging" >&5
5430$as_echo_n "checking whether to compile in debugging... " >&6; }
5431# Check whether --enable-debug was given.
5432if test "${enable_debug+set}" = set; then :
5433 enableval=$enable_debug;
David McGrewb67061f2005-09-28 14:23:06 +00005434else
5435 enable_debug=yes
jfigusc7e66e32013-05-08 11:32:55 -04005436fi
5437
David McGrewb67061f2005-09-28 14:23:06 +00005438if test "$enable_debug" = "yes"; then
5439
jfigusc7e66e32013-05-08 11:32:55 -04005440$as_echo "#define ENABLE_DEBUGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005441
5442fi
jfigusc7e66e32013-05-08 11:32:55 -04005443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
5444$as_echo "$enable_debug" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005445
jfigusc7e66e32013-05-08 11:32:55 -04005446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ISMAcryp code" >&5
5447$as_echo_n "checking whether to use ISMAcryp code... " >&6; }
5448# Check whether --enable-generic-aesicm was given.
5449if test "${enable_generic_aesicm+set}" = set; then :
5450 enableval=$enable_generic_aesicm;
David McGrewb67061f2005-09-28 14:23:06 +00005451else
5452 enable_generic_aesicm=no
jfigusc7e66e32013-05-08 11:32:55 -04005453fi
5454
David McGrewb67061f2005-09-28 14:23:06 +00005455if test "$enable_generic_aesicm" = "yes"; then
5456
jfigusc7e66e32013-05-08 11:32:55 -04005457$as_echo "#define GENERIC_AESICM 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04005458
jfigusa14b5a02013-03-29 12:24:12 -04005459fi
jfigusc7e66e32013-05-08 11:32:55 -04005460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generic_aesicm" >&5
5461$as_echo "$enable_generic_aesicm" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04005462
jfigusc7e66e32013-05-08 11:32:55 -04005463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
5464$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
5465# Check whether --enable-openssl was given.
5466if test "${enable_openssl+set}" = set; then :
5467 enableval=$enable_openssl;
5468else
5469 enable_openssl=no
5470fi
jfigusa14b5a02013-03-29 12:24:12 -04005471
jfigus2b486652014-07-24 15:01:41 -04005472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
5473$as_echo "$enable_openssl" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04005474if test "$enable_openssl" = "yes"; then
jfigus038d2cf2015-05-11 14:10:11 -04005475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user specified OpenSSL directory" >&5
5476$as_echo_n "checking for user specified OpenSSL directory... " >&6; }
5477
5478# Check whether --with-openssl-dir was given.
5479if test "${with_openssl_dir+set}" = set; then :
5480 withval=$with_openssl_dir; openssl_dir="$withval"
5481else
5482 openssl_dir=""
5483fi
5484
5485
5486 LDFLAGS="$LDFLAGS -L$openssl_dir/lib $(pkg-config --libs openssl)";
5487 CFLAGS="$CFLAGS -I$openssl_dir/include $(pkg-config --cflags openssl)";
Cullen Jenningse1de50f2013-05-22 12:27:28 -06005488
jfigusb5fad5f2015-02-26 12:25:08 -05005489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5490$as_echo_n "checking for dlopen in -ldl... " >&6; }
5491if ${ac_cv_lib_dl_dlopen+:} false; then :
5492 $as_echo_n "(cached) " >&6
5493else
5494 ac_check_lib_save_LIBS=$LIBS
5495LIBS="-ldl $LIBS"
5496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497/* end confdefs.h. */
5498
5499/* Override any GCC internal prototype to avoid an error.
5500 Use char because int might match the return type of a GCC
5501 builtin and then its argument prototype would still apply. */
5502#ifdef __cplusplus
5503extern "C"
5504#endif
5505char dlopen ();
5506int
5507main ()
5508{
5509return dlopen ();
5510 ;
5511 return 0;
5512}
5513_ACEOF
5514if ac_fn_c_try_link "$LINENO"; then :
5515 ac_cv_lib_dl_dlopen=yes
5516else
5517 ac_cv_lib_dl_dlopen=no
5518fi
5519rm -f core conftest.err conftest.$ac_objext \
5520 conftest$ac_exeext conftest.$ac_ext
5521LIBS=$ac_check_lib_save_LIBS
5522fi
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5524$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5525if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5526 cat >>confdefs.h <<_ACEOF
5527#define HAVE_LIBDL 1
5528_ACEOF
5529
5530 LIBS="-ldl $LIBS"
5531
5532else
jfigus13fd6942015-03-02 09:09:13 -05005533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libdl" >&5
5534$as_echo "$as_me: WARNING: can't find libdl" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005535fi
5536
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
5538$as_echo_n "checking for inflate in -lz... " >&6; }
5539if ${ac_cv_lib_z_inflate+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541else
5542 ac_check_lib_save_LIBS=$LIBS
5543LIBS="-lz $LIBS"
5544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545/* end confdefs.h. */
5546
5547/* Override any GCC internal prototype to avoid an error.
5548 Use char because int might match the return type of a GCC
5549 builtin and then its argument prototype would still apply. */
5550#ifdef __cplusplus
5551extern "C"
5552#endif
5553char inflate ();
5554int
5555main ()
5556{
5557return inflate ();
5558 ;
5559 return 0;
5560}
5561_ACEOF
5562if ac_fn_c_try_link "$LINENO"; then :
5563 ac_cv_lib_z_inflate=yes
5564else
5565 ac_cv_lib_z_inflate=no
5566fi
5567rm -f core conftest.err conftest.$ac_objext \
5568 conftest$ac_exeext conftest.$ac_ext
5569LIBS=$ac_check_lib_save_LIBS
5570fi
5571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
5572$as_echo "$ac_cv_lib_z_inflate" >&6; }
5573if test "x$ac_cv_lib_z_inflate" = xyes; then :
5574 cat >>confdefs.h <<_ACEOF
5575#define HAVE_LIBZ 1
5576_ACEOF
5577
5578 LIBS="-lz $LIBS"
5579
5580else
jfigus13fd6942015-03-02 09:09:13 -05005581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libz" >&5
5582$as_echo "$as_me: WARNING: can't find libz" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005583fi
5584
jfigusc7e66e32013-05-08 11:32:55 -04005585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
5586$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
5587if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589else
5590 ac_check_lib_save_LIBS=$LIBS
5591LIBS="-lcrypto $LIBS"
5592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593/* end confdefs.h. */
5594
5595/* Override any GCC internal prototype to avoid an error.
5596 Use char because int might match the return type of a GCC
5597 builtin and then its argument prototype would still apply. */
5598#ifdef __cplusplus
5599extern "C"
5600#endif
5601char EVP_EncryptInit ();
5602int
5603main ()
5604{
5605return EVP_EncryptInit ();
5606 ;
5607 return 0;
5608}
5609_ACEOF
5610if ac_fn_c_try_link "$LINENO"; then :
5611 ac_cv_lib_crypto_EVP_EncryptInit=yes
5612else
5613 ac_cv_lib_crypto_EVP_EncryptInit=no
5614fi
5615rm -f core conftest.err conftest.$ac_objext \
5616 conftest$ac_exeext conftest.$ac_ext
5617LIBS=$ac_check_lib_save_LIBS
5618fi
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
5620$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
5621if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
5622 cat >>confdefs.h <<_ACEOF
5623#define HAVE_LIBCRYPTO 1
5624_ACEOF
5625
5626 LIBS="-lcrypto $LIBS"
5627
5628else
5629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
jfigus5b22e372013-05-09 09:23:26 -04005631as_fn_error $? "can't find openssl >1.0.1 crypto lib
5632See \`config.log' for more details" "$LINENO" 5; }
5633fi
5634
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_ctr in -lcrypto" >&5
5636$as_echo_n "checking for EVP_aes_128_ctr in -lcrypto... " >&6; }
5637if ${ac_cv_lib_crypto_EVP_aes_128_ctr+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639else
5640 ac_check_lib_save_LIBS=$LIBS
5641LIBS="-lcrypto $LIBS"
5642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643/* end confdefs.h. */
5644
5645/* Override any GCC internal prototype to avoid an error.
5646 Use char because int might match the return type of a GCC
5647 builtin and then its argument prototype would still apply. */
5648#ifdef __cplusplus
5649extern "C"
5650#endif
5651char EVP_aes_128_ctr ();
5652int
5653main ()
5654{
5655return EVP_aes_128_ctr ();
5656 ;
5657 return 0;
5658}
5659_ACEOF
5660if ac_fn_c_try_link "$LINENO"; then :
5661 ac_cv_lib_crypto_EVP_aes_128_ctr=yes
5662else
5663 ac_cv_lib_crypto_EVP_aes_128_ctr=no
5664fi
5665rm -f core conftest.err conftest.$ac_objext \
5666 conftest$ac_exeext conftest.$ac_ext
5667LIBS=$ac_check_lib_save_LIBS
5668fi
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_ctr" >&5
5670$as_echo "$ac_cv_lib_crypto_EVP_aes_128_ctr" >&6; }
5671if test "x$ac_cv_lib_crypto_EVP_aes_128_ctr" = xyes; then :
5672 cat >>confdefs.h <<_ACEOF
5673#define HAVE_LIBCRYPTO 1
5674_ACEOF
5675
5676 LIBS="-lcrypto $LIBS"
5677
5678else
5679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5681as_fn_error $? "can't find openssl >1.0.1 crypto lib
jfigusc7e66e32013-05-08 11:32:55 -04005682See \`config.log' for more details" "$LINENO" 5; }
5683fi
5684
jfigus7882dd92013-08-02 16:08:23 -04005685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lcrypto" >&5
5686$as_echo_n "checking for EVP_aes_128_gcm in -lcrypto... " >&6; }
5687if ${ac_cv_lib_crypto_EVP_aes_128_gcm+:} false; then :
5688 $as_echo_n "(cached) " >&6
5689else
5690 ac_check_lib_save_LIBS=$LIBS
5691LIBS="-lcrypto $LIBS"
5692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693/* end confdefs.h. */
5694
5695/* Override any GCC internal prototype to avoid an error.
5696 Use char because int might match the return type of a GCC
5697 builtin and then its argument prototype would still apply. */
5698#ifdef __cplusplus
5699extern "C"
5700#endif
5701char EVP_aes_128_gcm ();
5702int
5703main ()
5704{
5705return EVP_aes_128_gcm ();
5706 ;
5707 return 0;
5708}
5709_ACEOF
5710if ac_fn_c_try_link "$LINENO"; then :
5711 ac_cv_lib_crypto_EVP_aes_128_gcm=yes
5712else
5713 ac_cv_lib_crypto_EVP_aes_128_gcm=no
5714fi
5715rm -f core conftest.err conftest.$ac_objext \
5716 conftest$ac_exeext conftest.$ac_ext
5717LIBS=$ac_check_lib_save_LIBS
5718fi
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_gcm" >&5
5720$as_echo "$ac_cv_lib_crypto_EVP_aes_128_gcm" >&6; }
5721if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes; then :
5722 cat >>confdefs.h <<_ACEOF
5723#define HAVE_LIBCRYPTO 1
5724_ACEOF
5725
5726 LIBS="-lcrypto $LIBS"
5727
5728else
5729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5731as_fn_error $? "can't find openssl >1.0.1 crypto lib
5732See \`config.log' for more details" "$LINENO" 5; }
5733fi
5734
jfigusc7e66e32013-05-08 11:32:55 -04005735
5736$as_echo "#define OPENSSL 1" >>confdefs.h
5737
jfigus7882dd92013-08-02 16:08:23 -04005738 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
jfigusc7e66e32013-05-08 11:32:55 -04005739 HMAC_OBJS=crypto/hash/hmac_ossl.o
5740 USE_OPENSSL=1
5741
jfigus038d2cf2015-05-11 14:10:11 -04005742
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL KDF algorithm" >&5
5744$as_echo_n "checking whether to leverage OpenSSL KDF algorithm... " >&6; }
5745 # Check whether --enable-openssl-kdf was given.
5746if test "${enable_openssl_kdf+set}" = set; then :
5747 enableval=$enable_openssl_kdf;
5748else
5749 enable_openssl_kdf=no
5750fi
5751
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl_kdf" >&5
5753$as_echo "$enable_openssl_kdf" >&6; }
5754 if test "$enable_openssl_kdf" = "yes"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kdf_srtp in -lcrypto" >&5
5756$as_echo_n "checking for kdf_srtp in -lcrypto... " >&6; }
5757if ${ac_cv_lib_crypto_kdf_srtp+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759else
5760 ac_check_lib_save_LIBS=$LIBS
5761LIBS="-lcrypto $LIBS"
5762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763/* end confdefs.h. */
5764
5765/* Override any GCC internal prototype to avoid an error.
5766 Use char because int might match the return type of a GCC
5767 builtin and then its argument prototype would still apply. */
5768#ifdef __cplusplus
5769extern "C"
5770#endif
5771char kdf_srtp ();
5772int
5773main ()
5774{
5775return kdf_srtp ();
5776 ;
5777 return 0;
5778}
5779_ACEOF
5780if ac_fn_c_try_link "$LINENO"; then :
5781 ac_cv_lib_crypto_kdf_srtp=yes
5782else
5783 ac_cv_lib_crypto_kdf_srtp=no
5784fi
5785rm -f core conftest.err conftest.$ac_objext \
5786 conftest$ac_exeext conftest.$ac_ext
5787LIBS=$ac_check_lib_save_LIBS
5788fi
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_kdf_srtp" >&5
5790$as_echo "$ac_cv_lib_crypto_kdf_srtp" >&6; }
5791if test "x$ac_cv_lib_crypto_kdf_srtp" = xyes; then :
5792 cat >>confdefs.h <<_ACEOF
5793#define HAVE_LIBCRYPTO 1
5794_ACEOF
5795
5796 LIBS="-lcrypto $LIBS"
5797
5798else
5799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5801as_fn_error $? "can't find openssl KDF lib
5802See \`config.log' for more details" "$LINENO" 5; }
5803fi
5804
5805
5806$as_echo "#define OPENSSL_KDF 1" >>confdefs.h
5807
5808 fi
jfigusc7e66e32013-05-08 11:32:55 -04005809else
jfigusa3127b82014-11-19 14:46:52 -05005810 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o"
jfigusc7e66e32013-05-08 11:32:55 -04005811 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
5812fi
5813
5814
5815
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
5817$as_echo_n "checking for pcap_create in -lpcap... " >&6; }
5818if ${ac_cv_lib_pcap_pcap_create+:} false; then :
5819 $as_echo_n "(cached) " >&6
5820else
5821 ac_check_lib_save_LIBS=$LIBS
5822LIBS="-lpcap $LIBS"
5823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824/* end confdefs.h. */
5825
5826/* Override any GCC internal prototype to avoid an error.
5827 Use char because int might match the return type of a GCC
5828 builtin and then its argument prototype would still apply. */
5829#ifdef __cplusplus
5830extern "C"
5831#endif
5832char pcap_create ();
5833int
5834main ()
5835{
5836return pcap_create ();
5837 ;
5838 return 0;
5839}
5840_ACEOF
5841if ac_fn_c_try_link "$LINENO"; then :
5842 ac_cv_lib_pcap_pcap_create=yes
5843else
5844 ac_cv_lib_pcap_pcap_create=no
5845fi
5846rm -f core conftest.err conftest.$ac_objext \
5847 conftest$ac_exeext conftest.$ac_ext
5848LIBS=$ac_check_lib_save_LIBS
5849fi
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
5851$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
5852if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
Bernardo Torresb3c51422014-10-14 12:40:09 -03005853 PCAP=1
5854 LIBS="-lpcap $LIBS"
5855 HAVE_PCAP=1
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005856
Bernardo Torresb3c51422014-10-14 12:40:09 -03005857$as_echo "#define HAVE_PCAP 1" >>confdefs.h
5858
5859
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005860
5861fi
5862
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005863
jfigusc7e66e32013-05-08 11:32:55 -04005864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5
5865$as_echo_n "checking whether to use stdout for error reporting... " >&6; }
5866# Check whether --enable-stdout was given.
5867if test "${enable_stdout+set}" = set; then :
5868 enableval=$enable_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00005869else
jfigus97a80f42014-11-04 14:15:40 -05005870 enable_stdout=no
jfigusc7e66e32013-05-08 11:32:55 -04005871fi
5872
David McGrewb67061f2005-09-28 14:23:06 +00005873if test "$enable_stdout" = "yes"; then
5874
jfigusc7e66e32013-05-08 11:32:55 -04005875$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005876
5877fi
jfigusc7e66e32013-05-08 11:32:55 -04005878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5
5879$as_echo "$enable_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005880
jfigusc7e66e32013-05-08 11:32:55 -04005881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5
5882$as_echo_n "checking whether to use /dev/console for error reporting... " >&6; }
5883# Check whether --enable-console was given.
5884if test "${enable_console+set}" = set; then :
5885 enableval=$enable_console;
David McGrewb67061f2005-09-28 14:23:06 +00005886else
5887 enable_console=no
jfigusc7e66e32013-05-08 11:32:55 -04005888fi
5889
David McGrewb67061f2005-09-28 14:23:06 +00005890if test "$enable_console" = "yes"; then
5891
jfigusc7e66e32013-05-08 11:32:55 -04005892$as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h
David McGrewb67061f2005-09-28 14:23:06 +00005893
5894
jfigusc7e66e32013-05-08 11:32:55 -04005895$as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005896
5897fi
jfigusc7e66e32013-05-08 11:32:55 -04005898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5
5899$as_echo "$enable_console" >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00005900
jfigusc7e66e32013-05-08 11:32:55 -04005901ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00005902
5903
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005904# Extract the first word of "pkg-config", so it can be a program name with args.
5905set dummy pkg-config; ac_word=$2
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907$as_echo_n "checking for $ac_word... " >&6; }
5908if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5909 $as_echo_n "(cached) " >&6
5910else
5911 if test -n "$PKG_CONFIG"; then
5912 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5913else
5914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915for as_dir in $PATH
5916do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921 ac_cv_prog_PKG_CONFIG="yes"
5922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925done
5926 done
5927IFS=$as_save_IFS
5928
5929fi
5930fi
5931PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5932if test -n "$PKG_CONFIG"; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5934$as_echo "$PKG_CONFIG" >&6; }
5935else
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937$as_echo "no" >&6; }
5938fi
5939
5940
5941if test "x$PKG_CONFIG" != "x"; then
5942 HAVE_PKG_CONFIG=1
jfigusd196e022014-11-20 16:43:44 -05005943 ac_config_files="$ac_config_files libsrtp2.pc"
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005944
5945else
5946 HAVE_PKG_CONFIG=0
5947fi
5948
jfigusc7e66e32013-05-08 11:32:55 -04005949ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile"
5950
Cullen Jennings235513a2005-09-21 22:51:36 +00005951cat >confcache <<\_ACEOF
5952# This file is a shell script that caches the results of configure
5953# tests run on this system so they can be shared between configure
5954# scripts and configure runs, see configure's option --config-cache.
5955# It is not useful on other systems. If it contains results you don't
5956# want to keep, you may remove or edit it.
5957#
5958# config.status only pays attention to the cache file if you give it
5959# the --recheck option to rerun configure.
5960#
5961# `ac_cv_env_foo' variables (set or unset) will be overridden when
5962# loading this file, other *unset* `ac_cv_foo' will be assigned the
5963# following values.
5964
5965_ACEOF
5966
5967# The following way of writing the cache mishandles newlines in values,
5968# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04005969# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00005970# Ultrix sh set writes to stderr and can't be redirected directly,
5971# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04005972(
5973 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5974 eval ac_val=\$$ac_var
5975 case $ac_val in #(
5976 *${as_nl}*)
5977 case $ac_var in #(
5978 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5979$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5980 esac
5981 case $ac_var in #(
5982 _ | IFS | as_nl) ;; #(
5983 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5984 *) { eval $ac_var=; unset $ac_var;} ;;
5985 esac ;;
5986 esac
5987 done
5988
Cullen Jennings235513a2005-09-21 22:51:36 +00005989 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04005990 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5991 *${as_nl}ac_space=\ *)
5992 # `set' does not quote correctly, so add quotes: double-quote
5993 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00005994 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00005995 "s/'/'\\\\''/g;
5996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04005997 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00005998 *)
5999 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04006000 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00006001 ;;
jfigusc7e66e32013-05-08 11:32:55 -04006002 esac |
6003 sort
6004) |
Cullen Jennings235513a2005-09-21 22:51:36 +00006005 sed '
jfigusc7e66e32013-05-08 11:32:55 -04006006 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00006007 t clear
jfigusc7e66e32013-05-08 11:32:55 -04006008 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00006009 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6010 t end
jfigusc7e66e32013-05-08 11:32:55 -04006011 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6012 :end' >>confcache
6013if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6014 if test -w "$cache_file"; then
6015 if test "x$cache_file" != "x/dev/null"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6017$as_echo "$as_me: updating cache $cache_file" >&6;}
6018 if test ! -f "$cache_file" || test -h "$cache_file"; then
6019 cat confcache >"$cache_file"
6020 else
6021 case $cache_file in #(
6022 */* | ?:*)
6023 mv -f confcache "$cache_file"$$ &&
6024 mv -f "$cache_file"$$ "$cache_file" ;; #(
6025 *)
6026 mv -f confcache "$cache_file" ;;
6027 esac
6028 fi
6029 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006030 else
jfigusc7e66e32013-05-08 11:32:55 -04006031 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6032$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006033 fi
6034fi
6035rm -f confcache
6036
6037test "x$prefix" = xNONE && prefix=$ac_default_prefix
6038# Let make expand exec_prefix.
6039test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6040
Cullen Jennings235513a2005-09-21 22:51:36 +00006041DEFS=-DHAVE_CONFIG_H
6042
6043ac_libobjs=
6044ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04006045U=
Cullen Jennings235513a2005-09-21 22:51:36 +00006046for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6047 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04006048 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6049 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6050 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6051 # will be set to the directory where LIBOBJS objects are built.
6052 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6053 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00006054done
6055LIBOBJS=$ac_libobjs
6056
6057LTLIBOBJS=$ac_ltlibobjs
6058
6059
6060
jfigusc7e66e32013-05-08 11:32:55 -04006061
6062: "${CONFIG_STATUS=./config.status}"
6063ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00006064ac_clean_files_save=$ac_clean_files
6065ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04006066{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6067$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6068as_write_fail=0
6069cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006070#! $SHELL
6071# Generated by $as_me.
6072# Run this file to recreate the current configuration.
6073# Compiler output produced by configure, useful for debugging
6074# configure, is in config.log if it exists.
6075
6076debug=false
6077ac_cs_recheck=false
6078ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04006079
Cullen Jennings235513a2005-09-21 22:51:36 +00006080SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04006081export SHELL
6082_ASEOF
6083cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6084## -------------------- ##
6085## M4sh Initialization. ##
6086## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00006087
jfigusc7e66e32013-05-08 11:32:55 -04006088# Be more Bourne compatible
6089DUALCASE=1; export DUALCASE # for MKS sh
6090if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00006091 emulate sh
6092 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04006093 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00006094 # is contrary to our usage. Disable this feature.
6095 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04006096 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00006097else
jfigusc7e66e32013-05-08 11:32:55 -04006098 case `(set -o) 2>/dev/null` in #(
6099 *posix*) :
6100 set -o posix ;; #(
6101 *) :
6102 ;;
6103esac
Cullen Jennings235513a2005-09-21 22:51:36 +00006104fi
6105
6106
jfigusc7e66e32013-05-08 11:32:55 -04006107as_nl='
6108'
6109export as_nl
6110# Printing a long string crashes Solaris 7 /usr/bin/printf.
6111as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6112as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6113as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6114# Prefer a ksh shell builtin over an external printf program on Solaris,
6115# but without wasting forks for bash or zsh.
6116if test -z "$BASH_VERSION$ZSH_VERSION" \
6117 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6118 as_echo='print -r --'
6119 as_echo_n='print -rn --'
6120elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6121 as_echo='printf %s\n'
6122 as_echo_n='printf %s'
6123else
6124 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6125 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6126 as_echo_n='/usr/ucb/echo -n'
6127 else
6128 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6129 as_echo_n_body='eval
6130 arg=$1;
6131 case $arg in #(
6132 *"$as_nl"*)
6133 expr "X$arg" : "X\\(.*\\)$as_nl";
6134 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6135 esac;
6136 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6137 '
6138 export as_echo_n_body
6139 as_echo_n='sh -c $as_echo_n_body as_echo'
6140 fi
6141 export as_echo_body
6142 as_echo='sh -c $as_echo_body as_echo'
6143fi
6144
6145# The user is always right.
6146if test "${PATH_SEPARATOR+set}" != set; then
6147 PATH_SEPARATOR=:
6148 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6149 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6150 PATH_SEPARATOR=';'
6151 }
6152fi
6153
6154
6155# IFS
6156# We need space, tab and new line, in precisely that order. Quoting is
6157# there to prevent editors from complaining about space-tab.
6158# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6159# splitting by setting IFS to empty value.)
6160IFS=" "" $as_nl"
6161
6162# Find who we are. Look in the path if we contain no directory separator.
6163as_myself=
6164case $0 in #((
6165 *[\\/]* ) as_myself=$0 ;;
6166 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167for as_dir in $PATH
6168do
6169 IFS=$as_save_IFS
6170 test -z "$as_dir" && as_dir=.
6171 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6172 done
6173IFS=$as_save_IFS
6174
6175 ;;
6176esac
6177# We did not find ourselves, most probably we were run as `sh COMMAND'
6178# in which case we are not to be found in the path.
6179if test "x$as_myself" = x; then
6180 as_myself=$0
6181fi
6182if test ! -f "$as_myself"; then
6183 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6184 exit 1
6185fi
6186
6187# Unset variables that we do not need and which cause bugs (e.g. in
6188# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6189# suppresses any "Segmentation fault" message there. '((' could
6190# trigger a bug in pdksh 5.2.14.
6191for as_var in BASH_ENV ENV MAIL MAILPATH
6192do eval test x\${$as_var+set} = xset \
6193 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6194done
Cullen Jennings235513a2005-09-21 22:51:36 +00006195PS1='$ '
6196PS2='> '
6197PS4='+ '
6198
6199# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04006200LC_ALL=C
6201export LC_ALL
6202LANGUAGE=C
6203export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04006204
jfigusc7e66e32013-05-08 11:32:55 -04006205# CDPATH.
6206(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6207
6208
6209# as_fn_error STATUS ERROR [LINENO LOG_FD]
6210# ----------------------------------------
6211# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6212# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6213# script with STATUS, using 1 if that was 0.
6214as_fn_error ()
6215{
6216 as_status=$1; test $as_status -eq 0 && as_status=1
6217 if test "$4"; then
6218 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6219 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6220 fi
6221 $as_echo "$as_me: error: $2" >&2
6222 as_fn_exit $as_status
6223} # as_fn_error
6224
6225
6226# as_fn_set_status STATUS
6227# -----------------------
6228# Set $? to STATUS, without forking.
6229as_fn_set_status ()
6230{
6231 return $1
6232} # as_fn_set_status
6233
6234# as_fn_exit STATUS
6235# -----------------
6236# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6237as_fn_exit ()
6238{
6239 set +e
6240 as_fn_set_status $1
6241 exit $1
6242} # as_fn_exit
6243
6244# as_fn_unset VAR
6245# ---------------
6246# Portably unset VAR.
6247as_fn_unset ()
6248{
6249 { eval $1=; unset $1;}
6250}
6251as_unset=as_fn_unset
6252# as_fn_append VAR VALUE
6253# ----------------------
6254# Append the text in VALUE to the end of the definition contained in VAR. Take
6255# advantage of any shell optimizations that allow amortized linear growth over
6256# repeated appends, instead of the typical quadratic growth present in naive
6257# implementations.
6258if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6259 eval 'as_fn_append ()
6260 {
6261 eval $1+=\$2
6262 }'
6263else
6264 as_fn_append ()
6265 {
6266 eval $1=\$$1\$2
6267 }
6268fi # as_fn_append
6269
6270# as_fn_arith ARG...
6271# ------------------
6272# Perform arithmetic evaluation on the ARGs, and store the result in the
6273# global $as_val. Take advantage of shells that can avoid forks. The arguments
6274# must be portable across $(()) and expr.
6275if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6276 eval 'as_fn_arith ()
6277 {
6278 as_val=$(( $* ))
6279 }'
6280else
6281 as_fn_arith ()
6282 {
6283 as_val=`expr "$@" || test $? -eq 1`
6284 }
6285fi # as_fn_arith
6286
6287
6288if expr a : '\(a\)' >/dev/null 2>&1 &&
6289 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006290 as_expr=expr
6291else
6292 as_expr=false
6293fi
6294
jfigusc7e66e32013-05-08 11:32:55 -04006295if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006296 as_basename=basename
6297else
6298 as_basename=false
6299fi
6300
jfigusc7e66e32013-05-08 11:32:55 -04006301if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6302 as_dirname=dirname
6303else
6304 as_dirname=false
6305fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006306
jfigusc7e66e32013-05-08 11:32:55 -04006307as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006308$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6309 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006310 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6311$as_echo X/"$0" |
6312 sed '/^.*\/\([^/][^/]*\)\/*$/{
6313 s//\1/
6314 q
6315 }
6316 /^X\/\(\/\/\)$/{
6317 s//\1/
6318 q
6319 }
6320 /^X\/\(\/\).*/{
6321 s//\1/
6322 q
6323 }
6324 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006325
Cullen Jennings235513a2005-09-21 22:51:36 +00006326# Avoid depending upon Character Ranges.
6327as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6328as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6329as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6330as_cr_digits='0123456789'
6331as_cr_alnum=$as_cr_Letters$as_cr_digits
6332
jfigusc7e66e32013-05-08 11:32:55 -04006333ECHO_C= ECHO_N= ECHO_T=
6334case `echo -n x` in #(((((
6335-n*)
6336 case `echo 'xy\c'` in
6337 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6338 xy) ECHO_C='\c';;
6339 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6340 ECHO_T=' ';;
6341 esac;;
6342*)
6343 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00006344esac
6345
Cullen Jennings235513a2005-09-21 22:51:36 +00006346rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04006347if test -d conf$$.dir; then
6348 rm -f conf$$.dir/conf$$.file
6349else
6350 rm -f conf$$.dir
6351 mkdir conf$$.dir 2>/dev/null
6352fi
6353if (echo >conf$$.file) 2>/dev/null; then
6354 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006355 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04006356 # ... but there are two gotchas:
6357 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6358 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6359 # In both cases, we have to default to `cp -pR'.
6360 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6361 as_ln_s='cp -pR'
6362 elif ln conf$$.file conf$$ 2>/dev/null; then
6363 as_ln_s=ln
6364 else
6365 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006366 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006367else
jfigusc7e66e32013-05-08 11:32:55 -04006368 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006369fi
jfigusc7e66e32013-05-08 11:32:55 -04006370rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6371rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00006372
jfigusc7e66e32013-05-08 11:32:55 -04006373
6374# as_fn_mkdir_p
6375# -------------
6376# Create "$as_dir" as a directory, including parents if necessary.
6377as_fn_mkdir_p ()
6378{
6379
6380 case $as_dir in #(
6381 -*) as_dir=./$as_dir;;
6382 esac
6383 test -d "$as_dir" || eval $as_mkdir_p || {
6384 as_dirs=
6385 while :; do
6386 case $as_dir in #(
6387 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6388 *) as_qdir=$as_dir;;
6389 esac
6390 as_dirs="'$as_qdir' $as_dirs"
6391 as_dir=`$as_dirname -- "$as_dir" ||
6392$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6393 X"$as_dir" : 'X\(//\)[^/]' \| \
6394 X"$as_dir" : 'X\(//\)$' \| \
6395 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6396$as_echo X"$as_dir" |
6397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6398 s//\1/
6399 q
6400 }
6401 /^X\(\/\/\)[^/].*/{
6402 s//\1/
6403 q
6404 }
6405 /^X\(\/\/\)$/{
6406 s//\1/
6407 q
6408 }
6409 /^X\(\/\).*/{
6410 s//\1/
6411 q
6412 }
6413 s/.*/./; q'`
6414 test -d "$as_dir" && break
6415 done
6416 test -z "$as_dirs" || eval "mkdir $as_dirs"
6417 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6418
6419
6420} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006421if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04006422 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00006423else
David McGrewfec49dd2005-09-23 19:34:11 +00006424 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00006425 as_mkdir_p=false
6426fi
6427
jfigusc7e66e32013-05-08 11:32:55 -04006428
6429# as_fn_executable_p FILE
6430# -----------------------
6431# Test if FILE is an executable regular file.
6432as_fn_executable_p ()
6433{
6434 test -f "$1" && test -x "$1"
6435} # as_fn_executable_p
6436as_test_x='test -x'
6437as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006438
6439# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00006440as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006441
6442# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00006443as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006444
6445
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006446exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04006447## ----------------------------------- ##
6448## Main body of $CONFIG_STATUS script. ##
6449## ----------------------------------- ##
6450_ASEOF
6451test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006452
jfigusc7e66e32013-05-08 11:32:55 -04006453cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6454# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00006455# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04006456# values after options handling.
6457ac_log="
Pascal Bühler34acba62017-01-19 10:57:30 +01006458This file was extended by libsrtp2 $as_me 2.1.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04006459generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00006460
6461 CONFIG_FILES = $CONFIG_FILES
6462 CONFIG_HEADERS = $CONFIG_HEADERS
6463 CONFIG_LINKS = $CONFIG_LINKS
6464 CONFIG_COMMANDS = $CONFIG_COMMANDS
6465 $ $0 $@
6466
jfigusc7e66e32013-05-08 11:32:55 -04006467on `(hostname || uname -n) 2>/dev/null | sed 1q`
6468"
6469
Cullen Jennings235513a2005-09-21 22:51:36 +00006470_ACEOF
6471
jfigusc7e66e32013-05-08 11:32:55 -04006472case $ac_config_files in *"
6473"*) set x $ac_config_files; shift; ac_config_files=$*;;
6474esac
6475
6476case $ac_config_headers in *"
6477"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6478esac
6479
6480
6481cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006482# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04006483config_files="$ac_config_files"
6484config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00006485
jfigusc7e66e32013-05-08 11:32:55 -04006486_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006487
jfigusc7e66e32013-05-08 11:32:55 -04006488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006489ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04006490\`$as_me' instantiates files and other configuration actions
6491from templates according to the current configuration. Unless the files
6492and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00006493
jfigusc7e66e32013-05-08 11:32:55 -04006494Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00006495
6496 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04006497 -V, --version print version number and configuration settings, then exit
6498 --config print configuration, then exit
6499 -q, --quiet, --silent
6500 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00006501 -d, --debug don't remove temporary files
6502 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04006503 --file=FILE[:TEMPLATE]
6504 instantiate the configuration file FILE
6505 --header=FILE[:TEMPLATE]
6506 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00006507
6508Configuration files:
6509$config_files
6510
6511Configuration headers:
6512$config_headers
6513
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02006514Report bugs to <https://github.com/cisco/libsrtp/issues>."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006515
jfigusc7e66e32013-05-08 11:32:55 -04006516_ACEOF
6517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6518ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00006519ac_cs_version="\\
Pascal Bühler34acba62017-01-19 10:57:30 +01006520libsrtp2 config.status 2.1.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04006521configured by $0, generated by GNU Autoconf 2.69,
6522 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00006523
jfigusc7e66e32013-05-08 11:32:55 -04006524Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00006525This config.status script is free software; the Free Software Foundation
6526gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04006527
6528ac_pwd='$ac_pwd'
6529srcdir='$srcdir'
6530INSTALL='$INSTALL'
6531test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00006532_ACEOF
6533
jfigusc7e66e32013-05-08 11:32:55 -04006534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6535# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00006536ac_need_defaults=:
6537while test $# != 0
6538do
6539 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04006540 --*=?*)
6541 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6542 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006543 ac_shift=:
6544 ;;
jfigusc7e66e32013-05-08 11:32:55 -04006545 --*=)
6546 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6547 ac_optarg=
6548 ac_shift=:
6549 ;;
6550 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00006551 ac_option=$1
6552 ac_optarg=$2
6553 ac_shift=shift
6554 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006555 esac
6556
6557 case $ac_option in
6558 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00006559 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6560 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04006561 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6562 $as_echo "$ac_cs_version"; exit ;;
6563 --config | --confi | --conf | --con | --co | --c )
6564 $as_echo "$ac_cs_config"; exit ;;
6565 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00006566 debug=: ;;
6567 --file | --fil | --fi | --f )
6568 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04006569 case $ac_optarg in
6570 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6571 '') as_fn_error $? "missing file argument" ;;
6572 esac
6573 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006574 ac_need_defaults=false;;
6575 --header | --heade | --head | --hea )
6576 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04006577 case $ac_optarg in
6578 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6579 esac
6580 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006581 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04006582 --he | --h)
6583 # Conflict between --help and --header
6584 as_fn_error $? "ambiguous option: \`$1'
6585Try \`$0 --help' for more information.";;
6586 --help | --hel | -h )
6587 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006588 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6589 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6590 ac_cs_silent=: ;;
6591
6592 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04006593 -*) as_fn_error $? "unrecognized option: \`$1'
6594Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006595
jfigusc7e66e32013-05-08 11:32:55 -04006596 *) as_fn_append ac_config_targets " $1"
6597 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006598
6599 esac
6600 shift
6601done
6602
6603ac_configure_extra_args=
6604
6605if $ac_cs_silent; then
6606 exec 6>/dev/null
6607 ac_configure_extra_args="$ac_configure_extra_args --silent"
6608fi
6609
6610_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006612if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04006613 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6614 shift
6615 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6616 CONFIG_SHELL='$SHELL'
6617 export CONFIG_SHELL
6618 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00006619fi
6620
6621_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6623exec 5>>config.log
6624{
6625 echo
6626 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6627## Running $as_me. ##
6628_ASBOX
6629 $as_echo "$ac_log"
6630} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00006631
jfigusc7e66e32013-05-08 11:32:55 -04006632_ACEOF
6633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6634_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006635
jfigusc7e66e32013-05-08 11:32:55 -04006636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006637
jfigusc7e66e32013-05-08 11:32:55 -04006638# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00006639for ac_config_target in $ac_config_targets
6640do
jfigusc7e66e32013-05-08 11:32:55 -04006641 case $ac_config_target in
6642 "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
jfigusd196e022014-11-20 16:43:44 -05006643 "libsrtp2.pc") CONFIG_FILES="$CONFIG_FILES libsrtp2.pc" ;;
jfigusc7e66e32013-05-08 11:32:55 -04006644 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6645 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
6646 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6647
6648 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006649 esac
6650done
6651
jfigusc7e66e32013-05-08 11:32:55 -04006652
Cullen Jennings235513a2005-09-21 22:51:36 +00006653# If the user did not use the arguments to specify the items to instantiate,
6654# then the envvar interface is used. Set only those that are not.
6655# We use the long form for the default assignment because of an extremely
6656# bizarre bug on SunOS 4.1.3.
6657if $ac_need_defaults; then
6658 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6659 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6660fi
6661
6662# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04006663# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00006664# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04006665# Hook for its removal unless debugging.
6666# Note that there is a small window in which the directory will not be cleaned:
6667# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00006668$debug ||
6669{
jfigusc7e66e32013-05-08 11:32:55 -04006670 tmp= ac_tmp=
6671 trap 'exit_status=$?
6672 : "${ac_tmp:=$tmp}"
6673 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6674' 0
6675 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00006676}
Cullen Jennings235513a2005-09-21 22:51:36 +00006677# Create a (secure) tmp directory for tmp files.
6678
6679{
jfigusc7e66e32013-05-08 11:32:55 -04006680 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6681 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00006682} ||
6683{
jfigusc7e66e32013-05-08 11:32:55 -04006684 tmp=./conf$$-$RANDOM
6685 (umask 077 && mkdir "$tmp")
6686} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6687ac_tmp=$tmp
6688
6689# Set up the scripts for CONFIG_FILES section.
6690# No need to generate them if there are no CONFIG_FILES.
6691# This happens for instance with `./config.status config.h'.
6692if test -n "$CONFIG_FILES"; then
6693
6694
6695ac_cr=`echo X | tr X '\015'`
6696# On cygwin, bash can eat \r inside `` if the user requested igncr.
6697# But we know of no other shell where ac_cr would be empty at this
6698# point, so we can use a bashism as a fallback.
6699if test "x$ac_cr" = x; then
6700 eval ac_cr=\$\'\\r\'
6701fi
6702ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6703if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6704 ac_cs_awk_cr='\\r'
6705else
6706 ac_cs_awk_cr=$ac_cr
6707fi
6708
6709echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6710_ACEOF
6711
6712
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006713{
jfigusc7e66e32013-05-08 11:32:55 -04006714 echo "cat >conf$$subs.awk <<_ACEOF" &&
6715 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6716 echo "_ACEOF"
6717} >conf$$subs.sh ||
6718 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6719ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6720ac_delim='%!_!# '
6721for ac_last_try in false false false false false :; do
6722 . ./conf$$subs.sh ||
6723 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6724
6725 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6726 if test $ac_delim_n = $ac_delim_num; then
6727 break
6728 elif $ac_last_try; then
6729 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6730 else
6731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6732 fi
6733done
6734rm -f conf$$subs.sh
6735
6736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6737cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6738_ACEOF
6739sed -n '
6740h
6741s/^/S["/; s/!.*/"]=/
6742p
6743g
6744s/^[^!]*!//
6745:repl
6746t repl
6747s/'"$ac_delim"'$//
6748t delim
6749:nl
6750h
6751s/\(.\{148\}\)..*/\1/
6752t more1
6753s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6754p
6755n
6756b repl
6757:more1
6758s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6759p
6760g
6761s/.\{148\}//
6762t nl
6763:delim
6764h
6765s/\(.\{148\}\)..*/\1/
6766t more2
6767s/["\\]/\\&/g; s/^/"/; s/$/"/
6768p
6769b
6770:more2
6771s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6772p
6773g
6774s/.\{148\}//
6775t delim
6776' <conf$$subs.awk | sed '
6777/^[^""]/{
6778 N
6779 s/\n//
6780}
6781' >>$CONFIG_STATUS || ac_write_fail=1
6782rm -f conf$$subs.awk
6783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6784_ACAWK
6785cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6786 for (key in S) S_is_set[key] = 1
6787 FS = ""
6788
6789}
6790{
6791 line = $ 0
6792 nfields = split(line, field, "@")
6793 substed = 0
6794 len = length(field[1])
6795 for (i = 2; i < nfields; i++) {
6796 key = field[i]
6797 keylen = length(key)
6798 if (S_is_set[key]) {
6799 value = S[key]
6800 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6801 len += length(value) + length(field[++i])
6802 substed = 1
6803 } else
6804 len += 1 + keylen
6805 }
6806
6807 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006808}
jfigusa14b5a02013-03-29 12:24:12 -04006809
jfigusc7e66e32013-05-08 11:32:55 -04006810_ACAWK
6811_ACEOF
6812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6813if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6814 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6815else
6816 cat
6817fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6818 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04006819_ACEOF
6820
jfigusc7e66e32013-05-08 11:32:55 -04006821# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6822# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6823# trailing colons and then remove the whole line if VPATH becomes empty
6824# (actually we leave an empty line to preserve line numbers).
6825if test "x$srcdir" = x.; then
6826 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6827h
6828s///
6829s/^/:/
6830s/[ ]*$/:/
6831s/:\$(srcdir):/:/g
6832s/:\${srcdir}:/:/g
6833s/:@srcdir@:/:/g
6834s/^:*//
6835s/:*$//
6836x
6837s/\(=[ ]*\).*/\1/
6838G
6839s/\n//
6840s/^[^=]*=[ ]*$//
6841}'
6842fi
jfigusa14b5a02013-03-29 12:24:12 -04006843
jfigusc7e66e32013-05-08 11:32:55 -04006844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006845fi # test -n "$CONFIG_FILES"
6846
jfigusc7e66e32013-05-08 11:32:55 -04006847# Set up the scripts for CONFIG_HEADERS section.
6848# No need to generate them if there are no CONFIG_HEADERS.
6849# This happens for instance with `./config.status Makefile'.
6850if test -n "$CONFIG_HEADERS"; then
6851cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6852BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00006853_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006854
6855# Transform confdefs.h into an awk script `defines.awk', embedded as
6856# here-document in config.status, that substitutes the proper values into
6857# config.h.in to produce config.h.
6858
6859# Create a delimiter string that does not exist in confdefs.h, to ease
6860# handling of long lines.
6861ac_delim='%!_!# '
6862for ac_last_try in false false :; do
6863 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6864 if test -z "$ac_tt"; then
6865 break
6866 elif $ac_last_try; then
6867 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6868 else
6869 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6870 fi
6871done
6872
6873# For the awk script, D is an array of macro values keyed by name,
6874# likewise P contains macro parameters if any. Preserve backslash
6875# newline sequences.
6876
6877ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6878sed -n '
6879s/.\{148\}/&'"$ac_delim"'/g
6880t rset
6881:rset
6882s/^[ ]*#[ ]*define[ ][ ]*/ /
6883t def
6884d
6885:def
6886s/\\$//
6887t bsnl
6888s/["\\]/\\&/g
6889s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6890D["\1"]=" \3"/p
6891s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6892d
6893:bsnl
6894s/["\\]/\\&/g
6895s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6896D["\1"]=" \3\\\\\\n"\\/p
6897t cont
6898s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6899t cont
6900d
6901:cont
6902n
6903s/.\{148\}/&'"$ac_delim"'/g
6904t clear
6905:clear
6906s/\\$//
6907t bsnlc
6908s/["\\]/\\&/g; s/^/"/; s/$/"/p
6909d
6910:bsnlc
6911s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6912b cont
6913' <confdefs.h | sed '
6914s/'"$ac_delim"'/"\\\
6915"/g' >>$CONFIG_STATUS || ac_write_fail=1
6916
6917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6918 for (key in D) D_is_set[key] = 1
6919 FS = ""
6920}
6921/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6922 line = \$ 0
6923 split(line, arg, " ")
6924 if (arg[1] == "#") {
6925 defundef = arg[2]
6926 mac1 = arg[3]
6927 } else {
6928 defundef = substr(arg[1], 2)
6929 mac1 = arg[2]
6930 }
6931 split(mac1, mac2, "(") #)
6932 macro = mac2[1]
6933 prefix = substr(line, 1, index(line, defundef) - 1)
6934 if (D_is_set[macro]) {
6935 # Preserve the white space surrounding the "#".
6936 print prefix "define", macro P[macro] D[macro]
6937 next
6938 } else {
6939 # Replace #undef with comments. This is necessary, for example,
6940 # in the case of _POSIX_SOURCE, which is predefined and required
6941 # on some systems where configure will not decide to define it.
6942 if (defundef == "undef") {
6943 print "/*", prefix defundef, macro, "*/"
6944 next
6945 }
6946 }
6947}
6948{ print }
6949_ACAWK
6950_ACEOF
6951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6952 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6953fi # test -n "$CONFIG_HEADERS"
6954
6955
6956eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6957shift
6958for ac_tag
6959do
6960 case $ac_tag in
6961 :[FHLC]) ac_mode=$ac_tag; continue;;
6962 esac
6963 case $ac_mode$ac_tag in
6964 :[FHL]*:*);;
6965 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6966 :[FH]-) ac_tag=-:-;;
6967 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6968 esac
6969 ac_save_IFS=$IFS
6970 IFS=:
6971 set x $ac_tag
6972 IFS=$ac_save_IFS
6973 shift
6974 ac_file=$1
6975 shift
6976
6977 case $ac_mode in
6978 :L) ac_source=$1;;
6979 :[FH])
6980 ac_file_inputs=
6981 for ac_f
6982 do
6983 case $ac_f in
6984 -) ac_f="$ac_tmp/stdin";;
6985 *) # Look for the file first in the build tree, then in the source tree
6986 # (if the path is not absolute). The absolute path cannot be DOS-style,
6987 # because $ac_f cannot contain `:'.
6988 test -f "$ac_f" ||
6989 case $ac_f in
6990 [\\/$]*) false;;
6991 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6992 esac ||
6993 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6994 esac
6995 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6996 as_fn_append ac_file_inputs " '$ac_f'"
6997 done
6998
6999 # Let's still pretend it is `configure' which instantiates (i.e., don't
7000 # use $as_me), people would be surprised to read:
7001 # /* config.h. Generated by config.status. */
7002 configure_input='Generated from '`
7003 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7004 `' by configure.'
7005 if test x"$ac_file" != x-; then
7006 configure_input="$ac_file. $configure_input"
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7008$as_echo "$as_me: creating $ac_file" >&6;}
7009 fi
7010 # Neutralize special characters interpreted by sed in replacement strings.
7011 case $configure_input in #(
7012 *\&* | *\|* | *\\* )
7013 ac_sed_conf_input=`$as_echo "$configure_input" |
7014 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7015 *) ac_sed_conf_input=$configure_input;;
7016 esac
7017
7018 case $ac_tag in
7019 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7021 esac
7022 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007023 esac
7024
jfigusc7e66e32013-05-08 11:32:55 -04007025 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00007026$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00007027 X"$ac_file" : 'X\(//\)[^/]' \| \
7028 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04007029 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7030$as_echo X"$ac_file" |
7031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7032 s//\1/
7033 q
7034 }
7035 /^X\(\/\/\)[^/].*/{
7036 s//\1/
7037 q
7038 }
7039 /^X\(\/\/\)$/{
7040 s//\1/
7041 q
7042 }
7043 /^X\(\/\).*/{
7044 s//\1/
7045 q
7046 }
7047 s/.*/./; q'`
7048 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00007049 ac_builddir=.
7050
jfigusc7e66e32013-05-08 11:32:55 -04007051case "$ac_dir" in
7052.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7053*)
7054 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7055 # A ".." for each directory in $ac_dir_suffix.
7056 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7057 case $ac_top_builddir_sub in
7058 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7059 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7060 esac ;;
7061esac
7062ac_abs_top_builddir=$ac_pwd
7063ac_abs_builddir=$ac_pwd$ac_dir_suffix
7064# for backward compatibility:
7065ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00007066
7067case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04007068 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00007069 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04007070 ac_top_srcdir=$ac_top_builddir_sub
7071 ac_abs_top_srcdir=$ac_pwd ;;
7072 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00007073 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04007074 ac_top_srcdir=$srcdir
7075 ac_abs_top_srcdir=$srcdir ;;
7076 *) # Relative name.
7077 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7078 ac_top_srcdir=$ac_top_build_prefix$srcdir
7079 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007080esac
jfigusc7e66e32013-05-08 11:32:55 -04007081ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00007082
Cullen Jennings235513a2005-09-21 22:51:36 +00007083
jfigusc7e66e32013-05-08 11:32:55 -04007084 case $ac_mode in
7085 :F)
7086 #
7087 # CONFIG_FILE
7088 #
Cullen Jennings235513a2005-09-21 22:51:36 +00007089
David McGrewb67061f2005-09-28 14:23:06 +00007090 case $INSTALL in
7091 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04007092 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00007093 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007094_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007095
7096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7097# If the template does not know about datarootdir, expand it.
7098# FIXME: This hack should be removed a few years after 2.60.
7099ac_datarootdir_hack=; ac_datarootdir_seen=
7100ac_sed_dataroot='
7101/datarootdir/ {
7102 p
7103 q
7104}
7105/@datadir@/p
7106/@docdir@/p
7107/@infodir@/p
7108/@localedir@/p
7109/@mandir@/p'
7110case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7111*datarootdir*) ac_datarootdir_seen=yes;;
7112*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7114$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7115_ACEOF
7116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7117 ac_datarootdir_hack='
7118 s&@datadir@&$datadir&g
7119 s&@docdir@&$docdir&g
7120 s&@infodir@&$infodir&g
7121 s&@localedir@&$localedir&g
7122 s&@mandir@&$mandir&g
7123 s&\\\${datarootdir}&$datarootdir&g' ;;
7124esac
7125_ACEOF
7126
7127# Neutralize VPATH when `$srcdir' = `.'.
7128# Shell code in configure.ac might set extrasub.
7129# FIXME: do we really want to maintain this feature?
7130cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7131ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00007132$extrasub
7133_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007135:t
7136/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04007137s|@configure_input@|$ac_sed_conf_input|;t t
7138s&@top_builddir@&$ac_top_builddir_sub&;t t
7139s&@top_build_prefix@&$ac_top_build_prefix&;t t
7140s&@srcdir@&$ac_srcdir&;t t
7141s&@abs_srcdir@&$ac_abs_srcdir&;t t
7142s&@top_srcdir@&$ac_top_srcdir&;t t
7143s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7144s&@builddir@&$ac_builddir&;t t
7145s&@abs_builddir@&$ac_abs_builddir&;t t
7146s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7147s&@INSTALL@&$ac_INSTALL&;t t
7148$ac_datarootdir_hack
7149"
7150eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7151 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00007152
jfigusc7e66e32013-05-08 11:32:55 -04007153test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7154 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7155 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7156 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7158which seems to be undefined. Please make sure it is defined" >&5
7159$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7160which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007161
jfigusc7e66e32013-05-08 11:32:55 -04007162 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007163 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04007164 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7165 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7166 esac \
7167 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7168 ;;
7169 :H)
7170 #
7171 # CONFIG_HEADER
7172 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007173 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04007174 {
7175 $as_echo "/* $configure_input */" \
7176 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7177 } >"$ac_tmp/config.h" \
7178 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7179 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7181$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007182 else
jfigusc7e66e32013-05-08 11:32:55 -04007183 rm -f "$ac_file"
7184 mv "$ac_tmp/config.h" "$ac_file" \
7185 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007186 fi
7187 else
jfigusc7e66e32013-05-08 11:32:55 -04007188 $as_echo "/* $configure_input */" \
7189 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7190 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007191 fi
jfigusc7e66e32013-05-08 11:32:55 -04007192 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007193
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007194
jfigusc7e66e32013-05-08 11:32:55 -04007195 esac
7196
7197done # for ac_tag
7198
7199
7200as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007201_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007202ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04007203
jfigusc7e66e32013-05-08 11:32:55 -04007204test $ac_write_fail = 0 ||
7205 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7206
Cullen Jennings235513a2005-09-21 22:51:36 +00007207
7208# configure is writing to config.log, and then calls config.status.
7209# config.status does its own redirection, appending to config.log.
7210# Unfortunately, on DOS this fails, as config.log is still kept open
7211# by configure, so config.status won't be able to write to it; its
7212# output is simply discarded. So we exec the FD to /dev/null,
7213# effectively closing config.log, so it can be properly (re)opened and
7214# appended to by config.status. When coming back to configure, we
7215# need to make the FD available again.
7216if test "$no_create" != yes; then
7217 ac_cs_success=:
7218 ac_config_status_args=
7219 test "$silent" = yes &&
7220 ac_config_status_args="$ac_config_status_args --quiet"
7221 exec 5>/dev/null
7222 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7223 exec 5>>config.log
7224 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7225 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04007226 $ac_cs_success || as_fn_exit 1
7227fi
7228if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7230$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007231fi
7232
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00007233
7234# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04007235as_dir=crypto/cipher; as_fn_mkdir_p
7236as_dir=crypto/hash; as_fn_mkdir_p
7237as_dir=crypto/kernel; as_fn_mkdir_p
7238as_dir=crypto/math; as_fn_mkdir_p
7239as_dir=crypto/replay; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007240as_dir=crypto/test; as_fn_mkdir_p
7241as_dir=doc; as_fn_mkdir_p
7242as_dir=srtp; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007243as_dir=test; as_fn_mkdir_p