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