Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libsrtp2 2.8.0.
4 #
5 # Report bugs to <https://github.com/cisco/libsrtp/issues>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_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.
45 if 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 --'
49 elif (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'
52 else
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'
72 fi
73
74 # The user is always right.
75 if 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 }
81 fi
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.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell [email protected] and
232 $0: https://github.com/cisco/libsrtp/issues about your
233 $0: system, including any error possibly output before this
234 $0: message. Then install a modern shell, or manually run
235 $0: the script under such a shell if you do have one."
236 fi
237 exit 1
238 fi
239 fi
240 fi
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
246
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
254 {
255 { eval $1=; unset $1;}
256 }
257 as_unset=as_fn_unset
258
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
263 {
264 return $1
265 } # as_fn_set_status
266
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
271 {
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
276
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
281 {
282
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
302 q
303 }
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
306 q
307 }
308 /^X\(\/\/\)$/{
309 s//\1/
310 q
311 }
312 /^X\(\/\).*/{
313 s//\1/
314 q
315 }
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
332 {
333 eval $1+=\$2
334 }'
335 else
336 as_fn_append ()
337 {
338 eval $1=\$$1\$2
339 }
340 fi # as_fn_append
341
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
349 {
350 as_val=$(( $* ))
351 }'
352 else
353 as_fn_arith ()
354 {
355 as_val=`expr "$@" || test $? -eq 1`
356 }
357 fi # as_fn_arith
358
359
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
366 {
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 fi
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374 } # as_fn_error
375
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379 else
380 as_expr=false
381 fi
382
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385 else
386 as_basename=false
387 fi
388
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
393 fi
394
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
402 q
403 }
404 /^X\/\(\/\/\)$/{
405 s//\1/
406 q
407 }
408 /^X\/\(\/\).*/{
409 s//\1/
410 q
411 }
412 s/.*/./; q'`
413
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n '
428 p
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
434 b
435 :lineno
436 N
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
451 }
452
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
462 *)
463 ECHO_N='-n';;
464 esac
465
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469 else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
472 fi
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
486 fi
487 else
488 as_ln_s='cp -p'
489 fi
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
492
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495 else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
498 fi
499
500 if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502 else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
507 fi
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
519 '
520 fi
521 as_executable_p=$as_test_x
522
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530 exec 7<&0 </dev/null 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='libsrtp2'
551 PACKAGE_TARNAME='libsrtp2'
552 PACKAGE_VERSION='2.8.0'
553 PACKAGE_STRING='libsrtp2 2.8.0'
554 PACKAGE_BUGREPORT='https://github.com/cisco/libsrtp/issues'
555 PACKAGE_URL=''
556
557 # Factoring default headers for most tests.
558 ac_includes_default="\
559 #include <stdio.h>
560 #ifdef HAVE_SYS_TYPES_H
561 # include <sys/types.h>
562 #endif
563 #ifdef HAVE_SYS_STAT_H
564 # include <sys/stat.h>
565 #endif
566 #ifdef STDC_HEADERS
567 # include <stdlib.h>
568 # include <stddef.h>
569 #else
570 # ifdef HAVE_STDLIB_H
571 # include <stdlib.h>
572 # endif
573 #endif
574 #ifdef HAVE_STRING_H
575 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
576 # include <memory.h>
577 # endif
578 # include <string.h>
579 #endif
580 #ifdef HAVE_STRINGS_H
581 # include <strings.h>
582 #endif
583 #ifdef HAVE_INTTYPES_H
584 # include <inttypes.h>
585 #endif
586 #ifdef HAVE_STDINT_H
587 # include <stdint.h>
588 #endif
589 #ifdef HAVE_UNISTD_H
590 # include <unistd.h>
591 #endif"
592
593 ac_subst_vars='LTLIBOBJS
594 LIBOBJS
595 PCAP_LIB
596 HAVE_PCAP
597 HMAC_OBJS
598 AES_ICM_OBJS
599 nss_LIBS
600 nss_CFLAGS
601 CRYPTO_LIBDIR
602 USE_EXTERNAL_CRYPTO
603 crypto_LIBS
604 crypto_CFLAGS
605 PKG_CONFIG_LIBDIR
606 PKG_CONFIG_PATH
607 PKG_CONFIG
608 EXE
609 host_os
610 host_vendor
611 host_cpu
612 host
613 build_os
614 build_vendor
615 build_cpu
616 build
617 EGREP
618 GREP
619 SED
620 INSTALL_DATA
621 INSTALL_SCRIPT
622 INSTALL_PROGRAM
623 RANLIB
624 ac_ct_AR
625 AR
626 EXTRA_CFLAGS
627 ac_ct_CXX
628 CXXFLAGS
629 CXX
630 CPP
631 OBJEXT
632 EXEEXT
633 ac_ct_CC
634 CPPFLAGS
635 LDFLAGS
636 CFLAGS
637 CC
638 target_alias
639 host_alias
640 build_alias
641 LIBS
642 ECHO_T
643 ECHO_N
644 ECHO_C
645 DEFS
646 mandir
647 localedir
648 libdir
649 psdir
650 pdfdir
651 dvidir
652 htmldir
653 infodir
654 docdir
655 oldincludedir
656 includedir
657 localstatedir
658 sharedstatedir
659 sysconfdir
660 datadir
661 datarootdir
662 libexecdir
663 sbindir
664 bindir
665 program_transform_name
666 prefix
667 exec_prefix
668 PACKAGE_URL
669 PACKAGE_BUGREPORT
670 PACKAGE_STRING
671 PACKAGE_VERSION
672 PACKAGE_TARNAME
673 PACKAGE_NAME
674 PATH_SEPARATOR
675 SHELL'
676 ac_subst_files=''
677 ac_user_opts='
678 enable_option_checking
679 enable_debug_logging
680 enable_openssl
681 enable_nss
682 with_openssl_dir
683 enable_openssl_kdf
684 with_nss_dir
685 enable_pcap
686 enable_log_stdout
687 with_log_file
688 '
689 ac_precious_vars='build_alias
690 host_alias
691 target_alias
692 CC
693 CFLAGS
694 LDFLAGS
695 LIBS
696 CPPFLAGS
697 CPP
698 CXX
699 CXXFLAGS
700 CCC
701 EXTRA_CFLAGS
702 PKG_CONFIG
703 PKG_CONFIG_PATH
704 PKG_CONFIG_LIBDIR
705 crypto_CFLAGS
706 crypto_LIBS
707 nss_CFLAGS
708 nss_LIBS'
709
710
711 # Initialize some variables set by options.
712 ac_init_help=
713 ac_init_version=false
714 ac_unrecognized_opts=
715 ac_unrecognized_sep=
716 # The variables have the same names as the options, with
717 # dashes changed to underlines.
718 cache_file=/dev/null
719 exec_prefix=NONE
720 no_create=
721 no_recursion=
722 prefix=NONE
723 program_prefix=NONE
724 program_suffix=NONE
725 program_transform_name=s,x,x,
726 silent=
727 site=
728 srcdir=
729 verbose=
730 x_includes=NONE
731 x_libraries=NONE
732
733 # Installation directory options.
734 # These are left unexpanded so users can "make install exec_prefix=/foo"
735 # and all the variables that are supposed to be based on exec_prefix
736 # by default will actually change.
737 # Use braces instead of parens because sh, perl, etc. also accept them.
738 # (The list follows the same order as the GNU Coding Standards.)
739 bindir='${exec_prefix}/bin'
740 sbindir='${exec_prefix}/sbin'
741 libexecdir='${exec_prefix}/libexec'
742 datarootdir='${prefix}/share'
743 datadir='${datarootdir}'
744 sysconfdir='${prefix}/etc'
745 sharedstatedir='${prefix}/com'
746 localstatedir='${prefix}/var'
747 includedir='${prefix}/include'
748 oldincludedir='/usr/include'
749 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
750 infodir='${datarootdir}/info'
751 htmldir='${docdir}'
752 dvidir='${docdir}'
753 pdfdir='${docdir}'
754 psdir='${docdir}'
755 libdir='${exec_prefix}/lib'
756 localedir='${datarootdir}/locale'
757 mandir='${datarootdir}/man'
758
759 ac_prev=
760 ac_dashdash=
761 for ac_option
762 do
763 # If the previous option needs an argument, assign it.
764 if test -n "$ac_prev"; then
765 eval $ac_prev=\$ac_option
766 ac_prev=
767 continue
768 fi
769
770 case $ac_option in
771 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
772 *) ac_optarg=yes ;;
773 esac
774
775 # Accept the important Cygnus configure options, so we can diagnose typos.
776
777 case $ac_dashdash$ac_option in
778 --)
779 ac_dashdash=yes ;;
780
781 -bindir | --bindir | --bindi | --bind | --bin | --bi)
782 ac_prev=bindir ;;
783 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
784 bindir=$ac_optarg ;;
785
786 -build | --build | --buil | --bui | --bu)
787 ac_prev=build_alias ;;
788 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
789 build_alias=$ac_optarg ;;
790
791 -cache-file | --cache-file | --cache-fil | --cache-fi \
792 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
793 ac_prev=cache_file ;;
794 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
795 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
796 cache_file=$ac_optarg ;;
797
798 --config-cache | -C)
799 cache_file=config.cache ;;
800
801 -datadir | --datadir | --datadi | --datad)
802 ac_prev=datadir ;;
803 -datadir=* | --datadir=* | --datadi=* | --datad=*)
804 datadir=$ac_optarg ;;
805
806 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
807 | --dataroo | --dataro | --datar)
808 ac_prev=datarootdir ;;
809 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
810 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
811 datarootdir=$ac_optarg ;;
812
813 -disable-* | --disable-*)
814 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
815 # Reject names that are not valid shell variable names.
816 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
817 as_fn_error "invalid feature name: $ac_useropt"
818 ac_useropt_orig=$ac_useropt
819 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
820 case $ac_user_opts in
821 *"
822 "enable_$ac_useropt"
823 "*) ;;
824 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
825 ac_unrecognized_sep=', ';;
826 esac
827 eval enable_$ac_useropt=no ;;
828
829 -docdir | --docdir | --docdi | --doc | --do)
830 ac_prev=docdir ;;
831 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
832 docdir=$ac_optarg ;;
833
834 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
835 ac_prev=dvidir ;;
836 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
837 dvidir=$ac_optarg ;;
838
839 -enable-* | --enable-*)
840 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
843 as_fn_error "invalid feature name: $ac_useropt"
844 ac_useropt_orig=$ac_useropt
845 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
846 case $ac_user_opts in
847 *"
848 "enable_$ac_useropt"
849 "*) ;;
850 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
851 ac_unrecognized_sep=', ';;
852 esac
853 eval enable_$ac_useropt=\$ac_optarg ;;
854
855 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
856 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
857 | --exec | --exe | --ex)
858 ac_prev=exec_prefix ;;
859 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
860 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
861 | --exec=* | --exe=* | --ex=*)
862 exec_prefix=$ac_optarg ;;
863
864 -gas | --gas | --ga | --g)
865 # Obsolete; use --with-gas.
866 with_gas=yes ;;
867
868 -help | --help | --hel | --he | -h)
869 ac_init_help=long ;;
870 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
871 ac_init_help=recursive ;;
872 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
873 ac_init_help=short ;;
874
875 -host | --host | --hos | --ho)
876 ac_prev=host_alias ;;
877 -host=* | --host=* | --hos=* | --ho=*)
878 host_alias=$ac_optarg ;;
879
880 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
881 ac_prev=htmldir ;;
882 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
883 | --ht=*)
884 htmldir=$ac_optarg ;;
885
886 -includedir | --includedir | --includedi | --included | --include \
887 | --includ | --inclu | --incl | --inc)
888 ac_prev=includedir ;;
889 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
890 | --includ=* | --inclu=* | --incl=* | --inc=*)
891 includedir=$ac_optarg ;;
892
893 -infodir | --infodir | --infodi | --infod | --info | --inf)
894 ac_prev=infodir ;;
895 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
896 infodir=$ac_optarg ;;
897
898 -libdir | --libdir | --libdi | --libd)
899 ac_prev=libdir ;;
900 -libdir=* | --libdir=* | --libdi=* | --libd=*)
901 libdir=$ac_optarg ;;
902
903 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
904 | --libexe | --libex | --libe)
905 ac_prev=libexecdir ;;
906 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
907 | --libexe=* | --libex=* | --libe=*)
908 libexecdir=$ac_optarg ;;
909
910 -localedir | --localedir | --localedi | --localed | --locale)
911 ac_prev=localedir ;;
912 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
913 localedir=$ac_optarg ;;
914
915 -localstatedir | --localstatedir | --localstatedi | --localstated \
916 | --localstate | --localstat | --localsta | --localst | --locals)
917 ac_prev=localstatedir ;;
918 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
919 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
920 localstatedir=$ac_optarg ;;
921
922 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
923 ac_prev=mandir ;;
924 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
925 mandir=$ac_optarg ;;
926
927 -nfp | --nfp | --nf)
928 # Obsolete; use --without-fp.
929 with_fp=no ;;
930
931 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
932 | --no-cr | --no-c | -n)
933 no_create=yes ;;
934
935 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
936 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
937 no_recursion=yes ;;
938
939 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
940 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
941 | --oldin | --oldi | --old | --ol | --o)
942 ac_prev=oldincludedir ;;
943 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
944 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
945 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
946 oldincludedir=$ac_optarg ;;
947
948 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
949 ac_prev=prefix ;;
950 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
951 prefix=$ac_optarg ;;
952
953 -program-prefix | --program-prefix | --program-prefi | --program-pref \
954 | --program-pre | --program-pr | --program-p)
955 ac_prev=program_prefix ;;
956 -program-prefix=* | --program-prefix=* | --program-prefi=* \
957 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
958 program_prefix=$ac_optarg ;;
959
960 -program-suffix | --program-suffix | --program-suffi | --program-suff \
961 | --program-suf | --program-su | --program-s)
962 ac_prev=program_suffix ;;
963 -program-suffix=* | --program-suffix=* | --program-suffi=* \
964 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
965 program_suffix=$ac_optarg ;;
966
967 -program-transform-name | --program-transform-name \
968 | --program-transform-nam | --program-transform-na \
969 | --program-transform-n | --program-transform- \
970 | --program-transform | --program-transfor \
971 | --program-transfo | --program-transf \
972 | --program-trans | --program-tran \
973 | --progr-tra | --program-tr | --program-t)
974 ac_prev=program_transform_name ;;
975 -program-transform-name=* | --program-transform-name=* \
976 | --program-transform-nam=* | --program-transform-na=* \
977 | --program-transform-n=* | --program-transform-=* \
978 | --program-transform=* | --program-transfor=* \
979 | --program-transfo=* | --program-transf=* \
980 | --program-trans=* | --program-tran=* \
981 | --progr-tra=* | --program-tr=* | --program-t=*)
982 program_transform_name=$ac_optarg ;;
983
984 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
985 ac_prev=pdfdir ;;
986 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
987 pdfdir=$ac_optarg ;;
988
989 -psdir | --psdir | --psdi | --psd | --ps)
990 ac_prev=psdir ;;
991 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
992 psdir=$ac_optarg ;;
993
994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
995 | -silent | --silent | --silen | --sile | --sil)
996 silent=yes ;;
997
998 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
999 ac_prev=sbindir ;;
1000 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1001 | --sbi=* | --sb=*)
1002 sbindir=$ac_optarg ;;
1003
1004 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1005 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1006 | --sharedst | --shareds | --shared | --share | --shar \
1007 | --sha | --sh)
1008 ac_prev=sharedstatedir ;;
1009 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1010 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1011 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1012 | --sha=* | --sh=*)
1013 sharedstatedir=$ac_optarg ;;
1014
1015 -site | --site | --sit)
1016 ac_prev=site ;;
1017 -site=* | --site=* | --sit=*)
1018 site=$ac_optarg ;;
1019
1020 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1021 ac_prev=srcdir ;;
1022 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1023 srcdir=$ac_optarg ;;
1024
1025 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1026 | --syscon | --sysco | --sysc | --sys | --sy)
1027 ac_prev=sysconfdir ;;
1028 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1029 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1030 sysconfdir=$ac_optarg ;;
1031
1032 -target | --target | --targe | --targ | --tar | --ta | --t)
1033 ac_prev=target_alias ;;
1034 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1035 target_alias=$ac_optarg ;;
1036
1037 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1038 verbose=yes ;;
1039
1040 -version | --version | --versio | --versi | --vers | -V)
1041 ac_init_version=: ;;
1042
1043 -with-* | --with-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error "invalid package name: $ac_useropt"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052 "with_$ac_useropt"
1053 "*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval with_$ac_useropt=\$ac_optarg ;;
1058
1059 -without-* | --without-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error "invalid package name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1067 *"
1068 "with_$ac_useropt"
1069 "*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1072 esac
1073 eval with_$ac_useropt=no ;;
1074
1075 --x)
1076 # Obsolete; use --with-x.
1077 with_x=yes ;;
1078
1079 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1080 | --x-incl | --x-inc | --x-in | --x-i)
1081 ac_prev=x_includes ;;
1082 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1083 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1084 x_includes=$ac_optarg ;;
1085
1086 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1087 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1088 ac_prev=x_libraries ;;
1089 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1090 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1091 x_libraries=$ac_optarg ;;
1092
1093 -*) as_fn_error "unrecognized option: \`$ac_option'
1094 Try \`$0 --help' for more information."
1095 ;;
1096
1097 *=*)
1098 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1099 # Reject names that are not valid shell variable names.
1100 case $ac_envvar in #(
1101 '' | [0-9]* | *[!_$as_cr_alnum]* )
1102 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1103 esac
1104 eval $ac_envvar=\$ac_optarg
1105 export $ac_envvar ;;
1106
1107 *)
1108 # FIXME: should be removed in autoconf 3.0.
1109 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1112 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1113 ;;
1114
1115 esac
1116 done
1117
1118 if test -n "$ac_prev"; then
1119 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1120 as_fn_error "missing argument to $ac_option"
1121 fi
1122
1123 if test -n "$ac_unrecognized_opts"; then
1124 case $enable_option_checking in
1125 no) ;;
1126 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1127 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1128 esac
1129 fi
1130
1131 # Check all directory arguments for consistency.
1132 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1133 datadir sysconfdir sharedstatedir localstatedir includedir \
1134 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1135 libdir localedir mandir
1136 do
1137 eval ac_val=\$$ac_var
1138 # Remove trailing slashes.
1139 case $ac_val in
1140 */ )
1141 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1142 eval $ac_var=\$ac_val;;
1143 esac
1144 # Be sure to have absolute directory names.
1145 case $ac_val in
1146 [\\/$]* | ?:[\\/]* ) continue;;
1147 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1148 esac
1149 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1150 done
1151
1152 # There might be people who depend on the old broken behavior: `$host'
1153 # used to hold the argument of --host etc.
1154 # FIXME: To remove some day.
1155 build=$build_alias
1156 host=$host_alias
1157 target=$target_alias
1158
1159 # FIXME: To remove some day.
1160 if test "x$host_alias" != x; then
1161 if test "x$build_alias" = x; then
1162 cross_compiling=maybe
1163 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1164 If a cross compiler is detected then cross compile mode will be used." >&2
1165 elif test "x$build_alias" != "x$host_alias"; then
1166 cross_compiling=yes
1167 fi
1168 fi
1169
1170 ac_tool_prefix=
1171 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1172
1173 test "$silent" = yes && exec 6>/dev/null
1174
1175
1176 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1177 ac_ls_di=`ls -di .` &&
1178 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1179 as_fn_error "working directory cannot be determined"
1180 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1181 as_fn_error "pwd does not report name of working directory"
1182
1183
1184 # Find the source files, if location was not specified.
1185 if test -z "$srcdir"; then
1186 ac_srcdir_defaulted=yes
1187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir=`$as_dirname -- "$as_myself" ||
1189 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$as_myself" : 'X\(//\)[^/]' \| \
1191 X"$as_myself" : 'X\(//\)$' \| \
1192 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1193 $as_echo X"$as_myself" |
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1195 s//\1/
1196 q
1197 }
1198 /^X\(\/\/\)[^/].*/{
1199 s//\1/
1200 q
1201 }
1202 /^X\(\/\/\)$/{
1203 s//\1/
1204 q
1205 }
1206 /^X\(\/\).*/{
1207 s//\1/
1208 q
1209 }
1210 s/.*/./; q'`
1211 srcdir=$ac_confdir
1212 if test ! -r "$srcdir/$ac_unique_file"; then
1213 srcdir=..
1214 fi
1215 else
1216 ac_srcdir_defaulted=no
1217 fi
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1220 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1221 fi
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1225 pwd)`
1226 # When building in place, set srcdir=.
1227 if test "$ac_abs_confdir" = "$ac_pwd"; then
1228 srcdir=.
1229 fi
1230 # Remove unnecessary trailing slashes from srcdir.
1231 # Double slashes in file names in object file debugging info
1232 # mess up M-x gdb in Emacs.
1233 case $srcdir in
1234 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1235 esac
1236 for ac_var in $ac_precious_vars; do
1237 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_env_${ac_var}_value=\$${ac_var}
1239 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1241 done
1242
1243 #
1244 # Report the --help message.
1245 #
1246 if test "$ac_init_help" = "long"; then
1247 # Omit some internal or obsolete options to make the list less imposing.
1248 # This message is too long to be a string in the A/UX 3.1 sh.
1249 cat <<_ACEOF
1250 \`configure' configures libsrtp2 2.8.0 to adapt to many kinds of systems.
1251
1252 Usage: $0 [OPTION]... [VAR=VALUE]...
1253
1254 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255 VAR=VALUE. See below for descriptions of some of the useful variables.
1256
1257 Defaults for the options are specified in brackets.
1258
1259 Configuration:
1260 -h, --help display this help and exit
1261 --help=short display options specific to this package
1262 --help=recursive display the short help of all the included packages
1263 -V, --version display version information and exit
1264 -q, --quiet, --silent do not print \`checking...' messages
1265 --cache-file=FILE cache test results in FILE [disabled]
1266 -C, --config-cache alias for \`--cache-file=config.cache'
1267 -n, --no-create do not create output files
1268 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1269
1270 Installation directories:
1271 --prefix=PREFIX install architecture-independent files in PREFIX
1272 [$ac_default_prefix]
1273 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1274 [PREFIX]
1275
1276 By default, \`make install' will install all the files in
1277 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279 for instance \`--prefix=\$HOME'.
1280
1281 For better control, use the options below.
1282
1283 Fine tuning of the installation directories:
1284 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec]
1287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1290 --libdir=DIR object code libraries [EPREFIX/lib]
1291 --includedir=DIR C header files [PREFIX/include]
1292 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1293 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1294 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1295 --infodir=DIR info documentation [DATAROOTDIR/info]
1296 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1297 --mandir=DIR man documentation [DATAROOTDIR/man]
1298 --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp2]
1299 --htmldir=DIR html documentation [DOCDIR]
1300 --dvidir=DIR dvi documentation [DOCDIR]
1301 --pdfdir=DIR pdf documentation [DOCDIR]
1302 --psdir=DIR ps documentation [DOCDIR]
1303 _ACEOF
1304
1305 cat <<\_ACEOF
1306
1307 System types:
1308 --build=BUILD configure for building on BUILD [guessed]
1309 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1310 _ACEOF
1311 fi
1312
1313 if test -n "$ac_init_help"; then
1314 case $ac_init_help in
1315 short | recursive ) echo "Configuration of libsrtp2 2.8.0:";;
1316 esac
1317 cat <<\_ACEOF
1318
1319 Optional Features:
1320 --disable-option-checking ignore unrecognized --enable/--with options
1321 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1322 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1323 --enable-debug-logging Enable debug logging in all modules
1324 --enable-openssl compile in OpenSSL crypto engine
1325 --enable-nss compile in NSS crypto engine
1326 --enable-openssl-kdf Use OpenSSL KDF algorithm
1327 --disable-pcap Build without `pcap' library (-lpcap)
1328 --enable-log-stdout redirecting logging to stdout
1329
1330 Optional Packages:
1331 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1332 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1333 --with-openssl-dir Location of OpenSSL installation
1334 --with-nss-dir Location of NSS installation
1335 --with-log-file Use file for logging
1336
1337 Some influential environment variables:
1338 CC C compiler command
1339 CFLAGS C compiler flags
1340 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1341 nonstandard directory <lib dir>
1342 LIBS libraries to pass to the linker, e.g. -l<library>
1343 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1344 you have headers in a nonstandard directory <include dir>
1345 CPP C preprocessor
1346 CXX C++ compiler command
1347 CXXFLAGS C++ compiler flags
1348 EXTRA_CFLAGS
1349 C compiler flags appended to the regular C compiler flags
1350 instead of overriding them
1351 PKG_CONFIG path to pkg-config utility
1352 PKG_CONFIG_PATH
1353 directories to add to pkg-config's search path
1354 PKG_CONFIG_LIBDIR
1355 path overriding pkg-config's built-in search path
1356 crypto_CFLAGS
1357 C compiler flags for crypto, overriding pkg-config
1358 crypto_LIBS linker flags for crypto, overriding pkg-config
1359 nss_CFLAGS C compiler flags for nss, overriding pkg-config
1360 nss_LIBS linker flags for nss, overriding pkg-config
1361
1362 Use these variables to override the choices made by `configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1364
1365 Report bugs to <https://github.com/cisco/libsrtp/issues>.
1366 _ACEOF
1367 ac_status=$?
1368 fi
1369
1370 if test "$ac_init_help" = "recursive"; then
1371 # If there are subdirs, report their specific --help.
1372 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1373 test -d "$ac_dir" ||
1374 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1375 continue
1376 ac_builddir=.
1377
1378 case "$ac_dir" in
1379 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380 *)
1381 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1382 # A ".." for each directory in $ac_dir_suffix.
1383 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1384 case $ac_top_builddir_sub in
1385 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1386 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1387 esac ;;
1388 esac
1389 ac_abs_top_builddir=$ac_pwd
1390 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1391 # for backward compatibility:
1392 ac_top_builddir=$ac_top_build_prefix
1393
1394 case $srcdir in
1395 .) # We are building in place.
1396 ac_srcdir=.
1397 ac_top_srcdir=$ac_top_builddir_sub
1398 ac_abs_top_srcdir=$ac_pwd ;;
1399 [\\/]* | ?:[\\/]* ) # Absolute name.
1400 ac_srcdir=$srcdir$ac_dir_suffix;
1401 ac_top_srcdir=$srcdir
1402 ac_abs_top_srcdir=$srcdir ;;
1403 *) # Relative name.
1404 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1405 ac_top_srcdir=$ac_top_build_prefix$srcdir
1406 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1407 esac
1408 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1409
1410 cd "$ac_dir" || { ac_status=$?; continue; }
1411 # Check for guested configure.
1412 if test -f "$ac_srcdir/configure.gnu"; then
1413 echo &&
1414 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1415 elif test -f "$ac_srcdir/configure"; then
1416 echo &&
1417 $SHELL "$ac_srcdir/configure" --help=recursive
1418 else
1419 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1420 fi || ac_status=$?
1421 cd "$ac_pwd" || { ac_status=$?; break; }
1422 done
1423 fi
1424
1425 test -n "$ac_init_help" && exit $ac_status
1426 if $ac_init_version; then
1427 cat <<\_ACEOF
1428 libsrtp2 configure 2.8.0
1429 generated by GNU Autoconf 2.64
1430
1431 Copyright (C) 2009 Free Software Foundation, Inc.
1432 This configure script is free software; the Free Software Foundation
1433 gives unlimited permission to copy, distribute and modify it.
1434 _ACEOF
1435 exit
1436 fi
1437
1438 ## ------------------------ ##
1439 ## Autoconf initialization. ##
1440 ## ------------------------ ##
1441
1442 # ac_fn_c_try_compile LINENO
1443 # --------------------------
1444 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1445 ac_fn_c_try_compile ()
1446 {
1447 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1448 rm -f conftest.$ac_objext
1449 if { { ac_try="$ac_compile"
1450 case "(($ac_try" in
1451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1452 *) ac_try_echo=$ac_try;;
1453 esac
1454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1455 $as_echo "$ac_try_echo"; } >&5
1456 (eval "$ac_compile") 2>conftest.err
1457 ac_status=$?
1458 if test -s conftest.err; then
1459 grep -v '^ *+' conftest.err >conftest.er1
1460 cat conftest.er1 >&5
1461 mv -f conftest.er1 conftest.err
1462 fi
1463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1464 test $ac_status = 0; } && {
1465 test -z "$ac_c_werror_flag" ||
1466 test ! -s conftest.err
1467 } && test -s conftest.$ac_objext; then :
1468 ac_retval=0
1469 else
1470 $as_echo "$as_me: failed program was:" >&5
1471 sed 's/^/| /' conftest.$ac_ext >&5
1472
1473 ac_retval=1
1474 fi
1475 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1476 return $ac_retval
1477
1478 } # ac_fn_c_try_compile
1479
1480 # ac_fn_c_try_cpp LINENO
1481 # ----------------------
1482 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1483 ac_fn_c_try_cpp ()
1484 {
1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486 if { { ac_try="$ac_cpp conftest.$ac_ext"
1487 case "(($ac_try" in
1488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1489 *) ac_try_echo=$ac_try;;
1490 esac
1491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1492 $as_echo "$ac_try_echo"; } >&5
1493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1494 ac_status=$?
1495 if test -s conftest.err; then
1496 grep -v '^ *+' conftest.err >conftest.er1
1497 cat conftest.er1 >&5
1498 mv -f conftest.er1 conftest.err
1499 fi
1500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1501 test $ac_status = 0; } >/dev/null && {
1502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1503 test ! -s conftest.err
1504 }; then :
1505 ac_retval=0
1506 else
1507 $as_echo "$as_me: failed program was:" >&5
1508 sed 's/^/| /' conftest.$ac_ext >&5
1509
1510 ac_retval=1
1511 fi
1512 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1513 return $ac_retval
1514
1515 } # ac_fn_c_try_cpp
1516
1517 # ac_fn_cxx_try_compile LINENO
1518 # ----------------------------
1519 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1520 ac_fn_cxx_try_compile ()
1521 {
1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523 rm -f conftest.$ac_objext
1524 if { { ac_try="$ac_compile"
1525 case "(($ac_try" in
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1528 esac
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_compile") 2>conftest.err
1532 ac_status=$?
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1537 fi
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } && {
1540 test -z "$ac_cxx_werror_flag" ||
1541 test ! -s conftest.err
1542 } && test -s conftest.$ac_objext; then :
1543 ac_retval=0
1544 else
1545 $as_echo "$as_me: failed program was:" >&5
1546 sed 's/^/| /' conftest.$ac_ext >&5
1547
1548 ac_retval=1
1549 fi
1550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1551 return $ac_retval
1552
1553 } # ac_fn_cxx_try_compile
1554
1555 # ac_fn_c_try_run LINENO
1556 # ----------------------
1557 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1558 # that executables *can* be run.
1559 ac_fn_c_try_run ()
1560 {
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 if { { ac_try="$ac_link"
1563 case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_link") 2>&5
1570 ac_status=$?
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1573 { { case "(($ac_try" in
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1576 esac
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_try") 2>&5
1580 ac_status=$?
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; }; }; then :
1583 ac_retval=0
1584 else
1585 $as_echo "$as_me: program exited with status $ac_status" >&5
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1588
1589 ac_retval=$ac_status
1590 fi
1591 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593 return $ac_retval
1594
1595 } # ac_fn_c_try_run
1596
1597 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1598 # -------------------------------------------------------
1599 # Tests whether HEADER exists and can be compiled using the include files in
1600 # INCLUDES, setting the cache variable VAR accordingly.
1601 ac_fn_c_check_header_compile ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1605 $as_echo_n "checking for $2... " >&6; }
1606 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1607 $as_echo_n "(cached) " >&6
1608 else
1609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1610 /* end confdefs.h. */
1611 $4
1612 #include <$2>
1613 _ACEOF
1614 if ac_fn_c_try_compile "$LINENO"; then :
1615 eval "$3=yes"
1616 else
1617 eval "$3=no"
1618 fi
1619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1620 fi
1621 eval ac_res=\$$3
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1623 $as_echo "$ac_res" >&6; }
1624 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1625
1626 } # ac_fn_c_check_header_compile
1627
1628 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1629 # -------------------------------------------
1630 # Tests whether TYPE exists after having included INCLUDES, setting cache
1631 # variable VAR accordingly.
1632 ac_fn_c_check_type ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1638 $as_echo_n "(cached) " >&6
1639 else
1640 eval "$3=no"
1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642 /* end confdefs.h. */
1643 $4
1644 int
1645 main ()
1646 {
1647 if (sizeof ($2))
1648 return 0;
1649 ;
1650 return 0;
1651 }
1652 _ACEOF
1653 if ac_fn_c_try_compile "$LINENO"; then :
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1656 $4
1657 int
1658 main ()
1659 {
1660 if (sizeof (($2)))
1661 return 0;
1662 ;
1663 return 0;
1664 }
1665 _ACEOF
1666 if ac_fn_c_try_compile "$LINENO"; then :
1667
1668 else
1669 eval "$3=yes"
1670 fi
1671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1672 fi
1673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674 fi
1675 eval ac_res=\$$3
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1678 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1679
1680 } # ac_fn_c_check_type
1681
1682 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1683 # --------------------------------------------
1684 # Tries to find the compile-time value of EXPR in a program that includes
1685 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1686 # computed
1687 ac_fn_c_compute_int ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if test "$cross_compiling" = yes; then
1691 # Depending upon the size, compute the lo and hi bounds.
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1694 $4
1695 int
1696 main ()
1697 {
1698 static int test_array [1 - 2 * !(($2) >= 0)];
1699 test_array [0] = 0
1700
1701 ;
1702 return 0;
1703 }
1704 _ACEOF
1705 if ac_fn_c_try_compile "$LINENO"; then :
1706 ac_lo=0 ac_mid=0
1707 while :; do
1708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709 /* end confdefs.h. */
1710 $4
1711 int
1712 main ()
1713 {
1714 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1715 test_array [0] = 0
1716
1717 ;
1718 return 0;
1719 }
1720 _ACEOF
1721 if ac_fn_c_try_compile "$LINENO"; then :
1722 ac_hi=$ac_mid; break
1723 else
1724 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1725 if test $ac_lo -le $ac_mid; then
1726 ac_lo= ac_hi=
1727 break
1728 fi
1729 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1730 fi
1731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1732 done
1733 else
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1736 $4
1737 int
1738 main ()
1739 {
1740 static int test_array [1 - 2 * !(($2) < 0)];
1741 test_array [0] = 0
1742
1743 ;
1744 return 0;
1745 }
1746 _ACEOF
1747 if ac_fn_c_try_compile "$LINENO"; then :
1748 ac_hi=-1 ac_mid=-1
1749 while :; do
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1752 $4
1753 int
1754 main ()
1755 {
1756 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1757 test_array [0] = 0
1758
1759 ;
1760 return 0;
1761 }
1762 _ACEOF
1763 if ac_fn_c_try_compile "$LINENO"; then :
1764 ac_lo=$ac_mid; break
1765 else
1766 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1767 if test $ac_mid -le $ac_hi; then
1768 ac_lo= ac_hi=
1769 break
1770 fi
1771 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1772 fi
1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 done
1775 else
1776 ac_lo= ac_hi=
1777 fi
1778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779 fi
1780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1781 # Binary search between lo and hi bounds.
1782 while test "x$ac_lo" != "x$ac_hi"; do
1783 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 $4
1787 int
1788 main ()
1789 {
1790 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1791 test_array [0] = 0
1792
1793 ;
1794 return 0;
1795 }
1796 _ACEOF
1797 if ac_fn_c_try_compile "$LINENO"; then :
1798 ac_hi=$ac_mid
1799 else
1800 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1801 fi
1802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803 done
1804 case $ac_lo in #((
1805 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1806 '') ac_retval=1 ;;
1807 esac
1808 else
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1811 $4
1812 static long int longval () { return $2; }
1813 static unsigned long int ulongval () { return $2; }
1814 #include <stdio.h>
1815 #include <stdlib.h>
1816 int
1817 main ()
1818 {
1819
1820 FILE *f = fopen ("conftest.val", "w");
1821 if (! f)
1822 return 1;
1823 if (($2) < 0)
1824 {
1825 long int i = longval ();
1826 if (i != ($2))
1827 return 1;
1828 fprintf (f, "%ld", i);
1829 }
1830 else
1831 {
1832 unsigned long int i = ulongval ();
1833 if (i != ($2))
1834 return 1;
1835 fprintf (f, "%lu", i);
1836 }
1837 /* Do not output a trailing newline, as this causes \r\n confusion
1838 on some platforms. */
1839 return ferror (f) || fclose (f) != 0;
1840
1841 ;
1842 return 0;
1843 }
1844 _ACEOF
1845 if ac_fn_c_try_run "$LINENO"; then :
1846 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1847 else
1848 ac_retval=1
1849 fi
1850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1851 conftest.$ac_objext conftest.beam conftest.$ac_ext
1852 rm -f conftest.val
1853
1854 fi
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856 return $ac_retval
1857
1858 } # ac_fn_c_compute_int
1859
1860 # ac_fn_c_try_link LINENO
1861 # -----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_c_try_link ()
1864 {
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 rm -f conftest.$ac_objext conftest$ac_exeext
1867 if { { ac_try="$ac_link"
1868 case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>conftest.err
1875 ac_status=$?
1876 if test -s conftest.err; then
1877 grep -v '^ *+' conftest.err >conftest.er1
1878 cat conftest.er1 >&5
1879 mv -f conftest.er1 conftest.err
1880 fi
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && {
1883 test -z "$ac_c_werror_flag" ||
1884 test ! -s conftest.err
1885 } && test -s conftest$ac_exeext && {
1886 test "$cross_compiling" = yes ||
1887 $as_test_x conftest$ac_exeext
1888 }; then :
1889 ac_retval=0
1890 else
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894 ac_retval=1
1895 fi
1896 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1897 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1898 # interfere with the next link command; also delete a directory that is
1899 # left behind by Apple's compiler. We do this before executing the actions.
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902 return $ac_retval
1903
1904 } # ac_fn_c_try_link
1905
1906 # ac_fn_c_check_func LINENO FUNC VAR
1907 # ----------------------------------
1908 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1909 ac_fn_c_check_func ()
1910 {
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 $as_echo_n "(cached) " >&6
1916 else
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1921 #define $2 innocuous_$2
1922
1923 /* System header to define __stub macros and hopefully few prototypes,
1924 which can conflict with char $2 (); below.
1925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926 <limits.h> exists even on freestanding compilers. */
1927
1928 #ifdef __STDC__
1929 # include <limits.h>
1930 #else
1931 # include <assert.h>
1932 #endif
1933
1934 #undef $2
1935
1936 /* Override any GCC internal prototype to avoid an error.
1937 Use char because int might match the return type of a GCC
1938 builtin and then its argument prototype would still apply. */
1939 #ifdef __cplusplus
1940 extern "C"
1941 #endif
1942 char $2 ();
1943 /* The GNU C library defines this for functions which it implements
1944 to always fail with ENOSYS. Some functions are actually named
1945 something starting with __ and the normal name is an alias. */
1946 #if defined __stub_$2 || defined __stub___$2
1947 choke me
1948 #endif
1949
1950 int
1951 main ()
1952 {
1953 return $2 ();
1954 ;
1955 return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_link "$LINENO"; then :
1959 eval "$3=yes"
1960 else
1961 eval "$3=no"
1962 fi
1963 rm -f core conftest.err conftest.$ac_objext \
1964 conftest$ac_exeext conftest.$ac_ext
1965 fi
1966 eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970
1971 } # ac_fn_c_check_func
1972 cat >config.log <<_ACEOF
1973 This file contains any messages produced by compilers while
1974 running configure, to aid debugging if configure makes a mistake.
1975
1976 It was created by libsrtp2 $as_me 2.8.0, which was
1977 generated by GNU Autoconf 2.64. Invocation command line was
1978
1979 $ $0 $@
1980
1981 _ACEOF
1982 exec 5>>config.log
1983 {
1984 cat <<_ASUNAME
1985 ## --------- ##
1986 ## Platform. ##
1987 ## --------- ##
1988
1989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1994
1995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1997
1998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2001 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2005
2006 _ASUNAME
2007
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 $as_echo "PATH: $as_dir"
2014 done
2015 IFS=$as_save_IFS
2016
2017 } >&5
2018
2019 cat >&5 <<_ACEOF
2020
2021
2022 ## ----------- ##
2023 ## Core tests. ##
2024 ## ----------- ##
2025
2026 _ACEOF
2027
2028
2029 # Keep a trace of the command line.
2030 # Strip out --no-create and --no-recursion so they do not pile up.
2031 # Strip out --silent because we don't want to record it for future runs.
2032 # Also quote any args containing shell meta-characters.
2033 # Make two passes to allow for proper duplicate-argument suppression.
2034 ac_configure_args=
2035 ac_configure_args0=
2036 ac_configure_args1=
2037 ac_must_keep_next=false
2038 for ac_pass in 1 2
2039 do
2040 for ac_arg
2041 do
2042 case $ac_arg in
2043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2045 | -silent | --silent | --silen | --sile | --sil)
2046 continue ;;
2047 *\'*)
2048 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2049 esac
2050 case $ac_pass in
2051 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2052 2)
2053 as_fn_append ac_configure_args1 " '$ac_arg'"
2054 if test $ac_must_keep_next = true; then
2055 ac_must_keep_next=false # Got value, back to normal.
2056 else
2057 case $ac_arg in
2058 *=* | --config-cache | -C | -disable-* | --disable-* \
2059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2061 | -with-* | --with-* | -without-* | --without-* | --x)
2062 case "$ac_configure_args0 " in
2063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2064 esac
2065 ;;
2066 -* ) ac_must_keep_next=true ;;
2067 esac
2068 fi
2069 as_fn_append ac_configure_args " '$ac_arg'"
2070 ;;
2071 esac
2072 done
2073 done
2074 { ac_configure_args0=; unset ac_configure_args0;}
2075 { ac_configure_args1=; unset ac_configure_args1;}
2076
2077 # When interrupted or exit'd, cleanup temporary files, and complete
2078 # config.log. We remove comments because anyway the quotes in there
2079 # would cause problems or look ugly.
2080 # WARNING: Use '\'' to represent an apostrophe within the trap.
2081 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2082 trap 'exit_status=$?
2083 # Save into config.log some information that might help in debugging.
2084 {
2085 echo
2086
2087 cat <<\_ASBOX
2088 ## ---------------- ##
2089 ## Cache variables. ##
2090 ## ---------------- ##
2091 _ASBOX
2092 echo
2093 # The following way of writing the cache mishandles newlines in values,
2094 (
2095 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2096 eval ac_val=\$$ac_var
2097 case $ac_val in #(
2098 *${as_nl}*)
2099 case $ac_var in #(
2100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2101 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2102 esac
2103 case $ac_var in #(
2104 _ | IFS | as_nl) ;; #(
2105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2106 *) { eval $ac_var=; unset $ac_var;} ;;
2107 esac ;;
2108 esac
2109 done
2110 (set) 2>&1 |
2111 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2112 *${as_nl}ac_space=\ *)
2113 sed -n \
2114 "s/'\''/'\''\\\\'\'''\''/g;
2115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2116 ;; #(
2117 *)
2118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2119 ;;
2120 esac |
2121 sort
2122 )
2123 echo
2124
2125 cat <<\_ASBOX
2126 ## ----------------- ##
2127 ## Output variables. ##
2128 ## ----------------- ##
2129 _ASBOX
2130 echo
2131 for ac_var in $ac_subst_vars
2132 do
2133 eval ac_val=\$$ac_var
2134 case $ac_val in
2135 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2136 esac
2137 $as_echo "$ac_var='\''$ac_val'\''"
2138 done | sort
2139 echo
2140
2141 if test -n "$ac_subst_files"; then
2142 cat <<\_ASBOX
2143 ## ------------------- ##
2144 ## File substitutions. ##
2145 ## ------------------- ##
2146 _ASBOX
2147 echo
2148 for ac_var in $ac_subst_files
2149 do
2150 eval ac_val=\$$ac_var
2151 case $ac_val in
2152 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2153 esac
2154 $as_echo "$ac_var='\''$ac_val'\''"
2155 done | sort
2156 echo
2157 fi
2158
2159 if test -s confdefs.h; then
2160 cat <<\_ASBOX
2161 ## ----------- ##
2162 ## confdefs.h. ##
2163 ## ----------- ##
2164 _ASBOX
2165 echo
2166 cat confdefs.h
2167 echo
2168 fi
2169 test "$ac_signal" != 0 &&
2170 $as_echo "$as_me: caught signal $ac_signal"
2171 $as_echo "$as_me: exit $exit_status"
2172 } >&5
2173 rm -f core *.core core.conftest.* &&
2174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2175 exit $exit_status
2176 ' 0
2177 for ac_signal in 1 2 13 15; do
2178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2179 done
2180 ac_signal=0
2181
2182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2183 rm -f -r conftest* confdefs.h
2184
2185 $as_echo "/* confdefs.h */" > confdefs.h
2186
2187 # Predefined preprocessor variables.
2188
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_NAME "$PACKAGE_NAME"
2191 _ACEOF
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2195 _ACEOF
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2199 _ACEOF
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_STRING "$PACKAGE_STRING"
2203 _ACEOF
2204
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2207 _ACEOF
2208
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_URL "$PACKAGE_URL"
2211 _ACEOF
2212
2213
2214 # Let the site file select an alternate cache file if it wants to.
2215 # Prefer an explicitly selected file to automatically selected ones.
2216 ac_site_file1=NONE
2217 ac_site_file2=NONE
2218 if test -n "$CONFIG_SITE"; then
2219 ac_site_file1=$CONFIG_SITE
2220 elif test "x$prefix" != xNONE; then
2221 ac_site_file1=$prefix/share/config.site
2222 ac_site_file2=$prefix/etc/config.site
2223 else
2224 ac_site_file1=$ac_default_prefix/share/config.site
2225 ac_site_file2=$ac_default_prefix/etc/config.site
2226 fi
2227 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2228 do
2229 test "x$ac_site_file" = xNONE && continue
2230 if test -r "$ac_site_file"; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2232 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2233 sed 's/^/| /' "$ac_site_file" >&5
2234 . "$ac_site_file"
2235 fi
2236 done
2237
2238 if test -r "$cache_file"; then
2239 # Some versions of bash will fail to source /dev/null (special
2240 # files actually), so we avoid doing that.
2241 if test -f "$cache_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2243 $as_echo "$as_me: loading cache $cache_file" >&6;}
2244 case $cache_file in
2245 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2246 *) . "./$cache_file";;
2247 esac
2248 fi
2249 else
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2251 $as_echo "$as_me: creating cache $cache_file" >&6;}
2252 >$cache_file
2253 fi
2254
2255 # Check that the precious variables saved in the cache have kept the same
2256 # value.
2257 ac_cache_corrupted=false
2258 for ac_var in $ac_precious_vars; do
2259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2260 eval ac_new_set=\$ac_env_${ac_var}_set
2261 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2262 eval ac_new_val=\$ac_env_${ac_var}_value
2263 case $ac_old_set,$ac_new_set in
2264 set,)
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2266 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2267 ac_cache_corrupted=: ;;
2268 ,set)
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2270 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2272 ,);;
2273 *)
2274 if test "x$ac_old_val" != "x$ac_new_val"; then
2275 # differences in whitespace do not lead to failure.
2276 ac_old_val_w=`echo x $ac_old_val`
2277 ac_new_val_w=`echo x $ac_new_val`
2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2280 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2281 ac_cache_corrupted=:
2282 else
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2284 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2285 eval $ac_var=\$ac_old_val
2286 fi
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2288 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2290 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2291 fi;;
2292 esac
2293 # Pass precious variables to config.status.
2294 if test "$ac_new_set" = set; then
2295 case $ac_new_val in
2296 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 *) ac_arg=$ac_var=$ac_new_val ;;
2298 esac
2299 case " $ac_configure_args " in
2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2301 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2302 esac
2303 fi
2304 done
2305 if $ac_cache_corrupted; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2309 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2310 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2311 fi
2312 ## -------------------- ##
2313 ## Main body of script. ##
2314 ## -------------------- ##
2315
2316 ac_ext=c
2317 ac_cpp='$CPP $CPPFLAGS'
2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321
2322
2323
2324 EMPTY_CFLAGS="no"
2325 if test "x$CFLAGS" = "x"; then
2326 EMPTY_CFLAGS="yes"
2327 fi
2328
2329 ac_ext=c
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334 if test -n "$ac_tool_prefix"; then
2335 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2336 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2338 $as_echo_n "checking for $ac_word... " >&6; }
2339 if test "${ac_cv_prog_CC+set}" = set; then :
2340 $as_echo_n "(cached) " >&6
2341 else
2342 if test -n "$CC"; then
2343 ac_cv_prog_CC="$CC" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2355 fi
2356 done
2357 done
2358 IFS=$as_save_IFS
2359
2360 fi
2361 fi
2362 CC=$ac_cv_prog_CC
2363 if test -n "$CC"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2365 $as_echo "$CC" >&6; }
2366 else
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2368 $as_echo "no" >&6; }
2369 fi
2370
2371
2372 fi
2373 if test -z "$ac_cv_prog_CC"; then
2374 ac_ct_CC=$CC
2375 # Extract the first word of "gcc", so it can be a program name with args.
2376 set dummy gcc; ac_word=$2
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2378 $as_echo_n "checking for $ac_word... " >&6; }
2379 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2380 $as_echo_n "(cached) " >&6
2381 else
2382 if test -n "$ac_ct_CC"; then
2383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2384 else
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 for as_dir in $PATH
2387 do
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2392 ac_cv_prog_ac_ct_CC="gcc"
2393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 break 2
2395 fi
2396 done
2397 done
2398 IFS=$as_save_IFS
2399
2400 fi
2401 fi
2402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2403 if test -n "$ac_ct_CC"; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2405 $as_echo "$ac_ct_CC" >&6; }
2406 else
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2408 $as_echo "no" >&6; }
2409 fi
2410
2411 if test "x$ac_ct_CC" = x; then
2412 CC=""
2413 else
2414 case $cross_compiling:$ac_tool_warned in
2415 yes:)
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2418 ac_tool_warned=yes ;;
2419 esac
2420 CC=$ac_ct_CC
2421 fi
2422 else
2423 CC="$ac_cv_prog_CC"
2424 fi
2425
2426 if test -z "$CC"; then
2427 if test -n "$ac_tool_prefix"; then
2428 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2429 set dummy ${ac_tool_prefix}cc; ac_word=$2
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2431 $as_echo_n "checking for $ac_word... " >&6; }
2432 if test "${ac_cv_prog_CC+set}" = set; then :
2433 $as_echo_n "(cached) " >&6
2434 else
2435 if test -n "$CC"; then
2436 ac_cv_prog_CC="$CC" # Let the user override the test.
2437 else
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 for as_dir in $PATH
2440 do
2441 IFS=$as_save_IFS
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445 ac_cv_prog_CC="${ac_tool_prefix}cc"
2446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 break 2
2448 fi
2449 done
2450 done
2451 IFS=$as_save_IFS
2452
2453 fi
2454 fi
2455 CC=$ac_cv_prog_CC
2456 if test -n "$CC"; then
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2458 $as_echo "$CC" >&6; }
2459 else
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2461 $as_echo "no" >&6; }
2462 fi
2463
2464
2465 fi
2466 fi
2467 if test -z "$CC"; then
2468 # Extract the first word of "cc", so it can be a program name with args.
2469 set dummy cc; ac_word=$2
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471 $as_echo_n "checking for $ac_word... " >&6; }
2472 if test "${ac_cv_prog_CC+set}" = set; then :
2473 $as_echo_n "(cached) " >&6
2474 else
2475 if test -n "$CC"; then
2476 ac_cv_prog_CC="$CC" # Let the user override the test.
2477 else
2478 ac_prog_rejected=no
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2481 do
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2486 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2487 ac_prog_rejected=yes
2488 continue
2489 fi
2490 ac_cv_prog_CC="cc"
2491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2493 fi
2494 done
2495 done
2496 IFS=$as_save_IFS
2497
2498 if test $ac_prog_rejected = yes; then
2499 # We found a bogon in the path, so make sure we never use it.
2500 set dummy $ac_cv_prog_CC
2501 shift
2502 if test $# != 0; then
2503 # We chose a different compiler from the bogus one.
2504 # However, it has the same basename, so the bogon will be chosen
2505 # first if we set CC to just the basename; use the full file name.
2506 shift
2507 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2508 fi
2509 fi
2510 fi
2511 fi
2512 CC=$ac_cv_prog_CC
2513 if test -n "$CC"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2515 $as_echo "$CC" >&6; }
2516 else
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518 $as_echo "no" >&6; }
2519 fi
2520
2521
2522 fi
2523 if test -z "$CC"; then
2524 if test -n "$ac_tool_prefix"; then
2525 for ac_prog in cl.exe
2526 do
2527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530 $as_echo_n "checking for $ac_word... " >&6; }
2531 if test "${ac_cv_prog_CC+set}" = set; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 if test -n "$CC"; then
2535 ac_cv_prog_CC="$CC" # Let the user override the test.
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2539 do
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 break 2
2547 fi
2548 done
2549 done
2550 IFS=$as_save_IFS
2551
2552 fi
2553 fi
2554 CC=$ac_cv_prog_CC
2555 if test -n "$CC"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2557 $as_echo "$CC" >&6; }
2558 else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560 $as_echo "no" >&6; }
2561 fi
2562
2563
2564 test -n "$CC" && break
2565 done
2566 fi
2567 if test -z "$CC"; then
2568 ac_ct_CC=$CC
2569 for ac_prog in cl.exe
2570 do
2571 # Extract the first word of "$ac_prog", so it can be a program name with args.
2572 set dummy $ac_prog; ac_word=$2
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574 $as_echo_n "checking for $ac_word... " >&6; }
2575 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2576 $as_echo_n "(cached) " >&6
2577 else
2578 if test -n "$ac_ct_CC"; then
2579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2580 else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2583 do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2588 ac_cv_prog_ac_ct_CC="$ac_prog"
2589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2591 fi
2592 done
2593 done
2594 IFS=$as_save_IFS
2595
2596 fi
2597 fi
2598 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2599 if test -n "$ac_ct_CC"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2601 $as_echo "$ac_ct_CC" >&6; }
2602 else
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604 $as_echo "no" >&6; }
2605 fi
2606
2607
2608 test -n "$ac_ct_CC" && break
2609 done
2610
2611 if test "x$ac_ct_CC" = x; then
2612 CC=""
2613 else
2614 case $cross_compiling:$ac_tool_warned in
2615 yes:)
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2618 ac_tool_warned=yes ;;
2619 esac
2620 CC=$ac_ct_CC
2621 fi
2622 fi
2623
2624 fi
2625
2626
2627 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629 as_fn_error "no acceptable C compiler found in \$PATH
2630 See \`config.log' for more details." "$LINENO" 5; }
2631
2632 # Provide some information about the compiler.
2633 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2634 set X $ac_compile
2635 ac_compiler=$2
2636 for ac_option in --version -v -V -qversion; do
2637 { { ac_try="$ac_compiler $ac_option >&5"
2638 case "(($ac_try" in
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2641 esac
2642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2643 $as_echo "$ac_try_echo"; } >&5
2644 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2645 ac_status=$?
2646 if test -s conftest.err; then
2647 sed '10a\
2648 ... rest of stderr output deleted ...
2649 10q' conftest.err >conftest.er1
2650 cat conftest.er1 >&5
2651 rm -f conftest.er1 conftest.err
2652 fi
2653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2654 test $ac_status = 0; }
2655 done
2656
2657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2658 /* end confdefs.h. */
2659 #include <stdio.h>
2660 int
2661 main ()
2662 {
2663 FILE *f = fopen ("conftest.out", "w");
2664 return ferror (f) || fclose (f) != 0;
2665
2666 ;
2667 return 0;
2668 }
2669 _ACEOF
2670 ac_clean_files_save=$ac_clean_files
2671 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2672 # Try to create an executable without -o first, disregard a.out.
2673 # It will help us diagnose broken compilers, and finding out an intuition
2674 # of exeext.
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2676 $as_echo_n "checking for C compiler default output file name... " >&6; }
2677 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2678
2679 # The possible output files:
2680 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2681
2682 ac_rmfiles=
2683 for ac_file in $ac_files
2684 do
2685 case $ac_file in
2686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2687 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2688 esac
2689 done
2690 rm -f $ac_rmfiles
2691
2692 if { { ac_try="$ac_link_default"
2693 case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2696 esac
2697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2698 $as_echo "$ac_try_echo"; } >&5
2699 (eval "$ac_link_default") 2>&5
2700 ac_status=$?
2701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2702 test $ac_status = 0; }; then :
2703 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2704 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2705 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2706 # so that the user can short-circuit this test for compilers unknown to
2707 # Autoconf.
2708 for ac_file in $ac_files ''
2709 do
2710 test -f "$ac_file" || continue
2711 case $ac_file in
2712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2713 ;;
2714 [ab].out )
2715 # We found the default executable, but exeext='' is most
2716 # certainly right.
2717 break;;
2718 *.* )
2719 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2720 then :; else
2721 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2722 fi
2723 # We set ac_cv_exeext here because the later test for it is not
2724 # safe: cross compilers may not add the suffix if given an `-o'
2725 # argument, so we may need to know it at that point already.
2726 # Even if this section looks crufty: it has the advantage of
2727 # actually working.
2728 break;;
2729 * )
2730 break;;
2731 esac
2732 done
2733 test "$ac_cv_exeext" = no && ac_cv_exeext=
2734
2735 else
2736 ac_file=''
2737 fi
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2739 $as_echo "$ac_file" >&6; }
2740 if test -z "$ac_file"; then :
2741 $as_echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2743
2744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2746 { as_fn_set_status 77
2747 as_fn_error "C compiler cannot create executables
2748 See \`config.log' for more details." "$LINENO" 5; }; }
2749 fi
2750 ac_exeext=$ac_cv_exeext
2751
2752 # Check that the compiler produces executables we can run. If not, either
2753 # the compiler is broken, or we cross compile.
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2755 $as_echo_n "checking whether the C compiler works... " >&6; }
2756 # If not cross compiling, check that we can run a simple program.
2757 if test "$cross_compiling" != yes; then
2758 if { ac_try='./$ac_file'
2759 { { case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2762 esac
2763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2764 $as_echo "$ac_try_echo"; } >&5
2765 (eval "$ac_try") 2>&5
2766 ac_status=$?
2767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2768 test $ac_status = 0; }; }; then
2769 cross_compiling=no
2770 else
2771 if test "$cross_compiling" = maybe; then
2772 cross_compiling=yes
2773 else
2774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2776 as_fn_error "cannot run C compiled programs.
2777 If you meant to cross compile, use \`--host'.
2778 See \`config.log' for more details." "$LINENO" 5; }
2779 fi
2780 fi
2781 fi
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2783 $as_echo "yes" >&6; }
2784
2785 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2786 ac_clean_files=$ac_clean_files_save
2787 # Check that the compiler produces executables we can run. If not, either
2788 # the compiler is broken, or we cross compile.
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2790 $as_echo_n "checking whether we are cross compiling... " >&6; }
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2792 $as_echo "$cross_compiling" >&6; }
2793
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2795 $as_echo_n "checking for suffix of executables... " >&6; }
2796 if { { ac_try="$ac_link"
2797 case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2800 esac
2801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2802 $as_echo "$ac_try_echo"; } >&5
2803 (eval "$ac_link") 2>&5
2804 ac_status=$?
2805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2806 test $ac_status = 0; }; then :
2807 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2808 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2809 # work properly (i.e., refer to `conftest.exe'), while it won't with
2810 # `rm'.
2811 for ac_file in conftest.exe conftest conftest.*; do
2812 test -f "$ac_file" || continue
2813 case $ac_file in
2814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2815 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2816 break;;
2817 * ) break;;
2818 esac
2819 done
2820 else
2821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2823 as_fn_error "cannot compute suffix of executables: cannot compile and link
2824 See \`config.log' for more details." "$LINENO" 5; }
2825 fi
2826 rm -f conftest$ac_cv_exeext
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2828 $as_echo "$ac_cv_exeext" >&6; }
2829
2830 rm -f conftest.$ac_ext
2831 EXEEXT=$ac_cv_exeext
2832 ac_exeext=$EXEEXT
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2834 $as_echo_n "checking for suffix of object files... " >&6; }
2835 if test "${ac_cv_objext+set}" = set; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839 /* end confdefs.h. */
2840
2841 int
2842 main ()
2843 {
2844
2845 ;
2846 return 0;
2847 }
2848 _ACEOF
2849 rm -f conftest.o conftest.obj
2850 if { { ac_try="$ac_compile"
2851 case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854 esac
2855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2856 $as_echo "$ac_try_echo"; } >&5
2857 (eval "$ac_compile") 2>&5
2858 ac_status=$?
2859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2860 test $ac_status = 0; }; then :
2861 for ac_file in conftest.o conftest.obj conftest.*; do
2862 test -f "$ac_file" || continue;
2863 case $ac_file in
2864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2865 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2866 break;;
2867 esac
2868 done
2869 else
2870 $as_echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2872
2873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2875 as_fn_error "cannot compute suffix of object files: cannot compile
2876 See \`config.log' for more details." "$LINENO" 5; }
2877 fi
2878 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2879 fi
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2881 $as_echo "$ac_cv_objext" >&6; }
2882 OBJEXT=$ac_cv_objext
2883 ac_objext=$OBJEXT
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2885 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2886 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2887 $as_echo_n "(cached) " >&6
2888 else
2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890 /* end confdefs.h. */
2891
2892 int
2893 main ()
2894 {
2895 #ifndef __GNUC__
2896 choke me
2897 #endif
2898
2899 ;
2900 return 0;
2901 }
2902 _ACEOF
2903 if ac_fn_c_try_compile "$LINENO"; then :
2904 ac_compiler_gnu=yes
2905 else
2906 ac_compiler_gnu=no
2907 fi
2908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2910
2911 fi
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2913 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2914 if test $ac_compiler_gnu = yes; then
2915 GCC=yes
2916 else
2917 GCC=
2918 fi
2919 ac_test_CFLAGS=${CFLAGS+set}
2920 ac_save_CFLAGS=$CFLAGS
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2922 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2923 if test "${ac_cv_prog_cc_g+set}" = set; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 ac_save_c_werror_flag=$ac_c_werror_flag
2927 ac_c_werror_flag=yes
2928 ac_cv_prog_cc_g=no
2929 CFLAGS="-g"
2930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2931 /* end confdefs.h. */
2932
2933 int
2934 main ()
2935 {
2936
2937 ;
2938 return 0;
2939 }
2940 _ACEOF
2941 if ac_fn_c_try_compile "$LINENO"; then :
2942 ac_cv_prog_cc_g=yes
2943 else
2944 CFLAGS=""
2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946 /* end confdefs.h. */
2947
2948 int
2949 main ()
2950 {
2951
2952 ;
2953 return 0;
2954 }
2955 _ACEOF
2956 if ac_fn_c_try_compile "$LINENO"; then :
2957
2958 else
2959 ac_c_werror_flag=$ac_save_c_werror_flag
2960 CFLAGS="-g"
2961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2962 /* end confdefs.h. */
2963
2964 int
2965 main ()
2966 {
2967
2968 ;
2969 return 0;
2970 }
2971 _ACEOF
2972 if ac_fn_c_try_compile "$LINENO"; then :
2973 ac_cv_prog_cc_g=yes
2974 fi
2975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 fi
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 fi
2979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980 ac_c_werror_flag=$ac_save_c_werror_flag
2981 fi
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2983 $as_echo "$ac_cv_prog_cc_g" >&6; }
2984 if test "$ac_test_CFLAGS" = set; then
2985 CFLAGS=$ac_save_CFLAGS
2986 elif test $ac_cv_prog_cc_g = yes; then
2987 if test "$GCC" = yes; then
2988 CFLAGS="-g -O2"
2989 else
2990 CFLAGS="-g"
2991 fi
2992 else
2993 if test "$GCC" = yes; then
2994 CFLAGS="-O2"
2995 else
2996 CFLAGS=
2997 fi
2998 fi
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3000 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3001 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3002 $as_echo_n "(cached) " >&6
3003 else
3004 ac_cv_prog_cc_c89=no
3005 ac_save_CC=$CC
3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007 /* end confdefs.h. */
3008 #include <stdarg.h>
3009 #include <stdio.h>
3010 #include <sys/types.h>
3011 #include <sys/stat.h>
3012 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3013 struct buf { int x; };
3014 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3015 static char *e (p, i)
3016 char **p;
3017 int i;
3018 {
3019 return p[i];
3020 }
3021 static char *f (char * (*g) (char **, int), char **p, ...)
3022 {
3023 char *s;
3024 va_list v;
3025 va_start (v,p);
3026 s = g (p, va_arg (v,int));
3027 va_end (v);
3028 return s;
3029 }
3030
3031 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3032 function prototypes and stuff, but not '\xHH' hex character constants.
3033 These don't provoke an error unfortunately, instead are silently treated
3034 as 'x'. The following induces an error, until -std is added to get
3035 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3036 array size at least. It's necessary to write '\x00'==0 to get something
3037 that's true only with -std. */
3038 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3039
3040 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3041 inside strings and character constants. */
3042 #define FOO(x) 'x'
3043 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3044
3045 int test (int i, double x);
3046 struct s1 {int (*f) (int a);};
3047 struct s2 {int (*f) (double a);};
3048 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3049 int argc;
3050 char **argv;
3051 int
3052 main ()
3053 {
3054 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3055 ;
3056 return 0;
3057 }
3058 _ACEOF
3059 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3060 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3061 do
3062 CC="$ac_save_CC $ac_arg"
3063 if ac_fn_c_try_compile "$LINENO"; then :
3064 ac_cv_prog_cc_c89=$ac_arg
3065 fi
3066 rm -f core conftest.err conftest.$ac_objext
3067 test "x$ac_cv_prog_cc_c89" != "xno" && break
3068 done
3069 rm -f conftest.$ac_ext
3070 CC=$ac_save_CC
3071
3072 fi
3073 # AC_CACHE_VAL
3074 case "x$ac_cv_prog_cc_c89" in
3075 x)
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3077 $as_echo "none needed" >&6; } ;;
3078 xno)
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3080 $as_echo "unsupported" >&6; } ;;
3081 *)
3082 CC="$CC $ac_cv_prog_cc_c89"
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3084 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3085 esac
3086 if test "x$ac_cv_prog_cc_c89" != xno; then :
3087
3088 fi
3089
3090 ac_ext=c
3091 ac_cpp='$CPP $CPPFLAGS'
3092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3095
3096 ac_ext=c
3097 ac_cpp='$CPP $CPPFLAGS'
3098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3102 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3103 # On Suns, sometimes $CPP names a directory.
3104 if test -n "$CPP" && test -d "$CPP"; then
3105 CPP=
3106 fi
3107 if test -z "$CPP"; then
3108 if test "${ac_cv_prog_CPP+set}" = set; then :
3109 $as_echo_n "(cached) " >&6
3110 else
3111 # Double quotes because CPP needs to be expanded
3112 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3113 do
3114 ac_preproc_ok=false
3115 for ac_c_preproc_warn_flag in '' yes
3116 do
3117 # Use a header file that comes with gcc, so configuring glibc
3118 # with a fresh cross-compiler works.
3119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3120 # <limits.h> exists even on freestanding compilers.
3121 # On the NeXT, cc -E runs the code through the compiler's parser,
3122 # not just through cpp. "Syntax error" is here to catch this case.
3123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3124 /* end confdefs.h. */
3125 #ifdef __STDC__
3126 # include <limits.h>
3127 #else
3128 # include <assert.h>
3129 #endif
3130 Syntax error
3131 _ACEOF
3132 if ac_fn_c_try_cpp "$LINENO"; then :
3133
3134 else
3135 # Broken: fails on valid input.
3136 continue
3137 fi
3138 rm -f conftest.err conftest.$ac_ext
3139
3140 # OK, works on sane cases. Now check whether nonexistent headers
3141 # can be detected and how.
3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143 /* end confdefs.h. */
3144 #include <ac_nonexistent.h>
3145 _ACEOF
3146 if ac_fn_c_try_cpp "$LINENO"; then :
3147 # Broken: success on invalid input.
3148 continue
3149 else
3150 # Passes both tests.
3151 ac_preproc_ok=:
3152 break
3153 fi
3154 rm -f conftest.err conftest.$ac_ext
3155
3156 done
3157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3158 rm -f conftest.err conftest.$ac_ext
3159 if $ac_preproc_ok; then :
3160 break
3161 fi
3162
3163 done
3164 ac_cv_prog_CPP=$CPP
3165
3166 fi
3167 CPP=$ac_cv_prog_CPP
3168 else
3169 ac_cv_prog_CPP=$CPP
3170 fi
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3172 $as_echo "$CPP" >&6; }
3173 ac_preproc_ok=false
3174 for ac_c_preproc_warn_flag in '' yes
3175 do
3176 # Use a header file that comes with gcc, so configuring glibc
3177 # with a fresh cross-compiler works.
3178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3179 # <limits.h> exists even on freestanding compilers.
3180 # On the NeXT, cc -E runs the code through the compiler's parser,
3181 # not just through cpp. "Syntax error" is here to catch this case.
3182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183 /* end confdefs.h. */
3184 #ifdef __STDC__
3185 # include <limits.h>
3186 #else
3187 # include <assert.h>
3188 #endif
3189 Syntax error
3190 _ACEOF
3191 if ac_fn_c_try_cpp "$LINENO"; then :
3192
3193 else
3194 # Broken: fails on valid input.
3195 continue
3196 fi
3197 rm -f conftest.err conftest.$ac_ext
3198
3199 # OK, works on sane cases. Now check whether nonexistent headers
3200 # can be detected and how.
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3203 #include <ac_nonexistent.h>
3204 _ACEOF
3205 if ac_fn_c_try_cpp "$LINENO"; then :
3206 # Broken: success on invalid input.
3207 continue
3208 else
3209 # Passes both tests.
3210 ac_preproc_ok=:
3211 break
3212 fi
3213 rm -f conftest.err conftest.$ac_ext
3214
3215 done
3216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3217 rm -f conftest.err conftest.$ac_ext
3218 if $ac_preproc_ok; then :
3219
3220 else
3221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3223 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3224 See \`config.log' for more details." "$LINENO" 5; }
3225 fi
3226
3227 ac_ext=c
3228 ac_cpp='$CPP $CPPFLAGS'
3229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232
3233 ac_ext=cpp
3234 ac_cpp='$CXXCPP $CPPFLAGS'
3235 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3238 if test -z "$CXX"; then
3239 if test -n "$CCC"; then
3240 CXX=$CCC
3241 else
3242 if test -n "$ac_tool_prefix"; then
3243 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3244 do
3245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if test "${ac_cv_prog_CXX+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test -n "$CXX"; then
3253 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266 done
3267 done
3268 IFS=$as_save_IFS
3269
3270 fi
3271 fi
3272 CXX=$ac_cv_prog_CXX
3273 if test -n "$CXX"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3275 $as_echo "$CXX" >&6; }
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3279 fi
3280
3281
3282 test -n "$CXX" && break
3283 done
3284 fi
3285 if test -z "$CXX"; then
3286 ac_ct_CXX=$CXX
3287 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3288 do
3289 # Extract the first word of "$ac_prog", so it can be a program name with args.
3290 set dummy $ac_prog; ac_word=$2
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3294 $as_echo_n "(cached) " >&6
3295 else
3296 if test -n "$ac_ct_CXX"; then
3297 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3306 ac_cv_prog_ac_ct_CXX="$ac_prog"
3307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3309 fi
3310 done
3311 done
3312 IFS=$as_save_IFS
3313
3314 fi
3315 fi
3316 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3317 if test -n "$ac_ct_CXX"; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3319 $as_echo "$ac_ct_CXX" >&6; }
3320 else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 $as_echo "no" >&6; }
3323 fi
3324
3325
3326 test -n "$ac_ct_CXX" && break
3327 done
3328
3329 if test "x$ac_ct_CXX" = x; then
3330 CXX="g++"
3331 else
3332 case $cross_compiling:$ac_tool_warned in
3333 yes:)
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3336 ac_tool_warned=yes ;;
3337 esac
3338 CXX=$ac_ct_CXX
3339 fi
3340 fi
3341
3342 fi
3343 fi
3344 # Provide some information about the compiler.
3345 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3346 set X $ac_compile
3347 ac_compiler=$2
3348 for ac_option in --version -v -V -qversion; do
3349 { { ac_try="$ac_compiler $ac_option >&5"
3350 case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353 esac
3354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3355 $as_echo "$ac_try_echo"; } >&5
3356 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3357 ac_status=$?
3358 if test -s conftest.err; then
3359 sed '10a\
3360 ... rest of stderr output deleted ...
3361 10q' conftest.err >conftest.er1
3362 cat conftest.er1 >&5
3363 rm -f conftest.er1 conftest.err
3364 fi
3365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366 test $ac_status = 0; }
3367 done
3368
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3370 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3371 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h. */
3376
3377 int
3378 main ()
3379 {
3380 #ifndef __GNUC__
3381 choke me
3382 #endif
3383
3384 ;
3385 return 0;
3386 }
3387 _ACEOF
3388 if ac_fn_cxx_try_compile "$LINENO"; then :
3389 ac_compiler_gnu=yes
3390 else
3391 ac_compiler_gnu=no
3392 fi
3393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3394 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3395
3396 fi
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3398 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3399 if test $ac_compiler_gnu = yes; then
3400 GXX=yes
3401 else
3402 GXX=
3403 fi
3404 ac_test_CXXFLAGS=${CXXFLAGS+set}
3405 ac_save_CXXFLAGS=$CXXFLAGS
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3407 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3408 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3409 $as_echo_n "(cached) " >&6
3410 else
3411 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3412 ac_cxx_werror_flag=yes
3413 ac_cv_prog_cxx_g=no
3414 CXXFLAGS="-g"
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3417
3418 int
3419 main ()
3420 {
3421
3422 ;
3423 return 0;
3424 }
3425 _ACEOF
3426 if ac_fn_cxx_try_compile "$LINENO"; then :
3427 ac_cv_prog_cxx_g=yes
3428 else
3429 CXXFLAGS=""
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h. */
3432
3433 int
3434 main ()
3435 {
3436
3437 ;
3438 return 0;
3439 }
3440 _ACEOF
3441 if ac_fn_cxx_try_compile "$LINENO"; then :
3442
3443 else
3444 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3445 CXXFLAGS="-g"
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3448
3449 int
3450 main ()
3451 {
3452
3453 ;
3454 return 0;
3455 }
3456 _ACEOF
3457 if ac_fn_cxx_try_compile "$LINENO"; then :
3458 ac_cv_prog_cxx_g=yes
3459 fi
3460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3461 fi
3462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463 fi
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3466 fi
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3468 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3469 if test "$ac_test_CXXFLAGS" = set; then
3470 CXXFLAGS=$ac_save_CXXFLAGS
3471 elif test $ac_cv_prog_cxx_g = yes; then
3472 if test "$GXX" = yes; then
3473 CXXFLAGS="-g -O2"
3474 else
3475 CXXFLAGS="-g"
3476 fi
3477 else
3478 if test "$GXX" = yes; then
3479 CXXFLAGS="-O2"
3480 else
3481 CXXFLAGS=
3482 fi
3483 fi
3484 ac_ext=c
3485 ac_cpp='$CPP $CPPFLAGS'
3486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3489
3490
3491 ac_aux_dir=
3492 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3493 for ac_t in install-sh install.sh shtool; do
3494 if test -f "$ac_dir/$ac_t"; then
3495 ac_aux_dir=$ac_dir
3496 ac_install_sh="$ac_aux_dir/$ac_t -c"
3497 break 2
3498 fi
3499 done
3500 done
3501 if test -z "$ac_aux_dir"; then
3502 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3503 fi
3504
3505 # These three variables are undocumented and unsupported,
3506 # and are intended to be withdrawn in a future Autoconf release.
3507 # They can cause serious problems if a builder's source tree is in a directory
3508 # whose full name contains unusual characters.
3509 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3510 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3511 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3512
3513
3514 # Expand $ac_aux_dir to an absolute path.
3515 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3516
3517
3518 if test -n "$ac_tool_prefix"; then
3519 for ac_prog in ar lib "link -lib"
3520 do
3521 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3522 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 $as_echo_n "checking for $ac_word... " >&6; }
3525 if test "${ac_cv_prog_AR+set}" = set; then :
3526 $as_echo_n "(cached) " >&6
3527 else
3528 if test -n "$AR"; then
3529 ac_cv_prog_AR="$AR" # Let the user override the test.
3530 else
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH
3533 do
3534 IFS=$as_save_IFS
3535 test -z "$as_dir" && as_dir=.
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3538 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 break 2
3541 fi
3542 done
3543 done
3544 IFS=$as_save_IFS
3545
3546 fi
3547 fi
3548 AR=$ac_cv_prog_AR
3549 if test -n "$AR"; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3551 $as_echo "$AR" >&6; }
3552 else
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3555 fi
3556
3557
3558 test -n "$AR" && break
3559 done
3560 fi
3561 if test -z "$AR"; then
3562 ac_ct_AR=$AR
3563 for ac_prog in ar lib "link -lib"
3564 do
3565 # Extract the first word of "$ac_prog", so it can be a program name with args.
3566 set dummy $ac_prog; ac_word=$2
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568 $as_echo_n "checking for $ac_word... " >&6; }
3569 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3570 $as_echo_n "(cached) " >&6
3571 else
3572 if test -n "$ac_ct_AR"; then
3573 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3574 else
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3577 do
3578 IFS=$as_save_IFS
3579 test -z "$as_dir" && as_dir=.
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3582 ac_cv_prog_ac_ct_AR="$ac_prog"
3583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3584 break 2
3585 fi
3586 done
3587 done
3588 IFS=$as_save_IFS
3589
3590 fi
3591 fi
3592 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3593 if test -n "$ac_ct_AR"; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3595 $as_echo "$ac_ct_AR" >&6; }
3596 else
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 $as_echo "no" >&6; }
3599 fi
3600
3601
3602 test -n "$ac_ct_AR" && break
3603 done
3604
3605 if test "x$ac_ct_AR" = x; then
3606 AR="false"
3607 else
3608 case $cross_compiling:$ac_tool_warned in
3609 yes:)
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3612 ac_tool_warned=yes ;;
3613 esac
3614 AR=$ac_ct_AR
3615 fi
3616 fi
3617
3618 : ${AR=ar}
3619
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3621 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
3622 if test "${am_cv_ar_interface+set}" = set; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 ac_ext=c
3626 ac_cpp='$CPP $CPPFLAGS'
3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630
3631 am_cv_ar_interface=ar
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3634 int some_variable = 0;
3635 _ACEOF
3636 if ac_fn_c_try_compile "$LINENO"; then :
3637 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3639 (eval $am_ar_try) 2>&5
3640 ac_status=$?
3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642 test $ac_status = 0; }
3643 if test "$ac_status" -eq 0; then
3644 am_cv_ar_interface=ar
3645 else
3646 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3648 (eval $am_ar_try) 2>&5
3649 ac_status=$?
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }
3652 if test "$ac_status" -eq 0; then
3653 am_cv_ar_interface=lib
3654 else
3655 am_cv_ar_interface=unknown
3656 fi
3657 fi
3658 rm -f conftest.lib libconftest.a
3659
3660 fi
3661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3662 ac_ext=c
3663 ac_cpp='$CPP $CPPFLAGS'
3664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667
3668 fi
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3670 $as_echo "$am_cv_ar_interface" >&6; }
3671
3672 case $am_cv_ar_interface in
3673 ar)
3674 ;;
3675 lib)
3676 # Microsoft lib, so override with the ar-lib wrapper script.
3677 # FIXME: It is wrong to rewrite AR.
3678 # But if we don't then we get into trouble of one sort or another.
3679 # A longer-term fix would be to have automake use am__AR in this case,
3680 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3681 # similar.
3682 AR="$am_aux_dir/ar-lib $AR"
3683 ;;
3684 unknown)
3685 as_fn_error "could not determine $AR interface" "$LINENO" 5
3686 ;;
3687 esac
3688
3689 if test -n "$ac_tool_prefix"; then
3690 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3691 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 if test -n "$RANLIB"; then
3698 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3702 do
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3710 fi
3711 done
3712 done
3713 IFS=$as_save_IFS
3714
3715 fi
3716 fi
3717 RANLIB=$ac_cv_prog_RANLIB
3718 if test -n "$RANLIB"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3720 $as_echo "$RANLIB" >&6; }
3721 else
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3724 fi
3725
3726
3727 fi
3728 if test -z "$ac_cv_prog_RANLIB"; then
3729 ac_ct_RANLIB=$RANLIB
3730 # Extract the first word of "ranlib", so it can be a program name with args.
3731 set dummy ranlib; ac_word=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 if test -n "$ac_ct_RANLIB"; then
3738 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747 ac_cv_prog_ac_ct_RANLIB="ranlib"
3748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 break 2
3750 fi
3751 done
3752 done
3753 IFS=$as_save_IFS
3754
3755 fi
3756 fi
3757 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3758 if test -n "$ac_ct_RANLIB"; then
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3760 $as_echo "$ac_ct_RANLIB" >&6; }
3761 else
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3764 fi
3765
3766 if test "x$ac_ct_RANLIB" = x; then
3767 RANLIB=":"
3768 else
3769 case $cross_compiling:$ac_tool_warned in
3770 yes:)
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3773 ac_tool_warned=yes ;;
3774 esac
3775 RANLIB=$ac_ct_RANLIB
3776 fi
3777 else
3778 RANLIB="$ac_cv_prog_RANLIB"
3779 fi
3780
3781 # Find a good install program. We prefer a C program (faster),
3782 # so one script is as good as another. But avoid the broken or
3783 # incompatible versions:
3784 # SysV /etc/install, /usr/sbin/install
3785 # SunOS /usr/etc/install
3786 # IRIX /sbin/install
3787 # AIX /bin/install
3788 # AmigaOS /C/install, which installs bootblocks on floppy discs
3789 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3790 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3791 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3792 # OS/2's system install, which has a completely different semantic
3793 # ./install, which can be erroneously created by make from ./install.sh.
3794 # Reject install programs that cannot install multiple files.
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3796 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3797 if test -z "$INSTALL"; then
3798 if test "${ac_cv_path_install+set}" = set; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH
3803 do
3804 IFS=$as_save_IFS
3805 test -z "$as_dir" && as_dir=.
3806 # Account for people who put trailing slashes in PATH elements.
3807 case $as_dir/ in #((
3808 ./ | .// | /[cC]/* | \
3809 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3810 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3811 /usr/ucb/* ) ;;
3812 *)
3813 # OSF1 and SCO ODT 3.0 have their own names for install.
3814 # Don't use installbsd from OSF since it installs stuff as root
3815 # by default.
3816 for ac_prog in ginstall scoinst install; do
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3819 if test $ac_prog = install &&
3820 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3821 # AIX install. It has an incompatible calling convention.
3822 :
3823 elif test $ac_prog = install &&
3824 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3825 # program-specific install script used by HP pwplus--don't use.
3826 :
3827 else
3828 rm -rf conftest.one conftest.two conftest.dir
3829 echo one > conftest.one
3830 echo two > conftest.two
3831 mkdir conftest.dir
3832 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3833 test -s conftest.one && test -s conftest.two &&
3834 test -s conftest.dir/conftest.one &&
3835 test -s conftest.dir/conftest.two
3836 then
3837 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3838 break 3
3839 fi
3840 fi
3841 fi
3842 done
3843 done
3844 ;;
3845 esac
3846
3847 done
3848 IFS=$as_save_IFS
3849
3850 rm -rf conftest.one conftest.two conftest.dir
3851
3852 fi
3853 if test "${ac_cv_path_install+set}" = set; then
3854 INSTALL=$ac_cv_path_install
3855 else
3856 # As a last resort, use the slow shell script. Don't cache a
3857 # value for INSTALL within a source directory, because that will
3858 # break other packages using the cache if that directory is
3859 # removed, or if the value is a relative name.
3860 INSTALL=$ac_install_sh
3861 fi
3862 fi
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3864 $as_echo "$INSTALL" >&6; }
3865
3866 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3867 # It thinks the first close brace ends the variable substitution.
3868 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3869
3870 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3871
3872 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3873
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3875 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3876 if test "${ac_cv_path_SED+set}" = set; then :
3877 $as_echo_n "(cached) " >&6
3878 else
3879 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3880 for ac_i in 1 2 3 4 5 6 7; do
3881 ac_script="$ac_script$as_nl$ac_script"
3882 done
3883 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3884 { ac_script=; unset ac_script;}
3885 if test -z "$SED"; then
3886 ac_path_SED_found=false
3887 # Loop through the user's path and test for each of PROGNAME-LIST
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH
3890 do
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_prog in sed gsed; do
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3896 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3897 # Check for GNU ac_path_SED and select it if it is found.
3898 # Check for GNU $ac_path_SED
3899 case `"$ac_path_SED" --version 2>&1` in
3900 *GNU*)
3901 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3902 *)
3903 ac_count=0
3904 $as_echo_n 0123456789 >"conftest.in"
3905 while :
3906 do
3907 cat "conftest.in" "conftest.in" >"conftest.tmp"
3908 mv "conftest.tmp" "conftest.in"
3909 cp "conftest.in" "conftest.nl"
3910 $as_echo '' >> "conftest.nl"
3911 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3913 as_fn_arith $ac_count + 1 && ac_count=$as_val
3914 if test $ac_count -gt ${ac_path_SED_max-0}; then
3915 # Best one so far, save it but keep looking for a better one
3916 ac_cv_path_SED="$ac_path_SED"
3917 ac_path_SED_max=$ac_count
3918 fi
3919 # 10*(2^10) chars as input seems more than enough
3920 test $ac_count -gt 10 && break
3921 done
3922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3923 esac
3924
3925 $ac_path_SED_found && break 3
3926 done
3927 done
3928 done
3929 IFS=$as_save_IFS
3930 if test -z "$ac_cv_path_SED"; then
3931 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3932 fi
3933 else
3934 ac_cv_path_SED=$SED
3935 fi
3936
3937 fi
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3939 $as_echo "$ac_cv_path_SED" >&6; }
3940 SED="$ac_cv_path_SED"
3941 rm -f conftest.sed
3942
3943
3944
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3946 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3947 if test "${ac_cv_path_GREP+set}" = set; then :
3948 $as_echo_n "(cached) " >&6
3949 else
3950 if test -z "$GREP"; then
3951 ac_path_GREP_found=false
3952 # Loop through the user's path and test for each of PROGNAME-LIST
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3955 do
3956 IFS=$as_save_IFS
3957 test -z "$as_dir" && as_dir=.
3958 for ac_prog in grep ggrep; do
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3961 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3962 # Check for GNU ac_path_GREP and select it if it is found.
3963 # Check for GNU $ac_path_GREP
3964 case `"$ac_path_GREP" --version 2>&1` in
3965 *GNU*)
3966 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3967 *)
3968 ac_count=0
3969 $as_echo_n 0123456789 >"conftest.in"
3970 while :
3971 do
3972 cat "conftest.in" "conftest.in" >"conftest.tmp"
3973 mv "conftest.tmp" "conftest.in"
3974 cp "conftest.in" "conftest.nl"
3975 $as_echo 'GREP' >> "conftest.nl"
3976 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3977 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3978 as_fn_arith $ac_count + 1 && ac_count=$as_val
3979 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3980 # Best one so far, save it but keep looking for a better one
3981 ac_cv_path_GREP="$ac_path_GREP"
3982 ac_path_GREP_max=$ac_count
3983 fi
3984 # 10*(2^10) chars as input seems more than enough
3985 test $ac_count -gt 10 && break
3986 done
3987 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3988 esac
3989
3990 $ac_path_GREP_found && break 3
3991 done
3992 done
3993 done
3994 IFS=$as_save_IFS
3995 if test -z "$ac_cv_path_GREP"; then
3996 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3997 fi
3998 else
3999 ac_cv_path_GREP=$GREP
4000 fi
4001
4002 fi
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4004 $as_echo "$ac_cv_path_GREP" >&6; }
4005 GREP="$ac_cv_path_GREP"
4006
4007
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4009 $as_echo_n "checking for egrep... " >&6; }
4010 if test "${ac_cv_path_EGREP+set}" = set; then :
4011 $as_echo_n "(cached) " >&6
4012 else
4013 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4014 then ac_cv_path_EGREP="$GREP -E"
4015 else
4016 if test -z "$EGREP"; then
4017 ac_path_EGREP_found=false
4018 # Loop through the user's path and test for each of PROGNAME-LIST
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4021 do
4022 IFS=$as_save_IFS
4023 test -z "$as_dir" && as_dir=.
4024 for ac_prog in egrep; do
4025 for ac_exec_ext in '' $ac_executable_extensions; do
4026 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4027 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4028 # Check for GNU ac_path_EGREP and select it if it is found.
4029 # Check for GNU $ac_path_EGREP
4030 case `"$ac_path_EGREP" --version 2>&1` in
4031 *GNU*)
4032 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4033 *)
4034 ac_count=0
4035 $as_echo_n 0123456789 >"conftest.in"
4036 while :
4037 do
4038 cat "conftest.in" "conftest.in" >"conftest.tmp"
4039 mv "conftest.tmp" "conftest.in"
4040 cp "conftest.in" "conftest.nl"
4041 $as_echo 'EGREP' >> "conftest.nl"
4042 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4044 as_fn_arith $ac_count + 1 && ac_count=$as_val
4045 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4046 # Best one so far, save it but keep looking for a better one
4047 ac_cv_path_EGREP="$ac_path_EGREP"
4048 ac_path_EGREP_max=$ac_count
4049 fi
4050 # 10*(2^10) chars as input seems more than enough
4051 test $ac_count -gt 10 && break
4052 done
4053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4054 esac
4055
4056 $ac_path_EGREP_found && break 3
4057 done
4058 done
4059 done
4060 IFS=$as_save_IFS
4061 if test -z "$ac_cv_path_EGREP"; then
4062 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4063 fi
4064 else
4065 ac_cv_path_EGREP=$EGREP
4066 fi
4067
4068 fi
4069 fi
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4071 $as_echo "$ac_cv_path_EGREP" >&6; }
4072 EGREP="$ac_cv_path_EGREP"
4073
4074
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4076 $as_echo_n "checking for ANSI C header files... " >&6; }
4077 if test "${ac_cv_header_stdc+set}" = set; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4082 #include <stdlib.h>
4083 #include <stdarg.h>
4084 #include <string.h>
4085 #include <float.h>
4086
4087 int
4088 main ()
4089 {
4090
4091 ;
4092 return 0;
4093 }
4094 _ACEOF
4095 if ac_fn_c_try_compile "$LINENO"; then :
4096 ac_cv_header_stdc=yes
4097 else
4098 ac_cv_header_stdc=no
4099 fi
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101
4102 if test $ac_cv_header_stdc = yes; then
4103 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106 #include <string.h>
4107
4108 _ACEOF
4109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4110 $EGREP "memchr" >/dev/null 2>&1; then :
4111
4112 else
4113 ac_cv_header_stdc=no
4114 fi
4115 rm -f conftest*
4116
4117 fi
4118
4119 if test $ac_cv_header_stdc = yes; then
4120 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123 #include <stdlib.h>
4124
4125 _ACEOF
4126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4127 $EGREP "free" >/dev/null 2>&1; then :
4128
4129 else
4130 ac_cv_header_stdc=no
4131 fi
4132 rm -f conftest*
4133
4134 fi
4135
4136 if test $ac_cv_header_stdc = yes; then
4137 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4138 if test "$cross_compiling" = yes; then :
4139 :
4140 else
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4143 #include <ctype.h>
4144 #include <stdlib.h>
4145 #if ((' ' & 0x0FF) == 0x020)
4146 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4147 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4148 #else
4149 # define ISLOWER(c) \
4150 (('a' <= (c) && (c) <= 'i') \
4151 || ('j' <= (c) && (c) <= 'r') \
4152 || ('s' <= (c) && (c) <= 'z'))
4153 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4154 #endif
4155
4156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4157 int
4158 main ()
4159 {
4160 int i;
4161 for (i = 0; i < 256; i++)
4162 if (XOR (islower (i), ISLOWER (i))
4163 || toupper (i) != TOUPPER (i))
4164 return 2;
4165 return 0;
4166 }
4167 _ACEOF
4168 if ac_fn_c_try_run "$LINENO"; then :
4169
4170 else
4171 ac_cv_header_stdc=no
4172 fi
4173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4174 conftest.$ac_objext conftest.beam conftest.$ac_ext
4175 fi
4176
4177 fi
4178 fi
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4180 $as_echo "$ac_cv_header_stdc" >&6; }
4181 if test $ac_cv_header_stdc = yes; then
4182
4183 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4184
4185 fi
4186
4187 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4188 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4189 inttypes.h stdint.h unistd.h
4190 do :
4191 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4192 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4193 "
4194 eval as_val=\$$as_ac_Header
4195 if test "x$as_val" = x""yes; then :
4196 cat >>confdefs.h <<_ACEOF
4197 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4198 _ACEOF
4199
4200 fi
4201
4202 done
4203
4204
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4206 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4207 if test "${ac_cv_c_bigendian+set}" = set; then :
4208 $as_echo_n "(cached) " >&6
4209 else
4210 ac_cv_c_bigendian=unknown
4211 # See if we're dealing with a universal compiler.
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214 #ifndef __APPLE_CC__
4215 not a universal capable compiler
4216 #endif
4217 typedef int dummy;
4218
4219 _ACEOF
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221
4222 # Check for potential -arch flags. It is not universal unless
4223 # there are at least two -arch flags with different values.
4224 ac_arch=
4225 ac_prev=
4226 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4227 if test -n "$ac_prev"; then
4228 case $ac_word in
4229 i?86 | x86_64 | ppc | ppc64)
4230 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4231 ac_arch=$ac_word
4232 else
4233 ac_cv_c_bigendian=universal
4234 break
4235 fi
4236 ;;
4237 esac
4238 ac_prev=
4239 elif test "x$ac_word" = "x-arch"; then
4240 ac_prev=arch
4241 fi
4242 done
4243 fi
4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245 if test $ac_cv_c_bigendian = unknown; then
4246 # See if sys/param.h defines the BYTE_ORDER macro.
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249 #include <sys/types.h>
4250 #include <sys/param.h>
4251
4252 int
4253 main ()
4254 {
4255 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4256 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4257 && LITTLE_ENDIAN)
4258 bogus endian macros
4259 #endif
4260
4261 ;
4262 return 0;
4263 }
4264 _ACEOF
4265 if ac_fn_c_try_compile "$LINENO"; then :
4266 # It does; now see whether it defined to BIG_ENDIAN or not.
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4269 #include <sys/types.h>
4270 #include <sys/param.h>
4271
4272 int
4273 main ()
4274 {
4275 #if BYTE_ORDER != BIG_ENDIAN
4276 not big endian
4277 #endif
4278
4279 ;
4280 return 0;
4281 }
4282 _ACEOF
4283 if ac_fn_c_try_compile "$LINENO"; then :
4284 ac_cv_c_bigendian=yes
4285 else
4286 ac_cv_c_bigendian=no
4287 fi
4288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289 fi
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 fi
4292 if test $ac_cv_c_bigendian = unknown; then
4293 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296 #include <limits.h>
4297
4298 int
4299 main ()
4300 {
4301 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4302 bogus endian macros
4303 #endif
4304
4305 ;
4306 return 0;
4307 }
4308 _ACEOF
4309 if ac_fn_c_try_compile "$LINENO"; then :
4310 # It does; now see whether it defined to _BIG_ENDIAN or not.
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4313 #include <limits.h>
4314
4315 int
4316 main ()
4317 {
4318 #ifndef _BIG_ENDIAN
4319 not big endian
4320 #endif
4321
4322 ;
4323 return 0;
4324 }
4325 _ACEOF
4326 if ac_fn_c_try_compile "$LINENO"; then :
4327 ac_cv_c_bigendian=yes
4328 else
4329 ac_cv_c_bigendian=no
4330 fi
4331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332 fi
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 fi
4335 if test $ac_cv_c_bigendian = unknown; then
4336 # Compile a test program.
4337 if test "$cross_compiling" = yes; then :
4338 # Try to guess by grepping values from an object file.
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341 short int ascii_mm[] =
4342 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4343 short int ascii_ii[] =
4344 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4345 int use_ascii (int i) {
4346 return ascii_mm[i] + ascii_ii[i];
4347 }
4348 short int ebcdic_ii[] =
4349 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4350 short int ebcdic_mm[] =
4351 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4352 int use_ebcdic (int i) {
4353 return ebcdic_mm[i] + ebcdic_ii[i];
4354 }
4355 extern int foo;
4356
4357 int
4358 main ()
4359 {
4360 return use_ascii (foo) == use_ebcdic (foo);
4361 ;
4362 return 0;
4363 }
4364 _ACEOF
4365 if ac_fn_c_try_compile "$LINENO"; then :
4366 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4367 ac_cv_c_bigendian=yes
4368 fi
4369 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4370 if test "$ac_cv_c_bigendian" = unknown; then
4371 ac_cv_c_bigendian=no
4372 else
4373 # finding both strings is unlikely to happen, but who knows?
4374 ac_cv_c_bigendian=unknown
4375 fi
4376 fi
4377 fi
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 else
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4382 $ac_includes_default
4383 int
4384 main ()
4385 {
4386
4387 /* Are we little or big endian? From Harbison&Steele. */
4388 union
4389 {
4390 long int l;
4391 char c[sizeof (long int)];
4392 } u;
4393 u.l = 1;
4394 return u.c[sizeof (long int) - 1] == 1;
4395
4396 ;
4397 return 0;
4398 }
4399 _ACEOF
4400 if ac_fn_c_try_run "$LINENO"; then :
4401 ac_cv_c_bigendian=no
4402 else
4403 ac_cv_c_bigendian=yes
4404 fi
4405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4406 conftest.$ac_objext conftest.beam conftest.$ac_ext
4407 fi
4408
4409 fi
4410 fi
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4412 $as_echo "$ac_cv_c_bigendian" >&6; }
4413 case $ac_cv_c_bigendian in #(
4414 yes)
4415 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4416 ;; #(
4417 no)
4418 ;; #(
4419 universal)
4420
4421 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4422
4423 ;; #(
4424 *)
4425 as_fn_error "unknown endianness
4426 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4427 esac
4428
4429
4430 # Make sure we can run config.sub.
4431 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4432 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4433
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4435 $as_echo_n "checking build system type... " >&6; }
4436 if test "${ac_cv_build+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 ac_build_alias=$build_alias
4440 test "x$ac_build_alias" = x &&
4441 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4442 test "x$ac_build_alias" = x &&
4443 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4444 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4445 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4446
4447 fi
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4449 $as_echo "$ac_cv_build" >&6; }
4450 case $ac_cv_build in
4451 *-*-*) ;;
4452 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4453 esac
4454 build=$ac_cv_build
4455 ac_save_IFS=$IFS; IFS='-'
4456 set x $ac_cv_build
4457 shift
4458 build_cpu=$1
4459 build_vendor=$2
4460 shift; shift
4461 # Remember, the first character of IFS is used to create $*,
4462 # except with old shells:
4463 build_os=$*
4464 IFS=$ac_save_IFS
4465 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4466
4467
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4469 $as_echo_n "checking host system type... " >&6; }
4470 if test "${ac_cv_host+set}" = set; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 if test "x$host_alias" = x; then
4474 ac_cv_host=$ac_cv_build
4475 else
4476 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4477 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4478 fi
4479
4480 fi
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4482 $as_echo "$ac_cv_host" >&6; }
4483 case $ac_cv_host in
4484 *-*-*) ;;
4485 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4486 esac
4487 host=$ac_cv_host
4488 ac_save_IFS=$IFS; IFS='-'
4489 set x $ac_cv_host
4490 shift
4491 host_cpu=$1
4492 host_vendor=$2
4493 shift; shift
4494 # Remember, the first character of IFS is used to create $*,
4495 # except with old shells:
4496 host_os=$*
4497 IFS=$ac_save_IFS
4498 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4499
4500
4501
4502 case $host_cpu in
4503 i*86 | x86_64 )
4504
4505 $as_echo "#define CPU_CISC 1" >>confdefs.h
4506
4507
4508 $as_echo "#define HAVE_X86 1" >>confdefs.h
4509
4510 ;;
4511 * )
4512
4513 $as_echo "#define CPU_RISC 1" >>confdefs.h
4514
4515 ;;
4516 esac
4517
4518 case $host_os in
4519 *cygwin*|*mingw* )
4520 EXE=.exe
4521 ;;
4522 * )
4523 EXE=""
4524 ;;
4525 esac
4526 # define executable suffix; this is needed for `make clean'
4527
4528 supported_cflags=""
4529 if test "$EMPTY_CFLAGS" = "no"; then
4530 supported_cflags="$CFLAGS"
4531 fi
4532
4533 WERROR=""
4534 for w in -Werror -errwarn; do
4535 if test "x$WERROR" = "x"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $w" >&5
4537 $as_echo_n "checking whether ${CC-c} accepts $w... " >&6; }
4538 save_cflags="$CFLAGS"
4539 if test "x$CFLAGS" = "x"; then :
4540 CFLAGS="$w"
4541 else
4542 CFLAGS="$CFLAGS $w"
4543 fi
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546 int main(void) { return 0; }
4547 _ACEOF
4548 if ac_fn_c_try_compile "$LINENO"; then :
4549 WERROR="$w"
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4551 $as_echo "yes" >&6; }
4552 else
4553 CFLAGS="$save_cflags"
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 $as_echo "no" >&6; }
4556 fi
4557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558 fi
4559 done
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts -fPIC" >&5
4562 $as_echo_n "checking whether ${CC-c} accepts -fPIC... " >&6; }
4563 save_cflags="$CFLAGS"
4564 if test "x$CFLAGS" = "x"; then :
4565 CFLAGS="-fPIC"
4566 else
4567 CFLAGS="$CFLAGS -fPIC"
4568 fi
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4571 int main(void) { return 0; }
4572 _ACEOF
4573 if ac_fn_c_try_compile "$LINENO"; then :
4574 if test "x$supported_cflags" = "x"; then :
4575 supported_cflags="-fPIC"
4576 else
4577 supported_cflags="$supported_cflags -fPIC"
4578 fi
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4580 $as_echo "yes" >&6; }
4581 else
4582 CFLAGS="$save_cflags"
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 $as_echo "no" >&6; }
4585 fi
4586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4587
4588 if test "$EMPTY_CFLAGS" = "yes"; then
4589 for f in -Wall -pedantic -Wstrict-prototypes; do
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4591 $as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
4592 save_cflags="$CFLAGS"
4593 if test "x$CFLAGS" = "x"; then :
4594 CFLAGS="$f"
4595 else
4596 CFLAGS="$CFLAGS $f"
4597 fi
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4600 int main(void) { return 0; }
4601 _ACEOF
4602 if ac_fn_c_try_compile "$LINENO"; then :
4603 if test "x$supported_cflags" = "x"; then :
4604 supported_cflags="$f"
4605 else
4606 supported_cflags="$supported_cflags $f"
4607 fi
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4609 $as_echo "yes" >&6; }
4610 else
4611 CFLAGS="$save_cflags"
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4614 fi
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 done
4617
4618 OOPT=""
4619 for f in -O3; do
4620 if test "x$OOPT" = "x"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4622 $as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
4623 save_cflags="$CFLAGS"
4624 if test "x$CFLAGS" = "x"; then :
4625 CFLAGS="$f"
4626 else
4627 CFLAGS="$CFLAGS $f"
4628 fi
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4631 int main(void) { return 0; }
4632 _ACEOF
4633 if ac_fn_c_try_compile "$LINENO"; then :
4634 if test "x$supported_cflags" = "x"; then :
4635 supported_cflags="$f"
4636 else
4637 supported_cflags="$supported_cflags $f"
4638 fi
4639 OOPT="$f"
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4641 $as_echo "yes" >&6; }
4642 else
4643 CFLAGS="$save_cflags"
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645 $as_echo "no" >&6; }
4646 fi
4647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648 fi
4649 done
4650
4651 for f in -fexpensive-optimizations -funroll-loops; do
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4653 $as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
4654 save_cflags="$CFLAGS"
4655 if test "x$CFLAGS" = "x"; then :
4656 CFLAGS="$f"
4657 else
4658 CFLAGS="$CFLAGS $f"
4659 fi
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662 int main(void) { return 0; }
4663 _ACEOF
4664 if ac_fn_c_try_compile "$LINENO"; then :
4665 if test "x$supported_cflags" = "x"; then :
4666 supported_cflags="$f"
4667 else
4668 supported_cflags="$supported_cflags $f"
4669 fi
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4671 $as_echo "yes" >&6; }
4672 else
4673 CFLAGS="$save_cflags"
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4676 fi
4677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678 done
4679 fi
4680
4681 for f in -Wno-language-extension-token; do
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4683 $as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
4684 save_cflags="$CFLAGS"
4685 testf=$(echo "$f" | $SED 's|-Wno-\(.*\)|-W\1|g')
4686 if test "x$CFLAGS" = "x"; then :
4687 CFLAGS="$testf"
4688 else
4689 CFLAGS="$CFLAGS $testf"
4690 fi
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4693 int main(void) { return 0; }
4694 _ACEOF
4695 if ac_fn_c_try_compile "$LINENO"; then :
4696 if test "x$supported_cflags" = "x"; then :
4697 supported_cflags="$f"
4698 else
4699 supported_cflags="$supported_cflags $f"
4700 fi
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4702 $as_echo "yes" >&6; }
4703 else
4704 CFLAGS="$save_cflags"
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 $as_echo "no" >&6; }
4707 fi
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 done
4710
4711 CFLAGS="$supported_cflags"
4712
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4714 $as_echo_n "checking for ANSI C header files... " >&6; }
4715 if test "${ac_cv_header_stdc+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720 #include <stdlib.h>
4721 #include <stdarg.h>
4722 #include <string.h>
4723 #include <float.h>
4724
4725 int
4726 main ()
4727 {
4728
4729 ;
4730 return 0;
4731 }
4732 _ACEOF
4733 if ac_fn_c_try_compile "$LINENO"; then :
4734 ac_cv_header_stdc=yes
4735 else
4736 ac_cv_header_stdc=no
4737 fi
4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739
4740 if test $ac_cv_header_stdc = yes; then
4741 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4744 #include <string.h>
4745
4746 _ACEOF
4747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4748 $EGREP "memchr" >/dev/null 2>&1; then :
4749
4750 else
4751 ac_cv_header_stdc=no
4752 fi
4753 rm -f conftest*
4754
4755 fi
4756
4757 if test $ac_cv_header_stdc = yes; then
4758 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761 #include <stdlib.h>
4762
4763 _ACEOF
4764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4765 $EGREP "free" >/dev/null 2>&1; then :
4766
4767 else
4768 ac_cv_header_stdc=no
4769 fi
4770 rm -f conftest*
4771
4772 fi
4773
4774 if test $ac_cv_header_stdc = yes; then
4775 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4776 if test "$cross_compiling" = yes; then :
4777 :
4778 else
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4781 #include <ctype.h>
4782 #include <stdlib.h>
4783 #if ((' ' & 0x0FF) == 0x020)
4784 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4785 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4786 #else
4787 # define ISLOWER(c) \
4788 (('a' <= (c) && (c) <= 'i') \
4789 || ('j' <= (c) && (c) <= 'r') \
4790 || ('s' <= (c) && (c) <= 'z'))
4791 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4792 #endif
4793
4794 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4795 int
4796 main ()
4797 {
4798 int i;
4799 for (i = 0; i < 256; i++)
4800 if (XOR (islower (i), ISLOWER (i))
4801 || toupper (i) != TOUPPER (i))
4802 return 2;
4803 return 0;
4804 }
4805 _ACEOF
4806 if ac_fn_c_try_run "$LINENO"; then :
4807
4808 else
4809 ac_cv_header_stdc=no
4810 fi
4811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4812 conftest.$ac_objext conftest.beam conftest.$ac_ext
4813 fi
4814
4815 fi
4816 fi
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4818 $as_echo "$ac_cv_header_stdc" >&6; }
4819 if test $ac_cv_header_stdc = yes; then
4820
4821 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4822
4823 fi
4824
4825 for ac_header in unistd.h byteswap.h stdint.h sys/uio.h inttypes.h sys/types.h machine/types.h sys/int_types.h
4826 do :
4827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4828 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4829 "
4830 eval as_val=\$$as_ac_Header
4831 if test "x$as_val" = x""yes; then :
4832 cat >>confdefs.h <<_ACEOF
4833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4834 _ACEOF
4835
4836 fi
4837
4838 done
4839
4840
4841 for ac_header in sys/socket.h netinet/in.h arpa/inet.h
4842 do :
4843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4844 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4845 "
4846 eval as_val=\$$as_ac_Header
4847 if test "x$as_val" = x""yes; then :
4848 cat >>confdefs.h <<_ACEOF
4849 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4850 _ACEOF
4851
4852 fi
4853
4854 done
4855
4856 for ac_header in windows.h
4857 do :
4858 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4859 "
4860 if test "x$ac_cv_header_windows_h" = x""yes; then :
4861 cat >>confdefs.h <<_ACEOF
4862 #define HAVE_WINDOWS_H 1
4863 _ACEOF
4864 for ac_header in winsock2.h
4865 do :
4866 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default
4867 "
4868 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
4869 cat >>confdefs.h <<_ACEOF
4870 #define HAVE_WINSOCK2_H 1
4871 _ACEOF
4872
4873 fi
4874
4875 done
4876
4877 fi
4878
4879 done
4880
4881
4882 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
4883 if test "x$ac_cv_type_int8_t" = x""yes; then :
4884
4885 cat >>confdefs.h <<_ACEOF
4886 #define HAVE_INT8_T 1
4887 _ACEOF
4888
4889
4890 fi
4891 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4892 if test "x$ac_cv_type_uint8_t" = x""yes; then :
4893
4894 cat >>confdefs.h <<_ACEOF
4895 #define HAVE_UINT8_T 1
4896 _ACEOF
4897
4898
4899 fi
4900 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4901 if test "x$ac_cv_type_int16_t" = x""yes; then :
4902
4903 cat >>confdefs.h <<_ACEOF
4904 #define HAVE_INT16_T 1
4905 _ACEOF
4906
4907
4908 fi
4909 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4910 if test "x$ac_cv_type_uint16_t" = x""yes; then :
4911
4912 cat >>confdefs.h <<_ACEOF
4913 #define HAVE_UINT16_T 1
4914 _ACEOF
4915
4916
4917 fi
4918 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
4919 if test "x$ac_cv_type_int32_t" = x""yes; then :
4920
4921 cat >>confdefs.h <<_ACEOF
4922 #define HAVE_INT32_T 1
4923 _ACEOF
4924
4925
4926 fi
4927 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4928 if test "x$ac_cv_type_uint32_t" = x""yes; then :
4929
4930 cat >>confdefs.h <<_ACEOF
4931 #define HAVE_UINT32_T 1
4932 _ACEOF
4933
4934
4935 fi
4936 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4937 if test "x$ac_cv_type_uint64_t" = x""yes; then :
4938
4939 cat >>confdefs.h <<_ACEOF
4940 #define HAVE_UINT64_T 1
4941 _ACEOF
4942
4943
4944 fi
4945
4946 # The cast to long int works around a bug in the HP C Compiler
4947 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4948 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4949 # This bug is HP SR number 8606223364.
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4951 $as_echo_n "checking size of unsigned long... " >&6; }
4952 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
4956
4957 else
4958 if test "$ac_cv_type_unsigned_long" = yes; then
4959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4961 { as_fn_set_status 77
4962 as_fn_error "cannot compute sizeof (unsigned long)
4963 See \`config.log' for more details." "$LINENO" 5; }; }
4964 else
4965 ac_cv_sizeof_unsigned_long=0
4966 fi
4967 fi
4968
4969 fi
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4971 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
4972
4973
4974
4975 cat >>confdefs.h <<_ACEOF
4976 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
4977 _ACEOF
4978
4979
4980 # The cast to long int works around a bug in the HP C Compiler
4981 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4982 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4983 # This bug is HP SR number 8606223364.
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
4985 $as_echo_n "checking size of unsigned long long... " >&6; }
4986 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
4990
4991 else
4992 if test "$ac_cv_type_unsigned_long_long" = yes; then
4993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4995 { as_fn_set_status 77
4996 as_fn_error "cannot compute sizeof (unsigned long long)
4997 See \`config.log' for more details." "$LINENO" 5; }; }
4998 else
4999 ac_cv_sizeof_unsigned_long_long=0
5000 fi
5001 fi
5002
5003 fi
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
5005 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
5006
5007
5008
5009 cat >>confdefs.h <<_ACEOF
5010 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
5011 _ACEOF
5012
5013
5014
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5016 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5017 if test "${ac_cv_c_const+set}" = set; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021 /* end confdefs.h. */
5022
5023 int
5024 main ()
5025 {
5026 /* FIXME: Include the comments suggested by Paul. */
5027 #ifndef __cplusplus
5028 /* Ultrix mips cc rejects this. */
5029 typedef int charset[2];
5030 const charset cs;
5031 /* SunOS 4.1.1 cc rejects this. */
5032 char const *const *pcpcc;
5033 char **ppc;
5034 /* NEC SVR4.0.2 mips cc rejects this. */
5035 struct point {int x, y;};
5036 static struct point const zero = {0,0};
5037 /* AIX XL C 1.02.0.0 rejects this.
5038 It does not let you subtract one const X* pointer from another in
5039 an arm of an if-expression whose if-part is not a constant
5040 expression */
5041 const char *g = "string";
5042 pcpcc = &g + (g ? g-g : 0);
5043 /* HPUX 7.0 cc rejects these. */
5044 ++pcpcc;
5045 ppc = (char**) pcpcc;
5046 pcpcc = (char const *const *) ppc;
5047 { /* SCO 3.2v4 cc rejects this. */
5048 char *t;
5049 char const *s = 0 ? (char *) 0 : (char const *) 0;
5050
5051 *t++ = 0;
5052 if (s) return 0;
5053 }
5054 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5055 int x[] = {25, 17};
5056 const int *foo = &x[0];
5057 ++foo;
5058 }
5059 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5060 typedef const int *iptr;
5061 iptr p = 0;
5062 ++p;
5063 }
5064 { /* AIX XL C 1.02.0.0 rejects this saying
5065 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5066 struct s { int j; const int *ap[3]; };
5067 struct s *b; b->j = 5;
5068 }
5069 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5070 const int foo = 10;
5071 if (!foo) return 0;
5072 }
5073 return !cs[0] && !zero.x;
5074 #endif
5075
5076 ;
5077 return 0;
5078 }
5079 _ACEOF
5080 if ac_fn_c_try_compile "$LINENO"; then :
5081 ac_cv_c_const=yes
5082 else
5083 ac_cv_c_const=no
5084 fi
5085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 fi
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5088 $as_echo "$ac_cv_c_const" >&6; }
5089 if test $ac_cv_c_const = no; then
5090
5091 $as_echo "#define const /**/" >>confdefs.h
5092
5093 fi
5094
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5096 $as_echo_n "checking for inline... " >&6; }
5097 if test "${ac_cv_c_inline+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 ac_cv_c_inline=no
5101 for ac_kw in inline __inline__ __inline; do
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103 /* end confdefs.h. */
5104 #ifndef __cplusplus
5105 typedef int foo_t;
5106 static $ac_kw foo_t static_foo () {return 0; }
5107 $ac_kw foo_t foo () {return 0; }
5108 #endif
5109
5110 _ACEOF
5111 if ac_fn_c_try_compile "$LINENO"; then :
5112 ac_cv_c_inline=$ac_kw
5113 fi
5114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115 test "$ac_cv_c_inline" != no && break
5116 done
5117
5118 fi
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5120 $as_echo "$ac_cv_c_inline" >&6; }
5121
5122 case $ac_cv_c_inline in
5123 inline | yes) ;;
5124 *)
5125 case $ac_cv_c_inline in
5126 no) ac_val=;;
5127 *) ac_val=$ac_cv_c_inline;;
5128 esac
5129 cat >>confdefs.h <<_ACEOF
5130 #ifndef __cplusplus
5131 #define inline $ac_val
5132 #endif
5133 _ACEOF
5134 ;;
5135 esac
5136
5137 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5138 if test "x$ac_cv_type_size_t" = x""yes; then :
5139
5140 else
5141
5142 cat >>confdefs.h <<_ACEOF
5143 #define size_t unsigned int
5144 _ACEOF
5145
5146 fi
5147
5148
5149 for ac_func in socket inet_aton inet_pton usleep sigaction
5150 do :
5151 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5152 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5153 eval as_val=\$$as_ac_var
5154 if test "x$as_val" = x""yes; then :
5155 cat >>confdefs.h <<_ACEOF
5156 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5157 _ACEOF
5158
5159 fi
5160 done
5161
5162
5163 if test "x$ac_cv_func_socket" = "xno"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5165 $as_echo_n "checking for socket in -lsocket... " >&6; }
5166 if test "${ac_cv_lib_socket_socket+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 ac_check_lib_save_LIBS=$LIBS
5170 LIBS="-lsocket $LIBS"
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5173
5174 /* Override any GCC internal prototype to avoid an error.
5175 Use char because int might match the return type of a GCC
5176 builtin and then its argument prototype would still apply. */
5177 #ifdef __cplusplus
5178 extern "C"
5179 #endif
5180 char socket ();
5181 int
5182 main ()
5183 {
5184 return socket ();
5185 ;
5186 return 0;
5187 }
5188 _ACEOF
5189 if ac_fn_c_try_link "$LINENO"; then :
5190 ac_cv_lib_socket_socket=yes
5191 else
5192 ac_cv_lib_socket_socket=no
5193 fi
5194 rm -f core conftest.err conftest.$ac_objext \
5195 conftest$ac_exeext conftest.$ac_ext
5196 LIBS=$ac_check_lib_save_LIBS
5197 fi
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5199 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5200 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
5201 cat >>confdefs.h <<_ACEOF
5202 #define HAVE_LIBSOCKET 1
5203 _ACEOF
5204
5205 LIBS="-lsocket $LIBS"
5206
5207 fi
5208
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
5210 $as_echo_n "checking for socket in -lwsock32... " >&6; }
5211 SAVELIBS="$LIBS"
5212 LIBS="$LIBS -lwsock32"
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215
5216 #include <winsock2.h>
5217 int main(void)
5218 {
5219 int fd = socket(0, 0, 0);
5220 if (fd < 0)
5221 return -1;
5222 else
5223 return 0;
5224 }
5225
5226 _ACEOF
5227 if ac_fn_c_try_link "$LINENO"; then :
5228 ac_cv_func_socket=yes
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5230 $as_echo "yes" >&6; }
5231 else
5232 LIBS="$SAVELIBS"
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5235 fi
5236 rm -f core conftest.err conftest.$ac_objext \
5237 conftest$ac_exeext conftest.$ac_ext
5238 fi
5239
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug logging in all modules" >&5
5241 $as_echo_n "checking whether to enable debug logging in all modules... " >&6; }
5242 # Check whether --enable-debug-logging was given.
5243 if test "${enable_debug_logging+set}" = set; then :
5244 enableval=$enable_debug_logging;
5245 else
5246 enable_debug_logging=no
5247 fi
5248
5249 if test "$enable_debug_logging" = "yes"; then
5250
5251 $as_echo "#define ENABLE_DEBUG_LOGGING 1" >>confdefs.h
5252
5253 fi
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_logging" >&5
5255 $as_echo "$enable_debug_logging" >&6; }
5256
5257
5258
5259
5260
5261
5262
5263
5264 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5265 if test -n "$ac_tool_prefix"; then
5266 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5267 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273 case $PKG_CONFIG in
5274 [\\/]* | ?:[\\/]*)
5275 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5276 ;;
5277 *)
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5280 do
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5288 fi
5289 done
5290 done
5291 IFS=$as_save_IFS
5292
5293 ;;
5294 esac
5295 fi
5296 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5297 if test -n "$PKG_CONFIG"; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5299 $as_echo "$PKG_CONFIG" >&6; }
5300 else
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5303 fi
5304
5305
5306 fi
5307 if test -z "$ac_cv_path_PKG_CONFIG"; then
5308 ac_pt_PKG_CONFIG=$PKG_CONFIG
5309 # Extract the first word of "pkg-config", so it can be a program name with args.
5310 set dummy pkg-config; ac_word=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 case $ac_pt_PKG_CONFIG in
5317 [\\/]* | ?:[\\/]*)
5318 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5319 ;;
5320 *)
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5323 do
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5328 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 break 2
5331 fi
5332 done
5333 done
5334 IFS=$as_save_IFS
5335
5336 ;;
5337 esac
5338 fi
5339 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5340 if test -n "$ac_pt_PKG_CONFIG"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5342 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5343 else
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5346 fi
5347
5348 if test "x$ac_pt_PKG_CONFIG" = x; then
5349 PKG_CONFIG=""
5350 else
5351 case $cross_compiling:$ac_tool_warned in
5352 yes:)
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5355 ac_tool_warned=yes ;;
5356 esac
5357 PKG_CONFIG=$ac_pt_PKG_CONFIG
5358 fi
5359 else
5360 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5361 fi
5362
5363 fi
5364 if test -n "$PKG_CONFIG"; then
5365 _pkg_min_version=0.9.0
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5367 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5368 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5370 $as_echo "yes" >&6; }
5371 else
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5374 PKG_CONFIG=""
5375 fi
5376 fi
5377 if test "x$PKG_CONFIG" != "x"; then :
5378 PKG_CONFIG="$PKG_CONFIG --static"
5379 fi
5380
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
5382 $as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
5383 # Check whether --enable-openssl was given.
5384 if test "${enable_openssl+set}" = set; then :
5385 enableval=$enable_openssl;
5386 else
5387 enable_openssl=no
5388 fi
5389
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
5391 $as_echo "$enable_openssl" >&6; }
5392
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage NSS crypto" >&5
5394 $as_echo_n "checking whether to leverage NSS crypto... " >&6; }
5395 # Check whether --enable-nss was given.
5396 if test "${enable_nss+set}" = set; then :
5397 enableval=$enable_nss;
5398 else
5399 enable_nss=no
5400 fi
5401
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nss" >&5
5403 $as_echo "$enable_nss" >&6; }
5404
5405 if test "$enable_openssl" = "yes"; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user specified OpenSSL directory" >&5
5407 $as_echo_n "checking for user specified OpenSSL directory... " >&6; }
5408
5409 # Check whether --with-openssl-dir was given.
5410 if test "${with_openssl_dir+set}" = set; then :
5411 withval=$with_openssl_dir; if test "x$PKG_CONFIG" != "x" && test -f $with_openssl_dir/lib/pkgconfig/libcrypto.pc; then
5412 if test "x$PKG_CONFIG_PATH" = "x"; then
5413 export PKG_CONFIG_PATH="$with_openssl_dir/lib/pkgconfig"
5414 else
5415 export PKG_CONFIG_PATH="$with_openssl_dir/lib/pkgconfig:$PKG_CONFIG_PATH"
5416 fi
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl_dir" >&5
5418 $as_echo "$with_openssl_dir" >&6; }
5419 elif test -d $with_openssl_dir/lib; then
5420 CFLAGS="$CFLAGS -I$with_openssl_dir/include"
5421 if test "x$LDFLAGS" = "x"; then
5422 LDFLAGS="-L$with_openssl_dir/lib"
5423 else
5424 LDFLAGS="$LDFLAGS -L$with_openssl_dir/lib"
5425 fi
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl_dir" >&5
5427 $as_echo "$with_openssl_dir" >&6; }
5428 else
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
5430 $as_echo "invalid" >&6; }
5431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5433 as_fn_error "Invalid OpenSSL location: $with_openssl_dir
5434 See \`config.log' for more details." "$LINENO" 5; }
5435 fi
5436 else
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5439 fi
5440
5441
5442 if test "x$PKG_CONFIG" != "x"; then
5443
5444 pkg_failed=no
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcrypto >= 1.1.0" >&5
5446 $as_echo_n "checking for libcrypto >= 1.1.0... " >&6; }
5447
5448 if test -n "$crypto_CFLAGS"; then
5449 pkg_cv_crypto_CFLAGS="$crypto_CFLAGS"
5450 elif test -n "$PKG_CONFIG"; then
5451 if test -n "$PKG_CONFIG" && \
5452 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.1.0\""; } >&5
5453 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.1.0") 2>&5
5454 ac_status=$?
5455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5456 test $ac_status = 0; }; then
5457 pkg_cv_crypto_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1.1.0" 2>/dev/null`
5458 test "x$?" != "x0" && pkg_failed=yes
5459 else
5460 pkg_failed=yes
5461 fi
5462 else
5463 pkg_failed=untried
5464 fi
5465 if test -n "$crypto_LIBS"; then
5466 pkg_cv_crypto_LIBS="$crypto_LIBS"
5467 elif test -n "$PKG_CONFIG"; then
5468 if test -n "$PKG_CONFIG" && \
5469 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.1.0\""; } >&5
5470 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.1.0") 2>&5
5471 ac_status=$?
5472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5473 test $ac_status = 0; }; then
5474 pkg_cv_crypto_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1.1.0" 2>/dev/null`
5475 test "x$?" != "x0" && pkg_failed=yes
5476 else
5477 pkg_failed=yes
5478 fi
5479 else
5480 pkg_failed=untried
5481 fi
5482
5483
5484
5485 if test $pkg_failed = yes; then
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488
5489 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5490 _pkg_short_errors_supported=yes
5491 else
5492 _pkg_short_errors_supported=no
5493 fi
5494 if test $_pkg_short_errors_supported = yes; then
5495 crypto_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1.1.0" 2>&1`
5496 else
5497 crypto_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1.1.0" 2>&1`
5498 fi
5499 # Put the nasty error message in config.log where it belongs
5500 echo "$crypto_PKG_ERRORS" >&5
5501
5502 as_fn_error "Package requirements (libcrypto >= 1.1.0) were not met:
5503
5504 $crypto_PKG_ERRORS
5505
5506 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5507 installed software in a non-standard prefix.
5508
5509 Alternatively, you may set the environment variables crypto_CFLAGS
5510 and crypto_LIBS to avoid the need to call pkg-config.
5511 See the pkg-config man page for more details." "$LINENO" 5
5512 elif test $pkg_failed = untried; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5517 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
5518 is in your PATH or set the PKG_CONFIG environment variable to the full
5519 path to pkg-config.
5520
5521 Alternatively, you may set the environment variables crypto_CFLAGS
5522 and crypto_LIBS to avoid the need to call pkg-config.
5523 See the pkg-config man page for more details.
5524
5525 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5526 See \`config.log' for more details." "$LINENO" 5; }
5527 else
5528 crypto_CFLAGS=$pkg_cv_crypto_CFLAGS
5529 crypto_LIBS=$pkg_cv_crypto_LIBS
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5531 $as_echo "yes" >&6; }
5532 CFLAGS="$CFLAGS $crypto_CFLAGS"
5533 LIBS="$crypto_LIBS $LIBS"
5534 fi
5535 else
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5537 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5538 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 ac_check_lib_save_LIBS=$LIBS
5542 LIBS="-ldl $LIBS"
5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5545
5546 /* Override any GCC internal prototype to avoid an error.
5547 Use char because int might match the return type of a GCC
5548 builtin and then its argument prototype would still apply. */
5549 #ifdef __cplusplus
5550 extern "C"
5551 #endif
5552 char dlopen ();
5553 int
5554 main ()
5555 {
5556 return dlopen ();
5557 ;
5558 return 0;
5559 }
5560 _ACEOF
5561 if ac_fn_c_try_link "$LINENO"; then :
5562 ac_cv_lib_dl_dlopen=yes
5563 else
5564 ac_cv_lib_dl_dlopen=no
5565 fi
5566 rm -f core conftest.err conftest.$ac_objext \
5567 conftest$ac_exeext conftest.$ac_ext
5568 LIBS=$ac_check_lib_save_LIBS
5569 fi
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5571 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5572 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
5573 cat >>confdefs.h <<_ACEOF
5574 #define HAVE_LIBDL 1
5575 _ACEOF
5576
5577 LIBS="-ldl $LIBS"
5578
5579 else
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libdl" >&5
5581 $as_echo "$as_me: WARNING: can't find libdl" >&2;}
5582 fi
5583
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
5585 $as_echo_n "checking for inflate in -lz... " >&6; }
5586 if test "${ac_cv_lib_z_inflate+set}" = set; then :
5587 $as_echo_n "(cached) " >&6
5588 else
5589 ac_check_lib_save_LIBS=$LIBS
5590 LIBS="-lz $LIBS"
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593
5594 /* Override any GCC internal prototype to avoid an error.
5595 Use char because int might match the return type of a GCC
5596 builtin and then its argument prototype would still apply. */
5597 #ifdef __cplusplus
5598 extern "C"
5599 #endif
5600 char inflate ();
5601 int
5602 main ()
5603 {
5604 return inflate ();
5605 ;
5606 return 0;
5607 }
5608 _ACEOF
5609 if ac_fn_c_try_link "$LINENO"; then :
5610 ac_cv_lib_z_inflate=yes
5611 else
5612 ac_cv_lib_z_inflate=no
5613 fi
5614 rm -f core conftest.err conftest.$ac_objext \
5615 conftest$ac_exeext conftest.$ac_ext
5616 LIBS=$ac_check_lib_save_LIBS
5617 fi
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
5619 $as_echo "$ac_cv_lib_z_inflate" >&6; }
5620 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
5621 cat >>confdefs.h <<_ACEOF
5622 #define HAVE_LIBZ 1
5623 _ACEOF
5624
5625 LIBS="-lz $LIBS"
5626
5627 else
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libz" >&5
5629 $as_echo "$as_me: WARNING: can't find libz" >&2;}
5630 fi
5631
5632 fi
5633
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_EncryptInit" >&5
5635 $as_echo_n "checking for library containing EVP_EncryptInit... " >&6; }
5636 if test "${ac_cv_search_EVP_EncryptInit+set}" = set; then :
5637 $as_echo_n "(cached) " >&6
5638 else
5639 ac_func_search_save_LIBS=$LIBS
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642
5643 /* Override any GCC internal prototype to avoid an error.
5644 Use char because int might match the return type of a GCC
5645 builtin and then its argument prototype would still apply. */
5646 #ifdef __cplusplus
5647 extern "C"
5648 #endif
5649 char EVP_EncryptInit ();
5650 int
5651 main ()
5652 {
5653 return EVP_EncryptInit ();
5654 ;
5655 return 0;
5656 }
5657 _ACEOF
5658 for ac_lib in '' crypto; do
5659 if test -z "$ac_lib"; then
5660 ac_res="none required"
5661 else
5662 ac_res=-l$ac_lib
5663 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5664 fi
5665 if ac_fn_c_try_link "$LINENO"; then :
5666 ac_cv_search_EVP_EncryptInit=$ac_res
5667 fi
5668 rm -f core conftest.err conftest.$ac_objext \
5669 conftest$ac_exeext
5670 if test "${ac_cv_search_EVP_EncryptInit+set}" = set; then :
5671 break
5672 fi
5673 done
5674 if test "${ac_cv_search_EVP_EncryptInit+set}" = set; then :
5675
5676 else
5677 ac_cv_search_EVP_EncryptInit=no
5678 fi
5679 rm conftest.$ac_ext
5680 LIBS=$ac_func_search_save_LIBS
5681 fi
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_EncryptInit" >&5
5683 $as_echo "$ac_cv_search_EVP_EncryptInit" >&6; }
5684 ac_res=$ac_cv_search_EVP_EncryptInit
5685 if test "$ac_res" != no; then :
5686 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5687
5688 else
5689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5691 as_fn_error "can't find openssl >= 1.1.0 crypto lib
5692 See \`config.log' for more details." "$LINENO" 5; }
5693 fi
5694
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_aes_128_ctr" >&5
5696 $as_echo_n "checking for library containing EVP_aes_128_ctr... " >&6; }
5697 if test "${ac_cv_search_EVP_aes_128_ctr+set}" = set; then :
5698 $as_echo_n "(cached) " >&6
5699 else
5700 ac_func_search_save_LIBS=$LIBS
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h. */
5703
5704 /* Override any GCC internal prototype to avoid an error.
5705 Use char because int might match the return type of a GCC
5706 builtin and then its argument prototype would still apply. */
5707 #ifdef __cplusplus
5708 extern "C"
5709 #endif
5710 char EVP_aes_128_ctr ();
5711 int
5712 main ()
5713 {
5714 return EVP_aes_128_ctr ();
5715 ;
5716 return 0;
5717 }
5718 _ACEOF
5719 for ac_lib in '' crypto; do
5720 if test -z "$ac_lib"; then
5721 ac_res="none required"
5722 else
5723 ac_res=-l$ac_lib
5724 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5725 fi
5726 if ac_fn_c_try_link "$LINENO"; then :
5727 ac_cv_search_EVP_aes_128_ctr=$ac_res
5728 fi
5729 rm -f core conftest.err conftest.$ac_objext \
5730 conftest$ac_exeext
5731 if test "${ac_cv_search_EVP_aes_128_ctr+set}" = set; then :
5732 break
5733 fi
5734 done
5735 if test "${ac_cv_search_EVP_aes_128_ctr+set}" = set; then :
5736
5737 else
5738 ac_cv_search_EVP_aes_128_ctr=no
5739 fi
5740 rm conftest.$ac_ext
5741 LIBS=$ac_func_search_save_LIBS
5742 fi
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_aes_128_ctr" >&5
5744 $as_echo "$ac_cv_search_EVP_aes_128_ctr" >&6; }
5745 ac_res=$ac_cv_search_EVP_aes_128_ctr
5746 if test "$ac_res" != no; then :
5747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5748
5749 else
5750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5752 as_fn_error "can't find openssl >= 1.1.0 crypto lib
5753 See \`config.log' for more details." "$LINENO" 5; }
5754 fi
5755
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_aes_128_gcm" >&5
5757 $as_echo_n "checking for library containing EVP_aes_128_gcm... " >&6; }
5758 if test "${ac_cv_search_EVP_aes_128_gcm+set}" = set; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 ac_func_search_save_LIBS=$LIBS
5762 cat 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
5769 extern "C"
5770 #endif
5771 char EVP_aes_128_gcm ();
5772 int
5773 main ()
5774 {
5775 return EVP_aes_128_gcm ();
5776 ;
5777 return 0;
5778 }
5779 _ACEOF
5780 for ac_lib in '' crypto; do
5781 if test -z "$ac_lib"; then
5782 ac_res="none required"
5783 else
5784 ac_res=-l$ac_lib
5785 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5786 fi
5787 if ac_fn_c_try_link "$LINENO"; then :
5788 ac_cv_search_EVP_aes_128_gcm=$ac_res
5789 fi
5790 rm -f core conftest.err conftest.$ac_objext \
5791 conftest$ac_exeext
5792 if test "${ac_cv_search_EVP_aes_128_gcm+set}" = set; then :
5793 break
5794 fi
5795 done
5796 if test "${ac_cv_search_EVP_aes_128_gcm+set}" = set; then :
5797
5798 else
5799 ac_cv_search_EVP_aes_128_gcm=no
5800 fi
5801 rm conftest.$ac_ext
5802 LIBS=$ac_func_search_save_LIBS
5803 fi
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_aes_128_gcm" >&5
5805 $as_echo "$ac_cv_search_EVP_aes_128_gcm" >&6; }
5806 ac_res=$ac_cv_search_EVP_aes_128_gcm
5807 if test "$ac_res" != no; then :
5808 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5809
5810 else
5811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5813 as_fn_error "can't find openssl >= 1.1.0 crypto lib
5814 See \`config.log' for more details." "$LINENO" 5; }
5815 fi
5816
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_reset" >&5
5818 $as_echo_n "checking for library containing EVP_CIPHER_CTX_reset... " >&6; }
5819 if test "${ac_cv_search_EVP_CIPHER_CTX_reset+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 ac_func_search_save_LIBS=$LIBS
5823 cat 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
5830 extern "C"
5831 #endif
5832 char EVP_CIPHER_CTX_reset ();
5833 int
5834 main ()
5835 {
5836 return EVP_CIPHER_CTX_reset ();
5837 ;
5838 return 0;
5839 }
5840 _ACEOF
5841 for ac_lib in '' crypto; do
5842 if test -z "$ac_lib"; then
5843 ac_res="none required"
5844 else
5845 ac_res=-l$ac_lib
5846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5847 fi
5848 if ac_fn_c_try_link "$LINENO"; then :
5849 ac_cv_search_EVP_CIPHER_CTX_reset=$ac_res
5850 fi
5851 rm -f core conftest.err conftest.$ac_objext \
5852 conftest$ac_exeext
5853 if test "${ac_cv_search_EVP_CIPHER_CTX_reset+set}" = set; then :
5854 break
5855 fi
5856 done
5857 if test "${ac_cv_search_EVP_CIPHER_CTX_reset+set}" = set; then :
5858
5859 else
5860 ac_cv_search_EVP_CIPHER_CTX_reset=no
5861 fi
5862 rm conftest.$ac_ext
5863 LIBS=$ac_func_search_save_LIBS
5864 fi
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_reset" >&5
5866 $as_echo "$ac_cv_search_EVP_CIPHER_CTX_reset" >&6; }
5867 ac_res=$ac_cv_search_EVP_CIPHER_CTX_reset
5868 if test "$ac_res" != no; then :
5869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5870
5871 else
5872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5874 as_fn_error "can't find openssl >= 1.1.0 crypto lib
5875 See \`config.log' for more details." "$LINENO" 5; }
5876 fi
5877
5878
5879
5880 $as_echo "#define GCM 1" >>confdefs.h
5881
5882
5883 $as_echo "#define OPENSSL 1" >>confdefs.h
5884
5885 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
5886 HMAC_OBJS=crypto/hash/hmac_ossl.o
5887 USE_EXTERNAL_CRYPTO=1
5888
5889
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL KDF algorithm" >&5
5891 $as_echo_n "checking whether to leverage OpenSSL KDF algorithm... " >&6; }
5892 # Check whether --enable-openssl-kdf was given.
5893 if test "${enable_openssl_kdf+set}" = set; then :
5894 enableval=$enable_openssl_kdf;
5895 else
5896 enable_openssl_kdf=no
5897 fi
5898
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl_kdf" >&5
5900 $as_echo "$enable_openssl_kdf" >&6; }
5901 if test "$enable_openssl_kdf" = "yes"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kdf_srtp" >&5
5903 $as_echo_n "checking for library containing kdf_srtp... " >&6; }
5904 if test "${ac_cv_search_kdf_srtp+set}" = set; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 ac_func_search_save_LIBS=$LIBS
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5910
5911 /* Override any GCC internal prototype to avoid an error.
5912 Use char because int might match the return type of a GCC
5913 builtin and then its argument prototype would still apply. */
5914 #ifdef __cplusplus
5915 extern "C"
5916 #endif
5917 char kdf_srtp ();
5918 int
5919 main ()
5920 {
5921 return kdf_srtp ();
5922 ;
5923 return 0;
5924 }
5925 _ACEOF
5926 for ac_lib in '' crypto; do
5927 if test -z "$ac_lib"; then
5928 ac_res="none required"
5929 else
5930 ac_res=-l$ac_lib
5931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5932 fi
5933 if ac_fn_c_try_link "$LINENO"; then :
5934 ac_cv_search_kdf_srtp=$ac_res
5935 fi
5936 rm -f core conftest.err conftest.$ac_objext \
5937 conftest$ac_exeext
5938 if test "${ac_cv_search_kdf_srtp+set}" = set; then :
5939 break
5940 fi
5941 done
5942 if test "${ac_cv_search_kdf_srtp+set}" = set; then :
5943
5944 else
5945 ac_cv_search_kdf_srtp=no
5946 fi
5947 rm conftest.$ac_ext
5948 LIBS=$ac_func_search_save_LIBS
5949 fi
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kdf_srtp" >&5
5951 $as_echo "$ac_cv_search_kdf_srtp" >&6; }
5952 ac_res=$ac_cv_search_kdf_srtp
5953 if test "$ac_res" != no; then :
5954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5955
5956 else
5957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5959 as_fn_error "can't find openssl KDF lib
5960 See \`config.log' for more details." "$LINENO" 5; }
5961 fi
5962
5963
5964 $as_echo "#define OPENSSL_KDF 1" >>confdefs.h
5965
5966 fi
5967 elif test "$enable_nss" = "yes"; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user specified NSS directory" >&5
5969 $as_echo_n "checking for user specified NSS directory... " >&6; }
5970
5971 # Check whether --with-nss-dir was given.
5972 if test "${with_nss_dir+set}" = set; then :
5973 withval=$with_nss_dir; if test "x$PKG_CONFIG" != "x" && test -f $with_nss_dir/lib/pkgconfig/nss.pc; then
5974 if test "x$PKG_CONFIG_PATH" = "x"; then
5975 export PKG_CONFIG_PATH="$with_nss_dir/lib/pkgconfig"
5976 else
5977 export PKG_CONFIG_PATH="$with_nss_dir/lib/pkgconfig:$PKG_CONFIG_PATH"
5978 fi
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_nss_dir" >&5
5980 $as_echo "$with_nss_dir" >&6; }
5981 elif test -d $with_nss_dir/lib; then
5982 CFLAGS="$CFLAGS -I$with_nss_dir/include"
5983 CFLAGS="$CFLAGS -I$with_nss_dir/../public/nss"
5984 if test "x$LDFLAGS" = "x"; then
5985 LDFLAGS="-L$with_nss_dir/lib"
5986 else
5987 LDFLAGS="$LDFLAGS -L$with_nss_dir/lib"
5988 fi
5989 nss_skip_pkg_config=yes
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_nss_dir" >&5
5991 $as_echo "$with_nss_dir" >&6; }
5992 else
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
5994 $as_echo "invalid" >&6; }
5995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5997 as_fn_error "Invalid NSS location: $with_nss_dir
5998 See \`config.log' for more details." "$LINENO" 5; }
5999 fi
6000 CRYPTO_LIBDIR=$with_nss_dir/lib
6001
6002 else
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004 $as_echo "no" >&6; }
6005 fi
6006
6007
6008 if test "x$PKG_CONFIG" != "x" && test "$nss_skip_pkg_config" != "yes"; then
6009
6010 pkg_failed=no
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
6012 $as_echo_n "checking for nss... " >&6; }
6013
6014 if test -n "$nss_CFLAGS"; then
6015 pkg_cv_nss_CFLAGS="$nss_CFLAGS"
6016 elif test -n "$PKG_CONFIG"; then
6017 if test -n "$PKG_CONFIG" && \
6018 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
6019 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
6020 ac_status=$?
6021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6022 test $ac_status = 0; }; then
6023 pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
6024 test "x$?" != "x0" && pkg_failed=yes
6025 else
6026 pkg_failed=yes
6027 fi
6028 else
6029 pkg_failed=untried
6030 fi
6031 if test -n "$nss_LIBS"; then
6032 pkg_cv_nss_LIBS="$nss_LIBS"
6033 elif test -n "$PKG_CONFIG"; then
6034 if test -n "$PKG_CONFIG" && \
6035 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
6036 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
6037 ac_status=$?
6038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6039 test $ac_status = 0; }; then
6040 pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
6041 test "x$?" != "x0" && pkg_failed=yes
6042 else
6043 pkg_failed=yes
6044 fi
6045 else
6046 pkg_failed=untried
6047 fi
6048
6049
6050
6051 if test $pkg_failed = yes; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053 $as_echo "no" >&6; }
6054
6055 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6056 _pkg_short_errors_supported=yes
6057 else
6058 _pkg_short_errors_supported=no
6059 fi
6060 if test $_pkg_short_errors_supported = yes; then
6061 nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1`
6062 else
6063 nss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1`
6064 fi
6065 # Put the nasty error message in config.log where it belongs
6066 echo "$nss_PKG_ERRORS" >&5
6067
6068 as_fn_error "Package requirements (nss) were not met:
6069
6070 $nss_PKG_ERRORS
6071
6072 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6073 installed software in a non-standard prefix.
6074
6075 Alternatively, you may set the environment variables nss_CFLAGS
6076 and nss_LIBS to avoid the need to call pkg-config.
6077 See the pkg-config man page for more details." "$LINENO" 5
6078 elif test $pkg_failed = untried; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 $as_echo "no" >&6; }
6081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6083 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
6084 is in your PATH or set the PKG_CONFIG environment variable to the full
6085 path to pkg-config.
6086
6087 Alternatively, you may set the environment variables nss_CFLAGS
6088 and nss_LIBS to avoid the need to call pkg-config.
6089 See the pkg-config man page for more details.
6090
6091 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6092 See \`config.log' for more details." "$LINENO" 5; }
6093 else
6094 nss_CFLAGS=$pkg_cv_nss_CFLAGS
6095 nss_LIBS=$pkg_cv_nss_LIBS
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6097 $as_echo "yes" >&6; }
6098 CFLAGS="$CFLAGS $nss_CFLAGS"
6099 LIBS="$nss_LIBS $LIBS"
6100 fi
6101 else
6102 for ac_header in nss.h
6103 do :
6104 ac_fn_c_check_header_compile "$LINENO" "nss.h" "ac_cv_header_nss_h" "$ac_includes_default
6105 "
6106 if test "x$ac_cv_header_nss_h" = x""yes; then :
6107 cat >>confdefs.h <<_ACEOF
6108 #define HAVE_NSS_H 1
6109 _ACEOF
6110
6111 else
6112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6114 as_fn_error "can't find useable NSS headers
6115 See \`config.log' for more details." "$LINENO" 5; }
6116 fi
6117
6118 done
6119
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_GetError in -lnspr4" >&5
6121 $as_echo_n "checking for PR_GetError in -lnspr4... " >&6; }
6122 if test "${ac_cv_lib_nspr4_PR_GetError+set}" = set; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 ac_check_lib_save_LIBS=$LIBS
6126 LIBS="-lnspr4 $LIBS"
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6129
6130 /* Override any GCC internal prototype to avoid an error.
6131 Use char because int might match the return type of a GCC
6132 builtin and then its argument prototype would still apply. */
6133 #ifdef __cplusplus
6134 extern "C"
6135 #endif
6136 char PR_GetError ();
6137 int
6138 main ()
6139 {
6140 return PR_GetError ();
6141 ;
6142 return 0;
6143 }
6144 _ACEOF
6145 if ac_fn_c_try_link "$LINENO"; then :
6146 ac_cv_lib_nspr4_PR_GetError=yes
6147 else
6148 ac_cv_lib_nspr4_PR_GetError=no
6149 fi
6150 rm -f core conftest.err conftest.$ac_objext \
6151 conftest$ac_exeext conftest.$ac_ext
6152 LIBS=$ac_check_lib_save_LIBS
6153 fi
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_GetError" >&5
6155 $as_echo "$ac_cv_lib_nspr4_PR_GetError" >&6; }
6156 if test "x$ac_cv_lib_nspr4_PR_GetError" = x""yes; then :
6157 cat >>confdefs.h <<_ACEOF
6158 #define HAVE_LIBNSPR4 1
6159 _ACEOF
6160
6161 LIBS="-lnspr4 $LIBS"
6162
6163 else
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libnspr4" >&5
6165 $as_echo "$as_me: WARNING: can't find libnspr4" >&2;}
6166 fi
6167
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_NoDB_Init in -lnss3" >&5
6169 $as_echo_n "checking for NSS_NoDB_Init in -lnss3... " >&6; }
6170 if test "${ac_cv_lib_nss3_NSS_NoDB_Init+set}" = set; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 ac_check_lib_save_LIBS=$LIBS
6174 LIBS="-lnss3 $LIBS"
6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176 /* end confdefs.h. */
6177
6178 /* Override any GCC internal prototype to avoid an error.
6179 Use char because int might match the return type of a GCC
6180 builtin and then its argument prototype would still apply. */
6181 #ifdef __cplusplus
6182 extern "C"
6183 #endif
6184 char NSS_NoDB_Init ();
6185 int
6186 main ()
6187 {
6188 return NSS_NoDB_Init ();
6189 ;
6190 return 0;
6191 }
6192 _ACEOF
6193 if ac_fn_c_try_link "$LINENO"; then :
6194 ac_cv_lib_nss3_NSS_NoDB_Init=yes
6195 else
6196 ac_cv_lib_nss3_NSS_NoDB_Init=no
6197 fi
6198 rm -f core conftest.err conftest.$ac_objext \
6199 conftest$ac_exeext conftest.$ac_ext
6200 LIBS=$ac_check_lib_save_LIBS
6201 fi
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_NoDB_Init" >&5
6203 $as_echo "$ac_cv_lib_nss3_NSS_NoDB_Init" >&6; }
6204 if test "x$ac_cv_lib_nss3_NSS_NoDB_Init" = x""yes; then :
6205 cat >>confdefs.h <<_ACEOF
6206 #define HAVE_LIBNSS3 1
6207 _ACEOF
6208
6209 LIBS="-lnss3 $LIBS"
6210
6211 else
6212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6214 as_fn_error "can't find useable libnss3
6215 See \`config.log' for more details." "$LINENO" 5; }
6216 fi
6217
6218 fi
6219
6220
6221 $as_echo "#define GCM 1" >>confdefs.h
6222
6223
6224 $as_echo "#define NSS 1" >>confdefs.h
6225
6226 AES_ICM_OBJS="crypto/cipher/aes_icm_nss.o crypto/cipher/aes_gcm_nss.o"
6227 HMAC_OBJS="crypto/hash/hmac_nss.o"
6228
6229 # TODO(RLB): Use NSS for KDF
6230
6231 USE_EXTERNAL_CRYPTO=1
6232
6233 else
6234 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o"
6235 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
6236 fi
6237
6238
6239
6240
6241 PCAP_LIB=""
6242 # Check whether --enable-pcap was given.
6243 if test "${enable_pcap+set}" = set; then :
6244 enableval=$enable_pcap;
6245 fi
6246
6247 if test "x$enable_pcap" != "xno"; then :
6248
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
6250 $as_echo_n "checking for pcap_create in -lpcap... " >&6; }
6251 if test "${ac_cv_lib_pcap_pcap_create+set}" = set; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254 ac_check_lib_save_LIBS=$LIBS
6255 LIBS="-lpcap $LIBS"
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6258
6259 /* Override any GCC internal prototype to avoid an error.
6260 Use char because int might match the return type of a GCC
6261 builtin and then its argument prototype would still apply. */
6262 #ifdef __cplusplus
6263 extern "C"
6264 #endif
6265 char pcap_create ();
6266 int
6267 main ()
6268 {
6269 return pcap_create ();
6270 ;
6271 return 0;
6272 }
6273 _ACEOF
6274 if ac_fn_c_try_link "$LINENO"; then :
6275 ac_cv_lib_pcap_pcap_create=yes
6276 else
6277 ac_cv_lib_pcap_pcap_create=no
6278 fi
6279 rm -f core conftest.err conftest.$ac_objext \
6280 conftest$ac_exeext conftest.$ac_ext
6281 LIBS=$ac_check_lib_save_LIBS
6282 fi
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
6284 $as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
6285 if test "x$ac_cv_lib_pcap_pcap_create" = x""yes; then :
6286 PCAP_LIB="-lpcap"
6287
6288 $as_echo "#define HAVE_PCAP 1" >>confdefs.h
6289
6290 HAVE_PCAP=1
6291
6292 fi
6293
6294
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lwpcap" >&5
6296 $as_echo_n "checking for pcap_create in -lwpcap... " >&6; }
6297 if test "${ac_cv_lib_wpcap_pcap_create+set}" = set; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 ac_check_lib_save_LIBS=$LIBS
6301 LIBS="-lwpcap $LIBS"
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6304
6305 /* Override any GCC internal prototype to avoid an error.
6306 Use char because int might match the return type of a GCC
6307 builtin and then its argument prototype would still apply. */
6308 #ifdef __cplusplus
6309 extern "C"
6310 #endif
6311 char pcap_create ();
6312 int
6313 main ()
6314 {
6315 return pcap_create ();
6316 ;
6317 return 0;
6318 }
6319 _ACEOF
6320 if ac_fn_c_try_link "$LINENO"; then :
6321 ac_cv_lib_wpcap_pcap_create=yes
6322 else
6323 ac_cv_lib_wpcap_pcap_create=no
6324 fi
6325 rm -f core conftest.err conftest.$ac_objext \
6326 conftest$ac_exeext conftest.$ac_ext
6327 LIBS=$ac_check_lib_save_LIBS
6328 fi
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wpcap_pcap_create" >&5
6330 $as_echo "$ac_cv_lib_wpcap_pcap_create" >&6; }
6331 if test "x$ac_cv_lib_wpcap_pcap_create" = x""yes; then :
6332 PCAP_LIB="-lwpcap"
6333
6334 $as_echo "#define HAVE_PCAP 1" >>confdefs.h
6335
6336 HAVE_PCAP=1
6337
6338 fi
6339
6340
6341 fi
6342
6343
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to redirect logging to stdout" >&5
6345 $as_echo_n "checking whether to redirect logging to stdout... " >&6; }
6346 # Check whether --enable-log-stdout was given.
6347 if test "${enable_log_stdout+set}" = set; then :
6348 enableval=$enable_log_stdout;
6349 else
6350 enable_log_stdout=no
6351 fi
6352
6353 if test "$enable_log_stdout" = "yes"; then
6354
6355 $as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
6356
6357 fi
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_stdout" >&5
6359 $as_echo "$enable_log_stdout" >&6; }
6360
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking wheather to use a file for logging" >&5
6362 $as_echo_n "checking wheather to use a file for logging... " >&6; }
6363
6364 # Check whether --with-log-file was given.
6365 if test "${with_log_file+set}" = set; then :
6366 withval=$with_log_file; case x$with_log_file in #(
6367 x) :
6368 valid_with_log_file="no" ;; #(
6369 xyes) :
6370 valid_with_log_file="no" ;; #(
6371 *) :
6372 valid_with_error_file="yes" ;;
6373 esac
6374 if test "$valid_with_log_file" = "no"; then :
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
6376 $as_echo "invalid" >&6; }
6377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6379 as_fn_error "Invalid value for --with-log-file: \"$with_log_file\"
6380 See \`config.log' for more details." "$LINENO" 5; }
6381 else
6382
6383 cat >>confdefs.h <<_ACEOF
6384 #define ERR_REPORTING_FILE "$with_log_file"
6385 _ACEOF
6386
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using log file: \"$with_log_file\"" >&5
6388 $as_echo "using log file: \"$with_log_file\"" >&6; }
6389 fi
6390 else
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392 $as_echo "no" >&6; }
6393 fi
6394
6395
6396 if test "$enable_log_stdout" = "yes" && test "x$with_log_file" != "x"; then :
6397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6399 as_fn_error "Can only use one of --enable-log-stdout and --with-log-file; they are mutually exclusive
6400 See \`config.log' for more details." "$LINENO" 5; }
6401 fi
6402
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra C compiler flags" >&5
6404 $as_echo_n "checking for extra C compiler flags... " >&6; }
6405 if test "x$EXTRA_CFLAGS" != "x"; then :
6406 if test "x$CFLAGS" = "x"; then :
6407 CFLAGS="$EXTRA_CFLAGS"
6408 else
6409 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
6410 fi
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_CFLAGS" >&5
6412 $as_echo "$EXTRA_CFLAGS" >&6; }
6413 else
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 $as_echo "no" >&6; }
6416 fi
6417
6418 ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
6419
6420
6421 ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile fuzzer/Makefile libsrtp2.pc"
6422
6423 cat >confcache <<\_ACEOF
6424 # This file is a shell script that caches the results of configure
6425 # tests run on this system so they can be shared between configure
6426 # scripts and configure runs, see configure's option --config-cache.
6427 # It is not useful on other systems. If it contains results you don't
6428 # want to keep, you may remove or edit it.
6429 #
6430 # config.status only pays attention to the cache file if you give it
6431 # the --recheck option to rerun configure.
6432 #
6433 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6434 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6435 # following values.
6436
6437 _ACEOF
6438
6439 # The following way of writing the cache mishandles newlines in values,
6440 # but we know of no workaround that is simple, portable, and efficient.
6441 # So, we kill variables containing newlines.
6442 # Ultrix sh set writes to stderr and can't be redirected directly,
6443 # and sets the high bit in the cache file unless we assign to the vars.
6444 (
6445 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6446 eval ac_val=\$$ac_var
6447 case $ac_val in #(
6448 *${as_nl}*)
6449 case $ac_var in #(
6450 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6451 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6452 esac
6453 case $ac_var in #(
6454 _ | IFS | as_nl) ;; #(
6455 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6456 *) { eval $ac_var=; unset $ac_var;} ;;
6457 esac ;;
6458 esac
6459 done
6460
6461 (set) 2>&1 |
6462 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6463 *${as_nl}ac_space=\ *)
6464 # `set' does not quote correctly, so add quotes: double-quote
6465 # substitution turns \\\\ into \\, and sed turns \\ into \.
6466 sed -n \
6467 "s/'/'\\\\''/g;
6468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6469 ;; #(
6470 *)
6471 # `set' quotes correctly as required by POSIX, so do not add quotes.
6472 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6473 ;;
6474 esac |
6475 sort
6476 ) |
6477 sed '
6478 /^ac_cv_env_/b end
6479 t clear
6480 :clear
6481 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6482 t end
6483 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6484 :end' >>confcache
6485 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6486 if test -w "$cache_file"; then
6487 test "x$cache_file" != "x/dev/null" &&
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6489 $as_echo "$as_me: updating cache $cache_file" >&6;}
6490 cat confcache >$cache_file
6491 else
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6493 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6494 fi
6495 fi
6496 rm -f confcache
6497
6498 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6499 # Let make expand exec_prefix.
6500 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6501
6502 DEFS=-DHAVE_CONFIG_H
6503
6504 ac_libobjs=
6505 ac_ltlibobjs=
6506 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6507 # 1. Remove the extension, and $U if already installed.
6508 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6509 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6510 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6511 # will be set to the directory where LIBOBJS objects are built.
6512 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6513 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6514 done
6515 LIBOBJS=$ac_libobjs
6516
6517 LTLIBOBJS=$ac_ltlibobjs
6518
6519
6520
6521
6522 : ${CONFIG_STATUS=./config.status}
6523 ac_write_fail=0
6524 ac_clean_files_save=$ac_clean_files
6525 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6527 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6528 as_write_fail=0
6529 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6530 #! $SHELL
6531 # Generated by $as_me.
6532 # Run this file to recreate the current configuration.
6533 # Compiler output produced by configure, useful for debugging
6534 # configure, is in config.log if it exists.
6535
6536 debug=false
6537 ac_cs_recheck=false
6538 ac_cs_silent=false
6539
6540 SHELL=\${CONFIG_SHELL-$SHELL}
6541 export SHELL
6542 _ASEOF
6543 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6544 ## -------------------- ##
6545 ## M4sh Initialization. ##
6546 ## -------------------- ##
6547
6548 # Be more Bourne compatible
6549 DUALCASE=1; export DUALCASE # for MKS sh
6550 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6551 emulate sh
6552 NULLCMD=:
6553 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6554 # is contrary to our usage. Disable this feature.
6555 alias -g '${1+"$@"}'='"$@"'
6556 setopt NO_GLOB_SUBST
6557 else
6558 case `(set -o) 2>/dev/null` in #(
6559 *posix*) :
6560 set -o posix ;; #(
6561 *) :
6562 ;;
6563 esac
6564 fi
6565
6566
6567 as_nl='
6568 '
6569 export as_nl
6570 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6571 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6572 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6573 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6574 # Prefer a ksh shell builtin over an external printf program on Solaris,
6575 # but without wasting forks for bash or zsh.
6576 if test -z "$BASH_VERSION$ZSH_VERSION" \
6577 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6578 as_echo='print -r --'
6579 as_echo_n='print -rn --'
6580 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6581 as_echo='printf %s\n'
6582 as_echo_n='printf %s'
6583 else
6584 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6585 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6586 as_echo_n='/usr/ucb/echo -n'
6587 else
6588 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6589 as_echo_n_body='eval
6590 arg=$1;
6591 case $arg in #(
6592 *"$as_nl"*)
6593 expr "X$arg" : "X\\(.*\\)$as_nl";
6594 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6595 esac;
6596 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6597 '
6598 export as_echo_n_body
6599 as_echo_n='sh -c $as_echo_n_body as_echo'
6600 fi
6601 export as_echo_body
6602 as_echo='sh -c $as_echo_body as_echo'
6603 fi
6604
6605 # The user is always right.
6606 if test "${PATH_SEPARATOR+set}" != set; then
6607 PATH_SEPARATOR=:
6608 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6609 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6610 PATH_SEPARATOR=';'
6611 }
6612 fi
6613
6614
6615 # IFS
6616 # We need space, tab and new line, in precisely that order. Quoting is
6617 # there to prevent editors from complaining about space-tab.
6618 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6619 # splitting by setting IFS to empty value.)
6620 IFS=" "" $as_nl"
6621
6622 # Find who we are. Look in the path if we contain no directory separator.
6623 case $0 in #((
6624 *[\\/]* ) as_myself=$0 ;;
6625 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
6630 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6631 done
6632 IFS=$as_save_IFS
6633
6634 ;;
6635 esac
6636 # We did not find ourselves, most probably we were run as `sh COMMAND'
6637 # in which case we are not to be found in the path.
6638 if test "x$as_myself" = x; then
6639 as_myself=$0
6640 fi
6641 if test ! -f "$as_myself"; then
6642 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6643 exit 1
6644 fi
6645
6646 # Unset variables that we do not need and which cause bugs (e.g. in
6647 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6648 # suppresses any "Segmentation fault" message there. '((' could
6649 # trigger a bug in pdksh 5.2.14.
6650 for as_var in BASH_ENV ENV MAIL MAILPATH
6651 do eval test x\${$as_var+set} = xset \
6652 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6653 done
6654 PS1='$ '
6655 PS2='> '
6656 PS4='+ '
6657
6658 # NLS nuisances.
6659 LC_ALL=C
6660 export LC_ALL
6661 LANGUAGE=C
6662 export LANGUAGE
6663
6664 # CDPATH.
6665 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6666
6667
6668 # as_fn_error ERROR [LINENO LOG_FD]
6669 # ---------------------------------
6670 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6671 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6672 # script with status $?, using 1 if that was 0.
6673 as_fn_error ()
6674 {
6675 as_status=$?; test $as_status -eq 0 && as_status=1
6676 if test "$3"; then
6677 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6678 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6679 fi
6680 $as_echo "$as_me: error: $1" >&2
6681 as_fn_exit $as_status
6682 } # as_fn_error
6683
6684
6685 # as_fn_set_status STATUS
6686 # -----------------------
6687 # Set $? to STATUS, without forking.
6688 as_fn_set_status ()
6689 {
6690 return $1
6691 } # as_fn_set_status
6692
6693 # as_fn_exit STATUS
6694 # -----------------
6695 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6696 as_fn_exit ()
6697 {
6698 set +e
6699 as_fn_set_status $1
6700 exit $1
6701 } # as_fn_exit
6702
6703 # as_fn_unset VAR
6704 # ---------------
6705 # Portably unset VAR.
6706 as_fn_unset ()
6707 {
6708 { eval $1=; unset $1;}
6709 }
6710 as_unset=as_fn_unset
6711 # as_fn_append VAR VALUE
6712 # ----------------------
6713 # Append the text in VALUE to the end of the definition contained in VAR. Take
6714 # advantage of any shell optimizations that allow amortized linear growth over
6715 # repeated appends, instead of the typical quadratic growth present in naive
6716 # implementations.
6717 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6718 eval 'as_fn_append ()
6719 {
6720 eval $1+=\$2
6721 }'
6722 else
6723 as_fn_append ()
6724 {
6725 eval $1=\$$1\$2
6726 }
6727 fi # as_fn_append
6728
6729 # as_fn_arith ARG...
6730 # ------------------
6731 # Perform arithmetic evaluation on the ARGs, and store the result in the
6732 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6733 # must be portable across $(()) and expr.
6734 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6735 eval 'as_fn_arith ()
6736 {
6737 as_val=$(( $* ))
6738 }'
6739 else
6740 as_fn_arith ()
6741 {
6742 as_val=`expr "$@" || test $? -eq 1`
6743 }
6744 fi # as_fn_arith
6745
6746
6747 if expr a : '\(a\)' >/dev/null 2>&1 &&
6748 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6749 as_expr=expr
6750 else
6751 as_expr=false
6752 fi
6753
6754 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6755 as_basename=basename
6756 else
6757 as_basename=false
6758 fi
6759
6760 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6761 as_dirname=dirname
6762 else
6763 as_dirname=false
6764 fi
6765
6766 as_me=`$as_basename -- "$0" ||
6767 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6768 X"$0" : 'X\(//\)$' \| \
6769 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6770 $as_echo X/"$0" |
6771 sed '/^.*\/\([^/][^/]*\)\/*$/{
6772 s//\1/
6773 q
6774 }
6775 /^X\/\(\/\/\)$/{
6776 s//\1/
6777 q
6778 }
6779 /^X\/\(\/\).*/{
6780 s//\1/
6781 q
6782 }
6783 s/.*/./; q'`
6784
6785 # Avoid depending upon Character Ranges.
6786 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6787 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6788 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6789 as_cr_digits='0123456789'
6790 as_cr_alnum=$as_cr_Letters$as_cr_digits
6791
6792 ECHO_C= ECHO_N= ECHO_T=
6793 case `echo -n x` in #(((((
6794 -n*)
6795 case `echo 'xy\c'` in
6796 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6797 xy) ECHO_C='\c';;
6798 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6799 ECHO_T=' ';;
6800 esac;;
6801 *)
6802 ECHO_N='-n';;
6803 esac
6804
6805 rm -f conf$$ conf$$.exe conf$$.file
6806 if test -d conf$$.dir; then
6807 rm -f conf$$.dir/conf$$.file
6808 else
6809 rm -f conf$$.dir
6810 mkdir conf$$.dir 2>/dev/null
6811 fi
6812 if (echo >conf$$.file) 2>/dev/null; then
6813 if ln -s conf$$.file conf$$ 2>/dev/null; then
6814 as_ln_s='ln -s'
6815 # ... but there are two gotchas:
6816 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6817 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6818 # In both cases, we have to default to `cp -p'.
6819 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6820 as_ln_s='cp -p'
6821 elif ln conf$$.file conf$$ 2>/dev/null; then
6822 as_ln_s=ln
6823 else
6824 as_ln_s='cp -p'
6825 fi
6826 else
6827 as_ln_s='cp -p'
6828 fi
6829 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6830 rmdir conf$$.dir 2>/dev/null
6831
6832
6833 # as_fn_mkdir_p
6834 # -------------
6835 # Create "$as_dir" as a directory, including parents if necessary.
6836 as_fn_mkdir_p ()
6837 {
6838
6839 case $as_dir in #(
6840 -*) as_dir=./$as_dir;;
6841 esac
6842 test -d "$as_dir" || eval $as_mkdir_p || {
6843 as_dirs=
6844 while :; do
6845 case $as_dir in #(
6846 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6847 *) as_qdir=$as_dir;;
6848 esac
6849 as_dirs="'$as_qdir' $as_dirs"
6850 as_dir=`$as_dirname -- "$as_dir" ||
6851 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6852 X"$as_dir" : 'X\(//\)[^/]' \| \
6853 X"$as_dir" : 'X\(//\)$' \| \
6854 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6855 $as_echo X"$as_dir" |
6856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6857 s//\1/
6858 q
6859 }
6860 /^X\(\/\/\)[^/].*/{
6861 s//\1/
6862 q
6863 }
6864 /^X\(\/\/\)$/{
6865 s//\1/
6866 q
6867 }
6868 /^X\(\/\).*/{
6869 s//\1/
6870 q
6871 }
6872 s/.*/./; q'`
6873 test -d "$as_dir" && break
6874 done
6875 test -z "$as_dirs" || eval "mkdir $as_dirs"
6876 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6877
6878
6879 } # as_fn_mkdir_p
6880 if mkdir -p . 2>/dev/null; then
6881 as_mkdir_p='mkdir -p "$as_dir"'
6882 else
6883 test -d ./-p && rmdir ./-p
6884 as_mkdir_p=false
6885 fi
6886
6887 if test -x / >/dev/null 2>&1; then
6888 as_test_x='test -x'
6889 else
6890 if ls -dL / >/dev/null 2>&1; then
6891 as_ls_L_option=L
6892 else
6893 as_ls_L_option=
6894 fi
6895 as_test_x='
6896 eval sh -c '\''
6897 if test -d "$1"; then
6898 test -d "$1/.";
6899 else
6900 case $1 in #(
6901 -*)set "./$1";;
6902 esac;
6903 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6904 ???[sx]*):;;*)false;;esac;fi
6905 '\'' sh
6906 '
6907 fi
6908 as_executable_p=$as_test_x
6909
6910 # Sed expression to map a string onto a valid CPP name.
6911 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6912
6913 # Sed expression to map a string onto a valid variable name.
6914 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6915
6916
6917 exec 6>&1
6918 ## ----------------------------------- ##
6919 ## Main body of $CONFIG_STATUS script. ##
6920 ## ----------------------------------- ##
6921 _ASEOF
6922 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6923
6924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6925 # Save the log message, to keep $0 and so on meaningful, and to
6926 # report actual input values of CONFIG_FILES etc. instead of their
6927 # values after options handling.
6928 ac_log="
6929 This file was extended by libsrtp2 $as_me 2.8.0, which was
6930 generated by GNU Autoconf 2.64. Invocation command line was
6931
6932 CONFIG_FILES = $CONFIG_FILES
6933 CONFIG_HEADERS = $CONFIG_HEADERS
6934 CONFIG_LINKS = $CONFIG_LINKS
6935 CONFIG_COMMANDS = $CONFIG_COMMANDS
6936 $ $0 $@
6937
6938 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6939 "
6940
6941 _ACEOF
6942
6943 case $ac_config_files in *"
6944 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6945 esac
6946
6947 case $ac_config_headers in *"
6948 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6949 esac
6950
6951
6952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6953 # Files that config.status was made for.
6954 config_files="$ac_config_files"
6955 config_headers="$ac_config_headers"
6956
6957 _ACEOF
6958
6959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6960 ac_cs_usage="\
6961 \`$as_me' instantiates files and other configuration actions
6962 from templates according to the current configuration. Unless the files
6963 and actions are specified as TAGs, all are instantiated by default.
6964
6965 Usage: $0 [OPTION]... [TAG]...
6966
6967 -h, --help print this help, then exit
6968 -V, --version print version number and configuration settings, then exit
6969 -q, --quiet, --silent
6970 do not print progress messages
6971 -d, --debug don't remove temporary files
6972 --recheck update $as_me by reconfiguring in the same conditions
6973 --file=FILE[:TEMPLATE]
6974 instantiate the configuration file FILE
6975 --header=FILE[:TEMPLATE]
6976 instantiate the configuration header FILE
6977
6978 Configuration files:
6979 $config_files
6980
6981 Configuration headers:
6982 $config_headers
6983
6984 Report bugs to <https://github.com/cisco/libsrtp/issues>."
6985
6986 _ACEOF
6987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6988 ac_cs_version="\\
6989 libsrtp2 config.status 2.8.0
6990 configured by $0, generated by GNU Autoconf 2.64,
6991 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6992
6993 Copyright (C) 2009 Free Software Foundation, Inc.
6994 This config.status script is free software; the Free Software Foundation
6995 gives unlimited permission to copy, distribute and modify it."
6996
6997 ac_pwd='$ac_pwd'
6998 srcdir='$srcdir'
6999 INSTALL='$INSTALL'
7000 test -n "\$AWK" || AWK=awk
7001 _ACEOF
7002
7003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7004 # The default lists apply if the user does not specify any file.
7005 ac_need_defaults=:
7006 while test $# != 0
7007 do
7008 case $1 in
7009 --*=*)
7010 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7011 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7012 ac_shift=:
7013 ;;
7014 *)
7015 ac_option=$1
7016 ac_optarg=$2
7017 ac_shift=shift
7018 ;;
7019 esac
7020
7021 case $ac_option in
7022 # Handling of the options.
7023 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7024 ac_cs_recheck=: ;;
7025 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7026 $as_echo "$ac_cs_version"; exit ;;
7027 --debug | --debu | --deb | --de | --d | -d )
7028 debug=: ;;
7029 --file | --fil | --fi | --f )
7030 $ac_shift
7031 case $ac_optarg in
7032 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7033 esac
7034 as_fn_append CONFIG_FILES " '$ac_optarg'"
7035 ac_need_defaults=false;;
7036 --header | --heade | --head | --hea )
7037 $ac_shift
7038 case $ac_optarg in
7039 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7040 esac
7041 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7042 ac_need_defaults=false;;
7043 --he | --h)
7044 # Conflict between --help and --header
7045 as_fn_error "ambiguous option: \`$1'
7046 Try \`$0 --help' for more information.";;
7047 --help | --hel | -h )
7048 $as_echo "$ac_cs_usage"; exit ;;
7049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7050 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7051 ac_cs_silent=: ;;
7052
7053 # This is an error.
7054 -*) as_fn_error "unrecognized option: \`$1'
7055 Try \`$0 --help' for more information." ;;
7056
7057 *) as_fn_append ac_config_targets " $1"
7058 ac_need_defaults=false ;;
7059
7060 esac
7061 shift
7062 done
7063
7064 ac_configure_extra_args=
7065
7066 if $ac_cs_silent; then
7067 exec 6>/dev/null
7068 ac_configure_extra_args="$ac_configure_extra_args --silent"
7069 fi
7070
7071 _ACEOF
7072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7073 if \$ac_cs_recheck; then
7074 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7075 shift
7076 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7077 CONFIG_SHELL='$SHELL'
7078 export CONFIG_SHELL
7079 exec "\$@"
7080 fi
7081
7082 _ACEOF
7083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7084 exec 5>>config.log
7085 {
7086 echo
7087 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7088 ## Running $as_me. ##
7089 _ASBOX
7090 $as_echo "$ac_log"
7091 } >&5
7092
7093 _ACEOF
7094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7095 _ACEOF
7096
7097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7098
7099 # Handling of arguments.
7100 for ac_config_target in $ac_config_targets
7101 do
7102 case $ac_config_target in
7103 "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
7104 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7105 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
7106 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7107 "fuzzer/Makefile") CONFIG_FILES="$CONFIG_FILES fuzzer/Makefile" ;;
7108 "libsrtp2.pc") CONFIG_FILES="$CONFIG_FILES libsrtp2.pc" ;;
7109
7110 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7111 esac
7112 done
7113
7114
7115 # If the user did not use the arguments to specify the items to instantiate,
7116 # then the envvar interface is used. Set only those that are not.
7117 # We use the long form for the default assignment because of an extremely
7118 # bizarre bug on SunOS 4.1.3.
7119 if $ac_need_defaults; then
7120 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7121 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7122 fi
7123
7124 # Have a temporary directory for convenience. Make it in the build tree
7125 # simply because there is no reason against having it here, and in addition,
7126 # creating and moving files from /tmp can sometimes cause problems.
7127 # Hook for its removal unless debugging.
7128 # Note that there is a small window in which the directory will not be cleaned:
7129 # after its creation but before its name has been assigned to `$tmp'.
7130 $debug ||
7131 {
7132 tmp=
7133 trap 'exit_status=$?
7134 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7135 ' 0
7136 trap 'as_fn_exit 1' 1 2 13 15
7137 }
7138 # Create a (secure) tmp directory for tmp files.
7139
7140 {
7141 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7142 test -n "$tmp" && test -d "$tmp"
7143 } ||
7144 {
7145 tmp=./conf$$-$RANDOM
7146 (umask 077 && mkdir "$tmp")
7147 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7148
7149 # Set up the scripts for CONFIG_FILES section.
7150 # No need to generate them if there are no CONFIG_FILES.
7151 # This happens for instance with `./config.status config.h'.
7152 if test -n "$CONFIG_FILES"; then
7153
7154
7155 ac_cr=`echo X | tr X '\015'`
7156 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7157 # But we know of no other shell where ac_cr would be empty at this
7158 # point, so we can use a bashism as a fallback.
7159 if test "x$ac_cr" = x; then
7160 eval ac_cr=\$\'\\r\'
7161 fi
7162 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7163 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7164 ac_cs_awk_cr='\r'
7165 else
7166 ac_cs_awk_cr=$ac_cr
7167 fi
7168
7169 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7170 _ACEOF
7171
7172
7173 {
7174 echo "cat >conf$$subs.awk <<_ACEOF" &&
7175 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7176 echo "_ACEOF"
7177 } >conf$$subs.sh ||
7178 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7179 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7180 ac_delim='%!_!# '
7181 for ac_last_try in false false false false false :; do
7182 . ./conf$$subs.sh ||
7183 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7184
7185 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7186 if test $ac_delim_n = $ac_delim_num; then
7187 break
7188 elif $ac_last_try; then
7189 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7190 else
7191 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7192 fi
7193 done
7194 rm -f conf$$subs.sh
7195
7196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7197 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7198 _ACEOF
7199 sed -n '
7200 h
7201 s/^/S["/; s/!.*/"]=/
7202 p
7203 g
7204 s/^[^!]*!//
7205 :repl
7206 t repl
7207 s/'"$ac_delim"'$//
7208 t delim
7209 :nl
7210 h
7211 s/\(.\{148\}\).*/\1/
7212 t more1
7213 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7214 p
7215 n
7216 b repl
7217 :more1
7218 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7219 p
7220 g
7221 s/.\{148\}//
7222 t nl
7223 :delim
7224 h
7225 s/\(.\{148\}\).*/\1/
7226 t more2
7227 s/["\\]/\\&/g; s/^/"/; s/$/"/
7228 p
7229 b
7230 :more2
7231 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7232 p
7233 g
7234 s/.\{148\}//
7235 t delim
7236 ' <conf$$subs.awk | sed '
7237 /^[^""]/{
7238 N
7239 s/\n//
7240 }
7241 ' >>$CONFIG_STATUS || ac_write_fail=1
7242 rm -f conf$$subs.awk
7243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7244 _ACAWK
7245 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7246 for (key in S) S_is_set[key] = 1
7247 FS = ""
7248
7249 }
7250 {
7251 line = $ 0
7252 nfields = split(line, field, "@")
7253 substed = 0
7254 len = length(field[1])
7255 for (i = 2; i < nfields; i++) {
7256 key = field[i]
7257 keylen = length(key)
7258 if (S_is_set[key]) {
7259 value = S[key]
7260 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7261 len += length(value) + length(field[++i])
7262 substed = 1
7263 } else
7264 len += 1 + keylen
7265 }
7266
7267 print line
7268 }
7269
7270 _ACAWK
7271 _ACEOF
7272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7273 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7274 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7275 else
7276 cat
7277 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7278 || as_fn_error "could not setup config files machinery" "$LINENO" 5
7279 _ACEOF
7280
7281 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7282 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7283 # trailing colons and then remove the whole line if VPATH becomes empty
7284 # (actually we leave an empty line to preserve line numbers).
7285 if test "x$srcdir" = x.; then
7286 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7287 s/:*\$(srcdir):*/:/
7288 s/:*\${srcdir}:*/:/
7289 s/:*@srcdir@:*/:/
7290 s/^\([^=]*=[ ]*\):*/\1/
7291 s/:*$//
7292 s/^[^=]*=[ ]*$//
7293 }'
7294 fi
7295
7296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7297 fi # test -n "$CONFIG_FILES"
7298
7299 # Set up the scripts for CONFIG_HEADERS section.
7300 # No need to generate them if there are no CONFIG_HEADERS.
7301 # This happens for instance with `./config.status Makefile'.
7302 if test -n "$CONFIG_HEADERS"; then
7303 cat >"$tmp/defines.awk" <<\_ACAWK ||
7304 BEGIN {
7305 _ACEOF
7306
7307 # Transform confdefs.h into an awk script `defines.awk', embedded as
7308 # here-document in config.status, that substitutes the proper values into
7309 # config.h.in to produce config.h.
7310
7311 # Create a delimiter string that does not exist in confdefs.h, to ease
7312 # handling of long lines.
7313 ac_delim='%!_!# '
7314 for ac_last_try in false false :; do
7315 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7316 if test -z "$ac_t"; then
7317 break
7318 elif $ac_last_try; then
7319 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7320 else
7321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7322 fi
7323 done
7324
7325 # For the awk script, D is an array of macro values keyed by name,
7326 # likewise P contains macro parameters if any. Preserve backslash
7327 # newline sequences.
7328
7329 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7330 sed -n '
7331 s/.\{148\}/&'"$ac_delim"'/g
7332 t rset
7333 :rset
7334 s/^[ ]*#[ ]*define[ ][ ]*/ /
7335 t def
7336 d
7337 :def
7338 s/\\$//
7339 t bsnl
7340 s/["\\]/\\&/g
7341 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7342 D["\1"]=" \3"/p
7343 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7344 d
7345 :bsnl
7346 s/["\\]/\\&/g
7347 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7348 D["\1"]=" \3\\\\\\n"\\/p
7349 t cont
7350 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7351 t cont
7352 d
7353 :cont
7354 n
7355 s/.\{148\}/&'"$ac_delim"'/g
7356 t clear
7357 :clear
7358 s/\\$//
7359 t bsnlc
7360 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7361 d
7362 :bsnlc
7363 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7364 b cont
7365 ' <confdefs.h | sed '
7366 s/'"$ac_delim"'/"\\\
7367 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7368
7369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7370 for (key in D) D_is_set[key] = 1
7371 FS = ""
7372 }
7373 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7374 line = \$ 0
7375 split(line, arg, " ")
7376 if (arg[1] == "#") {
7377 defundef = arg[2]
7378 mac1 = arg[3]
7379 } else {
7380 defundef = substr(arg[1], 2)
7381 mac1 = arg[2]
7382 }
7383 split(mac1, mac2, "(") #)
7384 macro = mac2[1]
7385 prefix = substr(line, 1, index(line, defundef) - 1)
7386 if (D_is_set[macro]) {
7387 # Preserve the white space surrounding the "#".
7388 print prefix "define", macro P[macro] D[macro]
7389 next
7390 } else {
7391 # Replace #undef with comments. This is necessary, for example,
7392 # in the case of _POSIX_SOURCE, which is predefined and required
7393 # on some systems where configure will not decide to define it.
7394 if (defundef == "undef") {
7395 print "/*", prefix defundef, macro, "*/"
7396 next
7397 }
7398 }
7399 }
7400 { print }
7401 _ACAWK
7402 _ACEOF
7403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7404 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7405 fi # test -n "$CONFIG_HEADERS"
7406
7407
7408 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7409 shift
7410 for ac_tag
7411 do
7412 case $ac_tag in
7413 :[FHLC]) ac_mode=$ac_tag; continue;;
7414 esac
7415 case $ac_mode$ac_tag in
7416 :[FHL]*:*);;
7417 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7418 :[FH]-) ac_tag=-:-;;
7419 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7420 esac
7421 ac_save_IFS=$IFS
7422 IFS=:
7423 set x $ac_tag
7424 IFS=$ac_save_IFS
7425 shift
7426 ac_file=$1
7427 shift
7428
7429 case $ac_mode in
7430 :L) ac_source=$1;;
7431 :[FH])
7432 ac_file_inputs=
7433 for ac_f
7434 do
7435 case $ac_f in
7436 -) ac_f="$tmp/stdin";;
7437 *) # Look for the file first in the build tree, then in the source tree
7438 # (if the path is not absolute). The absolute path cannot be DOS-style,
7439 # because $ac_f cannot contain `:'.
7440 test -f "$ac_f" ||
7441 case $ac_f in
7442 [\\/$]*) false;;
7443 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7444 esac ||
7445 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7446 esac
7447 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7448 as_fn_append ac_file_inputs " '$ac_f'"
7449 done
7450
7451 # Let's still pretend it is `configure' which instantiates (i.e., don't
7452 # use $as_me), people would be surprised to read:
7453 # /* config.h. Generated by config.status. */
7454 configure_input='Generated from '`
7455 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7456 `' by configure.'
7457 if test x"$ac_file" != x-; then
7458 configure_input="$ac_file. $configure_input"
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7460 $as_echo "$as_me: creating $ac_file" >&6;}
7461 fi
7462 # Neutralize special characters interpreted by sed in replacement strings.
7463 case $configure_input in #(
7464 *\&* | *\|* | *\\* )
7465 ac_sed_conf_input=`$as_echo "$configure_input" |
7466 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7467 *) ac_sed_conf_input=$configure_input;;
7468 esac
7469
7470 case $ac_tag in
7471 *:-:* | *:-) cat >"$tmp/stdin" \
7472 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7473 esac
7474 ;;
7475 esac
7476
7477 ac_dir=`$as_dirname -- "$ac_file" ||
7478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7479 X"$ac_file" : 'X\(//\)[^/]' \| \
7480 X"$ac_file" : 'X\(//\)$' \| \
7481 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7482 $as_echo X"$ac_file" |
7483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7484 s//\1/
7485 q
7486 }
7487 /^X\(\/\/\)[^/].*/{
7488 s//\1/
7489 q
7490 }
7491 /^X\(\/\/\)$/{
7492 s//\1/
7493 q
7494 }
7495 /^X\(\/\).*/{
7496 s//\1/
7497 q
7498 }
7499 s/.*/./; q'`
7500 as_dir="$ac_dir"; as_fn_mkdir_p
7501 ac_builddir=.
7502
7503 case "$ac_dir" in
7504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7505 *)
7506 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7507 # A ".." for each directory in $ac_dir_suffix.
7508 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7509 case $ac_top_builddir_sub in
7510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7512 esac ;;
7513 esac
7514 ac_abs_top_builddir=$ac_pwd
7515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7516 # for backward compatibility:
7517 ac_top_builddir=$ac_top_build_prefix
7518
7519 case $srcdir in
7520 .) # We are building in place.
7521 ac_srcdir=.
7522 ac_top_srcdir=$ac_top_builddir_sub
7523 ac_abs_top_srcdir=$ac_pwd ;;
7524 [\\/]* | ?:[\\/]* ) # Absolute name.
7525 ac_srcdir=$srcdir$ac_dir_suffix;
7526 ac_top_srcdir=$srcdir
7527 ac_abs_top_srcdir=$srcdir ;;
7528 *) # Relative name.
7529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7530 ac_top_srcdir=$ac_top_build_prefix$srcdir
7531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7532 esac
7533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7534
7535
7536 case $ac_mode in
7537 :F)
7538 #
7539 # CONFIG_FILE
7540 #
7541
7542 case $INSTALL in
7543 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7544 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7545 esac
7546 _ACEOF
7547
7548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7549 # If the template does not know about datarootdir, expand it.
7550 # FIXME: This hack should be removed a few years after 2.60.
7551 ac_datarootdir_hack=; ac_datarootdir_seen=
7552 ac_sed_dataroot='
7553 /datarootdir/ {
7554 p
7555 q
7556 }
7557 /@datadir@/p
7558 /@docdir@/p
7559 /@infodir@/p
7560 /@localedir@/p
7561 /@mandir@/p'
7562 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7563 *datarootdir*) ac_datarootdir_seen=yes;;
7564 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7566 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7567 _ACEOF
7568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7569 ac_datarootdir_hack='
7570 s&@datadir@&$datadir&g
7571 s&@docdir@&$docdir&g
7572 s&@infodir@&$infodir&g
7573 s&@localedir@&$localedir&g
7574 s&@mandir@&$mandir&g
7575 s&\\\${datarootdir}&$datarootdir&g' ;;
7576 esac
7577 _ACEOF
7578
7579 # Neutralize VPATH when `$srcdir' = `.'.
7580 # Shell code in configure.ac might set extrasub.
7581 # FIXME: do we really want to maintain this feature?
7582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7583 ac_sed_extra="$ac_vpsub
7584 $extrasub
7585 _ACEOF
7586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7587 :t
7588 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7589 s|@configure_input@|$ac_sed_conf_input|;t t
7590 s&@top_builddir@&$ac_top_builddir_sub&;t t
7591 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7592 s&@srcdir@&$ac_srcdir&;t t
7593 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7594 s&@top_srcdir@&$ac_top_srcdir&;t t
7595 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7596 s&@builddir@&$ac_builddir&;t t
7597 s&@abs_builddir@&$ac_abs_builddir&;t t
7598 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7599 s&@INSTALL@&$ac_INSTALL&;t t
7600 $ac_datarootdir_hack
7601 "
7602 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7603 || as_fn_error "could not create $ac_file" "$LINENO" 5
7604
7605 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7606 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7607 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7609 which seems to be undefined. Please make sure it is defined." >&5
7610 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7611 which seems to be undefined. Please make sure it is defined." >&2;}
7612
7613 rm -f "$tmp/stdin"
7614 case $ac_file in
7615 -) cat "$tmp/out" && rm -f "$tmp/out";;
7616 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7617 esac \
7618 || as_fn_error "could not create $ac_file" "$LINENO" 5
7619 ;;
7620 :H)
7621 #
7622 # CONFIG_HEADER
7623 #
7624 if test x"$ac_file" != x-; then
7625 {
7626 $as_echo "/* $configure_input */" \
7627 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7628 } >"$tmp/config.h" \
7629 || as_fn_error "could not create $ac_file" "$LINENO" 5
7630 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7632 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7633 else
7634 rm -f "$ac_file"
7635 mv "$tmp/config.h" "$ac_file" \
7636 || as_fn_error "could not create $ac_file" "$LINENO" 5
7637 fi
7638 else
7639 $as_echo "/* $configure_input */" \
7640 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7641 || as_fn_error "could not create -" "$LINENO" 5
7642 fi
7643 ;;
7644
7645
7646 esac
7647
7648 done # for ac_tag
7649
7650
7651 as_fn_exit 0
7652 _ACEOF
7653 ac_clean_files=$ac_clean_files_save
7654
7655 test $ac_write_fail = 0 ||
7656 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7657
7658
7659 # configure is writing to config.log, and then calls config.status.
7660 # config.status does its own redirection, appending to config.log.
7661 # Unfortunately, on DOS this fails, as config.log is still kept open
7662 # by configure, so config.status won't be able to write to it; its
7663 # output is simply discarded. So we exec the FD to /dev/null,
7664 # effectively closing config.log, so it can be properly (re)opened and
7665 # appended to by config.status. When coming back to configure, we
7666 # need to make the FD available again.
7667 if test "$no_create" != yes; then
7668 ac_cs_success=:
7669 ac_config_status_args=
7670 test "$silent" = yes &&
7671 ac_config_status_args="$ac_config_status_args --quiet"
7672 exec 5>/dev/null
7673 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7674 exec 5>>config.log
7675 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7676 # would make configure fail if this is the last instruction.
7677 $ac_cs_success || as_fn_exit $?
7678 fi
7679 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7681 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7682 fi
7683
7684
7685 # This is needed when building outside the source dir.
7686 as_dir=crypto/cipher; as_fn_mkdir_p
7687 as_dir=crypto/hash; as_fn_mkdir_p
7688 as_dir=crypto/kernel; as_fn_mkdir_p
7689 as_dir=crypto/math; as_fn_mkdir_p
7690 as_dir=crypto/replay; as_fn_mkdir_p
7691 as_dir=crypto/test; as_fn_mkdir_p
7692 as_dir=doc; as_fn_mkdir_p
7693 as_dir=srtp; as_fn_mkdir_p
7694 as_dir=test; as_fn_mkdir_p