]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - configure
Vendor import of Unbound 1.6.5.
[FreeBSD/FreeBSD.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.6.5.
4 #
5 # Report bugs to <unbound-bugs@nlnetlabs.nl>.
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
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
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
102 IFS=$as_save_IFS
103
104      ;;
105 esac
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.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
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.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export 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.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $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
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if 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
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -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
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: unbound-bugs@nlnetlabs.nl about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='unbound'
592 PACKAGE_TARNAME='unbound'
593 PACKAGE_VERSION='1.6.5'
594 PACKAGE_STRING='unbound 1.6.5'
595 PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='LTLIBOBJS
635 date
636 version
637 INSTALLTARGET
638 ALLTARGET
639 SOURCEFILE
640 SOURCEDETERMINE
641 IPSECMOD_HEADER
642 IPSECMOD_OBJ
643 DNSCRYPT_OBJ
644 DNSCRYPT_SRC
645 ENABLE_DNSCRYPT
646 ENABLE_DNSCRYPT_XCHACHA20
647 DNSTAP_OBJ
648 DNSTAP_SRC
649 opt_dnstap_socket_path
650 ENABLE_DNSTAP
651 PROTOC_C
652 UBSYMS
653 EXTRALINK
654 COMMON_OBJ_ALL_SYMBOLS
655 LIBOBJ_WITHOUT_CTIME
656 LIBOBJ_WITHOUT_CTIMEARC4
657 WIN_CHECKCONF_OBJ_LINK
658 WIN_CONTROL_OBJ_LINK
659 WIN_UBANCHOR_OBJ_LINK
660 WIN_HOST_OBJ_LINK
661 WIN_DAEMON_OBJ_LINK
662 WIN_DAEMON_OBJ
663 WIN_DAEMON_SRC
664 WINAPPS
665 WINDRES
666 CHECKLOCK_OBJ
667 USE_SYSTEMD_FALSE
668 USE_SYSTEMD_TRUE
669 SYSTEMD_DAEMON_LIBS
670 SYSTEMD_DAEMON_CFLAGS
671 SYSTEMD_LIBS
672 SYSTEMD_CFLAGS
673 PKG_CONFIG_LIBDIR
674 PKG_CONFIG_PATH
675 PKG_CONFIG
676 staticexe
677 PC_LIBEVENT_DEPENDENCY
678 UNBOUND_EVENT_UNINSTALL
679 UNBOUND_EVENT_INSTALL
680 SUBNET_HEADER
681 SUBNET_OBJ
682 SSLLIB
683 HAVE_SSL
684 CONFIG_DATE
685 NETBSD_LINTFLAGS
686 PYUNBOUND_UNINSTALL
687 PYUNBOUND_INSTALL
688 PYUNBOUND_TARGET
689 PYUNBOUND_OBJ
690 WITH_PYUNBOUND
691 PYTHONMOD_UNINSTALL
692 PYTHONMOD_INSTALL
693 PYTHONMOD_HEADER
694 PYTHONMOD_OBJ
695 WITH_PYTHONMODULE
696 swig
697 SWIG_LIB
698 SWIG
699 PC_PY_DEPENDENCY
700 PY_MAJOR_VERSION
701 PYTHON_SITE_PKG
702 PYTHON_LDFLAGS
703 PYTHON_CPPFLAGS
704 PYTHON
705 PYTHON_VERSION
706 PTHREAD_CFLAGS_ONLY
707 PTHREAD_CFLAGS
708 PTHREAD_LIBS
709 PTHREAD_CC
710 ax_pthread_config
711 RUNTIME_PATH
712 LIBOBJS
713 LT_SYS_LIBRARY_PATH
714 OTOOL64
715 OTOOL
716 LIPO
717 NMEDIT
718 DSYMUTIL
719 MANIFEST_TOOL
720 AWK
721 RANLIB
722 ac_ct_AR
723 DLLTOOL
724 OBJDUMP
725 LN_S
726 NM
727 ac_ct_DUMPBIN
728 DUMPBIN
729 LD
730 FGREP
731 SED
732 LIBTOOL
733 AR
734 host_os
735 host_vendor
736 host_cpu
737 host
738 build_os
739 build_vendor
740 build_cpu
741 build
742 libtool
743 STRIP
744 doxygen
745 YFLAGS
746 YACC
747 LEXLIB
748 LEX_OUTPUT_ROOT
749 LEX
750 debug_enabled
751 DEPFLAG
752 UNBOUND_USERNAME
753 UNBOUND_ROOTCERT_FILE
754 UNBOUND_ROOTKEY_FILE
755 UNBOUND_PIDFILE
756 UNBOUND_SHARE_DIR
757 UNBOUND_CHROOT_DIR
758 UNBOUND_RUN_DIR
759 ub_conf_dir
760 ub_conf_file
761 UNBOUND_LOCALSTATE_DIR
762 UNBOUND_SYSCONF_DIR
763 UNBOUND_SBIN_DIR
764 EGREP
765 GREP
766 CPP
767 OBJEXT
768 EXEEXT
769 ac_ct_CC
770 CPPFLAGS
771 LDFLAGS
772 CFLAGS
773 CC
774 LIBUNBOUND_AGE
775 LIBUNBOUND_REVISION
776 LIBUNBOUND_CURRENT
777 UNBOUND_VERSION_MICRO
778 UNBOUND_VERSION_MINOR
779 UNBOUND_VERSION_MAJOR
780 target_alias
781 host_alias
782 build_alias
783 LIBS
784 ECHO_T
785 ECHO_N
786 ECHO_C
787 DEFS
788 mandir
789 localedir
790 libdir
791 psdir
792 pdfdir
793 dvidir
794 htmldir
795 infodir
796 docdir
797 oldincludedir
798 includedir
799 localstatedir
800 sharedstatedir
801 sysconfdir
802 datadir
803 datarootdir
804 libexecdir
805 sbindir
806 bindir
807 program_transform_name
808 prefix
809 exec_prefix
810 PACKAGE_URL
811 PACKAGE_BUGREPORT
812 PACKAGE_STRING
813 PACKAGE_VERSION
814 PACKAGE_TARNAME
815 PACKAGE_NAME
816 PATH_SEPARATOR
817 SHELL'
818 ac_subst_files=''
819 ac_user_opts='
820 enable_option_checking
821 with_conf_file
822 with_run_dir
823 with_chroot_dir
824 with_share_dir
825 with_pidfile
826 with_rootkey_file
827 with_rootcert_file
828 with_username
829 enable_checking
830 enable_debug
831 enable_flto
832 enable_pie
833 enable_relro_now
834 enable_shared
835 enable_static
836 with_pic
837 enable_fast_install
838 with_aix_soname
839 with_gnu_ld
840 with_sysroot
841 enable_libtool_lock
842 enable_rpath
843 enable_largefile
844 enable_alloc_checks
845 enable_alloc_lite
846 enable_alloc_nonregional
847 with_pthreads
848 with_solaris_threads
849 with_pyunbound
850 with_pythonmodule
851 with_nss
852 with_nettle
853 with_ssl
854 enable_sha1
855 enable_sha2
856 enable_subnet
857 enable_gost
858 enable_ecdsa
859 enable_dsa
860 enable_ed25519
861 enable_event_api
862 enable_tfo_client
863 enable_tfo_server
864 with_libevent
865 with_libexpat
866 enable_static_exe
867 enable_systemd
868 enable_lock_checks
869 enable_allsymbols
870 enable_dnstap
871 with_dnstap_socket_path
872 with_protobuf_c
873 with_libfstrm
874 enable_dnscrypt
875 with_libsodium
876 enable_cachedb
877 enable_ipsecmod
878 with_libunbound_only
879 '
880       ac_precious_vars='build_alias
881 host_alias
882 target_alias
883 CC
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
888 CPP
889 YACC
890 YFLAGS
891 LT_SYS_LIBRARY_PATH
892 PYTHON_VERSION
893 PKG_CONFIG
894 PKG_CONFIG_PATH
895 PKG_CONFIG_LIBDIR
896 SYSTEMD_CFLAGS
897 SYSTEMD_LIBS
898 SYSTEMD_DAEMON_CFLAGS
899 SYSTEMD_DAEMON_LIBS'
900
901
902 # Initialize some variables set by options.
903 ac_init_help=
904 ac_init_version=false
905 ac_unrecognized_opts=
906 ac_unrecognized_sep=
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
909 cache_file=/dev/null
910 exec_prefix=NONE
911 no_create=
912 no_recursion=
913 prefix=NONE
914 program_prefix=NONE
915 program_suffix=NONE
916 program_transform_name=s,x,x,
917 silent=
918 site=
919 srcdir=
920 verbose=
921 x_includes=NONE
922 x_libraries=NONE
923
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir='${exec_prefix}/bin'
931 sbindir='${exec_prefix}/sbin'
932 libexecdir='${exec_prefix}/libexec'
933 datarootdir='${prefix}/share'
934 datadir='${datarootdir}'
935 sysconfdir='${prefix}/etc'
936 sharedstatedir='${prefix}/com'
937 localstatedir='${prefix}/var'
938 includedir='${prefix}/include'
939 oldincludedir='/usr/include'
940 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
941 infodir='${datarootdir}/info'
942 htmldir='${docdir}'
943 dvidir='${docdir}'
944 pdfdir='${docdir}'
945 psdir='${docdir}'
946 libdir='${exec_prefix}/lib'
947 localedir='${datarootdir}/locale'
948 mandir='${datarootdir}/man'
949
950 ac_prev=
951 ac_dashdash=
952 for ac_option
953 do
954   # If the previous option needs an argument, assign it.
955   if test -n "$ac_prev"; then
956     eval $ac_prev=\$ac_option
957     ac_prev=
958     continue
959   fi
960
961   case $ac_option in
962   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963   *=)   ac_optarg= ;;
964   *)    ac_optarg=yes ;;
965   esac
966
967   # Accept the important Cygnus configure options, so we can diagnose typos.
968
969   case $ac_dashdash$ac_option in
970   --)
971     ac_dashdash=yes ;;
972
973   -bindir | --bindir | --bindi | --bind | --bin | --bi)
974     ac_prev=bindir ;;
975   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976     bindir=$ac_optarg ;;
977
978   -build | --build | --buil | --bui | --bu)
979     ac_prev=build_alias ;;
980   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
981     build_alias=$ac_optarg ;;
982
983   -cache-file | --cache-file | --cache-fil | --cache-fi \
984   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985     ac_prev=cache_file ;;
986   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988     cache_file=$ac_optarg ;;
989
990   --config-cache | -C)
991     cache_file=config.cache ;;
992
993   -datadir | --datadir | --datadi | --datad)
994     ac_prev=datadir ;;
995   -datadir=* | --datadir=* | --datadi=* | --datad=*)
996     datadir=$ac_optarg ;;
997
998   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999   | --dataroo | --dataro | --datar)
1000     ac_prev=datarootdir ;;
1001   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003     datarootdir=$ac_optarg ;;
1004
1005   -disable-* | --disable-*)
1006     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007     # Reject names that are not valid shell variable names.
1008     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009       as_fn_error $? "invalid feature name: $ac_useropt"
1010     ac_useropt_orig=$ac_useropt
1011     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012     case $ac_user_opts in
1013       *"
1014 "enable_$ac_useropt"
1015 "*) ;;
1016       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1017          ac_unrecognized_sep=', ';;
1018     esac
1019     eval enable_$ac_useropt=no ;;
1020
1021   -docdir | --docdir | --docdi | --doc | --do)
1022     ac_prev=docdir ;;
1023   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1024     docdir=$ac_optarg ;;
1025
1026   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027     ac_prev=dvidir ;;
1028   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1029     dvidir=$ac_optarg ;;
1030
1031   -enable-* | --enable-*)
1032     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1033     # Reject names that are not valid shell variable names.
1034     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035       as_fn_error $? "invalid feature name: $ac_useropt"
1036     ac_useropt_orig=$ac_useropt
1037     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038     case $ac_user_opts in
1039       *"
1040 "enable_$ac_useropt"
1041 "*) ;;
1042       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1043          ac_unrecognized_sep=', ';;
1044     esac
1045     eval enable_$ac_useropt=\$ac_optarg ;;
1046
1047   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1048   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1049   | --exec | --exe | --ex)
1050     ac_prev=exec_prefix ;;
1051   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1052   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1053   | --exec=* | --exe=* | --ex=*)
1054     exec_prefix=$ac_optarg ;;
1055
1056   -gas | --gas | --ga | --g)
1057     # Obsolete; use --with-gas.
1058     with_gas=yes ;;
1059
1060   -help | --help | --hel | --he | -h)
1061     ac_init_help=long ;;
1062   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1063     ac_init_help=recursive ;;
1064   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1065     ac_init_help=short ;;
1066
1067   -host | --host | --hos | --ho)
1068     ac_prev=host_alias ;;
1069   -host=* | --host=* | --hos=* | --ho=*)
1070     host_alias=$ac_optarg ;;
1071
1072   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1073     ac_prev=htmldir ;;
1074   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1075   | --ht=*)
1076     htmldir=$ac_optarg ;;
1077
1078   -includedir | --includedir | --includedi | --included | --include \
1079   | --includ | --inclu | --incl | --inc)
1080     ac_prev=includedir ;;
1081   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1082   | --includ=* | --inclu=* | --incl=* | --inc=*)
1083     includedir=$ac_optarg ;;
1084
1085   -infodir | --infodir | --infodi | --infod | --info | --inf)
1086     ac_prev=infodir ;;
1087   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1088     infodir=$ac_optarg ;;
1089
1090   -libdir | --libdir | --libdi | --libd)
1091     ac_prev=libdir ;;
1092   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1093     libdir=$ac_optarg ;;
1094
1095   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1096   | --libexe | --libex | --libe)
1097     ac_prev=libexecdir ;;
1098   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1099   | --libexe=* | --libex=* | --libe=*)
1100     libexecdir=$ac_optarg ;;
1101
1102   -localedir | --localedir | --localedi | --localed | --locale)
1103     ac_prev=localedir ;;
1104   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1105     localedir=$ac_optarg ;;
1106
1107   -localstatedir | --localstatedir | --localstatedi | --localstated \
1108   | --localstate | --localstat | --localsta | --localst | --locals)
1109     ac_prev=localstatedir ;;
1110   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1111   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1112     localstatedir=$ac_optarg ;;
1113
1114   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115     ac_prev=mandir ;;
1116   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1117     mandir=$ac_optarg ;;
1118
1119   -nfp | --nfp | --nf)
1120     # Obsolete; use --without-fp.
1121     with_fp=no ;;
1122
1123   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1124   | --no-cr | --no-c | -n)
1125     no_create=yes ;;
1126
1127   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1128   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129     no_recursion=yes ;;
1130
1131   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1132   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1133   | --oldin | --oldi | --old | --ol | --o)
1134     ac_prev=oldincludedir ;;
1135   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1136   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1137   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1138     oldincludedir=$ac_optarg ;;
1139
1140   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141     ac_prev=prefix ;;
1142   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1143     prefix=$ac_optarg ;;
1144
1145   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1146   | --program-pre | --program-pr | --program-p)
1147     ac_prev=program_prefix ;;
1148   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1149   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1150     program_prefix=$ac_optarg ;;
1151
1152   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1153   | --program-suf | --program-su | --program-s)
1154     ac_prev=program_suffix ;;
1155   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1156   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1157     program_suffix=$ac_optarg ;;
1158
1159   -program-transform-name | --program-transform-name \
1160   | --program-transform-nam | --program-transform-na \
1161   | --program-transform-n | --program-transform- \
1162   | --program-transform | --program-transfor \
1163   | --program-transfo | --program-transf \
1164   | --program-trans | --program-tran \
1165   | --progr-tra | --program-tr | --program-t)
1166     ac_prev=program_transform_name ;;
1167   -program-transform-name=* | --program-transform-name=* \
1168   | --program-transform-nam=* | --program-transform-na=* \
1169   | --program-transform-n=* | --program-transform-=* \
1170   | --program-transform=* | --program-transfor=* \
1171   | --program-transfo=* | --program-transf=* \
1172   | --program-trans=* | --program-tran=* \
1173   | --progr-tra=* | --program-tr=* | --program-t=*)
1174     program_transform_name=$ac_optarg ;;
1175
1176   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1177     ac_prev=pdfdir ;;
1178   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1179     pdfdir=$ac_optarg ;;
1180
1181   -psdir | --psdir | --psdi | --psd | --ps)
1182     ac_prev=psdir ;;
1183   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184     psdir=$ac_optarg ;;
1185
1186   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1187   | -silent | --silent | --silen | --sile | --sil)
1188     silent=yes ;;
1189
1190   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1191     ac_prev=sbindir ;;
1192   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1193   | --sbi=* | --sb=*)
1194     sbindir=$ac_optarg ;;
1195
1196   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1197   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1198   | --sharedst | --shareds | --shared | --share | --shar \
1199   | --sha | --sh)
1200     ac_prev=sharedstatedir ;;
1201   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1202   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1203   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1204   | --sha=* | --sh=*)
1205     sharedstatedir=$ac_optarg ;;
1206
1207   -site | --site | --sit)
1208     ac_prev=site ;;
1209   -site=* | --site=* | --sit=*)
1210     site=$ac_optarg ;;
1211
1212   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1213     ac_prev=srcdir ;;
1214   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1215     srcdir=$ac_optarg ;;
1216
1217   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1218   | --syscon | --sysco | --sysc | --sys | --sy)
1219     ac_prev=sysconfdir ;;
1220   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1221   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1222     sysconfdir=$ac_optarg ;;
1223
1224   -target | --target | --targe | --targ | --tar | --ta | --t)
1225     ac_prev=target_alias ;;
1226   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1227     target_alias=$ac_optarg ;;
1228
1229   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1230     verbose=yes ;;
1231
1232   -version | --version | --versio | --versi | --vers | -V)
1233     ac_init_version=: ;;
1234
1235   -with-* | --with-*)
1236     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1237     # Reject names that are not valid shell variable names.
1238     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239       as_fn_error $? "invalid package name: $ac_useropt"
1240     ac_useropt_orig=$ac_useropt
1241     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242     case $ac_user_opts in
1243       *"
1244 "with_$ac_useropt"
1245 "*) ;;
1246       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1247          ac_unrecognized_sep=', ';;
1248     esac
1249     eval with_$ac_useropt=\$ac_optarg ;;
1250
1251   -without-* | --without-*)
1252     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253     # Reject names that are not valid shell variable names.
1254     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255       as_fn_error $? "invalid package name: $ac_useropt"
1256     ac_useropt_orig=$ac_useropt
1257     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258     case $ac_user_opts in
1259       *"
1260 "with_$ac_useropt"
1261 "*) ;;
1262       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263          ac_unrecognized_sep=', ';;
1264     esac
1265     eval with_$ac_useropt=no ;;
1266
1267   --x)
1268     # Obsolete; use --with-x.
1269     with_x=yes ;;
1270
1271   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272   | --x-incl | --x-inc | --x-in | --x-i)
1273     ac_prev=x_includes ;;
1274   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276     x_includes=$ac_optarg ;;
1277
1278   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280     ac_prev=x_libraries ;;
1281   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283     x_libraries=$ac_optarg ;;
1284
1285   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1286 Try \`$0 --help' for more information"
1287     ;;
1288
1289   *=*)
1290     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1291     # Reject names that are not valid shell variable names.
1292     case $ac_envvar in #(
1293       '' | [0-9]* | *[!_$as_cr_alnum]* )
1294       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1295     esac
1296     eval $ac_envvar=\$ac_optarg
1297     export $ac_envvar ;;
1298
1299   *)
1300     # FIXME: should be removed in autoconf 3.0.
1301     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1305     ;;
1306
1307   esac
1308 done
1309
1310 if test -n "$ac_prev"; then
1311   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312   as_fn_error $? "missing argument to $ac_option"
1313 fi
1314
1315 if test -n "$ac_unrecognized_opts"; then
1316   case $enable_option_checking in
1317     no) ;;
1318     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1319     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1320   esac
1321 fi
1322
1323 # Check all directory arguments for consistency.
1324 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1325                 datadir sysconfdir sharedstatedir localstatedir includedir \
1326                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1327                 libdir localedir mandir
1328 do
1329   eval ac_val=\$$ac_var
1330   # Remove trailing slashes.
1331   case $ac_val in
1332     */ )
1333       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1334       eval $ac_var=\$ac_val;;
1335   esac
1336   # Be sure to have absolute directory names.
1337   case $ac_val in
1338     [\\/$]* | ?:[\\/]* )  continue;;
1339     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1340   esac
1341   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1342 done
1343
1344 # There might be people who depend on the old broken behavior: `$host'
1345 # used to hold the argument of --host etc.
1346 # FIXME: To remove some day.
1347 build=$build_alias
1348 host=$host_alias
1349 target=$target_alias
1350
1351 # FIXME: To remove some day.
1352 if test "x$host_alias" != x; then
1353   if test "x$build_alias" = x; then
1354     cross_compiling=maybe
1355   elif test "x$build_alias" != "x$host_alias"; then
1356     cross_compiling=yes
1357   fi
1358 fi
1359
1360 ac_tool_prefix=
1361 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1362
1363 test "$silent" = yes && exec 6>/dev/null
1364
1365
1366 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1367 ac_ls_di=`ls -di .` &&
1368 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1369   as_fn_error $? "working directory cannot be determined"
1370 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1371   as_fn_error $? "pwd does not report name of working directory"
1372
1373
1374 # Find the source files, if location was not specified.
1375 if test -z "$srcdir"; then
1376   ac_srcdir_defaulted=yes
1377   # Try the directory containing this script, then the parent directory.
1378   ac_confdir=`$as_dirname -- "$as_myself" ||
1379 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1380          X"$as_myself" : 'X\(//\)[^/]' \| \
1381          X"$as_myself" : 'X\(//\)$' \| \
1382          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1383 $as_echo X"$as_myself" |
1384     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1385             s//\1/
1386             q
1387           }
1388           /^X\(\/\/\)[^/].*/{
1389             s//\1/
1390             q
1391           }
1392           /^X\(\/\/\)$/{
1393             s//\1/
1394             q
1395           }
1396           /^X\(\/\).*/{
1397             s//\1/
1398             q
1399           }
1400           s/.*/./; q'`
1401   srcdir=$ac_confdir
1402   if test ! -r "$srcdir/$ac_unique_file"; then
1403     srcdir=..
1404   fi
1405 else
1406   ac_srcdir_defaulted=no
1407 fi
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1410   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1411 fi
1412 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1413 ac_abs_confdir=`(
1414         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1415         pwd)`
1416 # When building in place, set srcdir=.
1417 if test "$ac_abs_confdir" = "$ac_pwd"; then
1418   srcdir=.
1419 fi
1420 # Remove unnecessary trailing slashes from srcdir.
1421 # Double slashes in file names in object file debugging info
1422 # mess up M-x gdb in Emacs.
1423 case $srcdir in
1424 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1425 esac
1426 for ac_var in $ac_precious_vars; do
1427   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1428   eval ac_env_${ac_var}_value=\$${ac_var}
1429   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1430   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1431 done
1432
1433 #
1434 # Report the --help message.
1435 #
1436 if test "$ac_init_help" = "long"; then
1437   # Omit some internal or obsolete options to make the list less imposing.
1438   # This message is too long to be a string in the A/UX 3.1 sh.
1439   cat <<_ACEOF
1440 \`configure' configures unbound 1.6.5 to adapt to many kinds of systems.
1441
1442 Usage: $0 [OPTION]... [VAR=VALUE]...
1443
1444 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445 VAR=VALUE.  See below for descriptions of some of the useful variables.
1446
1447 Defaults for the options are specified in brackets.
1448
1449 Configuration:
1450   -h, --help              display this help and exit
1451       --help=short        display options specific to this package
1452       --help=recursive    display the short help of all the included packages
1453   -V, --version           display version information and exit
1454   -q, --quiet, --silent   do not print \`checking ...' messages
1455       --cache-file=FILE   cache test results in FILE [disabled]
1456   -C, --config-cache      alias for \`--cache-file=config.cache'
1457   -n, --no-create         do not create output files
1458       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1459
1460 Installation directories:
1461   --prefix=PREFIX         install architecture-independent files in PREFIX
1462                           [$ac_default_prefix]
1463   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1464                           [PREFIX]
1465
1466 By default, \`make install' will install all the files in
1467 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1468 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469 for instance \`--prefix=\$HOME'.
1470
1471 For better control, use the options below.
1472
1473 Fine tuning of the installation directories:
1474   --bindir=DIR            user executables [EPREFIX/bin]
1475   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1476   --libexecdir=DIR        program executables [EPREFIX/libexec]
1477   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1478   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1479   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1480   --libdir=DIR            object code libraries [EPREFIX/lib]
1481   --includedir=DIR        C header files [PREFIX/include]
1482   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1483   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1484   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1485   --infodir=DIR           info documentation [DATAROOTDIR/info]
1486   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1487   --mandir=DIR            man documentation [DATAROOTDIR/man]
1488   --docdir=DIR            documentation root [DATAROOTDIR/doc/unbound]
1489   --htmldir=DIR           html documentation [DOCDIR]
1490   --dvidir=DIR            dvi documentation [DOCDIR]
1491   --pdfdir=DIR            pdf documentation [DOCDIR]
1492   --psdir=DIR             ps documentation [DOCDIR]
1493 _ACEOF
1494
1495   cat <<\_ACEOF
1496
1497 System types:
1498   --build=BUILD     configure for building on BUILD [guessed]
1499   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1500 _ACEOF
1501 fi
1502
1503 if test -n "$ac_init_help"; then
1504   case $ac_init_help in
1505      short | recursive ) echo "Configuration of unbound 1.6.5:";;
1506    esac
1507   cat <<\_ACEOF
1508
1509 Optional Features:
1510   --disable-option-checking  ignore unrecognized --enable/--with options
1511   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1512   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1513   --enable-checking       Enable warnings, asserts, makefile-dependencies
1514   --enable-debug          same as enable-checking
1515   --disable-flto          Disable link-time optimization (gcc specific option)
1516   --enable-pie            Enable Position-Independent Executable (eg. to fully
1517                           benefit from ASLR, small performance penalty)
1518   --enable-relro-now      Enable full relocation binding at load-time (RELRO
1519                           NOW, to protect GOT and .dtor areas)
1520   --enable-shared[=PKGS]  build shared libraries [default=yes]
1521   --enable-static[=PKGS]  build static libraries [default=yes]
1522   --enable-fast-install[=PKGS]
1523                           optimize for fast installation [default=yes]
1524   --disable-libtool-lock  avoid locking (might break parallel builds)
1525   --disable-rpath         disable hardcoded rpath (default=enabled)
1526   --disable-largefile     omit support for large files
1527   --enable-alloc-checks   enable to memory allocation statistics, for debug
1528                           purposes
1529   --enable-alloc-lite     enable for lightweight alloc assertions, for debug
1530                           purposes
1531   --enable-alloc-nonregional
1532                           enable nonregional allocs, slow but exposes regional
1533                           allocations to other memory purifiers, for debug
1534                           purposes
1535   --disable-sha1          Disable SHA1 RRSIG support, does not disable nsec3
1536                           support
1537   --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1538   --enable-subnet         Enable client subnet
1539   --disable-gost          Disable GOST support
1540   --disable-ecdsa         Disable ECDSA support
1541   --disable-dsa           Disable DSA support
1542   --disable-ed25519       Disable ED25519 support
1543   --enable-event-api      Enable (experimental) pluggable event base
1544                           libunbound API installed to unbound-event.h
1545   --enable-tfo-client     Enable TCP Fast Open for client mode
1546   --enable-tfo-server     Enable TCP Fast Open for server mode
1547   --enable-static-exe     enable to compile executables statically against
1548                           (event) libs, for debug purposes
1549   --enable-systemd        compile with systemd support
1550   --enable-lock-checks    enable to check lock and unlock calls, for debug
1551                           purposes
1552   --enable-allsymbols     export all symbols from libunbound and link binaries
1553                           to it, smaller install size but libunbound export
1554                           table is polluted by internal symbols
1555   --enable-dnstap         Enable dnstap support (requires fstrm, protobuf-c)
1556   --enable-dnscrypt       Enable dnscrypt support (requires libsodium)
1557   --enable-cachedb        enable cachedb module that can use external cache
1558                           storage
1559   --enable-ipsecmod       Enable ipsecmod module that facilitates
1560                           opportunistic IPsec
1561
1562 Optional Packages:
1563   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1564   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1565   --with-conf-file=path   Pathname to the Unbound configuration file
1566   --with-run-dir=path     set default directory to chdir to (by default dir
1567                           part of cfg file)
1568   --with-chroot-dir=path  set default directory to chroot to (by default same
1569                           as run-dir)
1570   --with-share-dir=path   set default directory with shared data (by default
1571                           same as share/unbound)
1572   --with-pidfile=filename set default pathname to unbound pidfile (default
1573                           run-dir/unbound.pid)
1574   --with-rootkey-file=filename
1575                           set default pathname to root key file (default
1576                           run-dir/root.key). This file is read and written.
1577   --with-rootcert-file=filename
1578                           set default pathname to root update certificate file
1579                           (default run-dir/icannbundle.pem). This file need
1580                           not exist if you are content with the builtin.
1581   --with-username=user    set default user that unbound changes to (default
1582                           user is unbound)
1583   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1584                           both]
1585   --with-aix-soname=aix|svr4|both
1586                           shared library versioning (aka "SONAME") variant to
1587                           provide on AIX, [default=aix].
1588   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1589   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1590                           compiler's sysroot if not specified).
1591   --with-pthreads         use pthreads library, or --without-pthreads to
1592                           disable threading support.
1593   --with-solaris-threads  use solaris native thread library.
1594   --with-pyunbound        build PyUnbound, or --without-pyunbound to skip it.
1595                           (default=no)
1596   --with-pythonmodule     build Python module, or --without-pythonmodule to
1597                           disable script engine. (default=no)
1598   --with-nss=path         use libnss instead of openssl, installed at path.
1599   --with-nettle=path      use libnettle as crypto library, installed at path.
1600   --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1601                           /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1602                           /usr)
1603   --with-libevent=pathname
1604                           use libevent (will check /usr/local /opt/local
1605                           /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1606                           an explicit path). Slower, but allows use of large
1607                           outgoing port ranges.
1608   --with-libexpat=path    specify explicit path for libexpat.
1609   --with-dnstap-socket-path=pathname
1610                           set default dnstap socket path
1611   --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
1612   --with-libfstrm=path    Path where libfstrm is installed, for dnstap
1613   --with-libsodium=path   Path where libsodium is installed, for dnscrypt
1614   --with-libunbound-only  do not build daemon and tool programs
1615
1616 Some influential environment variables:
1617   CC          C compiler command
1618   CFLAGS      C compiler flags
1619   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1620               nonstandard directory <lib dir>
1621   LIBS        libraries to pass to the linker, e.g. -l<library>
1622   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1623               you have headers in a nonstandard directory <include dir>
1624   CPP         C preprocessor
1625   YACC        The `Yet Another Compiler Compiler' implementation to use.
1626               Defaults to the first program found out of: `bison -y', `byacc',
1627               `yacc'.
1628   YFLAGS      The list of arguments that will be passed by default to $YACC.
1629               This script will default YFLAGS to the empty string to avoid a
1630               default value of `-d' given by some make applications.
1631   LT_SYS_LIBRARY_PATH
1632               User-defined run-time library search path.
1633   PYTHON_VERSION
1634               The installed Python version to use, for example '2.3'. This
1635               string will be appended to the Python interpreter canonical
1636               name.
1637   PKG_CONFIG  path to pkg-config utility
1638   PKG_CONFIG_PATH
1639               directories to add to pkg-config's search path
1640   PKG_CONFIG_LIBDIR
1641               path overriding pkg-config's built-in search path
1642   SYSTEMD_CFLAGS
1643               C compiler flags for SYSTEMD, overriding pkg-config
1644   SYSTEMD_LIBS
1645               linker flags for SYSTEMD, overriding pkg-config
1646   SYSTEMD_DAEMON_CFLAGS
1647               C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1648   SYSTEMD_DAEMON_LIBS
1649               linker flags for SYSTEMD_DAEMON, overriding pkg-config
1650
1651 Use these variables to override the choices made by `configure' or to help
1652 it to find libraries and programs with nonstandard names/locations.
1653
1654 Report bugs to <unbound-bugs@nlnetlabs.nl>.
1655 _ACEOF
1656 ac_status=$?
1657 fi
1658
1659 if test "$ac_init_help" = "recursive"; then
1660   # If there are subdirs, report their specific --help.
1661   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1662     test -d "$ac_dir" ||
1663       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1664       continue
1665     ac_builddir=.
1666
1667 case "$ac_dir" in
1668 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 *)
1670   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1671   # A ".." for each directory in $ac_dir_suffix.
1672   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1673   case $ac_top_builddir_sub in
1674   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1676   esac ;;
1677 esac
1678 ac_abs_top_builddir=$ac_pwd
1679 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1680 # for backward compatibility:
1681 ac_top_builddir=$ac_top_build_prefix
1682
1683 case $srcdir in
1684   .)  # We are building in place.
1685     ac_srcdir=.
1686     ac_top_srcdir=$ac_top_builddir_sub
1687     ac_abs_top_srcdir=$ac_pwd ;;
1688   [\\/]* | ?:[\\/]* )  # Absolute name.
1689     ac_srcdir=$srcdir$ac_dir_suffix;
1690     ac_top_srcdir=$srcdir
1691     ac_abs_top_srcdir=$srcdir ;;
1692   *) # Relative name.
1693     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1694     ac_top_srcdir=$ac_top_build_prefix$srcdir
1695     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1696 esac
1697 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1698
1699     cd "$ac_dir" || { ac_status=$?; continue; }
1700     # Check for guested configure.
1701     if test -f "$ac_srcdir/configure.gnu"; then
1702       echo &&
1703       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1704     elif test -f "$ac_srcdir/configure"; then
1705       echo &&
1706       $SHELL "$ac_srcdir/configure" --help=recursive
1707     else
1708       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1709     fi || ac_status=$?
1710     cd "$ac_pwd" || { ac_status=$?; break; }
1711   done
1712 fi
1713
1714 test -n "$ac_init_help" && exit $ac_status
1715 if $ac_init_version; then
1716   cat <<\_ACEOF
1717 unbound configure 1.6.5
1718 generated by GNU Autoconf 2.69
1719
1720 Copyright (C) 2012 Free Software Foundation, Inc.
1721 This configure script is free software; the Free Software Foundation
1722 gives unlimited permission to copy, distribute and modify it.
1723 _ACEOF
1724   exit
1725 fi
1726
1727 ## ------------------------ ##
1728 ## Autoconf initialization. ##
1729 ## ------------------------ ##
1730
1731 # ac_fn_c_try_compile LINENO
1732 # --------------------------
1733 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_c_try_compile ()
1735 {
1736   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737   rm -f conftest.$ac_objext
1738   if { { ac_try="$ac_compile"
1739 case "(($ac_try" in
1740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741   *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745   (eval "$ac_compile") 2>conftest.err
1746   ac_status=$?
1747   if test -s conftest.err; then
1748     grep -v '^ *+' conftest.err >conftest.er1
1749     cat conftest.er1 >&5
1750     mv -f conftest.er1 conftest.err
1751   fi
1752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753   test $ac_status = 0; } && {
1754          test -z "$ac_c_werror_flag" ||
1755          test ! -s conftest.err
1756        } && test -s conftest.$ac_objext; then :
1757   ac_retval=0
1758 else
1759   $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1761
1762         ac_retval=1
1763 fi
1764   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765   as_fn_set_status $ac_retval
1766
1767 } # ac_fn_c_try_compile
1768
1769 # ac_fn_c_try_cpp LINENO
1770 # ----------------------
1771 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_c_try_cpp ()
1773 {
1774   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775   if { { ac_try="$ac_cpp conftest.$ac_ext"
1776 case "(($ac_try" in
1777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778   *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1783   ac_status=$?
1784   if test -s conftest.err; then
1785     grep -v '^ *+' conftest.err >conftest.er1
1786     cat conftest.er1 >&5
1787     mv -f conftest.er1 conftest.err
1788   fi
1789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790   test $ac_status = 0; } > conftest.i && {
1791          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1792          test ! -s conftest.err
1793        }; then :
1794   ac_retval=0
1795 else
1796   $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1798
1799     ac_retval=1
1800 fi
1801   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802   as_fn_set_status $ac_retval
1803
1804 } # ac_fn_c_try_cpp
1805
1806 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1807 # -------------------------------------------------------
1808 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1809 # the include files in INCLUDES and setting the cache variable VAR
1810 # accordingly.
1811 ac_fn_c_check_header_mongrel ()
1812 {
1813   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814   if eval \${$3+:} false; then :
1815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if eval \${$3+:} false; then :
1818   $as_echo_n "(cached) " >&6
1819 fi
1820 eval ac_res=\$$3
1821                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 else
1824   # Is the header compilable?
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1826 $as_echo_n "checking $2 usability... " >&6; }
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h.  */
1829 $4
1830 #include <$2>
1831 _ACEOF
1832 if ac_fn_c_try_compile "$LINENO"; then :
1833   ac_header_compiler=yes
1834 else
1835   ac_header_compiler=no
1836 fi
1837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1839 $as_echo "$ac_header_compiler" >&6; }
1840
1841 # Is the header present?
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1843 $as_echo_n "checking $2 presence... " >&6; }
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h.  */
1846 #include <$2>
1847 _ACEOF
1848 if ac_fn_c_try_cpp "$LINENO"; then :
1849   ac_header_preproc=yes
1850 else
1851   ac_header_preproc=no
1852 fi
1853 rm -f conftest.err conftest.i conftest.$ac_ext
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1855 $as_echo "$ac_header_preproc" >&6; }
1856
1857 # So?  What about this header?
1858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1859   yes:no: )
1860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1861 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1862     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864     ;;
1865   no:yes:* )
1866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1867 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1869 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1870     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1871 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1872     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1873 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1874     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1875 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1876 ( $as_echo "## ---------------------------------------- ##
1877 ## Report this to unbound-bugs@nlnetlabs.nl ##
1878 ## ---------------------------------------- ##"
1879      ) | sed "s/^/$as_me: WARNING:     /" >&2
1880     ;;
1881 esac
1882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885   $as_echo_n "(cached) " >&6
1886 else
1887   eval "$3=\$ac_header_compiler"
1888 fi
1889 eval ac_res=\$$3
1890                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 fi
1893   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894
1895 } # ac_fn_c_check_header_mongrel
1896
1897 # ac_fn_c_try_run LINENO
1898 # ----------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1900 # that executables *can* be run.
1901 ac_fn_c_try_run ()
1902 {
1903   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904   if { { ac_try="$ac_link"
1905 case "(($ac_try" in
1906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907   *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911   (eval "$ac_link") 2>&5
1912   ac_status=$?
1913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1915   { { case "(($ac_try" in
1916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917   *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921   (eval "$ac_try") 2>&5
1922   ac_status=$?
1923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924   test $ac_status = 0; }; }; then :
1925   ac_retval=0
1926 else
1927   $as_echo "$as_me: program exited with status $ac_status" >&5
1928        $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1930
1931        ac_retval=$ac_status
1932 fi
1933   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935   as_fn_set_status $ac_retval
1936
1937 } # ac_fn_c_try_run
1938
1939 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1940 # -------------------------------------------------------
1941 # Tests whether HEADER exists and can be compiled using the include files in
1942 # INCLUDES, setting the cache variable VAR accordingly.
1943 ac_fn_c_check_header_compile ()
1944 {
1945   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949   $as_echo_n "(cached) " >&6
1950 else
1951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h.  */
1953 $4
1954 #include <$2>
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957   eval "$3=yes"
1958 else
1959   eval "$3=no"
1960 fi
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 fi
1963 eval ac_res=\$$3
1964                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967
1968 } # ac_fn_c_check_header_compile
1969
1970 # ac_fn_c_try_link LINENO
1971 # -----------------------
1972 # Try to link conftest.$ac_ext, and return whether this succeeded.
1973 ac_fn_c_try_link ()
1974 {
1975   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976   rm -f conftest.$ac_objext conftest$ac_exeext
1977   if { { ac_try="$ac_link"
1978 case "(($ac_try" in
1979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980   *) ac_try_echo=$ac_try;;
1981 esac
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984   (eval "$ac_link") 2>conftest.err
1985   ac_status=$?
1986   if test -s conftest.err; then
1987     grep -v '^ *+' conftest.err >conftest.er1
1988     cat conftest.er1 >&5
1989     mv -f conftest.er1 conftest.err
1990   fi
1991   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992   test $ac_status = 0; } && {
1993          test -z "$ac_c_werror_flag" ||
1994          test ! -s conftest.err
1995        } && test -s conftest$ac_exeext && {
1996          test "$cross_compiling" = yes ||
1997          test -x conftest$ac_exeext
1998        }; then :
1999   ac_retval=0
2000 else
2001   $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2003
2004         ac_retval=1
2005 fi
2006   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2007   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2008   # interfere with the next link command; also delete a directory that is
2009   # left behind by Apple's compiler.  We do this before executing the actions.
2010   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012   as_fn_set_status $ac_retval
2013
2014 } # ac_fn_c_try_link
2015
2016 # ac_fn_c_check_func LINENO FUNC VAR
2017 # ----------------------------------
2018 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2019 ac_fn_c_check_func ()
2020 {
2021   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if eval \${$3+:} false; then :
2025   $as_echo_n "(cached) " >&6
2026 else
2027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h.  */
2029 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2031 #define $2 innocuous_$2
2032
2033 /* System header to define __stub macros and hopefully few prototypes,
2034     which can conflict with char $2 (); below.
2035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2036     <limits.h> exists even on freestanding compilers.  */
2037
2038 #ifdef __STDC__
2039 # include <limits.h>
2040 #else
2041 # include <assert.h>
2042 #endif
2043
2044 #undef $2
2045
2046 /* Override any GCC internal prototype to avoid an error.
2047    Use char because int might match the return type of a GCC
2048    builtin and then its argument prototype would still apply.  */
2049 #ifdef __cplusplus
2050 extern "C"
2051 #endif
2052 char $2 ();
2053 /* The GNU C library defines this for functions which it implements
2054     to always fail with ENOSYS.  Some functions are actually named
2055     something starting with __ and the normal name is an alias.  */
2056 #if defined __stub_$2 || defined __stub___$2
2057 choke me
2058 #endif
2059
2060 int
2061 main ()
2062 {
2063 return $2 ();
2064   ;
2065   return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_link "$LINENO"; then :
2069   eval "$3=yes"
2070 else
2071   eval "$3=no"
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext \
2074     conftest$ac_exeext conftest.$ac_ext
2075 fi
2076 eval ac_res=\$$3
2077                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080
2081 } # ac_fn_c_check_func
2082
2083 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2084 # -------------------------------------------
2085 # Tests whether TYPE exists after having included INCLUDES, setting cache
2086 # variable VAR accordingly.
2087 ac_fn_c_check_type ()
2088 {
2089   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091 $as_echo_n "checking for $2... " >&6; }
2092 if eval \${$3+:} false; then :
2093   $as_echo_n "(cached) " >&6
2094 else
2095   eval "$3=no"
2096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h.  */
2098 $4
2099 int
2100 main ()
2101 {
2102 if (sizeof ($2))
2103          return 0;
2104   ;
2105   return 0;
2106 }
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"; then :
2109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h.  */
2111 $4
2112 int
2113 main ()
2114 {
2115 if (sizeof (($2)))
2116             return 0;
2117   ;
2118   return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122
2123 else
2124   eval "$3=yes"
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 fi
2130 eval ac_res=\$$3
2131                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132 $as_echo "$ac_res" >&6; }
2133   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134
2135 } # ac_fn_c_check_type
2136
2137 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2138 # --------------------------------------------
2139 # Tries to find the compile-time value of EXPR in a program that includes
2140 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2141 # computed
2142 ac_fn_c_compute_int ()
2143 {
2144   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145   if test "$cross_compiling" = yes; then
2146     # Depending upon the size, compute the lo and hi bounds.
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h.  */
2149 $4
2150 int
2151 main ()
2152 {
2153 static int test_array [1 - 2 * !(($2) >= 0)];
2154 test_array [0] = 0;
2155 return test_array [0];
2156
2157   ;
2158   return 0;
2159 }
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162   ac_lo=0 ac_mid=0
2163   while :; do
2164     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h.  */
2166 $4
2167 int
2168 main ()
2169 {
2170 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2171 test_array [0] = 0;
2172 return test_array [0];
2173
2174   ;
2175   return 0;
2176 }
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179   ac_hi=$ac_mid; break
2180 else
2181   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2182                         if test $ac_lo -le $ac_mid; then
2183                           ac_lo= ac_hi=
2184                           break
2185                         fi
2186                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2187 fi
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189   done
2190 else
2191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h.  */
2193 $4
2194 int
2195 main ()
2196 {
2197 static int test_array [1 - 2 * !(($2) < 0)];
2198 test_array [0] = 0;
2199 return test_array [0];
2200
2201   ;
2202   return 0;
2203 }
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206   ac_hi=-1 ac_mid=-1
2207   while :; do
2208     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h.  */
2210 $4
2211 int
2212 main ()
2213 {
2214 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2215 test_array [0] = 0;
2216 return test_array [0];
2217
2218   ;
2219   return 0;
2220 }
2221 _ACEOF
2222 if ac_fn_c_try_compile "$LINENO"; then :
2223   ac_lo=$ac_mid; break
2224 else
2225   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2226                         if test $ac_mid -le $ac_hi; then
2227                           ac_lo= ac_hi=
2228                           break
2229                         fi
2230                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2231 fi
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233   done
2234 else
2235   ac_lo= ac_hi=
2236 fi
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 fi
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 # Binary search between lo and hi bounds.
2241 while test "x$ac_lo" != "x$ac_hi"; do
2242   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h.  */
2245 $4
2246 int
2247 main ()
2248 {
2249 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2250 test_array [0] = 0;
2251 return test_array [0];
2252
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 if ac_fn_c_try_compile "$LINENO"; then :
2258   ac_hi=$ac_mid
2259 else
2260   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 done
2264 case $ac_lo in #((
2265 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2266 '') ac_retval=1 ;;
2267 esac
2268   else
2269     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h.  */
2271 $4
2272 static long int longval () { return $2; }
2273 static unsigned long int ulongval () { return $2; }
2274 #include <stdio.h>
2275 #include <stdlib.h>
2276 int
2277 main ()
2278 {
2279
2280   FILE *f = fopen ("conftest.val", "w");
2281   if (! f)
2282     return 1;
2283   if (($2) < 0)
2284     {
2285       long int i = longval ();
2286       if (i != ($2))
2287         return 1;
2288       fprintf (f, "%ld", i);
2289     }
2290   else
2291     {
2292       unsigned long int i = ulongval ();
2293       if (i != ($2))
2294         return 1;
2295       fprintf (f, "%lu", i);
2296     }
2297   /* Do not output a trailing newline, as this causes \r\n confusion
2298      on some platforms.  */
2299   return ferror (f) || fclose (f) != 0;
2300
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 if ac_fn_c_try_run "$LINENO"; then :
2306   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2307 else
2308   ac_retval=1
2309 fi
2310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2311   conftest.$ac_objext conftest.beam conftest.$ac_ext
2312 rm -f conftest.val
2313
2314   fi
2315   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2316   as_fn_set_status $ac_retval
2317
2318 } # ac_fn_c_compute_int
2319
2320 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2321 # ---------------------------------------------
2322 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2323 # accordingly.
2324 ac_fn_c_check_decl ()
2325 {
2326   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327   as_decl_name=`echo $2|sed 's/ *(.*//'`
2328   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2330 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2331 if eval \${$3+:} false; then :
2332   $as_echo_n "(cached) " >&6
2333 else
2334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335 /* end confdefs.h.  */
2336 $4
2337 int
2338 main ()
2339 {
2340 #ifndef $as_decl_name
2341 #ifdef __cplusplus
2342   (void) $as_decl_use;
2343 #else
2344   (void) $as_decl_name;
2345 #endif
2346 #endif
2347
2348   ;
2349   return 0;
2350 }
2351 _ACEOF
2352 if ac_fn_c_try_compile "$LINENO"; then :
2353   eval "$3=yes"
2354 else
2355   eval "$3=no"
2356 fi
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 fi
2359 eval ac_res=\$$3
2360                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2363
2364 } # ac_fn_c_check_decl
2365
2366 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2367 # ----------------------------------------------------
2368 # Tries to find if the field MEMBER exists in type AGGR, after including
2369 # INCLUDES, setting cache variable VAR accordingly.
2370 ac_fn_c_check_member ()
2371 {
2372   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2374 $as_echo_n "checking for $2.$3... " >&6; }
2375 if eval \${$4+:} false; then :
2376   $as_echo_n "(cached) " >&6
2377 else
2378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h.  */
2380 $5
2381 int
2382 main ()
2383 {
2384 static $2 ac_aggr;
2385 if (ac_aggr.$3)
2386 return 0;
2387   ;
2388   return 0;
2389 }
2390 _ACEOF
2391 if ac_fn_c_try_compile "$LINENO"; then :
2392   eval "$4=yes"
2393 else
2394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h.  */
2396 $5
2397 int
2398 main ()
2399 {
2400 static $2 ac_aggr;
2401 if (sizeof ac_aggr.$3)
2402 return 0;
2403   ;
2404   return 0;
2405 }
2406 _ACEOF
2407 if ac_fn_c_try_compile "$LINENO"; then :
2408   eval "$4=yes"
2409 else
2410   eval "$4=no"
2411 fi
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 fi
2414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415 fi
2416 eval ac_res=\$$4
2417                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418 $as_echo "$ac_res" >&6; }
2419   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2420
2421 } # ac_fn_c_check_member
2422 cat >config.log <<_ACEOF
2423 This file contains any messages produced by compilers while
2424 running configure, to aid debugging if configure makes a mistake.
2425
2426 It was created by unbound $as_me 1.6.5, which was
2427 generated by GNU Autoconf 2.69.  Invocation command line was
2428
2429   $ $0 $@
2430
2431 _ACEOF
2432 exec 5>>config.log
2433 {
2434 cat <<_ASUNAME
2435 ## --------- ##
2436 ## Platform. ##
2437 ## --------- ##
2438
2439 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2440 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2441 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2442 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2443 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2444
2445 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2446 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2447
2448 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2449 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2450 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2451 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2452 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2453 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2454 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2455
2456 _ASUNAME
2457
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 for as_dir in $PATH
2460 do
2461   IFS=$as_save_IFS
2462   test -z "$as_dir" && as_dir=.
2463     $as_echo "PATH: $as_dir"
2464   done
2465 IFS=$as_save_IFS
2466
2467 } >&5
2468
2469 cat >&5 <<_ACEOF
2470
2471
2472 ## ----------- ##
2473 ## Core tests. ##
2474 ## ----------- ##
2475
2476 _ACEOF
2477
2478
2479 # Keep a trace of the command line.
2480 # Strip out --no-create and --no-recursion so they do not pile up.
2481 # Strip out --silent because we don't want to record it for future runs.
2482 # Also quote any args containing shell meta-characters.
2483 # Make two passes to allow for proper duplicate-argument suppression.
2484 ac_configure_args=
2485 ac_configure_args0=
2486 ac_configure_args1=
2487 ac_must_keep_next=false
2488 for ac_pass in 1 2
2489 do
2490   for ac_arg
2491   do
2492     case $ac_arg in
2493     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2494     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2495     | -silent | --silent | --silen | --sile | --sil)
2496       continue ;;
2497     *\'*)
2498       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2499     esac
2500     case $ac_pass in
2501     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2502     2)
2503       as_fn_append ac_configure_args1 " '$ac_arg'"
2504       if test $ac_must_keep_next = true; then
2505         ac_must_keep_next=false # Got value, back to normal.
2506       else
2507         case $ac_arg in
2508           *=* | --config-cache | -C | -disable-* | --disable-* \
2509           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2510           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2511           | -with-* | --with-* | -without-* | --without-* | --x)
2512             case "$ac_configure_args0 " in
2513               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2514             esac
2515             ;;
2516           -* ) ac_must_keep_next=true ;;
2517         esac
2518       fi
2519       as_fn_append ac_configure_args " '$ac_arg'"
2520       ;;
2521     esac
2522   done
2523 done
2524 { ac_configure_args0=; unset ac_configure_args0;}
2525 { ac_configure_args1=; unset ac_configure_args1;}
2526
2527 # When interrupted or exit'd, cleanup temporary files, and complete
2528 # config.log.  We remove comments because anyway the quotes in there
2529 # would cause problems or look ugly.
2530 # WARNING: Use '\'' to represent an apostrophe within the trap.
2531 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2532 trap 'exit_status=$?
2533   # Save into config.log some information that might help in debugging.
2534   {
2535     echo
2536
2537     $as_echo "## ---------------- ##
2538 ## Cache variables. ##
2539 ## ---------------- ##"
2540     echo
2541     # The following way of writing the cache mishandles newlines in values,
2542 (
2543   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2544     eval ac_val=\$$ac_var
2545     case $ac_val in #(
2546     *${as_nl}*)
2547       case $ac_var in #(
2548       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2549 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2550       esac
2551       case $ac_var in #(
2552       _ | IFS | as_nl) ;; #(
2553       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2554       *) { eval $ac_var=; unset $ac_var;} ;;
2555       esac ;;
2556     esac
2557   done
2558   (set) 2>&1 |
2559     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2560     *${as_nl}ac_space=\ *)
2561       sed -n \
2562         "s/'\''/'\''\\\\'\'''\''/g;
2563           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2564       ;; #(
2565     *)
2566       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2567       ;;
2568     esac |
2569     sort
2570 )
2571     echo
2572
2573     $as_echo "## ----------------- ##
2574 ## Output variables. ##
2575 ## ----------------- ##"
2576     echo
2577     for ac_var in $ac_subst_vars
2578     do
2579       eval ac_val=\$$ac_var
2580       case $ac_val in
2581       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2582       esac
2583       $as_echo "$ac_var='\''$ac_val'\''"
2584     done | sort
2585     echo
2586
2587     if test -n "$ac_subst_files"; then
2588       $as_echo "## ------------------- ##
2589 ## File substitutions. ##
2590 ## ------------------- ##"
2591       echo
2592       for ac_var in $ac_subst_files
2593       do
2594         eval ac_val=\$$ac_var
2595         case $ac_val in
2596         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2597         esac
2598         $as_echo "$ac_var='\''$ac_val'\''"
2599       done | sort
2600       echo
2601     fi
2602
2603     if test -s confdefs.h; then
2604       $as_echo "## ----------- ##
2605 ## confdefs.h. ##
2606 ## ----------- ##"
2607       echo
2608       cat confdefs.h
2609       echo
2610     fi
2611     test "$ac_signal" != 0 &&
2612       $as_echo "$as_me: caught signal $ac_signal"
2613     $as_echo "$as_me: exit $exit_status"
2614   } >&5
2615   rm -f core *.core core.conftest.* &&
2616     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2617     exit $exit_status
2618 ' 0
2619 for ac_signal in 1 2 13 15; do
2620   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2621 done
2622 ac_signal=0
2623
2624 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2625 rm -f -r conftest* confdefs.h
2626
2627 $as_echo "/* confdefs.h */" > confdefs.h
2628
2629 # Predefined preprocessor variables.
2630
2631 cat >>confdefs.h <<_ACEOF
2632 #define PACKAGE_NAME "$PACKAGE_NAME"
2633 _ACEOF
2634
2635 cat >>confdefs.h <<_ACEOF
2636 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2637 _ACEOF
2638
2639 cat >>confdefs.h <<_ACEOF
2640 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2641 _ACEOF
2642
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE_STRING "$PACKAGE_STRING"
2645 _ACEOF
2646
2647 cat >>confdefs.h <<_ACEOF
2648 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2649 _ACEOF
2650
2651 cat >>confdefs.h <<_ACEOF
2652 #define PACKAGE_URL "$PACKAGE_URL"
2653 _ACEOF
2654
2655
2656 # Let the site file select an alternate cache file if it wants to.
2657 # Prefer an explicitly selected file to automatically selected ones.
2658 ac_site_file1=NONE
2659 ac_site_file2=NONE
2660 if test -n "$CONFIG_SITE"; then
2661   # We do not want a PATH search for config.site.
2662   case $CONFIG_SITE in #((
2663     -*)  ac_site_file1=./$CONFIG_SITE;;
2664     */*) ac_site_file1=$CONFIG_SITE;;
2665     *)   ac_site_file1=./$CONFIG_SITE;;
2666   esac
2667 elif test "x$prefix" != xNONE; then
2668   ac_site_file1=$prefix/share/config.site
2669   ac_site_file2=$prefix/etc/config.site
2670 else
2671   ac_site_file1=$ac_default_prefix/share/config.site
2672   ac_site_file2=$ac_default_prefix/etc/config.site
2673 fi
2674 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2675 do
2676   test "x$ac_site_file" = xNONE && continue
2677   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2678     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2679 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2680     sed 's/^/| /' "$ac_site_file" >&5
2681     . "$ac_site_file" \
2682       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2684 as_fn_error $? "failed to load site script $ac_site_file
2685 See \`config.log' for more details" "$LINENO" 5; }
2686   fi
2687 done
2688
2689 if test -r "$cache_file"; then
2690   # Some versions of bash will fail to source /dev/null (special files
2691   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2692   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2693     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2694 $as_echo "$as_me: loading cache $cache_file" >&6;}
2695     case $cache_file in
2696       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2697       *)                      . "./$cache_file";;
2698     esac
2699   fi
2700 else
2701   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2702 $as_echo "$as_me: creating cache $cache_file" >&6;}
2703   >$cache_file
2704 fi
2705
2706 # Check that the precious variables saved in the cache have kept the same
2707 # value.
2708 ac_cache_corrupted=false
2709 for ac_var in $ac_precious_vars; do
2710   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2711   eval ac_new_set=\$ac_env_${ac_var}_set
2712   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2713   eval ac_new_val=\$ac_env_${ac_var}_value
2714   case $ac_old_set,$ac_new_set in
2715     set,)
2716       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2717 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2718       ac_cache_corrupted=: ;;
2719     ,set)
2720       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2721 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2722       ac_cache_corrupted=: ;;
2723     ,);;
2724     *)
2725       if test "x$ac_old_val" != "x$ac_new_val"; then
2726         # differences in whitespace do not lead to failure.
2727         ac_old_val_w=`echo x $ac_old_val`
2728         ac_new_val_w=`echo x $ac_new_val`
2729         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2730           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2731 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2732           ac_cache_corrupted=:
2733         else
2734           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2735 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2736           eval $ac_var=\$ac_old_val
2737         fi
2738         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2739 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2740         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2741 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2742       fi;;
2743   esac
2744   # Pass precious variables to config.status.
2745   if test "$ac_new_set" = set; then
2746     case $ac_new_val in
2747     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2748     *) ac_arg=$ac_var=$ac_new_val ;;
2749     esac
2750     case " $ac_configure_args " in
2751       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2752       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2753     esac
2754   fi
2755 done
2756 if $ac_cache_corrupted; then
2757   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2759   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2760 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2761   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2762 fi
2763 ## -------------------- ##
2764 ## Main body of script. ##
2765 ## -------------------- ##
2766
2767 ac_ext=c
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772
2773
2774 UNBOUND_VERSION_MAJOR=1
2775
2776 UNBOUND_VERSION_MINOR=6
2777
2778 UNBOUND_VERSION_MICRO=5
2779
2780
2781 LIBUNBOUND_CURRENT=7
2782 LIBUNBOUND_REVISION=4
2783 LIBUNBOUND_AGE=5
2784 # 1.0.0 had 0:12:0
2785 # 1.0.1 had 0:13:0
2786 # 1.0.2 had 0:14:0
2787 # 1.1.0 had 0:15:0
2788 # 1.1.1 had 0:16:0
2789 # 1.2.0 had 0:17:0
2790 # 1.2.1 had 0:18:0
2791 # 1.3.0 had 1:0:0   # ub_cancel and -export-symbols.
2792 # 1.3.1 had 1:1:0
2793 # 1.3.2 had 1:2:0
2794 # 1.3.3 had 1:3:0
2795 # 1.3.4 had 1:4:0
2796 # 1.4.0-snapshots had 1:5:0
2797 # 1.4.0 had 1:5:0 (not 2:0:0)   # ub_result.why_bogus
2798 # 1.4.1 had 2:1:0
2799 # 1.4.2 had 2:2:0
2800 # 1.4.3 had 2:3:0
2801 # 1.4.4 had 2:4:0
2802 # 1.4.5 had 2:5:0
2803 # 1.4.6 had 2:6:0
2804 # 1.4.7 had 2:7:0
2805 # 1.4.8 had 2:8:0
2806 # 1.4.9 had 2:9:0
2807 # 1.4.10 had 2:10:0
2808 # 1.4.11 had 2:11:0
2809 # 1.4.12 had 2:12:0
2810 # 1.4.13 had 2:13:0
2811 # and 1.4.13p1 and 1.4.13.p2
2812 # 1.4.14 had 2:14:0
2813 # 1.4.15 had 3:0:1 # adds ub_version()
2814 # 1.4.16 had 3:1:1
2815 # 1.4.17 had 3:2:1
2816 # 1.4.18 had 3:3:1
2817 # 1.4.19 had 3:4:1
2818 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2819 # 1.4.21 had 4:1:2
2820 # 1.4.22 had 4:1:2
2821 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2822 # 1.5.1 had 5:3:3
2823 # 1.5.2 had 5:5:3
2824 # 1.5.3 had 5:6:3
2825 # 1.5.4 had 5:7:3
2826 # 1.5.5 had 5:8:3
2827 # 1.5.6 had 5:9:3
2828 # 1.5.7 had 5:10:3
2829 # 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
2830 # 1.5.9 had 6:1:4
2831 # 1.5.10 had 6:2:4
2832 # 1.6.0 had 6:3:4
2833 # 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type
2834 # 1.6.2 had 7:1:5
2835 # 1.6.3 had 7:2:5
2836 # 1.6.4 had 7:3:5
2837 # 1.6.5 had 7:4:5
2838
2839 #   Current  -- the number of the binary API that we're implementing
2840 #   Revision -- which iteration of the implementation of the binary
2841 #               API are we supplying?
2842 #   Age      -- How many previous binary API versions do we also
2843 #               support?
2844 #
2845 # If we release a new version that does not change the binary API,
2846 # increment Revision.
2847 #
2848 # If we release a new version that changes the binary API, but does
2849 # not break programs compiled against the old binary API, increment
2850 # Current and Age.  Set Revision to 0, since this is the first
2851 # implementation of the new API.
2852 #
2853 # Otherwise, we're changing the binary API and breaking bakward
2854 # compatibility with old binaries.  Increment Current.  Set Age to 0,
2855 # since we're backward compatible with no previous APIs.  Set Revision
2856 # to 0 too.
2857
2858
2859
2860
2861 CFLAGS="$CFLAGS"
2862 ac_ext=c
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867 if test -n "$ac_tool_prefix"; then
2868   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2869 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if ${ac_cv_prog_CC+:} false; then :
2873   $as_echo_n "(cached) " >&6
2874 else
2875   if test -n "$CC"; then
2876   ac_cv_prog_CC="$CC" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2880 do
2881   IFS=$as_save_IFS
2882   test -z "$as_dir" && as_dir=.
2883     for ac_exec_ext in '' $ac_executable_extensions; do
2884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887     break 2
2888   fi
2889 done
2890   done
2891 IFS=$as_save_IFS
2892
2893 fi
2894 fi
2895 CC=$ac_cv_prog_CC
2896 if test -n "$CC"; then
2897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2898 $as_echo "$CC" >&6; }
2899 else
2900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2902 fi
2903
2904
2905 fi
2906 if test -z "$ac_cv_prog_CC"; then
2907   ac_ct_CC=$CC
2908   # Extract the first word of "gcc", so it can be a program name with args.
2909 set dummy gcc; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2913   $as_echo_n "(cached) " >&6
2914 else
2915   if test -n "$ac_ct_CC"; then
2916   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921   IFS=$as_save_IFS
2922   test -z "$as_dir" && as_dir=.
2923     for ac_exec_ext in '' $ac_executable_extensions; do
2924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925     ac_cv_prog_ac_ct_CC="gcc"
2926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927     break 2
2928   fi
2929 done
2930   done
2931 IFS=$as_save_IFS
2932
2933 fi
2934 fi
2935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2936 if test -n "$ac_ct_CC"; then
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2938 $as_echo "$ac_ct_CC" >&6; }
2939 else
2940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 fi
2943
2944   if test "x$ac_ct_CC" = x; then
2945     CC=""
2946   else
2947     case $cross_compiling:$ac_tool_warned in
2948 yes:)
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2951 ac_tool_warned=yes ;;
2952 esac
2953     CC=$ac_ct_CC
2954   fi
2955 else
2956   CC="$ac_cv_prog_CC"
2957 fi
2958
2959 if test -z "$CC"; then
2960           if test -n "$ac_tool_prefix"; then
2961     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2962 set dummy ${ac_tool_prefix}cc; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if ${ac_cv_prog_CC+:} false; then :
2966   $as_echo_n "(cached) " >&6
2967 else
2968   if test -n "$CC"; then
2969   ac_cv_prog_CC="$CC" # Let the user override the test.
2970 else
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 for as_dir in $PATH
2973 do
2974   IFS=$as_save_IFS
2975   test -z "$as_dir" && as_dir=.
2976     for ac_exec_ext in '' $ac_executable_extensions; do
2977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2978     ac_cv_prog_CC="${ac_tool_prefix}cc"
2979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980     break 2
2981   fi
2982 done
2983   done
2984 IFS=$as_save_IFS
2985
2986 fi
2987 fi
2988 CC=$ac_cv_prog_CC
2989 if test -n "$CC"; then
2990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2991 $as_echo "$CC" >&6; }
2992 else
2993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2995 fi
2996
2997
2998   fi
2999 fi
3000 if test -z "$CC"; then
3001   # Extract the first word of "cc", so it can be a program name with args.
3002 set dummy cc; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if ${ac_cv_prog_CC+:} false; then :
3006   $as_echo_n "(cached) " >&6
3007 else
3008   if test -n "$CC"; then
3009   ac_cv_prog_CC="$CC" # Let the user override the test.
3010 else
3011   ac_prog_rejected=no
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015   IFS=$as_save_IFS
3016   test -z "$as_dir" && as_dir=.
3017     for ac_exec_ext in '' $ac_executable_extensions; do
3018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3020        ac_prog_rejected=yes
3021        continue
3022      fi
3023     ac_cv_prog_CC="cc"
3024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025     break 2
3026   fi
3027 done
3028   done
3029 IFS=$as_save_IFS
3030
3031 if test $ac_prog_rejected = yes; then
3032   # We found a bogon in the path, so make sure we never use it.
3033   set dummy $ac_cv_prog_CC
3034   shift
3035   if test $# != 0; then
3036     # We chose a different compiler from the bogus one.
3037     # However, it has the same basename, so the bogon will be chosen
3038     # first if we set CC to just the basename; use the full file name.
3039     shift
3040     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3041   fi
3042 fi
3043 fi
3044 fi
3045 CC=$ac_cv_prog_CC
3046 if test -n "$CC"; then
3047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3048 $as_echo "$CC" >&6; }
3049 else
3050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3052 fi
3053
3054
3055 fi
3056 if test -z "$CC"; then
3057   if test -n "$ac_tool_prefix"; then
3058   for ac_prog in cl.exe
3059   do
3060     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_CC+:} false; then :
3065   $as_echo_n "(cached) " >&6
3066 else
3067   if test -n "$CC"; then
3068   ac_cv_prog_CC="$CC" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073   IFS=$as_save_IFS
3074   test -z "$as_dir" && as_dir=.
3075     for ac_exec_ext in '' $ac_executable_extensions; do
3076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079     break 2
3080   fi
3081 done
3082   done
3083 IFS=$as_save_IFS
3084
3085 fi
3086 fi
3087 CC=$ac_cv_prog_CC
3088 if test -n "$CC"; then
3089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3090 $as_echo "$CC" >&6; }
3091 else
3092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3094 fi
3095
3096
3097     test -n "$CC" && break
3098   done
3099 fi
3100 if test -z "$CC"; then
3101   ac_ct_CC=$CC
3102   for ac_prog in cl.exe
3103 do
3104   # Extract the first word of "$ac_prog", so it can be a program name with args.
3105 set dummy $ac_prog; ac_word=$2
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3109   $as_echo_n "(cached) " >&6
3110 else
3111   if test -n "$ac_ct_CC"; then
3112   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117   IFS=$as_save_IFS
3118   test -z "$as_dir" && as_dir=.
3119     for ac_exec_ext in '' $ac_executable_extensions; do
3120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121     ac_cv_prog_ac_ct_CC="$ac_prog"
3122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123     break 2
3124   fi
3125 done
3126   done
3127 IFS=$as_save_IFS
3128
3129 fi
3130 fi
3131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3132 if test -n "$ac_ct_CC"; then
3133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3134 $as_echo "$ac_ct_CC" >&6; }
3135 else
3136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3138 fi
3139
3140
3141   test -n "$ac_ct_CC" && break
3142 done
3143
3144   if test "x$ac_ct_CC" = x; then
3145     CC=""
3146   else
3147     case $cross_compiling:$ac_tool_warned in
3148 yes:)
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3151 ac_tool_warned=yes ;;
3152 esac
3153     CC=$ac_ct_CC
3154   fi
3155 fi
3156
3157 fi
3158
3159
3160 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162 as_fn_error $? "no acceptable C compiler found in \$PATH
3163 See \`config.log' for more details" "$LINENO" 5; }
3164
3165 # Provide some information about the compiler.
3166 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3167 set X $ac_compile
3168 ac_compiler=$2
3169 for ac_option in --version -v -V -qversion; do
3170   { { ac_try="$ac_compiler $ac_option >&5"
3171 case "(($ac_try" in
3172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173   *) ac_try_echo=$ac_try;;
3174 esac
3175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176 $as_echo "$ac_try_echo"; } >&5
3177   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3178   ac_status=$?
3179   if test -s conftest.err; then
3180     sed '10a\
3181 ... rest of stderr output deleted ...
3182          10q' conftest.err >conftest.er1
3183     cat conftest.er1 >&5
3184   fi
3185   rm -f conftest.er1 conftest.err
3186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187   test $ac_status = 0; }
3188 done
3189
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h.  */
3192
3193 int
3194 main ()
3195 {
3196
3197   ;
3198   return 0;
3199 }
3200 _ACEOF
3201 ac_clean_files_save=$ac_clean_files
3202 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3203 # Try to create an executable without -o first, disregard a.out.
3204 # It will help us diagnose broken compilers, and finding out an intuition
3205 # of exeext.
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3207 $as_echo_n "checking whether the C compiler works... " >&6; }
3208 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3209
3210 # The possible output files:
3211 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3212
3213 ac_rmfiles=
3214 for ac_file in $ac_files
3215 do
3216   case $ac_file in
3217     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3218     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3219   esac
3220 done
3221 rm -f $ac_rmfiles
3222
3223 if { { ac_try="$ac_link_default"
3224 case "(($ac_try" in
3225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226   *) ac_try_echo=$ac_try;;
3227 esac
3228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229 $as_echo "$ac_try_echo"; } >&5
3230   (eval "$ac_link_default") 2>&5
3231   ac_status=$?
3232   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233   test $ac_status = 0; }; then :
3234   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3235 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3236 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3237 # so that the user can short-circuit this test for compilers unknown to
3238 # Autoconf.
3239 for ac_file in $ac_files ''
3240 do
3241   test -f "$ac_file" || continue
3242   case $ac_file in
3243     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3244         ;;
3245     [ab].out )
3246         # We found the default executable, but exeext='' is most
3247         # certainly right.
3248         break;;
3249     *.* )
3250         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3251         then :; else
3252            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3253         fi
3254         # We set ac_cv_exeext here because the later test for it is not
3255         # safe: cross compilers may not add the suffix if given an `-o'
3256         # argument, so we may need to know it at that point already.
3257         # Even if this section looks crufty: it has the advantage of
3258         # actually working.
3259         break;;
3260     * )
3261         break;;
3262   esac
3263 done
3264 test "$ac_cv_exeext" = no && ac_cv_exeext=
3265
3266 else
3267   ac_file=''
3268 fi
3269 if test -z "$ac_file"; then :
3270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3272 $as_echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277 as_fn_error 77 "C compiler cannot create executables
3278 See \`config.log' for more details" "$LINENO" 5; }
3279 else
3280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3281 $as_echo "yes" >&6; }
3282 fi
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3284 $as_echo_n "checking for C compiler default output file name... " >&6; }
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3286 $as_echo "$ac_file" >&6; }
3287 ac_exeext=$ac_cv_exeext
3288
3289 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3290 ac_clean_files=$ac_clean_files_save
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3292 $as_echo_n "checking for suffix of executables... " >&6; }
3293 if { { ac_try="$ac_link"
3294 case "(($ac_try" in
3295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296   *) ac_try_echo=$ac_try;;
3297 esac
3298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3299 $as_echo "$ac_try_echo"; } >&5
3300   (eval "$ac_link") 2>&5
3301   ac_status=$?
3302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303   test $ac_status = 0; }; then :
3304   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3305 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3306 # work properly (i.e., refer to `conftest.exe'), while it won't with
3307 # `rm'.
3308 for ac_file in conftest.exe conftest conftest.*; do
3309   test -f "$ac_file" || continue
3310   case $ac_file in
3311     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3312     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3313           break;;
3314     * ) break;;
3315   esac
3316 done
3317 else
3318   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3321 See \`config.log' for more details" "$LINENO" 5; }
3322 fi
3323 rm -f conftest conftest$ac_cv_exeext
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3325 $as_echo "$ac_cv_exeext" >&6; }
3326
3327 rm -f conftest.$ac_ext
3328 EXEEXT=$ac_cv_exeext
3329 ac_exeext=$EXEEXT
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h.  */
3332 #include <stdio.h>
3333 int
3334 main ()
3335 {
3336 FILE *f = fopen ("conftest.out", "w");
3337  return ferror (f) || fclose (f) != 0;
3338
3339   ;
3340   return 0;
3341 }
3342 _ACEOF
3343 ac_clean_files="$ac_clean_files conftest.out"
3344 # Check that the compiler produces executables we can run.  If not, either
3345 # the compiler is broken, or we cross compile.
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3347 $as_echo_n "checking whether we are cross compiling... " >&6; }
3348 if test "$cross_compiling" != yes; then
3349   { { ac_try="$ac_link"
3350 case "(($ac_try" in
3351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352   *) ac_try_echo=$ac_try;;
3353 esac
3354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3355 $as_echo "$ac_try_echo"; } >&5
3356   (eval "$ac_link") 2>&5
3357   ac_status=$?
3358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3359   test $ac_status = 0; }
3360   if { ac_try='./conftest$ac_cv_exeext'
3361   { { case "(($ac_try" in
3362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363   *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366 $as_echo "$ac_try_echo"; } >&5
3367   (eval "$ac_try") 2>&5
3368   ac_status=$?
3369   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3370   test $ac_status = 0; }; }; then
3371     cross_compiling=no
3372   else
3373     if test "$cross_compiling" = maybe; then
3374         cross_compiling=yes
3375     else
3376         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 as_fn_error $? "cannot run C compiled programs.
3379 If you meant to cross compile, use \`--host'.
3380 See \`config.log' for more details" "$LINENO" 5; }
3381     fi
3382   fi
3383 fi
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3385 $as_echo "$cross_compiling" >&6; }
3386
3387 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3388 ac_clean_files=$ac_clean_files_save
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3390 $as_echo_n "checking for suffix of object files... " >&6; }
3391 if ${ac_cv_objext+:} false; then :
3392   $as_echo_n "(cached) " >&6
3393 else
3394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h.  */
3396
3397 int
3398 main ()
3399 {
3400
3401   ;
3402   return 0;
3403 }
3404 _ACEOF
3405 rm -f conftest.o conftest.obj
3406 if { { ac_try="$ac_compile"
3407 case "(($ac_try" in
3408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409   *) ac_try_echo=$ac_try;;
3410 esac
3411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3412 $as_echo "$ac_try_echo"; } >&5
3413   (eval "$ac_compile") 2>&5
3414   ac_status=$?
3415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3416   test $ac_status = 0; }; then :
3417   for ac_file in conftest.o conftest.obj conftest.*; do
3418   test -f "$ac_file" || continue;
3419   case $ac_file in
3420     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3421     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3422        break;;
3423   esac
3424 done
3425 else
3426   $as_echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3428
3429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error $? "cannot compute suffix of object files: cannot compile
3432 See \`config.log' for more details" "$LINENO" 5; }
3433 fi
3434 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3435 fi
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3437 $as_echo "$ac_cv_objext" >&6; }
3438 OBJEXT=$ac_cv_objext
3439 ac_objext=$OBJEXT
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3441 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3442 if ${ac_cv_c_compiler_gnu+:} false; then :
3443   $as_echo_n "(cached) " >&6
3444 else
3445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h.  */
3447
3448 int
3449 main ()
3450 {
3451 #ifndef __GNUC__
3452        choke me
3453 #endif
3454
3455   ;
3456   return 0;
3457 }
3458 _ACEOF
3459 if ac_fn_c_try_compile "$LINENO"; then :
3460   ac_compiler_gnu=yes
3461 else
3462   ac_compiler_gnu=no
3463 fi
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3466
3467 fi
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3469 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3470 if test $ac_compiler_gnu = yes; then
3471   GCC=yes
3472 else
3473   GCC=
3474 fi
3475 ac_test_CFLAGS=${CFLAGS+set}
3476 ac_save_CFLAGS=$CFLAGS
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3478 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3479 if ${ac_cv_prog_cc_g+:} false; then :
3480   $as_echo_n "(cached) " >&6
3481 else
3482   ac_save_c_werror_flag=$ac_c_werror_flag
3483    ac_c_werror_flag=yes
3484    ac_cv_prog_cc_g=no
3485    CFLAGS="-g"
3486    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h.  */
3488
3489 int
3490 main ()
3491 {
3492
3493   ;
3494   return 0;
3495 }
3496 _ACEOF
3497 if ac_fn_c_try_compile "$LINENO"; then :
3498   ac_cv_prog_cc_g=yes
3499 else
3500   CFLAGS=""
3501       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h.  */
3503
3504 int
3505 main ()
3506 {
3507
3508   ;
3509   return 0;
3510 }
3511 _ACEOF
3512 if ac_fn_c_try_compile "$LINENO"; then :
3513
3514 else
3515   ac_c_werror_flag=$ac_save_c_werror_flag
3516          CFLAGS="-g"
3517          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h.  */
3519
3520 int
3521 main ()
3522 {
3523
3524   ;
3525   return 0;
3526 }
3527 _ACEOF
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529   ac_cv_prog_cc_g=yes
3530 fi
3531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532 fi
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 fi
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536    ac_c_werror_flag=$ac_save_c_werror_flag
3537 fi
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3539 $as_echo "$ac_cv_prog_cc_g" >&6; }
3540 if test "$ac_test_CFLAGS" = set; then
3541   CFLAGS=$ac_save_CFLAGS
3542 elif test $ac_cv_prog_cc_g = yes; then
3543   if test "$GCC" = yes; then
3544     CFLAGS="-g -O2"
3545   else
3546     CFLAGS="-g"
3547   fi
3548 else
3549   if test "$GCC" = yes; then
3550     CFLAGS="-O2"
3551   else
3552     CFLAGS=
3553   fi
3554 fi
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3556 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3557 if ${ac_cv_prog_cc_c89+:} false; then :
3558   $as_echo_n "(cached) " >&6
3559 else
3560   ac_cv_prog_cc_c89=no
3561 ac_save_CC=$CC
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h.  */
3564 #include <stdarg.h>
3565 #include <stdio.h>
3566 struct stat;
3567 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3568 struct buf { int x; };
3569 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3570 static char *e (p, i)
3571      char **p;
3572      int i;
3573 {
3574   return p[i];
3575 }
3576 static char *f (char * (*g) (char **, int), char **p, ...)
3577 {
3578   char *s;
3579   va_list v;
3580   va_start (v,p);
3581   s = g (p, va_arg (v,int));
3582   va_end (v);
3583   return s;
3584 }
3585
3586 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3587    function prototypes and stuff, but not '\xHH' hex character constants.
3588    These don't provoke an error unfortunately, instead are silently treated
3589    as 'x'.  The following induces an error, until -std is added to get
3590    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3591    array size at least.  It's necessary to write '\x00'==0 to get something
3592    that's true only with -std.  */
3593 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3594
3595 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3596    inside strings and character constants.  */
3597 #define FOO(x) 'x'
3598 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3599
3600 int test (int i, double x);
3601 struct s1 {int (*f) (int a);};
3602 struct s2 {int (*f) (double a);};
3603 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3604 int argc;
3605 char **argv;
3606 int
3607 main ()
3608 {
3609 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3610   ;
3611   return 0;
3612 }
3613 _ACEOF
3614 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3615         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3616 do
3617   CC="$ac_save_CC $ac_arg"
3618   if ac_fn_c_try_compile "$LINENO"; then :
3619   ac_cv_prog_cc_c89=$ac_arg
3620 fi
3621 rm -f core conftest.err conftest.$ac_objext
3622   test "x$ac_cv_prog_cc_c89" != "xno" && break
3623 done
3624 rm -f conftest.$ac_ext
3625 CC=$ac_save_CC
3626
3627 fi
3628 # AC_CACHE_VAL
3629 case "x$ac_cv_prog_cc_c89" in
3630   x)
3631     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3632 $as_echo "none needed" >&6; } ;;
3633   xno)
3634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3635 $as_echo "unsupported" >&6; } ;;
3636   *)
3637     CC="$CC $ac_cv_prog_cc_c89"
3638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3639 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3640 esac
3641 if test "x$ac_cv_prog_cc_c89" != xno; then :
3642
3643 fi
3644
3645 ac_ext=c
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650
3651
3652 ac_ext=c
3653 ac_cpp='$CPP $CPPFLAGS'
3654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3658 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3659 # On Suns, sometimes $CPP names a directory.
3660 if test -n "$CPP" && test -d "$CPP"; then
3661   CPP=
3662 fi
3663 if test -z "$CPP"; then
3664   if ${ac_cv_prog_CPP+:} false; then :
3665   $as_echo_n "(cached) " >&6
3666 else
3667       # Double quotes because CPP needs to be expanded
3668     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3669     do
3670       ac_preproc_ok=false
3671 for ac_c_preproc_warn_flag in '' yes
3672 do
3673   # Use a header file that comes with gcc, so configuring glibc
3674   # with a fresh cross-compiler works.
3675   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3676   # <limits.h> exists even on freestanding compilers.
3677   # On the NeXT, cc -E runs the code through the compiler's parser,
3678   # not just through cpp. "Syntax error" is here to catch this case.
3679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h.  */
3681 #ifdef __STDC__
3682 # include <limits.h>
3683 #else
3684 # include <assert.h>
3685 #endif
3686                      Syntax error
3687 _ACEOF
3688 if ac_fn_c_try_cpp "$LINENO"; then :
3689
3690 else
3691   # Broken: fails on valid input.
3692 continue
3693 fi
3694 rm -f conftest.err conftest.i conftest.$ac_ext
3695
3696   # OK, works on sane cases.  Now check whether nonexistent headers
3697   # can be detected and how.
3698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h.  */
3700 #include <ac_nonexistent.h>
3701 _ACEOF
3702 if ac_fn_c_try_cpp "$LINENO"; then :
3703   # Broken: success on invalid input.
3704 continue
3705 else
3706   # Passes both tests.
3707 ac_preproc_ok=:
3708 break
3709 fi
3710 rm -f conftest.err conftest.i conftest.$ac_ext
3711
3712 done
3713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3714 rm -f conftest.i conftest.err conftest.$ac_ext
3715 if $ac_preproc_ok; then :
3716   break
3717 fi
3718
3719     done
3720     ac_cv_prog_CPP=$CPP
3721
3722 fi
3723   CPP=$ac_cv_prog_CPP
3724 else
3725   ac_cv_prog_CPP=$CPP
3726 fi
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3728 $as_echo "$CPP" >&6; }
3729 ac_preproc_ok=false
3730 for ac_c_preproc_warn_flag in '' yes
3731 do
3732   # Use a header file that comes with gcc, so configuring glibc
3733   # with a fresh cross-compiler works.
3734   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3735   # <limits.h> exists even on freestanding compilers.
3736   # On the NeXT, cc -E runs the code through the compiler's parser,
3737   # not just through cpp. "Syntax error" is here to catch this case.
3738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h.  */
3740 #ifdef __STDC__
3741 # include <limits.h>
3742 #else
3743 # include <assert.h>
3744 #endif
3745                      Syntax error
3746 _ACEOF
3747 if ac_fn_c_try_cpp "$LINENO"; then :
3748
3749 else
3750   # Broken: fails on valid input.
3751 continue
3752 fi
3753 rm -f conftest.err conftest.i conftest.$ac_ext
3754
3755   # OK, works on sane cases.  Now check whether nonexistent headers
3756   # can be detected and how.
3757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h.  */
3759 #include <ac_nonexistent.h>
3760 _ACEOF
3761 if ac_fn_c_try_cpp "$LINENO"; then :
3762   # Broken: success on invalid input.
3763 continue
3764 else
3765   # Passes both tests.
3766 ac_preproc_ok=:
3767 break
3768 fi
3769 rm -f conftest.err conftest.i conftest.$ac_ext
3770
3771 done
3772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3773 rm -f conftest.i conftest.err conftest.$ac_ext
3774 if $ac_preproc_ok; then :
3775
3776 else
3777   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3780 See \`config.log' for more details" "$LINENO" 5; }
3781 fi
3782
3783 ac_ext=c
3784 ac_cpp='$CPP $CPPFLAGS'
3785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3788
3789
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3791 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3792 if ${ac_cv_path_GREP+:} false; then :
3793   $as_echo_n "(cached) " >&6
3794 else
3795   if test -z "$GREP"; then
3796   ac_path_GREP_found=false
3797   # Loop through the user's path and test for each of PROGNAME-LIST
3798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3800 do
3801   IFS=$as_save_IFS
3802   test -z "$as_dir" && as_dir=.
3803     for ac_prog in grep ggrep; do
3804     for ac_exec_ext in '' $ac_executable_extensions; do
3805       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3806       as_fn_executable_p "$ac_path_GREP" || continue
3807 # Check for GNU ac_path_GREP and select it if it is found.
3808   # Check for GNU $ac_path_GREP
3809 case `"$ac_path_GREP" --version 2>&1` in
3810 *GNU*)
3811   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3812 *)
3813   ac_count=0
3814   $as_echo_n 0123456789 >"conftest.in"
3815   while :
3816   do
3817     cat "conftest.in" "conftest.in" >"conftest.tmp"
3818     mv "conftest.tmp" "conftest.in"
3819     cp "conftest.in" "conftest.nl"
3820     $as_echo 'GREP' >> "conftest.nl"
3821     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3822     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3823     as_fn_arith $ac_count + 1 && ac_count=$as_val
3824     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3825       # Best one so far, save it but keep looking for a better one
3826       ac_cv_path_GREP="$ac_path_GREP"
3827       ac_path_GREP_max=$ac_count
3828     fi
3829     # 10*(2^10) chars as input seems more than enough
3830     test $ac_count -gt 10 && break
3831   done
3832   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3833 esac
3834
3835       $ac_path_GREP_found && break 3
3836     done
3837   done
3838   done
3839 IFS=$as_save_IFS
3840   if test -z "$ac_cv_path_GREP"; then
3841     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3842   fi
3843 else
3844   ac_cv_path_GREP=$GREP
3845 fi
3846
3847 fi
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3849 $as_echo "$ac_cv_path_GREP" >&6; }
3850  GREP="$ac_cv_path_GREP"
3851
3852
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3854 $as_echo_n "checking for egrep... " >&6; }
3855 if ${ac_cv_path_EGREP+:} false; then :
3856   $as_echo_n "(cached) " >&6
3857 else
3858   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3859    then ac_cv_path_EGREP="$GREP -E"
3860    else
3861      if test -z "$EGREP"; then
3862   ac_path_EGREP_found=false
3863   # Loop through the user's path and test for each of PROGNAME-LIST
3864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3866 do
3867   IFS=$as_save_IFS
3868   test -z "$as_dir" && as_dir=.
3869     for ac_prog in egrep; do
3870     for ac_exec_ext in '' $ac_executable_extensions; do
3871       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3872       as_fn_executable_p "$ac_path_EGREP" || continue
3873 # Check for GNU ac_path_EGREP and select it if it is found.
3874   # Check for GNU $ac_path_EGREP
3875 case `"$ac_path_EGREP" --version 2>&1` in
3876 *GNU*)
3877   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3878 *)
3879   ac_count=0
3880   $as_echo_n 0123456789 >"conftest.in"
3881   while :
3882   do
3883     cat "conftest.in" "conftest.in" >"conftest.tmp"
3884     mv "conftest.tmp" "conftest.in"
3885     cp "conftest.in" "conftest.nl"
3886     $as_echo 'EGREP' >> "conftest.nl"
3887     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3888     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3889     as_fn_arith $ac_count + 1 && ac_count=$as_val
3890     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3891       # Best one so far, save it but keep looking for a better one
3892       ac_cv_path_EGREP="$ac_path_EGREP"
3893       ac_path_EGREP_max=$ac_count
3894     fi
3895     # 10*(2^10) chars as input seems more than enough
3896     test $ac_count -gt 10 && break
3897   done
3898   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3899 esac
3900
3901       $ac_path_EGREP_found && break 3
3902     done
3903   done
3904   done
3905 IFS=$as_save_IFS
3906   if test -z "$ac_cv_path_EGREP"; then
3907     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3908   fi
3909 else
3910   ac_cv_path_EGREP=$EGREP
3911 fi
3912
3913    fi
3914 fi
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3916 $as_echo "$ac_cv_path_EGREP" >&6; }
3917  EGREP="$ac_cv_path_EGREP"
3918
3919
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3921 $as_echo_n "checking for ANSI C header files... " >&6; }
3922 if ${ac_cv_header_stdc+:} false; then :
3923   $as_echo_n "(cached) " >&6
3924 else
3925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h.  */
3927 #include <stdlib.h>
3928 #include <stdarg.h>
3929 #include <string.h>
3930 #include <float.h>
3931
3932 int
3933 main ()
3934 {
3935
3936   ;
3937   return 0;
3938 }
3939 _ACEOF
3940 if ac_fn_c_try_compile "$LINENO"; then :
3941   ac_cv_header_stdc=yes
3942 else
3943   ac_cv_header_stdc=no
3944 fi
3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946
3947 if test $ac_cv_header_stdc = yes; then
3948   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h.  */
3951 #include <string.h>
3952
3953 _ACEOF
3954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3955   $EGREP "memchr" >/dev/null 2>&1; then :
3956
3957 else
3958   ac_cv_header_stdc=no
3959 fi
3960 rm -f conftest*
3961
3962 fi
3963
3964 if test $ac_cv_header_stdc = yes; then
3965   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h.  */
3968 #include <stdlib.h>
3969
3970 _ACEOF
3971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3972   $EGREP "free" >/dev/null 2>&1; then :
3973
3974 else
3975   ac_cv_header_stdc=no
3976 fi
3977 rm -f conftest*
3978
3979 fi
3980
3981 if test $ac_cv_header_stdc = yes; then
3982   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3983   if test "$cross_compiling" = yes; then :
3984   :
3985 else
3986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h.  */
3988 #include <ctype.h>
3989 #include <stdlib.h>
3990 #if ((' ' & 0x0FF) == 0x020)
3991 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3992 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3993 #else
3994 # define ISLOWER(c) \
3995                    (('a' <= (c) && (c) <= 'i') \
3996                      || ('j' <= (c) && (c) <= 'r') \
3997                      || ('s' <= (c) && (c) <= 'z'))
3998 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3999 #endif
4000
4001 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4002 int
4003 main ()
4004 {
4005   int i;
4006   for (i = 0; i < 256; i++)
4007     if (XOR (islower (i), ISLOWER (i))
4008         || toupper (i) != TOUPPER (i))
4009       return 2;
4010   return 0;
4011 }
4012 _ACEOF
4013 if ac_fn_c_try_run "$LINENO"; then :
4014
4015 else
4016   ac_cv_header_stdc=no
4017 fi
4018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4019   conftest.$ac_objext conftest.beam conftest.$ac_ext
4020 fi
4021
4022 fi
4023 fi
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4025 $as_echo "$ac_cv_header_stdc" >&6; }
4026 if test $ac_cv_header_stdc = yes; then
4027
4028 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4029
4030 fi
4031
4032 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4033 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4034                   inttypes.h stdint.h unistd.h
4035 do :
4036   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4037 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4038 "
4039 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4040   cat >>confdefs.h <<_ACEOF
4041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4042 _ACEOF
4043
4044 fi
4045
4046 done
4047
4048
4049
4050   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4051 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4052   MINIX=yes
4053 else
4054   MINIX=
4055 fi
4056
4057
4058   if test "$MINIX" = yes; then
4059
4060 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4061
4062
4063 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4064
4065
4066 $as_echo "#define _MINIX 1" >>confdefs.h
4067
4068   fi
4069
4070
4071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4072 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4073 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4074   $as_echo_n "(cached) " >&6
4075 else
4076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h.  */
4078
4079 #         define __EXTENSIONS__ 1
4080           $ac_includes_default
4081 int
4082 main ()
4083 {
4084
4085   ;
4086   return 0;
4087 }
4088 _ACEOF
4089 if ac_fn_c_try_compile "$LINENO"; then :
4090   ac_cv_safe_to_define___extensions__=yes
4091 else
4092   ac_cv_safe_to_define___extensions__=no
4093 fi
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 fi
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4097 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4098   test $ac_cv_safe_to_define___extensions__ = yes &&
4099     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4100
4101   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4102
4103   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4104
4105   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4106
4107   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4108
4109
4110
4111 if test "$ac_cv_header_minix_config_h" = "yes"; then
4112
4113 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4114
4115 fi
4116
4117 case "$prefix" in
4118         NONE)
4119                 prefix="/usr/local"
4120         ;;
4121 esac
4122 case "$exec_prefix" in
4123         NONE)
4124                 exec_prefix="$prefix"
4125         ;;
4126 esac
4127
4128 # are we on MinGW?
4129 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4130 else
4131         if echo $host $target | grep mingw32 >/dev/null; then on_mingw="yes"
4132         else on_mingw="no"; fi
4133 fi
4134
4135 #
4136 # Determine configuration file
4137 # the eval is to evaluate shell expansion twice
4138 UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
4139
4140 UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
4141
4142 UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
4143
4144 if test $on_mingw = "no"; then
4145   ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4146 else
4147   ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4148 fi
4149
4150 # Check whether --with-conf_file was given.
4151 if test "${with_conf_file+set}" = set; then :
4152   withval=$with_conf_file; ub_conf_file="$withval"
4153 fi
4154
4155
4156 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4157
4158
4159 cat >>confdefs.h <<_ACEOF
4160 #define CONFIGFILE "$hdr_config"
4161 _ACEOF
4162
4163 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4164 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4165          X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4166          X"$ub_conf_file" : 'X\(//\)$' \| \
4167          X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4168 $as_echo X"$ub_conf_file" |
4169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4170             s//\1/
4171             q
4172           }
4173           /^X\(\/\/\)[^/].*/{
4174             s//\1/
4175             q
4176           }
4177           /^X\(\/\/\)$/{
4178             s//\1/
4179             q
4180           }
4181           /^X\(\/\).*/{
4182             s//\1/
4183             q
4184           }
4185           s/.*/./; q'`
4186
4187
4188 # Determine run, chroot directory and pidfile locations
4189
4190 # Check whether --with-run-dir was given.
4191 if test "${with_run_dir+set}" = set; then :
4192   withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4193 else
4194   if test $on_mingw = no; then
4195     UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4196 else
4197     UNBOUND_RUN_DIR=""
4198 fi
4199
4200 fi
4201
4202
4203 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4204
4205
4206 cat >>confdefs.h <<_ACEOF
4207 #define RUN_DIR "$hdr_run"
4208 _ACEOF
4209
4210
4211
4212 # Check whether --with-chroot-dir was given.
4213 if test "${with_chroot_dir+set}" = set; then :
4214   withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4215 else
4216   if test $on_mingw = no; then
4217     UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4218 else
4219     UNBOUND_CHROOT_DIR=""
4220 fi
4221
4222 fi
4223
4224
4225 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4226
4227
4228 cat >>confdefs.h <<_ACEOF
4229 #define CHROOT_DIR "$hdr_chroot"
4230 _ACEOF
4231
4232
4233
4234 # Check whether --with-share-dir was given.
4235 if test "${with_share_dir+set}" = set; then :
4236   withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4237 else
4238   UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4239 fi
4240
4241
4242
4243 cat >>confdefs.h <<_ACEOF
4244 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4245 _ACEOF
4246
4247
4248
4249 # Check whether --with-pidfile was given.
4250 if test "${with_pidfile+set}" = set; then :
4251   withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4252 else
4253   if test $on_mingw = no; then
4254     UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4255 else
4256     UNBOUND_PIDFILE=""
4257 fi
4258
4259 fi
4260
4261
4262 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4263
4264
4265 cat >>confdefs.h <<_ACEOF
4266 #define PIDFILE "$hdr_pid"
4267 _ACEOF
4268
4269
4270
4271 # Check whether --with-rootkey-file was given.
4272 if test "${with_rootkey_file+set}" = set; then :
4273   withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4274 else
4275   if test $on_mingw = no; then
4276     UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4277 else
4278     UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4279 fi
4280
4281 fi
4282
4283
4284 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4285
4286
4287 cat >>confdefs.h <<_ACEOF
4288 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4289 _ACEOF
4290
4291
4292
4293 # Check whether --with-rootcert-file was given.
4294 if test "${with_rootcert_file+set}" = set; then :
4295   withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4296 else
4297   if test $on_mingw = no; then
4298     UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4299 else
4300     UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4301 fi
4302
4303 fi
4304
4305
4306 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4307
4308
4309 cat >>confdefs.h <<_ACEOF
4310 #define ROOT_CERT_FILE "$hdr_rpem"
4311 _ACEOF
4312
4313
4314
4315 # Check whether --with-username was given.
4316 if test "${with_username+set}" = set; then :
4317   withval=$with_username; UNBOUND_USERNAME="$withval"
4318 else
4319   UNBOUND_USERNAME="unbound"
4320 fi
4321
4322
4323
4324 cat >>confdefs.h <<_ACEOF
4325 #define UB_USERNAME "$UNBOUND_USERNAME"
4326 _ACEOF
4327
4328
4329
4330 $as_echo "#define WINVER 0x0502" >>confdefs.h
4331
4332 wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\).*$/\1,\2,\3,\4/' -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9]*$/\1,\2,\3,0/' `
4333
4334
4335 cat >>confdefs.h <<_ACEOF
4336 #define RSRC_PACKAGE_VERSION $wnvs
4337 _ACEOF
4338
4339
4340 # Checks for typedefs, structures, and compiler characteristics.
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4342 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4343 if ${ac_cv_c_const+:} false; then :
4344   $as_echo_n "(cached) " >&6
4345 else
4346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h.  */
4348
4349 int
4350 main ()
4351 {
4352
4353 #ifndef __cplusplus
4354   /* Ultrix mips cc rejects this sort of thing.  */
4355   typedef int charset[2];
4356   const charset cs = { 0, 0 };
4357   /* SunOS 4.1.1 cc rejects this.  */
4358   char const *const *pcpcc;
4359   char **ppc;
4360   /* NEC SVR4.0.2 mips cc rejects this.  */
4361   struct point {int x, y;};
4362   static struct point const zero = {0,0};
4363   /* AIX XL C 1.02.0.0 rejects this.
4364      It does not let you subtract one const X* pointer from another in
4365      an arm of an if-expression whose if-part is not a constant
4366      expression */
4367   const char *g = "string";
4368   pcpcc = &g + (g ? g-g : 0);
4369   /* HPUX 7.0 cc rejects these. */
4370   ++pcpcc;
4371   ppc = (char**) pcpcc;
4372   pcpcc = (char const *const *) ppc;
4373   { /* SCO 3.2v4 cc rejects this sort of thing.  */
4374     char tx;
4375     char *t = &tx;
4376     char const *s = 0 ? (char *) 0 : (char const *) 0;
4377
4378     *t++ = 0;
4379     if (s) return 0;
4380   }
4381   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4382     int x[] = {25, 17};
4383     const int *foo = &x[0];
4384     ++foo;
4385   }
4386   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4387     typedef const int *iptr;
4388     iptr p = 0;
4389     ++p;
4390   }
4391   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4392        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4393     struct s { int j; const int *ap[3]; } bx;
4394     struct s *b = &bx; b->j = 5;
4395   }
4396   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4397     const int foo = 10;
4398     if (!foo) return 0;
4399   }
4400   return !cs[0] && !zero.x;
4401 #endif
4402
4403   ;
4404   return 0;
4405 }
4406 _ACEOF
4407 if ac_fn_c_try_compile "$LINENO"; then :
4408   ac_cv_c_const=yes
4409 else
4410   ac_cv_c_const=no
4411 fi
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413 fi
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4415 $as_echo "$ac_cv_c_const" >&6; }
4416 if test $ac_cv_c_const = no; then
4417
4418 $as_echo "#define const /**/" >>confdefs.h
4419
4420 fi
4421
4422 ac_ext=c
4423 ac_cpp='$CPP $CPPFLAGS'
4424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4427
4428 # allow user to override the -g -O2 flags.
4429 if test "x$CFLAGS" = "x" ; then
4430
4431
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4433 $as_echo_n "checking whether $CC supports -g... " >&6; }
4434 cache=`echo g | sed 'y%.=/+-%___p_%'`
4435 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4436   $as_echo_n "(cached) " >&6
4437 else
4438
4439 echo 'void f(void){}' >conftest.c
4440 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4441 eval "cv_prog_cc_flag_$cache=yes"
4442 else
4443 eval "cv_prog_cc_flag_$cache=no"
4444 fi
4445 rm -f conftest conftest.o conftest.c
4446
4447 fi
4448
4449 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4451 $as_echo "yes" >&6; }
4452 :
4453 CFLAGS="$CFLAGS -g"
4454 else
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4457 :
4458
4459 fi
4460
4461
4462
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4464 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4465 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4466 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4467   $as_echo_n "(cached) " >&6
4468 else
4469
4470 echo 'void f(void){}' >conftest.c
4471 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4472 eval "cv_prog_cc_flag_$cache=yes"
4473 else
4474 eval "cv_prog_cc_flag_$cache=no"
4475 fi
4476 rm -f conftest conftest.o conftest.c
4477
4478 fi
4479
4480 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4482 $as_echo "yes" >&6; }
4483 :
4484 CFLAGS="$CFLAGS -O2"
4485 else
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4488 :
4489
4490 fi
4491
4492 fi
4493 ac_ext=c
4494 ac_cpp='$CPP $CPPFLAGS'
4495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4498 if test -n "$ac_tool_prefix"; then
4499   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4500 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4502 $as_echo_n "checking for $ac_word... " >&6; }
4503 if ${ac_cv_prog_CC+:} false; then :
4504   $as_echo_n "(cached) " >&6
4505 else
4506   if test -n "$CC"; then
4507   ac_cv_prog_CC="$CC" # Let the user override the test.
4508 else
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4511 do
4512   IFS=$as_save_IFS
4513   test -z "$as_dir" && as_dir=.
4514     for ac_exec_ext in '' $ac_executable_extensions; do
4515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518     break 2
4519   fi
4520 done
4521   done
4522 IFS=$as_save_IFS
4523
4524 fi
4525 fi
4526 CC=$ac_cv_prog_CC
4527 if test -n "$CC"; then
4528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4529 $as_echo "$CC" >&6; }
4530 else
4531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4533 fi
4534
4535
4536 fi
4537 if test -z "$ac_cv_prog_CC"; then
4538   ac_ct_CC=$CC
4539   # Extract the first word of "gcc", so it can be a program name with args.
4540 set dummy gcc; ac_word=$2
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4542 $as_echo_n "checking for $ac_word... " >&6; }
4543 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4544   $as_echo_n "(cached) " >&6
4545 else
4546   if test -n "$ac_ct_CC"; then
4547   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4548 else
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552   IFS=$as_save_IFS
4553   test -z "$as_dir" && as_dir=.
4554     for ac_exec_ext in '' $ac_executable_extensions; do
4555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556     ac_cv_prog_ac_ct_CC="gcc"
4557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4558     break 2
4559   fi
4560 done
4561   done
4562 IFS=$as_save_IFS
4563
4564 fi
4565 fi
4566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4567 if test -n "$ac_ct_CC"; then
4568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4569 $as_echo "$ac_ct_CC" >&6; }
4570 else
4571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4573 fi
4574
4575   if test "x$ac_ct_CC" = x; then
4576     CC=""
4577   else
4578     case $cross_compiling:$ac_tool_warned in
4579 yes:)
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4582 ac_tool_warned=yes ;;
4583 esac
4584     CC=$ac_ct_CC
4585   fi
4586 else
4587   CC="$ac_cv_prog_CC"
4588 fi
4589
4590 if test -z "$CC"; then
4591           if test -n "$ac_tool_prefix"; then
4592     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4593 set dummy ${ac_tool_prefix}cc; ac_word=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if ${ac_cv_prog_CC+:} false; then :
4597   $as_echo_n "(cached) " >&6
4598 else
4599   if test -n "$CC"; then
4600   ac_cv_prog_CC="$CC" # Let the user override the test.
4601 else
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4604 do
4605   IFS=$as_save_IFS
4606   test -z "$as_dir" && as_dir=.
4607     for ac_exec_ext in '' $ac_executable_extensions; do
4608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609     ac_cv_prog_CC="${ac_tool_prefix}cc"
4610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611     break 2
4612   fi
4613 done
4614   done
4615 IFS=$as_save_IFS
4616
4617 fi
4618 fi
4619 CC=$ac_cv_prog_CC
4620 if test -n "$CC"; then
4621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4622 $as_echo "$CC" >&6; }
4623 else
4624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4626 fi
4627
4628
4629   fi
4630 fi
4631 if test -z "$CC"; then
4632   # Extract the first word of "cc", so it can be a program name with args.
4633 set dummy cc; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if ${ac_cv_prog_CC+:} false; then :
4637   $as_echo_n "(cached) " >&6
4638 else
4639   if test -n "$CC"; then
4640   ac_cv_prog_CC="$CC" # Let the user override the test.
4641 else
4642   ac_prog_rejected=no
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4645 do
4646   IFS=$as_save_IFS
4647   test -z "$as_dir" && as_dir=.
4648     for ac_exec_ext in '' $ac_executable_extensions; do
4649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4651        ac_prog_rejected=yes
4652        continue
4653      fi
4654     ac_cv_prog_CC="cc"
4655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656     break 2
4657   fi
4658 done
4659   done
4660 IFS=$as_save_IFS
4661
4662 if test $ac_prog_rejected = yes; then
4663   # We found a bogon in the path, so make sure we never use it.
4664   set dummy $ac_cv_prog_CC
4665   shift
4666   if test $# != 0; then
4667     # We chose a different compiler from the bogus one.
4668     # However, it has the same basename, so the bogon will be chosen
4669     # first if we set CC to just the basename; use the full file name.
4670     shift
4671     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4672   fi
4673 fi
4674 fi
4675 fi
4676 CC=$ac_cv_prog_CC
4677 if test -n "$CC"; then
4678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4679 $as_echo "$CC" >&6; }
4680 else
4681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4683 fi
4684
4685
4686 fi
4687 if test -z "$CC"; then
4688   if test -n "$ac_tool_prefix"; then
4689   for ac_prog in cl.exe
4690   do
4691     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if ${ac_cv_prog_CC+:} false; then :
4696   $as_echo_n "(cached) " >&6
4697 else
4698   if test -n "$CC"; then
4699   ac_cv_prog_CC="$CC" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704   IFS=$as_save_IFS
4705   test -z "$as_dir" && as_dir=.
4706     for ac_exec_ext in '' $ac_executable_extensions; do
4707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710     break 2
4711   fi
4712 done
4713   done
4714 IFS=$as_save_IFS
4715
4716 fi
4717 fi
4718 CC=$ac_cv_prog_CC
4719 if test -n "$CC"; then
4720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4721 $as_echo "$CC" >&6; }
4722 else
4723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4725 fi
4726
4727
4728     test -n "$CC" && break
4729   done
4730 fi
4731 if test -z "$CC"; then
4732   ac_ct_CC=$CC
4733   for ac_prog in cl.exe
4734 do
4735   # Extract the first word of "$ac_prog", so it can be a program name with args.
4736 set dummy $ac_prog; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4740   $as_echo_n "(cached) " >&6
4741 else
4742   if test -n "$ac_ct_CC"; then
4743   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748   IFS=$as_save_IFS
4749   test -z "$as_dir" && as_dir=.
4750     for ac_exec_ext in '' $ac_executable_extensions; do
4751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4752     ac_cv_prog_ac_ct_CC="$ac_prog"
4753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754     break 2
4755   fi
4756 done
4757   done
4758 IFS=$as_save_IFS
4759
4760 fi
4761 fi
4762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4763 if test -n "$ac_ct_CC"; then
4764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4765 $as_echo "$ac_ct_CC" >&6; }
4766 else
4767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4769 fi
4770
4771
4772   test -n "$ac_ct_CC" && break
4773 done
4774
4775   if test "x$ac_ct_CC" = x; then
4776     CC=""
4777   else
4778     case $cross_compiling:$ac_tool_warned in
4779 yes:)
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4782 ac_tool_warned=yes ;;
4783 esac
4784     CC=$ac_ct_CC
4785   fi
4786 fi
4787
4788 fi
4789
4790
4791 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4793 as_fn_error $? "no acceptable C compiler found in \$PATH
4794 See \`config.log' for more details" "$LINENO" 5; }
4795
4796 # Provide some information about the compiler.
4797 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4798 set X $ac_compile
4799 ac_compiler=$2
4800 for ac_option in --version -v -V -qversion; do
4801   { { ac_try="$ac_compiler $ac_option >&5"
4802 case "(($ac_try" in
4803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4804   *) ac_try_echo=$ac_try;;
4805 esac
4806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4807 $as_echo "$ac_try_echo"; } >&5
4808   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4809   ac_status=$?
4810   if test -s conftest.err; then
4811     sed '10a\
4812 ... rest of stderr output deleted ...
4813          10q' conftest.err >conftest.er1
4814     cat conftest.er1 >&5
4815   fi
4816   rm -f conftest.er1 conftest.err
4817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4818   test $ac_status = 0; }
4819 done
4820
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4822 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4823 if ${ac_cv_c_compiler_gnu+:} false; then :
4824   $as_echo_n "(cached) " >&6
4825 else
4826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h.  */
4828
4829 int
4830 main ()
4831 {
4832 #ifndef __GNUC__
4833        choke me
4834 #endif
4835
4836   ;
4837   return 0;
4838 }
4839 _ACEOF
4840 if ac_fn_c_try_compile "$LINENO"; then :
4841   ac_compiler_gnu=yes
4842 else
4843   ac_compiler_gnu=no
4844 fi
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4847
4848 fi
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4850 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4851 if test $ac_compiler_gnu = yes; then
4852   GCC=yes
4853 else
4854   GCC=
4855 fi
4856 ac_test_CFLAGS=${CFLAGS+set}
4857 ac_save_CFLAGS=$CFLAGS
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4859 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4860 if ${ac_cv_prog_cc_g+:} false; then :
4861   $as_echo_n "(cached) " >&6
4862 else
4863   ac_save_c_werror_flag=$ac_c_werror_flag
4864    ac_c_werror_flag=yes
4865    ac_cv_prog_cc_g=no
4866    CFLAGS="-g"
4867    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h.  */
4869
4870 int
4871 main ()
4872 {
4873
4874   ;
4875   return 0;
4876 }
4877 _ACEOF
4878 if ac_fn_c_try_compile "$LINENO"; then :
4879   ac_cv_prog_cc_g=yes
4880 else
4881   CFLAGS=""
4882       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h.  */
4884
4885 int
4886 main ()
4887 {
4888
4889   ;
4890   return 0;
4891 }
4892 _ACEOF
4893 if ac_fn_c_try_compile "$LINENO"; then :
4894
4895 else
4896   ac_c_werror_flag=$ac_save_c_werror_flag
4897          CFLAGS="-g"
4898          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899 /* end confdefs.h.  */
4900
4901 int
4902 main ()
4903 {
4904
4905   ;
4906   return 0;
4907 }
4908 _ACEOF
4909 if ac_fn_c_try_compile "$LINENO"; then :
4910   ac_cv_prog_cc_g=yes
4911 fi
4912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913 fi
4914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915 fi
4916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4917    ac_c_werror_flag=$ac_save_c_werror_flag
4918 fi
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4920 $as_echo "$ac_cv_prog_cc_g" >&6; }
4921 if test "$ac_test_CFLAGS" = set; then
4922   CFLAGS=$ac_save_CFLAGS
4923 elif test $ac_cv_prog_cc_g = yes; then
4924   if test "$GCC" = yes; then
4925     CFLAGS="-g -O2"
4926   else
4927     CFLAGS="-g"
4928   fi
4929 else
4930   if test "$GCC" = yes; then
4931     CFLAGS="-O2"
4932   else
4933     CFLAGS=
4934   fi
4935 fi
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4937 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4938 if ${ac_cv_prog_cc_c89+:} false; then :
4939   $as_echo_n "(cached) " >&6
4940 else
4941   ac_cv_prog_cc_c89=no
4942 ac_save_CC=$CC
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h.  */
4945 #include <stdarg.h>
4946 #include <stdio.h>
4947 struct stat;
4948 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4949 struct buf { int x; };
4950 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4951 static char *e (p, i)
4952      char **p;
4953      int i;
4954 {
4955   return p[i];
4956 }
4957 static char *f (char * (*g) (char **, int), char **p, ...)
4958 {
4959   char *s;
4960   va_list v;
4961   va_start (v,p);
4962   s = g (p, va_arg (v,int));
4963   va_end (v);
4964   return s;
4965 }
4966
4967 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4968    function prototypes and stuff, but not '\xHH' hex character constants.
4969    These don't provoke an error unfortunately, instead are silently treated
4970    as 'x'.  The following induces an error, until -std is added to get
4971    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4972    array size at least.  It's necessary to write '\x00'==0 to get something
4973    that's true only with -std.  */
4974 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4975
4976 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4977    inside strings and character constants.  */
4978 #define FOO(x) 'x'
4979 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4980
4981 int test (int i, double x);
4982 struct s1 {int (*f) (int a);};
4983 struct s2 {int (*f) (double a);};
4984 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4985 int argc;
4986 char **argv;
4987 int
4988 main ()
4989 {
4990 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4991   ;
4992   return 0;
4993 }
4994 _ACEOF
4995 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4996         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4997 do
4998   CC="$ac_save_CC $ac_arg"
4999   if ac_fn_c_try_compile "$LINENO"; then :
5000   ac_cv_prog_cc_c89=$ac_arg
5001 fi
5002 rm -f core conftest.err conftest.$ac_objext
5003   test "x$ac_cv_prog_cc_c89" != "xno" && break
5004 done
5005 rm -f conftest.$ac_ext
5006 CC=$ac_save_CC
5007
5008 fi
5009 # AC_CACHE_VAL
5010 case "x$ac_cv_prog_cc_c89" in
5011   x)
5012     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5013 $as_echo "none needed" >&6; } ;;
5014   xno)
5015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5016 $as_echo "unsupported" >&6; } ;;
5017   *)
5018     CC="$CC $ac_cv_prog_cc_c89"
5019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5020 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5021 esac
5022 if test "x$ac_cv_prog_cc_c89" != xno; then :
5023
5024 fi
5025
5026 ac_ext=c
5027 ac_cpp='$CPP $CPPFLAGS'
5028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5031
5032
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
5034 $as_echo_n "checking $CC dependency flag... " >&6; }
5035 echo 'void f(){}' >conftest.c
5036 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5037         DEPFLAG="-MM"
5038 else
5039   if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5040         DEPFLAG="-xM1"
5041   else
5042         DEPFLAG="-MM"  # dunno do something
5043   fi
5044 fi
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
5046 $as_echo "$DEPFLAG" >&6; }
5047 rm -f conftest.c
5048
5049
5050
5051
5052
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
5054 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
5055 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
5056 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5057   $as_echo_n "(cached) " >&6
5058 else
5059
5060 echo 'void f(void){}' >conftest.c
5061 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
5062 eval "cv_prog_cc_flag_$cache=yes"
5063 else
5064 eval "cv_prog_cc_flag_$cache=no"
5065 fi
5066 rm -f conftest conftest.o conftest.c
5067
5068 fi
5069
5070 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5072 $as_echo "yes" >&6; }
5073 :
5074 ERRFLAG="-Werror"
5075 else
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5078 :
5079 ERRFLAG="-errwarn"
5080 fi
5081
5082
5083
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5085 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5086 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5087 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5088   $as_echo_n "(cached) " >&6
5089 else
5090
5091 echo 'void f(void){}' >conftest.c
5092 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5093 eval "cv_prog_cc_flag_$cache=yes"
5094 else
5095 eval "cv_prog_cc_flag_$cache=no"
5096 fi
5097 rm -f conftest conftest.o conftest.c
5098
5099 fi
5100
5101 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5103 $as_echo "yes" >&6; }
5104 :
5105 ERRFLAG="$ERRFLAG -Wall"
5106 else
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5109 :
5110 ERRFLAG="$ERRFLAG -errfmt"
5111 fi
5112
5113
5114
5115
5116
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5118 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5119 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5120 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5121   $as_echo_n "(cached) " >&6
5122 else
5123
5124 echo 'void f(void){}' >conftest.c
5125 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5126 eval "cv_prog_cc_flag_$cache=yes"
5127 else
5128 eval "cv_prog_cc_flag_$cache=no"
5129 fi
5130 rm -f conftest conftest.o conftest.c
5131
5132 fi
5133
5134 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5136 $as_echo "yes" >&6; }
5137 :
5138 C99FLAG="-std=c99"
5139 else
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141 $as_echo "no" >&6; }
5142 :
5143
5144 fi
5145
5146
5147
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5149 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
5150 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5151 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5152   $as_echo_n "(cached) " >&6
5153 else
5154
5155 echo 'void f(void){}' >conftest.c
5156 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5157 eval "cv_prog_cc_flag_$cache=yes"
5158 else
5159 eval "cv_prog_cc_flag_$cache=no"
5160 fi
5161 rm -f conftest conftest.o conftest.c
5162
5163 fi
5164
5165 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5167 $as_echo "yes" >&6; }
5168 :
5169 C99FLAG="-xc99"
5170 else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5173 :
5174
5175 fi
5176
5177
5178 for ac_header in getopt.h time.h
5179 do :
5180   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5181 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5182 "
5183 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5184   cat >>confdefs.h <<_ACEOF
5185 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5186 _ACEOF
5187
5188 fi
5189
5190 done
5191
5192
5193
5194
5195
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
5197 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5198 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
5199 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5200   $as_echo_n "(cached) " >&6
5201 else
5202
5203 echo '
5204 #include "confdefs.h"
5205 #include <stdlib.h>
5206 #include <ctype.h>
5207 #include <sys/time.h>
5208 #ifdef HAVE_TIME_H
5209 #include <time.h>
5210 #endif
5211 #include <unistd.h>
5212 #include <netdb.h>
5213 #ifdef HAVE_GETOPT_H
5214 #include <getopt.h>
5215 #endif
5216
5217 int test() {
5218         int a;
5219         char **opts = NULL;
5220         struct timeval tv;
5221         char *t;
5222         time_t time = 0;
5223         char *buf = NULL;
5224         const char* str = NULL;
5225         struct msghdr msg;
5226         msg.msg_control = 0;
5227         t = ctime_r(&time, buf);
5228         tv.tv_usec = 10;
5229         srandom(32);
5230         a = getopt(2, opts, "a");
5231         a = isascii(32);
5232         str = gai_strerror(0);
5233         if(str && t && tv.tv_usec && msg.msg_control)
5234                 a = 0;
5235         return a;
5236 }
5237 ' > conftest.c
5238 echo 'void f(){}' >>conftest.c
5239 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5240 eval "cv_prog_cc_flag_needed_$cache=no"
5241 else
5242
5243 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5244 eval "cv_prog_cc_flag_needed_$cache=yes"
5245 else
5246 eval "cv_prog_cc_flag_needed_$cache=fail"
5247 #echo 'Test with flag fails too!'
5248 #cat conftest.c
5249 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5250 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5251 #exit 1
5252 fi
5253
5254 fi
5255 rm -f conftest conftest.c conftest.o
5256
5257 fi
5258
5259 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5261 $as_echo "yes" >&6; }
5262 :
5263 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
5264 else
5265 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5268 #echo 'Test with flag is no!'
5269 #cat conftest.c
5270 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5271 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5272 #exit 1
5273 :
5274
5275 else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5277 $as_echo "failed" >&6; }
5278 :
5279
5280 fi
5281 fi
5282
5283
5284
5285
5286
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
5288 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5289 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5290 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5291   $as_echo_n "(cached) " >&6
5292 else
5293
5294 echo '
5295 #include "confdefs.h"
5296 #include <stdlib.h>
5297 #include <ctype.h>
5298 #include <sys/time.h>
5299 #ifdef HAVE_TIME_H
5300 #include <time.h>
5301 #endif
5302 #include <unistd.h>
5303 #include <netdb.h>
5304 #ifdef HAVE_GETOPT_H
5305 #include <getopt.h>
5306 #endif
5307
5308 int test() {
5309         int a;
5310         char **opts = NULL;
5311         struct timeval tv;
5312         char *t;
5313         time_t time = 0;
5314         char *buf = NULL;
5315         const char* str = NULL;
5316         struct msghdr msg;
5317         msg.msg_control = 0;
5318         t = ctime_r(&time, buf);
5319         tv.tv_usec = 10;
5320         srandom(32);
5321         a = getopt(2, opts, "a");
5322         a = isascii(32);
5323         str = gai_strerror(0);
5324         if(str && t && tv.tv_usec && msg.msg_control)
5325                 a = 0;
5326         return a;
5327 }
5328 ' > conftest.c
5329 echo 'void f(){}' >>conftest.c
5330 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5331 eval "cv_prog_cc_flag_needed_$cache=no"
5332 else
5333
5334 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5335 eval "cv_prog_cc_flag_needed_$cache=yes"
5336 else
5337 eval "cv_prog_cc_flag_needed_$cache=fail"
5338 #echo 'Test with flag fails too!'
5339 #cat conftest.c
5340 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5341 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5342 #exit 1
5343 fi
5344
5345 fi
5346 rm -f conftest conftest.c conftest.o
5347
5348 fi
5349
5350 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5352 $as_echo "yes" >&6; }
5353 :
5354 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5355 else
5356 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5359 #echo 'Test with flag is no!'
5360 #cat conftest.c
5361 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5362 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5363 #exit 1
5364 :
5365
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5368 $as_echo "failed" >&6; }
5369 :
5370
5371 fi
5372 fi
5373
5374
5375
5376
5377
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5379 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5380 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5381 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5382   $as_echo_n "(cached) " >&6
5383 else
5384
5385 echo '
5386 #include <stdbool.h>
5387 #include <ctype.h>
5388 int test() {
5389         int a = 0;
5390         return a;
5391 }
5392 ' > conftest.c
5393 echo 'void f(){}' >>conftest.c
5394 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5395 eval "cv_prog_cc_flag_needed_$cache=no"
5396 else
5397
5398 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5399 eval "cv_prog_cc_flag_needed_$cache=yes"
5400 else
5401 eval "cv_prog_cc_flag_needed_$cache=fail"
5402 #echo 'Test with flag fails too!'
5403 #cat conftest.c
5404 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5405 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5406 #exit 1
5407 fi
5408
5409 fi
5410 rm -f conftest conftest.c conftest.o
5411
5412 fi
5413
5414 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5416 $as_echo "yes" >&6; }
5417 :
5418 CFLAGS="$CFLAGS $C99FLAG"
5419 else
5420 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5423 #echo 'Test with flag is no!'
5424 #cat conftest.c
5425 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5426 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5427 #exit 1
5428 :
5429
5430 else
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5432 $as_echo "failed" >&6; }
5433 :
5434
5435 fi
5436 fi
5437
5438
5439
5440
5441
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5443 $as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5444 cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5445 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5446   $as_echo_n "(cached) " >&6
5447 else
5448
5449 echo '
5450 #include <ctype.h>
5451
5452 int test() {
5453         int a;
5454         a = isascii(32);
5455         return a;
5456 }
5457 ' > conftest.c
5458 echo 'void f(){}' >>conftest.c
5459 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5460 eval "cv_prog_cc_flag_needed_$cache=no"
5461 else
5462
5463 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5464 eval "cv_prog_cc_flag_needed_$cache=yes"
5465 else
5466 eval "cv_prog_cc_flag_needed_$cache=fail"
5467 #echo 'Test with flag fails too!'
5468 #cat conftest.c
5469 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5470 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5471 #exit 1
5472 fi
5473
5474 fi
5475 rm -f conftest conftest.c conftest.o
5476
5477 fi
5478
5479 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5481 $as_echo "yes" >&6; }
5482 :
5483 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5484 else
5485 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 #echo 'Test with flag is no!'
5489 #cat conftest.c
5490 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5491 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5492 #exit 1
5493 :
5494
5495 else
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5497 $as_echo "failed" >&6; }
5498 :
5499
5500 fi
5501 fi
5502
5503
5504
5505
5506
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5508 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5509 cache=_D_GNU_SOURCE
5510 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513
5514 echo '
5515 #include <netinet/in.h>
5516
5517 int test() {
5518         struct in6_pktinfo inf;
5519         int a = (int)sizeof(inf);
5520         return a;
5521 }
5522 ' > conftest.c
5523 echo 'void f(){}' >>conftest.c
5524 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5525 eval "cv_prog_cc_flag_needed_$cache=no"
5526 else
5527
5528 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5529 eval "cv_prog_cc_flag_needed_$cache=yes"
5530 else
5531 eval "cv_prog_cc_flag_needed_$cache=fail"
5532 #echo 'Test with flag fails too!'
5533 #cat conftest.c
5534 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5535 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5536 #exit 1
5537 fi
5538
5539 fi
5540 rm -f conftest conftest.c conftest.o
5541
5542 fi
5543
5544 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5546 $as_echo "yes" >&6; }
5547 :
5548 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5549 else
5550 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5553 #echo 'Test with flag is no!'
5554 #cat conftest.c
5555 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5556 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5557 #exit 1
5558 :
5559
5560 else
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5562 $as_echo "failed" >&6; }
5563 :
5564
5565 fi
5566 fi
5567
5568
5569 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5570 # is not available at all. -D_FRSRESGID is to make this check unique.
5571 # otherwise we would get the previous cached result.
5572
5573
5574
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5576 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5577 cache=_D_GNU_SOURCE__D_FRSRESGID
5578 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5579   $as_echo_n "(cached) " >&6
5580 else
5581
5582 echo '
5583 #include <unistd.h>
5584
5585 int test() {
5586         int a = setresgid(0,0,0);
5587         a = setresuid(0,0,0);
5588         return a;
5589 }
5590 ' > conftest.c
5591 echo 'void f(){}' >>conftest.c
5592 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5593 eval "cv_prog_cc_flag_needed_$cache=no"
5594 else
5595
5596 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5597 eval "cv_prog_cc_flag_needed_$cache=yes"
5598 else
5599 eval "cv_prog_cc_flag_needed_$cache=fail"
5600 #echo 'Test with flag fails too!'
5601 #cat conftest.c
5602 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5603 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5604 #exit 1
5605 fi
5606
5607 fi
5608 rm -f conftest conftest.c conftest.o
5609
5610 fi
5611
5612 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5614 $as_echo "yes" >&6; }
5615 :
5616 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5617 else
5618 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620 $as_echo "no" >&6; }
5621 #echo 'Test with flag is no!'
5622 #cat conftest.c
5623 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5624 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5625 #exit 1
5626 :
5627
5628 else
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5630 $as_echo "failed" >&6; }
5631 :
5632
5633 fi
5634 fi
5635
5636
5637
5638
5639
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5641 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5642 cache=_D_POSIX_C_SOURCE_200112
5643 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5644   $as_echo_n "(cached) " >&6
5645 else
5646
5647 echo '
5648 #include "confdefs.h"
5649 #ifdef HAVE_TIME_H
5650 #include <time.h>
5651 #endif
5652 #include <netdb.h>
5653
5654 int test() {
5655         int a = 0;
5656         char *t;
5657         time_t time = 0;
5658         char *buf = NULL;
5659         const char* str = NULL;
5660         t = ctime_r(&time, buf);
5661         str = gai_strerror(0);
5662         if(t && str)
5663                 a = 0;
5664         return a;
5665 }
5666 ' > conftest.c
5667 echo 'void f(){}' >>conftest.c
5668 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5669 eval "cv_prog_cc_flag_needed_$cache=no"
5670 else
5671
5672 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5673 eval "cv_prog_cc_flag_needed_$cache=yes"
5674 else
5675 eval "cv_prog_cc_flag_needed_$cache=fail"
5676 #echo 'Test with flag fails too!'
5677 #cat conftest.c
5678 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5679 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5680 #exit 1
5681 fi
5682
5683 fi
5684 rm -f conftest conftest.c conftest.o
5685
5686 fi
5687
5688 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5690 $as_echo "yes" >&6; }
5691 :
5692 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5693 else
5694 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5697 #echo 'Test with flag is no!'
5698 #cat conftest.c
5699 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5700 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5701 #exit 1
5702 :
5703
5704 else
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5706 $as_echo "failed" >&6; }
5707 :
5708
5709 fi
5710 fi
5711
5712
5713
5714
5715
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5717 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5718 cache=_D__EXTENSIONS__
5719 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5720   $as_echo_n "(cached) " >&6
5721 else
5722
5723 echo '
5724 #include "confdefs.h"
5725 #include <stdlib.h>
5726 #include <ctype.h>
5727 #include <sys/time.h>
5728 #ifdef HAVE_TIME_H
5729 #include <time.h>
5730 #endif
5731 #include <unistd.h>
5732 #ifdef HAVE_GETOPT_H
5733 #include <getopt.h>
5734 #endif
5735
5736 int test() {
5737         int a;
5738         char **opts = NULL;
5739         struct timeval tv;
5740         tv.tv_usec = 10;
5741         srandom(32);
5742         a = getopt(2, opts, "a");
5743         a = isascii(32);
5744         if(tv.tv_usec)
5745                 a = 0;
5746         return a;
5747 }
5748 ' > conftest.c
5749 echo 'void f(){}' >>conftest.c
5750 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5751 eval "cv_prog_cc_flag_needed_$cache=no"
5752 else
5753
5754 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5755 eval "cv_prog_cc_flag_needed_$cache=yes"
5756 else
5757 eval "cv_prog_cc_flag_needed_$cache=fail"
5758 #echo 'Test with flag fails too!'
5759 #cat conftest.c
5760 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5761 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5762 #exit 1
5763 fi
5764
5765 fi
5766 rm -f conftest conftest.c conftest.o
5767
5768 fi
5769
5770 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5772 $as_echo "yes" >&6; }
5773 :
5774 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5775 else
5776 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }
5779 #echo 'Test with flag is no!'
5780 #cat conftest.c
5781 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5782 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5783 #exit 1
5784 :
5785
5786 else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5788 $as_echo "failed" >&6; }
5789 :
5790
5791 fi
5792 fi
5793
5794
5795
5796
5797 # debug mode flags warnings
5798 # Check whether --enable-checking was given.
5799 if test "${enable_checking+set}" = set; then :
5800   enableval=$enable_checking;
5801 fi
5802
5803 # Check whether --enable-debug was given.
5804 if test "${enable_debug+set}" = set; then :
5805   enableval=$enable_debug;
5806 fi
5807
5808 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5809 else debug_enabled="$enable_checking"; fi
5810
5811 case "$debug_enabled" in
5812         yes)
5813
5814
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5816 $as_echo_n "checking whether $CC supports -W... " >&6; }
5817 cache=`echo W | sed 'y%.=/+-%___p_%'`
5818 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5819   $as_echo_n "(cached) " >&6
5820 else
5821
5822 echo 'void f(void){}' >conftest.c
5823 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5824 eval "cv_prog_cc_flag_$cache=yes"
5825 else
5826 eval "cv_prog_cc_flag_$cache=no"
5827 fi
5828 rm -f conftest conftest.o conftest.c
5829
5830 fi
5831
5832 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5834 $as_echo "yes" >&6; }
5835 :
5836 CFLAGS="$CFLAGS -W"
5837 else
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839 $as_echo "no" >&6; }
5840 :
5841
5842 fi
5843
5844
5845
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5847 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5848 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5849 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5850   $as_echo_n "(cached) " >&6
5851 else
5852
5853 echo 'void f(void){}' >conftest.c
5854 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5855 eval "cv_prog_cc_flag_$cache=yes"
5856 else
5857 eval "cv_prog_cc_flag_$cache=no"
5858 fi
5859 rm -f conftest conftest.o conftest.c
5860
5861 fi
5862
5863 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5865 $as_echo "yes" >&6; }
5866 :
5867 CFLAGS="$CFLAGS -Wall"
5868 else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 :
5872
5873 fi
5874
5875
5876
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5878 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5879 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5880 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5881   $as_echo_n "(cached) " >&6
5882 else
5883
5884 echo 'void f(void){}' >conftest.c
5885 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5886 eval "cv_prog_cc_flag_$cache=yes"
5887 else
5888 eval "cv_prog_cc_flag_$cache=no"
5889 fi
5890 rm -f conftest conftest.o conftest.c
5891
5892 fi
5893
5894 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5896 $as_echo "yes" >&6; }
5897 :
5898 CFLAGS="$CFLAGS -Wextra"
5899 else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5902 :
5903
5904 fi
5905
5906
5907
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5909 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5910 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5911 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5912   $as_echo_n "(cached) " >&6
5913 else
5914
5915 echo 'void f(void){}' >conftest.c
5916 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5917 eval "cv_prog_cc_flag_$cache=yes"
5918 else
5919 eval "cv_prog_cc_flag_$cache=no"
5920 fi
5921 rm -f conftest conftest.o conftest.c
5922
5923 fi
5924
5925 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5927 $as_echo "yes" >&6; }
5928 :
5929 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5930 else
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5933 :
5934
5935 fi
5936
5937
5938 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5939
5940                 ;;
5941         no|*)
5942                 # nothing to do.
5943                 ;;
5944 esac
5945
5946     # Check whether --enable-flto was given.
5947 if test "${enable_flto+set}" = set; then :
5948   enableval=$enable_flto;
5949 fi
5950
5951     if test "x$enable_flto" != "xno"; then :
5952
5953         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5954 $as_echo_n "checking if $CC supports -flto... " >&6; }
5955         BAKCFLAGS="$CFLAGS"
5956         CFLAGS="$CFLAGS -flto"
5957         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h.  */
5959
5960 int
5961 main ()
5962 {
5963
5964   ;
5965   return 0;
5966 }
5967 _ACEOF
5968 if ac_fn_c_try_link "$LINENO"; then :
5969
5970             if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
5971                 CFLAGS="$BAKCFLAGS"
5972                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973 $as_echo "no" >&6; }
5974             else
5975                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5976 $as_echo "yes" >&6; }
5977             fi
5978             rm -f conftest conftest.c conftest.o
5979
5980 else
5981   CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 $as_echo "no" >&6; }
5983 fi
5984 rm -f core conftest.err conftest.$ac_objext \
5985     conftest$ac_exeext conftest.$ac_ext
5986
5987 fi
5988
5989
5990     # Check whether --enable-pie was given.
5991 if test "${enable_pie+set}" = set; then :
5992   enableval=$enable_pie;
5993 fi
5994
5995     if test "x$enable_pie" = "xyes"; then :
5996
5997         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
5998 $as_echo_n "checking if $CC supports PIE... " >&6; }
5999         BAKLDFLAGS="$LDFLAGS"
6000         BAKCFLAGS="$CFLAGS"
6001         LDFLAGS="$LDFLAGS -pie"
6002         CFLAGS="$CFLAGS -fPIE"
6003         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h.  */
6005
6006 int
6007 main ()
6008 {
6009
6010   ;
6011   return 0;
6012 }
6013 _ACEOF
6014 if ac_fn_c_try_link "$LINENO"; then :
6015
6016             if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6017                 LDFLAGS="$BAKLDFLAGS"
6018                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6019 $as_echo "no" >&6; }
6020             else
6021                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6022 $as_echo "yes" >&6; }
6023             fi
6024             rm -f conftest conftest.c conftest.o
6025
6026 else
6027   LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6029 fi
6030 rm -f core conftest.err conftest.$ac_objext \
6031     conftest$ac_exeext conftest.$ac_ext
6032
6033 fi
6034
6035
6036     # Check whether --enable-relro_now was given.
6037 if test "${enable_relro_now+set}" = set; then :
6038   enableval=$enable_relro_now;
6039 fi
6040
6041     if test "x$enable_relro_now" = "xyes"; then :
6042
6043         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
6044 $as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
6045         BAKLDFLAGS="$LDFLAGS"
6046         LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
6047         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h.  */
6049
6050 int
6051 main ()
6052 {
6053
6054   ;
6055   return 0;
6056 }
6057 _ACEOF
6058 if ac_fn_c_try_link "$LINENO"; then :
6059
6060             if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6061                 LDFLAGS="$BAKLDFLAGS"
6062                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6064             else
6065                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6066 $as_echo "yes" >&6; }
6067             fi
6068             rm -f conftest conftest.c conftest.o
6069
6070 else
6071   LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 $as_echo "no" >&6; }
6073 fi
6074 rm -f core conftest.err conftest.$ac_objext \
6075     conftest$ac_exeext conftest.$ac_ext
6076
6077 fi
6078
6079
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6081 $as_echo_n "checking for inline... " >&6; }
6082 if ${ac_cv_c_inline+:} false; then :
6083   $as_echo_n "(cached) " >&6
6084 else
6085   ac_cv_c_inline=no
6086 for ac_kw in inline __inline__ __inline; do
6087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h.  */
6089 #ifndef __cplusplus
6090 typedef int foo_t;
6091 static $ac_kw foo_t static_foo () {return 0; }
6092 $ac_kw foo_t foo () {return 0; }
6093 #endif
6094
6095 _ACEOF
6096 if ac_fn_c_try_compile "$LINENO"; then :
6097   ac_cv_c_inline=$ac_kw
6098 fi
6099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100   test "$ac_cv_c_inline" != no && break
6101 done
6102
6103 fi
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6105 $as_echo "$ac_cv_c_inline" >&6; }
6106
6107 case $ac_cv_c_inline in
6108   inline | yes) ;;
6109   *)
6110     case $ac_cv_c_inline in
6111       no) ac_val=;;
6112       *) ac_val=$ac_cv_c_inline;;
6113     esac
6114     cat >>confdefs.h <<_ACEOF
6115 #ifndef __cplusplus
6116 #define inline $ac_val
6117 #endif
6118 _ACEOF
6119     ;;
6120 esac
6121
6122
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6124 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6125 if ${ac_cv_c_format_attribute+:} false; then :
6126   $as_echo_n "(cached) " >&6
6127 else
6128   ac_cv_c_format_attribute=no
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h.  */
6131 #include <stdio.h>
6132 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6133 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6134
6135 int
6136 main ()
6137 {
6138
6139    f ("%s", "str");
6140
6141   ;
6142   return 0;
6143 }
6144 _ACEOF
6145 if ac_fn_c_try_compile "$LINENO"; then :
6146   ac_cv_c_format_attribute="yes"
6147 else
6148   ac_cv_c_format_attribute="no"
6149 fi
6150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6151
6152 fi
6153
6154
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6156 $as_echo "$ac_cv_c_format_attribute" >&6; }
6157 if test $ac_cv_c_format_attribute = yes; then
6158
6159 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6160
6161 fi
6162
6163
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6165 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6166 if ${ac_cv_c_unused_attribute+:} false; then :
6167   $as_echo_n "(cached) " >&6
6168 else
6169   ac_cv_c_unused_attribute=no
6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171 /* end confdefs.h.  */
6172 #include <stdio.h>
6173 void f (char *u __attribute__((unused)));
6174
6175 int
6176 main ()
6177 {
6178
6179    f ("x");
6180
6181   ;
6182   return 0;
6183 }
6184 _ACEOF
6185 if ac_fn_c_try_compile "$LINENO"; then :
6186   ac_cv_c_unused_attribute="yes"
6187 else
6188   ac_cv_c_unused_attribute="no"
6189 fi
6190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6191
6192 fi
6193
6194
6195
6196
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6198 $as_echo "$ac_cv_c_unused_attribute" >&6; }
6199 if test $ac_cv_c_unused_attribute = yes; then
6200
6201 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6202
6203 fi
6204
6205
6206
6207
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6209 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6210 if ${ac_cv_c_weak_attribute+:} false; then :
6211   $as_echo_n "(cached) " >&6
6212 else
6213   ac_cv_c_weak_attribute=no
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h.  */
6216  #include <stdio.h>
6217 __attribute__((weak)) void f(int x) { printf("%d", x); }
6218
6219 int
6220 main ()
6221 {
6222
6223    f(1);
6224
6225   ;
6226   return 0;
6227 }
6228 _ACEOF
6229 if ac_fn_c_try_compile "$LINENO"; then :
6230   ac_cv_c_weak_attribute="yes"
6231 else
6232   ac_cv_c_weak_attribute="no"
6233 fi
6234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6235
6236 fi
6237
6238
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6240 $as_echo "$ac_cv_c_weak_attribute" >&6; }
6241 if test $ac_cv_c_weak_attribute = yes; then
6242
6243 $as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6244
6245 fi
6246
6247
6248 if test "$srcdir" != "."; then
6249         CPPFLAGS="$CPPFLAGS -I$srcdir"
6250 fi
6251
6252
6253
6254 for ac_prog in flex lex
6255 do
6256   # Extract the first word of "$ac_prog", so it can be a program name with args.
6257 set dummy $ac_prog; ac_word=$2
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if ${ac_cv_prog_LEX+:} false; then :
6261   $as_echo_n "(cached) " >&6
6262 else
6263   if test -n "$LEX"; then
6264   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6265 else
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6268 do
6269   IFS=$as_save_IFS
6270   test -z "$as_dir" && as_dir=.
6271     for ac_exec_ext in '' $ac_executable_extensions; do
6272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6273     ac_cv_prog_LEX="$ac_prog"
6274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275     break 2
6276   fi
6277 done
6278   done
6279 IFS=$as_save_IFS
6280
6281 fi
6282 fi
6283 LEX=$ac_cv_prog_LEX
6284 if test -n "$LEX"; then
6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6286 $as_echo "$LEX" >&6; }
6287 else
6288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 $as_echo "no" >&6; }
6290 fi
6291
6292
6293   test -n "$LEX" && break
6294 done
6295 test -n "$LEX" || LEX=":"
6296
6297 if test "x$LEX" != "x:"; then
6298   cat >conftest.l <<_ACEOF
6299 %%
6300 a { ECHO; }
6301 b { REJECT; }
6302 c { yymore (); }
6303 d { yyless (1); }
6304 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
6305     yyless ((input () != 0)); }
6306 f { unput (yytext[0]); }
6307 . { BEGIN INITIAL; }
6308 %%
6309 #ifdef YYTEXT_POINTER
6310 extern char *yytext;
6311 #endif
6312 int
6313 main (void)
6314 {
6315   return ! yylex () + ! yywrap ();
6316 }
6317 _ACEOF
6318 { { ac_try="$LEX conftest.l"
6319 case "(($ac_try" in
6320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6321   *) ac_try_echo=$ac_try;;
6322 esac
6323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6324 $as_echo "$ac_try_echo"; } >&5
6325   (eval "$LEX conftest.l") 2>&5
6326   ac_status=$?
6327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6328   test $ac_status = 0; }
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6330 $as_echo_n "checking lex output file root... " >&6; }
6331 if ${ac_cv_prog_lex_root+:} false; then :
6332   $as_echo_n "(cached) " >&6
6333 else
6334
6335 if test -f lex.yy.c; then
6336   ac_cv_prog_lex_root=lex.yy
6337 elif test -f lexyy.c; then
6338   ac_cv_prog_lex_root=lexyy
6339 else
6340   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6341 fi
6342 fi
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6344 $as_echo "$ac_cv_prog_lex_root" >&6; }
6345 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6346
6347 if test -z "${LEXLIB+set}"; then
6348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6349 $as_echo_n "checking lex library... " >&6; }
6350 if ${ac_cv_lib_lex+:} false; then :
6351   $as_echo_n "(cached) " >&6
6352 else
6353
6354     ac_save_LIBS=$LIBS
6355     ac_cv_lib_lex='none needed'
6356     for ac_lib in '' -lfl -ll; do
6357       LIBS="$ac_lib $ac_save_LIBS"
6358       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h.  */
6360 `cat $LEX_OUTPUT_ROOT.c`
6361 _ACEOF
6362 if ac_fn_c_try_link "$LINENO"; then :
6363   ac_cv_lib_lex=$ac_lib
6364 fi
6365 rm -f core conftest.err conftest.$ac_objext \
6366     conftest$ac_exeext conftest.$ac_ext
6367       test "$ac_cv_lib_lex" != 'none needed' && break
6368     done
6369     LIBS=$ac_save_LIBS
6370
6371 fi
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6373 $as_echo "$ac_cv_lib_lex" >&6; }
6374   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6375 fi
6376
6377
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6379 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6380 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6381   $as_echo_n "(cached) " >&6
6382 else
6383   # POSIX says lex can declare yytext either as a pointer or an array; the
6384 # default is implementation-dependent.  Figure out which it is, since
6385 # not all implementations provide the %pointer and %array declarations.
6386 ac_cv_prog_lex_yytext_pointer=no
6387 ac_save_LIBS=$LIBS
6388 LIBS="$LEXLIB $ac_save_LIBS"
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h.  */
6391
6392   #define YYTEXT_POINTER 1
6393 `cat $LEX_OUTPUT_ROOT.c`
6394 _ACEOF
6395 if ac_fn_c_try_link "$LINENO"; then :
6396   ac_cv_prog_lex_yytext_pointer=yes
6397 fi
6398 rm -f core conftest.err conftest.$ac_objext \
6399     conftest$ac_exeext conftest.$ac_ext
6400 LIBS=$ac_save_LIBS
6401
6402 fi
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6404 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6405 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6406
6407 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6408
6409 fi
6410 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6411
6412 fi
6413
6414         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6415 $as_echo_n "checking for yylex_destroy... " >&6; }
6416         if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6417
6418 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6419
6420                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6421 $as_echo "yes" >&6; }
6422         else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }; fi
6424
6425 for ac_prog in 'bison -y' byacc
6426 do
6427   # Extract the first word of "$ac_prog", so it can be a program name with args.
6428 set dummy $ac_prog; ac_word=$2
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if ${ac_cv_prog_YACC+:} false; then :
6432   $as_echo_n "(cached) " >&6
6433 else
6434   if test -n "$YACC"; then
6435   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6436 else
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in $PATH
6439 do
6440   IFS=$as_save_IFS
6441   test -z "$as_dir" && as_dir=.
6442     for ac_exec_ext in '' $ac_executable_extensions; do
6443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444     ac_cv_prog_YACC="$ac_prog"
6445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446     break 2
6447   fi
6448 done
6449   done
6450 IFS=$as_save_IFS
6451
6452 fi
6453 fi
6454 YACC=$ac_cv_prog_YACC
6455 if test -n "$YACC"; then
6456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6457 $as_echo "$YACC" >&6; }
6458 else
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6461 fi
6462
6463
6464   test -n "$YACC" && break
6465 done
6466 test -n "$YACC" || YACC="yacc"
6467
6468 # Extract the first word of "doxygen", so it can be a program name with args.
6469 set dummy doxygen; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if ${ac_cv_prog_doxygen+:} false; then :
6473   $as_echo_n "(cached) " >&6
6474 else
6475   if test -n "$doxygen"; then
6476   ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6477 else
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6480 do
6481   IFS=$as_save_IFS
6482   test -z "$as_dir" && as_dir=.
6483     for ac_exec_ext in '' $ac_executable_extensions; do
6484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6485     ac_cv_prog_doxygen="doxygen"
6486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6487     break 2
6488   fi
6489 done
6490   done
6491 IFS=$as_save_IFS
6492
6493 fi
6494 fi
6495 doxygen=$ac_cv_prog_doxygen
6496 if test -n "$doxygen"; then
6497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6498 $as_echo "$doxygen" >&6; }
6499 else
6500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6502 fi
6503
6504
6505 if test -n "$ac_tool_prefix"; then
6506   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6507 set dummy ${ac_tool_prefix}strip; ac_word=$2
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6509 $as_echo_n "checking for $ac_word... " >&6; }
6510 if ${ac_cv_prog_STRIP+:} false; then :
6511   $as_echo_n "(cached) " >&6
6512 else
6513   if test -n "$STRIP"; then
6514   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6515 else
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 for as_dir in $PATH
6518 do
6519   IFS=$as_save_IFS
6520   test -z "$as_dir" && as_dir=.
6521     for ac_exec_ext in '' $ac_executable_extensions; do
6522   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6523     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6525     break 2
6526   fi
6527 done
6528   done
6529 IFS=$as_save_IFS
6530
6531 fi
6532 fi
6533 STRIP=$ac_cv_prog_STRIP
6534 if test -n "$STRIP"; then
6535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6536 $as_echo "$STRIP" >&6; }
6537 else
6538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6539 $as_echo "no" >&6; }
6540 fi
6541
6542
6543 fi
6544 if test -z "$ac_cv_prog_STRIP"; then
6545   ac_ct_STRIP=$STRIP
6546   # Extract the first word of "strip", so it can be a program name with args.
6547 set dummy strip; ac_word=$2
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6551   $as_echo_n "(cached) " >&6
6552 else
6553   if test -n "$ac_ct_STRIP"; then
6554   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6555 else
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6558 do
6559   IFS=$as_save_IFS
6560   test -z "$as_dir" && as_dir=.
6561     for ac_exec_ext in '' $ac_executable_extensions; do
6562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6563     ac_cv_prog_ac_ct_STRIP="strip"
6564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565     break 2
6566   fi
6567 done
6568   done
6569 IFS=$as_save_IFS
6570
6571 fi
6572 fi
6573 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6574 if test -n "$ac_ct_STRIP"; then
6575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6576 $as_echo "$ac_ct_STRIP" >&6; }
6577 else
6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6580 fi
6581
6582   if test "x$ac_ct_STRIP" = x; then
6583     STRIP=""
6584   else
6585     case $cross_compiling:$ac_tool_warned in
6586 yes:)
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6589 ac_tool_warned=yes ;;
6590 esac
6591     STRIP=$ac_ct_STRIP
6592   fi
6593 else
6594   STRIP="$ac_cv_prog_STRIP"
6595 fi
6596
6597 ac_aux_dir=
6598 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6599   if test -f "$ac_dir/install-sh"; then
6600     ac_aux_dir=$ac_dir
6601     ac_install_sh="$ac_aux_dir/install-sh -c"
6602     break
6603   elif test -f "$ac_dir/install.sh"; then
6604     ac_aux_dir=$ac_dir
6605     ac_install_sh="$ac_aux_dir/install.sh -c"
6606     break
6607   elif test -f "$ac_dir/shtool"; then
6608     ac_aux_dir=$ac_dir
6609     ac_install_sh="$ac_aux_dir/shtool install -c"
6610     break
6611   fi
6612 done
6613 if test -z "$ac_aux_dir"; then
6614   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6615 fi
6616
6617 # These three variables are undocumented and unsupported,
6618 # and are intended to be withdrawn in a future Autoconf release.
6619 # They can cause serious problems if a builder's source tree is in a directory
6620 # whose full name contains unusual characters.
6621 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6622 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6623 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6624
6625
6626 # Make sure we can run config.sub.
6627 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6628   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6629
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6631 $as_echo_n "checking build system type... " >&6; }
6632 if ${ac_cv_build+:} false; then :
6633   $as_echo_n "(cached) " >&6
6634 else
6635   ac_build_alias=$build_alias
6636 test "x$ac_build_alias" = x &&
6637   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6638 test "x$ac_build_alias" = x &&
6639   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6640 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6641   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6642
6643 fi
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6645 $as_echo "$ac_cv_build" >&6; }
6646 case $ac_cv_build in
6647 *-*-*) ;;
6648 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6649 esac
6650 build=$ac_cv_build
6651 ac_save_IFS=$IFS; IFS='-'
6652 set x $ac_cv_build
6653 shift
6654 build_cpu=$1
6655 build_vendor=$2
6656 shift; shift
6657 # Remember, the first character of IFS is used to create $*,
6658 # except with old shells:
6659 build_os=$*
6660 IFS=$ac_save_IFS
6661 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6662
6663
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6665 $as_echo_n "checking host system type... " >&6; }
6666 if ${ac_cv_host+:} false; then :
6667   $as_echo_n "(cached) " >&6
6668 else
6669   if test "x$host_alias" = x; then
6670   ac_cv_host=$ac_cv_build
6671 else
6672   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6673     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6674 fi
6675
6676 fi
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6678 $as_echo "$ac_cv_host" >&6; }
6679 case $ac_cv_host in
6680 *-*-*) ;;
6681 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6682 esac
6683 host=$ac_cv_host
6684 ac_save_IFS=$IFS; IFS='-'
6685 set x $ac_cv_host
6686 shift
6687 host_cpu=$1
6688 host_vendor=$2
6689 shift; shift
6690 # Remember, the first character of IFS is used to create $*,
6691 # except with old shells:
6692 host_os=$*
6693 IFS=$ac_save_IFS
6694 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6695
6696
6697
6698 # skip these tests, we do not need them.
6699
6700
6701
6702
6703
6704
6705
6706
6707 # always use ./libtool unless override from commandline (libtool=mylibtool)
6708 if test -z "$libtool"; then
6709         libtool="./libtool"
6710 fi
6711
6712 # avoid libtool max commandline length test on systems that fork slowly.
6713
6714 if echo "$host_os" | grep "sunos4" >/dev/null; then
6715         lt_cv_sys_max_cmd_len=32750;
6716 fi
6717 if test -n "$ac_tool_prefix"; then
6718   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}ar; ac_word=$2
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721 $as_echo_n "checking for $ac_word... " >&6; }
6722 if ${ac_cv_path_AR+:} false; then :
6723   $as_echo_n "(cached) " >&6
6724 else
6725   case $AR in
6726   [\\/]* | ?:[\\/]*)
6727   ac_cv_path_AR="$AR" # Let the user override the test with a path.
6728   ;;
6729   *)
6730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733   IFS=$as_save_IFS
6734   test -z "$as_dir" && as_dir=.
6735     for ac_exec_ext in '' $ac_executable_extensions; do
6736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6737     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739     break 2
6740   fi
6741 done
6742   done
6743 IFS=$as_save_IFS
6744
6745   ;;
6746 esac
6747 fi
6748 AR=$ac_cv_path_AR
6749 if test -n "$AR"; then
6750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6751 $as_echo "$AR" >&6; }
6752 else
6753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6755 fi
6756
6757
6758 fi
6759 if test -z "$ac_cv_path_AR"; then
6760   ac_pt_AR=$AR
6761   # Extract the first word of "ar", so it can be a program name with args.
6762 set dummy ar; ac_word=$2
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 $as_echo_n "checking for $ac_word... " >&6; }
6765 if ${ac_cv_path_ac_pt_AR+:} false; then :
6766   $as_echo_n "(cached) " >&6
6767 else
6768   case $ac_pt_AR in
6769   [\\/]* | ?:[\\/]*)
6770   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6771   ;;
6772   *)
6773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6775 do
6776   IFS=$as_save_IFS
6777   test -z "$as_dir" && as_dir=.
6778     for ac_exec_ext in '' $ac_executable_extensions; do
6779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6780     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782     break 2
6783   fi
6784 done
6785   done
6786 IFS=$as_save_IFS
6787
6788   ;;
6789 esac
6790 fi
6791 ac_pt_AR=$ac_cv_path_ac_pt_AR
6792 if test -n "$ac_pt_AR"; then
6793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6794 $as_echo "$ac_pt_AR" >&6; }
6795 else
6796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6798 fi
6799
6800   if test "x$ac_pt_AR" = x; then
6801     AR="false"
6802   else
6803     case $cross_compiling:$ac_tool_warned in
6804 yes:)
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807 ac_tool_warned=yes ;;
6808 esac
6809     AR=$ac_pt_AR
6810   fi
6811 else
6812   AR="$ac_cv_path_AR"
6813 fi
6814
6815 if test $AR = false; then
6816         as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6817 fi
6818
6819 case `pwd` in
6820   *\ * | *\     *)
6821     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6822 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6823 esac
6824
6825
6826
6827 macro_version='2.4.6'
6828 macro_revision='2.4.6'
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842 ltmain=$ac_aux_dir/ltmain.sh
6843
6844 # Backslashify metacharacters that are still active within
6845 # double-quoted strings.
6846 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6847
6848 # Same as above, but do not quote variable references.
6849 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6850
6851 # Sed substitution to delay expansion of an escaped shell variable in a
6852 # double_quote_subst'ed string.
6853 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6854
6855 # Sed substitution to delay expansion of an escaped single quote.
6856 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6857
6858 # Sed substitution to avoid accidental globbing in evaled expressions
6859 no_glob_subst='s/\*/\\\*/g'
6860
6861 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6862 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6863 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6864
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6866 $as_echo_n "checking how to print strings... " >&6; }
6867 # Test print first, because it will be a builtin if present.
6868 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6869    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6870   ECHO='print -r --'
6871 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6872   ECHO='printf %s\n'
6873 else
6874   # Use this function as a fallback that always works.
6875   func_fallback_echo ()
6876   {
6877     eval 'cat <<_LTECHO_EOF
6878 $1
6879 _LTECHO_EOF'
6880   }
6881   ECHO='func_fallback_echo'
6882 fi
6883
6884 # func_echo_all arg...
6885 # Invoke $ECHO with all args, space-separated.
6886 func_echo_all ()
6887 {
6888     $ECHO ""
6889 }
6890
6891 case $ECHO in
6892   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6893 $as_echo "printf" >&6; } ;;
6894   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6895 $as_echo "print -r" >&6; } ;;
6896   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6897 $as_echo "cat" >&6; } ;;
6898 esac
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6914 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6915 if ${ac_cv_path_SED+:} false; then :
6916   $as_echo_n "(cached) " >&6
6917 else
6918             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6919      for ac_i in 1 2 3 4 5 6 7; do
6920        ac_script="$ac_script$as_nl$ac_script"
6921      done
6922      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6923      { ac_script=; unset ac_script;}
6924      if test -z "$SED"; then
6925   ac_path_SED_found=false
6926   # Loop through the user's path and test for each of PROGNAME-LIST
6927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 for as_dir in $PATH
6929 do
6930   IFS=$as_save_IFS
6931   test -z "$as_dir" && as_dir=.
6932     for ac_prog in sed gsed; do
6933     for ac_exec_ext in '' $ac_executable_extensions; do
6934       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6935       as_fn_executable_p "$ac_path_SED" || continue
6936 # Check for GNU ac_path_SED and select it if it is found.
6937   # Check for GNU $ac_path_SED
6938 case `"$ac_path_SED" --version 2>&1` in
6939 *GNU*)
6940   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6941 *)
6942   ac_count=0
6943   $as_echo_n 0123456789 >"conftest.in"
6944   while :
6945   do
6946     cat "conftest.in" "conftest.in" >"conftest.tmp"
6947     mv "conftest.tmp" "conftest.in"
6948     cp "conftest.in" "conftest.nl"
6949     $as_echo '' >> "conftest.nl"
6950     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6951     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6952     as_fn_arith $ac_count + 1 && ac_count=$as_val
6953     if test $ac_count -gt ${ac_path_SED_max-0}; then
6954       # Best one so far, save it but keep looking for a better one
6955       ac_cv_path_SED="$ac_path_SED"
6956       ac_path_SED_max=$ac_count
6957     fi
6958     # 10*(2^10) chars as input seems more than enough
6959     test $ac_count -gt 10 && break
6960   done
6961   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6962 esac
6963
6964       $ac_path_SED_found && break 3
6965     done
6966   done
6967   done
6968 IFS=$as_save_IFS
6969   if test -z "$ac_cv_path_SED"; then
6970     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6971   fi
6972 else
6973   ac_cv_path_SED=$SED
6974 fi
6975
6976 fi
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6978 $as_echo "$ac_cv_path_SED" >&6; }
6979  SED="$ac_cv_path_SED"
6980   rm -f conftest.sed
6981
6982 test -z "$SED" && SED=sed
6983 Xsed="$SED -e 1s/^X//"
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6996 $as_echo_n "checking for fgrep... " >&6; }
6997 if ${ac_cv_path_FGREP+:} false; then :
6998   $as_echo_n "(cached) " >&6
6999 else
7000   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7001    then ac_cv_path_FGREP="$GREP -F"
7002    else
7003      if test -z "$FGREP"; then
7004   ac_path_FGREP_found=false
7005   # Loop through the user's path and test for each of PROGNAME-LIST
7006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7008 do
7009   IFS=$as_save_IFS
7010   test -z "$as_dir" && as_dir=.
7011     for ac_prog in fgrep; do
7012     for ac_exec_ext in '' $ac_executable_extensions; do
7013       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7014       as_fn_executable_p "$ac_path_FGREP" || continue
7015 # Check for GNU ac_path_FGREP and select it if it is found.
7016   # Check for GNU $ac_path_FGREP
7017 case `"$ac_path_FGREP" --version 2>&1` in
7018 *GNU*)
7019   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7020 *)
7021   ac_count=0
7022   $as_echo_n 0123456789 >"conftest.in"
7023   while :
7024   do
7025     cat "conftest.in" "conftest.in" >"conftest.tmp"
7026     mv "conftest.tmp" "conftest.in"
7027     cp "conftest.in" "conftest.nl"
7028     $as_echo 'FGREP' >> "conftest.nl"
7029     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7030     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7031     as_fn_arith $ac_count + 1 && ac_count=$as_val
7032     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7033       # Best one so far, save it but keep looking for a better one
7034       ac_cv_path_FGREP="$ac_path_FGREP"
7035       ac_path_FGREP_max=$ac_count
7036     fi
7037     # 10*(2^10) chars as input seems more than enough
7038     test $ac_count -gt 10 && break
7039   done
7040   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7041 esac
7042
7043       $ac_path_FGREP_found && break 3
7044     done
7045   done
7046   done
7047 IFS=$as_save_IFS
7048   if test -z "$ac_cv_path_FGREP"; then
7049     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7050   fi
7051 else
7052   ac_cv_path_FGREP=$FGREP
7053 fi
7054
7055    fi
7056 fi
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7058 $as_echo "$ac_cv_path_FGREP" >&6; }
7059  FGREP="$ac_cv_path_FGREP"
7060
7061
7062 test -z "$GREP" && GREP=grep
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082 # Check whether --with-gnu-ld was given.
7083 if test "${with_gnu_ld+set}" = set; then :
7084   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7085 else
7086   with_gnu_ld=no
7087 fi
7088
7089 ac_prog=ld
7090 if test yes = "$GCC"; then
7091   # Check if gcc -print-prog-name=ld gives a path.
7092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7093 $as_echo_n "checking for ld used by $CC... " >&6; }
7094   case $host in
7095   *-*-mingw*)
7096     # gcc leaves a trailing carriage return, which upsets mingw
7097     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7098   *)
7099     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7100   esac
7101   case $ac_prog in
7102     # Accept absolute paths.
7103     [\\/]* | ?:[\\/]*)
7104       re_direlt='/[^/][^/]*/\.\./'
7105       # Canonicalize the pathname of ld
7106       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7107       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7108         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7109       done
7110       test -z "$LD" && LD=$ac_prog
7111       ;;
7112   "")
7113     # If it fails, then pretend we aren't using GCC.
7114     ac_prog=ld
7115     ;;
7116   *)
7117     # If it is relative, then search for the first ld in PATH.
7118     with_gnu_ld=unknown
7119     ;;
7120   esac
7121 elif test yes = "$with_gnu_ld"; then
7122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7123 $as_echo_n "checking for GNU ld... " >&6; }
7124 else
7125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7126 $as_echo_n "checking for non-GNU ld... " >&6; }
7127 fi
7128 if ${lt_cv_path_LD+:} false; then :
7129   $as_echo_n "(cached) " >&6
7130 else
7131   if test -z "$LD"; then
7132   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7133   for ac_dir in $PATH; do
7134     IFS=$lt_save_ifs
7135     test -z "$ac_dir" && ac_dir=.
7136     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7137       lt_cv_path_LD=$ac_dir/$ac_prog
7138       # Check to see if the program is GNU ld.  I'd rather use --version,
7139       # but apparently some variants of GNU ld only accept -v.
7140       # Break only if it was the GNU/non-GNU ld that we prefer.
7141       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7142       *GNU* | *'with BFD'*)
7143         test no != "$with_gnu_ld" && break
7144         ;;
7145       *)
7146         test yes != "$with_gnu_ld" && break
7147         ;;
7148       esac
7149     fi
7150   done
7151   IFS=$lt_save_ifs
7152 else
7153   lt_cv_path_LD=$LD # Let the user override the test with a path.
7154 fi
7155 fi
7156
7157 LD=$lt_cv_path_LD
7158 if test -n "$LD"; then
7159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7160 $as_echo "$LD" >&6; }
7161 else
7162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 $as_echo "no" >&6; }
7164 fi
7165 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7167 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7168 if ${lt_cv_prog_gnu_ld+:} false; then :
7169   $as_echo_n "(cached) " >&6
7170 else
7171   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7172 case `$LD -v 2>&1 </dev/null` in
7173 *GNU* | *'with BFD'*)
7174   lt_cv_prog_gnu_ld=yes
7175   ;;
7176 *)
7177   lt_cv_prog_gnu_ld=no
7178   ;;
7179 esac
7180 fi
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7182 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7183 with_gnu_ld=$lt_cv_prog_gnu_ld
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7194 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7195 if ${lt_cv_path_NM+:} false; then :
7196   $as_echo_n "(cached) " >&6
7197 else
7198   if test -n "$NM"; then
7199   # Let the user override the test.
7200   lt_cv_path_NM=$NM
7201 else
7202   lt_nm_to_check=${ac_tool_prefix}nm
7203   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7204     lt_nm_to_check="$lt_nm_to_check nm"
7205   fi
7206   for lt_tmp_nm in $lt_nm_to_check; do
7207     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7208     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7209       IFS=$lt_save_ifs
7210       test -z "$ac_dir" && ac_dir=.
7211       tmp_nm=$ac_dir/$lt_tmp_nm
7212       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7213         # Check to see if the nm accepts a BSD-compat flag.
7214         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7215         #   nm: unknown option "B" ignored
7216         # Tru64's nm complains that /dev/null is an invalid object file
7217         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7218         case $build_os in
7219         mingw*) lt_bad_file=conftest.nm/nofile ;;
7220         *) lt_bad_file=/dev/null ;;
7221         esac
7222         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7223         *$lt_bad_file* | *'Invalid file or object type'*)
7224           lt_cv_path_NM="$tmp_nm -B"
7225           break 2
7226           ;;
7227         *)
7228           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7229           */dev/null*)
7230             lt_cv_path_NM="$tmp_nm -p"
7231             break 2
7232             ;;
7233           *)
7234             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7235             continue # so that we can try to find one that supports BSD flags
7236             ;;
7237           esac
7238           ;;
7239         esac
7240       fi
7241     done
7242     IFS=$lt_save_ifs
7243   done
7244   : ${lt_cv_path_NM=no}
7245 fi
7246 fi
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7248 $as_echo "$lt_cv_path_NM" >&6; }
7249 if test no != "$lt_cv_path_NM"; then
7250   NM=$lt_cv_path_NM
7251 else
7252   # Didn't find any BSD compatible name lister, look for dumpbin.
7253   if test -n "$DUMPBIN"; then :
7254     # Let the user override the test.
7255   else
7256     if test -n "$ac_tool_prefix"; then
7257   for ac_prog in dumpbin "link -dump"
7258   do
7259     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if ${ac_cv_prog_DUMPBIN+:} false; then :
7264   $as_echo_n "(cached) " >&6
7265 else
7266   if test -n "$DUMPBIN"; then
7267   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7268 else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272   IFS=$as_save_IFS
7273   test -z "$as_dir" && as_dir=.
7274     for ac_exec_ext in '' $ac_executable_extensions; do
7275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278     break 2
7279   fi
7280 done
7281   done
7282 IFS=$as_save_IFS
7283
7284 fi
7285 fi
7286 DUMPBIN=$ac_cv_prog_DUMPBIN
7287 if test -n "$DUMPBIN"; then
7288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7289 $as_echo "$DUMPBIN" >&6; }
7290 else
7291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7293 fi
7294
7295
7296     test -n "$DUMPBIN" && break
7297   done
7298 fi
7299 if test -z "$DUMPBIN"; then
7300   ac_ct_DUMPBIN=$DUMPBIN
7301   for ac_prog in dumpbin "link -dump"
7302 do
7303   # Extract the first word of "$ac_prog", so it can be a program name with args.
7304 set dummy $ac_prog; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7308   $as_echo_n "(cached) " >&6
7309 else
7310   if test -n "$ac_ct_DUMPBIN"; then
7311   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7312 else
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316   IFS=$as_save_IFS
7317   test -z "$as_dir" && as_dir=.
7318     for ac_exec_ext in '' $ac_executable_extensions; do
7319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7320     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322     break 2
7323   fi
7324 done
7325   done
7326 IFS=$as_save_IFS
7327
7328 fi
7329 fi
7330 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7331 if test -n "$ac_ct_DUMPBIN"; then
7332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7333 $as_echo "$ac_ct_DUMPBIN" >&6; }
7334 else
7335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7337 fi
7338
7339
7340   test -n "$ac_ct_DUMPBIN" && break
7341 done
7342
7343   if test "x$ac_ct_DUMPBIN" = x; then
7344     DUMPBIN=":"
7345   else
7346     case $cross_compiling:$ac_tool_warned in
7347 yes:)
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7350 ac_tool_warned=yes ;;
7351 esac
7352     DUMPBIN=$ac_ct_DUMPBIN
7353   fi
7354 fi
7355
7356     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7357     *COFF*)
7358       DUMPBIN="$DUMPBIN -symbols -headers"
7359       ;;
7360     *)
7361       DUMPBIN=:
7362       ;;
7363     esac
7364   fi
7365
7366   if test : != "$DUMPBIN"; then
7367     NM=$DUMPBIN
7368   fi
7369 fi
7370 test -z "$NM" && NM=nm
7371
7372
7373
7374
7375
7376
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7378 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7379 if ${lt_cv_nm_interface+:} false; then :
7380   $as_echo_n "(cached) " >&6
7381 else
7382   lt_cv_nm_interface="BSD nm"
7383   echo "int some_variable = 0;" > conftest.$ac_ext
7384   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7385   (eval "$ac_compile" 2>conftest.err)
7386   cat conftest.err >&5
7387   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7388   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7389   cat conftest.err >&5
7390   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7391   cat conftest.out >&5
7392   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7393     lt_cv_nm_interface="MS dumpbin"
7394   fi
7395   rm -f conftest*
7396 fi
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7398 $as_echo "$lt_cv_nm_interface" >&6; }
7399
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7401 $as_echo_n "checking whether ln -s works... " >&6; }
7402 LN_S=$as_ln_s
7403 if test "$LN_S" = "ln -s"; then
7404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7405 $as_echo "yes" >&6; }
7406 else
7407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7408 $as_echo "no, using $LN_S" >&6; }
7409 fi
7410
7411 # find the maximum length of command line arguments
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7413 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7414 if ${lt_cv_sys_max_cmd_len+:} false; then :
7415   $as_echo_n "(cached) " >&6
7416 else
7417     i=0
7418   teststring=ABCD
7419
7420   case $build_os in
7421   msdosdjgpp*)
7422     # On DJGPP, this test can blow up pretty badly due to problems in libc
7423     # (any single argument exceeding 2000 bytes causes a buffer overrun
7424     # during glob expansion).  Even if it were fixed, the result of this
7425     # check would be larger than it should be.
7426     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7427     ;;
7428
7429   gnu*)
7430     # Under GNU Hurd, this test is not required because there is
7431     # no limit to the length of command line arguments.
7432     # Libtool will interpret -1 as no limit whatsoever
7433     lt_cv_sys_max_cmd_len=-1;
7434     ;;
7435
7436   cygwin* | mingw* | cegcc*)
7437     # On Win9x/ME, this test blows up -- it succeeds, but takes
7438     # about 5 minutes as the teststring grows exponentially.
7439     # Worse, since 9x/ME are not pre-emptively multitasking,
7440     # you end up with a "frozen" computer, even though with patience
7441     # the test eventually succeeds (with a max line length of 256k).
7442     # Instead, let's just punt: use the minimum linelength reported by
7443     # all of the supported platforms: 8192 (on NT/2K/XP).
7444     lt_cv_sys_max_cmd_len=8192;
7445     ;;
7446
7447   mint*)
7448     # On MiNT this can take a long time and run out of memory.
7449     lt_cv_sys_max_cmd_len=8192;
7450     ;;
7451
7452   amigaos*)
7453     # On AmigaOS with pdksh, this test takes hours, literally.
7454     # So we just punt and use a minimum line length of 8192.
7455     lt_cv_sys_max_cmd_len=8192;
7456     ;;
7457
7458   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7459     # This has been around since 386BSD, at least.  Likely further.
7460     if test -x /sbin/sysctl; then
7461       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7462     elif test -x /usr/sbin/sysctl; then
7463       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7464     else
7465       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7466     fi
7467     # And add a safety zone
7468     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7469     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7470     ;;
7471
7472   interix*)
7473     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7474     lt_cv_sys_max_cmd_len=196608
7475     ;;
7476
7477   os2*)
7478     # The test takes a long time on OS/2.
7479     lt_cv_sys_max_cmd_len=8192
7480     ;;
7481
7482   osf*)
7483     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7484     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7485     # nice to cause kernel panics so lets avoid the loop below.
7486     # First set a reasonable default.
7487     lt_cv_sys_max_cmd_len=16384
7488     #
7489     if test -x /sbin/sysconfig; then
7490       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7491         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7492       esac
7493     fi
7494     ;;
7495   sco3.2v5*)
7496     lt_cv_sys_max_cmd_len=102400
7497     ;;
7498   sysv5* | sco5v6* | sysv4.2uw2*)
7499     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7500     if test -n "$kargmax"; then
7501       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7502     else
7503       lt_cv_sys_max_cmd_len=32768
7504     fi
7505     ;;
7506   *)
7507     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7508     if test -n "$lt_cv_sys_max_cmd_len" && \
7509        test undefined != "$lt_cv_sys_max_cmd_len"; then
7510       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7511       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7512     else
7513       # Make teststring a little bigger before we do anything with it.
7514       # a 1K string should be a reasonable start.
7515       for i in 1 2 3 4 5 6 7 8; do
7516         teststring=$teststring$teststring
7517       done
7518       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7519       # If test is not a shell built-in, we'll probably end up computing a
7520       # maximum length that is only half of the actual maximum length, but
7521       # we can't tell.
7522       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7523                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7524               test 17 != "$i" # 1/2 MB should be enough
7525       do
7526         i=`expr $i + 1`
7527         teststring=$teststring$teststring
7528       done
7529       # Only check the string length outside the loop.
7530       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7531       teststring=
7532       # Add a significant safety factor because C++ compilers can tack on
7533       # massive amounts of additional arguments before passing them to the
7534       # linker.  It appears as though 1/2 is a usable value.
7535       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7536     fi
7537     ;;
7538   esac
7539
7540 fi
7541
7542 if test -n "$lt_cv_sys_max_cmd_len"; then
7543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7544 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7545 else
7546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7547 $as_echo "none" >&6; }
7548 fi
7549 max_cmd_len=$lt_cv_sys_max_cmd_len
7550
7551
7552
7553
7554
7555
7556 : ${CP="cp -f"}
7557 : ${MV="mv -f"}
7558 : ${RM="rm -f"}
7559
7560 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7561   lt_unset=unset
7562 else
7563   lt_unset=false
7564 fi
7565
7566
7567
7568
7569
7570 # test EBCDIC or ASCII
7571 case `echo X|tr X '\101'` in
7572  A) # ASCII based system
7573     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7574   lt_SP2NL='tr \040 \012'
7575   lt_NL2SP='tr \015\012 \040\040'
7576   ;;
7577  *) # EBCDIC based system
7578   lt_SP2NL='tr \100 \n'
7579   lt_NL2SP='tr \r\n \100\100'
7580   ;;
7581 esac
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7592 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7593 if ${lt_cv_to_host_file_cmd+:} false; then :
7594   $as_echo_n "(cached) " >&6
7595 else
7596   case $host in
7597   *-*-mingw* )
7598     case $build in
7599       *-*-mingw* ) # actually msys
7600         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7601         ;;
7602       *-*-cygwin* )
7603         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7604         ;;
7605       * ) # otherwise, assume *nix
7606         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7607         ;;
7608     esac
7609     ;;
7610   *-*-cygwin* )
7611     case $build in
7612       *-*-mingw* ) # actually msys
7613         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7614         ;;
7615       *-*-cygwin* )
7616         lt_cv_to_host_file_cmd=func_convert_file_noop
7617         ;;
7618       * ) # otherwise, assume *nix
7619         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7620         ;;
7621     esac
7622     ;;
7623   * ) # unhandled hosts (and "normal" native builds)
7624     lt_cv_to_host_file_cmd=func_convert_file_noop
7625     ;;
7626 esac
7627
7628 fi
7629
7630 to_host_file_cmd=$lt_cv_to_host_file_cmd
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7632 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7633
7634
7635
7636
7637
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7639 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7640 if ${lt_cv_to_tool_file_cmd+:} false; then :
7641   $as_echo_n "(cached) " >&6
7642 else
7643   #assume ordinary cross tools, or native build.
7644 lt_cv_to_tool_file_cmd=func_convert_file_noop
7645 case $host in
7646   *-*-mingw* )
7647     case $build in
7648       *-*-mingw* ) # actually msys
7649         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7650         ;;
7651     esac
7652     ;;
7653 esac
7654
7655 fi
7656
7657 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7659 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7660
7661
7662
7663
7664
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7666 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7667 if ${lt_cv_ld_reload_flag+:} false; then :
7668   $as_echo_n "(cached) " >&6
7669 else
7670   lt_cv_ld_reload_flag='-r'
7671 fi
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7673 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7674 reload_flag=$lt_cv_ld_reload_flag
7675 case $reload_flag in
7676 "" | " "*) ;;
7677 *) reload_flag=" $reload_flag" ;;
7678 esac
7679 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7680 case $host_os in
7681   cygwin* | mingw* | pw32* | cegcc*)
7682     if test yes != "$GCC"; then
7683       reload_cmds=false
7684     fi
7685     ;;
7686   darwin*)
7687     if test yes = "$GCC"; then
7688       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7689     else
7690       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7691     fi
7692     ;;
7693 esac
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703 if test -n "$ac_tool_prefix"; then
7704   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7705 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_prog_OBJDUMP+:} false; then :
7709   $as_echo_n "(cached) " >&6
7710 else
7711   if test -n "$OBJDUMP"; then
7712   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7713 else
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717   IFS=$as_save_IFS
7718   test -z "$as_dir" && as_dir=.
7719     for ac_exec_ext in '' $ac_executable_extensions; do
7720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723     break 2
7724   fi
7725 done
7726   done
7727 IFS=$as_save_IFS
7728
7729 fi
7730 fi
7731 OBJDUMP=$ac_cv_prog_OBJDUMP
7732 if test -n "$OBJDUMP"; then
7733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7734 $as_echo "$OBJDUMP" >&6; }
7735 else
7736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7738 fi
7739
7740
7741 fi
7742 if test -z "$ac_cv_prog_OBJDUMP"; then
7743   ac_ct_OBJDUMP=$OBJDUMP
7744   # Extract the first word of "objdump", so it can be a program name with args.
7745 set dummy objdump; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7749   $as_echo_n "(cached) " >&6
7750 else
7751   if test -n "$ac_ct_OBJDUMP"; then
7752   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7753 else
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7756 do
7757   IFS=$as_save_IFS
7758   test -z "$as_dir" && as_dir=.
7759     for ac_exec_ext in '' $ac_executable_extensions; do
7760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7761     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763     break 2
7764   fi
7765 done
7766   done
7767 IFS=$as_save_IFS
7768
7769 fi
7770 fi
7771 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7772 if test -n "$ac_ct_OBJDUMP"; then
7773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7774 $as_echo "$ac_ct_OBJDUMP" >&6; }
7775 else
7776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7778 fi
7779
7780   if test "x$ac_ct_OBJDUMP" = x; then
7781     OBJDUMP="false"
7782   else
7783     case $cross_compiling:$ac_tool_warned in
7784 yes:)
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7787 ac_tool_warned=yes ;;
7788 esac
7789     OBJDUMP=$ac_ct_OBJDUMP
7790   fi
7791 else
7792   OBJDUMP="$ac_cv_prog_OBJDUMP"
7793 fi
7794
7795 test -z "$OBJDUMP" && OBJDUMP=objdump
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7806 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7807 if ${lt_cv_deplibs_check_method+:} false; then :
7808   $as_echo_n "(cached) " >&6
7809 else
7810   lt_cv_file_magic_cmd='$MAGIC_CMD'
7811 lt_cv_file_magic_test_file=
7812 lt_cv_deplibs_check_method='unknown'
7813 # Need to set the preceding variable on all platforms that support
7814 # interlibrary dependencies.
7815 # 'none' -- dependencies not supported.
7816 # 'unknown' -- same as none, but documents that we really don't know.
7817 # 'pass_all' -- all dependencies passed with no checks.
7818 # 'test_compile' -- check by making test program.
7819 # 'file_magic [[regex]]' -- check by looking for files in library path
7820 # that responds to the $file_magic_cmd with a given extended regex.
7821 # If you have 'file' or equivalent on your system and you're not sure
7822 # whether 'pass_all' will *always* work, you probably want this one.
7823
7824 case $host_os in
7825 aix[4-9]*)
7826   lt_cv_deplibs_check_method=pass_all
7827   ;;
7828
7829 beos*)
7830   lt_cv_deplibs_check_method=pass_all
7831   ;;
7832
7833 bsdi[45]*)
7834   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7835   lt_cv_file_magic_cmd='/usr/bin/file -L'
7836   lt_cv_file_magic_test_file=/shlib/libc.so
7837   ;;
7838
7839 cygwin*)
7840   # func_win32_libid is a shell function defined in ltmain.sh
7841   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7842   lt_cv_file_magic_cmd='func_win32_libid'
7843   ;;
7844
7845 mingw* | pw32*)
7846   # Base MSYS/MinGW do not provide the 'file' command needed by
7847   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7848   # unless we find 'file', for example because we are cross-compiling.
7849   if ( file / ) >/dev/null 2>&1; then
7850     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7851     lt_cv_file_magic_cmd='func_win32_libid'
7852   else
7853     # Keep this pattern in sync with the one in func_win32_libid.
7854     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7855     lt_cv_file_magic_cmd='$OBJDUMP -f'
7856   fi
7857   ;;
7858
7859 cegcc*)
7860   # use the weaker test based on 'objdump'. See mingw*.
7861   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7862   lt_cv_file_magic_cmd='$OBJDUMP -f'
7863   ;;
7864
7865 darwin* | rhapsody*)
7866   lt_cv_deplibs_check_method=pass_all
7867   ;;
7868
7869 freebsd* | dragonfly*)
7870   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7871     case $host_cpu in
7872     i*86 )
7873       # Not sure whether the presence of OpenBSD here was a mistake.
7874       # Let's accept both of them until this is cleared up.
7875       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7876       lt_cv_file_magic_cmd=/usr/bin/file
7877       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7878       ;;
7879     esac
7880   else
7881     lt_cv_deplibs_check_method=pass_all
7882   fi
7883   ;;
7884
7885 haiku*)
7886   lt_cv_deplibs_check_method=pass_all
7887   ;;
7888
7889 hpux10.20* | hpux11*)
7890   lt_cv_file_magic_cmd=/usr/bin/file
7891   case $host_cpu in
7892   ia64*)
7893     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7894     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7895     ;;
7896   hppa*64*)
7897     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7898     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7899     ;;
7900   *)
7901     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7902     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7903     ;;
7904   esac
7905   ;;
7906
7907 interix[3-9]*)
7908   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7909   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7910   ;;
7911
7912 irix5* | irix6* | nonstopux*)
7913   case $LD in
7914   *-32|*"-32 ") libmagic=32-bit;;
7915   *-n32|*"-n32 ") libmagic=N32;;
7916   *-64|*"-64 ") libmagic=64-bit;;
7917   *) libmagic=never-match;;
7918   esac
7919   lt_cv_deplibs_check_method=pass_all
7920   ;;
7921
7922 # This must be glibc/ELF.
7923 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7924   lt_cv_deplibs_check_method=pass_all
7925   ;;
7926
7927 netbsd*)
7928   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7929     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7930   else
7931     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7932   fi
7933   ;;
7934
7935 newos6*)
7936   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7937   lt_cv_file_magic_cmd=/usr/bin/file
7938   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7939   ;;
7940
7941 *nto* | *qnx*)
7942   lt_cv_deplibs_check_method=pass_all
7943   ;;
7944
7945 openbsd* | bitrig*)
7946   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7947     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7948   else
7949     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7950   fi
7951   ;;
7952
7953 osf3* | osf4* | osf5*)
7954   lt_cv_deplibs_check_method=pass_all
7955   ;;
7956
7957 rdos*)
7958   lt_cv_deplibs_check_method=pass_all
7959   ;;
7960
7961 solaris*)
7962   lt_cv_deplibs_check_method=pass_all
7963   ;;
7964
7965 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7966   lt_cv_deplibs_check_method=pass_all
7967   ;;
7968
7969 sysv4 | sysv4.3*)
7970   case $host_vendor in
7971   motorola)
7972     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7973     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7974     ;;
7975   ncr)
7976     lt_cv_deplibs_check_method=pass_all
7977     ;;
7978   sequent)
7979     lt_cv_file_magic_cmd='/bin/file'
7980     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7981     ;;
7982   sni)
7983     lt_cv_file_magic_cmd='/bin/file'
7984     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7985     lt_cv_file_magic_test_file=/lib/libc.so
7986     ;;
7987   siemens)
7988     lt_cv_deplibs_check_method=pass_all
7989     ;;
7990   pc)
7991     lt_cv_deplibs_check_method=pass_all
7992     ;;
7993   esac
7994   ;;
7995
7996 tpf*)
7997   lt_cv_deplibs_check_method=pass_all
7998   ;;
7999 os2*)
8000   lt_cv_deplibs_check_method=pass_all
8001   ;;
8002 esac
8003
8004 fi
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8006 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8007
8008 file_magic_glob=
8009 want_nocaseglob=no
8010 if test "$build" = "$host"; then
8011   case $host_os in
8012   mingw* | pw32*)
8013     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8014       want_nocaseglob=yes
8015     else
8016       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8017     fi
8018     ;;
8019   esac
8020 fi
8021
8022 file_magic_cmd=$lt_cv_file_magic_cmd
8023 deplibs_check_method=$lt_cv_deplibs_check_method
8024 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047 if test -n "$ac_tool_prefix"; then
8048   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8049 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051 $as_echo_n "checking for $ac_word... " >&6; }
8052 if ${ac_cv_prog_DLLTOOL+:} false; then :
8053   $as_echo_n "(cached) " >&6
8054 else
8055   if test -n "$DLLTOOL"; then
8056   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8057 else
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059 for as_dir in $PATH
8060 do
8061   IFS=$as_save_IFS
8062   test -z "$as_dir" && as_dir=.
8063     for ac_exec_ext in '' $ac_executable_extensions; do
8064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8065     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067     break 2
8068   fi
8069 done
8070   done
8071 IFS=$as_save_IFS
8072
8073 fi
8074 fi
8075 DLLTOOL=$ac_cv_prog_DLLTOOL
8076 if test -n "$DLLTOOL"; then
8077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8078 $as_echo "$DLLTOOL" >&6; }
8079 else
8080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 $as_echo "no" >&6; }
8082 fi
8083
8084
8085 fi
8086 if test -z "$ac_cv_prog_DLLTOOL"; then
8087   ac_ct_DLLTOOL=$DLLTOOL
8088   # Extract the first word of "dlltool", so it can be a program name with args.
8089 set dummy dlltool; ac_word=$2
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091 $as_echo_n "checking for $ac_word... " >&6; }
8092 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8093   $as_echo_n "(cached) " >&6
8094 else
8095   if test -n "$ac_ct_DLLTOOL"; then
8096   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8097 else
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 for as_dir in $PATH
8100 do
8101   IFS=$as_save_IFS
8102   test -z "$as_dir" && as_dir=.
8103     for ac_exec_ext in '' $ac_executable_extensions; do
8104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8105     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107     break 2
8108   fi
8109 done
8110   done
8111 IFS=$as_save_IFS
8112
8113 fi
8114 fi
8115 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8116 if test -n "$ac_ct_DLLTOOL"; then
8117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8118 $as_echo "$ac_ct_DLLTOOL" >&6; }
8119 else
8120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121 $as_echo "no" >&6; }
8122 fi
8123
8124   if test "x$ac_ct_DLLTOOL" = x; then
8125     DLLTOOL="false"
8126   else
8127     case $cross_compiling:$ac_tool_warned in
8128 yes:)
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8131 ac_tool_warned=yes ;;
8132 esac
8133     DLLTOOL=$ac_ct_DLLTOOL
8134   fi
8135 else
8136   DLLTOOL="$ac_cv_prog_DLLTOOL"
8137 fi
8138
8139 test -z "$DLLTOOL" && DLLTOOL=dlltool
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8151 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8152 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8153   $as_echo_n "(cached) " >&6
8154 else
8155   lt_cv_sharedlib_from_linklib_cmd='unknown'
8156
8157 case $host_os in
8158 cygwin* | mingw* | pw32* | cegcc*)
8159   # two different shell functions defined in ltmain.sh;
8160   # decide which one to use based on capabilities of $DLLTOOL
8161   case `$DLLTOOL --help 2>&1` in
8162   *--identify-strict*)
8163     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8164     ;;
8165   *)
8166     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8167     ;;
8168   esac
8169   ;;
8170 *)
8171   # fallback: assume linklib IS sharedlib
8172   lt_cv_sharedlib_from_linklib_cmd=$ECHO
8173   ;;
8174 esac
8175
8176 fi
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8178 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8179 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8180 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8181
8182
8183
8184
8185
8186
8187
8188 if test -n "$ac_tool_prefix"; then
8189   for ac_prog in ar
8190   do
8191     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194 $as_echo_n "checking for $ac_word... " >&6; }
8195 if ${ac_cv_prog_AR+:} false; then :
8196   $as_echo_n "(cached) " >&6
8197 else
8198   if test -n "$AR"; then
8199   ac_cv_prog_AR="$AR" # Let the user override the test.
8200 else
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 for as_dir in $PATH
8203 do
8204   IFS=$as_save_IFS
8205   test -z "$as_dir" && as_dir=.
8206     for ac_exec_ext in '' $ac_executable_extensions; do
8207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8208     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8210     break 2
8211   fi
8212 done
8213   done
8214 IFS=$as_save_IFS
8215
8216 fi
8217 fi
8218 AR=$ac_cv_prog_AR
8219 if test -n "$AR"; then
8220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8221 $as_echo "$AR" >&6; }
8222 else
8223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224 $as_echo "no" >&6; }
8225 fi
8226
8227
8228     test -n "$AR" && break
8229   done
8230 fi
8231 if test -z "$AR"; then
8232   ac_ct_AR=$AR
8233   for ac_prog in ar
8234 do
8235   # Extract the first word of "$ac_prog", so it can be a program name with args.
8236 set dummy $ac_prog; ac_word=$2
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238 $as_echo_n "checking for $ac_word... " >&6; }
8239 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8240   $as_echo_n "(cached) " >&6
8241 else
8242   if test -n "$ac_ct_AR"; then
8243   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8244 else
8245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246 for as_dir in $PATH
8247 do
8248   IFS=$as_save_IFS
8249   test -z "$as_dir" && as_dir=.
8250     for ac_exec_ext in '' $ac_executable_extensions; do
8251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8252     ac_cv_prog_ac_ct_AR="$ac_prog"
8253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8254     break 2
8255   fi
8256 done
8257   done
8258 IFS=$as_save_IFS
8259
8260 fi
8261 fi
8262 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8263 if test -n "$ac_ct_AR"; then
8264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8265 $as_echo "$ac_ct_AR" >&6; }
8266 else
8267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268 $as_echo "no" >&6; }
8269 fi
8270
8271
8272   test -n "$ac_ct_AR" && break
8273 done
8274
8275   if test "x$ac_ct_AR" = x; then
8276     AR="false"
8277   else
8278     case $cross_compiling:$ac_tool_warned in
8279 yes:)
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8282 ac_tool_warned=yes ;;
8283 esac
8284     AR=$ac_ct_AR
8285   fi
8286 fi
8287
8288 : ${AR=ar}
8289 : ${AR_FLAGS=cru}
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8302 $as_echo_n "checking for archiver @FILE support... " >&6; }
8303 if ${lt_cv_ar_at_file+:} false; then :
8304   $as_echo_n "(cached) " >&6
8305 else
8306   lt_cv_ar_at_file=no
8307    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h.  */
8309
8310 int
8311 main ()
8312 {
8313
8314   ;
8315   return 0;
8316 }
8317 _ACEOF
8318 if ac_fn_c_try_compile "$LINENO"; then :
8319   echo conftest.$ac_objext > conftest.lst
8320       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8321       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8322   (eval $lt_ar_try) 2>&5
8323   ac_status=$?
8324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8325   test $ac_status = 0; }
8326       if test 0 -eq "$ac_status"; then
8327         # Ensure the archiver fails upon bogus file names.
8328         rm -f conftest.$ac_objext libconftest.a
8329         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8330   (eval $lt_ar_try) 2>&5
8331   ac_status=$?
8332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8333   test $ac_status = 0; }
8334         if test 0 -ne "$ac_status"; then
8335           lt_cv_ar_at_file=@
8336         fi
8337       fi
8338       rm -f conftest.* libconftest.a
8339
8340 fi
8341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8342
8343 fi
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8345 $as_echo "$lt_cv_ar_at_file" >&6; }
8346
8347 if test no = "$lt_cv_ar_at_file"; then
8348   archiver_list_spec=
8349 else
8350   archiver_list_spec=$lt_cv_ar_at_file
8351 fi
8352
8353
8354
8355
8356
8357
8358
8359 if test -n "$ac_tool_prefix"; then
8360   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8361 set dummy ${ac_tool_prefix}strip; ac_word=$2
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 $as_echo_n "checking for $ac_word... " >&6; }
8364 if ${ac_cv_prog_STRIP+:} false; then :
8365   $as_echo_n "(cached) " >&6
8366 else
8367   if test -n "$STRIP"; then
8368   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8369 else
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8372 do
8373   IFS=$as_save_IFS
8374   test -z "$as_dir" && as_dir=.
8375     for ac_exec_ext in '' $ac_executable_extensions; do
8376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8377     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8379     break 2
8380   fi
8381 done
8382   done
8383 IFS=$as_save_IFS
8384
8385 fi
8386 fi
8387 STRIP=$ac_cv_prog_STRIP
8388 if test -n "$STRIP"; then
8389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8390 $as_echo "$STRIP" >&6; }
8391 else
8392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393 $as_echo "no" >&6; }
8394 fi
8395
8396
8397 fi
8398 if test -z "$ac_cv_prog_STRIP"; then
8399   ac_ct_STRIP=$STRIP
8400   # Extract the first word of "strip", so it can be a program name with args.
8401 set dummy strip; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8405   $as_echo_n "(cached) " >&6
8406 else
8407   if test -n "$ac_ct_STRIP"; then
8408   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8409 else
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8412 do
8413   IFS=$as_save_IFS
8414   test -z "$as_dir" && as_dir=.
8415     for ac_exec_ext in '' $ac_executable_extensions; do
8416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8417     ac_cv_prog_ac_ct_STRIP="strip"
8418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419     break 2
8420   fi
8421 done
8422   done
8423 IFS=$as_save_IFS
8424
8425 fi
8426 fi
8427 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8428 if test -n "$ac_ct_STRIP"; then
8429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8430 $as_echo "$ac_ct_STRIP" >&6; }
8431 else
8432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8434 fi
8435
8436   if test "x$ac_ct_STRIP" = x; then
8437     STRIP=":"
8438   else
8439     case $cross_compiling:$ac_tool_warned in
8440 yes:)
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8443 ac_tool_warned=yes ;;
8444 esac
8445     STRIP=$ac_ct_STRIP
8446   fi
8447 else
8448   STRIP="$ac_cv_prog_STRIP"
8449 fi
8450
8451 test -z "$STRIP" && STRIP=:
8452
8453
8454
8455
8456
8457
8458 if test -n "$ac_tool_prefix"; then
8459   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8460 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462 $as_echo_n "checking for $ac_word... " >&6; }
8463 if ${ac_cv_prog_RANLIB+:} false; then :
8464   $as_echo_n "(cached) " >&6
8465 else
8466   if test -n "$RANLIB"; then
8467   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8468 else
8469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470 for as_dir in $PATH
8471 do
8472   IFS=$as_save_IFS
8473   test -z "$as_dir" && as_dir=.
8474     for ac_exec_ext in '' $ac_executable_extensions; do
8475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8476     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8478     break 2
8479   fi
8480 done
8481   done
8482 IFS=$as_save_IFS
8483
8484 fi
8485 fi
8486 RANLIB=$ac_cv_prog_RANLIB
8487 if test -n "$RANLIB"; then
8488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8489 $as_echo "$RANLIB" >&6; }
8490 else
8491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492 $as_echo "no" >&6; }
8493 fi
8494
8495
8496 fi
8497 if test -z "$ac_cv_prog_RANLIB"; then
8498   ac_ct_RANLIB=$RANLIB
8499   # Extract the first word of "ranlib", so it can be a program name with args.
8500 set dummy ranlib; ac_word=$2
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8502 $as_echo_n "checking for $ac_word... " >&6; }
8503 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8504   $as_echo_n "(cached) " >&6
8505 else
8506   if test -n "$ac_ct_RANLIB"; then
8507   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8508 else
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510 for as_dir in $PATH
8511 do
8512   IFS=$as_save_IFS
8513   test -z "$as_dir" && as_dir=.
8514     for ac_exec_ext in '' $ac_executable_extensions; do
8515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8516     ac_cv_prog_ac_ct_RANLIB="ranlib"
8517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8518     break 2
8519   fi
8520 done
8521   done
8522 IFS=$as_save_IFS
8523
8524 fi
8525 fi
8526 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8527 if test -n "$ac_ct_RANLIB"; then
8528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8529 $as_echo "$ac_ct_RANLIB" >&6; }
8530 else
8531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532 $as_echo "no" >&6; }
8533 fi
8534
8535   if test "x$ac_ct_RANLIB" = x; then
8536     RANLIB=":"
8537   else
8538     case $cross_compiling:$ac_tool_warned in
8539 yes:)
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8542 ac_tool_warned=yes ;;
8543 esac
8544     RANLIB=$ac_ct_RANLIB
8545   fi
8546 else
8547   RANLIB="$ac_cv_prog_RANLIB"
8548 fi
8549
8550 test -z "$RANLIB" && RANLIB=:
8551
8552
8553
8554
8555
8556
8557 # Determine commands to create old-style static archives.
8558 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8559 old_postinstall_cmds='chmod 644 $oldlib'
8560 old_postuninstall_cmds=
8561
8562 if test -n "$RANLIB"; then
8563   case $host_os in
8564   bitrig* | openbsd*)
8565     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8566     ;;
8567   *)
8568     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8569     ;;
8570   esac
8571   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8572 fi
8573
8574 case $host_os in
8575   darwin*)
8576     lock_old_archive_extraction=yes ;;
8577   *)
8578     lock_old_archive_extraction=no ;;
8579 esac
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601 for ac_prog in gawk mawk nawk awk
8602 do
8603   # Extract the first word of "$ac_prog", so it can be a program name with args.
8604 set dummy $ac_prog; ac_word=$2
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606 $as_echo_n "checking for $ac_word... " >&6; }
8607 if ${ac_cv_prog_AWK+:} false; then :
8608   $as_echo_n "(cached) " >&6
8609 else
8610   if test -n "$AWK"; then
8611   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8612 else
8613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614 for as_dir in $PATH
8615 do
8616   IFS=$as_save_IFS
8617   test -z "$as_dir" && as_dir=.
8618     for ac_exec_ext in '' $ac_executable_extensions; do
8619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8620     ac_cv_prog_AWK="$ac_prog"
8621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8622     break 2
8623   fi
8624 done
8625   done
8626 IFS=$as_save_IFS
8627
8628 fi
8629 fi
8630 AWK=$ac_cv_prog_AWK
8631 if test -n "$AWK"; then
8632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8633 $as_echo "$AWK" >&6; }
8634 else
8635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8637 fi
8638
8639
8640   test -n "$AWK" && break
8641 done
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661 # If no C compiler was specified, use CC.
8662 LTCC=${LTCC-"$CC"}
8663
8664 # If no C compiler flags were specified, use CFLAGS.
8665 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8666
8667 # Allow CC to be a program name with arguments.
8668 compiler=$CC
8669
8670
8671 # Check for command to grab the raw symbol name followed by C symbol from nm.
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8673 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8674 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8675   $as_echo_n "(cached) " >&6
8676 else
8677
8678 # These are sane defaults that work on at least a few old systems.
8679 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8680
8681 # Character class describing NM global symbol codes.
8682 symcode='[BCDEGRST]'
8683
8684 # Regexp to match symbols that can be accessed directly from C.
8685 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8686
8687 # Define system-specific variables.
8688 case $host_os in
8689 aix*)
8690   symcode='[BCDT]'
8691   ;;
8692 cygwin* | mingw* | pw32* | cegcc*)
8693   symcode='[ABCDGISTW]'
8694   ;;
8695 hpux*)
8696   if test ia64 = "$host_cpu"; then
8697     symcode='[ABCDEGRST]'
8698   fi
8699   ;;
8700 irix* | nonstopux*)
8701   symcode='[BCDEGRST]'
8702   ;;
8703 osf*)
8704   symcode='[BCDEGQRST]'
8705   ;;
8706 solaris*)
8707   symcode='[BDRT]'
8708   ;;
8709 sco3.2v5*)
8710   symcode='[DT]'
8711   ;;
8712 sysv4.2uw2*)
8713   symcode='[DT]'
8714   ;;
8715 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8716   symcode='[ABDT]'
8717   ;;
8718 sysv4)
8719   symcode='[DFNSTU]'
8720   ;;
8721 esac
8722
8723 # If we're using GNU nm, then use its standard symbol codes.
8724 case `$NM -V 2>&1` in
8725 *GNU* | *'with BFD'*)
8726   symcode='[ABCDGIRSTW]' ;;
8727 esac
8728
8729 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8730   # Gets list of data symbols to import.
8731   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8732   # Adjust the below global symbol transforms to fixup imported variables.
8733   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8734   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8735   lt_c_name_lib_hook="\
8736   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8737   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8738 else
8739   # Disable hooks by default.
8740   lt_cv_sys_global_symbol_to_import=
8741   lt_cdecl_hook=
8742   lt_c_name_hook=
8743   lt_c_name_lib_hook=
8744 fi
8745
8746 # Transform an extracted symbol line into a proper C declaration.
8747 # Some systems (esp. on ia64) link data and code symbols differently,
8748 # so use this general approach.
8749 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8750 $lt_cdecl_hook\
8751 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8752 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8753
8754 # Transform an extracted symbol line into symbol name and symbol address
8755 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8756 $lt_c_name_hook\
8757 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8758 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8759
8760 # Transform an extracted symbol line into symbol name with lib prefix and
8761 # symbol address.
8762 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8763 $lt_c_name_lib_hook\
8764 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8765 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8766 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8767
8768 # Handle CRLF in mingw tool chain
8769 opt_cr=
8770 case $build_os in
8771 mingw*)
8772   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8773   ;;
8774 esac
8775
8776 # Try without a prefix underscore, then with it.
8777 for ac_symprfx in "" "_"; do
8778
8779   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8780   symxfrm="\\1 $ac_symprfx\\2 \\2"
8781
8782   # Write the raw and C identifiers.
8783   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8784     # Fake it for dumpbin and say T for any non-static function,
8785     # D for any global variable and I for any imported variable.
8786     # Also find C++ and __fastcall symbols from MSVC++,
8787     # which start with @ or ?.
8788     lt_cv_sys_global_symbol_pipe="$AWK '"\
8789 "     {last_section=section; section=\$ 3};"\
8790 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8791 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8792 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8793 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8794 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8795 "     \$ 0!~/External *\|/{next};"\
8796 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8797 "     {if(hide[section]) next};"\
8798 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8799 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8800 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8801 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8802 "     ' prfx=^$ac_symprfx"
8803   else
8804     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8805   fi
8806   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8807
8808   # Check to see that the pipe works correctly.
8809   pipe_works=no
8810
8811   rm -f conftest*
8812   cat > conftest.$ac_ext <<_LT_EOF
8813 #ifdef __cplusplus
8814 extern "C" {
8815 #endif
8816 char nm_test_var;
8817 void nm_test_func(void);
8818 void nm_test_func(void){}
8819 #ifdef __cplusplus
8820 }
8821 #endif
8822 int main(){nm_test_var='a';nm_test_func();return(0);}
8823 _LT_EOF
8824
8825   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8826   (eval $ac_compile) 2>&5
8827   ac_status=$?
8828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8829   test $ac_status = 0; }; then
8830     # Now try to grab the symbols.
8831     nlist=conftest.nm
8832     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8833   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8834   ac_status=$?
8835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8836   test $ac_status = 0; } && test -s "$nlist"; then
8837       # Try sorting and uniquifying the output.
8838       if sort "$nlist" | uniq > "$nlist"T; then
8839         mv -f "$nlist"T "$nlist"
8840       else
8841         rm -f "$nlist"T
8842       fi
8843
8844       # Make sure that we snagged all the symbols we need.
8845       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8846         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8847           cat <<_LT_EOF > conftest.$ac_ext
8848 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8849 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8850 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8851    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8852 # define LT_DLSYM_CONST
8853 #elif defined __osf__
8854 /* This system does not cope well with relocations in const data.  */
8855 # define LT_DLSYM_CONST
8856 #else
8857 # define LT_DLSYM_CONST const
8858 #endif
8859
8860 #ifdef __cplusplus
8861 extern "C" {
8862 #endif
8863
8864 _LT_EOF
8865           # Now generate the symbol file.
8866           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8867
8868           cat <<_LT_EOF >> conftest.$ac_ext
8869
8870 /* The mapping between symbol names and symbols.  */
8871 LT_DLSYM_CONST struct {
8872   const char *name;
8873   void       *address;
8874 }
8875 lt__PROGRAM__LTX_preloaded_symbols[] =
8876 {
8877   { "@PROGRAM@", (void *) 0 },
8878 _LT_EOF
8879           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8880           cat <<\_LT_EOF >> conftest.$ac_ext
8881   {0, (void *) 0}
8882 };
8883
8884 /* This works around a problem in FreeBSD linker */
8885 #ifdef FREEBSD_WORKAROUND
8886 static const void *lt_preloaded_setup() {
8887   return lt__PROGRAM__LTX_preloaded_symbols;
8888 }
8889 #endif
8890
8891 #ifdef __cplusplus
8892 }
8893 #endif
8894 _LT_EOF
8895           # Now try linking the two files.
8896           mv conftest.$ac_objext conftstm.$ac_objext
8897           lt_globsym_save_LIBS=$LIBS
8898           lt_globsym_save_CFLAGS=$CFLAGS
8899           LIBS=conftstm.$ac_objext
8900           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8901           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8902   (eval $ac_link) 2>&5
8903   ac_status=$?
8904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8905   test $ac_status = 0; } && test -s conftest$ac_exeext; then
8906             pipe_works=yes
8907           fi
8908           LIBS=$lt_globsym_save_LIBS
8909           CFLAGS=$lt_globsym_save_CFLAGS
8910         else
8911           echo "cannot find nm_test_func in $nlist" >&5
8912         fi
8913       else
8914         echo "cannot find nm_test_var in $nlist" >&5
8915       fi
8916     else
8917       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8918     fi
8919   else
8920     echo "$progname: failed program was:" >&5
8921     cat conftest.$ac_ext >&5
8922   fi
8923   rm -rf conftest* conftst*
8924
8925   # Do not use the global_symbol_pipe unless it works.
8926   if test yes = "$pipe_works"; then
8927     break
8928   else
8929     lt_cv_sys_global_symbol_pipe=
8930   fi
8931 done
8932
8933 fi
8934
8935 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8936   lt_cv_sys_global_symbol_to_cdecl=
8937 fi
8938 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8940 $as_echo "failed" >&6; }
8941 else
8942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8943 $as_echo "ok" >&6; }
8944 fi
8945
8946 # Response file support.
8947 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8948   nm_file_list_spec='@'
8949 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8950   nm_file_list_spec='@'
8951 fi
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8990 $as_echo_n "checking for sysroot... " >&6; }
8991
8992 # Check whether --with-sysroot was given.
8993 if test "${with_sysroot+set}" = set; then :
8994   withval=$with_sysroot;
8995 else
8996   with_sysroot=no
8997 fi
8998
8999
9000 lt_sysroot=
9001 case $with_sysroot in #(
9002  yes)
9003    if test yes = "$GCC"; then
9004      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9005    fi
9006    ;; #(
9007  /*)
9008    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9009    ;; #(
9010  no|'')
9011    ;; #(
9012  *)
9013    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9014 $as_echo "$with_sysroot" >&6; }
9015    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9016    ;;
9017 esac
9018
9019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9020 $as_echo "${lt_sysroot:-no}" >&6; }
9021
9022
9023
9024
9025
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9027 $as_echo_n "checking for a working dd... " >&6; }
9028 if ${ac_cv_path_lt_DD+:} false; then :
9029   $as_echo_n "(cached) " >&6
9030 else
9031   printf 0123456789abcdef0123456789abcdef >conftest.i
9032 cat conftest.i conftest.i >conftest2.i
9033 : ${lt_DD:=$DD}
9034 if test -z "$lt_DD"; then
9035   ac_path_lt_DD_found=false
9036   # Loop through the user's path and test for each of PROGNAME-LIST
9037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9038 for as_dir in $PATH
9039 do
9040   IFS=$as_save_IFS
9041   test -z "$as_dir" && as_dir=.
9042     for ac_prog in dd; do
9043     for ac_exec_ext in '' $ac_executable_extensions; do
9044       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9045       as_fn_executable_p "$ac_path_lt_DD" || continue
9046 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9047   cmp -s conftest.i conftest.out \
9048   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9049 fi
9050       $ac_path_lt_DD_found && break 3
9051     done
9052   done
9053   done
9054 IFS=$as_save_IFS
9055   if test -z "$ac_cv_path_lt_DD"; then
9056     :
9057   fi
9058 else
9059   ac_cv_path_lt_DD=$lt_DD
9060 fi
9061
9062 rm -f conftest.i conftest2.i conftest.out
9063 fi
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9065 $as_echo "$ac_cv_path_lt_DD" >&6; }
9066
9067
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9069 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9070 if ${lt_cv_truncate_bin+:} false; then :
9071   $as_echo_n "(cached) " >&6
9072 else
9073   printf 0123456789abcdef0123456789abcdef >conftest.i
9074 cat conftest.i conftest.i >conftest2.i
9075 lt_cv_truncate_bin=
9076 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9077   cmp -s conftest.i conftest.out \
9078   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9079 fi
9080 rm -f conftest.i conftest2.i conftest.out
9081 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9082 fi
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9084 $as_echo "$lt_cv_truncate_bin" >&6; }
9085
9086
9087
9088
9089
9090
9091
9092 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9093 func_cc_basename ()
9094 {
9095     for cc_temp in $*""; do
9096       case $cc_temp in
9097         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9098         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9099         \-*) ;;
9100         *) break;;
9101       esac
9102     done
9103     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9104 }
9105
9106 # Check whether --enable-libtool-lock was given.
9107 if test "${enable_libtool_lock+set}" = set; then :
9108   enableval=$enable_libtool_lock;
9109 fi
9110
9111 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9112
9113 # Some flags need to be propagated to the compiler or linker for good
9114 # libtool support.
9115 case $host in
9116 ia64-*-hpux*)
9117   # Find out what ABI is being produced by ac_compile, and set mode
9118   # options accordingly.
9119   echo 'int i;' > conftest.$ac_ext
9120   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9121   (eval $ac_compile) 2>&5
9122   ac_status=$?
9123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9124   test $ac_status = 0; }; then
9125     case `/usr/bin/file conftest.$ac_objext` in
9126       *ELF-32*)
9127         HPUX_IA64_MODE=32
9128         ;;
9129       *ELF-64*)
9130         HPUX_IA64_MODE=64
9131         ;;
9132     esac
9133   fi
9134   rm -rf conftest*
9135   ;;
9136 *-*-irix6*)
9137   # Find out what ABI is being produced by ac_compile, and set linker
9138   # options accordingly.
9139   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9140   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9141   (eval $ac_compile) 2>&5
9142   ac_status=$?
9143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9144   test $ac_status = 0; }; then
9145     if test yes = "$lt_cv_prog_gnu_ld"; then
9146       case `/usr/bin/file conftest.$ac_objext` in
9147         *32-bit*)
9148           LD="${LD-ld} -melf32bsmip"
9149           ;;
9150         *N32*)
9151           LD="${LD-ld} -melf32bmipn32"
9152           ;;
9153         *64-bit*)
9154           LD="${LD-ld} -melf64bmip"
9155         ;;
9156       esac
9157     else
9158       case `/usr/bin/file conftest.$ac_objext` in
9159         *32-bit*)
9160           LD="${LD-ld} -32"
9161           ;;
9162         *N32*)
9163           LD="${LD-ld} -n32"
9164           ;;
9165         *64-bit*)
9166           LD="${LD-ld} -64"
9167           ;;
9168       esac
9169     fi
9170   fi
9171   rm -rf conftest*
9172   ;;
9173
9174 mips64*-*linux*)
9175   # Find out what ABI is being produced by ac_compile, and set linker
9176   # options accordingly.
9177   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9178   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9179   (eval $ac_compile) 2>&5
9180   ac_status=$?
9181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9182   test $ac_status = 0; }; then
9183     emul=elf
9184     case `/usr/bin/file conftest.$ac_objext` in
9185       *32-bit*)
9186         emul="${emul}32"
9187         ;;
9188       *64-bit*)
9189         emul="${emul}64"
9190         ;;
9191     esac
9192     case `/usr/bin/file conftest.$ac_objext` in
9193       *MSB*)
9194         emul="${emul}btsmip"
9195         ;;
9196       *LSB*)
9197         emul="${emul}ltsmip"
9198         ;;
9199     esac
9200     case `/usr/bin/file conftest.$ac_objext` in
9201       *N32*)
9202         emul="${emul}n32"
9203         ;;
9204     esac
9205     LD="${LD-ld} -m $emul"
9206   fi
9207   rm -rf conftest*
9208   ;;
9209
9210 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9211 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9212   # Find out what ABI is being produced by ac_compile, and set linker
9213   # options accordingly.  Note that the listed cases only cover the
9214   # situations where additional linker options are needed (such as when
9215   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9216   # vice versa); the common cases where no linker options are needed do
9217   # not appear in the list.
9218   echo 'int i;' > conftest.$ac_ext
9219   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9220   (eval $ac_compile) 2>&5
9221   ac_status=$?
9222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9223   test $ac_status = 0; }; then
9224     case `/usr/bin/file conftest.o` in
9225       *32-bit*)
9226         case $host in
9227           x86_64-*kfreebsd*-gnu)
9228             LD="${LD-ld} -m elf_i386_fbsd"
9229             ;;
9230           x86_64-*linux*)
9231             case `/usr/bin/file conftest.o` in
9232               *x86-64*)
9233                 LD="${LD-ld} -m elf32_x86_64"
9234                 ;;
9235               *)
9236                 LD="${LD-ld} -m elf_i386"
9237                 ;;
9238             esac
9239             ;;
9240           powerpc64le-*linux*)
9241             LD="${LD-ld} -m elf32lppclinux"
9242             ;;
9243           powerpc64-*linux*)
9244             LD="${LD-ld} -m elf32ppclinux"
9245             ;;
9246           s390x-*linux*)
9247             LD="${LD-ld} -m elf_s390"
9248             ;;
9249           sparc64-*linux*)
9250             LD="${LD-ld} -m elf32_sparc"
9251             ;;
9252         esac
9253         ;;
9254       *64-bit*)
9255         case $host in
9256           x86_64-*kfreebsd*-gnu)
9257             LD="${LD-ld} -m elf_x86_64_fbsd"
9258             ;;
9259           x86_64-*linux*)
9260             LD="${LD-ld} -m elf_x86_64"
9261             ;;
9262           powerpcle-*linux*)
9263             LD="${LD-ld} -m elf64lppc"
9264             ;;
9265           powerpc-*linux*)
9266             LD="${LD-ld} -m elf64ppc"
9267             ;;
9268           s390*-*linux*|s390*-*tpf*)
9269             LD="${LD-ld} -m elf64_s390"
9270             ;;
9271           sparc*-*linux*)
9272             LD="${LD-ld} -m elf64_sparc"
9273             ;;
9274         esac
9275         ;;
9276     esac
9277   fi
9278   rm -rf conftest*
9279   ;;
9280
9281 *-*-sco3.2v5*)
9282   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9283   SAVE_CFLAGS=$CFLAGS
9284   CFLAGS="$CFLAGS -belf"
9285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9286 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9287 if ${lt_cv_cc_needs_belf+:} false; then :
9288   $as_echo_n "(cached) " >&6
9289 else
9290   ac_ext=c
9291 ac_cpp='$CPP $CPPFLAGS'
9292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9295
9296      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h.  */
9298
9299 int
9300 main ()
9301 {
9302
9303   ;
9304   return 0;
9305 }
9306 _ACEOF
9307 if ac_fn_c_try_link "$LINENO"; then :
9308   lt_cv_cc_needs_belf=yes
9309 else
9310   lt_cv_cc_needs_belf=no
9311 fi
9312 rm -f core conftest.err conftest.$ac_objext \
9313     conftest$ac_exeext conftest.$ac_ext
9314      ac_ext=c
9315 ac_cpp='$CPP $CPPFLAGS'
9316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9319
9320 fi
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9322 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9323   if test yes != "$lt_cv_cc_needs_belf"; then
9324     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9325     CFLAGS=$SAVE_CFLAGS
9326   fi
9327   ;;
9328 *-*solaris*)
9329   # Find out what ABI is being produced by ac_compile, and set linker
9330   # options accordingly.
9331   echo 'int i;' > conftest.$ac_ext
9332   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9333   (eval $ac_compile) 2>&5
9334   ac_status=$?
9335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9336   test $ac_status = 0; }; then
9337     case `/usr/bin/file conftest.o` in
9338     *64-bit*)
9339       case $lt_cv_prog_gnu_ld in
9340       yes*)
9341         case $host in
9342         i?86-*-solaris*|x86_64-*-solaris*)
9343           LD="${LD-ld} -m elf_x86_64"
9344           ;;
9345         sparc*-*-solaris*)
9346           LD="${LD-ld} -m elf64_sparc"
9347           ;;
9348         esac
9349         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9350         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9351           LD=${LD-ld}_sol2
9352         fi
9353         ;;
9354       *)
9355         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9356           LD="${LD-ld} -64"
9357         fi
9358         ;;
9359       esac
9360       ;;
9361     esac
9362   fi
9363   rm -rf conftest*
9364   ;;
9365 esac
9366
9367 need_locks=$enable_libtool_lock
9368
9369 if test -n "$ac_tool_prefix"; then
9370   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9371 set dummy ${ac_tool_prefix}mt; ac_word=$2
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9373 $as_echo_n "checking for $ac_word... " >&6; }
9374 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9375   $as_echo_n "(cached) " >&6
9376 else
9377   if test -n "$MANIFEST_TOOL"; then
9378   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9379 else
9380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9381 for as_dir in $PATH
9382 do
9383   IFS=$as_save_IFS
9384   test -z "$as_dir" && as_dir=.
9385     for ac_exec_ext in '' $ac_executable_extensions; do
9386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9387     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9389     break 2
9390   fi
9391 done
9392   done
9393 IFS=$as_save_IFS
9394
9395 fi
9396 fi
9397 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9398 if test -n "$MANIFEST_TOOL"; then
9399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9400 $as_echo "$MANIFEST_TOOL" >&6; }
9401 else
9402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9403 $as_echo "no" >&6; }
9404 fi
9405
9406
9407 fi
9408 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9409   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9410   # Extract the first word of "mt", so it can be a program name with args.
9411 set dummy mt; ac_word=$2
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9413 $as_echo_n "checking for $ac_word... " >&6; }
9414 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9415   $as_echo_n "(cached) " >&6
9416 else
9417   if test -n "$ac_ct_MANIFEST_TOOL"; then
9418   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9419 else
9420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421 for as_dir in $PATH
9422 do
9423   IFS=$as_save_IFS
9424   test -z "$as_dir" && as_dir=.
9425     for ac_exec_ext in '' $ac_executable_extensions; do
9426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9427     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9429     break 2
9430   fi
9431 done
9432   done
9433 IFS=$as_save_IFS
9434
9435 fi
9436 fi
9437 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9438 if test -n "$ac_ct_MANIFEST_TOOL"; then
9439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9440 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9441 else
9442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443 $as_echo "no" >&6; }
9444 fi
9445
9446   if test "x$ac_ct_MANIFEST_TOOL" = x; then
9447     MANIFEST_TOOL=":"
9448   else
9449     case $cross_compiling:$ac_tool_warned in
9450 yes:)
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9453 ac_tool_warned=yes ;;
9454 esac
9455     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9456   fi
9457 else
9458   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9459 fi
9460
9461 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9463 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9464 if ${lt_cv_path_mainfest_tool+:} false; then :
9465   $as_echo_n "(cached) " >&6
9466 else
9467   lt_cv_path_mainfest_tool=no
9468   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9469   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9470   cat conftest.err >&5
9471   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9472     lt_cv_path_mainfest_tool=yes
9473   fi
9474   rm -f conftest*
9475 fi
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9477 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9478 if test yes != "$lt_cv_path_mainfest_tool"; then
9479   MANIFEST_TOOL=:
9480 fi
9481
9482
9483
9484
9485
9486
9487   case $host_os in
9488     rhapsody* | darwin*)
9489     if test -n "$ac_tool_prefix"; then
9490   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9491 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9493 $as_echo_n "checking for $ac_word... " >&6; }
9494 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9495   $as_echo_n "(cached) " >&6
9496 else
9497   if test -n "$DSYMUTIL"; then
9498   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9499 else
9500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9501 for as_dir in $PATH
9502 do
9503   IFS=$as_save_IFS
9504   test -z "$as_dir" && as_dir=.
9505     for ac_exec_ext in '' $ac_executable_extensions; do
9506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9507     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9509     break 2
9510   fi
9511 done
9512   done
9513 IFS=$as_save_IFS
9514
9515 fi
9516 fi
9517 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9518 if test -n "$DSYMUTIL"; then
9519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9520 $as_echo "$DSYMUTIL" >&6; }
9521 else
9522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523 $as_echo "no" >&6; }
9524 fi
9525
9526
9527 fi
9528 if test -z "$ac_cv_prog_DSYMUTIL"; then
9529   ac_ct_DSYMUTIL=$DSYMUTIL
9530   # Extract the first word of "dsymutil", so it can be a program name with args.
9531 set dummy dsymutil; ac_word=$2
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533 $as_echo_n "checking for $ac_word... " >&6; }
9534 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9535   $as_echo_n "(cached) " >&6
9536 else
9537   if test -n "$ac_ct_DSYMUTIL"; then
9538   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9539 else
9540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541 for as_dir in $PATH
9542 do
9543   IFS=$as_save_IFS
9544   test -z "$as_dir" && as_dir=.
9545     for ac_exec_ext in '' $ac_executable_extensions; do
9546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9547     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9549     break 2
9550   fi
9551 done
9552   done
9553 IFS=$as_save_IFS
9554
9555 fi
9556 fi
9557 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9558 if test -n "$ac_ct_DSYMUTIL"; then
9559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9560 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9561 else
9562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563 $as_echo "no" >&6; }
9564 fi
9565
9566   if test "x$ac_ct_DSYMUTIL" = x; then
9567     DSYMUTIL=":"
9568   else
9569     case $cross_compiling:$ac_tool_warned in
9570 yes:)
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9573 ac_tool_warned=yes ;;
9574 esac
9575     DSYMUTIL=$ac_ct_DSYMUTIL
9576   fi
9577 else
9578   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9579 fi
9580
9581     if test -n "$ac_tool_prefix"; then
9582   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9583 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9585 $as_echo_n "checking for $ac_word... " >&6; }
9586 if ${ac_cv_prog_NMEDIT+:} false; then :
9587   $as_echo_n "(cached) " >&6
9588 else
9589   if test -n "$NMEDIT"; then
9590   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9591 else
9592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9593 for as_dir in $PATH
9594 do
9595   IFS=$as_save_IFS
9596   test -z "$as_dir" && as_dir=.
9597     for ac_exec_ext in '' $ac_executable_extensions; do
9598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9599     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9601     break 2
9602   fi
9603 done
9604   done
9605 IFS=$as_save_IFS
9606
9607 fi
9608 fi
9609 NMEDIT=$ac_cv_prog_NMEDIT
9610 if test -n "$NMEDIT"; then
9611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9612 $as_echo "$NMEDIT" >&6; }
9613 else
9614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615 $as_echo "no" >&6; }
9616 fi
9617
9618
9619 fi
9620 if test -z "$ac_cv_prog_NMEDIT"; then
9621   ac_ct_NMEDIT=$NMEDIT
9622   # Extract the first word of "nmedit", so it can be a program name with args.
9623 set dummy nmedit; ac_word=$2
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9625 $as_echo_n "checking for $ac_word... " >&6; }
9626 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9627   $as_echo_n "(cached) " >&6
9628 else
9629   if test -n "$ac_ct_NMEDIT"; then
9630   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9631 else
9632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633 for as_dir in $PATH
9634 do
9635   IFS=$as_save_IFS
9636   test -z "$as_dir" && as_dir=.
9637     for ac_exec_ext in '' $ac_executable_extensions; do
9638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9639     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9641     break 2
9642   fi
9643 done
9644   done
9645 IFS=$as_save_IFS
9646
9647 fi
9648 fi
9649 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9650 if test -n "$ac_ct_NMEDIT"; then
9651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9652 $as_echo "$ac_ct_NMEDIT" >&6; }
9653 else
9654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655 $as_echo "no" >&6; }
9656 fi
9657
9658   if test "x$ac_ct_NMEDIT" = x; then
9659     NMEDIT=":"
9660   else
9661     case $cross_compiling:$ac_tool_warned in
9662 yes:)
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9665 ac_tool_warned=yes ;;
9666 esac
9667     NMEDIT=$ac_ct_NMEDIT
9668   fi
9669 else
9670   NMEDIT="$ac_cv_prog_NMEDIT"
9671 fi
9672
9673     if test -n "$ac_tool_prefix"; then
9674   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9675 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9677 $as_echo_n "checking for $ac_word... " >&6; }
9678 if ${ac_cv_prog_LIPO+:} false; then :
9679   $as_echo_n "(cached) " >&6
9680 else
9681   if test -n "$LIPO"; then
9682   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9683 else
9684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9685 for as_dir in $PATH
9686 do
9687   IFS=$as_save_IFS
9688   test -z "$as_dir" && as_dir=.
9689     for ac_exec_ext in '' $ac_executable_extensions; do
9690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9691     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9693     break 2
9694   fi
9695 done
9696   done
9697 IFS=$as_save_IFS
9698
9699 fi
9700 fi
9701 LIPO=$ac_cv_prog_LIPO
9702 if test -n "$LIPO"; then
9703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9704 $as_echo "$LIPO" >&6; }
9705 else
9706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9707 $as_echo "no" >&6; }
9708 fi
9709
9710
9711 fi
9712 if test -z "$ac_cv_prog_LIPO"; then
9713   ac_ct_LIPO=$LIPO
9714   # Extract the first word of "lipo", so it can be a program name with args.
9715 set dummy lipo; ac_word=$2
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717 $as_echo_n "checking for $ac_word... " >&6; }
9718 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9719   $as_echo_n "(cached) " >&6
9720 else
9721   if test -n "$ac_ct_LIPO"; then
9722   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9723 else
9724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725 for as_dir in $PATH
9726 do
9727   IFS=$as_save_IFS
9728   test -z "$as_dir" && as_dir=.
9729     for ac_exec_ext in '' $ac_executable_extensions; do
9730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9731     ac_cv_prog_ac_ct_LIPO="lipo"
9732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9733     break 2
9734   fi
9735 done
9736   done
9737 IFS=$as_save_IFS
9738
9739 fi
9740 fi
9741 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9742 if test -n "$ac_ct_LIPO"; then
9743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9744 $as_echo "$ac_ct_LIPO" >&6; }
9745 else
9746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9748 fi
9749
9750   if test "x$ac_ct_LIPO" = x; then
9751     LIPO=":"
9752   else
9753     case $cross_compiling:$ac_tool_warned in
9754 yes:)
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9757 ac_tool_warned=yes ;;
9758 esac
9759     LIPO=$ac_ct_LIPO
9760   fi
9761 else
9762   LIPO="$ac_cv_prog_LIPO"
9763 fi
9764
9765     if test -n "$ac_tool_prefix"; then
9766   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9767 set dummy ${ac_tool_prefix}otool; ac_word=$2
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9769 $as_echo_n "checking for $ac_word... " >&6; }
9770 if ${ac_cv_prog_OTOOL+:} false; then :
9771   $as_echo_n "(cached) " >&6
9772 else
9773   if test -n "$OTOOL"; then
9774   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9775 else
9776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9777 for as_dir in $PATH
9778 do
9779   IFS=$as_save_IFS
9780   test -z "$as_dir" && as_dir=.
9781     for ac_exec_ext in '' $ac_executable_extensions; do
9782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9783     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9785     break 2
9786   fi
9787 done
9788   done
9789 IFS=$as_save_IFS
9790
9791 fi
9792 fi
9793 OTOOL=$ac_cv_prog_OTOOL
9794 if test -n "$OTOOL"; then
9795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9796 $as_echo "$OTOOL" >&6; }
9797 else
9798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9799 $as_echo "no" >&6; }
9800 fi
9801
9802
9803 fi
9804 if test -z "$ac_cv_prog_OTOOL"; then
9805   ac_ct_OTOOL=$OTOOL
9806   # Extract the first word of "otool", so it can be a program name with args.
9807 set dummy otool; ac_word=$2
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9809 $as_echo_n "checking for $ac_word... " >&6; }
9810 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9811   $as_echo_n "(cached) " >&6
9812 else
9813   if test -n "$ac_ct_OTOOL"; then
9814   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9815 else
9816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9817 for as_dir in $PATH
9818 do
9819   IFS=$as_save_IFS
9820   test -z "$as_dir" && as_dir=.
9821     for ac_exec_ext in '' $ac_executable_extensions; do
9822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9823     ac_cv_prog_ac_ct_OTOOL="otool"
9824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9825     break 2
9826   fi
9827 done
9828   done
9829 IFS=$as_save_IFS
9830
9831 fi
9832 fi
9833 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9834 if test -n "$ac_ct_OTOOL"; then
9835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9836 $as_echo "$ac_ct_OTOOL" >&6; }
9837 else
9838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9839 $as_echo "no" >&6; }
9840 fi
9841
9842   if test "x$ac_ct_OTOOL" = x; then
9843     OTOOL=":"
9844   else
9845     case $cross_compiling:$ac_tool_warned in
9846 yes:)
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9849 ac_tool_warned=yes ;;
9850 esac
9851     OTOOL=$ac_ct_OTOOL
9852   fi
9853 else
9854   OTOOL="$ac_cv_prog_OTOOL"
9855 fi
9856
9857     if test -n "$ac_tool_prefix"; then
9858   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9859 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9861 $as_echo_n "checking for $ac_word... " >&6; }
9862 if ${ac_cv_prog_OTOOL64+:} false; then :
9863   $as_echo_n "(cached) " >&6
9864 else
9865   if test -n "$OTOOL64"; then
9866   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9867 else
9868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9869 for as_dir in $PATH
9870 do
9871   IFS=$as_save_IFS
9872   test -z "$as_dir" && as_dir=.
9873     for ac_exec_ext in '' $ac_executable_extensions; do
9874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9875     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9877     break 2
9878   fi
9879 done
9880   done
9881 IFS=$as_save_IFS
9882
9883 fi
9884 fi
9885 OTOOL64=$ac_cv_prog_OTOOL64
9886 if test -n "$OTOOL64"; then
9887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9888 $as_echo "$OTOOL64" >&6; }
9889 else
9890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9891 $as_echo "no" >&6; }
9892 fi
9893
9894
9895 fi
9896 if test -z "$ac_cv_prog_OTOOL64"; then
9897   ac_ct_OTOOL64=$OTOOL64
9898   # Extract the first word of "otool64", so it can be a program name with args.
9899 set dummy otool64; ac_word=$2
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9901 $as_echo_n "checking for $ac_word... " >&6; }
9902 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9903   $as_echo_n "(cached) " >&6
9904 else
9905   if test -n "$ac_ct_OTOOL64"; then
9906   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9907 else
9908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9909 for as_dir in $PATH
9910 do
9911   IFS=$as_save_IFS
9912   test -z "$as_dir" && as_dir=.
9913     for ac_exec_ext in '' $ac_executable_extensions; do
9914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9915     ac_cv_prog_ac_ct_OTOOL64="otool64"
9916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9917     break 2
9918   fi
9919 done
9920   done
9921 IFS=$as_save_IFS
9922
9923 fi
9924 fi
9925 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9926 if test -n "$ac_ct_OTOOL64"; then
9927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9928 $as_echo "$ac_ct_OTOOL64" >&6; }
9929 else
9930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9931 $as_echo "no" >&6; }
9932 fi
9933
9934   if test "x$ac_ct_OTOOL64" = x; then
9935     OTOOL64=":"
9936   else
9937     case $cross_compiling:$ac_tool_warned in
9938 yes:)
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9941 ac_tool_warned=yes ;;
9942 esac
9943     OTOOL64=$ac_ct_OTOOL64
9944   fi
9945 else
9946   OTOOL64="$ac_cv_prog_OTOOL64"
9947 fi
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9976 $as_echo_n "checking for -single_module linker flag... " >&6; }
9977 if ${lt_cv_apple_cc_single_mod+:} false; then :
9978   $as_echo_n "(cached) " >&6
9979 else
9980   lt_cv_apple_cc_single_mod=no
9981       if test -z "$LT_MULTI_MODULE"; then
9982         # By default we will add the -single_module flag. You can override
9983         # by either setting the environment variable LT_MULTI_MODULE
9984         # non-empty at configure time, or by adding -multi_module to the
9985         # link flags.
9986         rm -rf libconftest.dylib*
9987         echo "int foo(void){return 1;}" > conftest.c
9988         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9989 -dynamiclib -Wl,-single_module conftest.c" >&5
9990         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9991           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9992         _lt_result=$?
9993         # If there is a non-empty error log, and "single_module"
9994         # appears in it, assume the flag caused a linker warning
9995         if test -s conftest.err && $GREP single_module conftest.err; then
9996           cat conftest.err >&5
9997         # Otherwise, if the output was created with a 0 exit code from
9998         # the compiler, it worked.
9999         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10000           lt_cv_apple_cc_single_mod=yes
10001         else
10002           cat conftest.err >&5
10003         fi
10004         rm -rf libconftest.dylib*
10005         rm -f conftest.*
10006       fi
10007 fi
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10009 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10010
10011     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10012 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10013 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10014   $as_echo_n "(cached) " >&6
10015 else
10016   lt_cv_ld_exported_symbols_list=no
10017       save_LDFLAGS=$LDFLAGS
10018       echo "_main" > conftest.sym
10019       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10020       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h.  */
10022
10023 int
10024 main ()
10025 {
10026
10027   ;
10028   return 0;
10029 }
10030 _ACEOF
10031 if ac_fn_c_try_link "$LINENO"; then :
10032   lt_cv_ld_exported_symbols_list=yes
10033 else
10034   lt_cv_ld_exported_symbols_list=no
10035 fi
10036 rm -f core conftest.err conftest.$ac_objext \
10037     conftest$ac_exeext conftest.$ac_ext
10038         LDFLAGS=$save_LDFLAGS
10039
10040 fi
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10042 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10043
10044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10045 $as_echo_n "checking for -force_load linker flag... " >&6; }
10046 if ${lt_cv_ld_force_load+:} false; then :
10047   $as_echo_n "(cached) " >&6
10048 else
10049   lt_cv_ld_force_load=no
10050       cat > conftest.c << _LT_EOF
10051 int forced_loaded() { return 2;}
10052 _LT_EOF
10053       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10054       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10055       echo "$AR cru libconftest.a conftest.o" >&5
10056       $AR cru libconftest.a conftest.o 2>&5
10057       echo "$RANLIB libconftest.a" >&5
10058       $RANLIB libconftest.a 2>&5
10059       cat > conftest.c << _LT_EOF
10060 int main() { return 0;}
10061 _LT_EOF
10062       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10063       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10064       _lt_result=$?
10065       if test -s conftest.err && $GREP force_load conftest.err; then
10066         cat conftest.err >&5
10067       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10068         lt_cv_ld_force_load=yes
10069       else
10070         cat conftest.err >&5
10071       fi
10072         rm -f conftest.err libconftest.a conftest conftest.c
10073         rm -rf conftest.dSYM
10074
10075 fi
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10077 $as_echo "$lt_cv_ld_force_load" >&6; }
10078     case $host_os in
10079     rhapsody* | darwin1.[012])
10080       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10081     darwin1.*)
10082       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10083     darwin*) # darwin 5.x on
10084       # if running on 10.5 or later, the deployment target defaults
10085       # to the OS version, if on x86, and 10.4, the deployment
10086       # target defaults to 10.4. Don't you love it?
10087       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10088         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10089           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10090         10.[012][,.]*)
10091           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10092         10.*)
10093           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10094       esac
10095     ;;
10096   esac
10097     if test yes = "$lt_cv_apple_cc_single_mod"; then
10098       _lt_dar_single_mod='$single_module'
10099     fi
10100     if test yes = "$lt_cv_ld_exported_symbols_list"; then
10101       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10102     else
10103       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10104     fi
10105     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10106       _lt_dsymutil='~$DSYMUTIL $lib || :'
10107     else
10108       _lt_dsymutil=
10109     fi
10110     ;;
10111   esac
10112
10113 # func_munge_path_list VARIABLE PATH
10114 # -----------------------------------
10115 # VARIABLE is name of variable containing _space_ separated list of
10116 # directories to be munged by the contents of PATH, which is string
10117 # having a format:
10118 # "DIR[:DIR]:"
10119 #       string "DIR[ DIR]" will be prepended to VARIABLE
10120 # ":DIR[:DIR]"
10121 #       string "DIR[ DIR]" will be appended to VARIABLE
10122 # "DIRP[:DIRP]::[DIRA:]DIRA"
10123 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10124 #       "DIRA[ DIRA]" will be appended to VARIABLE
10125 # "DIR[:DIR]"
10126 #       VARIABLE will be replaced by "DIR[ DIR]"
10127 func_munge_path_list ()
10128 {
10129     case x$2 in
10130     x)
10131         ;;
10132     *:)
10133         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10134         ;;
10135     x:*)
10136         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10137         ;;
10138     *::*)
10139         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10140         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10141         ;;
10142     *)
10143         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10144         ;;
10145     esac
10146 }
10147
10148 for ac_header in dlfcn.h
10149 do :
10150   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10151 "
10152 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10153   cat >>confdefs.h <<_ACEOF
10154 #define HAVE_DLFCN_H 1
10155 _ACEOF
10156
10157 fi
10158
10159 done
10160
10161
10162
10163
10164
10165
10166
10167 # Set options
10168
10169
10170
10171         enable_dlopen=no
10172
10173
10174   enable_win32_dll=no
10175
10176
10177             # Check whether --enable-shared was given.
10178 if test "${enable_shared+set}" = set; then :
10179   enableval=$enable_shared; p=${PACKAGE-default}
10180     case $enableval in
10181     yes) enable_shared=yes ;;
10182     no) enable_shared=no ;;
10183     *)
10184       enable_shared=no
10185       # Look at the argument we got.  We use all the common list separators.
10186       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10187       for pkg in $enableval; do
10188         IFS=$lt_save_ifs
10189         if test "X$pkg" = "X$p"; then
10190           enable_shared=yes
10191         fi
10192       done
10193       IFS=$lt_save_ifs
10194       ;;
10195     esac
10196 else
10197   enable_shared=yes
10198 fi
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208   # Check whether --enable-static was given.
10209 if test "${enable_static+set}" = set; then :
10210   enableval=$enable_static; p=${PACKAGE-default}
10211     case $enableval in
10212     yes) enable_static=yes ;;
10213     no) enable_static=no ;;
10214     *)
10215      enable_static=no
10216       # Look at the argument we got.  We use all the common list separators.
10217       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10218       for pkg in $enableval; do
10219         IFS=$lt_save_ifs
10220         if test "X$pkg" = "X$p"; then
10221           enable_static=yes
10222         fi
10223       done
10224       IFS=$lt_save_ifs
10225       ;;
10226     esac
10227 else
10228   enable_static=yes
10229 fi
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240 # Check whether --with-pic was given.
10241 if test "${with_pic+set}" = set; then :
10242   withval=$with_pic; lt_p=${PACKAGE-default}
10243     case $withval in
10244     yes|no) pic_mode=$withval ;;
10245     *)
10246       pic_mode=default
10247       # Look at the argument we got.  We use all the common list separators.
10248       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10249       for lt_pkg in $withval; do
10250         IFS=$lt_save_ifs
10251         if test "X$lt_pkg" = "X$lt_p"; then
10252           pic_mode=yes
10253         fi
10254       done
10255       IFS=$lt_save_ifs
10256       ;;
10257     esac
10258 else
10259   pic_mode=default
10260 fi
10261
10262
10263
10264
10265
10266
10267
10268
10269   # Check whether --enable-fast-install was given.
10270 if test "${enable_fast_install+set}" = set; then :
10271   enableval=$enable_fast_install; p=${PACKAGE-default}
10272     case $enableval in
10273     yes) enable_fast_install=yes ;;
10274     no) enable_fast_install=no ;;
10275     *)
10276       enable_fast_install=no
10277       # Look at the argument we got.  We use all the common list separators.
10278       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10279       for pkg in $enableval; do
10280         IFS=$lt_save_ifs
10281         if test "X$pkg" = "X$p"; then
10282           enable_fast_install=yes
10283         fi
10284       done
10285       IFS=$lt_save_ifs
10286       ;;
10287     esac
10288 else
10289   enable_fast_install=yes
10290 fi
10291
10292
10293
10294
10295
10296
10297
10298
10299   shared_archive_member_spec=
10300 case $host,$enable_shared in
10301 power*-*-aix[5-9]*,yes)
10302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10303 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10304
10305 # Check whether --with-aix-soname was given.
10306 if test "${with_aix_soname+set}" = set; then :
10307   withval=$with_aix_soname; case $withval in
10308     aix|svr4|both)
10309       ;;
10310     *)
10311       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10312       ;;
10313     esac
10314     lt_cv_with_aix_soname=$with_aix_soname
10315 else
10316   if ${lt_cv_with_aix_soname+:} false; then :
10317   $as_echo_n "(cached) " >&6
10318 else
10319   lt_cv_with_aix_soname=aix
10320 fi
10321
10322     with_aix_soname=$lt_cv_with_aix_soname
10323 fi
10324
10325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10326 $as_echo "$with_aix_soname" >&6; }
10327   if test aix != "$with_aix_soname"; then
10328     # For the AIX way of multilib, we name the shared archive member
10329     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10330     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10331     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10332     # the AIX toolchain works better with OBJECT_MODE set (default 32).
10333     if test 64 = "${OBJECT_MODE-32}"; then
10334       shared_archive_member_spec=shr_64
10335     else
10336       shared_archive_member_spec=shr
10337     fi
10338   fi
10339   ;;
10340 *)
10341   with_aix_soname=aix
10342   ;;
10343 esac
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354 # This can be used to rebuild libtool when needed
10355 LIBTOOL_DEPS=$ltmain
10356
10357 # Always use our own libtool.
10358 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389 test -z "$LN_S" && LN_S="ln -s"
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404 if test -n "${ZSH_VERSION+set}"; then
10405    setopt NO_GLOB_SUBST
10406 fi
10407
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10409 $as_echo_n "checking for objdir... " >&6; }
10410 if ${lt_cv_objdir+:} false; then :
10411   $as_echo_n "(cached) " >&6
10412 else
10413   rm -f .libs 2>/dev/null
10414 mkdir .libs 2>/dev/null
10415 if test -d .libs; then
10416   lt_cv_objdir=.libs
10417 else
10418   # MS-DOS does not allow filenames that begin with a dot.
10419   lt_cv_objdir=_libs
10420 fi
10421 rmdir .libs 2>/dev/null
10422 fi
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10424 $as_echo "$lt_cv_objdir" >&6; }
10425 objdir=$lt_cv_objdir
10426
10427
10428
10429
10430
10431 cat >>confdefs.h <<_ACEOF
10432 #define LT_OBJDIR "$lt_cv_objdir/"
10433 _ACEOF
10434
10435
10436
10437
10438 case $host_os in
10439 aix3*)
10440   # AIX sometimes has problems with the GCC collect2 program.  For some
10441   # reason, if we set the COLLECT_NAMES environment variable, the problems
10442   # vanish in a puff of smoke.
10443   if test set != "${COLLECT_NAMES+set}"; then
10444     COLLECT_NAMES=
10445     export COLLECT_NAMES
10446   fi
10447   ;;
10448 esac
10449
10450 # Global variables:
10451 ofile=libtool
10452 can_build_shared=yes
10453
10454 # All known linkers require a '.a' archive for static linking (except MSVC,
10455 # which needs '.lib').
10456 libext=a
10457
10458 with_gnu_ld=$lt_cv_prog_gnu_ld
10459
10460 old_CC=$CC
10461 old_CFLAGS=$CFLAGS
10462
10463 # Set sane defaults for various variables
10464 test -z "$CC" && CC=cc
10465 test -z "$LTCC" && LTCC=$CC
10466 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10467 test -z "$LD" && LD=ld
10468 test -z "$ac_objext" && ac_objext=o
10469
10470 func_cc_basename $compiler
10471 cc_basename=$func_cc_basename_result
10472
10473
10474 # Only perform the check for file, if the check method requires it
10475 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10476 case $deplibs_check_method in
10477 file_magic*)
10478   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10480 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10481 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10482   $as_echo_n "(cached) " >&6
10483 else
10484   case $MAGIC_CMD in
10485 [\\/*] |  ?:[\\/]*)
10486   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10487   ;;
10488 *)
10489   lt_save_MAGIC_CMD=$MAGIC_CMD
10490   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10491   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10492   for ac_dir in $ac_dummy; do
10493     IFS=$lt_save_ifs
10494     test -z "$ac_dir" && ac_dir=.
10495     if test -f "$ac_dir/${ac_tool_prefix}file"; then
10496       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10497       if test -n "$file_magic_test_file"; then
10498         case $deplibs_check_method in
10499         "file_magic "*)
10500           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10501           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10502           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10503             $EGREP "$file_magic_regex" > /dev/null; then
10504             :
10505           else
10506             cat <<_LT_EOF 1>&2
10507
10508 *** Warning: the command libtool uses to detect shared libraries,
10509 *** $file_magic_cmd, produces output that libtool cannot recognize.
10510 *** The result is that libtool may fail to recognize shared libraries
10511 *** as such.  This will affect the creation of libtool libraries that
10512 *** depend on shared libraries, but programs linked with such libtool
10513 *** libraries will work regardless of this problem.  Nevertheless, you
10514 *** may want to report the problem to your system manager and/or to
10515 *** bug-libtool@gnu.org
10516
10517 _LT_EOF
10518           fi ;;
10519         esac
10520       fi
10521       break
10522     fi
10523   done
10524   IFS=$lt_save_ifs
10525   MAGIC_CMD=$lt_save_MAGIC_CMD
10526   ;;
10527 esac
10528 fi
10529
10530 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10531 if test -n "$MAGIC_CMD"; then
10532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10533 $as_echo "$MAGIC_CMD" >&6; }
10534 else
10535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536 $as_echo "no" >&6; }
10537 fi
10538
10539
10540
10541
10542
10543 if test -z "$lt_cv_path_MAGIC_CMD"; then
10544   if test -n "$ac_tool_prefix"; then
10545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10546 $as_echo_n "checking for file... " >&6; }
10547 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10548   $as_echo_n "(cached) " >&6
10549 else
10550   case $MAGIC_CMD in
10551 [\\/*] |  ?:[\\/]*)
10552   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10553   ;;
10554 *)
10555   lt_save_MAGIC_CMD=$MAGIC_CMD
10556   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10557   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10558   for ac_dir in $ac_dummy; do
10559     IFS=$lt_save_ifs
10560     test -z "$ac_dir" && ac_dir=.
10561     if test -f "$ac_dir/file"; then
10562       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10563       if test -n "$file_magic_test_file"; then
10564         case $deplibs_check_method in
10565         "file_magic "*)
10566           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10567           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10568           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10569             $EGREP "$file_magic_regex" > /dev/null; then
10570             :
10571           else
10572             cat <<_LT_EOF 1>&2
10573
10574 *** Warning: the command libtool uses to detect shared libraries,
10575 *** $file_magic_cmd, produces output that libtool cannot recognize.
10576 *** The result is that libtool may fail to recognize shared libraries
10577 *** as such.  This will affect the creation of libtool libraries that
10578 *** depend on shared libraries, but programs linked with such libtool
10579 *** libraries will work regardless of this problem.  Nevertheless, you
10580 *** may want to report the problem to your system manager and/or to
10581 *** bug-libtool@gnu.org
10582
10583 _LT_EOF
10584           fi ;;
10585         esac
10586       fi
10587       break
10588     fi
10589   done
10590   IFS=$lt_save_ifs
10591   MAGIC_CMD=$lt_save_MAGIC_CMD
10592   ;;
10593 esac
10594 fi
10595
10596 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10597 if test -n "$MAGIC_CMD"; then
10598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10599 $as_echo "$MAGIC_CMD" >&6; }
10600 else
10601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10603 fi
10604
10605
10606   else
10607     MAGIC_CMD=:
10608   fi
10609 fi
10610
10611   fi
10612   ;;
10613 esac
10614
10615 # Use C for the default configuration in the libtool script
10616
10617 lt_save_CC=$CC
10618 ac_ext=c
10619 ac_cpp='$CPP $CPPFLAGS'
10620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10623
10624
10625 # Source file extension for C test sources.
10626 ac_ext=c
10627
10628 # Object file extension for compiled C test sources.
10629 objext=o
10630 objext=$objext
10631
10632 # Code to be used in simple compile tests
10633 lt_simple_compile_test_code="int some_variable = 0;"
10634
10635 # Code to be used in simple link tests
10636 lt_simple_link_test_code='int main(){return(0);}'
10637
10638
10639
10640
10641
10642
10643
10644 # If no C compiler was specified, use CC.
10645 LTCC=${LTCC-"$CC"}
10646
10647 # If no C compiler flags were specified, use CFLAGS.
10648 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10649
10650 # Allow CC to be a program name with arguments.
10651 compiler=$CC
10652
10653 # Save the default compiler, since it gets overwritten when the other
10654 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10655 compiler_DEFAULT=$CC
10656
10657 # save warnings/boilerplate of simple test code
10658 ac_outfile=conftest.$ac_objext
10659 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10660 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10661 _lt_compiler_boilerplate=`cat conftest.err`
10662 $RM conftest*
10663
10664 ac_outfile=conftest.$ac_objext
10665 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10666 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10667 _lt_linker_boilerplate=`cat conftest.err`
10668 $RM -r conftest*
10669
10670
10671 if test -n "$compiler"; then
10672
10673 lt_prog_compiler_no_builtin_flag=
10674
10675 if test yes = "$GCC"; then
10676   case $cc_basename in
10677   nvcc*)
10678     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10679   *)
10680     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10681   esac
10682
10683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10684 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10685 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10686   $as_echo_n "(cached) " >&6
10687 else
10688   lt_cv_prog_compiler_rtti_exceptions=no
10689    ac_outfile=conftest.$ac_objext
10690    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10691    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10692    # Insert the option either (1) after the last *FLAGS variable, or
10693    # (2) before a word containing "conftest.", or (3) at the end.
10694    # Note that $ac_compile itself does not contain backslashes and begins
10695    # with a dollar sign (not a hyphen), so the echo should work correctly.
10696    # The option is referenced via a variable to avoid confusing sed.
10697    lt_compile=`echo "$ac_compile" | $SED \
10698    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10699    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10700    -e 's:$: $lt_compiler_flag:'`
10701    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10702    (eval "$lt_compile" 2>conftest.err)
10703    ac_status=$?
10704    cat conftest.err >&5
10705    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706    if (exit $ac_status) && test -s "$ac_outfile"; then
10707      # The compiler can only warn and ignore the option if not recognized
10708      # So say no if there are warnings other than the usual output.
10709      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10710      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10711      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10712        lt_cv_prog_compiler_rtti_exceptions=yes
10713      fi
10714    fi
10715    $RM conftest*
10716
10717 fi
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10719 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10720
10721 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10722     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10723 else
10724     :
10725 fi
10726
10727 fi
10728
10729
10730
10731
10732
10733
10734   lt_prog_compiler_wl=
10735 lt_prog_compiler_pic=
10736 lt_prog_compiler_static=
10737
10738
10739   if test yes = "$GCC"; then
10740     lt_prog_compiler_wl='-Wl,'
10741     lt_prog_compiler_static='-static'
10742
10743     case $host_os in
10744       aix*)
10745       # All AIX code is PIC.
10746       if test ia64 = "$host_cpu"; then
10747         # AIX 5 now supports IA64 processor
10748         lt_prog_compiler_static='-Bstatic'
10749       fi
10750       lt_prog_compiler_pic='-fPIC'
10751       ;;
10752
10753     amigaos*)
10754       case $host_cpu in
10755       powerpc)
10756             # see comment about AmigaOS4 .so support
10757             lt_prog_compiler_pic='-fPIC'
10758         ;;
10759       m68k)
10760             # FIXME: we need at least 68020 code to build shared libraries, but
10761             # adding the '-m68020' flag to GCC prevents building anything better,
10762             # like '-m68040'.
10763             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10764         ;;
10765       esac
10766       ;;
10767
10768     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10769       # PIC is the default for these OSes.
10770       ;;
10771
10772     mingw* | cygwin* | pw32* | os2* | cegcc*)
10773       # This hack is so that the source file can tell whether it is being
10774       # built for inclusion in a dll (and should export symbols for example).
10775       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10776       # (--disable-auto-import) libraries
10777       lt_prog_compiler_pic='-DDLL_EXPORT'
10778       case $host_os in
10779       os2*)
10780         lt_prog_compiler_static='$wl-static'
10781         ;;
10782       esac
10783       ;;
10784
10785     darwin* | rhapsody*)
10786       # PIC is the default on this platform
10787       # Common symbols not allowed in MH_DYLIB files
10788       lt_prog_compiler_pic='-fno-common'
10789       ;;
10790
10791     haiku*)
10792       # PIC is the default for Haiku.
10793       # The "-static" flag exists, but is broken.
10794       lt_prog_compiler_static=
10795       ;;
10796
10797     hpux*)
10798       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10799       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10800       # sets the default TLS model and affects inlining.
10801       case $host_cpu in
10802       hppa*64*)
10803         # +Z the default
10804         ;;
10805       *)
10806         lt_prog_compiler_pic='-fPIC'
10807         ;;
10808       esac
10809       ;;
10810
10811     interix[3-9]*)
10812       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10813       # Instead, we relocate shared libraries at runtime.
10814       ;;
10815
10816     msdosdjgpp*)
10817       # Just because we use GCC doesn't mean we suddenly get shared libraries
10818       # on systems that don't support them.
10819       lt_prog_compiler_can_build_shared=no
10820       enable_shared=no
10821       ;;
10822
10823     *nto* | *qnx*)
10824       # QNX uses GNU C++, but need to define -shared option too, otherwise
10825       # it will coredump.
10826       lt_prog_compiler_pic='-fPIC -shared'
10827       ;;
10828
10829     sysv4*MP*)
10830       if test -d /usr/nec; then
10831         lt_prog_compiler_pic=-Kconform_pic
10832       fi
10833       ;;
10834
10835     *)
10836       lt_prog_compiler_pic='-fPIC'
10837       ;;
10838     esac
10839
10840     case $cc_basename in
10841     nvcc*) # Cuda Compiler Driver 2.2
10842       lt_prog_compiler_wl='-Xlinker '
10843       if test -n "$lt_prog_compiler_pic"; then
10844         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10845       fi
10846       ;;
10847     esac
10848   else
10849     # PORTME Check for flag to pass linker flags through the system compiler.
10850     case $host_os in
10851     aix*)
10852       lt_prog_compiler_wl='-Wl,'
10853       if test ia64 = "$host_cpu"; then
10854         # AIX 5 now supports IA64 processor
10855         lt_prog_compiler_static='-Bstatic'
10856       else
10857         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10858       fi
10859       ;;
10860
10861     darwin* | rhapsody*)
10862       # PIC is the default on this platform
10863       # Common symbols not allowed in MH_DYLIB files
10864       lt_prog_compiler_pic='-fno-common'
10865       case $cc_basename in
10866       nagfor*)
10867         # NAG Fortran compiler
10868         lt_prog_compiler_wl='-Wl,-Wl,,'
10869         lt_prog_compiler_pic='-PIC'
10870         lt_prog_compiler_static='-Bstatic'
10871         ;;
10872       esac
10873       ;;
10874
10875     mingw* | cygwin* | pw32* | os2* | cegcc*)
10876       # This hack is so that the source file can tell whether it is being
10877       # built for inclusion in a dll (and should export symbols for example).
10878       lt_prog_compiler_pic='-DDLL_EXPORT'
10879       case $host_os in
10880       os2*)
10881         lt_prog_compiler_static='$wl-static'
10882         ;;
10883       esac
10884       ;;
10885
10886     hpux9* | hpux10* | hpux11*)
10887       lt_prog_compiler_wl='-Wl,'
10888       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10889       # not for PA HP-UX.
10890       case $host_cpu in
10891       hppa*64*|ia64*)
10892         # +Z the default
10893         ;;
10894       *)
10895         lt_prog_compiler_pic='+Z'
10896         ;;
10897       esac
10898       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10899       lt_prog_compiler_static='$wl-a ${wl}archive'
10900       ;;
10901
10902     irix5* | irix6* | nonstopux*)
10903       lt_prog_compiler_wl='-Wl,'
10904       # PIC (with -KPIC) is the default.
10905       lt_prog_compiler_static='-non_shared'
10906       ;;
10907
10908     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10909       case $cc_basename in
10910       # old Intel for x86_64, which still supported -KPIC.
10911       ecc*)
10912         lt_prog_compiler_wl='-Wl,'
10913         lt_prog_compiler_pic='-KPIC'
10914         lt_prog_compiler_static='-static'
10915         ;;
10916       # icc used to be incompatible with GCC.
10917       # ICC 10 doesn't accept -KPIC any more.
10918       icc* | ifort*)
10919         lt_prog_compiler_wl='-Wl,'
10920         lt_prog_compiler_pic='-fPIC'
10921         lt_prog_compiler_static='-static'
10922         ;;
10923       # Lahey Fortran 8.1.
10924       lf95*)
10925         lt_prog_compiler_wl='-Wl,'
10926         lt_prog_compiler_pic='--shared'
10927         lt_prog_compiler_static='--static'
10928         ;;
10929       nagfor*)
10930         # NAG Fortran compiler
10931         lt_prog_compiler_wl='-Wl,-Wl,,'
10932         lt_prog_compiler_pic='-PIC'
10933         lt_prog_compiler_static='-Bstatic'
10934         ;;
10935       tcc*)
10936         # Fabrice Bellard et al's Tiny C Compiler
10937         lt_prog_compiler_wl='-Wl,'
10938         lt_prog_compiler_pic='-fPIC'
10939         lt_prog_compiler_static='-static'
10940         ;;
10941       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10942         # Portland Group compilers (*not* the Pentium gcc compiler,
10943         # which looks to be a dead project)
10944         lt_prog_compiler_wl='-Wl,'
10945         lt_prog_compiler_pic='-fpic'
10946         lt_prog_compiler_static='-Bstatic'
10947         ;;
10948       ccc*)
10949         lt_prog_compiler_wl='-Wl,'
10950         # All Alpha code is PIC.
10951         lt_prog_compiler_static='-non_shared'
10952         ;;
10953       xl* | bgxl* | bgf* | mpixl*)
10954         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10955         lt_prog_compiler_wl='-Wl,'
10956         lt_prog_compiler_pic='-qpic'
10957         lt_prog_compiler_static='-qstaticlink'
10958         ;;
10959       *)
10960         case `$CC -V 2>&1 | sed 5q` in
10961         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10962           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10963           lt_prog_compiler_pic='-KPIC'
10964           lt_prog_compiler_static='-Bstatic'
10965           lt_prog_compiler_wl=''
10966           ;;
10967         *Sun\ F* | *Sun*Fortran*)
10968           lt_prog_compiler_pic='-KPIC'
10969           lt_prog_compiler_static='-Bstatic'
10970           lt_prog_compiler_wl='-Qoption ld '
10971           ;;
10972         *Sun\ C*)
10973           # Sun C 5.9
10974           lt_prog_compiler_pic='-KPIC'
10975           lt_prog_compiler_static='-Bstatic'
10976           lt_prog_compiler_wl='-Wl,'
10977           ;;
10978         *Intel*\ [CF]*Compiler*)
10979           lt_prog_compiler_wl='-Wl,'
10980           lt_prog_compiler_pic='-fPIC'
10981           lt_prog_compiler_static='-static'
10982           ;;
10983         *Portland\ Group*)
10984           lt_prog_compiler_wl='-Wl,'
10985           lt_prog_compiler_pic='-fpic'
10986           lt_prog_compiler_static='-Bstatic'
10987           ;;
10988         esac
10989         ;;
10990       esac
10991       ;;
10992
10993     newsos6)
10994       lt_prog_compiler_pic='-KPIC'
10995       lt_prog_compiler_static='-Bstatic'
10996       ;;
10997
10998     *nto* | *qnx*)
10999       # QNX uses GNU C++, but need to define -shared option too, otherwise
11000       # it will coredump.
11001       lt_prog_compiler_pic='-fPIC -shared'
11002       ;;
11003
11004     osf3* | osf4* | osf5*)
11005       lt_prog_compiler_wl='-Wl,'
11006       # All OSF/1 code is PIC.
11007       lt_prog_compiler_static='-non_shared'
11008       ;;
11009
11010     rdos*)
11011       lt_prog_compiler_static='-non_shared'
11012       ;;
11013
11014     solaris*)
11015       lt_prog_compiler_pic='-KPIC'
11016       lt_prog_compiler_static='-Bstatic'
11017       case $cc_basename in
11018       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11019         lt_prog_compiler_wl='-Qoption ld ';;
11020       *)
11021         lt_prog_compiler_wl='-Wl,';;
11022       esac
11023       ;;
11024
11025     sunos4*)
11026       lt_prog_compiler_wl='-Qoption ld '
11027       lt_prog_compiler_pic='-PIC'
11028       lt_prog_compiler_static='-Bstatic'
11029       ;;
11030
11031     sysv4 | sysv4.2uw2* | sysv4.3*)
11032       lt_prog_compiler_wl='-Wl,'
11033       lt_prog_compiler_pic='-KPIC'
11034       lt_prog_compiler_static='-Bstatic'
11035       ;;
11036
11037     sysv4*MP*)
11038       if test -d /usr/nec; then
11039         lt_prog_compiler_pic='-Kconform_pic'
11040         lt_prog_compiler_static='-Bstatic'
11041       fi
11042       ;;
11043
11044     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11045       lt_prog_compiler_wl='-Wl,'
11046       lt_prog_compiler_pic='-KPIC'
11047       lt_prog_compiler_static='-Bstatic'
11048       ;;
11049
11050     unicos*)
11051       lt_prog_compiler_wl='-Wl,'
11052       lt_prog_compiler_can_build_shared=no
11053       ;;
11054
11055     uts4*)
11056       lt_prog_compiler_pic='-pic'
11057       lt_prog_compiler_static='-Bstatic'
11058       ;;
11059
11060     *)
11061       lt_prog_compiler_can_build_shared=no
11062       ;;
11063     esac
11064   fi
11065
11066 case $host_os in
11067   # For platforms that do not support PIC, -DPIC is meaningless:
11068   *djgpp*)
11069     lt_prog_compiler_pic=
11070     ;;
11071   *)
11072     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11073     ;;
11074 esac
11075
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11077 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11078 if ${lt_cv_prog_compiler_pic+:} false; then :
11079   $as_echo_n "(cached) " >&6
11080 else
11081   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11082 fi
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11084 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11085 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11086
11087 #
11088 # Check to make sure the PIC flag actually works.
11089 #
11090 if test -n "$lt_prog_compiler_pic"; then
11091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11092 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11093 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11094   $as_echo_n "(cached) " >&6
11095 else
11096   lt_cv_prog_compiler_pic_works=no
11097    ac_outfile=conftest.$ac_objext
11098    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11099    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11100    # Insert the option either (1) after the last *FLAGS variable, or
11101    # (2) before a word containing "conftest.", or (3) at the end.
11102    # Note that $ac_compile itself does not contain backslashes and begins
11103    # with a dollar sign (not a hyphen), so the echo should work correctly.
11104    # The option is referenced via a variable to avoid confusing sed.
11105    lt_compile=`echo "$ac_compile" | $SED \
11106    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11107    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11108    -e 's:$: $lt_compiler_flag:'`
11109    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11110    (eval "$lt_compile" 2>conftest.err)
11111    ac_status=$?
11112    cat conftest.err >&5
11113    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114    if (exit $ac_status) && test -s "$ac_outfile"; then
11115      # The compiler can only warn and ignore the option if not recognized
11116      # So say no if there are warnings other than the usual output.
11117      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11118      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11119      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11120        lt_cv_prog_compiler_pic_works=yes
11121      fi
11122    fi
11123    $RM conftest*
11124
11125 fi
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11127 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11128
11129 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11130     case $lt_prog_compiler_pic in
11131      "" | " "*) ;;
11132      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11133      esac
11134 else
11135     lt_prog_compiler_pic=
11136      lt_prog_compiler_can_build_shared=no
11137 fi
11138
11139 fi
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151 #
11152 # Check to make sure the static flag actually works.
11153 #
11154 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11156 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11157 if ${lt_cv_prog_compiler_static_works+:} false; then :
11158   $as_echo_n "(cached) " >&6
11159 else
11160   lt_cv_prog_compiler_static_works=no
11161    save_LDFLAGS=$LDFLAGS
11162    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11163    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11164    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11165      # The linker can only warn and ignore the option if not recognized
11166      # So say no if there are warnings
11167      if test -s conftest.err; then
11168        # Append any errors to the config.log.
11169        cat conftest.err 1>&5
11170        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11171        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11172        if diff conftest.exp conftest.er2 >/dev/null; then
11173          lt_cv_prog_compiler_static_works=yes
11174        fi
11175      else
11176        lt_cv_prog_compiler_static_works=yes
11177      fi
11178    fi
11179    $RM -r conftest*
11180    LDFLAGS=$save_LDFLAGS
11181
11182 fi
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11184 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11185
11186 if test yes = "$lt_cv_prog_compiler_static_works"; then
11187     :
11188 else
11189     lt_prog_compiler_static=
11190 fi
11191
11192
11193
11194
11195
11196
11197
11198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11199 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11200 if ${lt_cv_prog_compiler_c_o+:} false; then :
11201   $as_echo_n "(cached) " >&6
11202 else
11203   lt_cv_prog_compiler_c_o=no
11204    $RM -r conftest 2>/dev/null
11205    mkdir conftest
11206    cd conftest
11207    mkdir out
11208    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11209
11210    lt_compiler_flag="-o out/conftest2.$ac_objext"
11211    # Insert the option either (1) after the last *FLAGS variable, or
11212    # (2) before a word containing "conftest.", or (3) at the end.
11213    # Note that $ac_compile itself does not contain backslashes and begins
11214    # with a dollar sign (not a hyphen), so the echo should work correctly.
11215    lt_compile=`echo "$ac_compile" | $SED \
11216    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11217    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11218    -e 's:$: $lt_compiler_flag:'`
11219    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11220    (eval "$lt_compile" 2>out/conftest.err)
11221    ac_status=$?
11222    cat out/conftest.err >&5
11223    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11225    then
11226      # The compiler can only warn and ignore the option if not recognized
11227      # So say no if there are warnings
11228      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11229      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11230      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11231        lt_cv_prog_compiler_c_o=yes
11232      fi
11233    fi
11234    chmod u+w . 2>&5
11235    $RM conftest*
11236    # SGI C++ compiler will create directory out/ii_files/ for
11237    # template instantiation
11238    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11239    $RM out/* && rmdir out
11240    cd ..
11241    $RM -r conftest
11242    $RM conftest*
11243
11244 fi
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11246 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11247
11248
11249
11250
11251
11252
11253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11254 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11255 if ${lt_cv_prog_compiler_c_o+:} false; then :
11256   $as_echo_n "(cached) " >&6
11257 else
11258   lt_cv_prog_compiler_c_o=no
11259    $RM -r conftest 2>/dev/null
11260    mkdir conftest
11261    cd conftest
11262    mkdir out
11263    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11264
11265    lt_compiler_flag="-o out/conftest2.$ac_objext"
11266    # Insert the option either (1) after the last *FLAGS variable, or
11267    # (2) before a word containing "conftest.", or (3) at the end.
11268    # Note that $ac_compile itself does not contain backslashes and begins
11269    # with a dollar sign (not a hyphen), so the echo should work correctly.
11270    lt_compile=`echo "$ac_compile" | $SED \
11271    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11272    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11273    -e 's:$: $lt_compiler_flag:'`
11274    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11275    (eval "$lt_compile" 2>out/conftest.err)
11276    ac_status=$?
11277    cat out/conftest.err >&5
11278    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11280    then
11281      # The compiler can only warn and ignore the option if not recognized
11282      # So say no if there are warnings
11283      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11284      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11285      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11286        lt_cv_prog_compiler_c_o=yes
11287      fi
11288    fi
11289    chmod u+w . 2>&5
11290    $RM conftest*
11291    # SGI C++ compiler will create directory out/ii_files/ for
11292    # template instantiation
11293    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11294    $RM out/* && rmdir out
11295    cd ..
11296    $RM -r conftest
11297    $RM conftest*
11298
11299 fi
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11301 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11302
11303
11304
11305
11306 hard_links=nottested
11307 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11308   # do not overwrite the value of need_locks provided by the user
11309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11310 $as_echo_n "checking if we can lock with hard links... " >&6; }
11311   hard_links=yes
11312   $RM conftest*
11313   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11314   touch conftest.a
11315   ln conftest.a conftest.b 2>&5 || hard_links=no
11316   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11318 $as_echo "$hard_links" >&6; }
11319   if test no = "$hard_links"; then
11320     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11321 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11322     need_locks=warn
11323   fi
11324 else
11325   need_locks=no
11326 fi
11327
11328
11329
11330
11331
11332
11333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11334 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11335
11336   runpath_var=
11337   allow_undefined_flag=
11338   always_export_symbols=no
11339   archive_cmds=
11340   archive_expsym_cmds=
11341   compiler_needs_object=no
11342   enable_shared_with_static_runtimes=no
11343   export_dynamic_flag_spec=
11344   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11345   hardcode_automatic=no
11346   hardcode_direct=no
11347   hardcode_direct_absolute=no
11348   hardcode_libdir_flag_spec=
11349   hardcode_libdir_separator=
11350   hardcode_minus_L=no
11351   hardcode_shlibpath_var=unsupported
11352   inherit_rpath=no
11353   link_all_deplibs=unknown
11354   module_cmds=
11355   module_expsym_cmds=
11356   old_archive_from_new_cmds=
11357   old_archive_from_expsyms_cmds=
11358   thread_safe_flag_spec=
11359   whole_archive_flag_spec=
11360   # include_expsyms should be a list of space-separated symbols to be *always*
11361   # included in the symbol list
11362   include_expsyms=
11363   # exclude_expsyms can be an extended regexp of symbols to exclude
11364   # it will be wrapped by ' (' and ')$', so one must not match beginning or
11365   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11366   # as well as any symbol that contains 'd'.
11367   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11368   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11369   # platforms (ab)use it in PIC code, but their linkers get confused if
11370   # the symbol is explicitly referenced.  Since portable code cannot
11371   # rely on this symbol name, it's probably fine to never include it in
11372   # preloaded symbol tables.
11373   # Exclude shared library initialization/finalization symbols.
11374   extract_expsyms_cmds=
11375
11376   case $host_os in
11377   cygwin* | mingw* | pw32* | cegcc*)
11378     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11379     # When not using gcc, we currently assume that we are using
11380     # Microsoft Visual C++.
11381     if test yes != "$GCC"; then
11382       with_gnu_ld=no
11383     fi
11384     ;;
11385   interix*)
11386     # we just hope/assume this is gcc and not c89 (= MSVC++)
11387     with_gnu_ld=yes
11388     ;;
11389   openbsd* | bitrig*)
11390     with_gnu_ld=no
11391     ;;
11392   esac
11393
11394   ld_shlibs=yes
11395
11396   # On some targets, GNU ld is compatible enough with the native linker
11397   # that we're better off using the native interface for both.
11398   lt_use_gnu_ld_interface=no
11399   if test yes = "$with_gnu_ld"; then
11400     case $host_os in
11401       aix*)
11402         # The AIX port of GNU ld has always aspired to compatibility
11403         # with the native linker.  However, as the warning in the GNU ld
11404         # block says, versions before 2.19.5* couldn't really create working
11405         # shared libraries, regardless of the interface used.
11406         case `$LD -v 2>&1` in
11407           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11408           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11409           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11410           *)
11411             lt_use_gnu_ld_interface=yes
11412             ;;
11413         esac
11414         ;;
11415       *)
11416         lt_use_gnu_ld_interface=yes
11417         ;;
11418     esac
11419   fi
11420
11421   if test yes = "$lt_use_gnu_ld_interface"; then
11422     # If archive_cmds runs LD, not CC, wlarc should be empty
11423     wlarc='$wl'
11424
11425     # Set some defaults for GNU ld with shared library support. These
11426     # are reset later if shared libraries are not supported. Putting them
11427     # here allows them to be overridden if necessary.
11428     runpath_var=LD_RUN_PATH
11429     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11430     export_dynamic_flag_spec='$wl--export-dynamic'
11431     # ancient GNU ld didn't support --whole-archive et. al.
11432     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11433       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11434     else
11435       whole_archive_flag_spec=
11436     fi
11437     supports_anon_versioning=no
11438     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11439       *GNU\ gold*) supports_anon_versioning=yes ;;
11440       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11441       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11442       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11443       *\ 2.11.*) ;; # other 2.11 versions
11444       *) supports_anon_versioning=yes ;;
11445     esac
11446
11447     # See if GNU ld supports shared libraries.
11448     case $host_os in
11449     aix[3-9]*)
11450       # On AIX/PPC, the GNU linker is very broken
11451       if test ia64 != "$host_cpu"; then
11452         ld_shlibs=no
11453         cat <<_LT_EOF 1>&2
11454
11455 *** Warning: the GNU linker, at least up to release 2.19, is reported
11456 *** to be unable to reliably create shared libraries on AIX.
11457 *** Therefore, libtool is disabling shared libraries support.  If you
11458 *** really care for shared libraries, you may want to install binutils
11459 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11460 *** You will then need to restart the configuration process.
11461
11462 _LT_EOF
11463       fi
11464       ;;
11465
11466     amigaos*)
11467       case $host_cpu in
11468       powerpc)
11469             # see comment about AmigaOS4 .so support
11470             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11471             archive_expsym_cmds=''
11472         ;;
11473       m68k)
11474             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11475             hardcode_libdir_flag_spec='-L$libdir'
11476             hardcode_minus_L=yes
11477         ;;
11478       esac
11479       ;;
11480
11481     beos*)
11482       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11483         allow_undefined_flag=unsupported
11484         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11485         # support --undefined.  This deserves some investigation.  FIXME
11486         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11487       else
11488         ld_shlibs=no
11489       fi
11490       ;;
11491
11492     cygwin* | mingw* | pw32* | cegcc*)
11493       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11494       # as there is no search path for DLLs.
11495       hardcode_libdir_flag_spec='-L$libdir'
11496       export_dynamic_flag_spec='$wl--export-all-symbols'
11497       allow_undefined_flag=unsupported
11498       always_export_symbols=no
11499       enable_shared_with_static_runtimes=yes
11500       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11501       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11502
11503       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11504         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11505         # If the export-symbols file already is a .def file, use it as
11506         # is; otherwise, prepend EXPORTS...
11507         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11508           cp $export_symbols $output_objdir/$soname.def;
11509         else
11510           echo EXPORTS > $output_objdir/$soname.def;
11511           cat $export_symbols >> $output_objdir/$soname.def;
11512         fi~
11513         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11514       else
11515         ld_shlibs=no
11516       fi
11517       ;;
11518
11519     haiku*)
11520       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11521       link_all_deplibs=yes
11522       ;;
11523
11524     os2*)
11525       hardcode_libdir_flag_spec='-L$libdir'
11526       hardcode_minus_L=yes
11527       allow_undefined_flag=unsupported
11528       shrext_cmds=.dll
11529       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11530         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11531         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11532         $ECHO EXPORTS >> $output_objdir/$libname.def~
11533         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11534         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11535         emximp -o $lib $output_objdir/$libname.def'
11536       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11537         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11538         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11539         $ECHO EXPORTS >> $output_objdir/$libname.def~
11540         prefix_cmds="$SED"~
11541         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11542           prefix_cmds="$prefix_cmds -e 1d";
11543         fi~
11544         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11545         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11546         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11547         emximp -o $lib $output_objdir/$libname.def'
11548       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11549       enable_shared_with_static_runtimes=yes
11550       ;;
11551
11552     interix[3-9]*)
11553       hardcode_direct=no
11554       hardcode_shlibpath_var=no
11555       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11556       export_dynamic_flag_spec='$wl-E'
11557       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11558       # Instead, shared libraries are loaded at an image base (0x10000000 by
11559       # default) and relocated if they conflict, which is a slow very memory
11560       # consuming and fragmenting process.  To avoid this, we pick a random,
11561       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11562       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11563       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11564       archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11565       ;;
11566
11567     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11568       tmp_diet=no
11569       if test linux-dietlibc = "$host_os"; then
11570         case $cc_basename in
11571           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11572         esac
11573       fi
11574       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11575          && test no = "$tmp_diet"
11576       then
11577         tmp_addflag=' $pic_flag'
11578         tmp_sharedflag='-shared'
11579         case $cc_basename,$host_cpu in
11580         pgcc*)                          # Portland Group C compiler
11581           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11582           tmp_addflag=' $pic_flag'
11583           ;;
11584         pgf77* | pgf90* | pgf95* | pgfortran*)
11585                                         # Portland Group f77 and f90 compilers
11586           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11587           tmp_addflag=' $pic_flag -Mnomain' ;;
11588         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11589           tmp_addflag=' -i_dynamic' ;;
11590         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11591           tmp_addflag=' -i_dynamic -nofor_main' ;;
11592         ifc* | ifort*)                  # Intel Fortran compiler
11593           tmp_addflag=' -nofor_main' ;;
11594         lf95*)                          # Lahey Fortran 8.1
11595           whole_archive_flag_spec=
11596           tmp_sharedflag='--shared' ;;
11597         nagfor*)                        # NAGFOR 5.3
11598           tmp_sharedflag='-Wl,-shared' ;;
11599         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11600           tmp_sharedflag='-qmkshrobj'
11601           tmp_addflag= ;;
11602         nvcc*)  # Cuda Compiler Driver 2.2
11603           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11604           compiler_needs_object=yes
11605           ;;
11606         esac
11607         case `$CC -V 2>&1 | sed 5q` in
11608         *Sun\ C*)                       # Sun C 5.9
11609           whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11610           compiler_needs_object=yes
11611           tmp_sharedflag='-G' ;;
11612         *Sun\ F*)                       # Sun Fortran 8.3
11613           tmp_sharedflag='-G' ;;
11614         esac
11615         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11616
11617         if test yes = "$supports_anon_versioning"; then
11618           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11619             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11620             echo "local: *; };" >> $output_objdir/$libname.ver~
11621             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11622         fi
11623
11624         case $cc_basename in
11625         tcc*)
11626           export_dynamic_flag_spec='-rdynamic'
11627           ;;
11628         xlf* | bgf* | bgxlf* | mpixlf*)
11629           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11630           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11631           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11632           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11633           if test yes = "$supports_anon_versioning"; then
11634             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11635               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11636               echo "local: *; };" >> $output_objdir/$libname.ver~
11637               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11638           fi
11639           ;;
11640         esac
11641       else
11642         ld_shlibs=no
11643       fi
11644       ;;
11645
11646     netbsd*)
11647       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11648         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11649         wlarc=
11650       else
11651         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11652         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11653       fi
11654       ;;
11655
11656     solaris*)
11657       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11658         ld_shlibs=no
11659         cat <<_LT_EOF 1>&2
11660
11661 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11662 *** create shared libraries on Solaris systems.  Therefore, libtool
11663 *** is disabling shared libraries support.  We urge you to upgrade GNU
11664 *** binutils to release 2.9.1 or newer.  Another option is to modify
11665 *** your PATH or compiler configuration so that the native linker is
11666 *** used, and then restart.
11667
11668 _LT_EOF
11669       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11670         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11671         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11672       else
11673         ld_shlibs=no
11674       fi
11675       ;;
11676
11677     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11678       case `$LD -v 2>&1` in
11679         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11680         ld_shlibs=no
11681         cat <<_LT_EOF 1>&2
11682
11683 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11684 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11685 *** is disabling shared libraries support.  We urge you to upgrade GNU
11686 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11687 *** your PATH or compiler configuration so that the native linker is
11688 *** used, and then restart.
11689
11690 _LT_EOF
11691         ;;
11692         *)
11693           # For security reasons, it is highly recommended that you always
11694           # use absolute paths for naming shared libraries, and exclude the
11695           # DT_RUNPATH tag from executables and libraries.  But doing so
11696           # requires that you compile everything twice, which is a pain.
11697           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11698             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11699             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11700             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11701           else
11702             ld_shlibs=no
11703           fi
11704         ;;
11705       esac
11706       ;;
11707
11708     sunos4*)
11709       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11710       wlarc=
11711       hardcode_direct=yes
11712       hardcode_shlibpath_var=no
11713       ;;
11714
11715     *)
11716       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11717         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11718         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11719       else
11720         ld_shlibs=no
11721       fi
11722       ;;
11723     esac
11724
11725     if test no = "$ld_shlibs"; then
11726       runpath_var=
11727       hardcode_libdir_flag_spec=
11728       export_dynamic_flag_spec=
11729       whole_archive_flag_spec=
11730     fi
11731   else
11732     # PORTME fill in a description of your system's linker (not GNU ld)
11733     case $host_os in
11734     aix3*)
11735       allow_undefined_flag=unsupported
11736       always_export_symbols=yes
11737       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11738       # Note: this linker hardcodes the directories in LIBPATH if there
11739       # are no directories specified by -L.
11740       hardcode_minus_L=yes
11741       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11742         # Neither direct hardcoding nor static linking is supported with a
11743         # broken collect2.
11744         hardcode_direct=unsupported
11745       fi
11746       ;;
11747
11748     aix[4-9]*)
11749       if test ia64 = "$host_cpu"; then
11750         # On IA64, the linker does run time linking by default, so we don't
11751         # have to do anything special.
11752         aix_use_runtimelinking=no
11753         exp_sym_flag='-Bexport'
11754         no_entry_flag=
11755       else
11756         # If we're using GNU nm, then we don't want the "-C" option.
11757         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11758         # Without the "-l" option, or with the "-B" option, AIX nm treats
11759         # weak defined symbols like other global defined symbols, whereas
11760         # GNU nm marks them as "W".
11761         # While the 'weak' keyword is ignored in the Export File, we need
11762         # it in the Import File for the 'aix-soname' feature, so we have
11763         # to replace the "-B" option with "-P" for AIX nm.
11764         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11765           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11766         else
11767           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11768         fi
11769         aix_use_runtimelinking=no
11770
11771         # Test if we are trying to use run time linking or normal
11772         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11773         # have runtime linking enabled, and use it for executables.
11774         # For shared libraries, we enable/disable runtime linking
11775         # depending on the kind of the shared library created -
11776         # when "with_aix_soname,aix_use_runtimelinking" is:
11777         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11778         # "aix,yes"  lib.so          shared, rtl:yes, for executables
11779         #            lib.a           static archive
11780         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
11781         #            lib.a(lib.so.V) shared, rtl:no,  for executables
11782         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11783         #            lib.a(lib.so.V) shared, rtl:no
11784         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11785         #            lib.a           static archive
11786         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11787           for ld_flag in $LDFLAGS; do
11788           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11789             aix_use_runtimelinking=yes
11790             break
11791           fi
11792           done
11793           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11794             # With aix-soname=svr4, we create the lib.so.V shared archives only,
11795             # so we don't have lib.a shared libs to link our executables.
11796             # We have to force runtime linking in this case.
11797             aix_use_runtimelinking=yes
11798             LDFLAGS="$LDFLAGS -Wl,-brtl"
11799           fi
11800           ;;
11801         esac
11802
11803         exp_sym_flag='-bexport'
11804         no_entry_flag='-bnoentry'
11805       fi
11806
11807       # When large executables or shared objects are built, AIX ld can
11808       # have problems creating the table of contents.  If linking a library
11809       # or program results in "error TOC overflow" add -mminimal-toc to
11810       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11811       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11812
11813       archive_cmds=''
11814       hardcode_direct=yes
11815       hardcode_direct_absolute=yes
11816       hardcode_libdir_separator=':'
11817       link_all_deplibs=yes
11818       file_list_spec='$wl-f,'
11819       case $with_aix_soname,$aix_use_runtimelinking in
11820       aix,*) ;; # traditional, no import file
11821       svr4,* | *,yes) # use import file
11822         # The Import File defines what to hardcode.
11823         hardcode_direct=no
11824         hardcode_direct_absolute=no
11825         ;;
11826       esac
11827
11828       if test yes = "$GCC"; then
11829         case $host_os in aix4.[012]|aix4.[012].*)
11830         # We only want to do this on AIX 4.2 and lower, the check
11831         # below for broken collect2 doesn't work under 4.3+
11832           collect2name=`$CC -print-prog-name=collect2`
11833           if test -f "$collect2name" &&
11834            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11835           then
11836           # We have reworked collect2
11837           :
11838           else
11839           # We have old collect2
11840           hardcode_direct=unsupported
11841           # It fails to find uninstalled libraries when the uninstalled
11842           # path is not listed in the libpath.  Setting hardcode_minus_L
11843           # to unsupported forces relinking
11844           hardcode_minus_L=yes
11845           hardcode_libdir_flag_spec='-L$libdir'
11846           hardcode_libdir_separator=
11847           fi
11848           ;;
11849         esac
11850         shared_flag='-shared'
11851         if test yes = "$aix_use_runtimelinking"; then
11852           shared_flag="$shared_flag "'$wl-G'
11853         fi
11854         # Need to ensure runtime linking is disabled for the traditional
11855         # shared library, or the linker may eventually find shared libraries
11856         # /with/ Import File - we do not want to mix them.
11857         shared_flag_aix='-shared'
11858         shared_flag_svr4='-shared $wl-G'
11859       else
11860         # not using gcc
11861         if test ia64 = "$host_cpu"; then
11862         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11863         # chokes on -Wl,-G. The following line is correct:
11864           shared_flag='-G'
11865         else
11866           if test yes = "$aix_use_runtimelinking"; then
11867             shared_flag='$wl-G'
11868           else
11869             shared_flag='$wl-bM:SRE'
11870           fi
11871           shared_flag_aix='$wl-bM:SRE'
11872           shared_flag_svr4='$wl-G'
11873         fi
11874       fi
11875
11876       export_dynamic_flag_spec='$wl-bexpall'
11877       # It seems that -bexpall does not export symbols beginning with
11878       # underscore (_), so it is better to generate a list of symbols to export.
11879       always_export_symbols=yes
11880       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11881         # Warning - without using the other runtime loading flags (-brtl),
11882         # -berok will link without error, but may produce a broken library.
11883         allow_undefined_flag='-berok'
11884         # Determine the default libpath from the value encoded in an
11885         # empty executable.
11886         if test set = "${lt_cv_aix_libpath+set}"; then
11887   aix_libpath=$lt_cv_aix_libpath
11888 else
11889   if ${lt_cv_aix_libpath_+:} false; then :
11890   $as_echo_n "(cached) " >&6
11891 else
11892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h.  */
11894
11895 int
11896 main ()
11897 {
11898
11899   ;
11900   return 0;
11901 }
11902 _ACEOF
11903 if ac_fn_c_try_link "$LINENO"; then :
11904
11905   lt_aix_libpath_sed='
11906       /Import File Strings/,/^$/ {
11907           /^0/ {
11908               s/^0  *\([^ ]*\) *$/\1/
11909               p
11910           }
11911       }'
11912   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11913   # Check for a 64-bit object if we didn't find anything.
11914   if test -z "$lt_cv_aix_libpath_"; then
11915     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11916   fi
11917 fi
11918 rm -f core conftest.err conftest.$ac_objext \
11919     conftest$ac_exeext conftest.$ac_ext
11920   if test -z "$lt_cv_aix_libpath_"; then
11921     lt_cv_aix_libpath_=/usr/lib:/lib
11922   fi
11923
11924 fi
11925
11926   aix_libpath=$lt_cv_aix_libpath_
11927 fi
11928
11929         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11930         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11931       else
11932         if test ia64 = "$host_cpu"; then
11933           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11934           allow_undefined_flag="-z nodefs"
11935           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
11936         else
11937          # Determine the default libpath from the value encoded in an
11938          # empty executable.
11939          if test set = "${lt_cv_aix_libpath+set}"; then
11940   aix_libpath=$lt_cv_aix_libpath
11941 else
11942   if ${lt_cv_aix_libpath_+:} false; then :
11943   $as_echo_n "(cached) " >&6
11944 else
11945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h.  */
11947
11948 int
11949 main ()
11950 {
11951
11952   ;
11953   return 0;
11954 }
11955 _ACEOF
11956 if ac_fn_c_try_link "$LINENO"; then :
11957
11958   lt_aix_libpath_sed='
11959       /Import File Strings/,/^$/ {
11960           /^0/ {
11961               s/^0  *\([^ ]*\) *$/\1/
11962               p
11963           }
11964       }'
11965   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11966   # Check for a 64-bit object if we didn't find anything.
11967   if test -z "$lt_cv_aix_libpath_"; then
11968     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11969   fi
11970 fi
11971 rm -f core conftest.err conftest.$ac_objext \
11972     conftest$ac_exeext conftest.$ac_ext
11973   if test -z "$lt_cv_aix_libpath_"; then
11974     lt_cv_aix_libpath_=/usr/lib:/lib
11975   fi
11976
11977 fi
11978
11979   aix_libpath=$lt_cv_aix_libpath_
11980 fi
11981
11982          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11983           # Warning - without using the other run time loading flags,
11984           # -berok will link without error, but may produce a broken library.
11985           no_undefined_flag=' $wl-bernotok'
11986           allow_undefined_flag=' $wl-berok'
11987           if test yes = "$with_gnu_ld"; then
11988             # We only use this code for GNU lds that support --whole-archive.
11989             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11990           else
11991             # Exported symbols can be pulled into shared objects from archives
11992             whole_archive_flag_spec='$convenience'
11993           fi
11994           archive_cmds_need_lc=yes
11995           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11996           # -brtl affects multiple linker settings, -berok does not and is overridden later
11997           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11998           if test svr4 != "$with_aix_soname"; then
11999             # This is similar to how AIX traditionally builds its shared libraries.
12000             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12001           fi
12002           if test aix != "$with_aix_soname"; then
12003             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12004           else
12005             # used by -dlpreopen to get the symbols
12006             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12007           fi
12008           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12009         fi
12010       fi
12011       ;;
12012
12013     amigaos*)
12014       case $host_cpu in
12015       powerpc)
12016             # see comment about AmigaOS4 .so support
12017             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12018             archive_expsym_cmds=''
12019         ;;
12020       m68k)
12021             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12022             hardcode_libdir_flag_spec='-L$libdir'
12023             hardcode_minus_L=yes
12024         ;;
12025       esac
12026       ;;
12027
12028     bsdi[45]*)
12029       export_dynamic_flag_spec=-rdynamic
12030       ;;
12031
12032     cygwin* | mingw* | pw32* | cegcc*)
12033       # When not using gcc, we currently assume that we are using
12034       # Microsoft Visual C++.
12035       # hardcode_libdir_flag_spec is actually meaningless, as there is
12036       # no search path for DLLs.
12037       case $cc_basename in
12038       cl*)
12039         # Native MSVC
12040         hardcode_libdir_flag_spec=' '
12041         allow_undefined_flag=unsupported
12042         always_export_symbols=yes
12043         file_list_spec='@'
12044         # Tell ltmain to make .lib files, not .a files.
12045         libext=lib
12046         # Tell ltmain to make .dll files, not .so files.
12047         shrext_cmds=.dll
12048         # FIXME: Setting linknames here is a bad hack.
12049         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12050         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12051             cp "$export_symbols" "$output_objdir/$soname.def";
12052             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12053           else
12054             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12055           fi~
12056           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12057           linknames='
12058         # The linker will not automatically build a static lib if we build a DLL.
12059         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12060         enable_shared_with_static_runtimes=yes
12061         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12062         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12063         # Don't use ranlib
12064         old_postinstall_cmds='chmod 644 $oldlib'
12065         postlink_cmds='lt_outputfile="@OUTPUT@"~
12066           lt_tool_outputfile="@TOOL_OUTPUT@"~
12067           case $lt_outputfile in
12068             *.exe|*.EXE) ;;
12069             *)
12070               lt_outputfile=$lt_outputfile.exe
12071               lt_tool_outputfile=$lt_tool_outputfile.exe
12072               ;;
12073           esac~
12074           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12075             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12076             $RM "$lt_outputfile.manifest";
12077           fi'
12078         ;;
12079       *)
12080         # Assume MSVC wrapper
12081         hardcode_libdir_flag_spec=' '
12082         allow_undefined_flag=unsupported
12083         # Tell ltmain to make .lib files, not .a files.
12084         libext=lib
12085         # Tell ltmain to make .dll files, not .so files.
12086         shrext_cmds=.dll
12087         # FIXME: Setting linknames here is a bad hack.
12088         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12089         # The linker will automatically build a .lib file if we build a DLL.
12090         old_archive_from_new_cmds='true'
12091         # FIXME: Should let the user specify the lib program.
12092         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12093         enable_shared_with_static_runtimes=yes
12094         ;;
12095       esac
12096       ;;
12097
12098     darwin* | rhapsody*)
12099
12100
12101   archive_cmds_need_lc=no
12102   hardcode_direct=no
12103   hardcode_automatic=yes
12104   hardcode_shlibpath_var=unsupported
12105   if test yes = "$lt_cv_ld_force_load"; then
12106     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12107
12108   else
12109     whole_archive_flag_spec=''
12110   fi
12111   link_all_deplibs=yes
12112   allow_undefined_flag=$_lt_dar_allow_undefined
12113   case $cc_basename in
12114      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12115      *) _lt_dar_can_shared=$GCC ;;
12116   esac
12117   if test yes = "$_lt_dar_can_shared"; then
12118     output_verbose_link_cmd=func_echo_all
12119     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12120     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12121     archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
12122     module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
12123
12124   else
12125   ld_shlibs=no
12126   fi
12127
12128       ;;
12129
12130     dgux*)
12131       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12132       hardcode_libdir_flag_spec='-L$libdir'
12133       hardcode_shlibpath_var=no
12134       ;;
12135
12136     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12137     # support.  Future versions do this automatically, but an explicit c++rt0.o
12138     # does not break anything, and helps significantly (at the cost of a little
12139     # extra space).
12140     freebsd2.2*)
12141       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12142       hardcode_libdir_flag_spec='-R$libdir'
12143       hardcode_direct=yes
12144       hardcode_shlibpath_var=no
12145       ;;
12146
12147     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12148     freebsd2.*)
12149       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12150       hardcode_direct=yes
12151       hardcode_minus_L=yes
12152       hardcode_shlibpath_var=no
12153       ;;
12154
12155     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12156     freebsd* | dragonfly*)
12157       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12158       hardcode_libdir_flag_spec='-R$libdir'
12159       hardcode_direct=yes
12160       hardcode_shlibpath_var=no
12161       ;;
12162
12163     hpux9*)
12164       if test yes = "$GCC"; then
12165         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12166       else
12167         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12168       fi
12169       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12170       hardcode_libdir_separator=:
12171       hardcode_direct=yes
12172
12173       # hardcode_minus_L: Not really in the search PATH,
12174       # but as the default location of the library.
12175       hardcode_minus_L=yes
12176       export_dynamic_flag_spec='$wl-E'
12177       ;;
12178
12179     hpux10*)
12180       if test yes,no = "$GCC,$with_gnu_ld"; then
12181         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12182       else
12183         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12184       fi
12185       if test no = "$with_gnu_ld"; then
12186         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12187         hardcode_libdir_separator=:
12188         hardcode_direct=yes
12189         hardcode_direct_absolute=yes
12190         export_dynamic_flag_spec='$wl-E'
12191         # hardcode_minus_L: Not really in the search PATH,
12192         # but as the default location of the library.
12193         hardcode_minus_L=yes
12194       fi
12195       ;;
12196
12197     hpux11*)
12198       if test yes,no = "$GCC,$with_gnu_ld"; then
12199         case $host_cpu in
12200         hppa*64*)
12201           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12202           ;;
12203         ia64*)
12204           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12205           ;;
12206         *)
12207           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12208           ;;
12209         esac
12210       else
12211         case $host_cpu in
12212         hppa*64*)
12213           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12214           ;;
12215         ia64*)
12216           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12217           ;;
12218         *)
12219
12220           # Older versions of the 11.00 compiler do not understand -b yet
12221           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12222           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12223 $as_echo_n "checking if $CC understands -b... " >&6; }
12224 if ${lt_cv_prog_compiler__b+:} false; then :
12225   $as_echo_n "(cached) " >&6
12226 else
12227   lt_cv_prog_compiler__b=no
12228    save_LDFLAGS=$LDFLAGS
12229    LDFLAGS="$LDFLAGS -b"
12230    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12231    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12232      # The linker can only warn and ignore the option if not recognized
12233      # So say no if there are warnings
12234      if test -s conftest.err; then
12235        # Append any errors to the config.log.
12236        cat conftest.err 1>&5
12237        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12238        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12239        if diff conftest.exp conftest.er2 >/dev/null; then
12240          lt_cv_prog_compiler__b=yes
12241        fi
12242      else
12243        lt_cv_prog_compiler__b=yes
12244      fi
12245    fi
12246    $RM -r conftest*
12247    LDFLAGS=$save_LDFLAGS
12248
12249 fi
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12251 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12252
12253 if test yes = "$lt_cv_prog_compiler__b"; then
12254     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12255 else
12256     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12257 fi
12258
12259           ;;
12260         esac
12261       fi
12262       if test no = "$with_gnu_ld"; then
12263         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12264         hardcode_libdir_separator=:
12265
12266         case $host_cpu in
12267         hppa*64*|ia64*)
12268           hardcode_direct=no
12269           hardcode_shlibpath_var=no
12270           ;;
12271         *)
12272           hardcode_direct=yes
12273           hardcode_direct_absolute=yes
12274           export_dynamic_flag_spec='$wl-E'
12275
12276           # hardcode_minus_L: Not really in the search PATH,
12277           # but as the default location of the library.
12278           hardcode_minus_L=yes
12279           ;;
12280         esac
12281       fi
12282       ;;
12283
12284     irix5* | irix6* | nonstopux*)
12285       if test yes = "$GCC"; then
12286         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12287         # Try to use the -exported_symbol ld option, if it does not
12288         # work, assume that -exports_file does not work either and
12289         # implicitly export all symbols.
12290         # This should be the same for all languages, so no per-tag cache variable.
12291         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12292 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12293 if ${lt_cv_irix_exported_symbol+:} false; then :
12294   $as_echo_n "(cached) " >&6
12295 else
12296   save_LDFLAGS=$LDFLAGS
12297            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12298            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h.  */
12300 int foo (void) { return 0; }
12301 _ACEOF
12302 if ac_fn_c_try_link "$LINENO"; then :
12303   lt_cv_irix_exported_symbol=yes
12304 else
12305   lt_cv_irix_exported_symbol=no
12306 fi
12307 rm -f core conftest.err conftest.$ac_objext \
12308     conftest$ac_exeext conftest.$ac_ext
12309            LDFLAGS=$save_LDFLAGS
12310 fi
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12312 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12313         if test yes = "$lt_cv_irix_exported_symbol"; then
12314           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
12315         fi
12316       else
12317         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12318         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
12319       fi
12320       archive_cmds_need_lc='no'
12321       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12322       hardcode_libdir_separator=:
12323       inherit_rpath=yes
12324       link_all_deplibs=yes
12325       ;;
12326
12327     linux*)
12328       case $cc_basename in
12329       tcc*)
12330         # Fabrice Bellard et al's Tiny C Compiler
12331         ld_shlibs=yes
12332         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12333         ;;
12334       esac
12335       ;;
12336
12337     netbsd*)
12338       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12339         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12340       else
12341         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12342       fi
12343       hardcode_libdir_flag_spec='-R$libdir'
12344       hardcode_direct=yes
12345       hardcode_shlibpath_var=no
12346       ;;
12347
12348     newsos6)
12349       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12350       hardcode_direct=yes
12351       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12352       hardcode_libdir_separator=:
12353       hardcode_shlibpath_var=no
12354       ;;
12355
12356     *nto* | *qnx*)
12357       ;;
12358
12359     openbsd* | bitrig*)
12360       if test -f /usr/libexec/ld.so; then
12361         hardcode_direct=yes
12362         hardcode_shlibpath_var=no
12363         hardcode_direct_absolute=yes
12364         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12365           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12366           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12367           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12368           export_dynamic_flag_spec='$wl-E'
12369         else
12370           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12371           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12372         fi
12373       else
12374         ld_shlibs=no
12375       fi
12376       ;;
12377
12378     os2*)
12379       hardcode_libdir_flag_spec='-L$libdir'
12380       hardcode_minus_L=yes
12381       allow_undefined_flag=unsupported
12382       shrext_cmds=.dll
12383       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12384         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12385         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12386         $ECHO EXPORTS >> $output_objdir/$libname.def~
12387         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12388         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12389         emximp -o $lib $output_objdir/$libname.def'
12390       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12391         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12392         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12393         $ECHO EXPORTS >> $output_objdir/$libname.def~
12394         prefix_cmds="$SED"~
12395         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12396           prefix_cmds="$prefix_cmds -e 1d";
12397         fi~
12398         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12399         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12400         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12401         emximp -o $lib $output_objdir/$libname.def'
12402       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12403       enable_shared_with_static_runtimes=yes
12404       ;;
12405
12406     osf3*)
12407       if test yes = "$GCC"; then
12408         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12409         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12410       else
12411         allow_undefined_flag=' -expect_unresolved \*'
12412         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12413       fi
12414       archive_cmds_need_lc='no'
12415       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12416       hardcode_libdir_separator=:
12417       ;;
12418
12419     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12420       if test yes = "$GCC"; then
12421         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12422         archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12423         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12424       else
12425         allow_undefined_flag=' -expect_unresolved \*'
12426         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12427         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12428           $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
12429
12430         # Both c and cxx compiler support -rpath directly
12431         hardcode_libdir_flag_spec='-rpath $libdir'
12432       fi
12433       archive_cmds_need_lc='no'
12434       hardcode_libdir_separator=:
12435       ;;
12436
12437     solaris*)
12438       no_undefined_flag=' -z defs'
12439       if test yes = "$GCC"; then
12440         wlarc='$wl'
12441         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12442         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12443           $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12444       else
12445         case `$CC -V 2>&1` in
12446         *"Compilers 5.0"*)
12447           wlarc=''
12448           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12449           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12450             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12451           ;;
12452         *)
12453           wlarc='$wl'
12454           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12455           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12456             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12457           ;;
12458         esac
12459       fi
12460       hardcode_libdir_flag_spec='-R$libdir'
12461       hardcode_shlibpath_var=no
12462       case $host_os in
12463       solaris2.[0-5] | solaris2.[0-5].*) ;;
12464       *)
12465         # The compiler driver will combine and reorder linker options,
12466         # but understands '-z linker_flag'.  GCC discards it without '$wl',
12467         # but is careful enough not to reorder.
12468         # Supported since Solaris 2.6 (maybe 2.5.1?)
12469         if test yes = "$GCC"; then
12470           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12471         else
12472           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12473         fi
12474         ;;
12475       esac
12476       link_all_deplibs=yes
12477       ;;
12478
12479     sunos4*)
12480       if test sequent = "$host_vendor"; then
12481         # Use $CC to link under sequent, because it throws in some extra .o
12482         # files that make .init and .fini sections work.
12483         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12484       else
12485         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12486       fi
12487       hardcode_libdir_flag_spec='-L$libdir'
12488       hardcode_direct=yes
12489       hardcode_minus_L=yes
12490       hardcode_shlibpath_var=no
12491       ;;
12492
12493     sysv4)
12494       case $host_vendor in
12495         sni)
12496           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12497           hardcode_direct=yes # is this really true???
12498         ;;
12499         siemens)
12500           ## LD is ld it makes a PLAMLIB
12501           ## CC just makes a GrossModule.
12502           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12503           reload_cmds='$CC -r -o $output$reload_objs'
12504           hardcode_direct=no
12505         ;;
12506         motorola)
12507           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12508           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12509         ;;
12510       esac
12511       runpath_var='LD_RUN_PATH'
12512       hardcode_shlibpath_var=no
12513       ;;
12514
12515     sysv4.3*)
12516       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12517       hardcode_shlibpath_var=no
12518       export_dynamic_flag_spec='-Bexport'
12519       ;;
12520
12521     sysv4*MP*)
12522       if test -d /usr/nec; then
12523         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12524         hardcode_shlibpath_var=no
12525         runpath_var=LD_RUN_PATH
12526         hardcode_runpath_var=yes
12527         ld_shlibs=yes
12528       fi
12529       ;;
12530
12531     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12532       no_undefined_flag='$wl-z,text'
12533       archive_cmds_need_lc=no
12534       hardcode_shlibpath_var=no
12535       runpath_var='LD_RUN_PATH'
12536
12537       if test yes = "$GCC"; then
12538         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12539         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12540       else
12541         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12542         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12543       fi
12544       ;;
12545
12546     sysv5* | sco3.2v5* | sco5v6*)
12547       # Note: We CANNOT use -z defs as we might desire, because we do not
12548       # link with -lc, and that would cause any symbols used from libc to
12549       # always be unresolved, which means just about no library would
12550       # ever link correctly.  If we're not using GNU ld we use -z text
12551       # though, which does catch some bad symbols but isn't as heavy-handed
12552       # as -z defs.
12553       no_undefined_flag='$wl-z,text'
12554       allow_undefined_flag='$wl-z,nodefs'
12555       archive_cmds_need_lc=no
12556       hardcode_shlibpath_var=no
12557       hardcode_libdir_flag_spec='$wl-R,$libdir'
12558       hardcode_libdir_separator=':'
12559       link_all_deplibs=yes
12560       export_dynamic_flag_spec='$wl-Bexport'
12561       runpath_var='LD_RUN_PATH'
12562
12563       if test yes = "$GCC"; then
12564         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12565         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12566       else
12567         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12568         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12569       fi
12570       ;;
12571
12572     uts4*)
12573       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12574       hardcode_libdir_flag_spec='-L$libdir'
12575       hardcode_shlibpath_var=no
12576       ;;
12577
12578     *)
12579       ld_shlibs=no
12580       ;;
12581     esac
12582
12583     if test sni = "$host_vendor"; then
12584       case $host in
12585       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12586         export_dynamic_flag_spec='$wl-Blargedynsym'
12587         ;;
12588       esac
12589     fi
12590   fi
12591
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12593 $as_echo "$ld_shlibs" >&6; }
12594 test no = "$ld_shlibs" && can_build_shared=no
12595
12596 with_gnu_ld=$with_gnu_ld
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612 #
12613 # Do we need to explicitly link libc?
12614 #
12615 case "x$archive_cmds_need_lc" in
12616 x|xyes)
12617   # Assume -lc should be added
12618   archive_cmds_need_lc=yes
12619
12620   if test yes,yes = "$GCC,$enable_shared"; then
12621     case $archive_cmds in
12622     *'~'*)
12623       # FIXME: we may have to deal with multi-command sequences.
12624       ;;
12625     '$CC '*)
12626       # Test whether the compiler implicitly links with -lc since on some
12627       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12628       # to ld, don't add -lc before -lgcc.
12629       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12630 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12631 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12632   $as_echo_n "(cached) " >&6
12633 else
12634   $RM conftest*
12635         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12636
12637         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12638   (eval $ac_compile) 2>&5
12639   ac_status=$?
12640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12641   test $ac_status = 0; } 2>conftest.err; then
12642           soname=conftest
12643           lib=conftest
12644           libobjs=conftest.$ac_objext
12645           deplibs=
12646           wl=$lt_prog_compiler_wl
12647           pic_flag=$lt_prog_compiler_pic
12648           compiler_flags=-v
12649           linker_flags=-v
12650           verstring=
12651           output_objdir=.
12652           libname=conftest
12653           lt_save_allow_undefined_flag=$allow_undefined_flag
12654           allow_undefined_flag=
12655           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12656   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12657   ac_status=$?
12658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12659   test $ac_status = 0; }
12660           then
12661             lt_cv_archive_cmds_need_lc=no
12662           else
12663             lt_cv_archive_cmds_need_lc=yes
12664           fi
12665           allow_undefined_flag=$lt_save_allow_undefined_flag
12666         else
12667           cat conftest.err 1>&5
12668         fi
12669         $RM conftest*
12670
12671 fi
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12673 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12674       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12675       ;;
12676     esac
12677   fi
12678   ;;
12679 esac
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12833 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12834
12835 if test yes = "$GCC"; then
12836   case $host_os in
12837     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12838     *) lt_awk_arg='/^libraries:/' ;;
12839   esac
12840   case $host_os in
12841     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12842     *) lt_sed_strip_eq='s|=/|/|g' ;;
12843   esac
12844   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12845   case $lt_search_path_spec in
12846   *\;*)
12847     # if the path contains ";" then we assume it to be the separator
12848     # otherwise default to the standard path separator (i.e. ":") - it is
12849     # assumed that no part of a normal pathname contains ";" but that should
12850     # okay in the real world where ";" in dirpaths is itself problematic.
12851     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12852     ;;
12853   *)
12854     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12855     ;;
12856   esac
12857   # Ok, now we have the path, separated by spaces, we can step through it
12858   # and add multilib dir if necessary...
12859   lt_tmp_lt_search_path_spec=
12860   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12861   # ...but if some path component already ends with the multilib dir we assume
12862   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12863   case "$lt_multi_os_dir; $lt_search_path_spec " in
12864   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12865     lt_multi_os_dir=
12866     ;;
12867   esac
12868   for lt_sys_path in $lt_search_path_spec; do
12869     if test -d "$lt_sys_path$lt_multi_os_dir"; then
12870       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12871     elif test -n "$lt_multi_os_dir"; then
12872       test -d "$lt_sys_path" && \
12873         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12874     fi
12875   done
12876   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12877 BEGIN {RS = " "; FS = "/|\n";} {
12878   lt_foo = "";
12879   lt_count = 0;
12880   for (lt_i = NF; lt_i > 0; lt_i--) {
12881     if ($lt_i != "" && $lt_i != ".") {
12882       if ($lt_i == "..") {
12883         lt_count++;
12884       } else {
12885         if (lt_count == 0) {
12886           lt_foo = "/" $lt_i lt_foo;
12887         } else {
12888           lt_count--;
12889         }
12890       }
12891     }
12892   }
12893   if (lt_foo != "") { lt_freq[lt_foo]++; }
12894   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12895 }'`
12896   # AWK program above erroneously prepends '/' to C:/dos/paths
12897   # for these hosts.
12898   case $host_os in
12899     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12900       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12901   esac
12902   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12903 else
12904   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12905 fi
12906 library_names_spec=
12907 libname_spec='lib$name'
12908 soname_spec=
12909 shrext_cmds=.so
12910 postinstall_cmds=
12911 postuninstall_cmds=
12912 finish_cmds=
12913 finish_eval=
12914 shlibpath_var=
12915 shlibpath_overrides_runpath=unknown
12916 version_type=none
12917 dynamic_linker="$host_os ld.so"
12918 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12919 need_lib_prefix=unknown
12920 hardcode_into_libs=no
12921
12922 # when you set need_version to no, make sure it does not cause -set_version
12923 # flags to be left without arguments
12924 need_version=unknown
12925
12926
12927
12928 case $host_os in
12929 aix3*)
12930   version_type=linux # correct to gnu/linux during the next big refactor
12931   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12932   shlibpath_var=LIBPATH
12933
12934   # AIX 3 has no versioning support, so we append a major version to the name.
12935   soname_spec='$libname$release$shared_ext$major'
12936   ;;
12937
12938 aix[4-9]*)
12939   version_type=linux # correct to gnu/linux during the next big refactor
12940   need_lib_prefix=no
12941   need_version=no
12942   hardcode_into_libs=yes
12943   if test ia64 = "$host_cpu"; then
12944     # AIX 5 supports IA64
12945     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12946     shlibpath_var=LD_LIBRARY_PATH
12947   else
12948     # With GCC up to 2.95.x, collect2 would create an import file
12949     # for dependence libraries.  The import file would start with
12950     # the line '#! .'.  This would cause the generated library to
12951     # depend on '.', always an invalid library.  This was fixed in
12952     # development snapshots of GCC prior to 3.0.
12953     case $host_os in
12954       aix4 | aix4.[01] | aix4.[01].*)
12955       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12956            echo ' yes '
12957            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12958         :
12959       else
12960         can_build_shared=no
12961       fi
12962       ;;
12963     esac
12964     # Using Import Files as archive members, it is possible to support
12965     # filename-based versioning of shared library archives on AIX. While
12966     # this would work for both with and without runtime linking, it will
12967     # prevent static linking of such archives. So we do filename-based
12968     # shared library versioning with .so extension only, which is used
12969     # when both runtime linking and shared linking is enabled.
12970     # Unfortunately, runtime linking may impact performance, so we do
12971     # not want this to be the default eventually. Also, we use the
12972     # versioned .so libs for executables only if there is the -brtl
12973     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12974     # To allow for filename-based versioning support, we need to create
12975     # libNAME.so.V as an archive file, containing:
12976     # *) an Import File, referring to the versioned filename of the
12977     #    archive as well as the shared archive member, telling the
12978     #    bitwidth (32 or 64) of that shared object, and providing the
12979     #    list of exported symbols of that shared object, eventually
12980     #    decorated with the 'weak' keyword
12981     # *) the shared object with the F_LOADONLY flag set, to really avoid
12982     #    it being seen by the linker.
12983     # At run time we better use the real file rather than another symlink,
12984     # but for link time we create the symlink libNAME.so -> libNAME.so.V
12985
12986     case $with_aix_soname,$aix_use_runtimelinking in
12987     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12988     # soname into executable. Probably we can add versioning support to
12989     # collect2, so additional links can be useful in future.
12990     aix,yes) # traditional libtool
12991       dynamic_linker='AIX unversionable lib.so'
12992       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12993       # instead of lib<name>.a to let people know that these are not
12994       # typical AIX shared libraries.
12995       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12996       ;;
12997     aix,no) # traditional AIX only
12998       dynamic_linker='AIX lib.a(lib.so.V)'
12999       # We preserve .a as extension for shared libraries through AIX4.2
13000       # and later when we are not doing run time linking.
13001       library_names_spec='$libname$release.a $libname.a'
13002       soname_spec='$libname$release$shared_ext$major'
13003       ;;
13004     svr4,*) # full svr4 only
13005       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13006       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13007       # We do not specify a path in Import Files, so LIBPATH fires.
13008       shlibpath_overrides_runpath=yes
13009       ;;
13010     *,yes) # both, prefer svr4
13011       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13012       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13013       # unpreferred sharedlib libNAME.a needs extra handling
13014       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13015       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13016       # We do not specify a path in Import Files, so LIBPATH fires.
13017       shlibpath_overrides_runpath=yes
13018       ;;
13019     *,no) # both, prefer aix
13020       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13021       library_names_spec='$libname$release.a $libname.a'
13022       soname_spec='$libname$release$shared_ext$major'
13023       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13024       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13025       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13026       ;;
13027     esac
13028     shlibpath_var=LIBPATH
13029   fi
13030   ;;
13031
13032 amigaos*)
13033   case $host_cpu in
13034   powerpc)
13035     # Since July 2007 AmigaOS4 officially supports .so libraries.
13036     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13037     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13038     ;;
13039   m68k)
13040     library_names_spec='$libname.ixlibrary $libname.a'
13041     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13042     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13043     ;;
13044   esac
13045   ;;
13046
13047 beos*)
13048   library_names_spec='$libname$shared_ext'
13049   dynamic_linker="$host_os ld.so"
13050   shlibpath_var=LIBRARY_PATH
13051   ;;
13052
13053 bsdi[45]*)
13054   version_type=linux # correct to gnu/linux during the next big refactor
13055   need_version=no
13056   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13057   soname_spec='$libname$release$shared_ext$major'
13058   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13059   shlibpath_var=LD_LIBRARY_PATH
13060   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13061   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13062   # the default ld.so.conf also contains /usr/contrib/lib and
13063   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13064   # libtool to hard-code these into programs
13065   ;;
13066
13067 cygwin* | mingw* | pw32* | cegcc*)
13068   version_type=windows
13069   shrext_cmds=.dll
13070   need_version=no
13071   need_lib_prefix=no
13072
13073   case $GCC,$cc_basename in
13074   yes,*)
13075     # gcc
13076     library_names_spec='$libname.dll.a'
13077     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13078     postinstall_cmds='base_file=`basename \$file`~
13079       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13080       dldir=$destdir/`dirname \$dlpath`~
13081       test -d \$dldir || mkdir -p \$dldir~
13082       $install_prog $dir/$dlname \$dldir/$dlname~
13083       chmod a+x \$dldir/$dlname~
13084       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13085         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13086       fi'
13087     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13088       dlpath=$dir/\$dldll~
13089        $RM \$dlpath'
13090     shlibpath_overrides_runpath=yes
13091
13092     case $host_os in
13093     cygwin*)
13094       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13095       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13096
13097       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13098       ;;
13099     mingw* | cegcc*)
13100       # MinGW DLLs use traditional 'lib' prefix
13101       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13102       ;;
13103     pw32*)
13104       # pw32 DLLs use 'pw' prefix rather than 'lib'
13105       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13106       ;;
13107     esac
13108     dynamic_linker='Win32 ld.exe'
13109     ;;
13110
13111   *,cl*)
13112     # Native MSVC
13113     libname_spec='$name'
13114     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13115     library_names_spec='$libname.dll.lib'
13116
13117     case $build_os in
13118     mingw*)
13119       sys_lib_search_path_spec=
13120       lt_save_ifs=$IFS
13121       IFS=';'
13122       for lt_path in $LIB
13123       do
13124         IFS=$lt_save_ifs
13125         # Let DOS variable expansion print the short 8.3 style file name.
13126         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13127         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13128       done
13129       IFS=$lt_save_ifs
13130       # Convert to MSYS style.
13131       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13132       ;;
13133     cygwin*)
13134       # Convert to unix form, then to dos form, then back to unix form
13135       # but this time dos style (no spaces!) so that the unix form looks
13136       # like /cygdrive/c/PROGRA~1:/cygdr...
13137       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13138       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13139       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13140       ;;
13141     *)
13142       sys_lib_search_path_spec=$LIB
13143       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13144         # It is most probably a Windows format PATH.
13145         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13146       else
13147         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13148       fi
13149       # FIXME: find the short name or the path components, as spaces are
13150       # common. (e.g. "Program Files" -> "PROGRA~1")
13151       ;;
13152     esac
13153
13154     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13155     postinstall_cmds='base_file=`basename \$file`~
13156       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13157       dldir=$destdir/`dirname \$dlpath`~
13158       test -d \$dldir || mkdir -p \$dldir~
13159       $install_prog $dir/$dlname \$dldir/$dlname'
13160     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13161       dlpath=$dir/\$dldll~
13162        $RM \$dlpath'
13163     shlibpath_overrides_runpath=yes
13164     dynamic_linker='Win32 link.exe'
13165     ;;
13166
13167   *)
13168     # Assume MSVC wrapper
13169     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13170     dynamic_linker='Win32 ld.exe'
13171     ;;
13172   esac
13173   # FIXME: first we should search . and the directory the executable is in
13174   shlibpath_var=PATH
13175   ;;
13176
13177 darwin* | rhapsody*)
13178   dynamic_linker="$host_os dyld"
13179   version_type=darwin
13180   need_lib_prefix=no
13181   need_version=no
13182   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13183   soname_spec='$libname$release$major$shared_ext'
13184   shlibpath_overrides_runpath=yes
13185   shlibpath_var=DYLD_LIBRARY_PATH
13186   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13187
13188   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13189   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13190   ;;
13191
13192 dgux*)
13193   version_type=linux # correct to gnu/linux during the next big refactor
13194   need_lib_prefix=no
13195   need_version=no
13196   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13197   soname_spec='$libname$release$shared_ext$major'
13198   shlibpath_var=LD_LIBRARY_PATH
13199   ;;
13200
13201 freebsd* | dragonfly*)
13202   # DragonFly does not have aout.  When/if they implement a new
13203   # versioning mechanism, adjust this.
13204   if test -x /usr/bin/objformat; then
13205     objformat=`/usr/bin/objformat`
13206   else
13207     case $host_os in
13208     freebsd[23].*) objformat=aout ;;
13209     *) objformat=elf ;;
13210     esac
13211   fi
13212   version_type=freebsd-$objformat
13213   case $version_type in
13214     freebsd-elf*)
13215       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13216       soname_spec='$libname$release$shared_ext$major'
13217       need_version=no
13218       need_lib_prefix=no
13219       ;;
13220     freebsd-*)
13221       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13222       need_version=yes
13223       ;;
13224   esac
13225   shlibpath_var=LD_LIBRARY_PATH
13226   case $host_os in
13227   freebsd2.*)
13228     shlibpath_overrides_runpath=yes
13229     ;;
13230   freebsd3.[01]* | freebsdelf3.[01]*)
13231     shlibpath_overrides_runpath=yes
13232     hardcode_into_libs=yes
13233     ;;
13234   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13235   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13236     shlibpath_overrides_runpath=no
13237     hardcode_into_libs=yes
13238     ;;
13239   *) # from 4.6 on, and DragonFly
13240     shlibpath_overrides_runpath=yes
13241     hardcode_into_libs=yes
13242     ;;
13243   esac
13244   ;;
13245
13246 haiku*)
13247   version_type=linux # correct to gnu/linux during the next big refactor
13248   need_lib_prefix=no
13249   need_version=no
13250   dynamic_linker="$host_os runtime_loader"
13251   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13252   soname_spec='$libname$release$shared_ext$major'
13253   shlibpath_var=LIBRARY_PATH
13254   shlibpath_overrides_runpath=no
13255   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13256   hardcode_into_libs=yes
13257   ;;
13258
13259 hpux9* | hpux10* | hpux11*)
13260   # Give a soname corresponding to the major version so that dld.sl refuses to
13261   # link against other versions.
13262   version_type=sunos
13263   need_lib_prefix=no
13264   need_version=no
13265   case $host_cpu in
13266   ia64*)
13267     shrext_cmds='.so'
13268     hardcode_into_libs=yes
13269     dynamic_linker="$host_os dld.so"
13270     shlibpath_var=LD_LIBRARY_PATH
13271     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13272     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13273     soname_spec='$libname$release$shared_ext$major'
13274     if test 32 = "$HPUX_IA64_MODE"; then
13275       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13276       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13277     else
13278       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13279       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13280     fi
13281     ;;
13282   hppa*64*)
13283     shrext_cmds='.sl'
13284     hardcode_into_libs=yes
13285     dynamic_linker="$host_os dld.sl"
13286     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13287     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13288     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13289     soname_spec='$libname$release$shared_ext$major'
13290     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13291     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13292     ;;
13293   *)
13294     shrext_cmds='.sl'
13295     dynamic_linker="$host_os dld.sl"
13296     shlibpath_var=SHLIB_PATH
13297     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13298     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13299     soname_spec='$libname$release$shared_ext$major'
13300     ;;
13301   esac
13302   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13303   postinstall_cmds='chmod 555 $lib'
13304   # or fails outright, so override atomically:
13305   install_override_mode=555
13306   ;;
13307
13308 interix[3-9]*)
13309   version_type=linux # correct to gnu/linux during the next big refactor
13310   need_lib_prefix=no
13311   need_version=no
13312   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13313   soname_spec='$libname$release$shared_ext$major'
13314   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13315   shlibpath_var=LD_LIBRARY_PATH
13316   shlibpath_overrides_runpath=no
13317   hardcode_into_libs=yes
13318   ;;
13319
13320 irix5* | irix6* | nonstopux*)
13321   case $host_os in
13322     nonstopux*) version_type=nonstopux ;;
13323     *)
13324         if test yes = "$lt_cv_prog_gnu_ld"; then
13325                 version_type=linux # correct to gnu/linux during the next big refactor
13326         else
13327                 version_type=irix
13328         fi ;;
13329   esac
13330   need_lib_prefix=no
13331   need_version=no
13332   soname_spec='$libname$release$shared_ext$major'
13333   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13334   case $host_os in
13335   irix5* | nonstopux*)
13336     libsuff= shlibsuff=
13337     ;;
13338   *)
13339     case $LD in # libtool.m4 will add one of these switches to LD
13340     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13341       libsuff= shlibsuff= libmagic=32-bit;;
13342     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13343       libsuff=32 shlibsuff=N32 libmagic=N32;;
13344     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13345       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13346     *) libsuff= shlibsuff= libmagic=never-match;;
13347     esac
13348     ;;
13349   esac
13350   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13351   shlibpath_overrides_runpath=no
13352   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13353   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13354   hardcode_into_libs=yes
13355   ;;
13356
13357 # No shared lib support for Linux oldld, aout, or coff.
13358 linux*oldld* | linux*aout* | linux*coff*)
13359   dynamic_linker=no
13360   ;;
13361
13362 linux*android*)
13363   version_type=none # Android doesn't support versioned libraries.
13364   need_lib_prefix=no
13365   need_version=no
13366   library_names_spec='$libname$release$shared_ext'
13367   soname_spec='$libname$release$shared_ext'
13368   finish_cmds=
13369   shlibpath_var=LD_LIBRARY_PATH
13370   shlibpath_overrides_runpath=yes
13371
13372   # This implies no fast_install, which is unacceptable.
13373   # Some rework will be needed to allow for fast_install
13374   # before this can be enabled.
13375   hardcode_into_libs=yes
13376
13377   dynamic_linker='Android linker'
13378   # Don't embed -rpath directories since the linker doesn't support them.
13379   hardcode_libdir_flag_spec='-L$libdir'
13380   ;;
13381
13382 # This must be glibc/ELF.
13383 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13384   version_type=linux # correct to gnu/linux during the next big refactor
13385   need_lib_prefix=no
13386   need_version=no
13387   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13388   soname_spec='$libname$release$shared_ext$major'
13389   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13390   shlibpath_var=LD_LIBRARY_PATH
13391   shlibpath_overrides_runpath=no
13392
13393   # Some binutils ld are patched to set DT_RUNPATH
13394   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13395   $as_echo_n "(cached) " >&6
13396 else
13397   lt_cv_shlibpath_overrides_runpath=no
13398     save_LDFLAGS=$LDFLAGS
13399     save_libdir=$libdir
13400     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13401          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13402     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403 /* end confdefs.h.  */
13404
13405 int
13406 main ()
13407 {
13408
13409   ;
13410   return 0;
13411 }
13412 _ACEOF
13413 if ac_fn_c_try_link "$LINENO"; then :
13414   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13415   lt_cv_shlibpath_overrides_runpath=yes
13416 fi
13417 fi
13418 rm -f core conftest.err conftest.$ac_objext \
13419     conftest$ac_exeext conftest.$ac_ext
13420     LDFLAGS=$save_LDFLAGS
13421     libdir=$save_libdir
13422
13423 fi
13424
13425   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13426
13427   # This implies no fast_install, which is unacceptable.
13428   # Some rework will be needed to allow for fast_install
13429   # before this can be enabled.
13430   hardcode_into_libs=yes
13431
13432   # Add ABI-specific directories to the system library path.
13433   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13434
13435   # Ideally, we could use ldconfig to report *all* directores which are
13436   # searched for libraries, however this is still not possible.  Aside from not
13437   # being certain /sbin/ldconfig is available, command
13438   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13439   # even though it is searched at run-time.  Try to do the best guess by
13440   # appending ld.so.conf contents (and includes) to the search path.
13441   if test -f /etc/ld.so.conf; then
13442     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
13443     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13444   fi
13445
13446   # We used to test for /lib/ld.so.1 and disable shared libraries on
13447   # powerpc, because MkLinux only supported shared libraries with the
13448   # GNU dynamic linker.  Since this was broken with cross compilers,
13449   # most powerpc-linux boxes support dynamic linking these days and
13450   # people can always --disable-shared, the test was removed, and we
13451   # assume the GNU/Linux dynamic linker is in use.
13452   dynamic_linker='GNU/Linux ld.so'
13453   ;;
13454
13455 netbsd*)
13456   version_type=sunos
13457   need_lib_prefix=no
13458   need_version=no
13459   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13460     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13461     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13462     dynamic_linker='NetBSD (a.out) ld.so'
13463   else
13464     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13465     soname_spec='$libname$release$shared_ext$major'
13466     dynamic_linker='NetBSD ld.elf_so'
13467   fi
13468   shlibpath_var=LD_LIBRARY_PATH
13469   shlibpath_overrides_runpath=yes
13470   hardcode_into_libs=yes
13471   ;;
13472
13473 newsos6)
13474   version_type=linux # correct to gnu/linux during the next big refactor
13475   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13476   shlibpath_var=LD_LIBRARY_PATH
13477   shlibpath_overrides_runpath=yes
13478   ;;
13479
13480 *nto* | *qnx*)
13481   version_type=qnx
13482   need_lib_prefix=no
13483   need_version=no
13484   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13485   soname_spec='$libname$release$shared_ext$major'
13486   shlibpath_var=LD_LIBRARY_PATH
13487   shlibpath_overrides_runpath=no
13488   hardcode_into_libs=yes
13489   dynamic_linker='ldqnx.so'
13490   ;;
13491
13492 openbsd* | bitrig*)
13493   version_type=sunos
13494   sys_lib_dlsearch_path_spec=/usr/lib
13495   need_lib_prefix=no
13496   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13497     need_version=no
13498   else
13499     need_version=yes
13500   fi
13501   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13502   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13503   shlibpath_var=LD_LIBRARY_PATH
13504   shlibpath_overrides_runpath=yes
13505   ;;
13506
13507 os2*)
13508   libname_spec='$name'
13509   version_type=windows
13510   shrext_cmds=.dll
13511   need_version=no
13512   need_lib_prefix=no
13513   # OS/2 can only load a DLL with a base name of 8 characters or less.
13514   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13515     v=$($ECHO $release$versuffix | tr -d .-);
13516     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13517     $ECHO $n$v`$shared_ext'
13518   library_names_spec='${libname}_dll.$libext'
13519   dynamic_linker='OS/2 ld.exe'
13520   shlibpath_var=BEGINLIBPATH
13521   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13522   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13523   postinstall_cmds='base_file=`basename \$file`~
13524     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13525     dldir=$destdir/`dirname \$dlpath`~
13526     test -d \$dldir || mkdir -p \$dldir~
13527     $install_prog $dir/$dlname \$dldir/$dlname~
13528     chmod a+x \$dldir/$dlname~
13529     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13530       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13531     fi'
13532   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13533     dlpath=$dir/\$dldll~
13534     $RM \$dlpath'
13535   ;;
13536
13537 osf3* | osf4* | osf5*)
13538   version_type=osf
13539   need_lib_prefix=no
13540   need_version=no
13541   soname_spec='$libname$release$shared_ext$major'
13542   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13543   shlibpath_var=LD_LIBRARY_PATH
13544   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13545   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13546   ;;
13547
13548 rdos*)
13549   dynamic_linker=no
13550   ;;
13551
13552 solaris*)
13553   version_type=linux # correct to gnu/linux during the next big refactor
13554   need_lib_prefix=no
13555   need_version=no
13556   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13557   soname_spec='$libname$release$shared_ext$major'
13558   shlibpath_var=LD_LIBRARY_PATH
13559   shlibpath_overrides_runpath=yes
13560   hardcode_into_libs=yes
13561   # ldd complains unless libraries are executable
13562   postinstall_cmds='chmod +x $lib'
13563   ;;
13564
13565 sunos4*)
13566   version_type=sunos
13567   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13568   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13569   shlibpath_var=LD_LIBRARY_PATH
13570   shlibpath_overrides_runpath=yes
13571   if test yes = "$with_gnu_ld"; then
13572     need_lib_prefix=no
13573   fi
13574   need_version=yes
13575   ;;
13576
13577 sysv4 | sysv4.3*)
13578   version_type=linux # correct to gnu/linux during the next big refactor
13579   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13580   soname_spec='$libname$release$shared_ext$major'
13581   shlibpath_var=LD_LIBRARY_PATH
13582   case $host_vendor in
13583     sni)
13584       shlibpath_overrides_runpath=no
13585       need_lib_prefix=no
13586       runpath_var=LD_RUN_PATH
13587       ;;
13588     siemens)
13589       need_lib_prefix=no
13590       ;;
13591     motorola)
13592       need_lib_prefix=no
13593       need_version=no
13594       shlibpath_overrides_runpath=no
13595       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13596       ;;
13597   esac
13598   ;;
13599
13600 sysv4*MP*)
13601   if test -d /usr/nec; then
13602     version_type=linux # correct to gnu/linux during the next big refactor
13603     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13604     soname_spec='$libname$shared_ext.$major'
13605     shlibpath_var=LD_LIBRARY_PATH
13606   fi
13607   ;;
13608
13609 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13610   version_type=sco
13611   need_lib_prefix=no
13612   need_version=no
13613   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13614   soname_spec='$libname$release$shared_ext$major'
13615   shlibpath_var=LD_LIBRARY_PATH
13616   shlibpath_overrides_runpath=yes
13617   hardcode_into_libs=yes
13618   if test yes = "$with_gnu_ld"; then
13619     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13620   else
13621     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13622     case $host_os in
13623       sco3.2v5*)
13624         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13625         ;;
13626     esac
13627   fi
13628   sys_lib_dlsearch_path_spec='/usr/lib'
13629   ;;
13630
13631 tpf*)
13632   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13633   version_type=linux # correct to gnu/linux during the next big refactor
13634   need_lib_prefix=no
13635   need_version=no
13636   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13637   shlibpath_var=LD_LIBRARY_PATH
13638   shlibpath_overrides_runpath=no
13639   hardcode_into_libs=yes
13640   ;;
13641
13642 uts4*)
13643   version_type=linux # correct to gnu/linux during the next big refactor
13644   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13645   soname_spec='$libname$release$shared_ext$major'
13646   shlibpath_var=LD_LIBRARY_PATH
13647   ;;
13648
13649 *)
13650   dynamic_linker=no
13651   ;;
13652 esac
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13654 $as_echo "$dynamic_linker" >&6; }
13655 test no = "$dynamic_linker" && can_build_shared=no
13656
13657 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13658 if test yes = "$GCC"; then
13659   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13660 fi
13661
13662 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13663   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13664 fi
13665
13666 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13667   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13668 fi
13669
13670 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13671 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13672
13673 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13674 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13675
13676 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13677 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13776 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13777 hardcode_action=
13778 if test -n "$hardcode_libdir_flag_spec" ||
13779    test -n "$runpath_var" ||
13780    test yes = "$hardcode_automatic"; then
13781
13782   # We can hardcode non-existent directories.
13783   if test no != "$hardcode_direct" &&
13784      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13785      # have to relink, otherwise we might link with an installed library
13786      # when we should be linking with a yet-to-be-installed one
13787      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13788      test no != "$hardcode_minus_L"; then
13789     # Linking always hardcodes the temporary library directory.
13790     hardcode_action=relink
13791   else
13792     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13793     hardcode_action=immediate
13794   fi
13795 else
13796   # We cannot hardcode anything, or else we can only hardcode existing
13797   # directories.
13798   hardcode_action=unsupported
13799 fi
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13801 $as_echo "$hardcode_action" >&6; }
13802
13803 if test relink = "$hardcode_action" ||
13804    test yes = "$inherit_rpath"; then
13805   # Fast installation is not supported
13806   enable_fast_install=no
13807 elif test yes = "$shlibpath_overrides_runpath" ||
13808      test no = "$enable_shared"; then
13809   # Fast installation is not necessary
13810   enable_fast_install=needless
13811 fi
13812
13813
13814
13815
13816
13817
13818   if test yes != "$enable_dlopen"; then
13819   enable_dlopen=unknown
13820   enable_dlopen_self=unknown
13821   enable_dlopen_self_static=unknown
13822 else
13823   lt_cv_dlopen=no
13824   lt_cv_dlopen_libs=
13825
13826   case $host_os in
13827   beos*)
13828     lt_cv_dlopen=load_add_on
13829     lt_cv_dlopen_libs=
13830     lt_cv_dlopen_self=yes
13831     ;;
13832
13833   mingw* | pw32* | cegcc*)
13834     lt_cv_dlopen=LoadLibrary
13835     lt_cv_dlopen_libs=
13836     ;;
13837
13838   cygwin*)
13839     lt_cv_dlopen=dlopen
13840     lt_cv_dlopen_libs=
13841     ;;
13842
13843   darwin*)
13844     # if libdl is installed we need to link against it
13845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13846 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13847 if ${ac_cv_lib_dl_dlopen+:} false; then :
13848   $as_echo_n "(cached) " >&6
13849 else
13850   ac_check_lib_save_LIBS=$LIBS
13851 LIBS="-ldl  $LIBS"
13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h.  */
13854
13855 /* Override any GCC internal prototype to avoid an error.
13856    Use char because int might match the return type of a GCC
13857    builtin and then its argument prototype would still apply.  */
13858 #ifdef __cplusplus
13859 extern "C"
13860 #endif
13861 char dlopen ();
13862 int
13863 main ()
13864 {
13865 return dlopen ();
13866   ;
13867   return 0;
13868 }
13869 _ACEOF
13870 if ac_fn_c_try_link "$LINENO"; then :
13871   ac_cv_lib_dl_dlopen=yes
13872 else
13873   ac_cv_lib_dl_dlopen=no
13874 fi
13875 rm -f core conftest.err conftest.$ac_objext \
13876     conftest$ac_exeext conftest.$ac_ext
13877 LIBS=$ac_check_lib_save_LIBS
13878 fi
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13880 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13881 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13882   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13883 else
13884
13885     lt_cv_dlopen=dyld
13886     lt_cv_dlopen_libs=
13887     lt_cv_dlopen_self=yes
13888
13889 fi
13890
13891     ;;
13892
13893   tpf*)
13894     # Don't try to run any link tests for TPF.  We know it's impossible
13895     # because TPF is a cross-compiler, and we know how we open DSOs.
13896     lt_cv_dlopen=dlopen
13897     lt_cv_dlopen_libs=
13898     lt_cv_dlopen_self=no
13899     ;;
13900
13901   *)
13902     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13903 if test "x$ac_cv_func_shl_load" = xyes; then :
13904   lt_cv_dlopen=shl_load
13905 else
13906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13907 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13908 if ${ac_cv_lib_dld_shl_load+:} false; then :
13909   $as_echo_n "(cached) " >&6
13910 else
13911   ac_check_lib_save_LIBS=$LIBS
13912 LIBS="-ldld  $LIBS"
13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h.  */
13915
13916 /* Override any GCC internal prototype to avoid an error.
13917    Use char because int might match the return type of a GCC
13918    builtin and then its argument prototype would still apply.  */
13919 #ifdef __cplusplus
13920 extern "C"
13921 #endif
13922 char shl_load ();
13923 int
13924 main ()
13925 {
13926 return shl_load ();
13927   ;
13928   return 0;
13929 }
13930 _ACEOF
13931 if ac_fn_c_try_link "$LINENO"; then :
13932   ac_cv_lib_dld_shl_load=yes
13933 else
13934   ac_cv_lib_dld_shl_load=no
13935 fi
13936 rm -f core conftest.err conftest.$ac_objext \
13937     conftest$ac_exeext conftest.$ac_ext
13938 LIBS=$ac_check_lib_save_LIBS
13939 fi
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13941 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13942 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13943   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13944 else
13945   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13946 if test "x$ac_cv_func_dlopen" = xyes; then :
13947   lt_cv_dlopen=dlopen
13948 else
13949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13950 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13951 if ${ac_cv_lib_dl_dlopen+:} false; then :
13952   $as_echo_n "(cached) " >&6
13953 else
13954   ac_check_lib_save_LIBS=$LIBS
13955 LIBS="-ldl  $LIBS"
13956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h.  */
13958
13959 /* Override any GCC internal prototype to avoid an error.
13960    Use char because int might match the return type of a GCC
13961    builtin and then its argument prototype would still apply.  */
13962 #ifdef __cplusplus
13963 extern "C"
13964 #endif
13965 char dlopen ();
13966 int
13967 main ()
13968 {
13969 return dlopen ();
13970   ;
13971   return 0;
13972 }
13973 _ACEOF
13974 if ac_fn_c_try_link "$LINENO"; then :
13975   ac_cv_lib_dl_dlopen=yes
13976 else
13977   ac_cv_lib_dl_dlopen=no
13978 fi
13979 rm -f core conftest.err conftest.$ac_objext \
13980     conftest$ac_exeext conftest.$ac_ext
13981 LIBS=$ac_check_lib_save_LIBS
13982 fi
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13984 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13985 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13986   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13987 else
13988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13989 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13990 if ${ac_cv_lib_svld_dlopen+:} false; then :
13991   $as_echo_n "(cached) " >&6
13992 else
13993   ac_check_lib_save_LIBS=$LIBS
13994 LIBS="-lsvld  $LIBS"
13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h.  */
13997
13998 /* Override any GCC internal prototype to avoid an error.
13999    Use char because int might match the return type of a GCC
14000    builtin and then its argument prototype would still apply.  */
14001 #ifdef __cplusplus
14002 extern "C"
14003 #endif
14004 char dlopen ();
14005 int
14006 main ()
14007 {
14008 return dlopen ();
14009   ;
14010   return 0;
14011 }
14012 _ACEOF
14013 if ac_fn_c_try_link "$LINENO"; then :
14014   ac_cv_lib_svld_dlopen=yes
14015 else
14016   ac_cv_lib_svld_dlopen=no
14017 fi
14018 rm -f core conftest.err conftest.$ac_objext \
14019     conftest$ac_exeext conftest.$ac_ext
14020 LIBS=$ac_check_lib_save_LIBS
14021 fi
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14023 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14024 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14025   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14026 else
14027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14028 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14029 if ${ac_cv_lib_dld_dld_link+:} false; then :
14030   $as_echo_n "(cached) " >&6
14031 else
14032   ac_check_lib_save_LIBS=$LIBS
14033 LIBS="-ldld  $LIBS"
14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h.  */
14036
14037 /* Override any GCC internal prototype to avoid an error.
14038    Use char because int might match the return type of a GCC
14039    builtin and then its argument prototype would still apply.  */
14040 #ifdef __cplusplus
14041 extern "C"
14042 #endif
14043 char dld_link ();
14044 int
14045 main ()
14046 {
14047 return dld_link ();
14048   ;
14049   return 0;
14050 }
14051 _ACEOF
14052 if ac_fn_c_try_link "$LINENO"; then :
14053   ac_cv_lib_dld_dld_link=yes
14054 else
14055   ac_cv_lib_dld_dld_link=no
14056 fi
14057 rm -f core conftest.err conftest.$ac_objext \
14058     conftest$ac_exeext conftest.$ac_ext
14059 LIBS=$ac_check_lib_save_LIBS
14060 fi
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14062 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14063 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14064   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14065 fi
14066
14067
14068 fi
14069
14070
14071 fi
14072
14073
14074 fi
14075
14076
14077 fi
14078
14079
14080 fi
14081
14082     ;;
14083   esac
14084
14085   if test no = "$lt_cv_dlopen"; then
14086     enable_dlopen=no
14087   else
14088     enable_dlopen=yes
14089   fi
14090
14091   case $lt_cv_dlopen in
14092   dlopen)
14093     save_CPPFLAGS=$CPPFLAGS
14094     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14095
14096     save_LDFLAGS=$LDFLAGS
14097     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14098
14099     save_LIBS=$LIBS
14100     LIBS="$lt_cv_dlopen_libs $LIBS"
14101
14102     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14103 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14104 if ${lt_cv_dlopen_self+:} false; then :
14105   $as_echo_n "(cached) " >&6
14106 else
14107           if test yes = "$cross_compiling"; then :
14108   lt_cv_dlopen_self=cross
14109 else
14110   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14111   lt_status=$lt_dlunknown
14112   cat > conftest.$ac_ext <<_LT_EOF
14113 #line $LINENO "configure"
14114 #include "confdefs.h"
14115
14116 #if HAVE_DLFCN_H
14117 #include <dlfcn.h>
14118 #endif
14119
14120 #include <stdio.h>
14121
14122 #ifdef RTLD_GLOBAL
14123 #  define LT_DLGLOBAL           RTLD_GLOBAL
14124 #else
14125 #  ifdef DL_GLOBAL
14126 #    define LT_DLGLOBAL         DL_GLOBAL
14127 #  else
14128 #    define LT_DLGLOBAL         0
14129 #  endif
14130 #endif
14131
14132 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14133    find out it does not work in some platform. */
14134 #ifndef LT_DLLAZY_OR_NOW
14135 #  ifdef RTLD_LAZY
14136 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14137 #  else
14138 #    ifdef DL_LAZY
14139 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14140 #    else
14141 #      ifdef RTLD_NOW
14142 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14143 #      else
14144 #        ifdef DL_NOW
14145 #          define LT_DLLAZY_OR_NOW      DL_NOW
14146 #        else
14147 #          define LT_DLLAZY_OR_NOW      0
14148 #        endif
14149 #      endif
14150 #    endif
14151 #  endif
14152 #endif
14153
14154 /* When -fvisibility=hidden is used, assume the code has been annotated
14155    correspondingly for the symbols needed.  */
14156 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14157 int fnord () __attribute__((visibility("default")));
14158 #endif
14159
14160 int fnord () { return 42; }
14161 int main ()
14162 {
14163   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14164   int status = $lt_dlunknown;
14165
14166   if (self)
14167     {
14168       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14169       else
14170         {
14171           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14172           else puts (dlerror ());
14173         }
14174       /* dlclose (self); */
14175     }
14176   else
14177     puts (dlerror ());
14178
14179   return status;
14180 }
14181 _LT_EOF
14182   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14183   (eval $ac_link) 2>&5
14184   ac_status=$?
14185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14186   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14187     (./conftest; exit; ) >&5 2>/dev/null
14188     lt_status=$?
14189     case x$lt_status in
14190       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14191       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14192       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14193     esac
14194   else :
14195     # compilation failed
14196     lt_cv_dlopen_self=no
14197   fi
14198 fi
14199 rm -fr conftest*
14200
14201
14202 fi
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14204 $as_echo "$lt_cv_dlopen_self" >&6; }
14205
14206     if test yes = "$lt_cv_dlopen_self"; then
14207       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14208       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14209 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14210 if ${lt_cv_dlopen_self_static+:} false; then :
14211   $as_echo_n "(cached) " >&6
14212 else
14213           if test yes = "$cross_compiling"; then :
14214   lt_cv_dlopen_self_static=cross
14215 else
14216   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14217   lt_status=$lt_dlunknown
14218   cat > conftest.$ac_ext <<_LT_EOF
14219 #line $LINENO "configure"
14220 #include "confdefs.h"
14221
14222 #if HAVE_DLFCN_H
14223 #include <dlfcn.h>
14224 #endif
14225
14226 #include <stdio.h>
14227
14228 #ifdef RTLD_GLOBAL
14229 #  define LT_DLGLOBAL           RTLD_GLOBAL
14230 #else
14231 #  ifdef DL_GLOBAL
14232 #    define LT_DLGLOBAL         DL_GLOBAL
14233 #  else
14234 #    define LT_DLGLOBAL         0
14235 #  endif
14236 #endif
14237
14238 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14239    find out it does not work in some platform. */
14240 #ifndef LT_DLLAZY_OR_NOW
14241 #  ifdef RTLD_LAZY
14242 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14243 #  else
14244 #    ifdef DL_LAZY
14245 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14246 #    else
14247 #      ifdef RTLD_NOW
14248 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14249 #      else
14250 #        ifdef DL_NOW
14251 #          define LT_DLLAZY_OR_NOW      DL_NOW
14252 #        else
14253 #          define LT_DLLAZY_OR_NOW      0
14254 #        endif
14255 #      endif
14256 #    endif
14257 #  endif
14258 #endif
14259
14260 /* When -fvisibility=hidden is used, assume the code has been annotated
14261    correspondingly for the symbols needed.  */
14262 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14263 int fnord () __attribute__((visibility("default")));
14264 #endif
14265
14266 int fnord () { return 42; }
14267 int main ()
14268 {
14269   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14270   int status = $lt_dlunknown;
14271
14272   if (self)
14273     {
14274       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14275       else
14276         {
14277           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14278           else puts (dlerror ());
14279         }
14280       /* dlclose (self); */
14281     }
14282   else
14283     puts (dlerror ());
14284
14285   return status;
14286 }
14287 _LT_EOF
14288   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14289   (eval $ac_link) 2>&5
14290   ac_status=$?
14291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14292   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14293     (./conftest; exit; ) >&5 2>/dev/null
14294     lt_status=$?
14295     case x$lt_status in
14296       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14297       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14298       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14299     esac
14300   else :
14301     # compilation failed
14302     lt_cv_dlopen_self_static=no
14303   fi
14304 fi
14305 rm -fr conftest*
14306
14307
14308 fi
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14310 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14311     fi
14312
14313     CPPFLAGS=$save_CPPFLAGS
14314     LDFLAGS=$save_LDFLAGS
14315     LIBS=$save_LIBS
14316     ;;
14317   esac
14318
14319   case $lt_cv_dlopen_self in
14320   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14321   *) enable_dlopen_self=unknown ;;
14322   esac
14323
14324   case $lt_cv_dlopen_self_static in
14325   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14326   *) enable_dlopen_self_static=unknown ;;
14327   esac
14328 fi
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346 striplib=
14347 old_striplib=
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14349 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14350 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14351   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14352   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14354 $as_echo "yes" >&6; }
14355 else
14356 # FIXME - insert some real tests, host_os isn't really good enough
14357   case $host_os in
14358   darwin*)
14359     if test -n "$STRIP"; then
14360       striplib="$STRIP -x"
14361       old_striplib="$STRIP -S"
14362       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14363 $as_echo "yes" >&6; }
14364     else
14365       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14366 $as_echo "no" >&6; }
14367     fi
14368     ;;
14369   *)
14370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14371 $as_echo "no" >&6; }
14372     ;;
14373   esac
14374 fi
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387   # Report what library types will actually be built
14388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14389 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14391 $as_echo "$can_build_shared" >&6; }
14392
14393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14394 $as_echo_n "checking whether to build shared libraries... " >&6; }
14395   test no = "$can_build_shared" && enable_shared=no
14396
14397   # On AIX, shared libraries and static libraries use the same namespace, and
14398   # are all built from PIC.
14399   case $host_os in
14400   aix3*)
14401     test yes = "$enable_shared" && enable_static=no
14402     if test -n "$RANLIB"; then
14403       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14404       postinstall_cmds='$RANLIB $lib'
14405     fi
14406     ;;
14407
14408   aix[4-9]*)
14409     if test ia64 != "$host_cpu"; then
14410       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14411       yes,aix,yes) ;;                   # shared object as lib.so file only
14412       yes,svr4,*) ;;                    # shared object as lib.so archive member only
14413       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
14414       esac
14415     fi
14416     ;;
14417   esac
14418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14419 $as_echo "$enable_shared" >&6; }
14420
14421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14422 $as_echo_n "checking whether to build static libraries... " >&6; }
14423   # Make sure either enable_shared or enable_static is yes.
14424   test yes = "$enable_shared" || enable_static=yes
14425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14426 $as_echo "$enable_static" >&6; }
14427
14428
14429
14430
14431 fi
14432 ac_ext=c
14433 ac_cpp='$CPP $CPPFLAGS'
14434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14437
14438 CC=$lt_save_CC
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454         ac_config_commands="$ac_config_commands libtool"
14455
14456
14457
14458
14459 # Only expand once:
14460
14461
14462
14463
14464 # Checks for header files.
14465 for ac_header in stdarg.h stdbool.h netinet/in.h netinet/tcp.h sys/param.h sys/socket.h sys/un.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h endian.h sys/ipc.h sys/shm.h
14466 do :
14467   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14468 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14469 "
14470 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14471   cat >>confdefs.h <<_ACEOF
14472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14473 _ACEOF
14474
14475 fi
14476
14477 done
14478
14479
14480 # check for types.
14481 # Using own tests for int64* because autoconf builtin only give 32bit.
14482 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14483 if test "x$ac_cv_type_int8_t" = xyes; then :
14484
14485 else
14486
14487 cat >>confdefs.h <<_ACEOF
14488 #define int8_t signed char
14489 _ACEOF
14490
14491 fi
14492
14493 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14494 if test "x$ac_cv_type_int16_t" = xyes; then :
14495
14496 else
14497
14498 cat >>confdefs.h <<_ACEOF
14499 #define int16_t short
14500 _ACEOF
14501
14502 fi
14503
14504 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14505 if test "x$ac_cv_type_int32_t" = xyes; then :
14506
14507 else
14508
14509 cat >>confdefs.h <<_ACEOF
14510 #define int32_t int
14511 _ACEOF
14512
14513 fi
14514
14515 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14516 if test "x$ac_cv_type_int64_t" = xyes; then :
14517
14518 else
14519
14520 cat >>confdefs.h <<_ACEOF
14521 #define int64_t long long
14522 _ACEOF
14523
14524 fi
14525
14526 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14527 if test "x$ac_cv_type_uint8_t" = xyes; then :
14528
14529 else
14530
14531 cat >>confdefs.h <<_ACEOF
14532 #define uint8_t unsigned char
14533 _ACEOF
14534
14535 fi
14536
14537 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14538 if test "x$ac_cv_type_uint16_t" = xyes; then :
14539
14540 else
14541
14542 cat >>confdefs.h <<_ACEOF
14543 #define uint16_t unsigned short
14544 _ACEOF
14545
14546 fi
14547
14548 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14549 if test "x$ac_cv_type_uint32_t" = xyes; then :
14550
14551 else
14552
14553 cat >>confdefs.h <<_ACEOF
14554 #define uint32_t unsigned int
14555 _ACEOF
14556
14557 fi
14558
14559 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14560 if test "x$ac_cv_type_uint64_t" = xyes; then :
14561
14562 else
14563
14564 cat >>confdefs.h <<_ACEOF
14565 #define uint64_t unsigned long long
14566 _ACEOF
14567
14568 fi
14569
14570 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14571 if test "x$ac_cv_type_size_t" = xyes; then :
14572
14573 else
14574
14575 cat >>confdefs.h <<_ACEOF
14576 #define size_t unsigned int
14577 _ACEOF
14578
14579 fi
14580
14581 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14582 if test "x$ac_cv_type_ssize_t" = xyes; then :
14583
14584 else
14585
14586 cat >>confdefs.h <<_ACEOF
14587 #define ssize_t int
14588 _ACEOF
14589
14590 fi
14591
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14593 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14594 if ${ac_cv_type_uid_t+:} false; then :
14595   $as_echo_n "(cached) " >&6
14596 else
14597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598 /* end confdefs.h.  */
14599 #include <sys/types.h>
14600
14601 _ACEOF
14602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14603   $EGREP "uid_t" >/dev/null 2>&1; then :
14604   ac_cv_type_uid_t=yes
14605 else
14606   ac_cv_type_uid_t=no
14607 fi
14608 rm -f conftest*
14609
14610 fi
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14612 $as_echo "$ac_cv_type_uid_t" >&6; }
14613 if test $ac_cv_type_uid_t = no; then
14614
14615 $as_echo "#define uid_t int" >>confdefs.h
14616
14617
14618 $as_echo "#define gid_t int" >>confdefs.h
14619
14620 fi
14621
14622 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14623 if test "x$ac_cv_type_pid_t" = xyes; then :
14624
14625 else
14626
14627 cat >>confdefs.h <<_ACEOF
14628 #define pid_t int
14629 _ACEOF
14630
14631 fi
14632
14633 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14634 if test "x$ac_cv_type_off_t" = xyes; then :
14635
14636 else
14637
14638 cat >>confdefs.h <<_ACEOF
14639 #define off_t long int
14640 _ACEOF
14641
14642 fi
14643
14644 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
14645 $ac_includes_default
14646 #ifdef HAVE_WINSOCK2_H
14647 #  include <winsock2.h>
14648 #endif
14649
14650 "
14651 if test "x$ac_cv_type_u_char" = xyes; then :
14652
14653 else
14654
14655 $as_echo "#define u_char unsigned char" >>confdefs.h
14656
14657 fi
14658
14659 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
14660 $ac_includes_default
14661 #ifdef HAVE_SYS_RESOURCE_H
14662 #  include <sys/resource.h>
14663 #endif
14664
14665 "
14666 if test "x$ac_cv_type_rlim_t" = xyes; then :
14667
14668 else
14669
14670 $as_echo "#define rlim_t unsigned long" >>confdefs.h
14671
14672 fi
14673
14674
14675 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14676 $ac_includes_default
14677 #ifdef HAVE_SYS_SOCKET_H
14678 #  include <sys/socket.h>
14679 #endif
14680 #ifdef HAVE_WS2TCPIP_H
14681 #  include <ws2tcpip.h>
14682 #endif
14683
14684 "
14685 if test "x$ac_cv_type_socklen_t" = xyes; then :
14686
14687 else
14688
14689 $as_echo "#define socklen_t int" >>confdefs.h
14690
14691 fi
14692
14693  ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
14694 $ac_includes_default
14695 #ifdef HAVE_SYS_TYPES_H
14696 # include <sys/types.h>
14697 #endif
14698 #ifdef HAVE_NETINET_IN_H
14699 # include <netinet/in.h>
14700 #endif
14701
14702 "
14703 if test "x$ac_cv_type_in_addr_t" = xyes; then :
14704
14705 else
14706
14707 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
14708
14709 fi
14710
14711  ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14712 $ac_includes_default
14713 #ifdef HAVE_SYS_TYPES_H
14714 # include <sys/types.h>
14715 #endif
14716 #ifdef HAVE_NETINET_IN_H
14717 # include <netinet/in.h>
14718 #endif
14719
14720 "
14721 if test "x$ac_cv_type_in_port_t" = xyes; then :
14722
14723 else
14724
14725 $as_echo "#define in_port_t uint16_t" >>confdefs.h
14726
14727 fi
14728
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
14730 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
14731 if test "$cross_compiling" = yes; then :
14732    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
14733 $as_echo "cross-compile no" >&6; }
14734
14735 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14736
14737   case " $LIBOBJS " in
14738   *" memcmp.$ac_objext "* ) ;;
14739   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14740  ;;
14741 esac
14742
14743
14744 else
14745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14746 /* end confdefs.h.  */
14747
14748 #include <stdio.h>
14749 #include <stdlib.h>
14750 #include <string.h>
14751 int main(void)
14752 {
14753         char a = 255, b = 0;
14754         if(memcmp(&a, &b, 1) < 0)
14755                 return 1;
14756         return 0;
14757 }
14758
14759 _ACEOF
14760 if ac_fn_c_try_run "$LINENO"; then :
14761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14762 $as_echo "yes" >&6; }
14763 else
14764    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14765 $as_echo "no" >&6; }
14766
14767 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14768
14769   case " $LIBOBJS " in
14770   *" memcmp.$ac_objext "* ) ;;
14771   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14772  ;;
14773 esac
14774
14775
14776 fi
14777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14778   conftest.$ac_objext conftest.beam conftest.$ac_ext
14779 fi
14780
14781
14782 # The cast to long int works around a bug in the HP C Compiler
14783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14785 # This bug is HP SR number 8606223364.
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14787 $as_echo_n "checking size of time_t... " >&6; }
14788 if ${ac_cv_sizeof_time_t+:} false; then :
14789   $as_echo_n "(cached) " >&6
14790 else
14791   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
14792 $ac_includes_default
14793 #ifdef TIME_WITH_SYS_TIME
14794 # include <sys/time.h>
14795 # include <time.h>
14796 #else
14797 # ifdef HAVE_SYS_TIME_H
14798 #  include <sys/time.h>
14799 # else
14800 #  include <time.h>
14801 # endif
14802 #endif
14803
14804 "; then :
14805
14806 else
14807   if test "$ac_cv_type_time_t" = yes; then
14808      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14810 as_fn_error 77 "cannot compute sizeof (time_t)
14811 See \`config.log' for more details" "$LINENO" 5; }
14812    else
14813      ac_cv_sizeof_time_t=0
14814    fi
14815 fi
14816
14817 fi
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14819 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14820
14821
14822
14823 cat >>confdefs.h <<_ACEOF
14824 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14825 _ACEOF
14826
14827
14828
14829 # add option to disable the evil rpath
14830
14831 # Check whether --enable-rpath was given.
14832 if test "${enable_rpath+set}" = set; then :
14833   enableval=$enable_rpath; enable_rpath=$enableval
14834 else
14835   enable_rpath=yes
14836 fi
14837
14838 if test "x$enable_rpath" = xno; then
14839                 ac_config_commands="$ac_config_commands disable-rpath"
14840
14841 fi
14842
14843
14844
14845 # check to see if libraries are needed for these functions.
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14847 $as_echo_n "checking for library containing inet_pton... " >&6; }
14848 if ${ac_cv_search_inet_pton+:} false; then :
14849   $as_echo_n "(cached) " >&6
14850 else
14851   ac_func_search_save_LIBS=$LIBS
14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14853 /* end confdefs.h.  */
14854
14855 /* Override any GCC internal prototype to avoid an error.
14856    Use char because int might match the return type of a GCC
14857    builtin and then its argument prototype would still apply.  */
14858 #ifdef __cplusplus
14859 extern "C"
14860 #endif
14861 char inet_pton ();
14862 int
14863 main ()
14864 {
14865 return inet_pton ();
14866   ;
14867   return 0;
14868 }
14869 _ACEOF
14870 for ac_lib in '' nsl; do
14871   if test -z "$ac_lib"; then
14872     ac_res="none required"
14873   else
14874     ac_res=-l$ac_lib
14875     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14876   fi
14877   if ac_fn_c_try_link "$LINENO"; then :
14878   ac_cv_search_inet_pton=$ac_res
14879 fi
14880 rm -f core conftest.err conftest.$ac_objext \
14881     conftest$ac_exeext
14882   if ${ac_cv_search_inet_pton+:} false; then :
14883   break
14884 fi
14885 done
14886 if ${ac_cv_search_inet_pton+:} false; then :
14887
14888 else
14889   ac_cv_search_inet_pton=no
14890 fi
14891 rm conftest.$ac_ext
14892 LIBS=$ac_func_search_save_LIBS
14893 fi
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14895 $as_echo "$ac_cv_search_inet_pton" >&6; }
14896 ac_res=$ac_cv_search_inet_pton
14897 if test "$ac_res" != no; then :
14898   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14899
14900 fi
14901
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14903 $as_echo_n "checking for library containing socket... " >&6; }
14904 if ${ac_cv_search_socket+:} false; then :
14905   $as_echo_n "(cached) " >&6
14906 else
14907   ac_func_search_save_LIBS=$LIBS
14908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909 /* end confdefs.h.  */
14910
14911 /* Override any GCC internal prototype to avoid an error.
14912    Use char because int might match the return type of a GCC
14913    builtin and then its argument prototype would still apply.  */
14914 #ifdef __cplusplus
14915 extern "C"
14916 #endif
14917 char socket ();
14918 int
14919 main ()
14920 {
14921 return socket ();
14922   ;
14923   return 0;
14924 }
14925 _ACEOF
14926 for ac_lib in '' socket; do
14927   if test -z "$ac_lib"; then
14928     ac_res="none required"
14929   else
14930     ac_res=-l$ac_lib
14931     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14932   fi
14933   if ac_fn_c_try_link "$LINENO"; then :
14934   ac_cv_search_socket=$ac_res
14935 fi
14936 rm -f core conftest.err conftest.$ac_objext \
14937     conftest$ac_exeext
14938   if ${ac_cv_search_socket+:} false; then :
14939   break
14940 fi
14941 done
14942 if ${ac_cv_search_socket+:} false; then :
14943
14944 else
14945   ac_cv_search_socket=no
14946 fi
14947 rm conftest.$ac_ext
14948 LIBS=$ac_func_search_save_LIBS
14949 fi
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14951 $as_echo "$ac_cv_search_socket" >&6; }
14952 ac_res=$ac_cv_search_socket
14953 if test "$ac_res" != no; then :
14954   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14955
14956 fi
14957
14958
14959 # check wether strptime also works
14960
14961 # check some functions of the OS before linking libs (while still runnable).
14962 for ac_header in unistd.h
14963 do :
14964   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14965 if test "x$ac_cv_header_unistd_h" = xyes; then :
14966   cat >>confdefs.h <<_ACEOF
14967 #define HAVE_UNISTD_H 1
14968 _ACEOF
14969
14970 fi
14971
14972 done
14973
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14975 $as_echo_n "checking for working chown... " >&6; }
14976 if ${ac_cv_func_chown_works+:} false; then :
14977   $as_echo_n "(cached) " >&6
14978 else
14979   if test "$cross_compiling" = yes; then :
14980   ac_cv_func_chown_works=no
14981 else
14982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14983 /* end confdefs.h.  */
14984 $ac_includes_default
14985 #include <fcntl.h>
14986
14987 int
14988 main ()
14989 {
14990   char *f = "conftest.chown";
14991   struct stat before, after;
14992
14993   if (creat (f, 0600) < 0)
14994     return 1;
14995   if (stat (f, &before) < 0)
14996     return 1;
14997   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14998     return 1;
14999   if (stat (f, &after) < 0)
15000     return 1;
15001   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15002
15003   ;
15004   return 0;
15005 }
15006 _ACEOF
15007 if ac_fn_c_try_run "$LINENO"; then :
15008   ac_cv_func_chown_works=yes
15009 else
15010   ac_cv_func_chown_works=no
15011 fi
15012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15013   conftest.$ac_objext conftest.beam conftest.$ac_ext
15014 fi
15015
15016 rm -f conftest.chown
15017
15018 fi
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15020 $as_echo "$ac_cv_func_chown_works" >&6; }
15021 if test $ac_cv_func_chown_works = yes; then
15022
15023 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15024
15025 fi
15026
15027 for ac_header in vfork.h
15028 do :
15029   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15030 if test "x$ac_cv_header_vfork_h" = xyes; then :
15031   cat >>confdefs.h <<_ACEOF
15032 #define HAVE_VFORK_H 1
15033 _ACEOF
15034
15035 fi
15036
15037 done
15038
15039 for ac_func in fork vfork
15040 do :
15041   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15042 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15043 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15044   cat >>confdefs.h <<_ACEOF
15045 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15046 _ACEOF
15047
15048 fi
15049 done
15050
15051 if test "x$ac_cv_func_fork" = xyes; then
15052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15053 $as_echo_n "checking for working fork... " >&6; }
15054 if ${ac_cv_func_fork_works+:} false; then :
15055   $as_echo_n "(cached) " >&6
15056 else
15057   if test "$cross_compiling" = yes; then :
15058   ac_cv_func_fork_works=cross
15059 else
15060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15061 /* end confdefs.h.  */
15062 $ac_includes_default
15063 int
15064 main ()
15065 {
15066
15067           /* By Ruediger Kuhlmann. */
15068           return fork () < 0;
15069
15070   ;
15071   return 0;
15072 }
15073 _ACEOF
15074 if ac_fn_c_try_run "$LINENO"; then :
15075   ac_cv_func_fork_works=yes
15076 else
15077   ac_cv_func_fork_works=no
15078 fi
15079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15080   conftest.$ac_objext conftest.beam conftest.$ac_ext
15081 fi
15082
15083 fi
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15085 $as_echo "$ac_cv_func_fork_works" >&6; }
15086
15087 else
15088   ac_cv_func_fork_works=$ac_cv_func_fork
15089 fi
15090 if test "x$ac_cv_func_fork_works" = xcross; then
15091   case $host in
15092     *-*-amigaos* | *-*-msdosdjgpp*)
15093       # Override, as these systems have only a dummy fork() stub
15094       ac_cv_func_fork_works=no
15095       ;;
15096     *)
15097       ac_cv_func_fork_works=yes
15098       ;;
15099   esac
15100   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15101 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15102 fi
15103 ac_cv_func_vfork_works=$ac_cv_func_vfork
15104 if test "x$ac_cv_func_vfork" = xyes; then
15105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15106 $as_echo_n "checking for working vfork... " >&6; }
15107 if ${ac_cv_func_vfork_works+:} false; then :
15108   $as_echo_n "(cached) " >&6
15109 else
15110   if test "$cross_compiling" = yes; then :
15111   ac_cv_func_vfork_works=cross
15112 else
15113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15114 /* end confdefs.h.  */
15115 /* Thanks to Paul Eggert for this test.  */
15116 $ac_includes_default
15117 #include <sys/wait.h>
15118 #ifdef HAVE_VFORK_H
15119 # include <vfork.h>
15120 #endif
15121 /* On some sparc systems, changes by the child to local and incoming
15122    argument registers are propagated back to the parent.  The compiler
15123    is told about this with #include <vfork.h>, but some compilers
15124    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15125    static variable whose address is put into a register that is
15126    clobbered by the vfork.  */
15127 static void
15128 #ifdef __cplusplus
15129 sparc_address_test (int arg)
15130 # else
15131 sparc_address_test (arg) int arg;
15132 #endif
15133 {
15134   static pid_t child;
15135   if (!child) {
15136     child = vfork ();
15137     if (child < 0) {
15138       perror ("vfork");
15139       _exit(2);
15140     }
15141     if (!child) {
15142       arg = getpid();
15143       write(-1, "", 0);
15144       _exit (arg);
15145     }
15146   }
15147 }
15148
15149 int
15150 main ()
15151 {
15152   pid_t parent = getpid ();
15153   pid_t child;
15154
15155   sparc_address_test (0);
15156
15157   child = vfork ();
15158
15159   if (child == 0) {
15160     /* Here is another test for sparc vfork register problems.  This
15161        test uses lots of local variables, at least as many local
15162        variables as main has allocated so far including compiler
15163        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15164        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15165        reuse the register of parent for one of the local variables,
15166        since it will think that parent can't possibly be used any more
15167        in this routine.  Assigning to the local variable will thus
15168        munge parent in the parent process.  */
15169     pid_t
15170       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15171       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15172     /* Convince the compiler that p..p7 are live; otherwise, it might
15173        use the same hardware register for all 8 local variables.  */
15174     if (p != p1 || p != p2 || p != p3 || p != p4
15175         || p != p5 || p != p6 || p != p7)
15176       _exit(1);
15177
15178     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15179        from child file descriptors.  If the child closes a descriptor
15180        before it execs or exits, this munges the parent's descriptor
15181        as well.  Test for this by closing stdout in the child.  */
15182     _exit(close(fileno(stdout)) != 0);
15183   } else {
15184     int status;
15185     struct stat st;
15186
15187     while (wait(&status) != child)
15188       ;
15189     return (
15190          /* Was there some problem with vforking?  */
15191          child < 0
15192
15193          /* Did the child fail?  (This shouldn't happen.)  */
15194          || status
15195
15196          /* Did the vfork/compiler bug occur?  */
15197          || parent != getpid()
15198
15199          /* Did the file descriptor bug occur?  */
15200          || fstat(fileno(stdout), &st) != 0
15201          );
15202   }
15203 }
15204 _ACEOF
15205 if ac_fn_c_try_run "$LINENO"; then :
15206   ac_cv_func_vfork_works=yes
15207 else
15208   ac_cv_func_vfork_works=no
15209 fi
15210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15211   conftest.$ac_objext conftest.beam conftest.$ac_ext
15212 fi
15213
15214 fi
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15216 $as_echo "$ac_cv_func_vfork_works" >&6; }
15217
15218 fi;
15219 if test "x$ac_cv_func_fork_works" = xcross; then
15220   ac_cv_func_vfork_works=$ac_cv_func_vfork
15221   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15222 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15223 fi
15224
15225 if test "x$ac_cv_func_vfork_works" = xyes; then
15226
15227 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15228
15229 else
15230
15231 $as_echo "#define vfork fork" >>confdefs.h
15232
15233 fi
15234 if test "x$ac_cv_func_fork_works" = xyes; then
15235
15236 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15237
15238 fi
15239
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15241 $as_echo_n "checking return type of signal handlers... " >&6; }
15242 if ${ac_cv_type_signal+:} false; then :
15243   $as_echo_n "(cached) " >&6
15244 else
15245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h.  */
15247 #include <sys/types.h>
15248 #include <signal.h>
15249
15250 int
15251 main ()
15252 {
15253 return *(signal (0, 0)) (0) == 1;
15254   ;
15255   return 0;
15256 }
15257 _ACEOF
15258 if ac_fn_c_try_compile "$LINENO"; then :
15259   ac_cv_type_signal=int
15260 else
15261   ac_cv_type_signal=void
15262 fi
15263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15264 fi
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15266 $as_echo "$ac_cv_type_signal" >&6; }
15267
15268 cat >>confdefs.h <<_ACEOF
15269 #define RETSIGTYPE $ac_cv_type_signal
15270 _ACEOF
15271
15272
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15274 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15275 if ${ac_cv_sys_largefile_source+:} false; then :
15276   $as_echo_n "(cached) " >&6
15277 else
15278   while :; do
15279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280 /* end confdefs.h.  */
15281 #include <sys/types.h> /* for off_t */
15282      #include <stdio.h>
15283 int
15284 main ()
15285 {
15286 int (*fp) (FILE *, off_t, int) = fseeko;
15287      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15288   ;
15289   return 0;
15290 }
15291 _ACEOF
15292 if ac_fn_c_try_link "$LINENO"; then :
15293   ac_cv_sys_largefile_source=no; break
15294 fi
15295 rm -f core conftest.err conftest.$ac_objext \
15296     conftest$ac_exeext conftest.$ac_ext
15297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298 /* end confdefs.h.  */
15299 #define _LARGEFILE_SOURCE 1
15300 #include <sys/types.h> /* for off_t */
15301      #include <stdio.h>
15302 int
15303 main ()
15304 {
15305 int (*fp) (FILE *, off_t, int) = fseeko;
15306      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15307   ;
15308   return 0;
15309 }
15310 _ACEOF
15311 if ac_fn_c_try_link "$LINENO"; then :
15312   ac_cv_sys_largefile_source=1; break
15313 fi
15314 rm -f core conftest.err conftest.$ac_objext \
15315     conftest$ac_exeext conftest.$ac_ext
15316   ac_cv_sys_largefile_source=unknown
15317   break
15318 done
15319 fi
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15321 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15322 case $ac_cv_sys_largefile_source in #(
15323   no | unknown) ;;
15324   *)
15325 cat >>confdefs.h <<_ACEOF
15326 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15327 _ACEOF
15328 ;;
15329 esac
15330 rm -rf conftest*
15331
15332 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15333 # in glibc 2.1.3, but that breaks too many other things.
15334 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15335 if test $ac_cv_sys_largefile_source != unknown; then
15336
15337 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15338
15339 fi
15340
15341
15342 # Check whether --enable-largefile was given.
15343 if test "${enable_largefile+set}" = set; then :
15344   enableval=$enable_largefile;
15345 fi
15346
15347 if test "$enable_largefile" != no; then
15348
15349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15350 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15351 if ${ac_cv_sys_largefile_CC+:} false; then :
15352   $as_echo_n "(cached) " >&6
15353 else
15354   ac_cv_sys_largefile_CC=no
15355      if test "$GCC" != yes; then
15356        ac_save_CC=$CC
15357        while :; do
15358          # IRIX 6.2 and later do not support large files by default,
15359          # so use the C compiler's -n32 option if that helps.
15360          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361 /* end confdefs.h.  */
15362 #include <sys/types.h>
15363  /* Check that off_t can represent 2**63 - 1 correctly.
15364     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15365     since some C++ compilers masquerading as C compilers
15366     incorrectly reject 9223372036854775807.  */
15367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15368   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15369                        && LARGE_OFF_T % 2147483647 == 1)
15370                       ? 1 : -1];
15371 int
15372 main ()
15373 {
15374
15375   ;
15376   return 0;
15377 }
15378 _ACEOF
15379          if ac_fn_c_try_compile "$LINENO"; then :
15380   break
15381 fi
15382 rm -f core conftest.err conftest.$ac_objext
15383          CC="$CC -n32"
15384          if ac_fn_c_try_compile "$LINENO"; then :
15385   ac_cv_sys_largefile_CC=' -n32'; break
15386 fi
15387 rm -f core conftest.err conftest.$ac_objext
15388          break
15389        done
15390        CC=$ac_save_CC
15391        rm -f conftest.$ac_ext
15392     fi
15393 fi
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15395 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15396   if test "$ac_cv_sys_largefile_CC" != no; then
15397     CC=$CC$ac_cv_sys_largefile_CC
15398   fi
15399
15400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15401 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15402 if ${ac_cv_sys_file_offset_bits+:} false; then :
15403   $as_echo_n "(cached) " >&6
15404 else
15405   while :; do
15406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15407 /* end confdefs.h.  */
15408 #include <sys/types.h>
15409  /* Check that off_t can represent 2**63 - 1 correctly.
15410     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15411     since some C++ compilers masquerading as C compilers
15412     incorrectly reject 9223372036854775807.  */
15413 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15414   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15415                        && LARGE_OFF_T % 2147483647 == 1)
15416                       ? 1 : -1];
15417 int
15418 main ()
15419 {
15420
15421   ;
15422   return 0;
15423 }
15424 _ACEOF
15425 if ac_fn_c_try_compile "$LINENO"; then :
15426   ac_cv_sys_file_offset_bits=no; break
15427 fi
15428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430 /* end confdefs.h.  */
15431 #define _FILE_OFFSET_BITS 64
15432 #include <sys/types.h>
15433  /* Check that off_t can represent 2**63 - 1 correctly.
15434     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15435     since some C++ compilers masquerading as C compilers
15436     incorrectly reject 9223372036854775807.  */
15437 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15438   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15439                        && LARGE_OFF_T % 2147483647 == 1)
15440                       ? 1 : -1];
15441 int
15442 main ()
15443 {
15444
15445   ;
15446   return 0;
15447 }
15448 _ACEOF
15449 if ac_fn_c_try_compile "$LINENO"; then :
15450   ac_cv_sys_file_offset_bits=64; break
15451 fi
15452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15453   ac_cv_sys_file_offset_bits=unknown
15454   break
15455 done
15456 fi
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15458 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15459 case $ac_cv_sys_file_offset_bits in #(
15460   no | unknown) ;;
15461   *)
15462 cat >>confdefs.h <<_ACEOF
15463 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15464 _ACEOF
15465 ;;
15466 esac
15467 rm -rf conftest*
15468   if test $ac_cv_sys_file_offset_bits = unknown; then
15469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15470 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15471 if ${ac_cv_sys_large_files+:} false; then :
15472   $as_echo_n "(cached) " >&6
15473 else
15474   while :; do
15475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15476 /* end confdefs.h.  */
15477 #include <sys/types.h>
15478  /* Check that off_t can represent 2**63 - 1 correctly.
15479     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15480     since some C++ compilers masquerading as C compilers
15481     incorrectly reject 9223372036854775807.  */
15482 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15483   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15484                        && LARGE_OFF_T % 2147483647 == 1)
15485                       ? 1 : -1];
15486 int
15487 main ()
15488 {
15489
15490   ;
15491   return 0;
15492 }
15493 _ACEOF
15494 if ac_fn_c_try_compile "$LINENO"; then :
15495   ac_cv_sys_large_files=no; break
15496 fi
15497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499 /* end confdefs.h.  */
15500 #define _LARGE_FILES 1
15501 #include <sys/types.h>
15502  /* Check that off_t can represent 2**63 - 1 correctly.
15503     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15504     since some C++ compilers masquerading as C compilers
15505     incorrectly reject 9223372036854775807.  */
15506 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15507   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15508                        && LARGE_OFF_T % 2147483647 == 1)
15509                       ? 1 : -1];
15510 int
15511 main ()
15512 {
15513
15514   ;
15515   return 0;
15516 }
15517 _ACEOF
15518 if ac_fn_c_try_compile "$LINENO"; then :
15519   ac_cv_sys_large_files=1; break
15520 fi
15521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15522   ac_cv_sys_large_files=unknown
15523   break
15524 done
15525 fi
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15527 $as_echo "$ac_cv_sys_large_files" >&6; }
15528 case $ac_cv_sys_large_files in #(
15529   no | unknown) ;;
15530   *)
15531 cat >>confdefs.h <<_ACEOF
15532 #define _LARGE_FILES $ac_cv_sys_large_files
15533 _ACEOF
15534 ;;
15535 esac
15536 rm -rf conftest*
15537   fi
15538
15539
15540 fi
15541
15542
15543
15544
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15546 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15547 cache=_D_LARGEFILE_SOURCE_1
15548 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15549   $as_echo_n "(cached) " >&6
15550 else
15551
15552 echo '
15553 #include <stdio.h>
15554 int test() {
15555         int a = fseeko(stdin, 0, 0);
15556         return a;
15557 }
15558 ' > conftest.c
15559 echo 'void f(){}' >>conftest.c
15560 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15561 eval "cv_prog_cc_flag_needed_$cache=no"
15562 else
15563
15564 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15565 eval "cv_prog_cc_flag_needed_$cache=yes"
15566 else
15567 eval "cv_prog_cc_flag_needed_$cache=fail"
15568 #echo 'Test with flag fails too!'
15569 #cat conftest.c
15570 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15571 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15572 #exit 1
15573 fi
15574
15575 fi
15576 rm -f conftest conftest.c conftest.o
15577
15578 fi
15579
15580 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15582 $as_echo "yes" >&6; }
15583 :
15584 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15585 else
15586 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15588 $as_echo "no" >&6; }
15589 #echo 'Test with flag is no!'
15590 #cat conftest.c
15591 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15592 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15593 #exit 1
15594 :
15595
15596 else
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15598 $as_echo "failed" >&6; }
15599 :
15600
15601 fi
15602 fi
15603
15604
15605
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
15607 $as_echo_n "checking if nonblocking sockets work... " >&6; }
15608 if echo $target | grep mingw32 >/dev/null; then
15609         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
15610 $as_echo "no (windows)" >&6; }
15611
15612 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15613
15614 else
15615 if test "$cross_compiling" = yes; then :
15616
15617         { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
15618 $as_echo "crosscompile(yes)" >&6; }
15619
15620 else
15621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h.  */
15623
15624
15625 #include <stdio.h>
15626 #include <string.h>
15627 #include <stdlib.h>
15628 #include <fcntl.h>
15629 #include <errno.h>
15630 #ifdef HAVE_SYS_TYPES_H
15631 #include <sys/types.h>
15632 #endif
15633 #ifdef HAVE_SYS_SOCKET_H
15634 #include <sys/socket.h>
15635 #endif
15636 #ifdef HAVE_NETINET_IN_H
15637 #include <netinet/in.h>
15638 #endif
15639 #ifdef HAVE_ARPA_INET_H
15640 #include <arpa/inet.h>
15641 #endif
15642 #ifdef HAVE_UNISTD_H
15643 #include <unistd.h>
15644 #endif
15645 #ifdef HAVE_TIME_H
15646 #include <time.h>
15647 #endif
15648
15649 int main(void)
15650 {
15651         int port;
15652         int sfd, cfd;
15653         int num = 10;
15654         int i, p;
15655         struct sockaddr_in a;
15656         /* test if select and nonblocking reads work well together */
15657         /* open port.
15658            fork child to send 10 messages.
15659            select to read.
15660            then try to nonblocking read the 10 messages
15661            then, nonblocking read must give EAGAIN
15662         */
15663
15664         port = 12345 + (time(0)%32);
15665         sfd = socket(PF_INET, SOCK_DGRAM, 0);
15666         if(sfd == -1) {
15667                 perror("socket");
15668                 return 1;
15669         }
15670         memset(&a, 0, sizeof(a));
15671         a.sin_family = AF_INET;
15672         a.sin_port = htons(port);
15673         a.sin_addr.s_addr = inet_addr("127.0.0.1");
15674         if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15675                 perror("bind");
15676                 return 1;
15677         }
15678         if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
15679                 perror("fcntl");
15680                 return 1;
15681         }
15682
15683         cfd = socket(PF_INET, SOCK_DGRAM, 0);
15684         if(cfd == -1) {
15685                 perror("client socket");
15686                 return 1;
15687         }
15688         a.sin_port = 0;
15689         if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15690                 perror("client bind");
15691                 return 1;
15692         }
15693         a.sin_port = htons(port);
15694
15695         /* no handler, causes exit in 10 seconds */
15696         alarm(10);
15697
15698         /* send and receive on the socket */
15699         if((p=fork()) == 0) {
15700                 for(i=0; i<num; i++) {
15701                         if(sendto(cfd, &i, sizeof(i), 0,
15702                                 (struct sockaddr*)&a, sizeof(a)) < 0) {
15703                                 perror("sendto");
15704                                 return 1;
15705                         }
15706                 }
15707         } else {
15708                 /* parent */
15709                 fd_set rset;
15710                 int x;
15711                 if(p == -1) {
15712                         perror("fork");
15713                         return 1;
15714                 }
15715                 FD_ZERO(&rset);
15716                 FD_SET(sfd, &rset);
15717                 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
15718                         perror("select");
15719                         return 1;
15720                 }
15721                 i = 0;
15722                 while(i < num) {
15723                         if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
15724                                 if(errno == EAGAIN)
15725                                         continue;
15726                                 perror("recv");
15727                                 return 1;
15728                         }
15729                         i++;
15730                 }
15731                 /* now we want to get EAGAIN: nonblocking goodness */
15732                 errno = 0;
15733                 recv(sfd, &x, sizeof(x), 0);
15734                 if(errno != EAGAIN) {
15735                         perror("trying to recv again");
15736                         return 1;
15737                 }
15738                 /* EAGAIN encountered */
15739         }
15740
15741         close(sfd);
15742         close(cfd);
15743         return 0;
15744 }
15745
15746 _ACEOF
15747 if ac_fn_c_try_run "$LINENO"; then :
15748
15749         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15750 $as_echo "yes" >&6; }
15751
15752 else
15753
15754         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15755 $as_echo "no" >&6; }
15756
15757 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15758
15759
15760 fi
15761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15762   conftest.$ac_objext conftest.beam conftest.$ac_ext
15763 fi
15764
15765 fi
15766
15767
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
15769 $as_echo_n "checking whether mkdir has one arg... " >&6; }
15770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15771 /* end confdefs.h.  */
15772
15773 #include <stdio.h>
15774 #include <unistd.h>
15775 #ifdef HAVE_WINSOCK2_H
15776 #include <winsock2.h>
15777 #endif
15778 #ifdef HAVE_SYS_STAT_H
15779 #include <sys/stat.h>
15780 #endif
15781
15782 int
15783 main ()
15784 {
15785
15786         (void)mkdir("directory");
15787
15788   ;
15789   return 0;
15790 }
15791 _ACEOF
15792 if ac_fn_c_try_compile "$LINENO"; then :
15793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15794 $as_echo "yes" >&6; }
15795
15796 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
15797
15798
15799 else
15800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15801 $as_echo "no" >&6; }
15802
15803 fi
15804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15805
15806 for ac_func in strptime
15807 do :
15808   ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
15809 if test "x$ac_cv_func_strptime" = xyes; then :
15810   cat >>confdefs.h <<_ACEOF
15811 #define HAVE_STRPTIME 1
15812 _ACEOF
15813
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
15815 $as_echo_n "checking whether strptime works... " >&6; }
15816 if test c${cross_compiling} = cno; then
15817 if test "$cross_compiling" = yes; then :
15818   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15820 as_fn_error $? "cannot run test program while cross compiling
15821 See \`config.log' for more details" "$LINENO" 5; }
15822 else
15823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824 /* end confdefs.h.  */
15825
15826 #define _XOPEN_SOURCE 600
15827 #include <time.h>
15828 int main(void) { struct tm tm; char *res;
15829 res = strptime("2010-07-15T00:00:00+00:00", "%t%Y%t-%t%m%t-%t%d%tT%t%H%t:%t%M%t:%t%S%t", &tm);
15830 if (!res) return 2;
15831 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
15832 if (!res) return 1; return 0; }
15833
15834 _ACEOF
15835 if ac_fn_c_try_run "$LINENO"; then :
15836   eval "ac_cv_c_strptime_works=yes"
15837 else
15838   eval "ac_cv_c_strptime_works=no"
15839 fi
15840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15841   conftest.$ac_objext conftest.beam conftest.$ac_ext
15842 fi
15843
15844 else
15845 eval "ac_cv_c_strptime_works=maybe"
15846 fi
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
15848 $as_echo "$ac_cv_c_strptime_works" >&6; }
15849 if test $ac_cv_c_strptime_works = no; then
15850 case " $LIBOBJS " in
15851   *" strptime.$ac_objext "* ) ;;
15852   *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15853  ;;
15854 esac
15855
15856 else
15857
15858 cat >>confdefs.h <<_ACEOF
15859 #define STRPTIME_WORKS 1
15860 _ACEOF
15861
15862 fi
15863
15864 else
15865   case " $LIBOBJS " in
15866   *" strptime.$ac_objext "* ) ;;
15867   *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15868  ;;
15869 esac
15870
15871 fi
15872 done
15873
15874
15875 # set memory allocation checking if requested
15876 # Check whether --enable-alloc-checks was given.
15877 if test "${enable_alloc_checks+set}" = set; then :
15878   enableval=$enable_alloc_checks;
15879 fi
15880
15881 # Check whether --enable-alloc-lite was given.
15882 if test "${enable_alloc_lite+set}" = set; then :
15883   enableval=$enable_alloc_lite;
15884 fi
15885
15886 # Check whether --enable-alloc-nonregional was given.
15887 if test "${enable_alloc_nonregional+set}" = set; then :
15888   enableval=$enable_alloc_nonregional;
15889 fi
15890
15891 if test x_$enable_alloc_nonregional = x_yes; then
15892
15893 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
15894
15895 fi
15896 if test x_$enable_alloc_checks = x_yes; then
15897
15898 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
15899
15900 else
15901         if test x_$enable_alloc_lite = x_yes; then
15902
15903 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
15904
15905         else
15906
15907         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15908 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15909         if test "$cross_compiling" = yes; then :
15910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
15911 $as_echo "no (crosscompile)" >&6; }
15912         case " $LIBOBJS " in
15913   *" malloc.$ac_objext "* ) ;;
15914   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15915  ;;
15916 esac
15917
15918
15919 cat >>confdefs.h <<_ACEOF
15920 #define malloc rpl_malloc_unbound
15921 _ACEOF
15922
15923 else
15924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h.  */
15926 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15927 #include <stdlib.h>
15928 #else
15929 char *malloc ();
15930 #endif
15931
15932 int
15933 main ()
15934 {
15935  if(malloc(0) != 0) return 1;
15936   ;
15937   return 0;
15938 }
15939
15940 _ACEOF
15941 if ac_fn_c_try_run "$LINENO"; then :
15942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15943 $as_echo "no" >&6; }
15944         case " $LIBOBJS " in
15945   *" malloc.$ac_objext "* ) ;;
15946   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15947  ;;
15948 esac
15949
15950
15951 cat >>confdefs.h <<_ACEOF
15952 #define malloc rpl_malloc_unbound
15953 _ACEOF
15954
15955 else
15956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15957 $as_echo "yes" >&6; }
15958
15959 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15960
15961 fi
15962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15963   conftest.$ac_objext conftest.beam conftest.$ac_ext
15964 fi
15965
15966
15967         fi
15968 fi
15969
15970 # check windows threads (we use them, not pthreads, on windows).
15971 if test "$on_mingw" = "yes"; then
15972 # check windows threads
15973         for ac_header in windows.h
15974 do :
15975   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15976 "
15977 if test "x$ac_cv_header_windows_h" = xyes; then :
15978   cat >>confdefs.h <<_ACEOF
15979 #define HAVE_WINDOWS_H 1
15980 _ACEOF
15981
15982 fi
15983
15984 done
15985
15986         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
15987 $as_echo_n "checking for CreateThread... " >&6; }
15988         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15989 /* end confdefs.h.  */
15990
15991 #ifdef HAVE_WINDOWS_H
15992 #include <windows.h>
15993 #endif
15994
15995 int
15996 main ()
15997 {
15998
15999         HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
16000
16001   ;
16002   return 0;
16003 }
16004 _ACEOF
16005 if ac_fn_c_try_compile "$LINENO"; then :
16006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16007 $as_echo "yes" >&6; }
16008
16009 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
16010
16011
16012 else
16013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16014 $as_echo "no" >&6; }
16015
16016 fi
16017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16018
16019 else
16020 # not on mingw, check thread libraries.
16021
16022 # check for thread library.
16023 # check this first, so that the pthread lib does not get linked in via
16024 # libssl or libpython, and thus distorts the tests, and we end up using
16025 # the non-threadsafe C libraries.
16026
16027 # Check whether --with-pthreads was given.
16028 if test "${with_pthreads+set}" = set; then :
16029   withval=$with_pthreads;
16030 else
16031    withval="yes"
16032 fi
16033
16034 ub_have_pthreads=no
16035 if test x_$withval != x_no; then
16036
16037
16038 ac_ext=c
16039 ac_cpp='$CPP $CPPFLAGS'
16040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16043
16044 ax_pthread_ok=no
16045
16046 # We used to check for pthread.h first, but this fails if pthread.h
16047 # requires special compiler flags (e.g. on True64 or Sequent).
16048 # It gets checked for in the link test anyway.
16049
16050 # First of all, check if the user has set any of the PTHREAD_LIBS,
16051 # etcetera environment variables, and if threads linking works using
16052 # them:
16053 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16054         save_CFLAGS="$CFLAGS"
16055         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16056         save_LIBS="$LIBS"
16057         LIBS="$PTHREAD_LIBS $LIBS"
16058         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16059 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16060         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h.  */
16062
16063 /* Override any GCC internal prototype to avoid an error.
16064    Use char because int might match the return type of a GCC
16065    builtin and then its argument prototype would still apply.  */
16066 #ifdef __cplusplus
16067 extern "C"
16068 #endif
16069 char pthread_join ();
16070 int
16071 main ()
16072 {
16073 return pthread_join ();
16074   ;
16075   return 0;
16076 }
16077 _ACEOF
16078 if ac_fn_c_try_link "$LINENO"; then :
16079   ax_pthread_ok=yes
16080 fi
16081 rm -f core conftest.err conftest.$ac_objext \
16082     conftest$ac_exeext conftest.$ac_ext
16083         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16084 $as_echo "$ax_pthread_ok" >&6; }
16085         if test x"$ax_pthread_ok" = xno; then
16086                 PTHREAD_LIBS=""
16087                 PTHREAD_CFLAGS=""
16088         fi
16089         LIBS="$save_LIBS"
16090         CFLAGS="$save_CFLAGS"
16091 fi
16092
16093 # We must check for the threads library under a number of different
16094 # names; the ordering is very important because some systems
16095 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16096 # libraries is broken (non-POSIX).
16097
16098 # Create a list of thread flags to try.  Items starting with a "-" are
16099 # C compiler flags, and other items are library names, except for "none"
16100 # which indicates that we try without any flags at all, and "pthread-config"
16101 # which is a program returning the flags for the Pth emulation library.
16102
16103 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16104
16105 # The ordering *is* (sometimes) important.  Some notes on the
16106 # individual items follow:
16107
16108 # pthreads: AIX (must check this before -lpthread)
16109 # none: in case threads are in libc; should be tried before -Kthread and
16110 #       other compiler flags to prevent continual compiler warnings
16111 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16112 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16113 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16114 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16115 # -pthreads: Solaris/gcc
16116 # -mthreads: Mingw32/gcc, Lynx/gcc
16117 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16118 #      doesn't hurt to check since this sometimes defines pthreads too;
16119 #      also defines -D_REENTRANT)
16120 #      ... -mt is also the pthreads flag for HP/aCC
16121 # pthread: Linux, etcetera
16122 # --thread-safe: KAI C++
16123 # pthread-config: use pthread-config program (for GNU Pth library)
16124
16125 case ${host_os} in
16126         solaris*)
16127
16128         # On Solaris (at least, for some versions), libc contains stubbed
16129         # (non-functional) versions of the pthreads routines, so link-based
16130         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16131         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16132         # a function called by this macro, so we could check for that, but
16133         # who knows whether they'll stub that too in a future libc.)  So,
16134         # we'll just look for -pthreads and -lpthread first:
16135
16136         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16137         ;;
16138
16139         darwin*)
16140         ax_pthread_flags="-pthread $ax_pthread_flags"
16141         ;;
16142 esac
16143
16144 # Clang doesn't consider unrecognized options an error unless we specify
16145 # -Werror. We throw in some extra Clang-specific options to ensure that
16146 # this doesn't happen for GCC, which also accepts -Werror.
16147
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16149 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16150 save_CFLAGS="$CFLAGS"
16151 ax_pthread_extra_flags="-Werror"
16152 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154 /* end confdefs.h.  */
16155 int foo(void);
16156 int
16157 main ()
16158 {
16159 foo()
16160   ;
16161   return 0;
16162 }
16163 _ACEOF
16164 if ac_fn_c_try_compile "$LINENO"; then :
16165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16166 $as_echo "yes" >&6; }
16167 else
16168   ax_pthread_extra_flags=
16169                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16170 $as_echo "no" >&6; }
16171 fi
16172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16173 CFLAGS="$save_CFLAGS"
16174
16175 if test x"$ax_pthread_ok" = xno; then
16176 for flag in $ax_pthread_flags; do
16177
16178         case $flag in
16179                 none)
16180                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16181 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16182                 ;;
16183
16184                 -*)
16185                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16186 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16187                 PTHREAD_CFLAGS="$flag"
16188                 ;;
16189
16190                 pthread-config)
16191                 # Extract the first word of "pthread-config", so it can be a program name with args.
16192 set dummy pthread-config; ac_word=$2
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16194 $as_echo_n "checking for $ac_word... " >&6; }
16195 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16196   $as_echo_n "(cached) " >&6
16197 else
16198   if test -n "$ax_pthread_config"; then
16199   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16200 else
16201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16202 for as_dir in $PATH
16203 do
16204   IFS=$as_save_IFS
16205   test -z "$as_dir" && as_dir=.
16206     for ac_exec_ext in '' $ac_executable_extensions; do
16207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16208     ac_cv_prog_ax_pthread_config="yes"
16209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16210     break 2
16211   fi
16212 done
16213   done
16214 IFS=$as_save_IFS
16215
16216   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16217 fi
16218 fi
16219 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16220 if test -n "$ax_pthread_config"; then
16221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16222 $as_echo "$ax_pthread_config" >&6; }
16223 else
16224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16225 $as_echo "no" >&6; }
16226 fi
16227
16228
16229                 if test x"$ax_pthread_config" = xno; then continue; fi
16230                 PTHREAD_CFLAGS="`pthread-config --cflags`"
16231                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16232                 ;;
16233
16234                 *)
16235                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16236 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16237                 PTHREAD_LIBS="-l$flag"
16238                 ;;
16239         esac
16240
16241         save_LIBS="$LIBS"
16242         save_CFLAGS="$CFLAGS"
16243         LIBS="$PTHREAD_LIBS $LIBS"
16244         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16245
16246         # Check for various functions.  We must include pthread.h,
16247         # since some functions may be macros.  (On the Sequent, we
16248         # need a special flag -Kthread to make this header compile.)
16249         # We check for pthread_join because it is in -lpthread on IRIX
16250         # while pthread_create is in libc.  We check for pthread_attr_init
16251         # due to DEC craziness with -lpthreads.  We check for
16252         # pthread_cleanup_push because it is one of the few pthread
16253         # functions on Solaris that doesn't have a non-functional libc stub.
16254         # We try pthread_create on general principles.
16255         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16256 /* end confdefs.h.  */
16257 #include <pthread.h>
16258                         static void routine(void *a) { *((int*)a) = 0; }
16259                         static void *start_routine(void *a) { return a; }
16260 int
16261 main ()
16262 {
16263 pthread_t th; pthread_attr_t attr;
16264                         pthread_create(&th, 0, start_routine, 0);
16265                         pthread_join(th, 0);
16266                         pthread_attr_init(&attr);
16267                         pthread_cleanup_push(routine, 0);
16268                         pthread_cleanup_pop(0) /* ; */
16269   ;
16270   return 0;
16271 }
16272 _ACEOF
16273 if ac_fn_c_try_link "$LINENO"; then :
16274   ax_pthread_ok=yes
16275 fi
16276 rm -f core conftest.err conftest.$ac_objext \
16277     conftest$ac_exeext conftest.$ac_ext
16278
16279         LIBS="$save_LIBS"
16280         CFLAGS="$save_CFLAGS"
16281
16282         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16283 $as_echo "$ax_pthread_ok" >&6; }
16284         if test "x$ax_pthread_ok" = xyes; then
16285                 break;
16286         fi
16287
16288         PTHREAD_LIBS=""
16289         PTHREAD_CFLAGS=""
16290 done
16291 fi
16292
16293 # Various other checks:
16294 if test "x$ax_pthread_ok" = xyes; then
16295         save_LIBS="$LIBS"
16296         LIBS="$PTHREAD_LIBS $LIBS"
16297         save_CFLAGS="$CFLAGS"
16298         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16299
16300         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16301         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16302 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16303         attr_name=unknown
16304         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16305             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306 /* end confdefs.h.  */
16307 #include <pthread.h>
16308 int
16309 main ()
16310 {
16311 int attr = $attr; return attr /* ; */
16312   ;
16313   return 0;
16314 }
16315 _ACEOF
16316 if ac_fn_c_try_link "$LINENO"; then :
16317   attr_name=$attr; break
16318 fi
16319 rm -f core conftest.err conftest.$ac_objext \
16320     conftest$ac_exeext conftest.$ac_ext
16321         done
16322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16323 $as_echo "$attr_name" >&6; }
16324         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16325
16326 cat >>confdefs.h <<_ACEOF
16327 #define PTHREAD_CREATE_JOINABLE $attr_name
16328 _ACEOF
16329
16330         fi
16331
16332         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16333 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16334         flag=no
16335         case ${host_os} in
16336             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16337             osf* | hpux*) flag="-D_REENTRANT";;
16338             solaris*)
16339             if test "$GCC" = "yes"; then
16340                 flag="-D_REENTRANT"
16341             else
16342                 # TODO: What about Clang on Solaris?
16343                 flag="-mt -D_REENTRANT"
16344             fi
16345             ;;
16346         esac
16347         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16348 $as_echo "$flag" >&6; }
16349         if test "x$flag" != xno; then
16350             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16351         fi
16352
16353         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16354 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16355 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16356   $as_echo_n "(cached) " >&6
16357 else
16358
16359                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h.  */
16361 #include <pthread.h>
16362 int
16363 main ()
16364 {
16365 int i = PTHREAD_PRIO_INHERIT;
16366   ;
16367   return 0;
16368 }
16369 _ACEOF
16370 if ac_fn_c_try_link "$LINENO"; then :
16371   ax_cv_PTHREAD_PRIO_INHERIT=yes
16372 else
16373   ax_cv_PTHREAD_PRIO_INHERIT=no
16374 fi
16375 rm -f core conftest.err conftest.$ac_objext \
16376     conftest$ac_exeext conftest.$ac_ext
16377
16378 fi
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16380 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16381         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16382
16383 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16384
16385 fi
16386
16387         LIBS="$save_LIBS"
16388         CFLAGS="$save_CFLAGS"
16389
16390         # More AIX lossage: compile with *_r variant
16391         if test "x$GCC" != xyes; then
16392             case $host_os in
16393                 aix*)
16394                 case "x/$CC" in #(
16395   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16396     #handle absolute path differently from PATH based program lookup
16397                    case "x$CC" in #(
16398   x/*) :
16399     if as_fn_executable_p ${CC}_r; then :
16400   PTHREAD_CC="${CC}_r"
16401 fi ;; #(
16402   *) :
16403     for ac_prog in ${CC}_r
16404 do
16405   # Extract the first word of "$ac_prog", so it can be a program name with args.
16406 set dummy $ac_prog; ac_word=$2
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16408 $as_echo_n "checking for $ac_word... " >&6; }
16409 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16410   $as_echo_n "(cached) " >&6
16411 else
16412   if test -n "$PTHREAD_CC"; then
16413   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16414 else
16415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16416 for as_dir in $PATH
16417 do
16418   IFS=$as_save_IFS
16419   test -z "$as_dir" && as_dir=.
16420     for ac_exec_ext in '' $ac_executable_extensions; do
16421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16422     ac_cv_prog_PTHREAD_CC="$ac_prog"
16423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16424     break 2
16425   fi
16426 done
16427   done
16428 IFS=$as_save_IFS
16429
16430 fi
16431 fi
16432 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16433 if test -n "$PTHREAD_CC"; then
16434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16435 $as_echo "$PTHREAD_CC" >&6; }
16436 else
16437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16438 $as_echo "no" >&6; }
16439 fi
16440
16441
16442   test -n "$PTHREAD_CC" && break
16443 done
16444 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16445  ;;
16446 esac ;; #(
16447   *) :
16448      ;;
16449 esac
16450                 ;;
16451             esac
16452         fi
16453 fi
16454
16455 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16456
16457
16458
16459
16460
16461 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16462 if test x"$ax_pthread_ok" = xyes; then
16463
16464
16465 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16466
16467                 LIBS="$PTHREAD_LIBS $LIBS"
16468                 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16469                 CC="$PTHREAD_CC"
16470                 ub_have_pthreads=yes
16471                 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
16472 "
16473 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
16474
16475 cat >>confdefs.h <<_ACEOF
16476 #define HAVE_PTHREAD_SPINLOCK_T 1
16477 _ACEOF
16478
16479
16480 fi
16481 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
16482 "
16483 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
16484
16485 cat >>confdefs.h <<_ACEOF
16486 #define HAVE_PTHREAD_RWLOCK_T 1
16487 _ACEOF
16488
16489
16490 fi
16491
16492
16493                 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
16494                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
16495 $as_echo_n "checking if -pthread unused during linking... " >&6; }
16496                 # catch clang warning 'argument unused during compilation'
16497                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498 /* end confdefs.h.  */
16499 $ac_includes_default
16500
16501 int main(void) {return 0;}
16502
16503 _ACEOF
16504                 pthread_unused="yes"
16505                 # first compile
16506                 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
16507                 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
16508                 if test $? = 0; then
16509                         # then link
16510                         echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
16511                         $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
16512                         if test $? -ne 0; then
16513                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16514 $as_echo "yes" >&6; }
16515                                 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
16516                                 PTHREAD_CFLAGS_ONLY="-pthread"
16517
16518                         else
16519                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16520 $as_echo "no" >&6; }
16521                         fi
16522                 else
16523                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16524 $as_echo "no" >&6; }
16525                 fi # endif cc successful
16526                 rm -f conftest conftest.c conftest.o
16527                 fi # endif -pthread in CFLAGS
16528
16529
16530         :
16531 else
16532         ax_pthread_ok=no
16533
16534 fi
16535 ac_ext=c
16536 ac_cpp='$CPP $CPPFLAGS'
16537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16540
16541
16542 fi
16543
16544 # check solaris thread library
16545
16546 # Check whether --with-solaris-threads was given.
16547 if test "${with_solaris_threads+set}" = set; then :
16548   withval=$with_solaris_threads;
16549 else
16550    withval="no"
16551 fi
16552
16553 ub_have_sol_threads=no
16554 if test x_$withval != x_no; then
16555         if test x_$ub_have_pthreads != x_no; then
16556             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
16557 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
16558         else
16559         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
16560 $as_echo_n "checking for library containing thr_create... " >&6; }
16561 if ${ac_cv_search_thr_create+:} false; then :
16562   $as_echo_n "(cached) " >&6
16563 else
16564   ac_func_search_save_LIBS=$LIBS
16565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16566 /* end confdefs.h.  */
16567
16568 /* Override any GCC internal prototype to avoid an error.
16569    Use char because int might match the return type of a GCC
16570    builtin and then its argument prototype would still apply.  */
16571 #ifdef __cplusplus
16572 extern "C"
16573 #endif
16574 char thr_create ();
16575 int
16576 main ()
16577 {
16578 return thr_create ();
16579   ;
16580   return 0;
16581 }
16582 _ACEOF
16583 for ac_lib in '' thread; do
16584   if test -z "$ac_lib"; then
16585     ac_res="none required"
16586   else
16587     ac_res=-l$ac_lib
16588     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16589   fi
16590   if ac_fn_c_try_link "$LINENO"; then :
16591   ac_cv_search_thr_create=$ac_res
16592 fi
16593 rm -f core conftest.err conftest.$ac_objext \
16594     conftest$ac_exeext
16595   if ${ac_cv_search_thr_create+:} false; then :
16596   break
16597 fi
16598 done
16599 if ${ac_cv_search_thr_create+:} false; then :
16600
16601 else
16602   ac_cv_search_thr_create=no
16603 fi
16604 rm conftest.$ac_ext
16605 LIBS=$ac_func_search_save_LIBS
16606 fi
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
16608 $as_echo "$ac_cv_search_thr_create" >&6; }
16609 ac_res=$ac_cv_search_thr_create
16610 if test "$ac_res" != no; then :
16611   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16612
16613
16614 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
16615
16616
16617
16618
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
16620 $as_echo_n "checking whether $CC supports -mt... " >&6; }
16621 cache=`echo mt | sed 'y%.=/+-%___p_%'`
16622 if eval \${cv_prog_cc_flag_$cache+:} false; then :
16623   $as_echo_n "(cached) " >&6
16624 else
16625
16626 echo 'void f(void){}' >conftest.c
16627 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
16628 eval "cv_prog_cc_flag_$cache=yes"
16629 else
16630 eval "cv_prog_cc_flag_$cache=no"
16631 fi
16632 rm -f conftest conftest.o conftest.c
16633
16634 fi
16635
16636 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16638 $as_echo "yes" >&6; }
16639 :
16640 CFLAGS="$CFLAGS -mt"
16641 else
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16643 $as_echo "no" >&6; }
16644 :
16645 CFLAGS="$CFLAGS -D_REENTRANT"
16646 fi
16647
16648                 ub_have_sol_threads=yes
16649
16650 else
16651
16652                 as_fn_error $? "no solaris threads found." "$LINENO" 5
16653
16654 fi
16655
16656         fi
16657 fi
16658
16659 fi # end of non-mingw check of thread libraries
16660
16661 # Check for PyUnbound
16662
16663 # Check whether --with-pyunbound was given.
16664 if test "${with_pyunbound+set}" = set; then :
16665   withval=$with_pyunbound;
16666 else
16667    withval="no"
16668 fi
16669
16670
16671 ub_test_python=no
16672 ub_with_pyunbound=no
16673 if test x_$withval != x_no; then
16674    ub_with_pyunbound=yes
16675    ub_test_python=yes
16676 fi
16677
16678 # Check for Python module
16679
16680 # Check whether --with-pythonmodule was given.
16681 if test "${with_pythonmodule+set}" = set; then :
16682   withval=$with_pythonmodule;
16683 else
16684    withval="no"
16685 fi
16686
16687
16688 ub_with_pythonmod=no
16689 if test x_$withval != x_no; then
16690    ub_with_pythonmod=yes
16691    ub_test_python=yes
16692 fi
16693
16694 # Check for Python & SWIG only on PyUnbound or PyModule
16695 if test x_$ub_test_python != x_no; then
16696
16697    # Check for Python
16698    ub_have_python=no
16699    ac_save_LIBS="$LIBS"
16700         #
16701         # Allow the use of a (user set) custom python version
16702         #
16703
16704
16705         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
16706 set dummy python$PYTHON_VERSION; ac_word=$2
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16708 $as_echo_n "checking for $ac_word... " >&6; }
16709 if ${ac_cv_path_PYTHON+:} false; then :
16710   $as_echo_n "(cached) " >&6
16711 else
16712   case $PYTHON in
16713   [\\/]* | ?:[\\/]*)
16714   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16715   ;;
16716   *)
16717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16718 for as_dir in $PATH
16719 do
16720   IFS=$as_save_IFS
16721   test -z "$as_dir" && as_dir=.
16722     for ac_exec_ext in '' $ac_executable_extensions; do
16723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16724     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16726     break 2
16727   fi
16728 done
16729   done
16730 IFS=$as_save_IFS
16731
16732   ;;
16733 esac
16734 fi
16735 PYTHON=$ac_cv_path_PYTHON
16736 if test -n "$PYTHON"; then
16737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16738 $as_echo "$PYTHON" >&6; }
16739 else
16740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16741 $as_echo "no" >&6; }
16742 fi
16743
16744
16745         if test -z "$PYTHON"; then
16746            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
16747            PYTHON_VERSION=""
16748         fi
16749
16750         if test -z "$PYTHON_VERSION"; then
16751                 PYTHON_VERSION=`$PYTHON -c "import sys; \
16752                         print(sys.version.split()[0])"`
16753         fi
16754
16755         #
16756         # Check if you have distutils, else fail
16757         #
16758         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
16759 $as_echo_n "checking for the distutils Python package... " >&6; }
16760         if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then
16761                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16762 $as_echo "yes" >&6; }
16763         else
16764                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16765 $as_echo "no" >&6; }
16766                 as_fn_error $? "cannot import Python module \"distutils\".
16767 Please check your Python installation. The error was:
16768 $ac_distutils_result" "$LINENO" 5
16769                 PYTHON_VERSION=""
16770         fi
16771
16772         #
16773         # Check for Python include path
16774         #
16775         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
16776 $as_echo_n "checking for Python include path... " >&6; }
16777         if test -z "$PYTHON_CPPFLAGS"; then
16778                 python_path=`$PYTHON -c "import distutils.sysconfig; \
16779                         print(distutils.sysconfig.get_python_inc());"`
16780                 if test -n "${python_path}"; then
16781                         python_path="-I$python_path"
16782                 fi
16783                 PYTHON_CPPFLAGS=$python_path
16784         fi
16785         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
16786 $as_echo "$PYTHON_CPPFLAGS" >&6; }
16787
16788
16789         #
16790         # Check for Python library path
16791         #
16792         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
16793 $as_echo_n "checking for Python library path... " >&6; }
16794         if test -z "$PYTHON_LDFLAGS"; then
16795                 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
16796                         print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
16797         fi
16798         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
16799 $as_echo "$PYTHON_LDFLAGS" >&6; }
16800
16801
16802         #
16803         # Check for site packages
16804         #
16805         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
16806 $as_echo_n "checking for Python site-packages path... " >&6; }
16807         if test -z "$PYTHON_SITE_PKG"; then
16808                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
16809                         print(distutils.sysconfig.get_python_lib(1,0));"`
16810         fi
16811         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
16812 $as_echo "$PYTHON_SITE_PKG" >&6; }
16813
16814
16815         #
16816         # final check to see if everything compiles alright
16817         #
16818         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16819 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
16820         ac_ext=c
16821 ac_cpp='$CPP $CPPFLAGS'
16822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16825
16826         # save current global flags
16827         ac_save_LIBS="$LIBS"
16828         ac_save_CPPFLAGS="$CPPFLAGS"
16829
16830         LIBS="$LIBS $PYTHON_LDFLAGS"
16831         CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16832         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16833 /* end confdefs.h.  */
16834
16835                 #include <Python.h>
16836
16837 int
16838 main ()
16839 {
16840
16841                 Py_Initialize();
16842
16843   ;
16844   return 0;
16845 }
16846 _ACEOF
16847 if ac_fn_c_try_link "$LINENO"; then :
16848   pythonexists=yes
16849 else
16850   pythonexists=no
16851 fi
16852 rm -f core conftest.err conftest.$ac_objext \
16853     conftest$ac_exeext conftest.$ac_ext
16854
16855         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16856 $as_echo "$pythonexists" >&6; }
16857
16858         if test ! "$pythonexists" = "yes"; then
16859            as_fn_error $? "
16860   Could not link test program to Python. Maybe the main Python library has been
16861   installed in some non-standard library path. If so, pass it to configure,
16862   via the LDFLAGS environment variable.
16863   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
16864   ============================================================================
16865    ERROR!
16866    You probably have to install the development version of the Python package
16867    for your distribution.  The exact name of this package varies among them.
16868   ============================================================================
16869            " "$LINENO" 5
16870           PYTHON_VERSION=""
16871         fi
16872         ac_ext=c
16873 ac_cpp='$CPP $CPPFLAGS'
16874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16877
16878         # turn back to default flags
16879         CPPFLAGS="$ac_save_CPPFLAGS"
16880         LIBS="$ac_save_LIBS"
16881
16882         #
16883         # all done!
16884         #
16885
16886    if test ! -z "$PYTHON_VERSION"; then
16887         if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
16888                 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
16889         fi
16890
16891       PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
16892
16893       # Have Python
16894
16895 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
16896
16897       LIBS="$PYTHON_LDFLAGS $LIBS"
16898       CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16899       ub_have_python=yes
16900       PC_PY_DEPENDENCY="python"
16901
16902
16903       # Check for SWIG
16904       ub_have_swig=no
16905
16906         # Extract the first word of "swig", so it can be a program name with args.
16907 set dummy swig; ac_word=$2
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16909 $as_echo_n "checking for $ac_word... " >&6; }
16910 if ${ac_cv_path_SWIG+:} false; then :
16911   $as_echo_n "(cached) " >&6
16912 else
16913   case $SWIG in
16914   [\\/]* | ?:[\\/]*)
16915   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
16916   ;;
16917   *)
16918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16919 for as_dir in $PATH
16920 do
16921   IFS=$as_save_IFS
16922   test -z "$as_dir" && as_dir=.
16923     for ac_exec_ext in '' $ac_executable_extensions; do
16924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16925     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
16926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16927     break 2
16928   fi
16929 done
16930   done
16931 IFS=$as_save_IFS
16932
16933   ;;
16934 esac
16935 fi
16936 SWIG=$ac_cv_path_SWIG
16937 if test -n "$SWIG"; then
16938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
16939 $as_echo "$SWIG" >&6; }
16940 else
16941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16942 $as_echo "no" >&6; }
16943 fi
16944
16945
16946         if test -z "$SWIG" ; then
16947                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
16948 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
16949                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
16950         elif test -n "2.0.1" ; then
16951                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
16952 $as_echo_n "checking for SWIG version... " >&6; }
16953                 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
16954                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
16955 $as_echo "$swig_version" >&6; }
16956                 if test -n "$swig_version" ; then
16957                         # Calculate the required version number components
16958                         required=2.0.1
16959                         required_major=`echo $required | sed 's/[^0-9].*//'`
16960                         if test -z "$required_major" ; then
16961                                 required_major=0
16962                         fi
16963                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16964                         required_minor=`echo $required | sed 's/[^0-9].*//'`
16965                         if test -z "$required_minor" ; then
16966                                 required_minor=0
16967                         fi
16968                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16969                         required_patch=`echo $required | sed 's/[^0-9].*//'`
16970                         if test -z "$required_patch" ; then
16971                                 required_patch=0
16972                         fi
16973                         # Calculate the available version number components
16974                         available=$swig_version
16975                         available_major=`echo $available | sed 's/[^0-9].*//'`
16976                         if test -z "$available_major" ; then
16977                                 available_major=0
16978                         fi
16979                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16980                         available_minor=`echo $available | sed 's/[^0-9].*//'`
16981                         if test -z "$available_minor" ; then
16982                                 available_minor=0
16983                         fi
16984                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16985                         available_patch=`echo $available | sed 's/[^0-9].*//'`
16986                         if test -z "$available_patch" ; then
16987                                 available_patch=0
16988                         fi
16989                         badversion=0
16990                         if test $available_major -lt $required_major ; then
16991                                 badversion=1
16992                         fi
16993                         if test $available_major -eq $required_major \
16994                                 -a $available_minor -lt $required_minor ; then
16995                                 badversion=1
16996                         fi
16997                         if test $available_major -eq $required_major \
16998                                 -a $available_minor -eq $required_minor \
16999                                 -a $available_patch -lt $required_patch ; then
17000                                 badversion=1
17001                         fi
17002                         if test $badversion -eq 1 ; then
17003                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.1 is required.  You have $swig_version.  You should look at http://www.swig.org" >&5
17004 $as_echo "$as_me: WARNING: SWIG version >= 2.0.1 is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
17005                                 SWIG='echo "Error: SWIG version >= 2.0.1 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
17006                         else
17007                                 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17008 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17009                                 SWIG_LIB=`$SWIG -swiglib`
17010                                 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17011 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17012                         fi
17013                 else
17014                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17015 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17016                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
17017                 fi
17018         fi
17019
17020
17021       { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
17022 $as_echo_n "checking SWIG... " >&6; }
17023       if test ! -x "$SWIG"; then
17024          as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
17025       else
17026
17027 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
17028
17029          swig="$SWIG"
17030
17031          { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
17032 $as_echo "present" >&6; }
17033
17034          # If have Python & SWIG
17035          # Declare PythonMod
17036          if test x_$ub_with_pythonmod != x_no; then
17037
17038 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
17039
17040             WITH_PYTHONMODULE=yes
17041
17042             PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
17043
17044             PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
17045
17046             PYTHONMOD_INSTALL=pythonmod-install
17047
17048             PYTHONMOD_UNINSTALL=pythonmod-uninstall
17049
17050          fi
17051
17052          # Declare PyUnbound
17053          if test x_$ub_with_pyunbound != x_no; then
17054
17055 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
17056
17057             WITH_PYUNBOUND=yes
17058
17059             PYUNBOUND_OBJ="libunbound_wrap.lo"
17060
17061             PYUNBOUND_TARGET="_unbound.la"
17062
17063             PYUNBOUND_INSTALL=pyunbound-install
17064
17065             PYUNBOUND_UNINSTALL=pyunbound-uninstall
17066
17067          fi
17068       fi
17069    else
17070       { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
17071 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
17072       ub_with_pyunbound=no
17073       ub_with_pythonmod=no
17074    fi
17075 fi
17076
17077 if test "`uname`" = "NetBSD"; then
17078         NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
17079
17080 fi
17081 CONFIG_DATE=`date +%Y%m%d`
17082
17083
17084 # Checks for libraries.
17085
17086 # libnss
17087 USE_NSS="no"
17088
17089 # Check whether --with-nss was given.
17090 if test "${with_nss+set}" = set; then :
17091   withval=$with_nss;
17092         USE_NSS="yes"
17093
17094 $as_echo "#define HAVE_NSS 1" >>confdefs.h
17095
17096         if test "$withval" != "" -a "$withval" != "yes"; then
17097                 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
17098                 LDFLAGS="$LDFLAGS -L$withval/lib"
17099
17100         if test "x$enable_rpath" = xyes; then
17101                 if echo "$withval/lib" | grep "^/" >/dev/null; then
17102                         RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17103                 fi
17104         fi
17105
17106                 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
17107         else
17108                 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
17109                 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
17110         fi
17111         LIBS="$LIBS -lnss3 -lnspr4"
17112         SSLLIB=""
17113
17114
17115 fi
17116
17117
17118 # libnettle
17119 USE_NETTLE="no"
17120
17121 # Check whether --with-nettle was given.
17122 if test "${with_nettle+set}" = set; then :
17123   withval=$with_nettle;
17124         USE_NETTLE="yes"
17125
17126 $as_echo "#define HAVE_NETTLE 1" >>confdefs.h
17127
17128         for ac_header in nettle/dsa-compat.h
17129 do :
17130   ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
17131 "
17132 if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
17133   cat >>confdefs.h <<_ACEOF
17134 #define HAVE_NETTLE_DSA_COMPAT_H 1
17135 _ACEOF
17136
17137 fi
17138
17139 done
17140
17141         if test "$withval" != "" -a "$withval" != "yes"; then
17142                 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
17143                 LDFLAGS="$LDFLAGS -L$withval/lib"
17144
17145         if test "x$enable_rpath" = xyes; then
17146                 if echo "$withval/lib" | grep "^/" >/dev/null; then
17147                         RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17148                 fi
17149         fi
17150
17151         else
17152                 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
17153         fi
17154         LIBS="$LIBS -lhogweed -lnettle -lgmp"
17155         SSLLIB=""
17156
17157
17158 fi
17159
17160
17161 # openssl
17162 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17163
17164
17165 # Check whether --with-ssl was given.
17166 if test "${with_ssl+set}" = set; then :
17167   withval=$with_ssl;
17168
17169 else
17170
17171             withval="yes"
17172
17173 fi
17174
17175     if test x_$withval = x_no; then
17176         as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
17177     fi
17178
17179     withval=$withval
17180     if test x_$withval != x_no; then
17181         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
17182 $as_echo_n "checking for SSL... " >&6; }
17183         if test x_$withval = x_ -o x_$withval = x_yes; then
17184             withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
17185         fi
17186         for dir in $withval; do
17187             ssldir="$dir"
17188             if test -f "$dir/include/openssl/ssl.h"; then
17189                 found_ssl="yes"
17190
17191 cat >>confdefs.h <<_ACEOF
17192 #define HAVE_SSL /**/
17193 _ACEOF
17194
17195                                 if test "$ssldir" != "/usr"; then
17196                         CPPFLAGS="$CPPFLAGS -I$ssldir/include"
17197                         LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
17198                 fi
17199                 break;
17200             fi
17201         done
17202         if test x_$found_ssl != x_yes; then
17203             as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
17204         else
17205             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
17206 $as_echo "found in $ssldir" >&6; }
17207             HAVE_SSL=yes
17208                         if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
17209                 LDFLAGS="$LDFLAGS -L$ssldir/lib"
17210                 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
17211
17212         if test "x$enable_rpath" = xyes; then
17213                 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
17214                         RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
17215                 fi
17216         fi
17217
17218             fi
17219
17220             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
17221 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
17222             LIBS="$LIBS -lcrypto"
17223             LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
17224             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17225 /* end confdefs.h.  */
17226
17227 int
17228 main ()
17229 {
17230
17231                 int HMAC_Update(void);
17232                 (void)HMAC_Update();
17233
17234   ;
17235   return 0;
17236 }
17237 _ACEOF
17238 if ac_fn_c_try_link "$LINENO"; then :
17239
17240                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17241 $as_echo "yes" >&6; }
17242
17243 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17244
17245
17246 else
17247
17248                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17249 $as_echo "no" >&6; }
17250                 # check if -lwsock32 or -lgdi32 are needed.
17251                 BAKLIBS="$LIBS"
17252                 BAKSSLLIBS="$LIBSSL_LIBS"
17253                 LIBS="$LIBS -lgdi32"
17254                 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
17255                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
17256 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
17257                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17258 /* end confdefs.h.  */
17259
17260 int
17261 main ()
17262 {
17263
17264                     int HMAC_Update(void);
17265                     (void)HMAC_Update();
17266
17267   ;
17268   return 0;
17269 }
17270 _ACEOF
17271 if ac_fn_c_try_link "$LINENO"; then :
17272
17273
17274 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17275
17276                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17277 $as_echo "yes" >&6; }
17278
17279 else
17280
17281                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17282 $as_echo "no" >&6; }
17283                     LIBS="$BAKLIBS"
17284                     LIBSSL_LIBS="$BAKSSLLIBS"
17285                     LIBS="$LIBS -ldl"
17286                     LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
17287                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
17288 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
17289                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17290 /* end confdefs.h.  */
17291
17292 int
17293 main ()
17294 {
17295
17296                         int HMAC_Update(void);
17297                         (void)HMAC_Update();
17298
17299   ;
17300   return 0;
17301 }
17302 _ACEOF
17303 if ac_fn_c_try_link "$LINENO"; then :
17304
17305
17306 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17307
17308                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17309 $as_echo "yes" >&6; }
17310
17311 else
17312
17313                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17314 $as_echo "no" >&6; }
17315                         LIBS="$BAKLIBS"
17316                         LIBSSL_LIBS="$BAKSSLLIBS"
17317                         LIBS="$LIBS -ldl -pthread"
17318                         LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
17319                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
17320 $as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
17321                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17322 /* end confdefs.h.  */
17323
17324 int
17325 main ()
17326 {
17327
17328                             int HMAC_Update(void);
17329                             (void)HMAC_Update();
17330
17331   ;
17332   return 0;
17333 }
17334 _ACEOF
17335 if ac_fn_c_try_link "$LINENO"; then :
17336
17337
17338 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17339
17340                             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17341 $as_echo "yes" >&6; }
17342
17343 else
17344
17345                             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17346 $as_echo "no" >&6; }
17347                             as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
17348
17349 fi
17350 rm -f core conftest.err conftest.$ac_objext \
17351     conftest$ac_exeext conftest.$ac_ext
17352
17353 fi
17354 rm -f core conftest.err conftest.$ac_objext \
17355     conftest$ac_exeext conftest.$ac_ext
17356
17357 fi
17358 rm -f core conftest.err conftest.$ac_objext \
17359     conftest$ac_exeext conftest.$ac_ext
17360
17361 fi
17362 rm -f core conftest.err conftest.$ac_objext \
17363     conftest$ac_exeext conftest.$ac_ext
17364         fi
17365
17366
17367     fi
17368 for ac_header in openssl/ssl.h
17369 do :
17370   ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
17371 "
17372 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
17373   cat >>confdefs.h <<_ACEOF
17374 #define HAVE_OPENSSL_SSL_H 1
17375 _ACEOF
17376
17377 fi
17378
17379 done
17380
17381 for ac_header in openssl/err.h
17382 do :
17383   ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
17384 "
17385 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
17386   cat >>confdefs.h <<_ACEOF
17387 #define HAVE_OPENSSL_ERR_H 1
17388 _ACEOF
17389
17390 fi
17391
17392 done
17393
17394 for ac_header in openssl/rand.h
17395 do :
17396   ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
17397 "
17398 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
17399   cat >>confdefs.h <<_ACEOF
17400 #define HAVE_OPENSSL_RAND_H 1
17401 _ACEOF
17402
17403 fi
17404
17405 done
17406
17407
17408
17409
17410 # check if libssl needs libdl
17411 BAKLIBS="$LIBS"
17412 LIBS="-lssl $LIBS"
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
17414 $as_echo_n "checking if libssl needs libdl... " >&6; }
17415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17416 /* end confdefs.h.  */
17417
17418 /* Override any GCC internal prototype to avoid an error.
17419    Use char because int might match the return type of a GCC
17420    builtin and then its argument prototype would still apply.  */
17421 #ifdef __cplusplus
17422 extern "C"
17423 #endif
17424 char SSL_CTX_new ();
17425 int
17426 main ()
17427 {
17428 return SSL_CTX_new ();
17429   ;
17430   return 0;
17431 }
17432 _ACEOF
17433 if ac_fn_c_try_link "$LINENO"; then :
17434
17435         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17436 $as_echo "no" >&6; }
17437         LIBS="$BAKLIBS"
17438
17439 else
17440
17441         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17442 $as_echo "yes" >&6; }
17443         LIBS="$BAKLIBS"
17444         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17445 $as_echo_n "checking for library containing dlopen... " >&6; }
17446 if ${ac_cv_search_dlopen+:} false; then :
17447   $as_echo_n "(cached) " >&6
17448 else
17449   ac_func_search_save_LIBS=$LIBS
17450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17451 /* end confdefs.h.  */
17452
17453 /* Override any GCC internal prototype to avoid an error.
17454    Use char because int might match the return type of a GCC
17455    builtin and then its argument prototype would still apply.  */
17456 #ifdef __cplusplus
17457 extern "C"
17458 #endif
17459 char dlopen ();
17460 int
17461 main ()
17462 {
17463 return dlopen ();
17464   ;
17465   return 0;
17466 }
17467 _ACEOF
17468 for ac_lib in '' dl; do
17469   if test -z "$ac_lib"; then
17470     ac_res="none required"
17471   else
17472     ac_res=-l$ac_lib
17473     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17474   fi
17475   if ac_fn_c_try_link "$LINENO"; then :
17476   ac_cv_search_dlopen=$ac_res
17477 fi
17478 rm -f core conftest.err conftest.$ac_objext \
17479     conftest$ac_exeext
17480   if ${ac_cv_search_dlopen+:} false; then :
17481   break
17482 fi
17483 done
17484 if ${ac_cv_search_dlopen+:} false; then :
17485
17486 else
17487   ac_cv_search_dlopen=no
17488 fi
17489 rm conftest.$ac_ext
17490 LIBS=$ac_func_search_save_LIBS
17491 fi
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17493 $as_echo "$ac_cv_search_dlopen" >&6; }
17494 ac_res=$ac_cv_search_dlopen
17495 if test "$ac_res" != no; then :
17496   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17497
17498 fi
17499
17500
17501 fi
17502 rm -f core conftest.err conftest.$ac_objext \
17503     conftest$ac_exeext conftest.$ac_ext
17504 SSLLIB="-lssl"
17505
17506 # check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
17507 BAKLIBS="$LIBS"
17508 LIBS="-lssl $LIBS"
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
17510 $as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
17511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17512 /* end confdefs.h.  */
17513
17514 /* Override any GCC internal prototype to avoid an error.
17515    Use char because int might match the return type of a GCC
17516    builtin and then its argument prototype would still apply.  */
17517 #ifdef __cplusplus
17518 extern "C"
17519 #endif
17520 char HMAC_Update ();
17521 int
17522 main ()
17523 {
17524 return HMAC_Update ();
17525   ;
17526   return 0;
17527 }
17528 _ACEOF
17529 if ac_fn_c_try_link "$LINENO"; then :
17530
17531         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17532 $as_echo "no" >&6; }
17533         LIBS="$BAKLIBS"
17534
17535 else
17536
17537         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17538 $as_echo "yes" >&6; }
17539         LIBS="$BAKLIBS"
17540         LIBS="$LIBS -lcrypt32"
17541
17542 fi
17543 rm -f core conftest.err conftest.$ac_objext \
17544     conftest$ac_exeext conftest.$ac_ext
17545
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
17547 $as_echo_n "checking for LibreSSL... " >&6; }
17548 if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
17549         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17550 $as_echo "yes" >&6; }
17551
17552 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
17553
17554         # libressl provides these compat functions, but they may also be
17555         # declared by the OS in libc.  See if they have been declared.
17556         ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
17557 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
17558   ac_have_decl=1
17559 else
17560   ac_have_decl=0
17561 fi
17562
17563 cat >>confdefs.h <<_ACEOF
17564 #define HAVE_DECL_STRLCPY $ac_have_decl
17565 _ACEOF
17566 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
17567 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
17568   ac_have_decl=1
17569 else
17570   ac_have_decl=0
17571 fi
17572
17573 cat >>confdefs.h <<_ACEOF
17574 #define HAVE_DECL_STRLCAT $ac_have_decl
17575 _ACEOF
17576 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
17577 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
17578   ac_have_decl=1
17579 else
17580   ac_have_decl=0
17581 fi
17582
17583 cat >>confdefs.h <<_ACEOF
17584 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
17585 _ACEOF
17586 ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
17587 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
17588   ac_have_decl=1
17589 else
17590   ac_have_decl=0
17591 fi
17592
17593 cat >>confdefs.h <<_ACEOF
17594 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
17595 _ACEOF
17596 ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
17597 if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
17598   ac_have_decl=1
17599 else
17600   ac_have_decl=0
17601 fi
17602
17603 cat >>confdefs.h <<_ACEOF
17604 #define HAVE_DECL_REALLOCARRAY $ac_have_decl
17605 _ACEOF
17606
17607 else
17608         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17609 $as_echo "no" >&6; }
17610 fi
17611 for ac_header in openssl/conf.h openssl/engine.h openssl/bn.h openssl/dh.h openssl/dsa.h openssl/rsa.h
17612 do :
17613   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17614 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17615 "
17616 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17617   cat >>confdefs.h <<_ACEOF
17618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17619 _ACEOF
17620
17621 fi
17622
17623 done
17624
17625 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode EVP_MD_CTX_new OpenSSL_add_all_digests OPENSSL_init_crypto EVP_cleanup ERR_load_crypto_strings CRYPTO_cleanup_all_ex_data ERR_free_strings RAND_cleanup DSA_SIG_set0 EVP_dss1 EVP_DigestVerify
17626 do :
17627   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17628 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17629 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17630   cat >>confdefs.h <<_ACEOF
17631 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17632 _ACEOF
17633
17634 fi
17635 done
17636
17637
17638 # these check_funcs need -lssl
17639 BAKLIBS="$LIBS"
17640 LIBS="-lssl $LIBS"
17641 for ac_func in OPENSSL_init_ssl SSL_CTX_set_security_level
17642 do :
17643   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17644 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17645 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17646   cat >>confdefs.h <<_ACEOF
17647 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17648 _ACEOF
17649
17650 fi
17651 done
17652
17653 LIBS="$BAKLIBS"
17654
17655 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
17656 $ac_includes_default
17657 #ifdef HAVE_OPENSSL_ERR_H
17658 #include <openssl/err.h>
17659 #endif
17660
17661 #ifdef HAVE_OPENSSL_RAND_H
17662 #include <openssl/rand.h>
17663 #endif
17664
17665 #ifdef HAVE_OPENSSL_CONF_H
17666 #include <openssl/conf.h>
17667 #endif
17668
17669 #ifdef HAVE_OPENSSL_ENGINE_H
17670 #include <openssl/engine.h>
17671 #endif
17672 #include <openssl/ssl.h>
17673 #include <openssl/evp.h>
17674
17675 "
17676 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
17677   ac_have_decl=1
17678 else
17679   ac_have_decl=0
17680 fi
17681
17682 cat >>confdefs.h <<_ACEOF
17683 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
17684 _ACEOF
17685 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
17686 $ac_includes_default
17687 #ifdef HAVE_OPENSSL_ERR_H
17688 #include <openssl/err.h>
17689 #endif
17690
17691 #ifdef HAVE_OPENSSL_RAND_H
17692 #include <openssl/rand.h>
17693 #endif
17694
17695 #ifdef HAVE_OPENSSL_CONF_H
17696 #include <openssl/conf.h>
17697 #endif
17698
17699 #ifdef HAVE_OPENSSL_ENGINE_H
17700 #include <openssl/engine.h>
17701 #endif
17702 #include <openssl/ssl.h>
17703 #include <openssl/evp.h>
17704
17705 "
17706 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
17707   ac_have_decl=1
17708 else
17709   ac_have_decl=0
17710 fi
17711
17712 cat >>confdefs.h <<_ACEOF
17713 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
17714 _ACEOF
17715 ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
17716 $ac_includes_default
17717 #ifdef HAVE_OPENSSL_ERR_H
17718 #include <openssl/err.h>
17719 #endif
17720
17721 #ifdef HAVE_OPENSSL_RAND_H
17722 #include <openssl/rand.h>
17723 #endif
17724
17725 #ifdef HAVE_OPENSSL_CONF_H
17726 #include <openssl/conf.h>
17727 #endif
17728
17729 #ifdef HAVE_OPENSSL_ENGINE_H
17730 #include <openssl/engine.h>
17731 #endif
17732 #include <openssl/ssl.h>
17733 #include <openssl/evp.h>
17734
17735 "
17736 if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
17737   ac_have_decl=1
17738 else
17739   ac_have_decl=0
17740 fi
17741
17742 cat >>confdefs.h <<_ACEOF
17743 #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
17744 _ACEOF
17745
17746 fi
17747
17748
17749
17750 # Check whether --enable-sha1 was given.
17751 if test "${enable_sha1+set}" = set; then :
17752   enableval=$enable_sha1;
17753 fi
17754
17755 case "$enable_sha1" in
17756         no)
17757         ;;
17758         yes|*)
17759
17760 $as_echo "#define USE_SHA1 1" >>confdefs.h
17761
17762         ;;
17763 esac
17764
17765
17766 # Check whether --enable-sha2 was given.
17767 if test "${enable_sha2+set}" = set; then :
17768   enableval=$enable_sha2;
17769 fi
17770
17771 case "$enable_sha2" in
17772         no)
17773         ;;
17774         yes|*)
17775
17776 $as_echo "#define USE_SHA2 1" >>confdefs.h
17777
17778         ;;
17779 esac
17780
17781 # Check whether --enable-subnet was given.
17782 if test "${enable_subnet+set}" = set; then :
17783   enableval=$enable_subnet;
17784 fi
17785
17786 case "$enable_subnet" in
17787         yes)
17788
17789 $as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
17790
17791         SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
17792
17793         SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
17794
17795         ;;
17796         no|*)
17797         ;;
17798 esac
17799
17800 # check wether gost also works
17801
17802 # Check whether --enable-gost was given.
17803 if test "${enable_gost+set}" = set; then :
17804   enableval=$enable_gost;
17805 fi
17806
17807 use_gost="no"
17808 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17809 case "$enable_gost" in
17810         no)
17811         ;;
17812         *)
17813         ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
17814 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
17815   :
17816 else
17817   as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
17818 fi
17819
17820         ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
17821 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
17822
17823 else
17824   as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
17825 fi
17826
17827
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
17829 $as_echo_n "checking if GOST works... " >&6; }
17830 if test c${cross_compiling} = cno; then
17831 BAKCFLAGS="$CFLAGS"
17832 if test -n "$ssldir"; then
17833         CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
17834 fi
17835 if test "$cross_compiling" = yes; then :
17836   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17838 as_fn_error $? "cannot run test program while cross compiling
17839 See \`config.log' for more details" "$LINENO" 5; }
17840 else
17841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17842 /* end confdefs.h.  */
17843
17844 #include <string.h>
17845 #include <openssl/ssl.h>
17846 #include <openssl/evp.h>
17847 #include <openssl/engine.h>
17848 #include <openssl/conf.h>
17849 /* routine to load gost (from sldns) */
17850 int load_gost_id(void)
17851 {
17852         static int gost_id = 0;
17853         const EVP_PKEY_ASN1_METHOD* meth;
17854         ENGINE* e;
17855
17856         if(gost_id) return gost_id;
17857
17858         /* see if configuration loaded gost implementation from other engine*/
17859         meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
17860         if(meth) {
17861                 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
17862                 return gost_id;
17863         }
17864
17865         /* see if engine can be loaded already */
17866         e = ENGINE_by_id("gost");
17867         if(!e) {
17868                 /* load it ourself, in case statically linked */
17869                 ENGINE_load_builtin_engines();
17870                 ENGINE_load_dynamic();
17871                 e = ENGINE_by_id("gost");
17872         }
17873         if(!e) {
17874                 /* no gost engine in openssl */
17875                 return 0;
17876         }
17877         if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
17878                 ENGINE_finish(e);
17879                 ENGINE_free(e);
17880                 return 0;
17881         }
17882
17883         meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
17884         if(!meth) {
17885                 /* algo not found */
17886                 ENGINE_finish(e);
17887                 ENGINE_free(e);
17888                 return 0;
17889         }
17890         EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
17891         return gost_id;
17892 }
17893 int main(void) {
17894         EVP_MD_CTX* ctx;
17895         const EVP_MD* md;
17896         unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
17897         const char* str = "Hello world";
17898         const unsigned char check[] = {
17899                 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
17900                 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
17901                 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
17902                 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
17903         };
17904         OPENSSL_config(NULL);
17905         (void)load_gost_id();
17906         md = EVP_get_digestbyname("md_gost94");
17907         if(!md) return 1;
17908         memset(digest, 0, sizeof(digest));
17909         ctx = EVP_MD_CTX_create();
17910         if(!ctx) return 2;
17911         if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
17912         if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
17913         if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
17914         /* uncomment to see the hash calculated.
17915                 {int i;
17916                 for(i=0; i<32; i++)
17917                         printf(" %2.2x", (int)digest[i]);
17918                 printf("\n");}
17919         */
17920         if(memcmp(digest, check, sizeof(check)) != 0)
17921                 return 6;
17922         return 0;
17923 }
17924
17925 _ACEOF
17926 if ac_fn_c_try_run "$LINENO"; then :
17927   eval "ac_cv_c_gost_works=yes"
17928 else
17929   eval "ac_cv_c_gost_works=no"
17930 fi
17931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17932   conftest.$ac_objext conftest.beam conftest.$ac_ext
17933 fi
17934
17935 CFLAGS="$BAKCFLAGS"
17936 else
17937 eval "ac_cv_c_gost_works=maybe"
17938 fi
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
17940 $as_echo "$ac_cv_c_gost_works" >&6; }
17941
17942         if test "$ac_cv_c_gost_works" != no; then
17943                 use_gost="yes"
17944
17945 $as_echo "#define USE_GOST 1" >>confdefs.h
17946
17947         fi
17948         ;;
17949 esac
17950 fi
17951 # Check whether --enable-ecdsa was given.
17952 if test "${enable_ecdsa+set}" = set; then :
17953   enableval=$enable_ecdsa;
17954 fi
17955
17956 use_ecdsa="no"
17957 case "$enable_ecdsa" in
17958     no)
17959       ;;
17960     *)
17961       if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17962               ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
17963 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
17964
17965 else
17966   as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17967 fi
17968
17969               ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
17970 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
17971
17972 else
17973   as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17974 fi
17975
17976               ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
17977 #include <openssl/evp.h>
17978
17979 "
17980 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
17981   ac_have_decl=1
17982 else
17983   ac_have_decl=0
17984 fi
17985
17986 cat >>confdefs.h <<_ACEOF
17987 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
17988 _ACEOF
17989 if test $ac_have_decl = 1; then :
17990
17991 else
17992   as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17993 fi
17994 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
17995 #include <openssl/evp.h>
17996
17997 "
17998 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
17999   ac_have_decl=1
18000 else
18001   ac_have_decl=0
18002 fi
18003
18004 cat >>confdefs.h <<_ACEOF
18005 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
18006 _ACEOF
18007 if test $ac_have_decl = 1; then :
18008
18009 else
18010   as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18011 fi
18012
18013               # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
18014               { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
18015 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
18016               if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
18017                 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
18018                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18019 $as_echo "no" >&6; }
18020
18021 cat >>confdefs.h <<_ACEOF
18022 #define USE_ECDSA_EVP_WORKAROUND 1
18023 _ACEOF
18024
18025                 else
18026                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18027 $as_echo "yes" >&6; }
18028                 fi
18029               else
18030                 # not OpenSSL, thus likely LibreSSL, which supports it
18031                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18032 $as_echo "yes" >&6; }
18033               fi
18034       fi
18035       # we now know we have ECDSA and the required curves.
18036
18037 cat >>confdefs.h <<_ACEOF
18038 #define USE_ECDSA 1
18039 _ACEOF
18040
18041       use_ecdsa="yes"
18042       ;;
18043 esac
18044
18045 # Check whether --enable-dsa was given.
18046 if test "${enable_dsa+set}" = set; then :
18047   enableval=$enable_dsa;
18048 fi
18049
18050 use_dsa="no"
18051 case "$enable_dsa" in
18052     no)
18053       ;;
18054     *)
18055       # detect if DSA is supported, and turn it off if not.
18056       ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
18057 if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
18058
18059
18060 cat >>confdefs.h <<_ACEOF
18061 #define USE_DSA 1
18062 _ACEOF
18063
18064
18065 else
18066   if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
18067                fi
18068 fi
18069
18070       ;;
18071 esac
18072
18073 # Check whether --enable-ed25519 was given.
18074 if test "${enable_ed25519+set}" = set; then :
18075   enableval=$enable_ed25519;
18076 fi
18077
18078 use_ed25519="no"
18079 case "$enable_ed25519" in
18080     no)
18081       ;;
18082     *)
18083       if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18084               ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
18085 #include <openssl/evp.h>
18086
18087 "
18088 if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then :
18089   ac_have_decl=1
18090 else
18091   ac_have_decl=0
18092 fi
18093
18094 cat >>confdefs.h <<_ACEOF
18095 #define HAVE_DECL_NID_ED25519 $ac_have_decl
18096 _ACEOF
18097 if test $ac_have_decl = 1; then :
18098
18099
18100 cat >>confdefs.h <<_ACEOF
18101 #define USE_ED25519 1
18102 _ACEOF
18103
18104                 use_ed25519="yes"
18105
18106 else
18107    if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
18108                 fi
18109 fi
18110
18111       fi
18112       ;;
18113 esac
18114
18115 # Check whether --enable-event-api was given.
18116 if test "${enable_event_api+set}" = set; then :
18117   enableval=$enable_event_api;
18118 fi
18119
18120 case "$enable_event_api" in
18121     yes)
18122       UNBOUND_EVENT_INSTALL=unbound-event-install
18123
18124       UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
18125
18126       ;;
18127     *)
18128       ;;
18129 esac
18130
18131 # Check whether --enable-tfo-client was given.
18132 if test "${enable_tfo_client+set}" = set; then :
18133   enableval=$enable_tfo_client;
18134 fi
18135
18136 case "$enable_tfo_client" in
18137         yes)
18138                 case `uname` in
18139                         Linux) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
18140 #include <netinet/tcp.h>
18141
18142 "
18143 if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
18144   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
18145 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
18146 else
18147   as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
18148 fi
18149
18150
18151 cat >>confdefs.h <<_ACEOF
18152 #define USE_MSG_FASTOPEN 1
18153 _ACEOF
18154
18155                           ;;
18156                         Darwin) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
18157 #include <sys/socket.h>
18158
18159 "
18160 if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
18161   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
18162 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
18163 else
18164   as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
18165 fi
18166
18167
18168 cat >>confdefs.h <<_ACEOF
18169 #define USE_OSX_MSG_FASTOPEN 1
18170 _ACEOF
18171
18172                           ;;
18173                 esac
18174         ;;
18175         no|*)
18176                 ;;
18177 esac
18178
18179 # Check whether --enable-tfo-server was given.
18180 if test "${enable_tfo_server+set}" = set; then :
18181   enableval=$enable_tfo_server;
18182 fi
18183
18184 case "$enable_tfo_server" in
18185         yes)
18186               ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
18187 #include <netinet/tcp.h>
18188
18189 "
18190 if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
18191   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
18192 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
18193 else
18194   as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
18195 fi
18196
18197
18198 cat >>confdefs.h <<_ACEOF
18199 #define USE_TCP_FASTOPEN 1
18200 _ACEOF
18201
18202                 ;;
18203         no|*)
18204                 ;;
18205 esac
18206
18207 # check for libevent
18208
18209 # Check whether --with-libevent was given.
18210 if test "${with_libevent+set}" = set; then :
18211   withval=$with_libevent;
18212 else
18213    withval="no"
18214 fi
18215
18216 if test x_$withval = x_yes -o x_$withval != x_no; then
18217         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
18218 $as_echo_n "checking for libevent... " >&6; }
18219         if test x_$withval = x_ -o x_$withval = x_yes; then
18220             withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
18221         fi
18222         for dir in $withval; do
18223             thedir="$dir"
18224             if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
18225                 found_libevent="yes"
18226                                 if test "$thedir" != "/usr"; then
18227                     CPPFLAGS="$CPPFLAGS -I$thedir/include"
18228                 fi
18229                 break;
18230             fi
18231         done
18232         if test x_$found_libevent != x_yes; then
18233                 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
18234                         # libevent source directory
18235                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
18236 $as_echo "found in $thedir" >&6; }
18237                         CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
18238                         BAK_LDFLAGS_SET="1"
18239                         BAK_LDFLAGS="$LDFLAGS"
18240                         # remove evdns from linking
18241                         mkdir build >/dev/null 2>&1
18242                         mkdir build/libevent >/dev/null 2>&1
18243                         mkdir build/libevent/.libs >/dev/null 2>&1
18244                         ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
18245                         ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
18246                         ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
18247                         cp $ev_files_o build/libevent
18248                         cp $ev_files_lo build/libevent
18249                         cp $ev_files_libso build/libevent/.libs
18250                         LATE_LDFLAGS="build/libevent/*.lo -lm"
18251                         LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
18252                 else
18253                         as_fn_error $? "Cannot find the libevent library in $withval
18254 You can restart ./configure --with-libevent=no to use a builtin alternative.
18255 Please note that this alternative is not as capable as libevent when using
18256 large outgoing port ranges.  " "$LINENO" 5
18257                 fi
18258         else
18259             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
18260 $as_echo "found in $thedir" >&6; }
18261                     if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
18262                     LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
18263
18264         if test "x$enable_rpath" = xyes; then
18265                 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
18266                         RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
18267                 fi
18268         fi
18269
18270             else
18271                                     if test "$thedir" != "/usr" -a "$thedir" != ""; then
18272                         LDFLAGS="$LDFLAGS -L$thedir/lib"
18273
18274         if test "x$enable_rpath" = xyes; then
18275                 if echo "$thedir/lib" | grep "^/" >/dev/null; then
18276                         RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
18277                 fi
18278         fi
18279
18280                     fi
18281             fi
18282         fi
18283         # check for library used by libevent after 1.3c
18284         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18285 $as_echo_n "checking for library containing clock_gettime... " >&6; }
18286 if ${ac_cv_search_clock_gettime+:} false; then :
18287   $as_echo_n "(cached) " >&6
18288 else
18289   ac_func_search_save_LIBS=$LIBS
18290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18291 /* end confdefs.h.  */
18292
18293 /* Override any GCC internal prototype to avoid an error.
18294    Use char because int might match the return type of a GCC
18295    builtin and then its argument prototype would still apply.  */
18296 #ifdef __cplusplus
18297 extern "C"
18298 #endif
18299 char clock_gettime ();
18300 int
18301 main ()
18302 {
18303 return clock_gettime ();
18304   ;
18305   return 0;
18306 }
18307 _ACEOF
18308 for ac_lib in '' rt; do
18309   if test -z "$ac_lib"; then
18310     ac_res="none required"
18311   else
18312     ac_res=-l$ac_lib
18313     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18314   fi
18315   if ac_fn_c_try_link "$LINENO"; then :
18316   ac_cv_search_clock_gettime=$ac_res
18317 fi
18318 rm -f core conftest.err conftest.$ac_objext \
18319     conftest$ac_exeext
18320   if ${ac_cv_search_clock_gettime+:} false; then :
18321   break
18322 fi
18323 done
18324 if ${ac_cv_search_clock_gettime+:} false; then :
18325
18326 else
18327   ac_cv_search_clock_gettime=no
18328 fi
18329 rm conftest.$ac_ext
18330 LIBS=$ac_func_search_save_LIBS
18331 fi
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18333 $as_echo "$ac_cv_search_clock_gettime" >&6; }
18334 ac_res=$ac_cv_search_clock_gettime
18335 if test "$ac_res" != no; then :
18336   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18337
18338 fi
18339
18340
18341         # is the event.h header libev or libevent?
18342         for ac_header in event.h
18343 do :
18344   ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
18345 "
18346 if test "x$ac_cv_header_event_h" = xyes; then :
18347   cat >>confdefs.h <<_ACEOF
18348 #define HAVE_EVENT_H 1
18349 _ACEOF
18350
18351 fi
18352
18353 done
18354
18355         ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
18356 #include <event.h>
18357
18358 "
18359 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
18360
18361                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
18362 $as_echo_n "checking for library containing event_set... " >&6; }
18363 if ${ac_cv_search_event_set+:} false; then :
18364   $as_echo_n "(cached) " >&6
18365 else
18366   ac_func_search_save_LIBS=$LIBS
18367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h.  */
18369
18370 /* Override any GCC internal prototype to avoid an error.
18371    Use char because int might match the return type of a GCC
18372    builtin and then its argument prototype would still apply.  */
18373 #ifdef __cplusplus
18374 extern "C"
18375 #endif
18376 char event_set ();
18377 int
18378 main ()
18379 {
18380 return event_set ();
18381   ;
18382   return 0;
18383 }
18384 _ACEOF
18385 for ac_lib in '' ev; do
18386   if test -z "$ac_lib"; then
18387     ac_res="none required"
18388   else
18389     ac_res=-l$ac_lib
18390     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18391   fi
18392   if ac_fn_c_try_link "$LINENO"; then :
18393   ac_cv_search_event_set=$ac_res
18394 fi
18395 rm -f core conftest.err conftest.$ac_objext \
18396     conftest$ac_exeext
18397   if ${ac_cv_search_event_set+:} false; then :
18398   break
18399 fi
18400 done
18401 if ${ac_cv_search_event_set+:} false; then :
18402
18403 else
18404   ac_cv_search_event_set=no
18405 fi
18406 rm conftest.$ac_ext
18407 LIBS=$ac_func_search_save_LIBS
18408 fi
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
18410 $as_echo "$ac_cv_search_event_set" >&6; }
18411 ac_res=$ac_cv_search_event_set
18412 if test "$ac_res" != no; then :
18413   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18414
18415 fi
18416
18417
18418 else
18419
18420                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
18421 $as_echo_n "checking for library containing event_set... " >&6; }
18422 if ${ac_cv_search_event_set+:} false; then :
18423   $as_echo_n "(cached) " >&6
18424 else
18425   ac_func_search_save_LIBS=$LIBS
18426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18427 /* end confdefs.h.  */
18428
18429 /* Override any GCC internal prototype to avoid an error.
18430    Use char because int might match the return type of a GCC
18431    builtin and then its argument prototype would still apply.  */
18432 #ifdef __cplusplus
18433 extern "C"
18434 #endif
18435 char event_set ();
18436 int
18437 main ()
18438 {
18439 return event_set ();
18440   ;
18441   return 0;
18442 }
18443 _ACEOF
18444 for ac_lib in '' event; do
18445   if test -z "$ac_lib"; then
18446     ac_res="none required"
18447   else
18448     ac_res=-l$ac_lib
18449     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18450   fi
18451   if ac_fn_c_try_link "$LINENO"; then :
18452   ac_cv_search_event_set=$ac_res
18453 fi
18454 rm -f core conftest.err conftest.$ac_objext \
18455     conftest$ac_exeext
18456   if ${ac_cv_search_event_set+:} false; then :
18457   break
18458 fi
18459 done
18460 if ${ac_cv_search_event_set+:} false; then :
18461
18462 else
18463   ac_cv_search_event_set=no
18464 fi
18465 rm conftest.$ac_ext
18466 LIBS=$ac_func_search_save_LIBS
18467 fi
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
18469 $as_echo "$ac_cv_search_event_set" >&6; }
18470 ac_res=$ac_cv_search_event_set
18471 if test "$ac_res" != no; then :
18472   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18473
18474 fi
18475
18476
18477 fi
18478
18479         for ac_func in event_base_free
18480 do :
18481   ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
18482 if test "x$ac_cv_func_event_base_free" = xyes; then :
18483   cat >>confdefs.h <<_ACEOF
18484 #define HAVE_EVENT_BASE_FREE 1
18485 _ACEOF
18486
18487 fi
18488 done
18489  # only in libevent 1.2 and later
18490         for ac_func in event_base_once
18491 do :
18492   ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
18493 if test "x$ac_cv_func_event_base_once" = xyes; then :
18494   cat >>confdefs.h <<_ACEOF
18495 #define HAVE_EVENT_BASE_ONCE 1
18496 _ACEOF
18497
18498 fi
18499 done
18500  # only in libevent 1.4.1 and later
18501         for ac_func in event_base_new
18502 do :
18503   ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
18504 if test "x$ac_cv_func_event_base_new" = xyes; then :
18505   cat >>confdefs.h <<_ACEOF
18506 #define HAVE_EVENT_BASE_NEW 1
18507 _ACEOF
18508
18509 fi
18510 done
18511  # only in libevent 1.4.1 and later
18512         for ac_func in event_base_get_method
18513 do :
18514   ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
18515 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
18516   cat >>confdefs.h <<_ACEOF
18517 #define HAVE_EVENT_BASE_GET_METHOD 1
18518 _ACEOF
18519
18520 fi
18521 done
18522  # only in libevent 1.4.3 and later
18523         for ac_func in ev_loop
18524 do :
18525   ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
18526 if test "x$ac_cv_func_ev_loop" = xyes; then :
18527   cat >>confdefs.h <<_ACEOF
18528 #define HAVE_EV_LOOP 1
18529 _ACEOF
18530
18531 fi
18532 done
18533  # only in libev. (tested on 3.51)
18534         for ac_func in ev_default_loop
18535 do :
18536   ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
18537 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
18538   cat >>confdefs.h <<_ACEOF
18539 #define HAVE_EV_DEFAULT_LOOP 1
18540 _ACEOF
18541
18542 fi
18543 done
18544  # only in libev. (tested on 4.00)
18545         PC_LIBEVENT_DEPENDENCY="libevent"
18546
18547         if test -n "$BAK_LDFLAGS_SET"; then
18548                 LDFLAGS="$BAK_LDFLAGS"
18549         fi
18550 else
18551
18552 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
18553
18554 fi
18555
18556 # check for libexpat
18557
18558 # Check whether --with-libexpat was given.
18559 if test "${with_libexpat+set}" = set; then :
18560   withval=$with_libexpat;
18561 else
18562    withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
18563 fi
18564
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
18566 $as_echo_n "checking for libexpat... " >&6; }
18567 found_libexpat="no"
18568 for dir in $withval ; do
18569             if test -f "$dir/include/expat.h"; then
18570                 found_libexpat="yes"
18571                                 if test "$dir" != "/usr"; then
18572                     CPPFLAGS="$CPPFLAGS -I$dir/include"
18573                     LDFLAGS="$LDFLAGS -L$dir/lib"
18574                 fi
18575                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
18576 $as_echo "found in $dir" >&6; }
18577                 break;
18578             fi
18579 done
18580 if test x_$found_libexpat != x_yes; then
18581         as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
18582 fi
18583 for ac_header in expat.h
18584 do :
18585   ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
18586 "
18587 if test "x$ac_cv_header_expat_h" = xyes; then :
18588   cat >>confdefs.h <<_ACEOF
18589 #define HAVE_EXPAT_H 1
18590 _ACEOF
18591
18592 fi
18593
18594 done
18595
18596 ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
18597 #include <expat.h>
18598
18599 "
18600 if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
18601   ac_have_decl=1
18602 else
18603   ac_have_decl=0
18604 fi
18605
18606 cat >>confdefs.h <<_ACEOF
18607 #define HAVE_DECL_XML_STOPPARSER $ac_have_decl
18608 _ACEOF
18609
18610
18611 # set static linking if requested
18612
18613 staticexe=""
18614 # Check whether --enable-static-exe was given.
18615 if test "${enable_static_exe+set}" = set; then :
18616   enableval=$enable_static_exe;
18617 fi
18618
18619 if test x_$enable_static_exe = x_yes; then
18620         staticexe="-static"
18621         if test "$on_mingw" = yes; then
18622                 staticexe="-all-static"
18623                 # for static compile, include gdi32 and zlib here.
18624                 LIBS="$LIBS -lgdi32 -lz"
18625         fi
18626 fi
18627
18628 # Include systemd.m4 - begin
18629 #   macros for configuring systemd
18630 #   Copyright 2015, Sami Kerola, CloudFlare.
18631 #   BSD licensed.
18632 # Check whether --enable-systemd was given.
18633 if test "${enable_systemd+set}" = set; then :
18634   enableval=$enable_systemd;
18635 else
18636   enable_systemd=no
18637 fi
18638
18639 have_systemd=no
18640
18641
18642
18643
18644
18645
18646
18647 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18648         if test -n "$ac_tool_prefix"; then
18649   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18650 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18652 $as_echo_n "checking for $ac_word... " >&6; }
18653 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18654   $as_echo_n "(cached) " >&6
18655 else
18656   case $PKG_CONFIG in
18657   [\\/]* | ?:[\\/]*)
18658   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18659   ;;
18660   *)
18661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18662 for as_dir in $PATH
18663 do
18664   IFS=$as_save_IFS
18665   test -z "$as_dir" && as_dir=.
18666     for ac_exec_ext in '' $ac_executable_extensions; do
18667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18668     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18670     break 2
18671   fi
18672 done
18673   done
18674 IFS=$as_save_IFS
18675
18676   ;;
18677 esac
18678 fi
18679 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18680 if test -n "$PKG_CONFIG"; then
18681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18682 $as_echo "$PKG_CONFIG" >&6; }
18683 else
18684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18685 $as_echo "no" >&6; }
18686 fi
18687
18688
18689 fi
18690 if test -z "$ac_cv_path_PKG_CONFIG"; then
18691   ac_pt_PKG_CONFIG=$PKG_CONFIG
18692   # Extract the first word of "pkg-config", so it can be a program name with args.
18693 set dummy pkg-config; ac_word=$2
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18695 $as_echo_n "checking for $ac_word... " >&6; }
18696 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18697   $as_echo_n "(cached) " >&6
18698 else
18699   case $ac_pt_PKG_CONFIG in
18700   [\\/]* | ?:[\\/]*)
18701   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18702   ;;
18703   *)
18704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18705 for as_dir in $PATH
18706 do
18707   IFS=$as_save_IFS
18708   test -z "$as_dir" && as_dir=.
18709     for ac_exec_ext in '' $ac_executable_extensions; do
18710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18711     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18713     break 2
18714   fi
18715 done
18716   done
18717 IFS=$as_save_IFS
18718
18719   ;;
18720 esac
18721 fi
18722 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18723 if test -n "$ac_pt_PKG_CONFIG"; then
18724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18725 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18726 else
18727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18728 $as_echo "no" >&6; }
18729 fi
18730
18731   if test "x$ac_pt_PKG_CONFIG" = x; then
18732     PKG_CONFIG=""
18733   else
18734     case $cross_compiling:$ac_tool_warned in
18735 yes:)
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18738 ac_tool_warned=yes ;;
18739 esac
18740     PKG_CONFIG=$ac_pt_PKG_CONFIG
18741   fi
18742 else
18743   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18744 fi
18745
18746 fi
18747 if test -n "$PKG_CONFIG"; then
18748         _pkg_min_version=0.9.0
18749         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18750 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18751         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18752                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18753 $as_echo "yes" >&6; }
18754         else
18755                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18756 $as_echo "no" >&6; }
18757                 PKG_CONFIG=""
18758         fi
18759 fi
18760 if test "x$enable_systemd" != xno; then :
18761
18762
18763
18764 pkg_failed=no
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
18766 $as_echo_n "checking for SYSTEMD... " >&6; }
18767
18768 if test -n "$SYSTEMD_CFLAGS"; then
18769     pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
18770  elif test -n "$PKG_CONFIG"; then
18771     if test -n "$PKG_CONFIG" && \
18772     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
18773   ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
18774   ac_status=$?
18775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18776   test $ac_status = 0; }; then
18777   pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
18778                       test "x$?" != "x0" && pkg_failed=yes
18779 else
18780   pkg_failed=yes
18781 fi
18782  else
18783     pkg_failed=untried
18784 fi
18785 if test -n "$SYSTEMD_LIBS"; then
18786     pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
18787  elif test -n "$PKG_CONFIG"; then
18788     if test -n "$PKG_CONFIG" && \
18789     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
18790   ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
18791   ac_status=$?
18792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18793   test $ac_status = 0; }; then
18794   pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
18795                       test "x$?" != "x0" && pkg_failed=yes
18796 else
18797   pkg_failed=yes
18798 fi
18799  else
18800     pkg_failed=untried
18801 fi
18802
18803
18804
18805 if test $pkg_failed = yes; then
18806         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18807 $as_echo "no" >&6; }
18808
18809 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18810         _pkg_short_errors_supported=yes
18811 else
18812         _pkg_short_errors_supported=no
18813 fi
18814         if test $_pkg_short_errors_supported = yes; then
18815                 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
18816         else
18817                 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
18818         fi
18819         # Put the nasty error message in config.log where it belongs
18820         echo "$SYSTEMD_PKG_ERRORS" >&5
18821
18822         have_systemd=no
18823 elif test $pkg_failed = untried; then
18824         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18825 $as_echo "no" >&6; }
18826         have_systemd=no
18827 else
18828         SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
18829         SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
18830         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18831 $as_echo "yes" >&6; }
18832         have_systemd=yes
18833 fi
18834                 if test "x$have_systemd" != "xyes"; then :
18835
18836
18837 pkg_failed=no
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
18839 $as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
18840
18841 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
18842     pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
18843  elif test -n "$PKG_CONFIG"; then
18844     if test -n "$PKG_CONFIG" && \
18845     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
18846   ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
18847   ac_status=$?
18848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18849   test $ac_status = 0; }; then
18850   pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
18851                       test "x$?" != "x0" && pkg_failed=yes
18852 else
18853   pkg_failed=yes
18854 fi
18855  else
18856     pkg_failed=untried
18857 fi
18858 if test -n "$SYSTEMD_DAEMON_LIBS"; then
18859     pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
18860  elif test -n "$PKG_CONFIG"; then
18861     if test -n "$PKG_CONFIG" && \
18862     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
18863   ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
18864   ac_status=$?
18865   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18866   test $ac_status = 0; }; then
18867   pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
18868                       test "x$?" != "x0" && pkg_failed=yes
18869 else
18870   pkg_failed=yes
18871 fi
18872  else
18873     pkg_failed=untried
18874 fi
18875
18876
18877
18878 if test $pkg_failed = yes; then
18879         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18880 $as_echo "no" >&6; }
18881
18882 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18883         _pkg_short_errors_supported=yes
18884 else
18885         _pkg_short_errors_supported=no
18886 fi
18887         if test $_pkg_short_errors_supported = yes; then
18888                 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
18889         else
18890                 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
18891         fi
18892         # Put the nasty error message in config.log where it belongs
18893         echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
18894
18895         have_systemd_daemon=no
18896 elif test $pkg_failed = untried; then
18897         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18898 $as_echo "no" >&6; }
18899         have_systemd_daemon=no
18900 else
18901         SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
18902         SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
18903         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18904 $as_echo "yes" >&6; }
18905         have_systemd_daemon=yes
18906 fi
18907                 if test "x$have_systemd_daemon" = "xyes"; then :
18908   have_systemd=yes
18909 fi
18910
18911 fi
18912         case $enable_systemd:$have_systemd in #(
18913   yes:no) :
18914     as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
18915   *:yes) :
18916
18917 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
18918
18919                 LIBS="$LIBS $SYSTEMD_LIBS"
18920
18921          ;; #(
18922   *) :
18923      ;;
18924 esac
18925
18926
18927 fi
18928  if test "x$have_systemd" = xyes; then
18929   USE_SYSTEMD_TRUE=
18930   USE_SYSTEMD_FALSE='#'
18931 else
18932   USE_SYSTEMD_TRUE='#'
18933   USE_SYSTEMD_FALSE=
18934 fi
18935
18936
18937 # Include systemd.m4 - end
18938
18939 # set lock checking if requested
18940 # Check whether --enable-lock_checks was given.
18941 if test "${enable_lock_checks+set}" = set; then :
18942   enableval=$enable_lock_checks;
18943 fi
18944
18945 if test x_$enable_lock_checks = x_yes; then
18946
18947 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
18948
18949         CHECKLOCK_OBJ="checklocks.lo"
18950
18951 fi
18952
18953
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
18955 $as_echo_n "checking for getaddrinfo... " >&6; }
18956 ac_cv_func_getaddrinfo=no
18957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18958 /* end confdefs.h.  */
18959
18960 #ifdef __cplusplus
18961 extern "C"
18962 {
18963 #endif
18964 char* getaddrinfo();
18965 char* (*f) () = getaddrinfo;
18966 #ifdef __cplusplus
18967 }
18968 #endif
18969 int main() {
18970         ;
18971         return 0;
18972 }
18973
18974 _ACEOF
18975 if ac_fn_c_try_link "$LINENO"; then :
18976   ac_cv_func_getaddrinfo="yes"
18977 if test "$ac_cv_header_windows_h" = "yes"; then
18978
18979 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
18980
18981         USE_WINSOCK="1"
18982         LIBS="$LIBS -lws2_32"
18983 fi
18984
18985 else
18986   ORIGLIBS="$LIBS"
18987 LIBS="$LIBS -lws2_32"
18988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18989 /* end confdefs.h.  */
18990
18991 #ifdef HAVE_WS2TCPIP_H
18992 #include <ws2tcpip.h>
18993 #endif
18994
18995 int
18996 main ()
18997 {
18998
18999         (void)getaddrinfo(NULL, NULL, NULL, NULL);
19000
19001
19002   ;
19003   return 0;
19004 }
19005 _ACEOF
19006 if ac_fn_c_try_link "$LINENO"; then :
19007
19008 ac_cv_func_getaddrinfo="yes"
19009
19010 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
19011
19012 USE_WINSOCK="1"
19013
19014 else
19015
19016 ac_cv_func_getaddrinfo="no"
19017 LIBS="$ORIGLIBS"
19018
19019 fi
19020 rm -f core conftest.err conftest.$ac_objext \
19021     conftest$ac_exeext conftest.$ac_ext
19022
19023 fi
19024 rm -f core conftest.err conftest.$ac_objext \
19025     conftest$ac_exeext conftest.$ac_ext
19026
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
19028 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
19029 if test $ac_cv_func_getaddrinfo = yes; then
19030
19031 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
19032
19033 fi
19034
19035 if test "$USE_WINSOCK" = 1; then
19036
19037 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
19038
19039         for ac_header in iphlpapi.h
19040 do :
19041   ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
19042 #include <windows.h>
19043
19044 "
19045 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
19046   cat >>confdefs.h <<_ACEOF
19047 #define HAVE_IPHLPAPI_H 1
19048 _ACEOF
19049
19050 fi
19051
19052 done
19053
19054         if test -n "$ac_tool_prefix"; then
19055   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19056 set dummy ${ac_tool_prefix}windres; ac_word=$2
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19058 $as_echo_n "checking for $ac_word... " >&6; }
19059 if ${ac_cv_prog_WINDRES+:} false; then :
19060   $as_echo_n "(cached) " >&6
19061 else
19062   if test -n "$WINDRES"; then
19063   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19064 else
19065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19066 for as_dir in $PATH
19067 do
19068   IFS=$as_save_IFS
19069   test -z "$as_dir" && as_dir=.
19070     for ac_exec_ext in '' $ac_executable_extensions; do
19071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19072     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19074     break 2
19075   fi
19076 done
19077   done
19078 IFS=$as_save_IFS
19079
19080 fi
19081 fi
19082 WINDRES=$ac_cv_prog_WINDRES
19083 if test -n "$WINDRES"; then
19084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19085 $as_echo "$WINDRES" >&6; }
19086 else
19087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19088 $as_echo "no" >&6; }
19089 fi
19090
19091
19092 fi
19093 if test -z "$ac_cv_prog_WINDRES"; then
19094   ac_ct_WINDRES=$WINDRES
19095   # Extract the first word of "windres", so it can be a program name with args.
19096 set dummy windres; ac_word=$2
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19098 $as_echo_n "checking for $ac_word... " >&6; }
19099 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19100   $as_echo_n "(cached) " >&6
19101 else
19102   if test -n "$ac_ct_WINDRES"; then
19103   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19104 else
19105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19106 for as_dir in $PATH
19107 do
19108   IFS=$as_save_IFS
19109   test -z "$as_dir" && as_dir=.
19110     for ac_exec_ext in '' $ac_executable_extensions; do
19111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19112     ac_cv_prog_ac_ct_WINDRES="windres"
19113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19114     break 2
19115   fi
19116 done
19117   done
19118 IFS=$as_save_IFS
19119
19120 fi
19121 fi
19122 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19123 if test -n "$ac_ct_WINDRES"; then
19124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19125 $as_echo "$ac_ct_WINDRES" >&6; }
19126 else
19127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19128 $as_echo "no" >&6; }
19129 fi
19130
19131   if test "x$ac_ct_WINDRES" = x; then
19132     WINDRES=""
19133   else
19134     case $cross_compiling:$ac_tool_warned in
19135 yes:)
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19138 ac_tool_warned=yes ;;
19139 esac
19140     WINDRES=$ac_ct_WINDRES
19141   fi
19142 else
19143   WINDRES="$ac_cv_prog_WINDRES"
19144 fi
19145
19146         LIBS="$LIBS -liphlpapi"
19147         WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
19148
19149         WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
19150
19151         WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
19152
19153         WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
19154
19155         WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
19156
19157         WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
19158
19159         WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
19160
19161         WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
19162
19163 fi
19164 if test $ac_cv_func_getaddrinfo = no; then
19165         case " $LIBOBJS " in
19166   *" fake-rfc2553.$ac_objext "* ) ;;
19167   *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
19168  ;;
19169 esac
19170
19171 fi
19172 # check after getaddrinfo for its libraries
19173
19174 # check ioctlsocket
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
19176 $as_echo_n "checking for ioctlsocket... " >&6; }
19177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19178 /* end confdefs.h.  */
19179
19180 #ifdef HAVE_WINSOCK2_H
19181 #include <winsock2.h>
19182 #endif
19183
19184 int
19185 main ()
19186 {
19187
19188         (void)ioctlsocket(0, 0, NULL);
19189
19190   ;
19191   return 0;
19192 }
19193 _ACEOF
19194 if ac_fn_c_try_link "$LINENO"; then :
19195
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19197 $as_echo "yes" >&6; }
19198
19199 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
19200
19201
19202 else
19203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19204 $as_echo "no" >&6; }
19205 fi
19206 rm -f core conftest.err conftest.$ac_objext \
19207     conftest$ac_exeext conftest.$ac_ext
19208
19209
19210 # see if daemon(3) exists, and if it is deprecated.
19211 for ac_func in daemon
19212 do :
19213   ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
19214 if test "x$ac_cv_func_daemon" = xyes; then :
19215   cat >>confdefs.h <<_ACEOF
19216 #define HAVE_DAEMON 1
19217 _ACEOF
19218
19219 fi
19220 done
19221
19222 if test $ac_cv_func_daemon = yes; then
19223
19224
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
19226 $as_echo_n "checking if daemon is deprecated... " >&6; }
19227 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
19228 if eval \${cv_cc_deprecated_$cache+:} false; then :
19229   $as_echo_n "(cached) " >&6
19230 else
19231
19232 echo '
19233 #include <stdlib.h>
19234 ' >conftest.c
19235 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
19236 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
19237 eval "cv_cc_deprecated_$cache=no"
19238 else
19239 eval "cv_cc_deprecated_$cache=yes"
19240 fi
19241 rm -f conftest conftest.o conftest.c
19242
19243 fi
19244
19245 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19247 $as_echo "yes" >&6; }
19248
19249 cat >>confdefs.h <<_ACEOF
19250 #define DEPRECATED_DAEMON 1
19251 _ACEOF
19252
19253 :
19254
19255 else
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19257 $as_echo "no" >&6; }
19258 :
19259
19260 fi
19261
19262 fi
19263
19264 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
19265 $ac_includes_default
19266 #ifdef HAVE_SYS_UN_H
19267 #include <sys/un.h>
19268 #endif
19269
19270 "
19271 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
19272
19273 cat >>confdefs.h <<_ACEOF
19274 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19275 _ACEOF
19276
19277
19278 fi
19279
19280 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
19281 $ac_includes_default
19282 #if HAVE_SYS_PARAM_H
19283 #include <sys/param.h>
19284 #endif
19285
19286 #ifdef HAVE_SYS_SOCKET_H
19287 #include <sys/socket.h>
19288 #endif
19289
19290 #ifdef HAVE_SYS_UIO_H
19291 #include <sys/uio.h>
19292 #endif
19293
19294 #ifdef HAVE_NETINET_IN_H
19295 #include <netinet/in.h>
19296 #endif
19297
19298 #ifdef HAVE_NETINET_TCP_H
19299 #include <netinet/tcp.h>
19300 #endif
19301
19302 #ifdef HAVE_ARPA_INET_H
19303 #include <arpa/inet.h>
19304 #endif
19305
19306 #ifdef HAVE_WINSOCK2_H
19307 #include <winsock2.h>
19308 #endif
19309
19310 #ifdef HAVE_WS2TCPIP_H
19311 #include <ws2tcpip.h>
19312 #endif
19313
19314 "
19315 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
19316
19317 cat >>confdefs.h <<_ACEOF
19318 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
19319 _ACEOF
19320
19321
19322 fi
19323
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
19325 $as_echo_n "checking for library containing setusercontext... " >&6; }
19326 if ${ac_cv_search_setusercontext+:} false; then :
19327   $as_echo_n "(cached) " >&6
19328 else
19329   ac_func_search_save_LIBS=$LIBS
19330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331 /* end confdefs.h.  */
19332
19333 /* Override any GCC internal prototype to avoid an error.
19334    Use char because int might match the return type of a GCC
19335    builtin and then its argument prototype would still apply.  */
19336 #ifdef __cplusplus
19337 extern "C"
19338 #endif
19339 char setusercontext ();
19340 int
19341 main ()
19342 {
19343 return setusercontext ();
19344   ;
19345   return 0;
19346 }
19347 _ACEOF
19348 for ac_lib in '' util; do
19349   if test -z "$ac_lib"; then
19350     ac_res="none required"
19351   else
19352     ac_res=-l$ac_lib
19353     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19354   fi
19355   if ac_fn_c_try_link "$LINENO"; then :
19356   ac_cv_search_setusercontext=$ac_res
19357 fi
19358 rm -f core conftest.err conftest.$ac_objext \
19359     conftest$ac_exeext
19360   if ${ac_cv_search_setusercontext+:} false; then :
19361   break
19362 fi
19363 done
19364 if ${ac_cv_search_setusercontext+:} false; then :
19365
19366 else
19367   ac_cv_search_setusercontext=no
19368 fi
19369 rm conftest.$ac_ext
19370 LIBS=$ac_func_search_save_LIBS
19371 fi
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
19373 $as_echo "$ac_cv_search_setusercontext" >&6; }
19374 ac_res=$ac_cv_search_setusercontext
19375 if test "$ac_res" != no; then :
19376   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19377
19378 fi
19379
19380 for ac_func in tzset sigprocmask fcntl getpwnam endpwent getrlimit setrlimit setsid chroot kill chown sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent fsync shmget
19381 do :
19382   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19383 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19384 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19385   cat >>confdefs.h <<_ACEOF
19386 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19387 _ACEOF
19388
19389 fi
19390 done
19391
19392 for ac_func in setresuid
19393 do :
19394   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
19395 if test "x$ac_cv_func_setresuid" = xyes; then :
19396   cat >>confdefs.h <<_ACEOF
19397 #define HAVE_SETRESUID 1
19398 _ACEOF
19399
19400 else
19401   for ac_func in setreuid
19402 do :
19403   ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
19404 if test "x$ac_cv_func_setreuid" = xyes; then :
19405   cat >>confdefs.h <<_ACEOF
19406 #define HAVE_SETREUID 1
19407 _ACEOF
19408
19409 fi
19410 done
19411
19412 fi
19413 done
19414
19415 for ac_func in setresgid
19416 do :
19417   ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
19418 if test "x$ac_cv_func_setresgid" = xyes; then :
19419   cat >>confdefs.h <<_ACEOF
19420 #define HAVE_SETRESGID 1
19421 _ACEOF
19422
19423 else
19424   for ac_func in setregid
19425 do :
19426   ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
19427 if test "x$ac_cv_func_setregid" = xyes; then :
19428   cat >>confdefs.h <<_ACEOF
19429 #define HAVE_SETREGID 1
19430 _ACEOF
19431
19432 fi
19433 done
19434
19435 fi
19436 done
19437
19438
19439 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
19440 if echo $build_os | grep darwin8 > /dev/null; then
19441
19442 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
19443
19444 fi
19445 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
19446 $ac_includes_default
19447 #ifdef HAVE_NETINET_IN_H
19448 #include <netinet/in.h>
19449 #endif
19450
19451 #ifdef HAVE_NETINET_TCP_H
19452 #include <netinet/tcp.h>
19453 #endif
19454
19455 #ifdef HAVE_ARPA_INET_H
19456 #include <arpa/inet.h>
19457 #endif
19458
19459 #ifdef HAVE_WINSOCK2_H
19460 #include <winsock2.h>
19461 #endif
19462
19463 #ifdef HAVE_WS2TCPIP_H
19464 #include <ws2tcpip.h>
19465 #endif
19466
19467 "
19468 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
19469   ac_have_decl=1
19470 else
19471   ac_have_decl=0
19472 fi
19473
19474 cat >>confdefs.h <<_ACEOF
19475 #define HAVE_DECL_INET_PTON $ac_have_decl
19476 _ACEOF
19477 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
19478 $ac_includes_default
19479 #ifdef HAVE_NETINET_IN_H
19480 #include <netinet/in.h>
19481 #endif
19482
19483 #ifdef HAVE_NETINET_TCP_H
19484 #include <netinet/tcp.h>
19485 #endif
19486
19487 #ifdef HAVE_ARPA_INET_H
19488 #include <arpa/inet.h>
19489 #endif
19490
19491 #ifdef HAVE_WINSOCK2_H
19492 #include <winsock2.h>
19493 #endif
19494
19495 #ifdef HAVE_WS2TCPIP_H
19496 #include <ws2tcpip.h>
19497 #endif
19498
19499 "
19500 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
19501   ac_have_decl=1
19502 else
19503   ac_have_decl=0
19504 fi
19505
19506 cat >>confdefs.h <<_ACEOF
19507 #define HAVE_DECL_INET_NTOP $ac_have_decl
19508 _ACEOF
19509
19510 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
19511 if test "x$ac_cv_func_inet_aton" = xyes; then :
19512   $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
19513
19514 else
19515   case " $LIBOBJS " in
19516   *" inet_aton.$ac_objext "* ) ;;
19517   *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
19518  ;;
19519 esac
19520
19521 fi
19522
19523
19524 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
19525 if test "x$ac_cv_func_inet_pton" = xyes; then :
19526   $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
19527
19528 else
19529   case " $LIBOBJS " in
19530   *" inet_pton.$ac_objext "* ) ;;
19531   *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
19532  ;;
19533 esac
19534
19535 fi
19536
19537
19538 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
19539 if test "x$ac_cv_func_inet_ntop" = xyes; then :
19540   $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
19541
19542 else
19543   case " $LIBOBJS " in
19544   *" inet_ntop.$ac_objext "* ) ;;
19545   *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
19546  ;;
19547 esac
19548
19549 fi
19550
19551
19552 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
19553 if test "x$ac_cv_func_snprintf" = xyes; then :
19554   $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
19555
19556 else
19557   case " $LIBOBJS " in
19558   *" snprintf.$ac_objext "* ) ;;
19559   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
19560  ;;
19561 esac
19562
19563 fi
19564
19565
19566 # test if snprintf return the proper length
19567 if test "x$ac_cv_func_snprintf" = xyes; then
19568     if test c${cross_compiling} = cno; then
19569         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
19570 $as_echo_n "checking for correct snprintf return value... " >&6; }
19571         if test "$cross_compiling" = yes; then :
19572   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19574 as_fn_error $? "cannot run test program while cross compiling
19575 See \`config.log' for more details" "$LINENO" 5; }
19576 else
19577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19578 /* end confdefs.h.  */
19579 $ac_includes_default
19580
19581 int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
19582
19583 _ACEOF
19584 if ac_fn_c_try_run "$LINENO"; then :
19585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19586 $as_echo "yes" >&6; }
19587 else
19588
19589                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19590 $as_echo "no" >&6; }
19591
19592 $as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
19593
19594                 case " $LIBOBJS " in
19595   *" snprintf.$ac_objext "* ) ;;
19596   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
19597  ;;
19598 esac
19599
19600
19601 fi
19602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19603   conftest.$ac_objext conftest.beam conftest.$ac_ext
19604 fi
19605
19606     fi
19607 fi
19608 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
19609 if test "x$ac_cv_func_strlcat" = xyes; then :
19610   $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
19611
19612 else
19613   case " $LIBOBJS " in
19614   *" strlcat.$ac_objext "* ) ;;
19615   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
19616  ;;
19617 esac
19618
19619 fi
19620
19621
19622 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
19623 if test "x$ac_cv_func_strlcpy" = xyes; then :
19624   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
19625
19626 else
19627   case " $LIBOBJS " in
19628   *" strlcpy.$ac_objext "* ) ;;
19629   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
19630  ;;
19631 esac
19632
19633 fi
19634
19635
19636 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
19637 if test "x$ac_cv_func_memmove" = xyes; then :
19638   $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
19639
19640 else
19641   case " $LIBOBJS " in
19642   *" memmove.$ac_objext "* ) ;;
19643   *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
19644  ;;
19645 esac
19646
19647 fi
19648
19649
19650 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
19651 if test "x$ac_cv_func_gmtime_r" = xyes; then :
19652   $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
19653
19654 else
19655   case " $LIBOBJS " in
19656   *" gmtime_r.$ac_objext "* ) ;;
19657   *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
19658  ;;
19659 esac
19660
19661 fi
19662
19663
19664 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
19665 if test "x$ac_cv_func_isblank" = xyes; then :
19666   $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
19667
19668 else
19669   case " $LIBOBJS " in
19670   *" isblank.$ac_objext "* ) ;;
19671   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
19672  ;;
19673 esac
19674
19675 fi
19676
19677
19678 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
19679
19680 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
19681 if test "x$ac_cv_func_reallocarray" = xyes; then :
19682   $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
19683
19684 else
19685   case " $LIBOBJS " in
19686   *" reallocarray.$ac_objext "* ) ;;
19687   *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
19688  ;;
19689 esac
19690
19691 fi
19692
19693
19694 if test "$USE_NSS" = "no"; then
19695         ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
19696 if test "x$ac_cv_func_arc4random" = xyes; then :
19697   $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
19698
19699 else
19700   case " $LIBOBJS " in
19701   *" arc4random.$ac_objext "* ) ;;
19702   *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
19703  ;;
19704 esac
19705
19706 fi
19707
19708
19709         ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
19710 if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
19711   $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
19712
19713 else
19714   case " $LIBOBJS " in
19715   *" arc4random_uniform.$ac_objext "* ) ;;
19716   *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
19717  ;;
19718 esac
19719
19720 fi
19721
19722
19723         if test "$ac_cv_func_arc4random" = "no"; then
19724                 case " $LIBOBJS " in
19725   *" explicit_bzero.$ac_objext "* ) ;;
19726   *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
19727  ;;
19728 esac
19729
19730                 case " $LIBOBJS " in
19731   *" arc4_lock.$ac_objext "* ) ;;
19732   *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
19733  ;;
19734 esac
19735
19736                 for ac_func in getentropy
19737 do :
19738   ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
19739 if test "x$ac_cv_func_getentropy" = xyes; then :
19740   cat >>confdefs.h <<_ACEOF
19741 #define HAVE_GETENTROPY 1
19742 _ACEOF
19743
19744 else
19745
19746                     if test "$USE_WINSOCK" = 1; then
19747                         case " $LIBOBJS " in
19748   *" getentropy_win.$ac_objext "* ) ;;
19749   *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
19750  ;;
19751 esac
19752
19753                     else
19754                         case "$host" in
19755                         Darwin|*darwin*)
19756                                 case " $LIBOBJS " in
19757   *" getentropy_osx.$ac_objext "* ) ;;
19758   *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
19759  ;;
19760 esac
19761
19762                         ;;
19763                         *solaris*|*sunos*|SunOS)
19764                                 case " $LIBOBJS " in
19765   *" getentropy_solaris.$ac_objext "* ) ;;
19766   *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
19767  ;;
19768 esac
19769
19770                                 for ac_header in sys/sha2.h
19771 do :
19772   ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
19773 "
19774 if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
19775   cat >>confdefs.h <<_ACEOF
19776 #define HAVE_SYS_SHA2_H 1
19777 _ACEOF
19778
19779 else
19780
19781                                         for ac_func in SHA512_Update
19782 do :
19783   ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
19784 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
19785   cat >>confdefs.h <<_ACEOF
19786 #define HAVE_SHA512_UPDATE 1
19787 _ACEOF
19788
19789 else
19790
19791                                                 case " $LIBOBJS " in
19792   *" sha512.$ac_objext "* ) ;;
19793   *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
19794  ;;
19795 esac
19796
19797
19798 fi
19799 done
19800
19801
19802 fi
19803
19804 done
19805
19806                                 if test "$ac_cv_header_sys_sha2_h" = "yes"; then
19807                                         # this lib needed for sha2 on solaris
19808                                         LIBS="$LIBS -lmd"
19809                                 fi
19810                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19811 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19812 if ${ac_cv_search_clock_gettime+:} false; then :
19813   $as_echo_n "(cached) " >&6
19814 else
19815   ac_func_search_save_LIBS=$LIBS
19816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19817 /* end confdefs.h.  */
19818
19819 /* Override any GCC internal prototype to avoid an error.
19820    Use char because int might match the return type of a GCC
19821    builtin and then its argument prototype would still apply.  */
19822 #ifdef __cplusplus
19823 extern "C"
19824 #endif
19825 char clock_gettime ();
19826 int
19827 main ()
19828 {
19829 return clock_gettime ();
19830   ;
19831   return 0;
19832 }
19833 _ACEOF
19834 for ac_lib in '' rt; do
19835   if test -z "$ac_lib"; then
19836     ac_res="none required"
19837   else
19838     ac_res=-l$ac_lib
19839     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19840   fi
19841   if ac_fn_c_try_link "$LINENO"; then :
19842   ac_cv_search_clock_gettime=$ac_res
19843 fi
19844 rm -f core conftest.err conftest.$ac_objext \
19845     conftest$ac_exeext
19846   if ${ac_cv_search_clock_gettime+:} false; then :
19847   break
19848 fi
19849 done
19850 if ${ac_cv_search_clock_gettime+:} false; then :
19851
19852 else
19853   ac_cv_search_clock_gettime=no
19854 fi
19855 rm conftest.$ac_ext
19856 LIBS=$ac_func_search_save_LIBS
19857 fi
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19859 $as_echo "$ac_cv_search_clock_gettime" >&6; }
19860 ac_res=$ac_cv_search_clock_gettime
19861 if test "$ac_res" != no; then :
19862   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19863
19864 fi
19865
19866                         ;;
19867                         *linux*|Linux|*)
19868                                 case " $LIBOBJS " in
19869   *" getentropy_linux.$ac_objext "* ) ;;
19870   *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
19871  ;;
19872 esac
19873
19874                                 for ac_func in SHA512_Update
19875 do :
19876   ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
19877 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
19878   cat >>confdefs.h <<_ACEOF
19879 #define HAVE_SHA512_UPDATE 1
19880 _ACEOF
19881
19882 else
19883
19884
19885 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
19886
19887                                         case " $LIBOBJS " in
19888   *" sha512.$ac_objext "* ) ;;
19889   *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
19890  ;;
19891 esac
19892
19893
19894 fi
19895 done
19896
19897                                 for ac_header in sys/sysctl.h
19898 do :
19899   ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
19900 "
19901 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
19902   cat >>confdefs.h <<_ACEOF
19903 #define HAVE_SYS_SYSCTL_H 1
19904 _ACEOF
19905
19906 fi
19907
19908 done
19909
19910                                 for ac_func in getauxval
19911 do :
19912   ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
19913 if test "x$ac_cv_func_getauxval" = xyes; then :
19914   cat >>confdefs.h <<_ACEOF
19915 #define HAVE_GETAUXVAL 1
19916 _ACEOF
19917
19918 fi
19919 done
19920
19921                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19922 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19923 if ${ac_cv_search_clock_gettime+:} false; then :
19924   $as_echo_n "(cached) " >&6
19925 else
19926   ac_func_search_save_LIBS=$LIBS
19927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19928 /* end confdefs.h.  */
19929
19930 /* Override any GCC internal prototype to avoid an error.
19931    Use char because int might match the return type of a GCC
19932    builtin and then its argument prototype would still apply.  */
19933 #ifdef __cplusplus
19934 extern "C"
19935 #endif
19936 char clock_gettime ();
19937 int
19938 main ()
19939 {
19940 return clock_gettime ();
19941   ;
19942   return 0;
19943 }
19944 _ACEOF
19945 for ac_lib in '' rt; do
19946   if test -z "$ac_lib"; then
19947     ac_res="none required"
19948   else
19949     ac_res=-l$ac_lib
19950     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19951   fi
19952   if ac_fn_c_try_link "$LINENO"; then :
19953   ac_cv_search_clock_gettime=$ac_res
19954 fi
19955 rm -f core conftest.err conftest.$ac_objext \
19956     conftest$ac_exeext
19957   if ${ac_cv_search_clock_gettime+:} false; then :
19958   break
19959 fi
19960 done
19961 if ${ac_cv_search_clock_gettime+:} false; then :
19962
19963 else
19964   ac_cv_search_clock_gettime=no
19965 fi
19966 rm conftest.$ac_ext
19967 LIBS=$ac_func_search_save_LIBS
19968 fi
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19970 $as_echo "$ac_cv_search_clock_gettime" >&6; }
19971 ac_res=$ac_cv_search_clock_gettime
19972 if test "$ac_res" != no; then :
19973   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19974
19975 fi
19976
19977                         ;;
19978                         esac
19979                     fi
19980
19981 fi
19982 done
19983
19984         fi
19985 fi
19986 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
19987
19988 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
19989 if test "x$ac_cv_func_ctime_r" = xyes; then :
19990   $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
19991
19992 else
19993   case " $LIBOBJS " in
19994   *" ctime_r.$ac_objext "* ) ;;
19995   *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
19996  ;;
19997 esac
19998
19999 fi
20000
20001
20002 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
20003 if test "x$ac_cv_func_strsep" = xyes; then :
20004   $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
20005
20006 else
20007   case " $LIBOBJS " in
20008   *" strsep.$ac_objext "* ) ;;
20009   *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
20010  ;;
20011 esac
20012
20013 fi
20014
20015
20016
20017 # Check whether --enable-allsymbols was given.
20018 if test "${enable_allsymbols+set}" = set; then :
20019   enableval=$enable_allsymbols;
20020 fi
20021
20022 case "$enable_allsymbols" in
20023         yes)
20024         COMMON_OBJ_ALL_SYMBOLS=""
20025         UBSYMS=""
20026         EXTRALINK="-L. -L.libs -lunbound"
20027
20028 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
20029
20030         ;;
20031         no|*)
20032         COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
20033         UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
20034         EXTRALINK=""
20035         ;;
20036 esac
20037
20038
20039
20040 if test x_$enable_lock_checks = x_yes; then
20041         UBSYMS="-export-symbols clubsyms.def"
20042         cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
20043         echo lock_protect >> clubsyms.def
20044         echo lock_unprotect >> clubsyms.def
20045         echo lock_get_mem >> clubsyms.def
20046         echo checklock_start >> clubsyms.def
20047         echo checklock_stop >> clubsyms.def
20048         echo checklock_lock >> clubsyms.def
20049         echo checklock_unlock >> clubsyms.def
20050         echo checklock_init >> clubsyms.def
20051         echo checklock_thrcreate >> clubsyms.def
20052         echo checklock_thrjoin >> clubsyms.def
20053 fi
20054
20055 # check for dnstap if requested
20056
20057   # Check whether --enable-dnstap was given.
20058 if test "${enable_dnstap+set}" = set; then :
20059   enableval=$enable_dnstap; opt_dnstap=$enableval
20060 else
20061   opt_dnstap=no
20062 fi
20063
20064
20065
20066 # Check whether --with-dnstap-socket-path was given.
20067 if test "${with_dnstap_socket_path+set}" = set; then :
20068   withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
20069 else
20070   opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
20071 fi
20072
20073
20074   if test "x$opt_dnstap" != "xno"; then
20075     # Extract the first word of "protoc-c", so it can be a program name with args.
20076 set dummy protoc-c; ac_word=$2
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20078 $as_echo_n "checking for $ac_word... " >&6; }
20079 if ${ac_cv_path_PROTOC_C+:} false; then :
20080   $as_echo_n "(cached) " >&6
20081 else
20082   case $PROTOC_C in
20083   [\\/]* | ?:[\\/]*)
20084   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
20085   ;;
20086   *)
20087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20088 for as_dir in $PATH
20089 do
20090   IFS=$as_save_IFS
20091   test -z "$as_dir" && as_dir=.
20092     for ac_exec_ext in '' $ac_executable_extensions; do
20093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20094     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
20095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20096     break 2
20097   fi
20098 done
20099   done
20100 IFS=$as_save_IFS
20101
20102   ;;
20103 esac
20104 fi
20105 PROTOC_C=$ac_cv_path_PROTOC_C
20106 if test -n "$PROTOC_C"; then
20107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
20108 $as_echo "$PROTOC_C" >&6; }
20109 else
20110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20111 $as_echo "no" >&6; }
20112 fi
20113
20114
20115     if test -z "$PROTOC_C"; then
20116       as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
20117     fi
20118
20119 # Check whether --with-protobuf-c was given.
20120 if test "${with_protobuf_c+set}" = set; then :
20121   withval=$with_protobuf_c;
20122           # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
20123           if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
20124             CFLAGS="$CFLAGS -I$withval/include/google"
20125           else
20126             CFLAGS="$CFLAGS -I$withval/include"
20127           fi
20128           LDFLAGS="$LDFLAGS -L$withval/lib"
20129
20130 else
20131
20132           # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
20133           if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
20134             CFLAGS="$CFLAGS -I/usr/include/google"
20135           else
20136             if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
20137               CFLAGS="$CFLAGS -I/usr/local/include/google"
20138               LDFLAGS="$LDFLAGS -L/usr/local/lib"
20139             fi
20140           fi
20141
20142 fi
20143
20144
20145 # Check whether --with-libfstrm was given.
20146 if test "${with_libfstrm+set}" = set; then :
20147   withval=$with_libfstrm;
20148         CFLAGS="$CFLAGS -I$withval/include"
20149         LDFLAGS="$LDFLAGS -L$withval/lib"
20150
20151 fi
20152
20153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
20154 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
20155 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20156   $as_echo_n "(cached) " >&6
20157 else
20158   ac_func_search_save_LIBS=$LIBS
20159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20160 /* end confdefs.h.  */
20161
20162 /* Override any GCC internal prototype to avoid an error.
20163    Use char because int might match the return type of a GCC
20164    builtin and then its argument prototype would still apply.  */
20165 #ifdef __cplusplus
20166 extern "C"
20167 #endif
20168 char fstrm_iothr_init ();
20169 int
20170 main ()
20171 {
20172 return fstrm_iothr_init ();
20173   ;
20174   return 0;
20175 }
20176 _ACEOF
20177 for ac_lib in '' fstrm; do
20178   if test -z "$ac_lib"; then
20179     ac_res="none required"
20180   else
20181     ac_res=-l$ac_lib
20182     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20183   fi
20184   if ac_fn_c_try_link "$LINENO"; then :
20185   ac_cv_search_fstrm_iothr_init=$ac_res
20186 fi
20187 rm -f core conftest.err conftest.$ac_objext \
20188     conftest$ac_exeext
20189   if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20190   break
20191 fi
20192 done
20193 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20194
20195 else
20196   ac_cv_search_fstrm_iothr_init=no
20197 fi
20198 rm conftest.$ac_ext
20199 LIBS=$ac_func_search_save_LIBS
20200 fi
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
20202 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
20203 ac_res=$ac_cv_search_fstrm_iothr_init
20204 if test "$ac_res" != no; then :
20205   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20206
20207 else
20208   as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
20209 fi
20210
20211     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
20212 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
20213 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20214   $as_echo_n "(cached) " >&6
20215 else
20216   ac_func_search_save_LIBS=$LIBS
20217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20218 /* end confdefs.h.  */
20219
20220 /* Override any GCC internal prototype to avoid an error.
20221    Use char because int might match the return type of a GCC
20222    builtin and then its argument prototype would still apply.  */
20223 #ifdef __cplusplus
20224 extern "C"
20225 #endif
20226 char protobuf_c_message_pack ();
20227 int
20228 main ()
20229 {
20230 return protobuf_c_message_pack ();
20231   ;
20232   return 0;
20233 }
20234 _ACEOF
20235 for ac_lib in '' protobuf-c; do
20236   if test -z "$ac_lib"; then
20237     ac_res="none required"
20238   else
20239     ac_res=-l$ac_lib
20240     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20241   fi
20242   if ac_fn_c_try_link "$LINENO"; then :
20243   ac_cv_search_protobuf_c_message_pack=$ac_res
20244 fi
20245 rm -f core conftest.err conftest.$ac_objext \
20246     conftest$ac_exeext
20247   if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20248   break
20249 fi
20250 done
20251 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20252
20253 else
20254   ac_cv_search_protobuf_c_message_pack=no
20255 fi
20256 rm conftest.$ac_ext
20257 LIBS=$ac_func_search_save_LIBS
20258 fi
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
20260 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
20261 ac_res=$ac_cv_search_protobuf_c_message_pack
20262 if test "$ac_res" != no; then :
20263   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20264
20265 else
20266   as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
20267 fi
20268
20269
20270
20271 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
20272
20273         ENABLE_DNSTAP=1
20274
20275
20276
20277         hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
20278
20279
20280 cat >>confdefs.h <<_ACEOF
20281 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
20282 _ACEOF
20283
20284
20285         DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c"
20286
20287         DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo"
20288
20289
20290   else
20291
20292         ENABLE_DNSTAP=0
20293
20294
20295
20296   fi
20297
20298
20299 # check for dnscrypt if requested
20300
20301   # Check whether --enable-dnscrypt was given.
20302 if test "${enable_dnscrypt+set}" = set; then :
20303   enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
20304 else
20305   opt_dnscrypt=no
20306 fi
20307
20308
20309   if test "x$opt_dnscrypt" != "xno"; then
20310
20311 # Check whether --with-libsodium was given.
20312 if test "${with_libsodium+set}" = set; then :
20313   withval=$with_libsodium;
20314         CFLAGS="$CFLAGS -I$withval/include"
20315         LDFLAGS="$LDFLAGS -L$withval/lib"
20316
20317 fi
20318
20319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
20320 $as_echo_n "checking for library containing sodium_init... " >&6; }
20321 if ${ac_cv_search_sodium_init+:} false; then :
20322   $as_echo_n "(cached) " >&6
20323 else
20324   ac_func_search_save_LIBS=$LIBS
20325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20326 /* end confdefs.h.  */
20327
20328 /* Override any GCC internal prototype to avoid an error.
20329    Use char because int might match the return type of a GCC
20330    builtin and then its argument prototype would still apply.  */
20331 #ifdef __cplusplus
20332 extern "C"
20333 #endif
20334 char sodium_init ();
20335 int
20336 main ()
20337 {
20338 return sodium_init ();
20339   ;
20340   return 0;
20341 }
20342 _ACEOF
20343 for ac_lib in '' sodium; do
20344   if test -z "$ac_lib"; then
20345     ac_res="none required"
20346   else
20347     ac_res=-l$ac_lib
20348     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20349   fi
20350   if ac_fn_c_try_link "$LINENO"; then :
20351   ac_cv_search_sodium_init=$ac_res
20352 fi
20353 rm -f core conftest.err conftest.$ac_objext \
20354     conftest$ac_exeext
20355   if ${ac_cv_search_sodium_init+:} false; then :
20356   break
20357 fi
20358 done
20359 if ${ac_cv_search_sodium_init+:} false; then :
20360
20361 else
20362   ac_cv_search_sodium_init=no
20363 fi
20364 rm conftest.$ac_ext
20365 LIBS=$ac_func_search_save_LIBS
20366 fi
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
20368 $as_echo "$ac_cv_search_sodium_init" >&6; }
20369 ac_res=$ac_cv_search_sodium_init
20370 if test "$ac_res" != no; then :
20371   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20372
20373 else
20374   as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
20375 fi
20376
20377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
20378 $as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
20379 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
20380   $as_echo_n "(cached) " >&6
20381 else
20382   ac_func_search_save_LIBS=$LIBS
20383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20384 /* end confdefs.h.  */
20385
20386 /* Override any GCC internal prototype to avoid an error.
20387    Use char because int might match the return type of a GCC
20388    builtin and then its argument prototype would still apply.  */
20389 #ifdef __cplusplus
20390 extern "C"
20391 #endif
20392 char crypto_box_curve25519xchacha20poly1305_beforenm ();
20393 int
20394 main ()
20395 {
20396 return crypto_box_curve25519xchacha20poly1305_beforenm ();
20397   ;
20398   return 0;
20399 }
20400 _ACEOF
20401 for ac_lib in '' sodium; do
20402   if test -z "$ac_lib"; then
20403     ac_res="none required"
20404   else
20405     ac_res=-l$ac_lib
20406     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20407   fi
20408   if ac_fn_c_try_link "$LINENO"; then :
20409   ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
20410 fi
20411 rm -f core conftest.err conftest.$ac_objext \
20412     conftest$ac_exeext
20413   if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
20414   break
20415 fi
20416 done
20417 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
20418
20419 else
20420   ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
20421 fi
20422 rm conftest.$ac_ext
20423 LIBS=$ac_func_search_save_LIBS
20424 fi
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
20426 $as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
20427 ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
20428 if test "$ac_res" != no; then :
20429   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20430
20431             ENABLE_DNSCRYPT_XCHACHA20=1
20432
20433
20434 $as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
20435
20436
20437 else
20438
20439             ENABLE_DNSCRYPT_XCHACHA20=0
20440
20441
20442 fi
20443
20444
20445
20446 $as_echo "#define USE_DNSCRYPT 1" >>confdefs.h
20447
20448         ENABLE_DNSCRYPT=1
20449
20450
20451         DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
20452
20453         DNSCRYPT_OBJ="dnscrypt.lo"
20454
20455
20456   else
20457     ENABLE_DNSCRYPT_XCHACHA20=0
20458
20459
20460         ENABLE_DNSCRYPT=0
20461
20462
20463
20464   fi
20465
20466
20467 # check for cachedb if requested
20468 # Check whether --enable-cachedb was given.
20469 if test "${enable_cachedb+set}" = set; then :
20470   enableval=$enable_cachedb;
20471 fi
20472
20473 case "$enable_cachedb" in
20474     yes)
20475
20476 $as_echo "#define USE_CACHEDB 1" >>confdefs.h
20477
20478         ;;
20479     no|*)
20480         # nothing
20481         ;;
20482 esac
20483
20484 # check for ipsecmod if requested
20485 # Check whether --enable-ipsecmod was given.
20486 if test "${enable_ipsecmod+set}" = set; then :
20487   enableval=$enable_ipsecmod;
20488 fi
20489
20490 case "$enable_ipsecmod" in
20491         yes)
20492
20493 $as_echo "#define USE_IPSECMOD 1" >>confdefs.h
20494
20495                 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
20496
20497                 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
20498
20499                 ;;
20500         no|*)
20501                 # nothing
20502                 ;;
20503 esac
20504
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
20506 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
20507 # on openBSD, the implicit rule make $< work.
20508 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
20509 # gmake works.
20510 cat >conftest.make <<EOF
20511 all:    conftest.lo
20512
20513 conftest.lo foo.lo bla.lo:
20514         if test -f "\$<"; then touch \$@; fi
20515
20516 .SUFFIXES: .lo
20517 .c.lo:
20518         if test -f "\$<"; then touch \$@; fi
20519
20520 conftest.lo:        conftest.dir/conftest.c
20521 EOF
20522 mkdir conftest.dir
20523 touch conftest.dir/conftest.c
20524 rm -f conftest.lo conftest.c
20525 ${MAKE:-make} -f conftest.make >/dev/null
20526 rm -f conftest.make conftest.c conftest.dir/conftest.c
20527 rm -rf conftest.dir
20528 if test ! -f conftest.lo; then
20529         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20530 $as_echo "no" >&6; }
20531         SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
20532         SOURCEFILE='`cat .source`'
20533 else
20534         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20535 $as_echo "yes" >&6; }
20536         SOURCEDETERMINE=':'
20537         SOURCEFILE='$<'
20538 fi
20539 rm -f conftest.lo
20540
20541
20542
20543 # see if we want to build the library or everything
20544 ALLTARGET="alltargets"
20545 INSTALLTARGET="install-all"
20546
20547 # Check whether --with-libunbound-only was given.
20548 if test "${with_libunbound_only+set}" = set; then :
20549   withval=$with_libunbound_only;
20550         if test "$withval" = "yes"; then
20551                 ALLTARGET="lib"
20552                 INSTALLTARGET="install-lib"
20553         fi
20554
20555 fi
20556
20557
20558
20559
20560
20561   { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
20562 $as_echo "$as_me: Stripping extension flags..." >&6;}
20563
20564   if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
20565     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
20566
20567 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
20568
20569   fi
20570
20571
20572   if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
20573     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
20574
20575 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
20576
20577   fi
20578
20579
20580   if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
20581     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
20582
20583 $as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
20584
20585   fi
20586
20587
20588   if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
20589     CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
20590
20591 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
20592
20593   fi
20594
20595
20596   if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
20597     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
20598
20599 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
20600
20601   fi
20602
20603
20604   if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
20605     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
20606
20607 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
20608
20609   fi
20610
20611
20612   if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
20613     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
20614
20615 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
20616
20617   fi
20618
20619
20620   if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
20621     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
20622
20623 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
20624
20625   fi
20626
20627
20628   if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
20629     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
20630
20631 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
20632
20633   fi
20634
20635
20636 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
20637
20638
20639 cat >>confdefs.h <<_ACEOF
20640 #define MAXSYSLOGMSGLEN 10240
20641 _ACEOF
20642
20643
20644
20645
20646 version=1.6.5
20647
20648 date=`date +'%b %e, %Y'`
20649
20650
20651 ac_config_files="$ac_config_files Makefile doc/example.conf doc/libunbound.3 doc/unbound.8 doc/unbound-anchor.8 doc/unbound-checkconf.8 doc/unbound.conf.5 doc/unbound-control.8 doc/unbound-host.1 smallapp/unbound-control-setup.sh dnstap/dnstap_config.h dnscrypt/dnscrypt_config.h contrib/libunbound.pc contrib/unbound.socket contrib/unbound.service"
20652
20653 ac_config_headers="$ac_config_headers config.h"
20654
20655 cat >confcache <<\_ACEOF
20656 # This file is a shell script that caches the results of configure
20657 # tests run on this system so they can be shared between configure
20658 # scripts and configure runs, see configure's option --config-cache.
20659 # It is not useful on other systems.  If it contains results you don't
20660 # want to keep, you may remove or edit it.
20661 #
20662 # config.status only pays attention to the cache file if you give it
20663 # the --recheck option to rerun configure.
20664 #
20665 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20666 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20667 # following values.
20668
20669 _ACEOF
20670
20671 # The following way of writing the cache mishandles newlines in values,
20672 # but we know of no workaround that is simple, portable, and efficient.
20673 # So, we kill variables containing newlines.
20674 # Ultrix sh set writes to stderr and can't be redirected directly,
20675 # and sets the high bit in the cache file unless we assign to the vars.
20676 (
20677   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20678     eval ac_val=\$$ac_var
20679     case $ac_val in #(
20680     *${as_nl}*)
20681       case $ac_var in #(
20682       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20683 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20684       esac
20685       case $ac_var in #(
20686       _ | IFS | as_nl) ;; #(
20687       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20688       *) { eval $ac_var=; unset $ac_var;} ;;
20689       esac ;;
20690     esac
20691   done
20692
20693   (set) 2>&1 |
20694     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20695     *${as_nl}ac_space=\ *)
20696       # `set' does not quote correctly, so add quotes: double-quote
20697       # substitution turns \\\\ into \\, and sed turns \\ into \.
20698       sed -n \
20699         "s/'/'\\\\''/g;
20700           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20701       ;; #(
20702     *)
20703       # `set' quotes correctly as required by POSIX, so do not add quotes.
20704       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20705       ;;
20706     esac |
20707     sort
20708 ) |
20709   sed '
20710      /^ac_cv_env_/b end
20711      t clear
20712      :clear
20713      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20714      t end
20715      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20716      :end' >>confcache
20717 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20718   if test -w "$cache_file"; then
20719     if test "x$cache_file" != "x/dev/null"; then
20720       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20721 $as_echo "$as_me: updating cache $cache_file" >&6;}
20722       if test ! -f "$cache_file" || test -h "$cache_file"; then
20723         cat confcache >"$cache_file"
20724       else
20725         case $cache_file in #(
20726         */* | ?:*)
20727           mv -f confcache "$cache_file"$$ &&
20728           mv -f "$cache_file"$$ "$cache_file" ;; #(
20729         *)
20730           mv -f confcache "$cache_file" ;;
20731         esac
20732       fi
20733     fi
20734   else
20735     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20736 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20737   fi
20738 fi
20739 rm -f confcache
20740
20741 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20742 # Let make expand exec_prefix.
20743 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20744
20745 DEFS=-DHAVE_CONFIG_H
20746
20747 ac_libobjs=
20748 ac_ltlibobjs=
20749 U=
20750 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20751   # 1. Remove the extension, and $U if already installed.
20752   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20753   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20754   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20755   #    will be set to the directory where LIBOBJS objects are built.
20756   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20757   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20758 done
20759 LIBOBJS=$ac_libobjs
20760
20761 LTLIBOBJS=$ac_ltlibobjs
20762
20763
20764 if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
20765   as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
20766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20767 fi
20768
20769 : "${CONFIG_STATUS=./config.status}"
20770 ac_write_fail=0
20771 ac_clean_files_save=$ac_clean_files
20772 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20773 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20774 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20775 as_write_fail=0
20776 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20777 #! $SHELL
20778 # Generated by $as_me.
20779 # Run this file to recreate the current configuration.
20780 # Compiler output produced by configure, useful for debugging
20781 # configure, is in config.log if it exists.
20782
20783 debug=false
20784 ac_cs_recheck=false
20785 ac_cs_silent=false
20786
20787 SHELL=\${CONFIG_SHELL-$SHELL}
20788 export SHELL
20789 _ASEOF
20790 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20791 ## -------------------- ##
20792 ## M4sh Initialization. ##
20793 ## -------------------- ##
20794
20795 # Be more Bourne compatible
20796 DUALCASE=1; export DUALCASE # for MKS sh
20797 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20798   emulate sh
20799   NULLCMD=:
20800   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20801   # is contrary to our usage.  Disable this feature.
20802   alias -g '${1+"$@"}'='"$@"'
20803   setopt NO_GLOB_SUBST
20804 else
20805   case `(set -o) 2>/dev/null` in #(
20806   *posix*) :
20807     set -o posix ;; #(
20808   *) :
20809      ;;
20810 esac
20811 fi
20812
20813
20814 as_nl='
20815 '
20816 export as_nl
20817 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20818 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20819 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20820 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20821 # Prefer a ksh shell builtin over an external printf program on Solaris,
20822 # but without wasting forks for bash or zsh.
20823 if test -z "$BASH_VERSION$ZSH_VERSION" \
20824     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20825   as_echo='print -r --'
20826   as_echo_n='print -rn --'
20827 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20828   as_echo='printf %s\n'
20829   as_echo_n='printf %s'
20830 else
20831   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20832     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20833     as_echo_n='/usr/ucb/echo -n'
20834   else
20835     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20836     as_echo_n_body='eval
20837       arg=$1;
20838       case $arg in #(
20839       *"$as_nl"*)
20840         expr "X$arg" : "X\\(.*\\)$as_nl";
20841         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20842       esac;
20843       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20844     '
20845     export as_echo_n_body
20846     as_echo_n='sh -c $as_echo_n_body as_echo'
20847   fi
20848   export as_echo_body
20849   as_echo='sh -c $as_echo_body as_echo'
20850 fi
20851
20852 # The user is always right.
20853 if test "${PATH_SEPARATOR+set}" != set; then
20854   PATH_SEPARATOR=:
20855   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20856     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20857       PATH_SEPARATOR=';'
20858   }
20859 fi
20860
20861
20862 # IFS
20863 # We need space, tab and new line, in precisely that order.  Quoting is
20864 # there to prevent editors from complaining about space-tab.
20865 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20866 # splitting by setting IFS to empty value.)
20867 IFS=" ""        $as_nl"
20868
20869 # Find who we are.  Look in the path if we contain no directory separator.
20870 as_myself=
20871 case $0 in #((
20872   *[\\/]* ) as_myself=$0 ;;
20873   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20874 for as_dir in $PATH
20875 do
20876   IFS=$as_save_IFS
20877   test -z "$as_dir" && as_dir=.
20878     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20879   done
20880 IFS=$as_save_IFS
20881
20882      ;;
20883 esac
20884 # We did not find ourselves, most probably we were run as `sh COMMAND'
20885 # in which case we are not to be found in the path.
20886 if test "x$as_myself" = x; then
20887   as_myself=$0
20888 fi
20889 if test ! -f "$as_myself"; then
20890   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20891   exit 1
20892 fi
20893
20894 # Unset variables that we do not need and which cause bugs (e.g. in
20895 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20896 # suppresses any "Segmentation fault" message there.  '((' could
20897 # trigger a bug in pdksh 5.2.14.
20898 for as_var in BASH_ENV ENV MAIL MAILPATH
20899 do eval test x\${$as_var+set} = xset \
20900   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20901 done
20902 PS1='$ '
20903 PS2='> '
20904 PS4='+ '
20905
20906 # NLS nuisances.
20907 LC_ALL=C
20908 export LC_ALL
20909 LANGUAGE=C
20910 export LANGUAGE
20911
20912 # CDPATH.
20913 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20914
20915
20916 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20917 # ----------------------------------------
20918 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20919 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20920 # script with STATUS, using 1 if that was 0.
20921 as_fn_error ()
20922 {
20923   as_status=$1; test $as_status -eq 0 && as_status=1
20924   if test "$4"; then
20925     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20926     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20927   fi
20928   $as_echo "$as_me: error: $2" >&2
20929   as_fn_exit $as_status
20930 } # as_fn_error
20931
20932
20933 # as_fn_set_status STATUS
20934 # -----------------------
20935 # Set $? to STATUS, without forking.
20936 as_fn_set_status ()
20937 {
20938   return $1
20939 } # as_fn_set_status
20940
20941 # as_fn_exit STATUS
20942 # -----------------
20943 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20944 as_fn_exit ()
20945 {
20946   set +e
20947   as_fn_set_status $1
20948   exit $1
20949 } # as_fn_exit
20950
20951 # as_fn_unset VAR
20952 # ---------------
20953 # Portably unset VAR.
20954 as_fn_unset ()
20955 {
20956   { eval $1=; unset $1;}
20957 }
20958 as_unset=as_fn_unset
20959 # as_fn_append VAR VALUE
20960 # ----------------------
20961 # Append the text in VALUE to the end of the definition contained in VAR. Take
20962 # advantage of any shell optimizations that allow amortized linear growth over
20963 # repeated appends, instead of the typical quadratic growth present in naive
20964 # implementations.
20965 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20966   eval 'as_fn_append ()
20967   {
20968     eval $1+=\$2
20969   }'
20970 else
20971   as_fn_append ()
20972   {
20973     eval $1=\$$1\$2
20974   }
20975 fi # as_fn_append
20976
20977 # as_fn_arith ARG...
20978 # ------------------
20979 # Perform arithmetic evaluation on the ARGs, and store the result in the
20980 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20981 # must be portable across $(()) and expr.
20982 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20983   eval 'as_fn_arith ()
20984   {
20985     as_val=$(( $* ))
20986   }'
20987 else
20988   as_fn_arith ()
20989   {
20990     as_val=`expr "$@" || test $? -eq 1`
20991   }
20992 fi # as_fn_arith
20993
20994
20995 if expr a : '\(a\)' >/dev/null 2>&1 &&
20996    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20997   as_expr=expr
20998 else
20999   as_expr=false
21000 fi
21001
21002 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21003   as_basename=basename
21004 else
21005   as_basename=false
21006 fi
21007
21008 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21009   as_dirname=dirname
21010 else
21011   as_dirname=false
21012 fi
21013
21014 as_me=`$as_basename -- "$0" ||
21015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21016          X"$0" : 'X\(//\)$' \| \
21017          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21018 $as_echo X/"$0" |
21019     sed '/^.*\/\([^/][^/]*\)\/*$/{
21020             s//\1/
21021             q
21022           }
21023           /^X\/\(\/\/\)$/{
21024             s//\1/
21025             q
21026           }
21027           /^X\/\(\/\).*/{
21028             s//\1/
21029             q
21030           }
21031           s/.*/./; q'`
21032
21033 # Avoid depending upon Character Ranges.
21034 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21035 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21036 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21037 as_cr_digits='0123456789'
21038 as_cr_alnum=$as_cr_Letters$as_cr_digits
21039
21040 ECHO_C= ECHO_N= ECHO_T=
21041 case `echo -n x` in #(((((
21042 -n*)
21043   case `echo 'xy\c'` in
21044   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21045   xy)  ECHO_C='\c';;
21046   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21047        ECHO_T=' ';;
21048   esac;;
21049 *)
21050   ECHO_N='-n';;
21051 esac
21052
21053 rm -f conf$$ conf$$.exe conf$$.file
21054 if test -d conf$$.dir; then
21055   rm -f conf$$.dir/conf$$.file
21056 else
21057   rm -f conf$$.dir
21058   mkdir conf$$.dir 2>/dev/null
21059 fi
21060 if (echo >conf$$.file) 2>/dev/null; then
21061   if ln -s conf$$.file conf$$ 2>/dev/null; then
21062     as_ln_s='ln -s'
21063     # ... but there are two gotchas:
21064     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21065     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21066     # In both cases, we have to default to `cp -pR'.
21067     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21068       as_ln_s='cp -pR'
21069   elif ln conf$$.file conf$$ 2>/dev/null; then
21070     as_ln_s=ln
21071   else
21072     as_ln_s='cp -pR'
21073   fi
21074 else
21075   as_ln_s='cp -pR'
21076 fi
21077 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21078 rmdir conf$$.dir 2>/dev/null
21079
21080
21081 # as_fn_mkdir_p
21082 # -------------
21083 # Create "$as_dir" as a directory, including parents if necessary.
21084 as_fn_mkdir_p ()
21085 {
21086
21087   case $as_dir in #(
21088   -*) as_dir=./$as_dir;;
21089   esac
21090   test -d "$as_dir" || eval $as_mkdir_p || {
21091     as_dirs=
21092     while :; do
21093       case $as_dir in #(
21094       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21095       *) as_qdir=$as_dir;;
21096       esac
21097       as_dirs="'$as_qdir' $as_dirs"
21098       as_dir=`$as_dirname -- "$as_dir" ||
21099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21100          X"$as_dir" : 'X\(//\)[^/]' \| \
21101          X"$as_dir" : 'X\(//\)$' \| \
21102          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21103 $as_echo X"$as_dir" |
21104     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21105             s//\1/
21106             q
21107           }
21108           /^X\(\/\/\)[^/].*/{
21109             s//\1/
21110             q
21111           }
21112           /^X\(\/\/\)$/{
21113             s//\1/
21114             q
21115           }
21116           /^X\(\/\).*/{
21117             s//\1/
21118             q
21119           }
21120           s/.*/./; q'`
21121       test -d "$as_dir" && break
21122     done
21123     test -z "$as_dirs" || eval "mkdir $as_dirs"
21124   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21125
21126
21127 } # as_fn_mkdir_p
21128 if mkdir -p . 2>/dev/null; then
21129   as_mkdir_p='mkdir -p "$as_dir"'
21130 else
21131   test -d ./-p && rmdir ./-p
21132   as_mkdir_p=false
21133 fi
21134
21135
21136 # as_fn_executable_p FILE
21137 # -----------------------
21138 # Test if FILE is an executable regular file.
21139 as_fn_executable_p ()
21140 {
21141   test -f "$1" && test -x "$1"
21142 } # as_fn_executable_p
21143 as_test_x='test -x'
21144 as_executable_p=as_fn_executable_p
21145
21146 # Sed expression to map a string onto a valid CPP name.
21147 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21148
21149 # Sed expression to map a string onto a valid variable name.
21150 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21151
21152
21153 exec 6>&1
21154 ## ----------------------------------- ##
21155 ## Main body of $CONFIG_STATUS script. ##
21156 ## ----------------------------------- ##
21157 _ASEOF
21158 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21159
21160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21161 # Save the log message, to keep $0 and so on meaningful, and to
21162 # report actual input values of CONFIG_FILES etc. instead of their
21163 # values after options handling.
21164 ac_log="
21165 This file was extended by unbound $as_me 1.6.5, which was
21166 generated by GNU Autoconf 2.69.  Invocation command line was
21167
21168   CONFIG_FILES    = $CONFIG_FILES
21169   CONFIG_HEADERS  = $CONFIG_HEADERS
21170   CONFIG_LINKS    = $CONFIG_LINKS
21171   CONFIG_COMMANDS = $CONFIG_COMMANDS
21172   $ $0 $@
21173
21174 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21175 "
21176
21177 _ACEOF
21178
21179 case $ac_config_files in *"
21180 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21181 esac
21182
21183 case $ac_config_headers in *"
21184 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21185 esac
21186
21187
21188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21189 # Files that config.status was made for.
21190 config_files="$ac_config_files"
21191 config_headers="$ac_config_headers"
21192 config_commands="$ac_config_commands"
21193
21194 _ACEOF
21195
21196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21197 ac_cs_usage="\
21198 \`$as_me' instantiates files and other configuration actions
21199 from templates according to the current configuration.  Unless the files
21200 and actions are specified as TAGs, all are instantiated by default.
21201
21202 Usage: $0 [OPTION]... [TAG]...
21203
21204   -h, --help       print this help, then exit
21205   -V, --version    print version number and configuration settings, then exit
21206       --config     print configuration, then exit
21207   -q, --quiet, --silent
21208                    do not print progress messages
21209   -d, --debug      don't remove temporary files
21210       --recheck    update $as_me by reconfiguring in the same conditions
21211       --file=FILE[:TEMPLATE]
21212                    instantiate the configuration file FILE
21213       --header=FILE[:TEMPLATE]
21214                    instantiate the configuration header FILE
21215
21216 Configuration files:
21217 $config_files
21218
21219 Configuration headers:
21220 $config_headers
21221
21222 Configuration commands:
21223 $config_commands
21224
21225 Report bugs to <unbound-bugs@nlnetlabs.nl>."
21226
21227 _ACEOF
21228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21229 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21230 ac_cs_version="\\
21231 unbound config.status 1.6.5
21232 configured by $0, generated by GNU Autoconf 2.69,
21233   with options \\"\$ac_cs_config\\"
21234
21235 Copyright (C) 2012 Free Software Foundation, Inc.
21236 This config.status script is free software; the Free Software Foundation
21237 gives unlimited permission to copy, distribute and modify it."
21238
21239 ac_pwd='$ac_pwd'
21240 srcdir='$srcdir'
21241 AWK='$AWK'
21242 test -n "\$AWK" || AWK=awk
21243 _ACEOF
21244
21245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21246 # The default lists apply if the user does not specify any file.
21247 ac_need_defaults=:
21248 while test $# != 0
21249 do
21250   case $1 in
21251   --*=?*)
21252     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21253     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21254     ac_shift=:
21255     ;;
21256   --*=)
21257     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21258     ac_optarg=
21259     ac_shift=:
21260     ;;
21261   *)
21262     ac_option=$1
21263     ac_optarg=$2
21264     ac_shift=shift
21265     ;;
21266   esac
21267
21268   case $ac_option in
21269   # Handling of the options.
21270   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21271     ac_cs_recheck=: ;;
21272   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21273     $as_echo "$ac_cs_version"; exit ;;
21274   --config | --confi | --conf | --con | --co | --c )
21275     $as_echo "$ac_cs_config"; exit ;;
21276   --debug | --debu | --deb | --de | --d | -d )
21277     debug=: ;;
21278   --file | --fil | --fi | --f )
21279     $ac_shift
21280     case $ac_optarg in
21281     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21282     '') as_fn_error $? "missing file argument" ;;
21283     esac
21284     as_fn_append CONFIG_FILES " '$ac_optarg'"
21285     ac_need_defaults=false;;
21286   --header | --heade | --head | --hea )
21287     $ac_shift
21288     case $ac_optarg in
21289     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21290     esac
21291     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21292     ac_need_defaults=false;;
21293   --he | --h)
21294     # Conflict between --help and --header
21295     as_fn_error $? "ambiguous option: \`$1'
21296 Try \`$0 --help' for more information.";;
21297   --help | --hel | -h )
21298     $as_echo "$ac_cs_usage"; exit ;;
21299   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21300   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21301     ac_cs_silent=: ;;
21302
21303   # This is an error.
21304   -*) as_fn_error $? "unrecognized option: \`$1'
21305 Try \`$0 --help' for more information." ;;
21306
21307   *) as_fn_append ac_config_targets " $1"
21308      ac_need_defaults=false ;;
21309
21310   esac
21311   shift
21312 done
21313
21314 ac_configure_extra_args=
21315
21316 if $ac_cs_silent; then
21317   exec 6>/dev/null
21318   ac_configure_extra_args="$ac_configure_extra_args --silent"
21319 fi
21320
21321 _ACEOF
21322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21323 if \$ac_cs_recheck; then
21324   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21325   shift
21326   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21327   CONFIG_SHELL='$SHELL'
21328   export CONFIG_SHELL
21329   exec "\$@"
21330 fi
21331
21332 _ACEOF
21333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21334 exec 5>>config.log
21335 {
21336   echo
21337   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21338 ## Running $as_me. ##
21339 _ASBOX
21340   $as_echo "$ac_log"
21341 } >&5
21342
21343 _ACEOF
21344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21345 #
21346 # INIT-COMMANDS
21347 #
21348
21349
21350 # The HP-UX ksh and POSIX shell print the target directory to stdout
21351 # if CDPATH is set.
21352 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21353
21354 sed_quote_subst='$sed_quote_subst'
21355 double_quote_subst='$double_quote_subst'
21356 delay_variable_subst='$delay_variable_subst'
21357 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21358 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21359 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21360 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21361 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21362 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21363 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21364 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21365 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21366 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21367 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21368 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21369 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21370 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21371 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21372 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21373 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21374 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21375 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21376 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21377 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21378 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21379 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21380 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21381 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21382 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21383 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21384 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21385 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21386 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21387 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21388 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21389 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21390 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21391 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21392 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21393 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21394 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21395 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21396 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21397 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21398 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21399 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21400 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21401 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21402 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21403 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21404 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21405 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21406 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21407 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21408 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21409 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21410 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21411 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21412 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21413 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21414 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21415 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
21416 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21417 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21418 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21419 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21420 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21421 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21422 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21423 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21424 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21425 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21426 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21427 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21428 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21429 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21430 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21431 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21432 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21433 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21434 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21435 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21436 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21437 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21438 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21439 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21440 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21441 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21442 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21443 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21444 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21445 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21446 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21447 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21448 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21449 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21450 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21451 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21452 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21453 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21454 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21455 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21456 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21457 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21458 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21459 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21460 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21461 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21462 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21463 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21464 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21465 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21466 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21467 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21468 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21469 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21470 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21471 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21472 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21473 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21474 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21475 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21476 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21477 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21478 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21479 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21480 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21481 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21482 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21483 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21484 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21485 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21486 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21487 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21488 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21489 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21490 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21491 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21492
21493 LTCC='$LTCC'
21494 LTCFLAGS='$LTCFLAGS'
21495 compiler='$compiler_DEFAULT'
21496
21497 # A function that is used when there is no print builtin or printf.
21498 func_fallback_echo ()
21499 {
21500   eval 'cat <<_LTECHO_EOF
21501 \$1
21502 _LTECHO_EOF'
21503 }
21504
21505 # Quote evaled strings.
21506 for var in SHELL \
21507 ECHO \
21508 PATH_SEPARATOR \
21509 SED \
21510 GREP \
21511 EGREP \
21512 FGREP \
21513 LD \
21514 NM \
21515 LN_S \
21516 lt_SP2NL \
21517 lt_NL2SP \
21518 reload_flag \
21519 OBJDUMP \
21520 deplibs_check_method \
21521 file_magic_cmd \
21522 file_magic_glob \
21523 want_nocaseglob \
21524 DLLTOOL \
21525 sharedlib_from_linklib_cmd \
21526 AR \
21527 AR_FLAGS \
21528 archiver_list_spec \
21529 STRIP \
21530 RANLIB \
21531 CC \
21532 CFLAGS \
21533 compiler \
21534 lt_cv_sys_global_symbol_pipe \
21535 lt_cv_sys_global_symbol_to_cdecl \
21536 lt_cv_sys_global_symbol_to_import \
21537 lt_cv_sys_global_symbol_to_c_name_address \
21538 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21539 lt_cv_nm_interface \
21540 nm_file_list_spec \
21541 lt_cv_truncate_bin \
21542 lt_prog_compiler_no_builtin_flag \
21543 lt_prog_compiler_pic \
21544 lt_prog_compiler_wl \
21545 lt_prog_compiler_static \
21546 lt_cv_prog_compiler_c_o \
21547 need_locks \
21548 MANIFEST_TOOL \
21549 DSYMUTIL \
21550 NMEDIT \
21551 LIPO \
21552 OTOOL \
21553 OTOOL64 \
21554 shrext_cmds \
21555 export_dynamic_flag_spec \
21556 whole_archive_flag_spec \
21557 compiler_needs_object \
21558 with_gnu_ld \
21559 allow_undefined_flag \
21560 no_undefined_flag \
21561 hardcode_libdir_flag_spec \
21562 hardcode_libdir_separator \
21563 exclude_expsyms \
21564 include_expsyms \
21565 file_list_spec \
21566 variables_saved_for_relink \
21567 libname_spec \
21568 library_names_spec \
21569 soname_spec \
21570 install_override_mode \
21571 finish_eval \
21572 old_striplib \
21573 striplib; do
21574     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21575     *[\\\\\\\`\\"\\\$]*)
21576       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21577       ;;
21578     *)
21579       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21580       ;;
21581     esac
21582 done
21583
21584 # Double-quote double-evaled strings.
21585 for var in reload_cmds \
21586 old_postinstall_cmds \
21587 old_postuninstall_cmds \
21588 old_archive_cmds \
21589 extract_expsyms_cmds \
21590 old_archive_from_new_cmds \
21591 old_archive_from_expsyms_cmds \
21592 archive_cmds \
21593 archive_expsym_cmds \
21594 module_cmds \
21595 module_expsym_cmds \
21596 export_symbols_cmds \
21597 prelink_cmds \
21598 postlink_cmds \
21599 postinstall_cmds \
21600 postuninstall_cmds \
21601 finish_cmds \
21602 sys_lib_search_path_spec \
21603 configure_time_dlsearch_path \
21604 configure_time_lt_sys_library_path; do
21605     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21606     *[\\\\\\\`\\"\\\$]*)
21607       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21608       ;;
21609     *)
21610       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21611       ;;
21612     esac
21613 done
21614
21615 ac_aux_dir='$ac_aux_dir'
21616
21617 # See if we are running on zsh, and set the options that allow our
21618 # commands through without removal of \ escapes INIT.
21619 if test -n "\${ZSH_VERSION+set}"; then
21620    setopt NO_GLOB_SUBST
21621 fi
21622
21623
21624     PACKAGE='$PACKAGE'
21625     VERSION='$VERSION'
21626     RM='$RM'
21627     ofile='$ofile'
21628
21629
21630
21631
21632 _ACEOF
21633
21634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21635
21636 # Handling of arguments.
21637 for ac_config_target in $ac_config_targets
21638 do
21639   case $ac_config_target in
21640     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21641     "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
21642     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21643     "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
21644     "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
21645     "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
21646     "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
21647     "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
21648     "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
21649     "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
21650     "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
21651     "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
21652     "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
21653     "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
21654     "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
21655     "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
21656     "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
21657     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21658
21659   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21660   esac
21661 done
21662
21663
21664 # If the user did not use the arguments to specify the items to instantiate,
21665 # then the envvar interface is used.  Set only those that are not.
21666 # We use the long form for the default assignment because of an extremely
21667 # bizarre bug on SunOS 4.1.3.
21668 if $ac_need_defaults; then
21669   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21670   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21671   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21672 fi
21673
21674 # Have a temporary directory for convenience.  Make it in the build tree
21675 # simply because there is no reason against having it here, and in addition,
21676 # creating and moving files from /tmp can sometimes cause problems.
21677 # Hook for its removal unless debugging.
21678 # Note that there is a small window in which the directory will not be cleaned:
21679 # after its creation but before its name has been assigned to `$tmp'.
21680 $debug ||
21681 {
21682   tmp= ac_tmp=
21683   trap 'exit_status=$?
21684   : "${ac_tmp:=$tmp}"
21685   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21686 ' 0
21687   trap 'as_fn_exit 1' 1 2 13 15
21688 }
21689 # Create a (secure) tmp directory for tmp files.
21690
21691 {
21692   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21693   test -d "$tmp"
21694 }  ||
21695 {
21696   tmp=./conf$$-$RANDOM
21697   (umask 077 && mkdir "$tmp")
21698 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21699 ac_tmp=$tmp
21700
21701 # Set up the scripts for CONFIG_FILES section.
21702 # No need to generate them if there are no CONFIG_FILES.
21703 # This happens for instance with `./config.status config.h'.
21704 if test -n "$CONFIG_FILES"; then
21705
21706
21707 ac_cr=`echo X | tr X '\015'`
21708 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21709 # But we know of no other shell where ac_cr would be empty at this
21710 # point, so we can use a bashism as a fallback.
21711 if test "x$ac_cr" = x; then
21712   eval ac_cr=\$\'\\r\'
21713 fi
21714 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21715 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21716   ac_cs_awk_cr='\\r'
21717 else
21718   ac_cs_awk_cr=$ac_cr
21719 fi
21720
21721 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21722 _ACEOF
21723
21724
21725 {
21726   echo "cat >conf$$subs.awk <<_ACEOF" &&
21727   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21728   echo "_ACEOF"
21729 } >conf$$subs.sh ||
21730   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21731 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21732 ac_delim='%!_!# '
21733 for ac_last_try in false false false false false :; do
21734   . ./conf$$subs.sh ||
21735     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21736
21737   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21738   if test $ac_delim_n = $ac_delim_num; then
21739     break
21740   elif $ac_last_try; then
21741     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21742   else
21743     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21744   fi
21745 done
21746 rm -f conf$$subs.sh
21747
21748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21749 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21750 _ACEOF
21751 sed -n '
21752 h
21753 s/^/S["/; s/!.*/"]=/
21754 p
21755 g
21756 s/^[^!]*!//
21757 :repl
21758 t repl
21759 s/'"$ac_delim"'$//
21760 t delim
21761 :nl
21762 h
21763 s/\(.\{148\}\)..*/\1/
21764 t more1
21765 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21766 p
21767 n
21768 b repl
21769 :more1
21770 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21771 p
21772 g
21773 s/.\{148\}//
21774 t nl
21775 :delim
21776 h
21777 s/\(.\{148\}\)..*/\1/
21778 t more2
21779 s/["\\]/\\&/g; s/^/"/; s/$/"/
21780 p
21781 b
21782 :more2
21783 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21784 p
21785 g
21786 s/.\{148\}//
21787 t delim
21788 ' <conf$$subs.awk | sed '
21789 /^[^""]/{
21790   N
21791   s/\n//
21792 }
21793 ' >>$CONFIG_STATUS || ac_write_fail=1
21794 rm -f conf$$subs.awk
21795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21796 _ACAWK
21797 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21798   for (key in S) S_is_set[key] = 1
21799   FS = "\a"
21800
21801 }
21802 {
21803   line = $ 0
21804   nfields = split(line, field, "@")
21805   substed = 0
21806   len = length(field[1])
21807   for (i = 2; i < nfields; i++) {
21808     key = field[i]
21809     keylen = length(key)
21810     if (S_is_set[key]) {
21811       value = S[key]
21812       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21813       len += length(value) + length(field[++i])
21814       substed = 1
21815     } else
21816       len += 1 + keylen
21817   }
21818
21819   print line
21820 }
21821
21822 _ACAWK
21823 _ACEOF
21824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21825 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21826   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21827 else
21828   cat
21829 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21830   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21831 _ACEOF
21832
21833 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21834 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21835 # trailing colons and then remove the whole line if VPATH becomes empty
21836 # (actually we leave an empty line to preserve line numbers).
21837 if test "x$srcdir" = x.; then
21838   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
21839 h
21840 s///
21841 s/^/:/
21842 s/[      ]*$/:/
21843 s/:\$(srcdir):/:/g
21844 s/:\${srcdir}:/:/g
21845 s/:@srcdir@:/:/g
21846 s/^:*//
21847 s/:*$//
21848 x
21849 s/\(=[   ]*\).*/\1/
21850 G
21851 s/\n//
21852 s/^[^=]*=[       ]*$//
21853 }'
21854 fi
21855
21856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21857 fi # test -n "$CONFIG_FILES"
21858
21859 # Set up the scripts for CONFIG_HEADERS section.
21860 # No need to generate them if there are no CONFIG_HEADERS.
21861 # This happens for instance with `./config.status Makefile'.
21862 if test -n "$CONFIG_HEADERS"; then
21863 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21864 BEGIN {
21865 _ACEOF
21866
21867 # Transform confdefs.h into an awk script `defines.awk', embedded as
21868 # here-document in config.status, that substitutes the proper values into
21869 # config.h.in to produce config.h.
21870
21871 # Create a delimiter string that does not exist in confdefs.h, to ease
21872 # handling of long lines.
21873 ac_delim='%!_!# '
21874 for ac_last_try in false false :; do
21875   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21876   if test -z "$ac_tt"; then
21877     break
21878   elif $ac_last_try; then
21879     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21880   else
21881     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21882   fi
21883 done
21884
21885 # For the awk script, D is an array of macro values keyed by name,
21886 # likewise P contains macro parameters if any.  Preserve backslash
21887 # newline sequences.
21888
21889 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21890 sed -n '
21891 s/.\{148\}/&'"$ac_delim"'/g
21892 t rset
21893 :rset
21894 s/^[     ]*#[    ]*define[       ][      ]*/ /
21895 t def
21896 d
21897 :def
21898 s/\\$//
21899 t bsnl
21900 s/["\\]/\\&/g
21901 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21902 D["\1"]=" \3"/p
21903 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21904 d
21905 :bsnl
21906 s/["\\]/\\&/g
21907 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21908 D["\1"]=" \3\\\\\\n"\\/p
21909 t cont
21910 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21911 t cont
21912 d
21913 :cont
21914 n
21915 s/.\{148\}/&'"$ac_delim"'/g
21916 t clear
21917 :clear
21918 s/\\$//
21919 t bsnlc
21920 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21921 d
21922 :bsnlc
21923 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21924 b cont
21925 ' <confdefs.h | sed '
21926 s/'"$ac_delim"'/"\\\
21927 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21928
21929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21930   for (key in D) D_is_set[key] = 1
21931   FS = "\a"
21932 }
21933 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21934   line = \$ 0
21935   split(line, arg, " ")
21936   if (arg[1] == "#") {
21937     defundef = arg[2]
21938     mac1 = arg[3]
21939   } else {
21940     defundef = substr(arg[1], 2)
21941     mac1 = arg[2]
21942   }
21943   split(mac1, mac2, "(") #)
21944   macro = mac2[1]
21945   prefix = substr(line, 1, index(line, defundef) - 1)
21946   if (D_is_set[macro]) {
21947     # Preserve the white space surrounding the "#".
21948     print prefix "define", macro P[macro] D[macro]
21949     next
21950   } else {
21951     # Replace #undef with comments.  This is necessary, for example,
21952     # in the case of _POSIX_SOURCE, which is predefined and required
21953     # on some systems where configure will not decide to define it.
21954     if (defundef == "undef") {
21955       print "/*", prefix defundef, macro, "*/"
21956       next
21957     }
21958   }
21959 }
21960 { print }
21961 _ACAWK
21962 _ACEOF
21963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21964   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21965 fi # test -n "$CONFIG_HEADERS"
21966
21967
21968 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21969 shift
21970 for ac_tag
21971 do
21972   case $ac_tag in
21973   :[FHLC]) ac_mode=$ac_tag; continue;;
21974   esac
21975   case $ac_mode$ac_tag in
21976   :[FHL]*:*);;
21977   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21978   :[FH]-) ac_tag=-:-;;
21979   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21980   esac
21981   ac_save_IFS=$IFS
21982   IFS=:
21983   set x $ac_tag
21984   IFS=$ac_save_IFS
21985   shift
21986   ac_file=$1
21987   shift
21988
21989   case $ac_mode in
21990   :L) ac_source=$1;;
21991   :[FH])
21992     ac_file_inputs=
21993     for ac_f
21994     do
21995       case $ac_f in
21996       -) ac_f="$ac_tmp/stdin";;
21997       *) # Look for the file first in the build tree, then in the source tree
21998          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21999          # because $ac_f cannot contain `:'.
22000          test -f "$ac_f" ||
22001            case $ac_f in
22002            [\\/$]*) false;;
22003            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22004            esac ||
22005            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22006       esac
22007       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22008       as_fn_append ac_file_inputs " '$ac_f'"
22009     done
22010
22011     # Let's still pretend it is `configure' which instantiates (i.e., don't
22012     # use $as_me), people would be surprised to read:
22013     #    /* config.h.  Generated by config.status.  */
22014     configure_input='Generated from '`
22015           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22016         `' by configure.'
22017     if test x"$ac_file" != x-; then
22018       configure_input="$ac_file.  $configure_input"
22019       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22020 $as_echo "$as_me: creating $ac_file" >&6;}
22021     fi
22022     # Neutralize special characters interpreted by sed in replacement strings.
22023     case $configure_input in #(
22024     *\&* | *\|* | *\\* )
22025        ac_sed_conf_input=`$as_echo "$configure_input" |
22026        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22027     *) ac_sed_conf_input=$configure_input;;
22028     esac
22029
22030     case $ac_tag in
22031     *:-:* | *:-) cat >"$ac_tmp/stdin" \
22032       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22033     esac
22034     ;;
22035   esac
22036
22037   ac_dir=`$as_dirname -- "$ac_file" ||
22038 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22039          X"$ac_file" : 'X\(//\)[^/]' \| \
22040          X"$ac_file" : 'X\(//\)$' \| \
22041          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22042 $as_echo X"$ac_file" |
22043     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22044             s//\1/
22045             q
22046           }
22047           /^X\(\/\/\)[^/].*/{
22048             s//\1/
22049             q
22050           }
22051           /^X\(\/\/\)$/{
22052             s//\1/
22053             q
22054           }
22055           /^X\(\/\).*/{
22056             s//\1/
22057             q
22058           }
22059           s/.*/./; q'`
22060   as_dir="$ac_dir"; as_fn_mkdir_p
22061   ac_builddir=.
22062
22063 case "$ac_dir" in
22064 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22065 *)
22066   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22067   # A ".." for each directory in $ac_dir_suffix.
22068   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22069   case $ac_top_builddir_sub in
22070   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22071   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22072   esac ;;
22073 esac
22074 ac_abs_top_builddir=$ac_pwd
22075 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22076 # for backward compatibility:
22077 ac_top_builddir=$ac_top_build_prefix
22078
22079 case $srcdir in
22080   .)  # We are building in place.
22081     ac_srcdir=.
22082     ac_top_srcdir=$ac_top_builddir_sub
22083     ac_abs_top_srcdir=$ac_pwd ;;
22084   [\\/]* | ?:[\\/]* )  # Absolute name.
22085     ac_srcdir=$srcdir$ac_dir_suffix;
22086     ac_top_srcdir=$srcdir
22087     ac_abs_top_srcdir=$srcdir ;;
22088   *) # Relative name.
22089     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22090     ac_top_srcdir=$ac_top_build_prefix$srcdir
22091     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22092 esac
22093 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22094
22095
22096   case $ac_mode in
22097   :F)
22098   #
22099   # CONFIG_FILE
22100   #
22101
22102 _ACEOF
22103
22104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22105 # If the template does not know about datarootdir, expand it.
22106 # FIXME: This hack should be removed a few years after 2.60.
22107 ac_datarootdir_hack=; ac_datarootdir_seen=
22108 ac_sed_dataroot='
22109 /datarootdir/ {
22110   p
22111   q
22112 }
22113 /@datadir@/p
22114 /@docdir@/p
22115 /@infodir@/p
22116 /@localedir@/p
22117 /@mandir@/p'
22118 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22119 *datarootdir*) ac_datarootdir_seen=yes;;
22120 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22121   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22122 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22123 _ACEOF
22124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22125   ac_datarootdir_hack='
22126   s&@datadir@&$datadir&g
22127   s&@docdir@&$docdir&g
22128   s&@infodir@&$infodir&g
22129   s&@localedir@&$localedir&g
22130   s&@mandir@&$mandir&g
22131   s&\\\${datarootdir}&$datarootdir&g' ;;
22132 esac
22133 _ACEOF
22134
22135 # Neutralize VPATH when `$srcdir' = `.'.
22136 # Shell code in configure.ac might set extrasub.
22137 # FIXME: do we really want to maintain this feature?
22138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22139 ac_sed_extra="$ac_vpsub
22140 $extrasub
22141 _ACEOF
22142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22143 :t
22144 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22145 s|@configure_input@|$ac_sed_conf_input|;t t
22146 s&@top_builddir@&$ac_top_builddir_sub&;t t
22147 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22148 s&@srcdir@&$ac_srcdir&;t t
22149 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22150 s&@top_srcdir@&$ac_top_srcdir&;t t
22151 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22152 s&@builddir@&$ac_builddir&;t t
22153 s&@abs_builddir@&$ac_abs_builddir&;t t
22154 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22155 $ac_datarootdir_hack
22156 "
22157 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22158   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22159
22160 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22161   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22162   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
22163       "$ac_tmp/out"`; test -z "$ac_out"; } &&
22164   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22165 which seems to be undefined.  Please make sure it is defined" >&5
22166 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22167 which seems to be undefined.  Please make sure it is defined" >&2;}
22168
22169   rm -f "$ac_tmp/stdin"
22170   case $ac_file in
22171   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22172   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22173   esac \
22174   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22175  ;;
22176   :H)
22177   #
22178   # CONFIG_HEADER
22179   #
22180   if test x"$ac_file" != x-; then
22181     {
22182       $as_echo "/* $configure_input  */" \
22183       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22184     } >"$ac_tmp/config.h" \
22185       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22186     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22187       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22188 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22189     else
22190       rm -f "$ac_file"
22191       mv "$ac_tmp/config.h" "$ac_file" \
22192         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22193     fi
22194   else
22195     $as_echo "/* $configure_input  */" \
22196       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22197       || as_fn_error $? "could not create -" "$LINENO" 5
22198   fi
22199  ;;
22200
22201   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22202 $as_echo "$as_me: executing $ac_file commands" >&6;}
22203  ;;
22204   esac
22205
22206
22207   case $ac_file$ac_mode in
22208     "libtool":C)
22209
22210     # See if we are running on zsh, and set the options that allow our
22211     # commands through without removal of \ escapes.
22212     if test -n "${ZSH_VERSION+set}"; then
22213       setopt NO_GLOB_SUBST
22214     fi
22215
22216     cfgfile=${ofile}T
22217     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22218     $RM "$cfgfile"
22219
22220     cat <<_LT_EOF >> "$cfgfile"
22221 #! $SHELL
22222 # Generated automatically by $as_me ($PACKAGE) $VERSION
22223 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22224 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22225
22226 # Provide generalized library-building support services.
22227 # Written by Gordon Matzigkeit, 1996
22228
22229 # Copyright (C) 2014 Free Software Foundation, Inc.
22230 # This is free software; see the source for copying conditions.  There is NO
22231 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22232
22233 # GNU Libtool is free software; you can redistribute it and/or modify
22234 # it under the terms of the GNU General Public License as published by
22235 # the Free Software Foundation; either version 2 of of the License, or
22236 # (at your option) any later version.
22237 #
22238 # As a special exception to the GNU General Public License, if you
22239 # distribute this file as part of a program or library that is built
22240 # using GNU Libtool, you may include this file under the  same
22241 # distribution terms that you use for the rest of that program.
22242 #
22243 # GNU Libtool is distributed in the hope that it will be useful, but
22244 # WITHOUT ANY WARRANTY; without even the implied warranty of
22245 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22246 # GNU General Public License for more details.
22247 #
22248 # You should have received a copy of the GNU General Public License
22249 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
22250
22251
22252 # The names of the tagged configurations supported by this script.
22253 available_tags=''
22254
22255 # Configured defaults for sys_lib_dlsearch_path munging.
22256 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22257
22258 # ### BEGIN LIBTOOL CONFIG
22259
22260 # Which release of libtool.m4 was used?
22261 macro_version=$macro_version
22262 macro_revision=$macro_revision
22263
22264 # Whether or not to build shared libraries.
22265 build_libtool_libs=$enable_shared
22266
22267 # Whether or not to build static libraries.
22268 build_old_libs=$enable_static
22269
22270 # What type of objects to build.
22271 pic_mode=$pic_mode
22272
22273 # Whether or not to optimize for fast installation.
22274 fast_install=$enable_fast_install
22275
22276 # Shared archive member basename,for filename based shared library versioning on AIX.
22277 shared_archive_member_spec=$shared_archive_member_spec
22278
22279 # Shell to use when invoking shell scripts.
22280 SHELL=$lt_SHELL
22281
22282 # An echo program that protects backslashes.
22283 ECHO=$lt_ECHO
22284
22285 # The PATH separator for the build system.
22286 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22287
22288 # The host system.
22289 host_alias=$host_alias
22290 host=$host
22291 host_os=$host_os
22292
22293 # The build system.
22294 build_alias=$build_alias
22295 build=$build
22296 build_os=$build_os
22297
22298 # A sed program that does not truncate output.
22299 SED=$lt_SED
22300
22301 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22302 Xsed="\$SED -e 1s/^X//"
22303
22304 # A grep program that handles long lines.
22305 GREP=$lt_GREP
22306
22307 # An ERE matcher.
22308 EGREP=$lt_EGREP
22309
22310 # A literal string matcher.
22311 FGREP=$lt_FGREP
22312
22313 # A BSD- or MS-compatible name lister.
22314 NM=$lt_NM
22315
22316 # Whether we need soft or hard links.
22317 LN_S=$lt_LN_S
22318
22319 # What is the maximum length of a command?
22320 max_cmd_len=$max_cmd_len
22321
22322 # Object file suffix (normally "o").
22323 objext=$ac_objext
22324
22325 # Executable file suffix (normally "").
22326 exeext=$exeext
22327
22328 # whether the shell understands "unset".
22329 lt_unset=$lt_unset
22330
22331 # turn spaces into newlines.
22332 SP2NL=$lt_lt_SP2NL
22333
22334 # turn newlines into spaces.
22335 NL2SP=$lt_lt_NL2SP
22336
22337 # convert \$build file names to \$host format.
22338 to_host_file_cmd=$lt_cv_to_host_file_cmd
22339
22340 # convert \$build files to toolchain format.
22341 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22342
22343 # An object symbol dumper.
22344 OBJDUMP=$lt_OBJDUMP
22345
22346 # Method to check whether dependent libraries are shared objects.
22347 deplibs_check_method=$lt_deplibs_check_method
22348
22349 # Command to use when deplibs_check_method = "file_magic".
22350 file_magic_cmd=$lt_file_magic_cmd
22351
22352 # How to find potential files when deplibs_check_method = "file_magic".
22353 file_magic_glob=$lt_file_magic_glob
22354
22355 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22356 want_nocaseglob=$lt_want_nocaseglob
22357
22358 # DLL creation program.
22359 DLLTOOL=$lt_DLLTOOL
22360
22361 # Command to associate shared and link libraries.
22362 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22363
22364 # The archiver.
22365 AR=$lt_AR
22366
22367 # Flags to create an archive.
22368 AR_FLAGS=$lt_AR_FLAGS
22369
22370 # How to feed a file listing to the archiver.
22371 archiver_list_spec=$lt_archiver_list_spec
22372
22373 # A symbol stripping program.
22374 STRIP=$lt_STRIP
22375
22376 # Commands used to install an old-style archive.
22377 RANLIB=$lt_RANLIB
22378 old_postinstall_cmds=$lt_old_postinstall_cmds
22379 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22380
22381 # Whether to use a lock for old archive extraction.
22382 lock_old_archive_extraction=$lock_old_archive_extraction
22383
22384 # A C compiler.
22385 LTCC=$lt_CC
22386
22387 # LTCC compiler flags.
22388 LTCFLAGS=$lt_CFLAGS
22389
22390 # Take the output of nm and produce a listing of raw symbols and C names.
22391 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22392
22393 # Transform the output of nm in a proper C declaration.
22394 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22395
22396 # Transform the output of nm into a list of symbols to manually relocate.
22397 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22398
22399 # Transform the output of nm in a C name address pair.
22400 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22401
22402 # Transform the output of nm in a C name address pair when lib prefix is needed.
22403 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22404
22405 # The name lister interface.
22406 nm_interface=$lt_lt_cv_nm_interface
22407
22408 # Specify filename containing input files for \$NM.
22409 nm_file_list_spec=$lt_nm_file_list_spec
22410
22411 # The root where to search for dependent libraries,and where our libraries should be installed.
22412 lt_sysroot=$lt_sysroot
22413
22414 # Command to truncate a binary pipe.
22415 lt_truncate_bin=$lt_lt_cv_truncate_bin
22416
22417 # The name of the directory that contains temporary libtool files.
22418 objdir=$objdir
22419
22420 # Used to examine libraries when file_magic_cmd begins with "file".
22421 MAGIC_CMD=$MAGIC_CMD
22422
22423 # Must we lock files when doing compilation?
22424 need_locks=$lt_need_locks
22425
22426 # Manifest tool.
22427 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22428
22429 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22430 DSYMUTIL=$lt_DSYMUTIL
22431
22432 # Tool to change global to local symbols on Mac OS X.
22433 NMEDIT=$lt_NMEDIT
22434
22435 # Tool to manipulate fat objects and archives on Mac OS X.
22436 LIPO=$lt_LIPO
22437
22438 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22439 OTOOL=$lt_OTOOL
22440
22441 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22442 OTOOL64=$lt_OTOOL64
22443
22444 # Old archive suffix (normally "a").
22445 libext=$libext
22446
22447 # Shared library suffix (normally ".so").
22448 shrext_cmds=$lt_shrext_cmds
22449
22450 # The commands to extract the exported symbol list from a shared archive.
22451 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22452
22453 # Variables whose values should be saved in libtool wrapper scripts and
22454 # restored at link time.
22455 variables_saved_for_relink=$lt_variables_saved_for_relink
22456
22457 # Do we need the "lib" prefix for modules?
22458 need_lib_prefix=$need_lib_prefix
22459
22460 # Do we need a version for libraries?
22461 need_version=$need_version
22462
22463 # Library versioning type.
22464 version_type=$version_type
22465
22466 # Shared library runtime path variable.
22467 runpath_var=$runpath_var
22468
22469 # Shared library path variable.
22470 shlibpath_var=$shlibpath_var
22471
22472 # Is shlibpath searched before the hard-coded library search path?
22473 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22474
22475 # Format of library name prefix.
22476 libname_spec=$lt_libname_spec
22477
22478 # List of archive names.  First name is the real one, the rest are links.
22479 # The last name is the one that the linker finds with -lNAME
22480 library_names_spec=$lt_library_names_spec
22481
22482 # The coded name of the library, if different from the real name.
22483 soname_spec=$lt_soname_spec
22484
22485 # Permission mode override for installation of shared libraries.
22486 install_override_mode=$lt_install_override_mode
22487
22488 # Command to use after installation of a shared archive.
22489 postinstall_cmds=$lt_postinstall_cmds
22490
22491 # Command to use after uninstallation of a shared archive.
22492 postuninstall_cmds=$lt_postuninstall_cmds
22493
22494 # Commands used to finish a libtool library installation in a directory.
22495 finish_cmds=$lt_finish_cmds
22496
22497 # As "finish_cmds", except a single script fragment to be evaled but
22498 # not shown.
22499 finish_eval=$lt_finish_eval
22500
22501 # Whether we should hardcode library paths into libraries.
22502 hardcode_into_libs=$hardcode_into_libs
22503
22504 # Compile-time system search path for libraries.
22505 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22506
22507 # Detected run-time system search path for libraries.
22508 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22509
22510 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22511 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22512
22513 # Whether dlopen is supported.
22514 dlopen_support=$enable_dlopen
22515
22516 # Whether dlopen of programs is supported.
22517 dlopen_self=$enable_dlopen_self
22518
22519 # Whether dlopen of statically linked programs is supported.
22520 dlopen_self_static=$enable_dlopen_self_static
22521
22522 # Commands to strip libraries.
22523 old_striplib=$lt_old_striplib
22524 striplib=$lt_striplib
22525
22526
22527 # The linker used to build libraries.
22528 LD=$lt_LD
22529
22530 # How to create reloadable object files.
22531 reload_flag=$lt_reload_flag
22532 reload_cmds=$lt_reload_cmds
22533
22534 # Commands used to build an old-style archive.
22535 old_archive_cmds=$lt_old_archive_cmds
22536
22537 # A language specific compiler.
22538 CC=$lt_compiler
22539
22540 # Is the compiler the GNU compiler?
22541 with_gcc=$GCC
22542
22543 # Compiler flag to turn off builtin functions.
22544 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22545
22546 # Additional compiler flags for building library objects.
22547 pic_flag=$lt_lt_prog_compiler_pic
22548
22549 # How to pass a linker flag through the compiler.
22550 wl=$lt_lt_prog_compiler_wl
22551
22552 # Compiler flag to prevent dynamic linking.
22553 link_static_flag=$lt_lt_prog_compiler_static
22554
22555 # Does compiler simultaneously support -c and -o options?
22556 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22557
22558 # Whether or not to add -lc for building shared libraries.
22559 build_libtool_need_lc=$archive_cmds_need_lc
22560
22561 # Whether or not to disallow shared libs when runtime libs are static.
22562 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22563
22564 # Compiler flag to allow reflexive dlopens.
22565 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22566
22567 # Compiler flag to generate shared objects directly from archives.
22568 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22569
22570 # Whether the compiler copes with passing no objects directly.
22571 compiler_needs_object=$lt_compiler_needs_object
22572
22573 # Create an old-style archive from a shared archive.
22574 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22575
22576 # Create a temporary old-style archive to link instead of a shared archive.
22577 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22578
22579 # Commands used to build a shared archive.
22580 archive_cmds=$lt_archive_cmds
22581 archive_expsym_cmds=$lt_archive_expsym_cmds
22582
22583 # Commands used to build a loadable module if different from building
22584 # a shared archive.
22585 module_cmds=$lt_module_cmds
22586 module_expsym_cmds=$lt_module_expsym_cmds
22587
22588 # Whether we are building with GNU ld or not.
22589 with_gnu_ld=$lt_with_gnu_ld
22590
22591 # Flag that allows shared libraries with undefined symbols to be built.
22592 allow_undefined_flag=$lt_allow_undefined_flag
22593
22594 # Flag that enforces no undefined symbols.
22595 no_undefined_flag=$lt_no_undefined_flag
22596
22597 # Flag to hardcode \$libdir into a binary during linking.
22598 # This must work even if \$libdir does not exist
22599 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22600
22601 # Whether we need a single "-rpath" flag with a separated argument.
22602 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22603
22604 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22605 # DIR into the resulting binary.
22606 hardcode_direct=$hardcode_direct
22607
22608 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22609 # DIR into the resulting binary and the resulting library dependency is
22610 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22611 # library is relocated.
22612 hardcode_direct_absolute=$hardcode_direct_absolute
22613
22614 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22615 # into the resulting binary.
22616 hardcode_minus_L=$hardcode_minus_L
22617
22618 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22619 # into the resulting binary.
22620 hardcode_shlibpath_var=$hardcode_shlibpath_var
22621
22622 # Set to "yes" if building a shared library automatically hardcodes DIR
22623 # into the library and all subsequent libraries and executables linked
22624 # against it.
22625 hardcode_automatic=$hardcode_automatic
22626
22627 # Set to yes if linker adds runtime paths of dependent libraries
22628 # to runtime path list.
22629 inherit_rpath=$inherit_rpath
22630
22631 # Whether libtool must link a program against all its dependency libraries.
22632 link_all_deplibs=$link_all_deplibs
22633
22634 # Set to "yes" if exported symbols are required.
22635 always_export_symbols=$always_export_symbols
22636
22637 # The commands to list exported symbols.
22638 export_symbols_cmds=$lt_export_symbols_cmds
22639
22640 # Symbols that should not be listed in the preloaded symbols.
22641 exclude_expsyms=$lt_exclude_expsyms
22642
22643 # Symbols that must always be exported.
22644 include_expsyms=$lt_include_expsyms
22645
22646 # Commands necessary for linking programs (against libraries) with templates.
22647 prelink_cmds=$lt_prelink_cmds
22648
22649 # Commands necessary for finishing linking programs.
22650 postlink_cmds=$lt_postlink_cmds
22651
22652 # Specify filename containing input files.
22653 file_list_spec=$lt_file_list_spec
22654
22655 # How to hardcode a shared library path into an executable.
22656 hardcode_action=$hardcode_action
22657
22658 # ### END LIBTOOL CONFIG
22659
22660 _LT_EOF
22661
22662     cat <<'_LT_EOF' >> "$cfgfile"
22663
22664 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22665
22666 # func_munge_path_list VARIABLE PATH
22667 # -----------------------------------
22668 # VARIABLE is name of variable containing _space_ separated list of
22669 # directories to be munged by the contents of PATH, which is string
22670 # having a format:
22671 # "DIR[:DIR]:"
22672 #       string "DIR[ DIR]" will be prepended to VARIABLE
22673 # ":DIR[:DIR]"
22674 #       string "DIR[ DIR]" will be appended to VARIABLE
22675 # "DIRP[:DIRP]::[DIRA:]DIRA"
22676 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22677 #       "DIRA[ DIRA]" will be appended to VARIABLE
22678 # "DIR[:DIR]"
22679 #       VARIABLE will be replaced by "DIR[ DIR]"
22680 func_munge_path_list ()
22681 {
22682     case x$2 in
22683     x)
22684         ;;
22685     *:)
22686         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22687         ;;
22688     x:*)
22689         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22690         ;;
22691     *::*)
22692         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22693         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22694         ;;
22695     *)
22696         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22697         ;;
22698     esac
22699 }
22700
22701
22702 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22703 func_cc_basename ()
22704 {
22705     for cc_temp in $*""; do
22706       case $cc_temp in
22707         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22708         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22709         \-*) ;;
22710         *) break;;
22711       esac
22712     done
22713     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22714 }
22715
22716
22717 # ### END FUNCTIONS SHARED WITH CONFIGURE
22718
22719 _LT_EOF
22720
22721   case $host_os in
22722   aix3*)
22723     cat <<\_LT_EOF >> "$cfgfile"
22724 # AIX sometimes has problems with the GCC collect2 program.  For some
22725 # reason, if we set the COLLECT_NAMES environment variable, the problems
22726 # vanish in a puff of smoke.
22727 if test set != "${COLLECT_NAMES+set}"; then
22728   COLLECT_NAMES=
22729   export COLLECT_NAMES
22730 fi
22731 _LT_EOF
22732     ;;
22733   esac
22734
22735
22736 ltmain=$ac_aux_dir/ltmain.sh
22737
22738
22739   # We use sed instead of cat because bash on DJGPP gets confused if
22740   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22741   # text mode, it properly converts lines to CR/LF.  This bash problem
22742   # is reportedly fixed, but why not run on old versions too?
22743   sed '$q' "$ltmain" >> "$cfgfile" \
22744      || (rm -f "$cfgfile"; exit 1)
22745
22746    mv -f "$cfgfile" "$ofile" ||
22747     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22748   chmod +x "$ofile"
22749
22750  ;;
22751     "disable-rpath":C)
22752         sed < libtool > libtool-2 \
22753         's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
22754         mv libtool-2 libtool
22755         chmod 755 libtool
22756         libtool="./libtool"
22757          ;;
22758
22759   esac
22760 done # for ac_tag
22761
22762
22763 as_fn_exit 0
22764 _ACEOF
22765 ac_clean_files=$ac_clean_files_save
22766
22767 test $ac_write_fail = 0 ||
22768   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22769
22770
22771 # configure is writing to config.log, and then calls config.status.
22772 # config.status does its own redirection, appending to config.log.
22773 # Unfortunately, on DOS this fails, as config.log is still kept open
22774 # by configure, so config.status won't be able to write to it; its
22775 # output is simply discarded.  So we exec the FD to /dev/null,
22776 # effectively closing config.log, so it can be properly (re)opened and
22777 # appended to by config.status.  When coming back to configure, we
22778 # need to make the FD available again.
22779 if test "$no_create" != yes; then
22780   ac_cs_success=:
22781   ac_config_status_args=
22782   test "$silent" = yes &&
22783     ac_config_status_args="$ac_config_status_args --quiet"
22784   exec 5>/dev/null
22785   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22786   exec 5>>config.log
22787   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22788   # would make configure fail if this is the last instruction.
22789   $ac_cs_success || as_fn_exit 1
22790 fi
22791 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22792   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22793 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22794 fi
22795