]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/unbound/configure
Fix multiple vulnerabilities of ntp.
[FreeBSD/releng/10.2.git] / contrib / unbound / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.5.3.
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.5.3'
594 PACKAGE_STRING='unbound 1.5.3'
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 DNSTAP_OBJ
642 DNSTAP_SRC
643 opt_dnstap_socket_path
644 ENABLE_DNSTAP
645 PROTOC_C
646 UBSYMS
647 EXTRALINK
648 COMMON_OBJ_ALL_SYMBOLS
649 LIBOBJ_WITHOUT_CTIME
650 LIBOBJ_WITHOUT_CTIMEARC4
651 WIN_CHECKCONF_OBJ_LINK
652 WIN_CONTROL_OBJ_LINK
653 WIN_UBANCHOR_OBJ_LINK
654 WIN_HOST_OBJ_LINK
655 WIN_DAEMON_OBJ_LINK
656 WIN_DAEMON_OBJ
657 WIN_DAEMON_SRC
658 WINAPPS
659 WINDRES
660 CHECKLOCK_OBJ
661 staticexe
662 UNBOUND_EVENT_UNINSTALL
663 UNBOUND_EVENT_INSTALL
664 HAVE_SSL
665 CONFIG_DATE
666 NETBSD_LINTFLAGS
667 PYUNBOUND_UNINSTALL
668 PYUNBOUND_INSTALL
669 PYUNBOUND_TARGET
670 PYUNBOUND_OBJ
671 WITH_PYUNBOUND
672 PYTHONMOD_UNINSTALL
673 PYTHONMOD_INSTALL
674 PYTHONMOD_HEADER
675 PYTHONMOD_OBJ
676 WITH_PYTHONMODULE
677 swig
678 SWIG_LIB
679 SWIG
680 PYTHON_SITE_PKG
681 PYTHON_LDFLAGS
682 PYTHON_CPPFLAGS
683 PYTHON
684 PYTHON_VERSION
685 PTHREAD_CFLAGS
686 PTHREAD_LIBS
687 PTHREAD_CC
688 ax_pthread_config
689 RUNTIME_PATH
690 LIBOBJS
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
696 MANIFEST_TOOL
697 AWK
698 RANLIB
699 ac_ct_AR
700 DLLTOOL
701 OBJDUMP
702 LN_S
703 NM
704 ac_ct_DUMPBIN
705 DUMPBIN
706 LD
707 FGREP
708 SED
709 LIBTOOL
710 AR
711 host_os
712 host_vendor
713 host_cpu
714 host
715 build_os
716 build_vendor
717 build_cpu
718 build
719 libtool
720 STRIP
721 doxygen
722 YFLAGS
723 YACC
724 LEXLIB
725 LEX_OUTPUT_ROOT
726 LEX
727 debug_enabled
728 DEPFLAG
729 UNBOUND_USERNAME
730 UNBOUND_ROOTCERT_FILE
731 UNBOUND_ROOTKEY_FILE
732 UNBOUND_PIDFILE
733 UNBOUND_SHARE_DIR
734 UNBOUND_CHROOT_DIR
735 UNBOUND_RUN_DIR
736 ub_conf_dir
737 ub_conf_file
738 EGREP
739 GREP
740 CPP
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
747 CC
748 LIBUNBOUND_AGE
749 LIBUNBOUND_REVISION
750 LIBUNBOUND_CURRENT
751 UNBOUND_VERSION_MICRO
752 UNBOUND_VERSION_MINOR
753 UNBOUND_VERSION_MAJOR
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 with_conf_file
796 with_run_dir
797 with_chroot_dir
798 with_share_dir
799 with_pidfile
800 with_rootkey_file
801 with_rootcert_file
802 with_username
803 enable_checking
804 enable_debug
805 enable_flto
806 enable_shared
807 enable_static
808 with_pic
809 enable_fast_install
810 with_gnu_ld
811 with_sysroot
812 enable_libtool_lock
813 enable_rpath
814 enable_largefile
815 enable_alloc_checks
816 enable_alloc_lite
817 enable_alloc_nonregional
818 with_pthreads
819 with_solaris_threads
820 with_pyunbound
821 with_pythonmodule
822 with_nss
823 with_ssl
824 enable_sha2
825 enable_gost
826 enable_ecdsa
827 enable_event_api
828 with_libevent
829 with_libexpat
830 enable_static_exe
831 enable_lock_checks
832 enable_allsymbols
833 enable_dnstap
834 with_dnstap_socket_path
835 with_protobuf_c
836 with_libfstrm
837 with_libunbound_only
838 '
839       ac_precious_vars='build_alias
840 host_alias
841 target_alias
842 CC
843 CFLAGS
844 LDFLAGS
845 LIBS
846 CPPFLAGS
847 CPP
848 YACC
849 YFLAGS
850 PYTHON_VERSION'
851
852
853 # Initialize some variables set by options.
854 ac_init_help=
855 ac_init_version=false
856 ac_unrecognized_opts=
857 ac_unrecognized_sep=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
860 cache_file=/dev/null
861 exec_prefix=NONE
862 no_create=
863 no_recursion=
864 prefix=NONE
865 program_prefix=NONE
866 program_suffix=NONE
867 program_transform_name=s,x,x,
868 silent=
869 site=
870 srcdir=
871 verbose=
872 x_includes=NONE
873 x_libraries=NONE
874
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir='${datarootdir}/info'
893 htmldir='${docdir}'
894 dvidir='${docdir}'
895 pdfdir='${docdir}'
896 psdir='${docdir}'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
900
901 ac_prev=
902 ac_dashdash=
903 for ac_option
904 do
905   # If the previous option needs an argument, assign it.
906   if test -n "$ac_prev"; then
907     eval $ac_prev=\$ac_option
908     ac_prev=
909     continue
910   fi
911
912   case $ac_option in
913   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914   *=)   ac_optarg= ;;
915   *)    ac_optarg=yes ;;
916   esac
917
918   # Accept the important Cygnus configure options, so we can diagnose typos.
919
920   case $ac_dashdash$ac_option in
921   --)
922     ac_dashdash=yes ;;
923
924   -bindir | --bindir | --bindi | --bind | --bin | --bi)
925     ac_prev=bindir ;;
926   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
927     bindir=$ac_optarg ;;
928
929   -build | --build | --buil | --bui | --bu)
930     ac_prev=build_alias ;;
931   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
932     build_alias=$ac_optarg ;;
933
934   -cache-file | --cache-file | --cache-fil | --cache-fi \
935   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
936     ac_prev=cache_file ;;
937   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
938   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
939     cache_file=$ac_optarg ;;
940
941   --config-cache | -C)
942     cache_file=config.cache ;;
943
944   -datadir | --datadir | --datadi | --datad)
945     ac_prev=datadir ;;
946   -datadir=* | --datadir=* | --datadi=* | --datad=*)
947     datadir=$ac_optarg ;;
948
949   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
950   | --dataroo | --dataro | --datar)
951     ac_prev=datarootdir ;;
952   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
953   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
954     datarootdir=$ac_optarg ;;
955
956   -disable-* | --disable-*)
957     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958     # Reject names that are not valid shell variable names.
959     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960       as_fn_error $? "invalid feature name: $ac_useropt"
961     ac_useropt_orig=$ac_useropt
962     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963     case $ac_user_opts in
964       *"
965 "enable_$ac_useropt"
966 "*) ;;
967       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
968          ac_unrecognized_sep=', ';;
969     esac
970     eval enable_$ac_useropt=no ;;
971
972   -docdir | --docdir | --docdi | --doc | --do)
973     ac_prev=docdir ;;
974   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
975     docdir=$ac_optarg ;;
976
977   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978     ac_prev=dvidir ;;
979   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
980     dvidir=$ac_optarg ;;
981
982   -enable-* | --enable-*)
983     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984     # Reject names that are not valid shell variable names.
985     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986       as_fn_error $? "invalid feature name: $ac_useropt"
987     ac_useropt_orig=$ac_useropt
988     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989     case $ac_user_opts in
990       *"
991 "enable_$ac_useropt"
992 "*) ;;
993       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
994          ac_unrecognized_sep=', ';;
995     esac
996     eval enable_$ac_useropt=\$ac_optarg ;;
997
998   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
999   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1000   | --exec | --exe | --ex)
1001     ac_prev=exec_prefix ;;
1002   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1003   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1004   | --exec=* | --exe=* | --ex=*)
1005     exec_prefix=$ac_optarg ;;
1006
1007   -gas | --gas | --ga | --g)
1008     # Obsolete; use --with-gas.
1009     with_gas=yes ;;
1010
1011   -help | --help | --hel | --he | -h)
1012     ac_init_help=long ;;
1013   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1014     ac_init_help=recursive ;;
1015   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1016     ac_init_help=short ;;
1017
1018   -host | --host | --hos | --ho)
1019     ac_prev=host_alias ;;
1020   -host=* | --host=* | --hos=* | --ho=*)
1021     host_alias=$ac_optarg ;;
1022
1023   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1024     ac_prev=htmldir ;;
1025   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1026   | --ht=*)
1027     htmldir=$ac_optarg ;;
1028
1029   -includedir | --includedir | --includedi | --included | --include \
1030   | --includ | --inclu | --incl | --inc)
1031     ac_prev=includedir ;;
1032   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1033   | --includ=* | --inclu=* | --incl=* | --inc=*)
1034     includedir=$ac_optarg ;;
1035
1036   -infodir | --infodir | --infodi | --infod | --info | --inf)
1037     ac_prev=infodir ;;
1038   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1039     infodir=$ac_optarg ;;
1040
1041   -libdir | --libdir | --libdi | --libd)
1042     ac_prev=libdir ;;
1043   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1044     libdir=$ac_optarg ;;
1045
1046   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1047   | --libexe | --libex | --libe)
1048     ac_prev=libexecdir ;;
1049   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1050   | --libexe=* | --libex=* | --libe=*)
1051     libexecdir=$ac_optarg ;;
1052
1053   -localedir | --localedir | --localedi | --localed | --locale)
1054     ac_prev=localedir ;;
1055   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1056     localedir=$ac_optarg ;;
1057
1058   -localstatedir | --localstatedir | --localstatedi | --localstated \
1059   | --localstate | --localstat | --localsta | --localst | --locals)
1060     ac_prev=localstatedir ;;
1061   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1062   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1063     localstatedir=$ac_optarg ;;
1064
1065   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1066     ac_prev=mandir ;;
1067   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1068     mandir=$ac_optarg ;;
1069
1070   -nfp | --nfp | --nf)
1071     # Obsolete; use --without-fp.
1072     with_fp=no ;;
1073
1074   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1075   | --no-cr | --no-c | -n)
1076     no_create=yes ;;
1077
1078   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1079   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1080     no_recursion=yes ;;
1081
1082   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1083   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1084   | --oldin | --oldi | --old | --ol | --o)
1085     ac_prev=oldincludedir ;;
1086   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1087   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1088   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1089     oldincludedir=$ac_optarg ;;
1090
1091   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1092     ac_prev=prefix ;;
1093   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1094     prefix=$ac_optarg ;;
1095
1096   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1097   | --program-pre | --program-pr | --program-p)
1098     ac_prev=program_prefix ;;
1099   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1100   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1101     program_prefix=$ac_optarg ;;
1102
1103   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1104   | --program-suf | --program-su | --program-s)
1105     ac_prev=program_suffix ;;
1106   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1107   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1108     program_suffix=$ac_optarg ;;
1109
1110   -program-transform-name | --program-transform-name \
1111   | --program-transform-nam | --program-transform-na \
1112   | --program-transform-n | --program-transform- \
1113   | --program-transform | --program-transfor \
1114   | --program-transfo | --program-transf \
1115   | --program-trans | --program-tran \
1116   | --progr-tra | --program-tr | --program-t)
1117     ac_prev=program_transform_name ;;
1118   -program-transform-name=* | --program-transform-name=* \
1119   | --program-transform-nam=* | --program-transform-na=* \
1120   | --program-transform-n=* | --program-transform-=* \
1121   | --program-transform=* | --program-transfor=* \
1122   | --program-transfo=* | --program-transf=* \
1123   | --program-trans=* | --program-tran=* \
1124   | --progr-tra=* | --program-tr=* | --program-t=*)
1125     program_transform_name=$ac_optarg ;;
1126
1127   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1128     ac_prev=pdfdir ;;
1129   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1130     pdfdir=$ac_optarg ;;
1131
1132   -psdir | --psdir | --psdi | --psd | --ps)
1133     ac_prev=psdir ;;
1134   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1135     psdir=$ac_optarg ;;
1136
1137   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138   | -silent | --silent | --silen | --sile | --sil)
1139     silent=yes ;;
1140
1141   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1142     ac_prev=sbindir ;;
1143   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1144   | --sbi=* | --sb=*)
1145     sbindir=$ac_optarg ;;
1146
1147   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1148   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1149   | --sharedst | --shareds | --shared | --share | --shar \
1150   | --sha | --sh)
1151     ac_prev=sharedstatedir ;;
1152   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1153   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1154   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1155   | --sha=* | --sh=*)
1156     sharedstatedir=$ac_optarg ;;
1157
1158   -site | --site | --sit)
1159     ac_prev=site ;;
1160   -site=* | --site=* | --sit=*)
1161     site=$ac_optarg ;;
1162
1163   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1164     ac_prev=srcdir ;;
1165   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1166     srcdir=$ac_optarg ;;
1167
1168   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1169   | --syscon | --sysco | --sysc | --sys | --sy)
1170     ac_prev=sysconfdir ;;
1171   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1172   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1173     sysconfdir=$ac_optarg ;;
1174
1175   -target | --target | --targe | --targ | --tar | --ta | --t)
1176     ac_prev=target_alias ;;
1177   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1178     target_alias=$ac_optarg ;;
1179
1180   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1181     verbose=yes ;;
1182
1183   -version | --version | --versio | --versi | --vers | -V)
1184     ac_init_version=: ;;
1185
1186   -with-* | --with-*)
1187     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1188     # Reject names that are not valid shell variable names.
1189     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190       as_fn_error $? "invalid package name: $ac_useropt"
1191     ac_useropt_orig=$ac_useropt
1192     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193     case $ac_user_opts in
1194       *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1198          ac_unrecognized_sep=', ';;
1199     esac
1200     eval with_$ac_useropt=\$ac_optarg ;;
1201
1202   -without-* | --without-*)
1203     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1204     # Reject names that are not valid shell variable names.
1205     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206       as_fn_error $? "invalid package name: $ac_useropt"
1207     ac_useropt_orig=$ac_useropt
1208     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209     case $ac_user_opts in
1210       *"
1211 "with_$ac_useropt"
1212 "*) ;;
1213       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214          ac_unrecognized_sep=', ';;
1215     esac
1216     eval with_$ac_useropt=no ;;
1217
1218   --x)
1219     # Obsolete; use --with-x.
1220     with_x=yes ;;
1221
1222   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1223   | --x-incl | --x-inc | --x-in | --x-i)
1224     ac_prev=x_includes ;;
1225   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1226   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1227     x_includes=$ac_optarg ;;
1228
1229   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1230   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1231     ac_prev=x_libraries ;;
1232   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1233   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1234     x_libraries=$ac_optarg ;;
1235
1236   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1237 Try \`$0 --help' for more information"
1238     ;;
1239
1240   *=*)
1241     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242     # Reject names that are not valid shell variable names.
1243     case $ac_envvar in #(
1244       '' | [0-9]* | *[!_$as_cr_alnum]* )
1245       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1246     esac
1247     eval $ac_envvar=\$ac_optarg
1248     export $ac_envvar ;;
1249
1250   *)
1251     # FIXME: should be removed in autoconf 3.0.
1252     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1255     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1256     ;;
1257
1258   esac
1259 done
1260
1261 if test -n "$ac_prev"; then
1262   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1263   as_fn_error $? "missing argument to $ac_option"
1264 fi
1265
1266 if test -n "$ac_unrecognized_opts"; then
1267   case $enable_option_checking in
1268     no) ;;
1269     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1270     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1271   esac
1272 fi
1273
1274 # Check all directory arguments for consistency.
1275 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276                 datadir sysconfdir sharedstatedir localstatedir includedir \
1277                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278                 libdir localedir mandir
1279 do
1280   eval ac_val=\$$ac_var
1281   # Remove trailing slashes.
1282   case $ac_val in
1283     */ )
1284       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1285       eval $ac_var=\$ac_val;;
1286   esac
1287   # Be sure to have absolute directory names.
1288   case $ac_val in
1289     [\\/$]* | ?:[\\/]* )  continue;;
1290     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291   esac
1292   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1293 done
1294
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1298 build=$build_alias
1299 host=$host_alias
1300 target=$target_alias
1301
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304   if test "x$build_alias" = x; then
1305     cross_compiling=maybe
1306   elif test "x$build_alias" != "x$host_alias"; then
1307     cross_compiling=yes
1308   fi
1309 fi
1310
1311 ac_tool_prefix=
1312 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314 test "$silent" = yes && exec 6>/dev/null
1315
1316
1317 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di=`ls -di .` &&
1319 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320   as_fn_error $? "working directory cannot be determined"
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322   as_fn_error $? "pwd does not report name of working directory"
1323
1324
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327   ac_srcdir_defaulted=yes
1328   # Try the directory containing this script, then the parent directory.
1329   ac_confdir=`$as_dirname -- "$as_myself" ||
1330 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331          X"$as_myself" : 'X\(//\)[^/]' \| \
1332          X"$as_myself" : 'X\(//\)$' \| \
1333          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334 $as_echo X"$as_myself" |
1335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336             s//\1/
1337             q
1338           }
1339           /^X\(\/\/\)[^/].*/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\/\)$/{
1344             s//\1/
1345             q
1346           }
1347           /^X\(\/\).*/{
1348             s//\1/
1349             q
1350           }
1351           s/.*/./; q'`
1352   srcdir=$ac_confdir
1353   if test ! -r "$srcdir/$ac_unique_file"; then
1354     srcdir=..
1355   fi
1356 else
1357   ac_srcdir_defaulted=no
1358 fi
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1362 fi
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 ac_abs_confdir=`(
1365         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1366         pwd)`
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369   srcdir=.
1370 fi
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1374 case $srcdir in
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 esac
1377 for ac_var in $ac_precious_vars; do
1378   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379   eval ac_env_${ac_var}_value=\$${ac_var}
1380   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382 done
1383
1384 #
1385 # Report the --help message.
1386 #
1387 if test "$ac_init_help" = "long"; then
1388   # Omit some internal or obsolete options to make the list less imposing.
1389   # This message is too long to be a string in the A/UX 3.1 sh.
1390   cat <<_ACEOF
1391 \`configure' configures unbound 1.5.3 to adapt to many kinds of systems.
1392
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1394
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE.  See below for descriptions of some of the useful variables.
1397
1398 Defaults for the options are specified in brackets.
1399
1400 Configuration:
1401   -h, --help              display this help and exit
1402       --help=short        display options specific to this package
1403       --help=recursive    display the short help of all the included packages
1404   -V, --version           display version information and exit
1405   -q, --quiet, --silent   do not print \`checking ...' messages
1406       --cache-file=FILE   cache test results in FILE [disabled]
1407   -C, --config-cache      alias for \`--cache-file=config.cache'
1408   -n, --no-create         do not create output files
1409       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1410
1411 Installation directories:
1412   --prefix=PREFIX         install architecture-independent files in PREFIX
1413                           [$ac_default_prefix]
1414   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1415                           [PREFIX]
1416
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1421
1422 For better control, use the options below.
1423
1424 Fine tuning of the installation directories:
1425   --bindir=DIR            user executables [EPREFIX/bin]
1426   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1427   --libexecdir=DIR        program executables [EPREFIX/libexec]
1428   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1429   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1430   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1431   --libdir=DIR            object code libraries [EPREFIX/lib]
1432   --includedir=DIR        C header files [PREFIX/include]
1433   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1434   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1435   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1436   --infodir=DIR           info documentation [DATAROOTDIR/info]
1437   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1438   --mandir=DIR            man documentation [DATAROOTDIR/man]
1439   --docdir=DIR            documentation root [DATAROOTDIR/doc/unbound]
1440   --htmldir=DIR           html documentation [DOCDIR]
1441   --dvidir=DIR            dvi documentation [DOCDIR]
1442   --pdfdir=DIR            pdf documentation [DOCDIR]
1443   --psdir=DIR             ps documentation [DOCDIR]
1444 _ACEOF
1445
1446   cat <<\_ACEOF
1447
1448 System types:
1449   --build=BUILD     configure for building on BUILD [guessed]
1450   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1451 _ACEOF
1452 fi
1453
1454 if test -n "$ac_init_help"; then
1455   case $ac_init_help in
1456      short | recursive ) echo "Configuration of unbound 1.5.3:";;
1457    esac
1458   cat <<\_ACEOF
1459
1460 Optional Features:
1461   --disable-option-checking  ignore unrecognized --enable/--with options
1462   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1463   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1464   --enable-checking       Enable warnings, asserts, makefile-dependencies
1465   --enable-debug          same as enable-checking
1466   --disable-flto          Disable link-time optimization (gcc specific option)
1467   --enable-shared[=PKGS]  build shared libraries [default=yes]
1468   --enable-static[=PKGS]  build static libraries [default=yes]
1469   --enable-fast-install[=PKGS]
1470                           optimize for fast installation [default=yes]
1471   --disable-libtool-lock  avoid locking (might break parallel builds)
1472   --disable-rpath         disable hardcoded rpath (default=enabled)
1473   --disable-largefile     omit support for large files
1474   --enable-alloc-checks   enable to memory allocation statistics, for debug
1475                           purposes
1476   --enable-alloc-lite     enable for lightweight alloc assertions, for debug
1477                           purposes
1478   --enable-alloc-nonregional
1479                           enable nonregional allocs, slow but exposes regional
1480                           allocations to other memory purifiers, for debug
1481                           purposes
1482   --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1483   --disable-gost          Disable GOST support
1484   --disable-ecdsa         Disable ECDSA support
1485   --enable-event-api      Enable (experimental) libevent-based libunbound API
1486                           installed to unbound-event.h
1487   --enable-static-exe     enable to compile executables statically against
1488                           (event) libs, for debug purposes
1489   --enable-lock-checks    enable to check lock and unlock calls, for debug
1490                           purposes
1491   --enable-allsymbols     export all symbols from libunbound and link binaries
1492                           to it, smaller install size but libunbound export
1493                           table is polluted by internal symbols
1494   --enable-dnstap         Enable dnstap support (requires fstrm, protobuf-c)
1495
1496 Optional Packages:
1497   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1498   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1499   --with-conf-file=path   Pathname to the Unbound configuration file
1500   --with-run-dir=path     set default directory to chdir to (by default dir
1501                           part of cfg file)
1502   --with-chroot-dir=path  set default directory to chroot to (by default same
1503                           as run-dir)
1504   --with-share-dir=path   set default directory with shared data (by default
1505                           same as share/unbound)
1506   --with-pidfile=filename set default pathname to unbound pidfile (default
1507                           run-dir/unbound.pid)
1508   --with-rootkey-file=filename
1509                           set default pathname to root key file (default
1510                           run-dir/root.key). This file is read and written.
1511   --with-rootcert-file=filename
1512                           set default pathname to root update certificate file
1513                           (default run-dir/icannbundle.pem). This file need
1514                           not exist if you are content with the builtin.
1515   --with-username=user    set default user that unbound changes to (default
1516                           user is unbound)
1517   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1518                           both]
1519   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1520   --with-sysroot=DIR Search for dependent libraries within DIR
1521                         (or the compiler's sysroot if not specified).
1522   --with-pthreads         use pthreads library, or --without-pthreads to
1523                           disable threading support.
1524   --with-solaris-threads  use solaris native thread library.
1525   --with-pyunbound        build PyUnbound, or --without-pyunbound to skip it.
1526                           (default=no)
1527   --with-pythonmodule     build Python module, or --without-pythonmodule to
1528                           disable script engine. (default=no)
1529   --with-nss=path         use libnss instead of openssl, installed at path.
1530   --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1531                           /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1532                           /usr)
1533   --with-libevent=pathname
1534                           use libevent (will check /usr/local /opt/local
1535                           /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1536                           an explicit path). Slower, but allows use of large
1537                           outgoing port ranges.
1538   --with-libexpat=path    specify explicit path for libexpat.
1539   --with-dnstap-socket-path=pathname
1540                           set default dnstap socket path
1541   --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
1542   --with-libfstrm=path    Path where libfstrm is installed, for dnstap
1543   --with-libunbound-only  do not build daemon and tool programs
1544
1545 Some influential environment variables:
1546   CC          C compiler command
1547   CFLAGS      C compiler flags
1548   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1549               nonstandard directory <lib dir>
1550   LIBS        libraries to pass to the linker, e.g. -l<library>
1551   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1552               you have headers in a nonstandard directory <include dir>
1553   CPP         C preprocessor
1554   YACC        The `Yet Another Compiler Compiler' implementation to use.
1555               Defaults to the first program found out of: `bison -y', `byacc',
1556               `yacc'.
1557   YFLAGS      The list of arguments that will be passed by default to $YACC.
1558               This script will default YFLAGS to the empty string to avoid a
1559               default value of `-d' given by some make applications.
1560   PYTHON_VERSION
1561               The installed Python version to use, for example '2.3'. This
1562               string will be appended to the Python interpreter canonical
1563               name.
1564
1565 Use these variables to override the choices made by `configure' or to help
1566 it to find libraries and programs with nonstandard names/locations.
1567
1568 Report bugs to <unbound-bugs@nlnetlabs.nl>.
1569 _ACEOF
1570 ac_status=$?
1571 fi
1572
1573 if test "$ac_init_help" = "recursive"; then
1574   # If there are subdirs, report their specific --help.
1575   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1576     test -d "$ac_dir" ||
1577       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1578       continue
1579     ac_builddir=.
1580
1581 case "$ac_dir" in
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *)
1584   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1585   # A ".." for each directory in $ac_dir_suffix.
1586   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1587   case $ac_top_builddir_sub in
1588   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590   esac ;;
1591 esac
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1596
1597 case $srcdir in
1598   .)  # We are building in place.
1599     ac_srcdir=.
1600     ac_top_srcdir=$ac_top_builddir_sub
1601     ac_abs_top_srcdir=$ac_pwd ;;
1602   [\\/]* | ?:[\\/]* )  # Absolute name.
1603     ac_srcdir=$srcdir$ac_dir_suffix;
1604     ac_top_srcdir=$srcdir
1605     ac_abs_top_srcdir=$srcdir ;;
1606   *) # Relative name.
1607     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608     ac_top_srcdir=$ac_top_build_prefix$srcdir
1609     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610 esac
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612
1613     cd "$ac_dir" || { ac_status=$?; continue; }
1614     # Check for guested configure.
1615     if test -f "$ac_srcdir/configure.gnu"; then
1616       echo &&
1617       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618     elif test -f "$ac_srcdir/configure"; then
1619       echo &&
1620       $SHELL "$ac_srcdir/configure" --help=recursive
1621     else
1622       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623     fi || ac_status=$?
1624     cd "$ac_pwd" || { ac_status=$?; break; }
1625   done
1626 fi
1627
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1630   cat <<\_ACEOF
1631 unbound configure 1.5.3
1632 generated by GNU Autoconf 2.69
1633
1634 Copyright (C) 2012 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1637 _ACEOF
1638   exit
1639 fi
1640
1641 ## ------------------------ ##
1642 ## Autoconf initialization. ##
1643 ## ------------------------ ##
1644
1645 # ac_fn_c_try_compile LINENO
1646 # --------------------------
1647 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_compile ()
1649 {
1650   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651   rm -f conftest.$ac_objext
1652   if { { ac_try="$ac_compile"
1653 case "(($ac_try" in
1654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655   *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659   (eval "$ac_compile") 2>conftest.err
1660   ac_status=$?
1661   if test -s conftest.err; then
1662     grep -v '^ *+' conftest.err >conftest.er1
1663     cat conftest.er1 >&5
1664     mv -f conftest.er1 conftest.err
1665   fi
1666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667   test $ac_status = 0; } && {
1668          test -z "$ac_c_werror_flag" ||
1669          test ! -s conftest.err
1670        } && test -s conftest.$ac_objext; then :
1671   ac_retval=0
1672 else
1673   $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1675
1676         ac_retval=1
1677 fi
1678   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679   as_fn_set_status $ac_retval
1680
1681 } # ac_fn_c_try_compile
1682
1683 # ac_fn_c_try_cpp LINENO
1684 # ----------------------
1685 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1686 ac_fn_c_try_cpp ()
1687 {
1688   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689   if { { ac_try="$ac_cpp conftest.$ac_ext"
1690 case "(($ac_try" in
1691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692   *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1697   ac_status=$?
1698   if test -s conftest.err; then
1699     grep -v '^ *+' conftest.err >conftest.er1
1700     cat conftest.er1 >&5
1701     mv -f conftest.er1 conftest.err
1702   fi
1703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704   test $ac_status = 0; } > conftest.i && {
1705          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1706          test ! -s conftest.err
1707        }; then :
1708   ac_retval=0
1709 else
1710   $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1712
1713     ac_retval=1
1714 fi
1715   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716   as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_cpp
1719
1720 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1721 # -------------------------------------------------------
1722 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1723 # the include files in INCLUDES and setting the cache variable VAR
1724 # accordingly.
1725 ac_fn_c_check_header_mongrel ()
1726 {
1727   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728   if eval \${$3+:} false; then :
1729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 $as_echo_n "checking for $2... " >&6; }
1731 if eval \${$3+:} false; then :
1732   $as_echo_n "(cached) " >&6
1733 fi
1734 eval ac_res=\$$3
1735                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1737 else
1738   # Is the header compilable?
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1740 $as_echo_n "checking $2 usability... " >&6; }
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h.  */
1743 $4
1744 #include <$2>
1745 _ACEOF
1746 if ac_fn_c_try_compile "$LINENO"; then :
1747   ac_header_compiler=yes
1748 else
1749   ac_header_compiler=no
1750 fi
1751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1753 $as_echo "$ac_header_compiler" >&6; }
1754
1755 # Is the header present?
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1757 $as_echo_n "checking $2 presence... " >&6; }
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h.  */
1760 #include <$2>
1761 _ACEOF
1762 if ac_fn_c_try_cpp "$LINENO"; then :
1763   ac_header_preproc=yes
1764 else
1765   ac_header_preproc=no
1766 fi
1767 rm -f conftest.err conftest.i conftest.$ac_ext
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1769 $as_echo "$ac_header_preproc" >&6; }
1770
1771 # So?  What about this header?
1772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1773   yes:no: )
1774     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1775 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1776     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1777 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1778     ;;
1779   no:yes:* )
1780     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1781 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1782     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1783 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1784     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1785 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1786     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1787 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1788     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790 ( $as_echo "## ---------------------------------------- ##
1791 ## Report this to unbound-bugs@nlnetlabs.nl ##
1792 ## ---------------------------------------- ##"
1793      ) | sed "s/^/$as_me: WARNING:     /" >&2
1794     ;;
1795 esac
1796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if eval \${$3+:} false; then :
1799   $as_echo_n "(cached) " >&6
1800 else
1801   eval "$3=\$ac_header_compiler"
1802 fi
1803 eval ac_res=\$$3
1804                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 fi
1807   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808
1809 } # ac_fn_c_check_header_mongrel
1810
1811 # ac_fn_c_try_run LINENO
1812 # ----------------------
1813 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1814 # that executables *can* be run.
1815 ac_fn_c_try_run ()
1816 {
1817   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818   if { { ac_try="$ac_link"
1819 case "(($ac_try" in
1820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821   *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825   (eval "$ac_link") 2>&5
1826   ac_status=$?
1827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1829   { { case "(($ac_try" in
1830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831   *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835   (eval "$ac_try") 2>&5
1836   ac_status=$?
1837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838   test $ac_status = 0; }; }; then :
1839   ac_retval=0
1840 else
1841   $as_echo "$as_me: program exited with status $ac_status" >&5
1842        $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1844
1845        ac_retval=$ac_status
1846 fi
1847   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849   as_fn_set_status $ac_retval
1850
1851 } # ac_fn_c_try_run
1852
1853 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1854 # -------------------------------------------------------
1855 # Tests whether HEADER exists and can be compiled using the include files in
1856 # INCLUDES, setting the cache variable VAR accordingly.
1857 ac_fn_c_check_header_compile ()
1858 {
1859   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863   $as_echo_n "(cached) " >&6
1864 else
1865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h.  */
1867 $4
1868 #include <$2>
1869 _ACEOF
1870 if ac_fn_c_try_compile "$LINENO"; then :
1871   eval "$3=yes"
1872 else
1873   eval "$3=no"
1874 fi
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876 fi
1877 eval ac_res=\$$3
1878                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881
1882 } # ac_fn_c_check_header_compile
1883
1884 # ac_fn_c_try_link LINENO
1885 # -----------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_c_try_link ()
1888 {
1889   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890   rm -f conftest.$ac_objext conftest$ac_exeext
1891   if { { ac_try="$ac_link"
1892 case "(($ac_try" in
1893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894   *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898   (eval "$ac_link") 2>conftest.err
1899   ac_status=$?
1900   if test -s conftest.err; then
1901     grep -v '^ *+' conftest.err >conftest.er1
1902     cat conftest.er1 >&5
1903     mv -f conftest.er1 conftest.err
1904   fi
1905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906   test $ac_status = 0; } && {
1907          test -z "$ac_c_werror_flag" ||
1908          test ! -s conftest.err
1909        } && test -s conftest$ac_exeext && {
1910          test "$cross_compiling" = yes ||
1911          test -x conftest$ac_exeext
1912        }; then :
1913   ac_retval=0
1914 else
1915   $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1917
1918         ac_retval=1
1919 fi
1920   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922   # interfere with the next link command; also delete a directory that is
1923   # left behind by Apple's compiler.  We do this before executing the actions.
1924   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926   as_fn_set_status $ac_retval
1927
1928 } # ac_fn_c_try_link
1929
1930 # ac_fn_c_check_func LINENO FUNC VAR
1931 # ----------------------------------
1932 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1933 ac_fn_c_check_func ()
1934 {
1935   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if eval \${$3+:} false; then :
1939   $as_echo_n "(cached) " >&6
1940 else
1941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h.  */
1943 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1945 #define $2 innocuous_$2
1946
1947 /* System header to define __stub macros and hopefully few prototypes,
1948     which can conflict with char $2 (); below.
1949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1950     <limits.h> exists even on freestanding compilers.  */
1951
1952 #ifdef __STDC__
1953 # include <limits.h>
1954 #else
1955 # include <assert.h>
1956 #endif
1957
1958 #undef $2
1959
1960 /* Override any GCC internal prototype to avoid an error.
1961    Use char because int might match the return type of a GCC
1962    builtin and then its argument prototype would still apply.  */
1963 #ifdef __cplusplus
1964 extern "C"
1965 #endif
1966 char $2 ();
1967 /* The GNU C library defines this for functions which it implements
1968     to always fail with ENOSYS.  Some functions are actually named
1969     something starting with __ and the normal name is an alias.  */
1970 #if defined __stub_$2 || defined __stub___$2
1971 choke me
1972 #endif
1973
1974 int
1975 main ()
1976 {
1977 return $2 ();
1978   ;
1979   return 0;
1980 }
1981 _ACEOF
1982 if ac_fn_c_try_link "$LINENO"; then :
1983   eval "$3=yes"
1984 else
1985   eval "$3=no"
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext \
1988     conftest$ac_exeext conftest.$ac_ext
1989 fi
1990 eval ac_res=\$$3
1991                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994
1995 } # ac_fn_c_check_func
1996
1997 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1998 # -------------------------------------------
1999 # Tests whether TYPE exists after having included INCLUDES, setting cache
2000 # variable VAR accordingly.
2001 ac_fn_c_check_type ()
2002 {
2003   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005 $as_echo_n "checking for $2... " >&6; }
2006 if eval \${$3+:} false; then :
2007   $as_echo_n "(cached) " >&6
2008 else
2009   eval "$3=no"
2010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h.  */
2012 $4
2013 int
2014 main ()
2015 {
2016 if (sizeof ($2))
2017          return 0;
2018   ;
2019   return 0;
2020 }
2021 _ACEOF
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h.  */
2025 $4
2026 int
2027 main ()
2028 {
2029 if (sizeof (($2)))
2030             return 0;
2031   ;
2032   return 0;
2033 }
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036
2037 else
2038   eval "$3=yes"
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 fi
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 fi
2044 eval ac_res=\$$3
2045                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048
2049 } # ac_fn_c_check_type
2050
2051 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2052 # --------------------------------------------
2053 # Tries to find the compile-time value of EXPR in a program that includes
2054 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2055 # computed
2056 ac_fn_c_compute_int ()
2057 {
2058   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059   if test "$cross_compiling" = yes; then
2060     # Depending upon the size, compute the lo and hi bounds.
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h.  */
2063 $4
2064 int
2065 main ()
2066 {
2067 static int test_array [1 - 2 * !(($2) >= 0)];
2068 test_array [0] = 0;
2069 return test_array [0];
2070
2071   ;
2072   return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076   ac_lo=0 ac_mid=0
2077   while :; do
2078     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h.  */
2080 $4
2081 int
2082 main ()
2083 {
2084 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2085 test_array [0] = 0;
2086 return test_array [0];
2087
2088   ;
2089   return 0;
2090 }
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093   ac_hi=$ac_mid; break
2094 else
2095   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2096                         if test $ac_lo -le $ac_mid; then
2097                           ac_lo= ac_hi=
2098                           break
2099                         fi
2100                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103   done
2104 else
2105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h.  */
2107 $4
2108 int
2109 main ()
2110 {
2111 static int test_array [1 - 2 * !(($2) < 0)];
2112 test_array [0] = 0;
2113 return test_array [0];
2114
2115   ;
2116   return 0;
2117 }
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120   ac_hi=-1 ac_mid=-1
2121   while :; do
2122     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h.  */
2124 $4
2125 int
2126 main ()
2127 {
2128 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2129 test_array [0] = 0;
2130 return test_array [0];
2131
2132   ;
2133   return 0;
2134 }
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137   ac_lo=$ac_mid; break
2138 else
2139   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2140                         if test $ac_mid -le $ac_hi; then
2141                           ac_lo= ac_hi=
2142                           break
2143                         fi
2144                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2145 fi
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147   done
2148 else
2149   ac_lo= ac_hi=
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 fi
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 # Binary search between lo and hi bounds.
2155 while test "x$ac_lo" != "x$ac_hi"; do
2156   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h.  */
2159 $4
2160 int
2161 main ()
2162 {
2163 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2164 test_array [0] = 0;
2165 return test_array [0];
2166
2167   ;
2168   return 0;
2169 }
2170 _ACEOF
2171 if ac_fn_c_try_compile "$LINENO"; then :
2172   ac_hi=$ac_mid
2173 else
2174   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2175 fi
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 done
2178 case $ac_lo in #((
2179 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2180 '') ac_retval=1 ;;
2181 esac
2182   else
2183     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h.  */
2185 $4
2186 static long int longval () { return $2; }
2187 static unsigned long int ulongval () { return $2; }
2188 #include <stdio.h>
2189 #include <stdlib.h>
2190 int
2191 main ()
2192 {
2193
2194   FILE *f = fopen ("conftest.val", "w");
2195   if (! f)
2196     return 1;
2197   if (($2) < 0)
2198     {
2199       long int i = longval ();
2200       if (i != ($2))
2201         return 1;
2202       fprintf (f, "%ld", i);
2203     }
2204   else
2205     {
2206       unsigned long int i = ulongval ();
2207       if (i != ($2))
2208         return 1;
2209       fprintf (f, "%lu", i);
2210     }
2211   /* Do not output a trailing newline, as this causes \r\n confusion
2212      on some platforms.  */
2213   return ferror (f) || fclose (f) != 0;
2214
2215   ;
2216   return 0;
2217 }
2218 _ACEOF
2219 if ac_fn_c_try_run "$LINENO"; then :
2220   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2221 else
2222   ac_retval=1
2223 fi
2224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2225   conftest.$ac_objext conftest.beam conftest.$ac_ext
2226 rm -f conftest.val
2227
2228   fi
2229   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2230   as_fn_set_status $ac_retval
2231
2232 } # ac_fn_c_compute_int
2233
2234 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2235 # ---------------------------------------------
2236 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2237 # accordingly.
2238 ac_fn_c_check_decl ()
2239 {
2240   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241   as_decl_name=`echo $2|sed 's/ *(.*//'`
2242   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2244 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2245 if eval \${$3+:} false; then :
2246   $as_echo_n "(cached) " >&6
2247 else
2248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h.  */
2250 $4
2251 int
2252 main ()
2253 {
2254 #ifndef $as_decl_name
2255 #ifdef __cplusplus
2256   (void) $as_decl_use;
2257 #else
2258   (void) $as_decl_name;
2259 #endif
2260 #endif
2261
2262   ;
2263   return 0;
2264 }
2265 _ACEOF
2266 if ac_fn_c_try_compile "$LINENO"; then :
2267   eval "$3=yes"
2268 else
2269   eval "$3=no"
2270 fi
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 fi
2273 eval ac_res=\$$3
2274                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2275 $as_echo "$ac_res" >&6; }
2276   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2277
2278 } # ac_fn_c_check_decl
2279
2280 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2281 # ----------------------------------------------------
2282 # Tries to find if the field MEMBER exists in type AGGR, after including
2283 # INCLUDES, setting cache variable VAR accordingly.
2284 ac_fn_c_check_member ()
2285 {
2286   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2288 $as_echo_n "checking for $2.$3... " >&6; }
2289 if eval \${$4+:} false; then :
2290   $as_echo_n "(cached) " >&6
2291 else
2292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h.  */
2294 $5
2295 int
2296 main ()
2297 {
2298 static $2 ac_aggr;
2299 if (ac_aggr.$3)
2300 return 0;
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 if ac_fn_c_try_compile "$LINENO"; then :
2306   eval "$4=yes"
2307 else
2308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h.  */
2310 $5
2311 int
2312 main ()
2313 {
2314 static $2 ac_aggr;
2315 if (sizeof ac_aggr.$3)
2316 return 0;
2317   ;
2318   return 0;
2319 }
2320 _ACEOF
2321 if ac_fn_c_try_compile "$LINENO"; then :
2322   eval "$4=yes"
2323 else
2324   eval "$4=no"
2325 fi
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 fi
2328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329 fi
2330 eval ac_res=\$$4
2331                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2332 $as_echo "$ac_res" >&6; }
2333   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2334
2335 } # ac_fn_c_check_member
2336 cat >config.log <<_ACEOF
2337 This file contains any messages produced by compilers while
2338 running configure, to aid debugging if configure makes a mistake.
2339
2340 It was created by unbound $as_me 1.5.3, which was
2341 generated by GNU Autoconf 2.69.  Invocation command line was
2342
2343   $ $0 $@
2344
2345 _ACEOF
2346 exec 5>>config.log
2347 {
2348 cat <<_ASUNAME
2349 ## --------- ##
2350 ## Platform. ##
2351 ## --------- ##
2352
2353 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2354 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2355 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2356 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2357 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2358
2359 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2360 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2361
2362 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2363 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2364 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2365 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2366 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2367 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2368 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2369
2370 _ASUNAME
2371
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375   IFS=$as_save_IFS
2376   test -z "$as_dir" && as_dir=.
2377     $as_echo "PATH: $as_dir"
2378   done
2379 IFS=$as_save_IFS
2380
2381 } >&5
2382
2383 cat >&5 <<_ACEOF
2384
2385
2386 ## ----------- ##
2387 ## Core tests. ##
2388 ## ----------- ##
2389
2390 _ACEOF
2391
2392
2393 # Keep a trace of the command line.
2394 # Strip out --no-create and --no-recursion so they do not pile up.
2395 # Strip out --silent because we don't want to record it for future runs.
2396 # Also quote any args containing shell meta-characters.
2397 # Make two passes to allow for proper duplicate-argument suppression.
2398 ac_configure_args=
2399 ac_configure_args0=
2400 ac_configure_args1=
2401 ac_must_keep_next=false
2402 for ac_pass in 1 2
2403 do
2404   for ac_arg
2405   do
2406     case $ac_arg in
2407     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2408     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2409     | -silent | --silent | --silen | --sile | --sil)
2410       continue ;;
2411     *\'*)
2412       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2413     esac
2414     case $ac_pass in
2415     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2416     2)
2417       as_fn_append ac_configure_args1 " '$ac_arg'"
2418       if test $ac_must_keep_next = true; then
2419         ac_must_keep_next=false # Got value, back to normal.
2420       else
2421         case $ac_arg in
2422           *=* | --config-cache | -C | -disable-* | --disable-* \
2423           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2424           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2425           | -with-* | --with-* | -without-* | --without-* | --x)
2426             case "$ac_configure_args0 " in
2427               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2428             esac
2429             ;;
2430           -* ) ac_must_keep_next=true ;;
2431         esac
2432       fi
2433       as_fn_append ac_configure_args " '$ac_arg'"
2434       ;;
2435     esac
2436   done
2437 done
2438 { ac_configure_args0=; unset ac_configure_args0;}
2439 { ac_configure_args1=; unset ac_configure_args1;}
2440
2441 # When interrupted or exit'd, cleanup temporary files, and complete
2442 # config.log.  We remove comments because anyway the quotes in there
2443 # would cause problems or look ugly.
2444 # WARNING: Use '\'' to represent an apostrophe within the trap.
2445 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2446 trap 'exit_status=$?
2447   # Save into config.log some information that might help in debugging.
2448   {
2449     echo
2450
2451     $as_echo "## ---------------- ##
2452 ## Cache variables. ##
2453 ## ---------------- ##"
2454     echo
2455     # The following way of writing the cache mishandles newlines in values,
2456 (
2457   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2458     eval ac_val=\$$ac_var
2459     case $ac_val in #(
2460     *${as_nl}*)
2461       case $ac_var in #(
2462       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2463 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2464       esac
2465       case $ac_var in #(
2466       _ | IFS | as_nl) ;; #(
2467       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2468       *) { eval $ac_var=; unset $ac_var;} ;;
2469       esac ;;
2470     esac
2471   done
2472   (set) 2>&1 |
2473     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2474     *${as_nl}ac_space=\ *)
2475       sed -n \
2476         "s/'\''/'\''\\\\'\'''\''/g;
2477           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2478       ;; #(
2479     *)
2480       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2481       ;;
2482     esac |
2483     sort
2484 )
2485     echo
2486
2487     $as_echo "## ----------------- ##
2488 ## Output variables. ##
2489 ## ----------------- ##"
2490     echo
2491     for ac_var in $ac_subst_vars
2492     do
2493       eval ac_val=\$$ac_var
2494       case $ac_val in
2495       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2496       esac
2497       $as_echo "$ac_var='\''$ac_val'\''"
2498     done | sort
2499     echo
2500
2501     if test -n "$ac_subst_files"; then
2502       $as_echo "## ------------------- ##
2503 ## File substitutions. ##
2504 ## ------------------- ##"
2505       echo
2506       for ac_var in $ac_subst_files
2507       do
2508         eval ac_val=\$$ac_var
2509         case $ac_val in
2510         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2511         esac
2512         $as_echo "$ac_var='\''$ac_val'\''"
2513       done | sort
2514       echo
2515     fi
2516
2517     if test -s confdefs.h; then
2518       $as_echo "## ----------- ##
2519 ## confdefs.h. ##
2520 ## ----------- ##"
2521       echo
2522       cat confdefs.h
2523       echo
2524     fi
2525     test "$ac_signal" != 0 &&
2526       $as_echo "$as_me: caught signal $ac_signal"
2527     $as_echo "$as_me: exit $exit_status"
2528   } >&5
2529   rm -f core *.core core.conftest.* &&
2530     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2531     exit $exit_status
2532 ' 0
2533 for ac_signal in 1 2 13 15; do
2534   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2535 done
2536 ac_signal=0
2537
2538 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2539 rm -f -r conftest* confdefs.h
2540
2541 $as_echo "/* confdefs.h */" > confdefs.h
2542
2543 # Predefined preprocessor variables.
2544
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_NAME "$PACKAGE_NAME"
2547 _ACEOF
2548
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2551 _ACEOF
2552
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2555 _ACEOF
2556
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_STRING "$PACKAGE_STRING"
2559 _ACEOF
2560
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2563 _ACEOF
2564
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_URL "$PACKAGE_URL"
2567 _ACEOF
2568
2569
2570 # Let the site file select an alternate cache file if it wants to.
2571 # Prefer an explicitly selected file to automatically selected ones.
2572 ac_site_file1=NONE
2573 ac_site_file2=NONE
2574 if test -n "$CONFIG_SITE"; then
2575   # We do not want a PATH search for config.site.
2576   case $CONFIG_SITE in #((
2577     -*)  ac_site_file1=./$CONFIG_SITE;;
2578     */*) ac_site_file1=$CONFIG_SITE;;
2579     *)   ac_site_file1=./$CONFIG_SITE;;
2580   esac
2581 elif test "x$prefix" != xNONE; then
2582   ac_site_file1=$prefix/share/config.site
2583   ac_site_file2=$prefix/etc/config.site
2584 else
2585   ac_site_file1=$ac_default_prefix/share/config.site
2586   ac_site_file2=$ac_default_prefix/etc/config.site
2587 fi
2588 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2589 do
2590   test "x$ac_site_file" = xNONE && continue
2591   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2592     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2593 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2594     sed 's/^/| /' "$ac_site_file" >&5
2595     . "$ac_site_file" \
2596       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 as_fn_error $? "failed to load site script $ac_site_file
2599 See \`config.log' for more details" "$LINENO" 5; }
2600   fi
2601 done
2602
2603 if test -r "$cache_file"; then
2604   # Some versions of bash will fail to source /dev/null (special files
2605   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2606   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2607     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2608 $as_echo "$as_me: loading cache $cache_file" >&6;}
2609     case $cache_file in
2610       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2611       *)                      . "./$cache_file";;
2612     esac
2613   fi
2614 else
2615   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2616 $as_echo "$as_me: creating cache $cache_file" >&6;}
2617   >$cache_file
2618 fi
2619
2620 # Check that the precious variables saved in the cache have kept the same
2621 # value.
2622 ac_cache_corrupted=false
2623 for ac_var in $ac_precious_vars; do
2624   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2625   eval ac_new_set=\$ac_env_${ac_var}_set
2626   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2627   eval ac_new_val=\$ac_env_${ac_var}_value
2628   case $ac_old_set,$ac_new_set in
2629     set,)
2630       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2631 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2632       ac_cache_corrupted=: ;;
2633     ,set)
2634       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2635 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2636       ac_cache_corrupted=: ;;
2637     ,);;
2638     *)
2639       if test "x$ac_old_val" != "x$ac_new_val"; then
2640         # differences in whitespace do not lead to failure.
2641         ac_old_val_w=`echo x $ac_old_val`
2642         ac_new_val_w=`echo x $ac_new_val`
2643         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2644           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2645 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2646           ac_cache_corrupted=:
2647         else
2648           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2649 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2650           eval $ac_var=\$ac_old_val
2651         fi
2652         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2653 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2654         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2655 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2656       fi;;
2657   esac
2658   # Pass precious variables to config.status.
2659   if test "$ac_new_set" = set; then
2660     case $ac_new_val in
2661     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2662     *) ac_arg=$ac_var=$ac_new_val ;;
2663     esac
2664     case " $ac_configure_args " in
2665       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2666       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2667     esac
2668   fi
2669 done
2670 if $ac_cache_corrupted; then
2671   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2673   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2674 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2675   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2676 fi
2677 ## -------------------- ##
2678 ## Main body of script. ##
2679 ## -------------------- ##
2680
2681 ac_ext=c
2682 ac_cpp='$CPP $CPPFLAGS'
2683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2686
2687
2688 UNBOUND_VERSION_MAJOR=1
2689
2690 UNBOUND_VERSION_MINOR=5
2691
2692 UNBOUND_VERSION_MICRO=3
2693
2694
2695 LIBUNBOUND_CURRENT=5
2696 LIBUNBOUND_REVISION=6
2697 LIBUNBOUND_AGE=3
2698 # 1.0.0 had 0:12:0
2699 # 1.0.1 had 0:13:0
2700 # 1.0.2 had 0:14:0
2701 # 1.1.0 had 0:15:0
2702 # 1.1.1 had 0:16:0
2703 # 1.2.0 had 0:17:0
2704 # 1.2.1 had 0:18:0
2705 # 1.3.0 had 1:0:0   # ub_cancel and -export-symbols.
2706 # 1.3.1 had 1:1:0
2707 # 1.3.2 had 1:2:0
2708 # 1.3.3 had 1:3:0
2709 # 1.3.4 had 1:4:0
2710 # 1.4.0-snapshots had 1:5:0
2711 # 1.4.0 had 1:5:0 (not 2:0:0)   # ub_result.why_bogus
2712 # 1.4.1 had 2:1:0
2713 # 1.4.2 had 2:2:0
2714 # 1.4.3 had 2:3:0
2715 # 1.4.4 had 2:4:0
2716 # 1.4.5 had 2:5:0
2717 # 1.4.6 had 2:6:0
2718 # 1.4.7 had 2:7:0
2719 # 1.4.8 had 2:8:0
2720 # 1.4.9 had 2:9:0
2721 # 1.4.10 had 2:10:0
2722 # 1.4.11 had 2:11:0
2723 # 1.4.12 had 2:12:0
2724 # 1.4.13 had 2:13:0
2725 # and 1.4.13p1 and 1.4.13.p2
2726 # 1.4.14 had 2:14:0
2727 # 1.4.15 had 3:0:1 # adds ub_version()
2728 # 1.4.16 had 3:1:1
2729 # 1.4.17 had 3:2:1
2730 # 1.4.18 had 3:3:1
2731 # 1.4.19 had 3:4:1
2732 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2733 # 1.4.21 had 4:1:2
2734 # 1.4.22 had 4:1:2
2735 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2736 # 1.5.1 had 5:3:3
2737 # 1.5.2 had 5:5:3
2738 # 1.5.3 had 5:6:3
2739
2740 #   Current  -- the number of the binary API that we're implementing
2741 #   Revision -- which iteration of the implementation of the binary
2742 #               API are we supplying?
2743 #   Age      -- How many previous binary API versions do we also
2744 #               support?
2745 #
2746 # If we release a new version that does not change the binary API,
2747 # increment Revision.
2748 #
2749 # If we release a new version that changes the binary API, but does
2750 # not break programs compiled against the old binary API, increment
2751 # Current and Age.  Set Revision to 0, since this is the first
2752 # implementation of the new API.
2753 #
2754 # Otherwise, we're changing the binary API and breaking bakward
2755 # compatibility with old binaries.  Increment Current.  Set Age to 0,
2756 # since we're backward compatible with no previous APIs.  Set Revision
2757 # to 0 too.
2758
2759
2760
2761
2762 CFLAGS="$CFLAGS"
2763 ac_ext=c
2764 ac_cpp='$CPP $CPPFLAGS'
2765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768 if test -n "$ac_tool_prefix"; then
2769   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2770 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if ${ac_cv_prog_CC+:} false; then :
2774   $as_echo_n "(cached) " >&6
2775 else
2776   if test -n "$CC"; then
2777   ac_cv_prog_CC="$CC" # Let the user override the test.
2778 else
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2781 do
2782   IFS=$as_save_IFS
2783   test -z "$as_dir" && as_dir=.
2784     for ac_exec_ext in '' $ac_executable_extensions; do
2785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788     break 2
2789   fi
2790 done
2791   done
2792 IFS=$as_save_IFS
2793
2794 fi
2795 fi
2796 CC=$ac_cv_prog_CC
2797 if test -n "$CC"; then
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2800 else
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803 fi
2804
2805
2806 fi
2807 if test -z "$ac_cv_prog_CC"; then
2808   ac_ct_CC=$CC
2809   # Extract the first word of "gcc", so it can be a program name with args.
2810 set dummy gcc; ac_word=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2814   $as_echo_n "(cached) " >&6
2815 else
2816   if test -n "$ac_ct_CC"; then
2817   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822   IFS=$as_save_IFS
2823   test -z "$as_dir" && as_dir=.
2824     for ac_exec_ext in '' $ac_executable_extensions; do
2825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826     ac_cv_prog_ac_ct_CC="gcc"
2827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828     break 2
2829   fi
2830 done
2831   done
2832 IFS=$as_save_IFS
2833
2834 fi
2835 fi
2836 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2837 if test -n "$ac_ct_CC"; then
2838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2839 $as_echo "$ac_ct_CC" >&6; }
2840 else
2841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2843 fi
2844
2845   if test "x$ac_ct_CC" = x; then
2846     CC=""
2847   else
2848     case $cross_compiling:$ac_tool_warned in
2849 yes:)
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2852 ac_tool_warned=yes ;;
2853 esac
2854     CC=$ac_ct_CC
2855   fi
2856 else
2857   CC="$ac_cv_prog_CC"
2858 fi
2859
2860 if test -z "$CC"; then
2861           if test -n "$ac_tool_prefix"; then
2862     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2863 set dummy ${ac_tool_prefix}cc; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if ${ac_cv_prog_CC+:} false; then :
2867   $as_echo_n "(cached) " >&6
2868 else
2869   if test -n "$CC"; then
2870   ac_cv_prog_CC="$CC" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875   IFS=$as_save_IFS
2876   test -z "$as_dir" && as_dir=.
2877     for ac_exec_ext in '' $ac_executable_extensions; do
2878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2879     ac_cv_prog_CC="${ac_tool_prefix}cc"
2880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881     break 2
2882   fi
2883 done
2884   done
2885 IFS=$as_save_IFS
2886
2887 fi
2888 fi
2889 CC=$ac_cv_prog_CC
2890 if test -n "$CC"; then
2891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2892 $as_echo "$CC" >&6; }
2893 else
2894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 fi
2897
2898
2899   fi
2900 fi
2901 if test -z "$CC"; then
2902   # Extract the first word of "cc", so it can be a program name with args.
2903 set dummy cc; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if ${ac_cv_prog_CC+:} false; then :
2907   $as_echo_n "(cached) " >&6
2908 else
2909   if test -n "$CC"; then
2910   ac_cv_prog_CC="$CC" # Let the user override the test.
2911 else
2912   ac_prog_rejected=no
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916   IFS=$as_save_IFS
2917   test -z "$as_dir" && as_dir=.
2918     for ac_exec_ext in '' $ac_executable_extensions; do
2919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2921        ac_prog_rejected=yes
2922        continue
2923      fi
2924     ac_cv_prog_CC="cc"
2925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926     break 2
2927   fi
2928 done
2929   done
2930 IFS=$as_save_IFS
2931
2932 if test $ac_prog_rejected = yes; then
2933   # We found a bogon in the path, so make sure we never use it.
2934   set dummy $ac_cv_prog_CC
2935   shift
2936   if test $# != 0; then
2937     # We chose a different compiler from the bogus one.
2938     # However, it has the same basename, so the bogon will be chosen
2939     # first if we set CC to just the basename; use the full file name.
2940     shift
2941     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2942   fi
2943 fi
2944 fi
2945 fi
2946 CC=$ac_cv_prog_CC
2947 if test -n "$CC"; then
2948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2949 $as_echo "$CC" >&6; }
2950 else
2951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 $as_echo "no" >&6; }
2953 fi
2954
2955
2956 fi
2957 if test -z "$CC"; then
2958   if test -n "$ac_tool_prefix"; then
2959   for ac_prog in cl.exe
2960   do
2961     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2962 set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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     test -n "$CC" && break
2999   done
3000 fi
3001 if test -z "$CC"; then
3002   ac_ct_CC=$CC
3003   for ac_prog in cl.exe
3004 do
3005   # Extract the first word of "$ac_prog", so it can be a program name with args.
3006 set dummy $ac_prog; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3010   $as_echo_n "(cached) " >&6
3011 else
3012   if test -n "$ac_ct_CC"; then
3013   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018   IFS=$as_save_IFS
3019   test -z "$as_dir" && as_dir=.
3020     for ac_exec_ext in '' $ac_executable_extensions; do
3021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3022     ac_cv_prog_ac_ct_CC="$ac_prog"
3023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024     break 2
3025   fi
3026 done
3027   done
3028 IFS=$as_save_IFS
3029
3030 fi
3031 fi
3032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3033 if test -n "$ac_ct_CC"; then
3034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3035 $as_echo "$ac_ct_CC" >&6; }
3036 else
3037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 fi
3040
3041
3042   test -n "$ac_ct_CC" && break
3043 done
3044
3045   if test "x$ac_ct_CC" = x; then
3046     CC=""
3047   else
3048     case $cross_compiling:$ac_tool_warned in
3049 yes:)
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3052 ac_tool_warned=yes ;;
3053 esac
3054     CC=$ac_ct_CC
3055   fi
3056 fi
3057
3058 fi
3059
3060
3061 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3063 as_fn_error $? "no acceptable C compiler found in \$PATH
3064 See \`config.log' for more details" "$LINENO" 5; }
3065
3066 # Provide some information about the compiler.
3067 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3068 set X $ac_compile
3069 ac_compiler=$2
3070 for ac_option in --version -v -V -qversion; do
3071   { { ac_try="$ac_compiler $ac_option >&5"
3072 case "(($ac_try" in
3073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074   *) ac_try_echo=$ac_try;;
3075 esac
3076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077 $as_echo "$ac_try_echo"; } >&5
3078   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3079   ac_status=$?
3080   if test -s conftest.err; then
3081     sed '10a\
3082 ... rest of stderr output deleted ...
3083          10q' conftest.err >conftest.er1
3084     cat conftest.er1 >&5
3085   fi
3086   rm -f conftest.er1 conftest.err
3087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3088   test $ac_status = 0; }
3089 done
3090
3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092 /* end confdefs.h.  */
3093
3094 int
3095 main ()
3096 {
3097
3098   ;
3099   return 0;
3100 }
3101 _ACEOF
3102 ac_clean_files_save=$ac_clean_files
3103 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3104 # Try to create an executable without -o first, disregard a.out.
3105 # It will help us diagnose broken compilers, and finding out an intuition
3106 # of exeext.
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3108 $as_echo_n "checking whether the C compiler works... " >&6; }
3109 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3110
3111 # The possible output files:
3112 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3113
3114 ac_rmfiles=
3115 for ac_file in $ac_files
3116 do
3117   case $ac_file in
3118     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3119     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3120   esac
3121 done
3122 rm -f $ac_rmfiles
3123
3124 if { { ac_try="$ac_link_default"
3125 case "(($ac_try" in
3126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127   *) ac_try_echo=$ac_try;;
3128 esac
3129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 $as_echo "$ac_try_echo"; } >&5
3131   (eval "$ac_link_default") 2>&5
3132   ac_status=$?
3133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134   test $ac_status = 0; }; then :
3135   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3136 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3137 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3138 # so that the user can short-circuit this test for compilers unknown to
3139 # Autoconf.
3140 for ac_file in $ac_files ''
3141 do
3142   test -f "$ac_file" || continue
3143   case $ac_file in
3144     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3145         ;;
3146     [ab].out )
3147         # We found the default executable, but exeext='' is most
3148         # certainly right.
3149         break;;
3150     *.* )
3151         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3152         then :; else
3153            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3154         fi
3155         # We set ac_cv_exeext here because the later test for it is not
3156         # safe: cross compilers may not add the suffix if given an `-o'
3157         # argument, so we may need to know it at that point already.
3158         # Even if this section looks crufty: it has the advantage of
3159         # actually working.
3160         break;;
3161     * )
3162         break;;
3163   esac
3164 done
3165 test "$ac_cv_exeext" = no && ac_cv_exeext=
3166
3167 else
3168   ac_file=''
3169 fi
3170 if test -z "$ac_file"; then :
3171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3173 $as_echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3175
3176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error 77 "C compiler cannot create executables
3179 See \`config.log' for more details" "$LINENO" 5; }
3180 else
3181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3182 $as_echo "yes" >&6; }
3183 fi
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3185 $as_echo_n "checking for C compiler default output file name... " >&6; }
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3187 $as_echo "$ac_file" >&6; }
3188 ac_exeext=$ac_cv_exeext
3189
3190 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3191 ac_clean_files=$ac_clean_files_save
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3193 $as_echo_n "checking for suffix of executables... " >&6; }
3194 if { { ac_try="$ac_link"
3195 case "(($ac_try" in
3196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197   *) ac_try_echo=$ac_try;;
3198 esac
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201   (eval "$ac_link") 2>&5
3202   ac_status=$?
3203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204   test $ac_status = 0; }; then :
3205   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3206 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3207 # work properly (i.e., refer to `conftest.exe'), while it won't with
3208 # `rm'.
3209 for ac_file in conftest.exe conftest conftest.*; do
3210   test -f "$ac_file" || continue
3211   case $ac_file in
3212     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3213     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3214           break;;
3215     * ) break;;
3216   esac
3217 done
3218 else
3219   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3222 See \`config.log' for more details" "$LINENO" 5; }
3223 fi
3224 rm -f conftest conftest$ac_cv_exeext
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3226 $as_echo "$ac_cv_exeext" >&6; }
3227
3228 rm -f conftest.$ac_ext
3229 EXEEXT=$ac_cv_exeext
3230 ac_exeext=$EXEEXT
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h.  */
3233 #include <stdio.h>
3234 int
3235 main ()
3236 {
3237 FILE *f = fopen ("conftest.out", "w");
3238  return ferror (f) || fclose (f) != 0;
3239
3240   ;
3241   return 0;
3242 }
3243 _ACEOF
3244 ac_clean_files="$ac_clean_files conftest.out"
3245 # Check that the compiler produces executables we can run.  If not, either
3246 # the compiler is broken, or we cross compile.
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3248 $as_echo_n "checking whether we are cross compiling... " >&6; }
3249 if test "$cross_compiling" != yes; then
3250   { { ac_try="$ac_link"
3251 case "(($ac_try" in
3252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253   *) ac_try_echo=$ac_try;;
3254 esac
3255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256 $as_echo "$ac_try_echo"; } >&5
3257   (eval "$ac_link") 2>&5
3258   ac_status=$?
3259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260   test $ac_status = 0; }
3261   if { ac_try='./conftest$ac_cv_exeext'
3262   { { case "(($ac_try" in
3263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264   *) ac_try_echo=$ac_try;;
3265 esac
3266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267 $as_echo "$ac_try_echo"; } >&5
3268   (eval "$ac_try") 2>&5
3269   ac_status=$?
3270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271   test $ac_status = 0; }; }; then
3272     cross_compiling=no
3273   else
3274     if test "$cross_compiling" = maybe; then
3275         cross_compiling=yes
3276     else
3277         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error $? "cannot run C compiled programs.
3280 If you meant to cross compile, use \`--host'.
3281 See \`config.log' for more details" "$LINENO" 5; }
3282     fi
3283   fi
3284 fi
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3286 $as_echo "$cross_compiling" >&6; }
3287
3288 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3289 ac_clean_files=$ac_clean_files_save
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3291 $as_echo_n "checking for suffix of object files... " >&6; }
3292 if ${ac_cv_objext+:} false; then :
3293   $as_echo_n "(cached) " >&6
3294 else
3295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h.  */
3297
3298 int
3299 main ()
3300 {
3301
3302   ;
3303   return 0;
3304 }
3305 _ACEOF
3306 rm -f conftest.o conftest.obj
3307 if { { ac_try="$ac_compile"
3308 case "(($ac_try" in
3309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310   *) ac_try_echo=$ac_try;;
3311 esac
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314   (eval "$ac_compile") 2>&5
3315   ac_status=$?
3316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317   test $ac_status = 0; }; then :
3318   for ac_file in conftest.o conftest.obj conftest.*; do
3319   test -f "$ac_file" || continue;
3320   case $ac_file in
3321     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3322     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3323        break;;
3324   esac
3325 done
3326 else
3327   $as_echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3329
3330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332 as_fn_error $? "cannot compute suffix of object files: cannot compile
3333 See \`config.log' for more details" "$LINENO" 5; }
3334 fi
3335 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3336 fi
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3338 $as_echo "$ac_cv_objext" >&6; }
3339 OBJEXT=$ac_cv_objext
3340 ac_objext=$OBJEXT
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3342 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3343 if ${ac_cv_c_compiler_gnu+:} false; then :
3344   $as_echo_n "(cached) " >&6
3345 else
3346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h.  */
3348
3349 int
3350 main ()
3351 {
3352 #ifndef __GNUC__
3353        choke me
3354 #endif
3355
3356   ;
3357   return 0;
3358 }
3359 _ACEOF
3360 if ac_fn_c_try_compile "$LINENO"; then :
3361   ac_compiler_gnu=yes
3362 else
3363   ac_compiler_gnu=no
3364 fi
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3367
3368 fi
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3370 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3371 if test $ac_compiler_gnu = yes; then
3372   GCC=yes
3373 else
3374   GCC=
3375 fi
3376 ac_test_CFLAGS=${CFLAGS+set}
3377 ac_save_CFLAGS=$CFLAGS
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3379 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3380 if ${ac_cv_prog_cc_g+:} false; then :
3381   $as_echo_n "(cached) " >&6
3382 else
3383   ac_save_c_werror_flag=$ac_c_werror_flag
3384    ac_c_werror_flag=yes
3385    ac_cv_prog_cc_g=no
3386    CFLAGS="-g"
3387    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h.  */
3389
3390 int
3391 main ()
3392 {
3393
3394   ;
3395   return 0;
3396 }
3397 _ACEOF
3398 if ac_fn_c_try_compile "$LINENO"; then :
3399   ac_cv_prog_cc_g=yes
3400 else
3401   CFLAGS=""
3402       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h.  */
3404
3405 int
3406 main ()
3407 {
3408
3409   ;
3410   return 0;
3411 }
3412 _ACEOF
3413 if ac_fn_c_try_compile "$LINENO"; then :
3414
3415 else
3416   ac_c_werror_flag=$ac_save_c_werror_flag
3417          CFLAGS="-g"
3418          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h.  */
3420
3421 int
3422 main ()
3423 {
3424
3425   ;
3426   return 0;
3427 }
3428 _ACEOF
3429 if ac_fn_c_try_compile "$LINENO"; then :
3430   ac_cv_prog_cc_g=yes
3431 fi
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 fi
3434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3435 fi
3436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437    ac_c_werror_flag=$ac_save_c_werror_flag
3438 fi
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3440 $as_echo "$ac_cv_prog_cc_g" >&6; }
3441 if test "$ac_test_CFLAGS" = set; then
3442   CFLAGS=$ac_save_CFLAGS
3443 elif test $ac_cv_prog_cc_g = yes; then
3444   if test "$GCC" = yes; then
3445     CFLAGS="-g -O2"
3446   else
3447     CFLAGS="-g"
3448   fi
3449 else
3450   if test "$GCC" = yes; then
3451     CFLAGS="-O2"
3452   else
3453     CFLAGS=
3454   fi
3455 fi
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3457 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3458 if ${ac_cv_prog_cc_c89+:} false; then :
3459   $as_echo_n "(cached) " >&6
3460 else
3461   ac_cv_prog_cc_c89=no
3462 ac_save_CC=$CC
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h.  */
3465 #include <stdarg.h>
3466 #include <stdio.h>
3467 struct stat;
3468 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3469 struct buf { int x; };
3470 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3471 static char *e (p, i)
3472      char **p;
3473      int i;
3474 {
3475   return p[i];
3476 }
3477 static char *f (char * (*g) (char **, int), char **p, ...)
3478 {
3479   char *s;
3480   va_list v;
3481   va_start (v,p);
3482   s = g (p, va_arg (v,int));
3483   va_end (v);
3484   return s;
3485 }
3486
3487 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3488    function prototypes and stuff, but not '\xHH' hex character constants.
3489    These don't provoke an error unfortunately, instead are silently treated
3490    as 'x'.  The following induces an error, until -std is added to get
3491    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3492    array size at least.  It's necessary to write '\x00'==0 to get something
3493    that's true only with -std.  */
3494 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3495
3496 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3497    inside strings and character constants.  */
3498 #define FOO(x) 'x'
3499 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3500
3501 int test (int i, double x);
3502 struct s1 {int (*f) (int a);};
3503 struct s2 {int (*f) (double a);};
3504 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3505 int argc;
3506 char **argv;
3507 int
3508 main ()
3509 {
3510 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3511   ;
3512   return 0;
3513 }
3514 _ACEOF
3515 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3516         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3517 do
3518   CC="$ac_save_CC $ac_arg"
3519   if ac_fn_c_try_compile "$LINENO"; then :
3520   ac_cv_prog_cc_c89=$ac_arg
3521 fi
3522 rm -f core conftest.err conftest.$ac_objext
3523   test "x$ac_cv_prog_cc_c89" != "xno" && break
3524 done
3525 rm -f conftest.$ac_ext
3526 CC=$ac_save_CC
3527
3528 fi
3529 # AC_CACHE_VAL
3530 case "x$ac_cv_prog_cc_c89" in
3531   x)
3532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3533 $as_echo "none needed" >&6; } ;;
3534   xno)
3535     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3536 $as_echo "unsupported" >&6; } ;;
3537   *)
3538     CC="$CC $ac_cv_prog_cc_c89"
3539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3540 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3541 esac
3542 if test "x$ac_cv_prog_cc_c89" != xno; then :
3543
3544 fi
3545
3546 ac_ext=c
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551
3552
3553 ac_ext=c
3554 ac_cpp='$CPP $CPPFLAGS'
3555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3559 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3560 # On Suns, sometimes $CPP names a directory.
3561 if test -n "$CPP" && test -d "$CPP"; then
3562   CPP=
3563 fi
3564 if test -z "$CPP"; then
3565   if ${ac_cv_prog_CPP+:} false; then :
3566   $as_echo_n "(cached) " >&6
3567 else
3568       # Double quotes because CPP needs to be expanded
3569     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3570     do
3571       ac_preproc_ok=false
3572 for ac_c_preproc_warn_flag in '' yes
3573 do
3574   # Use a header file that comes with gcc, so configuring glibc
3575   # with a fresh cross-compiler works.
3576   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3577   # <limits.h> exists even on freestanding compilers.
3578   # On the NeXT, cc -E runs the code through the compiler's parser,
3579   # not just through cpp. "Syntax error" is here to catch this case.
3580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h.  */
3582 #ifdef __STDC__
3583 # include <limits.h>
3584 #else
3585 # include <assert.h>
3586 #endif
3587                      Syntax error
3588 _ACEOF
3589 if ac_fn_c_try_cpp "$LINENO"; then :
3590
3591 else
3592   # Broken: fails on valid input.
3593 continue
3594 fi
3595 rm -f conftest.err conftest.i conftest.$ac_ext
3596
3597   # OK, works on sane cases.  Now check whether nonexistent headers
3598   # can be detected and how.
3599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h.  */
3601 #include <ac_nonexistent.h>
3602 _ACEOF
3603 if ac_fn_c_try_cpp "$LINENO"; then :
3604   # Broken: success on invalid input.
3605 continue
3606 else
3607   # Passes both tests.
3608 ac_preproc_ok=:
3609 break
3610 fi
3611 rm -f conftest.err conftest.i conftest.$ac_ext
3612
3613 done
3614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3615 rm -f conftest.i conftest.err conftest.$ac_ext
3616 if $ac_preproc_ok; then :
3617   break
3618 fi
3619
3620     done
3621     ac_cv_prog_CPP=$CPP
3622
3623 fi
3624   CPP=$ac_cv_prog_CPP
3625 else
3626   ac_cv_prog_CPP=$CPP
3627 fi
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3629 $as_echo "$CPP" >&6; }
3630 ac_preproc_ok=false
3631 for ac_c_preproc_warn_flag in '' yes
3632 do
3633   # Use a header file that comes with gcc, so configuring glibc
3634   # with a fresh cross-compiler works.
3635   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3636   # <limits.h> exists even on freestanding compilers.
3637   # On the NeXT, cc -E runs the code through the compiler's parser,
3638   # not just through cpp. "Syntax error" is here to catch this case.
3639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h.  */
3641 #ifdef __STDC__
3642 # include <limits.h>
3643 #else
3644 # include <assert.h>
3645 #endif
3646                      Syntax error
3647 _ACEOF
3648 if ac_fn_c_try_cpp "$LINENO"; then :
3649
3650 else
3651   # Broken: fails on valid input.
3652 continue
3653 fi
3654 rm -f conftest.err conftest.i conftest.$ac_ext
3655
3656   # OK, works on sane cases.  Now check whether nonexistent headers
3657   # can be detected and how.
3658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h.  */
3660 #include <ac_nonexistent.h>
3661 _ACEOF
3662 if ac_fn_c_try_cpp "$LINENO"; then :
3663   # Broken: success on invalid input.
3664 continue
3665 else
3666   # Passes both tests.
3667 ac_preproc_ok=:
3668 break
3669 fi
3670 rm -f conftest.err conftest.i conftest.$ac_ext
3671
3672 done
3673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3674 rm -f conftest.i conftest.err conftest.$ac_ext
3675 if $ac_preproc_ok; then :
3676
3677 else
3678   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3680 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3681 See \`config.log' for more details" "$LINENO" 5; }
3682 fi
3683
3684 ac_ext=c
3685 ac_cpp='$CPP $CPPFLAGS'
3686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3689
3690
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3692 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3693 if ${ac_cv_path_GREP+:} false; then :
3694   $as_echo_n "(cached) " >&6
3695 else
3696   if test -z "$GREP"; then
3697   ac_path_GREP_found=false
3698   # Loop through the user's path and test for each of PROGNAME-LIST
3699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3701 do
3702   IFS=$as_save_IFS
3703   test -z "$as_dir" && as_dir=.
3704     for ac_prog in grep ggrep; do
3705     for ac_exec_ext in '' $ac_executable_extensions; do
3706       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3707       as_fn_executable_p "$ac_path_GREP" || continue
3708 # Check for GNU ac_path_GREP and select it if it is found.
3709   # Check for GNU $ac_path_GREP
3710 case `"$ac_path_GREP" --version 2>&1` in
3711 *GNU*)
3712   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3713 *)
3714   ac_count=0
3715   $as_echo_n 0123456789 >"conftest.in"
3716   while :
3717   do
3718     cat "conftest.in" "conftest.in" >"conftest.tmp"
3719     mv "conftest.tmp" "conftest.in"
3720     cp "conftest.in" "conftest.nl"
3721     $as_echo 'GREP' >> "conftest.nl"
3722     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3723     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3724     as_fn_arith $ac_count + 1 && ac_count=$as_val
3725     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3726       # Best one so far, save it but keep looking for a better one
3727       ac_cv_path_GREP="$ac_path_GREP"
3728       ac_path_GREP_max=$ac_count
3729     fi
3730     # 10*(2^10) chars as input seems more than enough
3731     test $ac_count -gt 10 && break
3732   done
3733   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3734 esac
3735
3736       $ac_path_GREP_found && break 3
3737     done
3738   done
3739   done
3740 IFS=$as_save_IFS
3741   if test -z "$ac_cv_path_GREP"; then
3742     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3743   fi
3744 else
3745   ac_cv_path_GREP=$GREP
3746 fi
3747
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3750 $as_echo "$ac_cv_path_GREP" >&6; }
3751  GREP="$ac_cv_path_GREP"
3752
3753
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3755 $as_echo_n "checking for egrep... " >&6; }
3756 if ${ac_cv_path_EGREP+:} false; then :
3757   $as_echo_n "(cached) " >&6
3758 else
3759   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3760    then ac_cv_path_EGREP="$GREP -E"
3761    else
3762      if test -z "$EGREP"; then
3763   ac_path_EGREP_found=false
3764   # Loop through the user's path and test for each of PROGNAME-LIST
3765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3767 do
3768   IFS=$as_save_IFS
3769   test -z "$as_dir" && as_dir=.
3770     for ac_prog in egrep; do
3771     for ac_exec_ext in '' $ac_executable_extensions; do
3772       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3773       as_fn_executable_p "$ac_path_EGREP" || continue
3774 # Check for GNU ac_path_EGREP and select it if it is found.
3775   # Check for GNU $ac_path_EGREP
3776 case `"$ac_path_EGREP" --version 2>&1` in
3777 *GNU*)
3778   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3779 *)
3780   ac_count=0
3781   $as_echo_n 0123456789 >"conftest.in"
3782   while :
3783   do
3784     cat "conftest.in" "conftest.in" >"conftest.tmp"
3785     mv "conftest.tmp" "conftest.in"
3786     cp "conftest.in" "conftest.nl"
3787     $as_echo 'EGREP' >> "conftest.nl"
3788     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3789     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3790     as_fn_arith $ac_count + 1 && ac_count=$as_val
3791     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3792       # Best one so far, save it but keep looking for a better one
3793       ac_cv_path_EGREP="$ac_path_EGREP"
3794       ac_path_EGREP_max=$ac_count
3795     fi
3796     # 10*(2^10) chars as input seems more than enough
3797     test $ac_count -gt 10 && break
3798   done
3799   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3800 esac
3801
3802       $ac_path_EGREP_found && break 3
3803     done
3804   done
3805   done
3806 IFS=$as_save_IFS
3807   if test -z "$ac_cv_path_EGREP"; then
3808     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3809   fi
3810 else
3811   ac_cv_path_EGREP=$EGREP
3812 fi
3813
3814    fi
3815 fi
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3817 $as_echo "$ac_cv_path_EGREP" >&6; }
3818  EGREP="$ac_cv_path_EGREP"
3819
3820
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3822 $as_echo_n "checking for ANSI C header files... " >&6; }
3823 if ${ac_cv_header_stdc+:} false; then :
3824   $as_echo_n "(cached) " >&6
3825 else
3826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h.  */
3828 #include <stdlib.h>
3829 #include <stdarg.h>
3830 #include <string.h>
3831 #include <float.h>
3832
3833 int
3834 main ()
3835 {
3836
3837   ;
3838   return 0;
3839 }
3840 _ACEOF
3841 if ac_fn_c_try_compile "$LINENO"; then :
3842   ac_cv_header_stdc=yes
3843 else
3844   ac_cv_header_stdc=no
3845 fi
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847
3848 if test $ac_cv_header_stdc = yes; then
3849   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h.  */
3852 #include <string.h>
3853
3854 _ACEOF
3855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3856   $EGREP "memchr" >/dev/null 2>&1; then :
3857
3858 else
3859   ac_cv_header_stdc=no
3860 fi
3861 rm -f conftest*
3862
3863 fi
3864
3865 if test $ac_cv_header_stdc = yes; then
3866   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h.  */
3869 #include <stdlib.h>
3870
3871 _ACEOF
3872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3873   $EGREP "free" >/dev/null 2>&1; then :
3874
3875 else
3876   ac_cv_header_stdc=no
3877 fi
3878 rm -f conftest*
3879
3880 fi
3881
3882 if test $ac_cv_header_stdc = yes; then
3883   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3884   if test "$cross_compiling" = yes; then :
3885   :
3886 else
3887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h.  */
3889 #include <ctype.h>
3890 #include <stdlib.h>
3891 #if ((' ' & 0x0FF) == 0x020)
3892 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3893 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3894 #else
3895 # define ISLOWER(c) \
3896                    (('a' <= (c) && (c) <= 'i') \
3897                      || ('j' <= (c) && (c) <= 'r') \
3898                      || ('s' <= (c) && (c) <= 'z'))
3899 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3900 #endif
3901
3902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3903 int
3904 main ()
3905 {
3906   int i;
3907   for (i = 0; i < 256; i++)
3908     if (XOR (islower (i), ISLOWER (i))
3909         || toupper (i) != TOUPPER (i))
3910       return 2;
3911   return 0;
3912 }
3913 _ACEOF
3914 if ac_fn_c_try_run "$LINENO"; then :
3915
3916 else
3917   ac_cv_header_stdc=no
3918 fi
3919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3920   conftest.$ac_objext conftest.beam conftest.$ac_ext
3921 fi
3922
3923 fi
3924 fi
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3926 $as_echo "$ac_cv_header_stdc" >&6; }
3927 if test $ac_cv_header_stdc = yes; then
3928
3929 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3930
3931 fi
3932
3933 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3934 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3935                   inttypes.h stdint.h unistd.h
3936 do :
3937   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3938 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3939 "
3940 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3941   cat >>confdefs.h <<_ACEOF
3942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3943 _ACEOF
3944
3945 fi
3946
3947 done
3948
3949
3950
3951   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3952 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3953   MINIX=yes
3954 else
3955   MINIX=
3956 fi
3957
3958
3959   if test "$MINIX" = yes; then
3960
3961 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3962
3963
3964 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3965
3966
3967 $as_echo "#define _MINIX 1" >>confdefs.h
3968
3969   fi
3970
3971
3972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3973 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3974 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3975   $as_echo_n "(cached) " >&6
3976 else
3977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h.  */
3979
3980 #         define __EXTENSIONS__ 1
3981           $ac_includes_default
3982 int
3983 main ()
3984 {
3985
3986   ;
3987   return 0;
3988 }
3989 _ACEOF
3990 if ac_fn_c_try_compile "$LINENO"; then :
3991   ac_cv_safe_to_define___extensions__=yes
3992 else
3993   ac_cv_safe_to_define___extensions__=no
3994 fi
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996 fi
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3998 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3999   test $ac_cv_safe_to_define___extensions__ = yes &&
4000     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4001
4002   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4003
4004   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4005
4006   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4007
4008   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4009
4010
4011
4012 if test "$ac_cv_header_minix_config_h" = "yes"; then
4013
4014 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4015
4016 fi
4017
4018 case "$prefix" in
4019         NONE)
4020                 prefix="/usr/local"
4021         ;;
4022 esac
4023
4024 # are we on MinGW?
4025 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4026 else
4027         if echo $target | grep mingw32 >/dev/null; then on_mingw="yes"
4028         else on_mingw="no"; fi
4029 fi
4030
4031 #
4032 # Determine configuration file
4033 # the eval is to evaluate shell expansion twice
4034 if test $on_mingw = "no"; then
4035   ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4036 else
4037   ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4038 fi
4039
4040 # Check whether --with-conf_file was given.
4041 if test "${with_conf_file+set}" = set; then :
4042   withval=$with_conf_file; ub_conf_file="$withval"
4043 fi
4044
4045
4046 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4047
4048
4049 cat >>confdefs.h <<_ACEOF
4050 #define CONFIGFILE "$hdr_config"
4051 _ACEOF
4052
4053 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4054 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4055          X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4056          X"$ub_conf_file" : 'X\(//\)$' \| \
4057          X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4058 $as_echo X"$ub_conf_file" |
4059     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4060             s//\1/
4061             q
4062           }
4063           /^X\(\/\/\)[^/].*/{
4064             s//\1/
4065             q
4066           }
4067           /^X\(\/\/\)$/{
4068             s//\1/
4069             q
4070           }
4071           /^X\(\/\).*/{
4072             s//\1/
4073             q
4074           }
4075           s/.*/./; q'`
4076
4077
4078 # Determine run, chroot directory and pidfile locations
4079
4080 # Check whether --with-run-dir was given.
4081 if test "${with_run_dir+set}" = set; then :
4082   withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4083 else
4084   if test $on_mingw = no; then
4085     UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4086 else
4087     UNBOUND_RUN_DIR=""
4088 fi
4089
4090 fi
4091
4092
4093 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4094
4095
4096 cat >>confdefs.h <<_ACEOF
4097 #define RUN_DIR "$hdr_run"
4098 _ACEOF
4099
4100
4101
4102 # Check whether --with-chroot-dir was given.
4103 if test "${with_chroot_dir+set}" = set; then :
4104   withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4105 else
4106   if test $on_mingw = no; then
4107     UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4108 else
4109     UNBOUND_CHROOT_DIR=""
4110 fi
4111
4112 fi
4113
4114
4115 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4116
4117
4118 cat >>confdefs.h <<_ACEOF
4119 #define CHROOT_DIR "$hdr_chroot"
4120 _ACEOF
4121
4122
4123
4124 # Check whether --with-share-dir was given.
4125 if test "${with_share_dir+set}" = set; then :
4126   withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4127 else
4128   UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4129 fi
4130
4131
4132
4133 cat >>confdefs.h <<_ACEOF
4134 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4135 _ACEOF
4136
4137
4138
4139 # Check whether --with-pidfile was given.
4140 if test "${with_pidfile+set}" = set; then :
4141   withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4142 else
4143   if test $on_mingw = no; then
4144     UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4145 else
4146     UNBOUND_PIDFILE=""
4147 fi
4148
4149 fi
4150
4151
4152 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4153
4154
4155 cat >>confdefs.h <<_ACEOF
4156 #define PIDFILE "$hdr_pid"
4157 _ACEOF
4158
4159
4160
4161 # Check whether --with-rootkey-file was given.
4162 if test "${with_rootkey_file+set}" = set; then :
4163   withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4164 else
4165   if test $on_mingw = no; then
4166     UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4167 else
4168     UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4169 fi
4170
4171 fi
4172
4173
4174 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4175
4176
4177 cat >>confdefs.h <<_ACEOF
4178 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4179 _ACEOF
4180
4181
4182
4183 # Check whether --with-rootcert-file was given.
4184 if test "${with_rootcert_file+set}" = set; then :
4185   withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4186 else
4187   if test $on_mingw = no; then
4188     UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4189 else
4190     UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4191 fi
4192
4193 fi
4194
4195
4196 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4197
4198
4199 cat >>confdefs.h <<_ACEOF
4200 #define ROOT_CERT_FILE "$hdr_rpem"
4201 _ACEOF
4202
4203
4204
4205 # Check whether --with-username was given.
4206 if test "${with_username+set}" = set; then :
4207   withval=$with_username; UNBOUND_USERNAME="$withval"
4208 else
4209   UNBOUND_USERNAME="unbound"
4210 fi
4211
4212
4213
4214 cat >>confdefs.h <<_ACEOF
4215 #define UB_USERNAME "$UNBOUND_USERNAME"
4216 _ACEOF
4217
4218
4219
4220 $as_echo "#define WINVER 0x0502" >>confdefs.h
4221
4222 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/' `
4223
4224
4225 cat >>confdefs.h <<_ACEOF
4226 #define RSRC_PACKAGE_VERSION $wnvs
4227 _ACEOF
4228
4229
4230 # Checks for typedefs, structures, and compiler characteristics.
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4232 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4233 if ${ac_cv_c_const+:} false; then :
4234   $as_echo_n "(cached) " >&6
4235 else
4236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h.  */
4238
4239 int
4240 main ()
4241 {
4242
4243 #ifndef __cplusplus
4244   /* Ultrix mips cc rejects this sort of thing.  */
4245   typedef int charset[2];
4246   const charset cs = { 0, 0 };
4247   /* SunOS 4.1.1 cc rejects this.  */
4248   char const *const *pcpcc;
4249   char **ppc;
4250   /* NEC SVR4.0.2 mips cc rejects this.  */
4251   struct point {int x, y;};
4252   static struct point const zero = {0,0};
4253   /* AIX XL C 1.02.0.0 rejects this.
4254      It does not let you subtract one const X* pointer from another in
4255      an arm of an if-expression whose if-part is not a constant
4256      expression */
4257   const char *g = "string";
4258   pcpcc = &g + (g ? g-g : 0);
4259   /* HPUX 7.0 cc rejects these. */
4260   ++pcpcc;
4261   ppc = (char**) pcpcc;
4262   pcpcc = (char const *const *) ppc;
4263   { /* SCO 3.2v4 cc rejects this sort of thing.  */
4264     char tx;
4265     char *t = &tx;
4266     char const *s = 0 ? (char *) 0 : (char const *) 0;
4267
4268     *t++ = 0;
4269     if (s) return 0;
4270   }
4271   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4272     int x[] = {25, 17};
4273     const int *foo = &x[0];
4274     ++foo;
4275   }
4276   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4277     typedef const int *iptr;
4278     iptr p = 0;
4279     ++p;
4280   }
4281   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4282        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4283     struct s { int j; const int *ap[3]; } bx;
4284     struct s *b = &bx; b->j = 5;
4285   }
4286   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4287     const int foo = 10;
4288     if (!foo) return 0;
4289   }
4290   return !cs[0] && !zero.x;
4291 #endif
4292
4293   ;
4294   return 0;
4295 }
4296 _ACEOF
4297 if ac_fn_c_try_compile "$LINENO"; then :
4298   ac_cv_c_const=yes
4299 else
4300   ac_cv_c_const=no
4301 fi
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 fi
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4305 $as_echo "$ac_cv_c_const" >&6; }
4306 if test $ac_cv_c_const = no; then
4307
4308 $as_echo "#define const /**/" >>confdefs.h
4309
4310 fi
4311
4312 ac_ext=c
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317
4318 # allow user to override the -g -O2 flags.
4319 if test "x$CFLAGS" = "x" ; then
4320
4321
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4323 $as_echo_n "checking whether $CC supports -g... " >&6; }
4324 cache=`echo g | sed 'y%.=/+-%___p_%'`
4325 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4326   $as_echo_n "(cached) " >&6
4327 else
4328
4329 echo 'void f(void){}' >conftest.c
4330 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4331 eval "cv_prog_cc_flag_$cache=yes"
4332 else
4333 eval "cv_prog_cc_flag_$cache=no"
4334 fi
4335 rm -f conftest conftest.o conftest.c
4336
4337 fi
4338
4339 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4341 $as_echo "yes" >&6; }
4342 :
4343 CFLAGS="$CFLAGS -g"
4344 else
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4346 $as_echo "no" >&6; }
4347 :
4348
4349 fi
4350
4351
4352
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4354 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4355 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4356 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4357   $as_echo_n "(cached) " >&6
4358 else
4359
4360 echo 'void f(void){}' >conftest.c
4361 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4362 eval "cv_prog_cc_flag_$cache=yes"
4363 else
4364 eval "cv_prog_cc_flag_$cache=no"
4365 fi
4366 rm -f conftest conftest.o conftest.c
4367
4368 fi
4369
4370 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4372 $as_echo "yes" >&6; }
4373 :
4374 CFLAGS="$CFLAGS -O2"
4375 else
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 $as_echo "no" >&6; }
4378 :
4379
4380 fi
4381
4382 fi
4383 ac_ext=c
4384 ac_cpp='$CPP $CPPFLAGS'
4385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388 if test -n "$ac_tool_prefix"; then
4389   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4390 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if ${ac_cv_prog_CC+:} false; then :
4394   $as_echo_n "(cached) " >&6
4395 else
4396   if test -n "$CC"; then
4397   ac_cv_prog_CC="$CC" # Let the user override the test.
4398 else
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
4402   IFS=$as_save_IFS
4403   test -z "$as_dir" && as_dir=.
4404     for ac_exec_ext in '' $ac_executable_extensions; do
4405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4406     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4408     break 2
4409   fi
4410 done
4411   done
4412 IFS=$as_save_IFS
4413
4414 fi
4415 fi
4416 CC=$ac_cv_prog_CC
4417 if test -n "$CC"; then
4418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4419 $as_echo "$CC" >&6; }
4420 else
4421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4423 fi
4424
4425
4426 fi
4427 if test -z "$ac_cv_prog_CC"; then
4428   ac_ct_CC=$CC
4429   # Extract the first word of "gcc", so it can be a program name with args.
4430 set dummy gcc; ac_word=$2
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432 $as_echo_n "checking for $ac_word... " >&6; }
4433 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4434   $as_echo_n "(cached) " >&6
4435 else
4436   if test -n "$ac_ct_CC"; then
4437   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4438 else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4441 do
4442   IFS=$as_save_IFS
4443   test -z "$as_dir" && as_dir=.
4444     for ac_exec_ext in '' $ac_executable_extensions; do
4445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4446     ac_cv_prog_ac_ct_CC="gcc"
4447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448     break 2
4449   fi
4450 done
4451   done
4452 IFS=$as_save_IFS
4453
4454 fi
4455 fi
4456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4457 if test -n "$ac_ct_CC"; then
4458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4459 $as_echo "$ac_ct_CC" >&6; }
4460 else
4461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462 $as_echo "no" >&6; }
4463 fi
4464
4465   if test "x$ac_ct_CC" = x; then
4466     CC=""
4467   else
4468     case $cross_compiling:$ac_tool_warned in
4469 yes:)
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4472 ac_tool_warned=yes ;;
4473 esac
4474     CC=$ac_ct_CC
4475   fi
4476 else
4477   CC="$ac_cv_prog_CC"
4478 fi
4479
4480 if test -z "$CC"; then
4481           if test -n "$ac_tool_prefix"; then
4482     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4483 set dummy ${ac_tool_prefix}cc; ac_word=$2
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4485 $as_echo_n "checking for $ac_word... " >&6; }
4486 if ${ac_cv_prog_CC+:} false; then :
4487   $as_echo_n "(cached) " >&6
4488 else
4489   if test -n "$CC"; then
4490   ac_cv_prog_CC="$CC" # Let the user override the test.
4491 else
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH
4494 do
4495   IFS=$as_save_IFS
4496   test -z "$as_dir" && as_dir=.
4497     for ac_exec_ext in '' $ac_executable_extensions; do
4498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4499     ac_cv_prog_CC="${ac_tool_prefix}cc"
4500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4501     break 2
4502   fi
4503 done
4504   done
4505 IFS=$as_save_IFS
4506
4507 fi
4508 fi
4509 CC=$ac_cv_prog_CC
4510 if test -n "$CC"; then
4511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4512 $as_echo "$CC" >&6; }
4513 else
4514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515 $as_echo "no" >&6; }
4516 fi
4517
4518
4519   fi
4520 fi
4521 if test -z "$CC"; then
4522   # Extract the first word of "cc", so it can be a program name with args.
4523 set dummy cc; ac_word=$2
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525 $as_echo_n "checking for $ac_word... " >&6; }
4526 if ${ac_cv_prog_CC+:} false; then :
4527   $as_echo_n "(cached) " >&6
4528 else
4529   if test -n "$CC"; then
4530   ac_cv_prog_CC="$CC" # Let the user override the test.
4531 else
4532   ac_prog_rejected=no
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4535 do
4536   IFS=$as_save_IFS
4537   test -z "$as_dir" && as_dir=.
4538     for ac_exec_ext in '' $ac_executable_extensions; do
4539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4541        ac_prog_rejected=yes
4542        continue
4543      fi
4544     ac_cv_prog_CC="cc"
4545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4546     break 2
4547   fi
4548 done
4549   done
4550 IFS=$as_save_IFS
4551
4552 if test $ac_prog_rejected = yes; then
4553   # We found a bogon in the path, so make sure we never use it.
4554   set dummy $ac_cv_prog_CC
4555   shift
4556   if test $# != 0; then
4557     # We chose a different compiler from the bogus one.
4558     # However, it has the same basename, so the bogon will be chosen
4559     # first if we set CC to just the basename; use the full file name.
4560     shift
4561     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4562   fi
4563 fi
4564 fi
4565 fi
4566 CC=$ac_cv_prog_CC
4567 if test -n "$CC"; then
4568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4569 $as_echo "$CC" >&6; }
4570 else
4571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4573 fi
4574
4575
4576 fi
4577 if test -z "$CC"; then
4578   if test -n "$ac_tool_prefix"; then
4579   for ac_prog in cl.exe
4580   do
4581     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584 $as_echo_n "checking for $ac_word... " >&6; }
4585 if ${ac_cv_prog_CC+:} false; then :
4586   $as_echo_n "(cached) " >&6
4587 else
4588   if test -n "$CC"; then
4589   ac_cv_prog_CC="$CC" # Let the user override the test.
4590 else
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4593 do
4594   IFS=$as_save_IFS
4595   test -z "$as_dir" && as_dir=.
4596     for ac_exec_ext in '' $ac_executable_extensions; do
4597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4598     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4600     break 2
4601   fi
4602 done
4603   done
4604 IFS=$as_save_IFS
4605
4606 fi
4607 fi
4608 CC=$ac_cv_prog_CC
4609 if test -n "$CC"; then
4610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4611 $as_echo "$CC" >&6; }
4612 else
4613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614 $as_echo "no" >&6; }
4615 fi
4616
4617
4618     test -n "$CC" && break
4619   done
4620 fi
4621 if test -z "$CC"; then
4622   ac_ct_CC=$CC
4623   for ac_prog in cl.exe
4624 do
4625   # Extract the first word of "$ac_prog", so it can be a program name with args.
4626 set dummy $ac_prog; ac_word=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4630   $as_echo_n "(cached) " >&6
4631 else
4632   if test -n "$ac_ct_CC"; then
4633   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4634 else
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638   IFS=$as_save_IFS
4639   test -z "$as_dir" && as_dir=.
4640     for ac_exec_ext in '' $ac_executable_extensions; do
4641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642     ac_cv_prog_ac_ct_CC="$ac_prog"
4643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644     break 2
4645   fi
4646 done
4647   done
4648 IFS=$as_save_IFS
4649
4650 fi
4651 fi
4652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4653 if test -n "$ac_ct_CC"; then
4654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4655 $as_echo "$ac_ct_CC" >&6; }
4656 else
4657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4659 fi
4660
4661
4662   test -n "$ac_ct_CC" && break
4663 done
4664
4665   if test "x$ac_ct_CC" = x; then
4666     CC=""
4667   else
4668     case $cross_compiling:$ac_tool_warned in
4669 yes:)
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4672 ac_tool_warned=yes ;;
4673 esac
4674     CC=$ac_ct_CC
4675   fi
4676 fi
4677
4678 fi
4679
4680
4681 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4683 as_fn_error $? "no acceptable C compiler found in \$PATH
4684 See \`config.log' for more details" "$LINENO" 5; }
4685
4686 # Provide some information about the compiler.
4687 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4688 set X $ac_compile
4689 ac_compiler=$2
4690 for ac_option in --version -v -V -qversion; do
4691   { { ac_try="$ac_compiler $ac_option >&5"
4692 case "(($ac_try" in
4693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694   *) ac_try_echo=$ac_try;;
4695 esac
4696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4697 $as_echo "$ac_try_echo"; } >&5
4698   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4699   ac_status=$?
4700   if test -s conftest.err; then
4701     sed '10a\
4702 ... rest of stderr output deleted ...
4703          10q' conftest.err >conftest.er1
4704     cat conftest.er1 >&5
4705   fi
4706   rm -f conftest.er1 conftest.err
4707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4708   test $ac_status = 0; }
4709 done
4710
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4712 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4713 if ${ac_cv_c_compiler_gnu+:} false; then :
4714   $as_echo_n "(cached) " >&6
4715 else
4716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h.  */
4718
4719 int
4720 main ()
4721 {
4722 #ifndef __GNUC__
4723        choke me
4724 #endif
4725
4726   ;
4727   return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_c_try_compile "$LINENO"; then :
4731   ac_compiler_gnu=yes
4732 else
4733   ac_compiler_gnu=no
4734 fi
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4737
4738 fi
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4740 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4741 if test $ac_compiler_gnu = yes; then
4742   GCC=yes
4743 else
4744   GCC=
4745 fi
4746 ac_test_CFLAGS=${CFLAGS+set}
4747 ac_save_CFLAGS=$CFLAGS
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4749 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4750 if ${ac_cv_prog_cc_g+:} false; then :
4751   $as_echo_n "(cached) " >&6
4752 else
4753   ac_save_c_werror_flag=$ac_c_werror_flag
4754    ac_c_werror_flag=yes
4755    ac_cv_prog_cc_g=no
4756    CFLAGS="-g"
4757    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h.  */
4759
4760 int
4761 main ()
4762 {
4763
4764   ;
4765   return 0;
4766 }
4767 _ACEOF
4768 if ac_fn_c_try_compile "$LINENO"; then :
4769   ac_cv_prog_cc_g=yes
4770 else
4771   CFLAGS=""
4772       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h.  */
4774
4775 int
4776 main ()
4777 {
4778
4779   ;
4780   return 0;
4781 }
4782 _ACEOF
4783 if ac_fn_c_try_compile "$LINENO"; then :
4784
4785 else
4786   ac_c_werror_flag=$ac_save_c_werror_flag
4787          CFLAGS="-g"
4788          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h.  */
4790
4791 int
4792 main ()
4793 {
4794
4795   ;
4796   return 0;
4797 }
4798 _ACEOF
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800   ac_cv_prog_cc_g=yes
4801 fi
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 fi
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807    ac_c_werror_flag=$ac_save_c_werror_flag
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4810 $as_echo "$ac_cv_prog_cc_g" >&6; }
4811 if test "$ac_test_CFLAGS" = set; then
4812   CFLAGS=$ac_save_CFLAGS
4813 elif test $ac_cv_prog_cc_g = yes; then
4814   if test "$GCC" = yes; then
4815     CFLAGS="-g -O2"
4816   else
4817     CFLAGS="-g"
4818   fi
4819 else
4820   if test "$GCC" = yes; then
4821     CFLAGS="-O2"
4822   else
4823     CFLAGS=
4824   fi
4825 fi
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4827 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4828 if ${ac_cv_prog_cc_c89+:} false; then :
4829   $as_echo_n "(cached) " >&6
4830 else
4831   ac_cv_prog_cc_c89=no
4832 ac_save_CC=$CC
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h.  */
4835 #include <stdarg.h>
4836 #include <stdio.h>
4837 struct stat;
4838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4839 struct buf { int x; };
4840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4841 static char *e (p, i)
4842      char **p;
4843      int i;
4844 {
4845   return p[i];
4846 }
4847 static char *f (char * (*g) (char **, int), char **p, ...)
4848 {
4849   char *s;
4850   va_list v;
4851   va_start (v,p);
4852   s = g (p, va_arg (v,int));
4853   va_end (v);
4854   return s;
4855 }
4856
4857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4858    function prototypes and stuff, but not '\xHH' hex character constants.
4859    These don't provoke an error unfortunately, instead are silently treated
4860    as 'x'.  The following induces an error, until -std is added to get
4861    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4862    array size at least.  It's necessary to write '\x00'==0 to get something
4863    that's true only with -std.  */
4864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4865
4866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4867    inside strings and character constants.  */
4868 #define FOO(x) 'x'
4869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4870
4871 int test (int i, double x);
4872 struct s1 {int (*f) (int a);};
4873 struct s2 {int (*f) (double a);};
4874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4875 int argc;
4876 char **argv;
4877 int
4878 main ()
4879 {
4880 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4881   ;
4882   return 0;
4883 }
4884 _ACEOF
4885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4886         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4887 do
4888   CC="$ac_save_CC $ac_arg"
4889   if ac_fn_c_try_compile "$LINENO"; then :
4890   ac_cv_prog_cc_c89=$ac_arg
4891 fi
4892 rm -f core conftest.err conftest.$ac_objext
4893   test "x$ac_cv_prog_cc_c89" != "xno" && break
4894 done
4895 rm -f conftest.$ac_ext
4896 CC=$ac_save_CC
4897
4898 fi
4899 # AC_CACHE_VAL
4900 case "x$ac_cv_prog_cc_c89" in
4901   x)
4902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4903 $as_echo "none needed" >&6; } ;;
4904   xno)
4905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4906 $as_echo "unsupported" >&6; } ;;
4907   *)
4908     CC="$CC $ac_cv_prog_cc_c89"
4909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4911 esac
4912 if test "x$ac_cv_prog_cc_c89" != xno; then :
4913
4914 fi
4915
4916 ac_ext=c
4917 ac_cpp='$CPP $CPPFLAGS'
4918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4921
4922
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4924 $as_echo_n "checking $CC dependency flag... " >&6; }
4925 echo 'void f(){}' >conftest.c
4926 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4927         DEPFLAG="-MM"
4928 else
4929   if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4930         DEPFLAG="-xM1"
4931   else
4932         DEPFLAG="-MM"  # dunno do something
4933   fi
4934 fi
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4936 $as_echo "$DEPFLAG" >&6; }
4937 rm -f conftest.c
4938
4939
4940
4941
4942
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4944 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
4945 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4946 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4947   $as_echo_n "(cached) " >&6
4948 else
4949
4950 echo 'void f(void){}' >conftest.c
4951 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4952 eval "cv_prog_cc_flag_$cache=yes"
4953 else
4954 eval "cv_prog_cc_flag_$cache=no"
4955 fi
4956 rm -f conftest conftest.o conftest.c
4957
4958 fi
4959
4960 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4962 $as_echo "yes" >&6; }
4963 :
4964 ERRFLAG="-Werror"
4965 else
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4968 :
4969 ERRFLAG="-errwarn"
4970 fi
4971
4972
4973
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4975 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
4976 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4977 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4978   $as_echo_n "(cached) " >&6
4979 else
4980
4981 echo 'void f(void){}' >conftest.c
4982 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4983 eval "cv_prog_cc_flag_$cache=yes"
4984 else
4985 eval "cv_prog_cc_flag_$cache=no"
4986 fi
4987 rm -f conftest conftest.o conftest.c
4988
4989 fi
4990
4991 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4993 $as_echo "yes" >&6; }
4994 :
4995 ERRFLAG="$ERRFLAG -Wall"
4996 else
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
4999 :
5000 ERRFLAG="$ERRFLAG -errfmt"
5001 fi
5002
5003
5004
5005
5006
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5008 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5009 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5010 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5011   $as_echo_n "(cached) " >&6
5012 else
5013
5014 echo 'void f(void){}' >conftest.c
5015 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5016 eval "cv_prog_cc_flag_$cache=yes"
5017 else
5018 eval "cv_prog_cc_flag_$cache=no"
5019 fi
5020 rm -f conftest conftest.o conftest.c
5021
5022 fi
5023
5024 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5026 $as_echo "yes" >&6; }
5027 :
5028 C99FLAG="-std=c99"
5029 else
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5032 :
5033
5034 fi
5035
5036
5037
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5039 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
5040 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5041 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5042   $as_echo_n "(cached) " >&6
5043 else
5044
5045 echo 'void f(void){}' >conftest.c
5046 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5047 eval "cv_prog_cc_flag_$cache=yes"
5048 else
5049 eval "cv_prog_cc_flag_$cache=no"
5050 fi
5051 rm -f conftest conftest.o conftest.c
5052
5053 fi
5054
5055 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5057 $as_echo "yes" >&6; }
5058 :
5059 C99FLAG="-xc99"
5060 else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5063 :
5064
5065 fi
5066
5067
5068 for ac_header in getopt.h time.h
5069 do :
5070   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5071 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5072 "
5073 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5074   cat >>confdefs.h <<_ACEOF
5075 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5076 _ACEOF
5077
5078 fi
5079
5080 done
5081
5082
5083
5084
5085
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
5087 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5088 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
5089 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5090   $as_echo_n "(cached) " >&6
5091 else
5092
5093 echo '
5094 #include "confdefs.h"
5095 #include <stdlib.h>
5096 #include <ctype.h>
5097 #include <sys/time.h>
5098 #ifdef HAVE_TIME_H
5099 #include <time.h>
5100 #endif
5101 #include <unistd.h>
5102 #include <netdb.h>
5103 #ifdef HAVE_GETOPT_H
5104 #include <getopt.h>
5105 #endif
5106
5107 int test() {
5108         int a;
5109         char **opts = NULL;
5110         struct timeval tv;
5111         char *t;
5112         time_t time = 0;
5113         char *buf = NULL;
5114         const char* str = NULL;
5115         struct msghdr msg;
5116         msg.msg_control = 0;
5117         t = ctime_r(&time, buf);
5118         tv.tv_usec = 10;
5119         srandom(32);
5120         a = getopt(2, opts, "a");
5121         a = isascii(32);
5122         str = gai_strerror(0);
5123         if(str && t && tv.tv_usec && msg.msg_control)
5124                 a = 0;
5125         return a;
5126 }
5127 ' > conftest.c
5128 echo 'void f(){}' >>conftest.c
5129 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5130 eval "cv_prog_cc_flag_needed_$cache=no"
5131 else
5132
5133 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_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
5134 eval "cv_prog_cc_flag_needed_$cache=yes"
5135 else
5136 eval "cv_prog_cc_flag_needed_$cache=fail"
5137 #echo 'Test with flag fails too!'
5138 #cat conftest.c
5139 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5140 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5141 #exit 1
5142 fi
5143
5144 fi
5145 rm -f conftest conftest.c conftest.o
5146
5147 fi
5148
5149 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5151 $as_echo "yes" >&6; }
5152 :
5153 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
5154 else
5155 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5158 #echo 'Test with flag is no!'
5159 #cat conftest.c
5160 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5161 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5162 #exit 1
5163 :
5164
5165 else
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5167 $as_echo "failed" >&6; }
5168 :
5169
5170 fi
5171 fi
5172
5173
5174
5175
5176
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
5178 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5179 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5180 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5181   $as_echo_n "(cached) " >&6
5182 else
5183
5184 echo '
5185 #include "confdefs.h"
5186 #include <stdlib.h>
5187 #include <ctype.h>
5188 #include <sys/time.h>
5189 #ifdef HAVE_TIME_H
5190 #include <time.h>
5191 #endif
5192 #include <unistd.h>
5193 #include <netdb.h>
5194 #ifdef HAVE_GETOPT_H
5195 #include <getopt.h>
5196 #endif
5197
5198 int test() {
5199         int a;
5200         char **opts = NULL;
5201         struct timeval tv;
5202         char *t;
5203         time_t time = 0;
5204         char *buf = NULL;
5205         const char* str = NULL;
5206         struct msghdr msg;
5207         msg.msg_control = 0;
5208         t = ctime_r(&time, buf);
5209         tv.tv_usec = 10;
5210         srandom(32);
5211         a = getopt(2, opts, "a");
5212         a = isascii(32);
5213         str = gai_strerror(0);
5214         if(str && t && tv.tv_usec && msg.msg_control)
5215                 a = 0;
5216         return a;
5217 }
5218 ' > conftest.c
5219 echo 'void f(){}' >>conftest.c
5220 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5221 eval "cv_prog_cc_flag_needed_$cache=no"
5222 else
5223
5224 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5225 eval "cv_prog_cc_flag_needed_$cache=yes"
5226 else
5227 eval "cv_prog_cc_flag_needed_$cache=fail"
5228 #echo 'Test with flag fails too!'
5229 #cat conftest.c
5230 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5231 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5232 #exit 1
5233 fi
5234
5235 fi
5236 rm -f conftest conftest.c conftest.o
5237
5238 fi
5239
5240 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5242 $as_echo "yes" >&6; }
5243 :
5244 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5245 else
5246 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5249 #echo 'Test with flag is no!'
5250 #cat conftest.c
5251 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5252 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5253 #exit 1
5254 :
5255
5256 else
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5258 $as_echo "failed" >&6; }
5259 :
5260
5261 fi
5262 fi
5263
5264
5265
5266
5267
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5269 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5270 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5271 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5272   $as_echo_n "(cached) " >&6
5273 else
5274
5275 echo '
5276 #include <stdbool.h>
5277 #include <ctype.h>
5278 int test() {
5279         int a = 0;
5280         return a;
5281 }
5282 ' > conftest.c
5283 echo 'void f(){}' >>conftest.c
5284 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5285 eval "cv_prog_cc_flag_needed_$cache=no"
5286 else
5287
5288 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5289 eval "cv_prog_cc_flag_needed_$cache=yes"
5290 else
5291 eval "cv_prog_cc_flag_needed_$cache=fail"
5292 #echo 'Test with flag fails too!'
5293 #cat conftest.c
5294 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5295 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5296 #exit 1
5297 fi
5298
5299 fi
5300 rm -f conftest conftest.c conftest.o
5301
5302 fi
5303
5304 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5306 $as_echo "yes" >&6; }
5307 :
5308 CFLAGS="$CFLAGS $C99FLAG"
5309 else
5310 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5313 #echo 'Test with flag is no!'
5314 #cat conftest.c
5315 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5316 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5317 #exit 1
5318 :
5319
5320 else
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5322 $as_echo "failed" >&6; }
5323 :
5324
5325 fi
5326 fi
5327
5328
5329
5330
5331
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
5333 $as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
5334 cache=_D_BSD_SOURCE
5335 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5336   $as_echo_n "(cached) " >&6
5337 else
5338
5339 echo '
5340 #include <ctype.h>
5341
5342 int test() {
5343         int a;
5344         a = isascii(32);
5345         return a;
5346 }
5347 ' > conftest.c
5348 echo 'void f(){}' >>conftest.c
5349 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5350 eval "cv_prog_cc_flag_needed_$cache=no"
5351 else
5352
5353 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5354 eval "cv_prog_cc_flag_needed_$cache=yes"
5355 else
5356 eval "cv_prog_cc_flag_needed_$cache=fail"
5357 #echo 'Test with flag fails too!'
5358 #cat conftest.c
5359 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5360 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5361 #exit 1
5362 fi
5363
5364 fi
5365 rm -f conftest conftest.c conftest.o
5366
5367 fi
5368
5369 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5371 $as_echo "yes" >&6; }
5372 :
5373 CFLAGS="$CFLAGS -D_BSD_SOURCE"
5374 else
5375 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5378 #echo 'Test with flag is no!'
5379 #cat conftest.c
5380 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5381 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5382 #exit 1
5383 :
5384
5385 else
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5387 $as_echo "failed" >&6; }
5388 :
5389
5390 fi
5391 fi
5392
5393
5394
5395
5396
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5398 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5399 cache=_D_GNU_SOURCE
5400 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5401   $as_echo_n "(cached) " >&6
5402 else
5403
5404 echo '
5405 #include <netinet/in.h>
5406
5407 int test() {
5408         struct in6_pktinfo inf;
5409         int a = (int)sizeof(inf);
5410         return a;
5411 }
5412 ' > conftest.c
5413 echo 'void f(){}' >>conftest.c
5414 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5415 eval "cv_prog_cc_flag_needed_$cache=no"
5416 else
5417
5418 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5419 eval "cv_prog_cc_flag_needed_$cache=yes"
5420 else
5421 eval "cv_prog_cc_flag_needed_$cache=fail"
5422 #echo 'Test with flag fails too!'
5423 #cat conftest.c
5424 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5425 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5426 #exit 1
5427 fi
5428
5429 fi
5430 rm -f conftest conftest.c conftest.o
5431
5432 fi
5433
5434 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5436 $as_echo "yes" >&6; }
5437 :
5438 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5439 else
5440 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }
5443 #echo 'Test with flag is no!'
5444 #cat conftest.c
5445 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5446 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5447 #exit 1
5448 :
5449
5450 else
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5452 $as_echo "failed" >&6; }
5453 :
5454
5455 fi
5456 fi
5457
5458
5459 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5460 # is not available at all. -D_FRSRESGID is to make this check unique.
5461 # otherwise we would get the previous cached result.
5462
5463
5464
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5466 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5467 cache=_D_GNU_SOURCE__D_FRSRESGID
5468 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5469   $as_echo_n "(cached) " >&6
5470 else
5471
5472 echo '
5473 #include <unistd.h>
5474
5475 int test() {
5476         int a = setresgid(0,0,0);
5477         a = setresuid(0,0,0);
5478         return a;
5479 }
5480 ' > conftest.c
5481 echo 'void f(){}' >>conftest.c
5482 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5483 eval "cv_prog_cc_flag_needed_$cache=no"
5484 else
5485
5486 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5487 eval "cv_prog_cc_flag_needed_$cache=yes"
5488 else
5489 eval "cv_prog_cc_flag_needed_$cache=fail"
5490 #echo 'Test with flag fails too!'
5491 #cat conftest.c
5492 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5493 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5494 #exit 1
5495 fi
5496
5497 fi
5498 rm -f conftest conftest.c conftest.o
5499
5500 fi
5501
5502 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5504 $as_echo "yes" >&6; }
5505 :
5506 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5507 else
5508 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5511 #echo 'Test with flag is no!'
5512 #cat conftest.c
5513 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5514 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5515 #exit 1
5516 :
5517
5518 else
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5520 $as_echo "failed" >&6; }
5521 :
5522
5523 fi
5524 fi
5525
5526
5527
5528
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5531 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5532 cache=_D_POSIX_C_SOURCE_200112
5533 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5534   $as_echo_n "(cached) " >&6
5535 else
5536
5537 echo '
5538 #include "confdefs.h"
5539 #ifdef HAVE_TIME_H
5540 #include <time.h>
5541 #endif
5542 #include <netdb.h>
5543
5544 int test() {
5545         int a = 0;
5546         char *t;
5547         time_t time = 0;
5548         char *buf = NULL;
5549         const char* str = NULL;
5550         t = ctime_r(&time, buf);
5551         str = gai_strerror(0);
5552         if(t && str)
5553                 a = 0;
5554         return a;
5555 }
5556 ' > conftest.c
5557 echo 'void f(){}' >>conftest.c
5558 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5559 eval "cv_prog_cc_flag_needed_$cache=no"
5560 else
5561
5562 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5563 eval "cv_prog_cc_flag_needed_$cache=yes"
5564 else
5565 eval "cv_prog_cc_flag_needed_$cache=fail"
5566 #echo 'Test with flag fails too!'
5567 #cat conftest.c
5568 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5569 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5570 #exit 1
5571 fi
5572
5573 fi
5574 rm -f conftest conftest.c conftest.o
5575
5576 fi
5577
5578 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5580 $as_echo "yes" >&6; }
5581 :
5582 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5583 else
5584 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5587 #echo 'Test with flag is no!'
5588 #cat conftest.c
5589 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5590 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5591 #exit 1
5592 :
5593
5594 else
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5596 $as_echo "failed" >&6; }
5597 :
5598
5599 fi
5600 fi
5601
5602
5603
5604
5605
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5607 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5608 cache=_D__EXTENSIONS__
5609 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5610   $as_echo_n "(cached) " >&6
5611 else
5612
5613 echo '
5614 #include "confdefs.h"
5615 #include <stdlib.h>
5616 #include <ctype.h>
5617 #include <sys/time.h>
5618 #ifdef HAVE_TIME_H
5619 #include <time.h>
5620 #endif
5621 #include <unistd.h>
5622 #ifdef HAVE_GETOPT_H
5623 #include <getopt.h>
5624 #endif
5625
5626 int test() {
5627         int a;
5628         char **opts = NULL;
5629         struct timeval tv;
5630         tv.tv_usec = 10;
5631         srandom(32);
5632         a = getopt(2, opts, "a");
5633         a = isascii(32);
5634         if(tv.tv_usec)
5635                 a = 0;
5636         return a;
5637 }
5638 ' > conftest.c
5639 echo 'void f(){}' >>conftest.c
5640 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5641 eval "cv_prog_cc_flag_needed_$cache=no"
5642 else
5643
5644 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5645 eval "cv_prog_cc_flag_needed_$cache=yes"
5646 else
5647 eval "cv_prog_cc_flag_needed_$cache=fail"
5648 #echo 'Test with flag fails too!'
5649 #cat conftest.c
5650 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5651 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5652 #exit 1
5653 fi
5654
5655 fi
5656 rm -f conftest conftest.c conftest.o
5657
5658 fi
5659
5660 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5662 $as_echo "yes" >&6; }
5663 :
5664 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5665 else
5666 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5669 #echo 'Test with flag is no!'
5670 #cat conftest.c
5671 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5672 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5673 #exit 1
5674 :
5675
5676 else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5678 $as_echo "failed" >&6; }
5679 :
5680
5681 fi
5682 fi
5683
5684
5685
5686
5687 # debug mode flags warnings
5688 # Check whether --enable-checking was given.
5689 if test "${enable_checking+set}" = set; then :
5690   enableval=$enable_checking;
5691 fi
5692
5693 # Check whether --enable-debug was given.
5694 if test "${enable_debug+set}" = set; then :
5695   enableval=$enable_debug;
5696 fi
5697
5698 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5699 else debug_enabled="$enable_checking"; fi
5700
5701 case "$debug_enabled" in
5702         yes)
5703
5704
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5706 $as_echo_n "checking whether $CC supports -W... " >&6; }
5707 cache=`echo W | sed 'y%.=/+-%___p_%'`
5708 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5709   $as_echo_n "(cached) " >&6
5710 else
5711
5712 echo 'void f(void){}' >conftest.c
5713 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5714 eval "cv_prog_cc_flag_$cache=yes"
5715 else
5716 eval "cv_prog_cc_flag_$cache=no"
5717 fi
5718 rm -f conftest conftest.o conftest.c
5719
5720 fi
5721
5722 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5724 $as_echo "yes" >&6; }
5725 :
5726 CFLAGS="$CFLAGS -W"
5727 else
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729 $as_echo "no" >&6; }
5730 :
5731
5732 fi
5733
5734
5735
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5737 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5738 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5739 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5740   $as_echo_n "(cached) " >&6
5741 else
5742
5743 echo 'void f(void){}' >conftest.c
5744 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5745 eval "cv_prog_cc_flag_$cache=yes"
5746 else
5747 eval "cv_prog_cc_flag_$cache=no"
5748 fi
5749 rm -f conftest conftest.o conftest.c
5750
5751 fi
5752
5753 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5755 $as_echo "yes" >&6; }
5756 :
5757 CFLAGS="$CFLAGS -Wall"
5758 else
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 :
5762
5763 fi
5764
5765
5766
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5768 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5769 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5770 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5771   $as_echo_n "(cached) " >&6
5772 else
5773
5774 echo 'void f(void){}' >conftest.c
5775 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5776 eval "cv_prog_cc_flag_$cache=yes"
5777 else
5778 eval "cv_prog_cc_flag_$cache=no"
5779 fi
5780 rm -f conftest conftest.o conftest.c
5781
5782 fi
5783
5784 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5786 $as_echo "yes" >&6; }
5787 :
5788 CFLAGS="$CFLAGS -Wextra"
5789 else
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791 $as_echo "no" >&6; }
5792 :
5793
5794 fi
5795
5796
5797
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5799 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5800 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5801 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5802   $as_echo_n "(cached) " >&6
5803 else
5804
5805 echo 'void f(void){}' >conftest.c
5806 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5807 eval "cv_prog_cc_flag_$cache=yes"
5808 else
5809 eval "cv_prog_cc_flag_$cache=no"
5810 fi
5811 rm -f conftest conftest.o conftest.c
5812
5813 fi
5814
5815 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5817 $as_echo "yes" >&6; }
5818 :
5819 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5820 else
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5823 :
5824
5825 fi
5826
5827
5828 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5829
5830                 ;;
5831         no|*)
5832                 # nothing to do.
5833                 ;;
5834 esac
5835
5836     # Check whether --enable-flto was given.
5837 if test "${enable_flto+set}" = set; then :
5838   enableval=$enable_flto;
5839 fi
5840
5841     if test "x$enable_flto" != "xno"; then :
5842
5843         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5844 $as_echo_n "checking if $CC supports -flto... " >&6; }
5845         BAKCFLAGS="$CFLAGS"
5846         CFLAGS="$CFLAGS -flto"
5847         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h.  */
5849
5850 int
5851 main ()
5852 {
5853
5854   ;
5855   return 0;
5856 }
5857 _ACEOF
5858 if ac_fn_c_try_link "$LINENO"; then :
5859
5860             if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5861                 CFLAGS="$BAKCFLAGS"
5862                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5864             else
5865                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5866 $as_echo "yes" >&6; }
5867             fi
5868             rm -f conftest conftest.c conftest.o
5869
5870 else
5871   CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 $as_echo "no" >&6; }
5873 fi
5874 rm -f core conftest.err conftest.$ac_objext \
5875     conftest$ac_exeext conftest.$ac_ext
5876
5877 fi
5878
5879
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5881 $as_echo_n "checking for inline... " >&6; }
5882 if ${ac_cv_c_inline+:} false; then :
5883   $as_echo_n "(cached) " >&6
5884 else
5885   ac_cv_c_inline=no
5886 for ac_kw in inline __inline__ __inline; do
5887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h.  */
5889 #ifndef __cplusplus
5890 typedef int foo_t;
5891 static $ac_kw foo_t static_foo () {return 0; }
5892 $ac_kw foo_t foo () {return 0; }
5893 #endif
5894
5895 _ACEOF
5896 if ac_fn_c_try_compile "$LINENO"; then :
5897   ac_cv_c_inline=$ac_kw
5898 fi
5899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900   test "$ac_cv_c_inline" != no && break
5901 done
5902
5903 fi
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5905 $as_echo "$ac_cv_c_inline" >&6; }
5906
5907 case $ac_cv_c_inline in
5908   inline | yes) ;;
5909   *)
5910     case $ac_cv_c_inline in
5911       no) ac_val=;;
5912       *) ac_val=$ac_cv_c_inline;;
5913     esac
5914     cat >>confdefs.h <<_ACEOF
5915 #ifndef __cplusplus
5916 #define inline $ac_val
5917 #endif
5918 _ACEOF
5919     ;;
5920 esac
5921
5922
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
5924 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
5925 if ${ac_cv_c_format_attribute+:} false; then :
5926   $as_echo_n "(cached) " >&6
5927 else
5928   ac_cv_c_format_attribute=no
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h.  */
5931 #include <stdio.h>
5932 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5933 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5934
5935 int
5936 main ()
5937 {
5938
5939    f ("%s", "str");
5940
5941   ;
5942   return 0;
5943 }
5944 _ACEOF
5945 if ac_fn_c_try_compile "$LINENO"; then :
5946   ac_cv_c_format_attribute="yes"
5947 else
5948   ac_cv_c_format_attribute="no"
5949 fi
5950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951
5952 fi
5953
5954
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
5956 $as_echo "$ac_cv_c_format_attribute" >&6; }
5957 if test $ac_cv_c_format_attribute = yes; then
5958
5959 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
5960
5961 fi
5962
5963
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
5965 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
5966 if ${ac_cv_c_unused_attribute+:} false; then :
5967   $as_echo_n "(cached) " >&6
5968 else
5969   ac_cv_c_unused_attribute=no
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h.  */
5972 #include <stdio.h>
5973 void f (char *u __attribute__((unused)));
5974
5975 int
5976 main ()
5977 {
5978
5979    f ("x");
5980
5981   ;
5982   return 0;
5983 }
5984 _ACEOF
5985 if ac_fn_c_try_compile "$LINENO"; then :
5986   ac_cv_c_unused_attribute="yes"
5987 else
5988   ac_cv_c_unused_attribute="no"
5989 fi
5990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991
5992 fi
5993
5994
5995
5996
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
5998 $as_echo "$ac_cv_c_unused_attribute" >&6; }
5999 if test $ac_cv_c_unused_attribute = yes; then
6000
6001 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6002
6003 fi
6004
6005
6006 if test "$srcdir" != "."; then
6007         CPPFLAGS="$CPPFLAGS -I$srcdir"
6008 fi
6009
6010
6011
6012 for ac_prog in flex lex
6013 do
6014   # Extract the first word of "$ac_prog", so it can be a program name with args.
6015 set dummy $ac_prog; ac_word=$2
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if ${ac_cv_prog_LEX+:} false; then :
6019   $as_echo_n "(cached) " >&6
6020 else
6021   if test -n "$LEX"; then
6022   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6026 do
6027   IFS=$as_save_IFS
6028   test -z "$as_dir" && as_dir=.
6029     for ac_exec_ext in '' $ac_executable_extensions; do
6030   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6031     ac_cv_prog_LEX="$ac_prog"
6032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033     break 2
6034   fi
6035 done
6036   done
6037 IFS=$as_save_IFS
6038
6039 fi
6040 fi
6041 LEX=$ac_cv_prog_LEX
6042 if test -n "$LEX"; then
6043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6044 $as_echo "$LEX" >&6; }
6045 else
6046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047 $as_echo "no" >&6; }
6048 fi
6049
6050
6051   test -n "$LEX" && break
6052 done
6053 test -n "$LEX" || LEX=":"
6054
6055 if test "x$LEX" != "x:"; then
6056   cat >conftest.l <<_ACEOF
6057 %%
6058 a { ECHO; }
6059 b { REJECT; }
6060 c { yymore (); }
6061 d { yyless (1); }
6062 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
6063     yyless ((input () != 0)); }
6064 f { unput (yytext[0]); }
6065 . { BEGIN INITIAL; }
6066 %%
6067 #ifdef YYTEXT_POINTER
6068 extern char *yytext;
6069 #endif
6070 int
6071 main (void)
6072 {
6073   return ! yylex () + ! yywrap ();
6074 }
6075 _ACEOF
6076 { { ac_try="$LEX conftest.l"
6077 case "(($ac_try" in
6078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079   *) ac_try_echo=$ac_try;;
6080 esac
6081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6082 $as_echo "$ac_try_echo"; } >&5
6083   (eval "$LEX conftest.l") 2>&5
6084   ac_status=$?
6085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6086   test $ac_status = 0; }
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6088 $as_echo_n "checking lex output file root... " >&6; }
6089 if ${ac_cv_prog_lex_root+:} false; then :
6090   $as_echo_n "(cached) " >&6
6091 else
6092
6093 if test -f lex.yy.c; then
6094   ac_cv_prog_lex_root=lex.yy
6095 elif test -f lexyy.c; then
6096   ac_cv_prog_lex_root=lexyy
6097 else
6098   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6099 fi
6100 fi
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6102 $as_echo "$ac_cv_prog_lex_root" >&6; }
6103 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6104
6105 if test -z "${LEXLIB+set}"; then
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6107 $as_echo_n "checking lex library... " >&6; }
6108 if ${ac_cv_lib_lex+:} false; then :
6109   $as_echo_n "(cached) " >&6
6110 else
6111
6112     ac_save_LIBS=$LIBS
6113     ac_cv_lib_lex='none needed'
6114     for ac_lib in '' -lfl -ll; do
6115       LIBS="$ac_lib $ac_save_LIBS"
6116       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h.  */
6118 `cat $LEX_OUTPUT_ROOT.c`
6119 _ACEOF
6120 if ac_fn_c_try_link "$LINENO"; then :
6121   ac_cv_lib_lex=$ac_lib
6122 fi
6123 rm -f core conftest.err conftest.$ac_objext \
6124     conftest$ac_exeext conftest.$ac_ext
6125       test "$ac_cv_lib_lex" != 'none needed' && break
6126     done
6127     LIBS=$ac_save_LIBS
6128
6129 fi
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6131 $as_echo "$ac_cv_lib_lex" >&6; }
6132   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6133 fi
6134
6135
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6137 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6138 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6139   $as_echo_n "(cached) " >&6
6140 else
6141   # POSIX says lex can declare yytext either as a pointer or an array; the
6142 # default is implementation-dependent.  Figure out which it is, since
6143 # not all implementations provide the %pointer and %array declarations.
6144 ac_cv_prog_lex_yytext_pointer=no
6145 ac_save_LIBS=$LIBS
6146 LIBS="$LEXLIB $ac_save_LIBS"
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h.  */
6149
6150   #define YYTEXT_POINTER 1
6151 `cat $LEX_OUTPUT_ROOT.c`
6152 _ACEOF
6153 if ac_fn_c_try_link "$LINENO"; then :
6154   ac_cv_prog_lex_yytext_pointer=yes
6155 fi
6156 rm -f core conftest.err conftest.$ac_objext \
6157     conftest$ac_exeext conftest.$ac_ext
6158 LIBS=$ac_save_LIBS
6159
6160 fi
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6162 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6163 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6164
6165 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6166
6167 fi
6168 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6169
6170 fi
6171
6172         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6173 $as_echo_n "checking for yylex_destroy... " >&6; }
6174         if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6175
6176 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6177
6178                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6179 $as_echo "yes" >&6; }
6180         else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }; fi
6182
6183 for ac_prog in 'bison -y' byacc
6184 do
6185   # Extract the first word of "$ac_prog", so it can be a program name with args.
6186 set dummy $ac_prog; ac_word=$2
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188 $as_echo_n "checking for $ac_word... " >&6; }
6189 if ${ac_cv_prog_YACC+:} false; then :
6190   $as_echo_n "(cached) " >&6
6191 else
6192   if test -n "$YACC"; then
6193   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6194 else
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 for as_dir in $PATH
6197 do
6198   IFS=$as_save_IFS
6199   test -z "$as_dir" && as_dir=.
6200     for ac_exec_ext in '' $ac_executable_extensions; do
6201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6202     ac_cv_prog_YACC="$ac_prog"
6203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6204     break 2
6205   fi
6206 done
6207   done
6208 IFS=$as_save_IFS
6209
6210 fi
6211 fi
6212 YACC=$ac_cv_prog_YACC
6213 if test -n "$YACC"; then
6214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6215 $as_echo "$YACC" >&6; }
6216 else
6217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218 $as_echo "no" >&6; }
6219 fi
6220
6221
6222   test -n "$YACC" && break
6223 done
6224 test -n "$YACC" || YACC="yacc"
6225
6226 # Extract the first word of "doxygen", so it can be a program name with args.
6227 set dummy doxygen; ac_word=$2
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229 $as_echo_n "checking for $ac_word... " >&6; }
6230 if ${ac_cv_prog_doxygen+:} false; then :
6231   $as_echo_n "(cached) " >&6
6232 else
6233   if test -n "$doxygen"; then
6234   ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6235 else
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6238 do
6239   IFS=$as_save_IFS
6240   test -z "$as_dir" && as_dir=.
6241     for ac_exec_ext in '' $ac_executable_extensions; do
6242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6243     ac_cv_prog_doxygen="doxygen"
6244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6245     break 2
6246   fi
6247 done
6248   done
6249 IFS=$as_save_IFS
6250
6251 fi
6252 fi
6253 doxygen=$ac_cv_prog_doxygen
6254 if test -n "$doxygen"; then
6255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6256 $as_echo "$doxygen" >&6; }
6257 else
6258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6260 fi
6261
6262
6263 if test -n "$ac_tool_prefix"; then
6264   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6265 set dummy ${ac_tool_prefix}strip; ac_word=$2
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267 $as_echo_n "checking for $ac_word... " >&6; }
6268 if ${ac_cv_prog_STRIP+:} false; then :
6269   $as_echo_n "(cached) " >&6
6270 else
6271   if test -n "$STRIP"; then
6272   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6273 else
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH
6276 do
6277   IFS=$as_save_IFS
6278   test -z "$as_dir" && as_dir=.
6279     for ac_exec_ext in '' $ac_executable_extensions; do
6280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6281     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6283     break 2
6284   fi
6285 done
6286   done
6287 IFS=$as_save_IFS
6288
6289 fi
6290 fi
6291 STRIP=$ac_cv_prog_STRIP
6292 if test -n "$STRIP"; then
6293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6294 $as_echo "$STRIP" >&6; }
6295 else
6296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6298 fi
6299
6300
6301 fi
6302 if test -z "$ac_cv_prog_STRIP"; then
6303   ac_ct_STRIP=$STRIP
6304   # Extract the first word of "strip", so it can be a program name with args.
6305 set dummy strip; ac_word=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6309   $as_echo_n "(cached) " >&6
6310 else
6311   if test -n "$ac_ct_STRIP"; then
6312   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317   IFS=$as_save_IFS
6318   test -z "$as_dir" && as_dir=.
6319     for ac_exec_ext in '' $ac_executable_extensions; do
6320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6321     ac_cv_prog_ac_ct_STRIP="strip"
6322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323     break 2
6324   fi
6325 done
6326   done
6327 IFS=$as_save_IFS
6328
6329 fi
6330 fi
6331 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6332 if test -n "$ac_ct_STRIP"; then
6333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6334 $as_echo "$ac_ct_STRIP" >&6; }
6335 else
6336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6338 fi
6339
6340   if test "x$ac_ct_STRIP" = x; then
6341     STRIP=""
6342   else
6343     case $cross_compiling:$ac_tool_warned in
6344 yes:)
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6347 ac_tool_warned=yes ;;
6348 esac
6349     STRIP=$ac_ct_STRIP
6350   fi
6351 else
6352   STRIP="$ac_cv_prog_STRIP"
6353 fi
6354
6355 ac_aux_dir=
6356 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6357   if test -f "$ac_dir/install-sh"; then
6358     ac_aux_dir=$ac_dir
6359     ac_install_sh="$ac_aux_dir/install-sh -c"
6360     break
6361   elif test -f "$ac_dir/install.sh"; then
6362     ac_aux_dir=$ac_dir
6363     ac_install_sh="$ac_aux_dir/install.sh -c"
6364     break
6365   elif test -f "$ac_dir/shtool"; then
6366     ac_aux_dir=$ac_dir
6367     ac_install_sh="$ac_aux_dir/shtool install -c"
6368     break
6369   fi
6370 done
6371 if test -z "$ac_aux_dir"; then
6372   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6373 fi
6374
6375 # These three variables are undocumented and unsupported,
6376 # and are intended to be withdrawn in a future Autoconf release.
6377 # They can cause serious problems if a builder's source tree is in a directory
6378 # whose full name contains unusual characters.
6379 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6380 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6381 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6382
6383
6384 # Make sure we can run config.sub.
6385 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6386   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6387
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6389 $as_echo_n "checking build system type... " >&6; }
6390 if ${ac_cv_build+:} false; then :
6391   $as_echo_n "(cached) " >&6
6392 else
6393   ac_build_alias=$build_alias
6394 test "x$ac_build_alias" = x &&
6395   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6396 test "x$ac_build_alias" = x &&
6397   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6398 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6399   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6400
6401 fi
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6403 $as_echo "$ac_cv_build" >&6; }
6404 case $ac_cv_build in
6405 *-*-*) ;;
6406 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6407 esac
6408 build=$ac_cv_build
6409 ac_save_IFS=$IFS; IFS='-'
6410 set x $ac_cv_build
6411 shift
6412 build_cpu=$1
6413 build_vendor=$2
6414 shift; shift
6415 # Remember, the first character of IFS is used to create $*,
6416 # except with old shells:
6417 build_os=$*
6418 IFS=$ac_save_IFS
6419 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6420
6421
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6423 $as_echo_n "checking host system type... " >&6; }
6424 if ${ac_cv_host+:} false; then :
6425   $as_echo_n "(cached) " >&6
6426 else
6427   if test "x$host_alias" = x; then
6428   ac_cv_host=$ac_cv_build
6429 else
6430   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6431     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6432 fi
6433
6434 fi
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6436 $as_echo "$ac_cv_host" >&6; }
6437 case $ac_cv_host in
6438 *-*-*) ;;
6439 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6440 esac
6441 host=$ac_cv_host
6442 ac_save_IFS=$IFS; IFS='-'
6443 set x $ac_cv_host
6444 shift
6445 host_cpu=$1
6446 host_vendor=$2
6447 shift; shift
6448 # Remember, the first character of IFS is used to create $*,
6449 # except with old shells:
6450 host_os=$*
6451 IFS=$ac_save_IFS
6452 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6453
6454
6455
6456 # skip these tests, we do not need them.
6457
6458
6459
6460
6461
6462
6463
6464
6465 # always use ./libtool unless override from commandline (libtool=mylibtool)
6466 if test -z "$libtool"; then
6467         libtool="./libtool"
6468 fi
6469
6470 # avoid libtool max commandline length test on systems that fork slowly.
6471
6472 if echo "$host_os" | grep "sunos4" >/dev/null; then
6473         lt_cv_sys_max_cmd_len=32750;
6474 fi
6475 if test -n "$ac_tool_prefix"; then
6476   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6477 set dummy ${ac_tool_prefix}ar; ac_word=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if ${ac_cv_path_AR+:} false; then :
6481   $as_echo_n "(cached) " >&6
6482 else
6483   case $AR in
6484   [\\/]* | ?:[\\/]*)
6485   ac_cv_path_AR="$AR" # Let the user override the test with a path.
6486   ;;
6487   *)
6488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491   IFS=$as_save_IFS
6492   test -z "$as_dir" && as_dir=.
6493     for ac_exec_ext in '' $ac_executable_extensions; do
6494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6495     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497     break 2
6498   fi
6499 done
6500   done
6501 IFS=$as_save_IFS
6502
6503   ;;
6504 esac
6505 fi
6506 AR=$ac_cv_path_AR
6507 if test -n "$AR"; then
6508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6509 $as_echo "$AR" >&6; }
6510 else
6511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6513 fi
6514
6515
6516 fi
6517 if test -z "$ac_cv_path_AR"; then
6518   ac_pt_AR=$AR
6519   # Extract the first word of "ar", so it can be a program name with args.
6520 set dummy ar; ac_word=$2
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if ${ac_cv_path_ac_pt_AR+:} false; then :
6524   $as_echo_n "(cached) " >&6
6525 else
6526   case $ac_pt_AR in
6527   [\\/]* | ?:[\\/]*)
6528   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6529   ;;
6530   *)
6531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6533 do
6534   IFS=$as_save_IFS
6535   test -z "$as_dir" && as_dir=.
6536     for ac_exec_ext in '' $ac_executable_extensions; do
6537   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6538     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540     break 2
6541   fi
6542 done
6543   done
6544 IFS=$as_save_IFS
6545
6546   ;;
6547 esac
6548 fi
6549 ac_pt_AR=$ac_cv_path_ac_pt_AR
6550 if test -n "$ac_pt_AR"; then
6551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6552 $as_echo "$ac_pt_AR" >&6; }
6553 else
6554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6556 fi
6557
6558   if test "x$ac_pt_AR" = x; then
6559     AR="false"
6560   else
6561     case $cross_compiling:$ac_tool_warned in
6562 yes:)
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6565 ac_tool_warned=yes ;;
6566 esac
6567     AR=$ac_pt_AR
6568   fi
6569 else
6570   AR="$ac_cv_path_AR"
6571 fi
6572
6573 if test $AR = false; then
6574         as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6575 fi
6576
6577 case `pwd` in
6578   *\ * | *\     *)
6579     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6580 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6581 esac
6582
6583
6584
6585 macro_version='2.4.2'
6586 macro_revision='1.3337'
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600 ltmain="$ac_aux_dir/ltmain.sh"
6601
6602 # Backslashify metacharacters that are still active within
6603 # double-quoted strings.
6604 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6605
6606 # Same as above, but do not quote variable references.
6607 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6608
6609 # Sed substitution to delay expansion of an escaped shell variable in a
6610 # double_quote_subst'ed string.
6611 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6612
6613 # Sed substitution to delay expansion of an escaped single quote.
6614 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6615
6616 # Sed substitution to avoid accidental globbing in evaled expressions
6617 no_glob_subst='s/\*/\\\*/g'
6618
6619 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6620 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6621 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6622
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6624 $as_echo_n "checking how to print strings... " >&6; }
6625 # Test print first, because it will be a builtin if present.
6626 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6627    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6628   ECHO='print -r --'
6629 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6630   ECHO='printf %s\n'
6631 else
6632   # Use this function as a fallback that always works.
6633   func_fallback_echo ()
6634   {
6635     eval 'cat <<_LTECHO_EOF
6636 $1
6637 _LTECHO_EOF'
6638   }
6639   ECHO='func_fallback_echo'
6640 fi
6641
6642 # func_echo_all arg...
6643 # Invoke $ECHO with all args, space-separated.
6644 func_echo_all ()
6645 {
6646     $ECHO ""
6647 }
6648
6649 case "$ECHO" in
6650   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6651 $as_echo "printf" >&6; } ;;
6652   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6653 $as_echo "print -r" >&6; } ;;
6654   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6655 $as_echo "cat" >&6; } ;;
6656 esac
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6672 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6673 if ${ac_cv_path_SED+:} false; then :
6674   $as_echo_n "(cached) " >&6
6675 else
6676             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6677      for ac_i in 1 2 3 4 5 6 7; do
6678        ac_script="$ac_script$as_nl$ac_script"
6679      done
6680      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6681      { ac_script=; unset ac_script;}
6682      if test -z "$SED"; then
6683   ac_path_SED_found=false
6684   # Loop through the user's path and test for each of PROGNAME-LIST
6685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6687 do
6688   IFS=$as_save_IFS
6689   test -z "$as_dir" && as_dir=.
6690     for ac_prog in sed gsed; do
6691     for ac_exec_ext in '' $ac_executable_extensions; do
6692       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6693       as_fn_executable_p "$ac_path_SED" || continue
6694 # Check for GNU ac_path_SED and select it if it is found.
6695   # Check for GNU $ac_path_SED
6696 case `"$ac_path_SED" --version 2>&1` in
6697 *GNU*)
6698   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6699 *)
6700   ac_count=0
6701   $as_echo_n 0123456789 >"conftest.in"
6702   while :
6703   do
6704     cat "conftest.in" "conftest.in" >"conftest.tmp"
6705     mv "conftest.tmp" "conftest.in"
6706     cp "conftest.in" "conftest.nl"
6707     $as_echo '' >> "conftest.nl"
6708     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6709     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6710     as_fn_arith $ac_count + 1 && ac_count=$as_val
6711     if test $ac_count -gt ${ac_path_SED_max-0}; then
6712       # Best one so far, save it but keep looking for a better one
6713       ac_cv_path_SED="$ac_path_SED"
6714       ac_path_SED_max=$ac_count
6715     fi
6716     # 10*(2^10) chars as input seems more than enough
6717     test $ac_count -gt 10 && break
6718   done
6719   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6720 esac
6721
6722       $ac_path_SED_found && break 3
6723     done
6724   done
6725   done
6726 IFS=$as_save_IFS
6727   if test -z "$ac_cv_path_SED"; then
6728     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6729   fi
6730 else
6731   ac_cv_path_SED=$SED
6732 fi
6733
6734 fi
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6736 $as_echo "$ac_cv_path_SED" >&6; }
6737  SED="$ac_cv_path_SED"
6738   rm -f conftest.sed
6739
6740 test -z "$SED" && SED=sed
6741 Xsed="$SED -e 1s/^X//"
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6754 $as_echo_n "checking for fgrep... " >&6; }
6755 if ${ac_cv_path_FGREP+:} false; then :
6756   $as_echo_n "(cached) " >&6
6757 else
6758   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6759    then ac_cv_path_FGREP="$GREP -F"
6760    else
6761      if test -z "$FGREP"; then
6762   ac_path_FGREP_found=false
6763   # Loop through the user's path and test for each of PROGNAME-LIST
6764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6766 do
6767   IFS=$as_save_IFS
6768   test -z "$as_dir" && as_dir=.
6769     for ac_prog in fgrep; do
6770     for ac_exec_ext in '' $ac_executable_extensions; do
6771       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6772       as_fn_executable_p "$ac_path_FGREP" || continue
6773 # Check for GNU ac_path_FGREP and select it if it is found.
6774   # Check for GNU $ac_path_FGREP
6775 case `"$ac_path_FGREP" --version 2>&1` in
6776 *GNU*)
6777   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6778 *)
6779   ac_count=0
6780   $as_echo_n 0123456789 >"conftest.in"
6781   while :
6782   do
6783     cat "conftest.in" "conftest.in" >"conftest.tmp"
6784     mv "conftest.tmp" "conftest.in"
6785     cp "conftest.in" "conftest.nl"
6786     $as_echo 'FGREP' >> "conftest.nl"
6787     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6788     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6789     as_fn_arith $ac_count + 1 && ac_count=$as_val
6790     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6791       # Best one so far, save it but keep looking for a better one
6792       ac_cv_path_FGREP="$ac_path_FGREP"
6793       ac_path_FGREP_max=$ac_count
6794     fi
6795     # 10*(2^10) chars as input seems more than enough
6796     test $ac_count -gt 10 && break
6797   done
6798   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6799 esac
6800
6801       $ac_path_FGREP_found && break 3
6802     done
6803   done
6804   done
6805 IFS=$as_save_IFS
6806   if test -z "$ac_cv_path_FGREP"; then
6807     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6808   fi
6809 else
6810   ac_cv_path_FGREP=$FGREP
6811 fi
6812
6813    fi
6814 fi
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6816 $as_echo "$ac_cv_path_FGREP" >&6; }
6817  FGREP="$ac_cv_path_FGREP"
6818
6819
6820 test -z "$GREP" && GREP=grep
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840 # Check whether --with-gnu-ld was given.
6841 if test "${with_gnu_ld+set}" = set; then :
6842   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6843 else
6844   with_gnu_ld=no
6845 fi
6846
6847 ac_prog=ld
6848 if test "$GCC" = yes; then
6849   # Check if gcc -print-prog-name=ld gives a path.
6850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6851 $as_echo_n "checking for ld used by $CC... " >&6; }
6852   case $host in
6853   *-*-mingw*)
6854     # gcc leaves a trailing carriage return which upsets mingw
6855     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6856   *)
6857     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6858   esac
6859   case $ac_prog in
6860     # Accept absolute paths.
6861     [\\/]* | ?:[\\/]*)
6862       re_direlt='/[^/][^/]*/\.\./'
6863       # Canonicalize the pathname of ld
6864       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6865       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6866         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6867       done
6868       test -z "$LD" && LD="$ac_prog"
6869       ;;
6870   "")
6871     # If it fails, then pretend we aren't using GCC.
6872     ac_prog=ld
6873     ;;
6874   *)
6875     # If it is relative, then search for the first ld in PATH.
6876     with_gnu_ld=unknown
6877     ;;
6878   esac
6879 elif test "$with_gnu_ld" = yes; then
6880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6881 $as_echo_n "checking for GNU ld... " >&6; }
6882 else
6883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6884 $as_echo_n "checking for non-GNU ld... " >&6; }
6885 fi
6886 if ${lt_cv_path_LD+:} false; then :
6887   $as_echo_n "(cached) " >&6
6888 else
6889   if test -z "$LD"; then
6890   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6891   for ac_dir in $PATH; do
6892     IFS="$lt_save_ifs"
6893     test -z "$ac_dir" && ac_dir=.
6894     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6895       lt_cv_path_LD="$ac_dir/$ac_prog"
6896       # Check to see if the program is GNU ld.  I'd rather use --version,
6897       # but apparently some variants of GNU ld only accept -v.
6898       # Break only if it was the GNU/non-GNU ld that we prefer.
6899       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6900       *GNU* | *'with BFD'*)
6901         test "$with_gnu_ld" != no && break
6902         ;;
6903       *)
6904         test "$with_gnu_ld" != yes && break
6905         ;;
6906       esac
6907     fi
6908   done
6909   IFS="$lt_save_ifs"
6910 else
6911   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6912 fi
6913 fi
6914
6915 LD="$lt_cv_path_LD"
6916 if test -n "$LD"; then
6917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6918 $as_echo "$LD" >&6; }
6919 else
6920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921 $as_echo "no" >&6; }
6922 fi
6923 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6925 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6926 if ${lt_cv_prog_gnu_ld+:} false; then :
6927   $as_echo_n "(cached) " >&6
6928 else
6929   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6930 case `$LD -v 2>&1 </dev/null` in
6931 *GNU* | *'with BFD'*)
6932   lt_cv_prog_gnu_ld=yes
6933   ;;
6934 *)
6935   lt_cv_prog_gnu_ld=no
6936   ;;
6937 esac
6938 fi
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6940 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6941 with_gnu_ld=$lt_cv_prog_gnu_ld
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6952 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6953 if ${lt_cv_path_NM+:} false; then :
6954   $as_echo_n "(cached) " >&6
6955 else
6956   if test -n "$NM"; then
6957   # Let the user override the test.
6958   lt_cv_path_NM="$NM"
6959 else
6960   lt_nm_to_check="${ac_tool_prefix}nm"
6961   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6962     lt_nm_to_check="$lt_nm_to_check nm"
6963   fi
6964   for lt_tmp_nm in $lt_nm_to_check; do
6965     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6966     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6967       IFS="$lt_save_ifs"
6968       test -z "$ac_dir" && ac_dir=.
6969       tmp_nm="$ac_dir/$lt_tmp_nm"
6970       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6971         # Check to see if the nm accepts a BSD-compat flag.
6972         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6973         #   nm: unknown option "B" ignored
6974         # Tru64's nm complains that /dev/null is an invalid object file
6975         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6976         */dev/null* | *'Invalid file or object type'*)
6977           lt_cv_path_NM="$tmp_nm -B"
6978           break
6979           ;;
6980         *)
6981           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6982           */dev/null*)
6983             lt_cv_path_NM="$tmp_nm -p"
6984             break
6985             ;;
6986           *)
6987             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6988             continue # so that we can try to find one that supports BSD flags
6989             ;;
6990           esac
6991           ;;
6992         esac
6993       fi
6994     done
6995     IFS="$lt_save_ifs"
6996   done
6997   : ${lt_cv_path_NM=no}
6998 fi
6999 fi
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7001 $as_echo "$lt_cv_path_NM" >&6; }
7002 if test "$lt_cv_path_NM" != "no"; then
7003   NM="$lt_cv_path_NM"
7004 else
7005   # Didn't find any BSD compatible name lister, look for dumpbin.
7006   if test -n "$DUMPBIN"; then :
7007     # Let the user override the test.
7008   else
7009     if test -n "$ac_tool_prefix"; then
7010   for ac_prog in dumpbin "link -dump"
7011   do
7012     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if ${ac_cv_prog_DUMPBIN+:} false; then :
7017   $as_echo_n "(cached) " >&6
7018 else
7019   if test -n "$DUMPBIN"; then
7020   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7021 else
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7024 do
7025   IFS=$as_save_IFS
7026   test -z "$as_dir" && as_dir=.
7027     for ac_exec_ext in '' $ac_executable_extensions; do
7028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7029     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031     break 2
7032   fi
7033 done
7034   done
7035 IFS=$as_save_IFS
7036
7037 fi
7038 fi
7039 DUMPBIN=$ac_cv_prog_DUMPBIN
7040 if test -n "$DUMPBIN"; then
7041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7042 $as_echo "$DUMPBIN" >&6; }
7043 else
7044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7046 fi
7047
7048
7049     test -n "$DUMPBIN" && break
7050   done
7051 fi
7052 if test -z "$DUMPBIN"; then
7053   ac_ct_DUMPBIN=$DUMPBIN
7054   for ac_prog in dumpbin "link -dump"
7055 do
7056   # Extract the first word of "$ac_prog", so it can be a program name with args.
7057 set dummy $ac_prog; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7061   $as_echo_n "(cached) " >&6
7062 else
7063   if test -n "$ac_ct_DUMPBIN"; then
7064   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069   IFS=$as_save_IFS
7070   test -z "$as_dir" && as_dir=.
7071     for ac_exec_ext in '' $ac_executable_extensions; do
7072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7073     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075     break 2
7076   fi
7077 done
7078   done
7079 IFS=$as_save_IFS
7080
7081 fi
7082 fi
7083 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7084 if test -n "$ac_ct_DUMPBIN"; then
7085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7086 $as_echo "$ac_ct_DUMPBIN" >&6; }
7087 else
7088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7090 fi
7091
7092
7093   test -n "$ac_ct_DUMPBIN" && break
7094 done
7095
7096   if test "x$ac_ct_DUMPBIN" = x; then
7097     DUMPBIN=":"
7098   else
7099     case $cross_compiling:$ac_tool_warned in
7100 yes:)
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103 ac_tool_warned=yes ;;
7104 esac
7105     DUMPBIN=$ac_ct_DUMPBIN
7106   fi
7107 fi
7108
7109     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7110     *COFF*)
7111       DUMPBIN="$DUMPBIN -symbols"
7112       ;;
7113     *)
7114       DUMPBIN=:
7115       ;;
7116     esac
7117   fi
7118
7119   if test "$DUMPBIN" != ":"; then
7120     NM="$DUMPBIN"
7121   fi
7122 fi
7123 test -z "$NM" && NM=nm
7124
7125
7126
7127
7128
7129
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7131 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7132 if ${lt_cv_nm_interface+:} false; then :
7133   $as_echo_n "(cached) " >&6
7134 else
7135   lt_cv_nm_interface="BSD nm"
7136   echo "int some_variable = 0;" > conftest.$ac_ext
7137   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7138   (eval "$ac_compile" 2>conftest.err)
7139   cat conftest.err >&5
7140   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7141   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7142   cat conftest.err >&5
7143   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7144   cat conftest.out >&5
7145   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7146     lt_cv_nm_interface="MS dumpbin"
7147   fi
7148   rm -f conftest*
7149 fi
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7151 $as_echo "$lt_cv_nm_interface" >&6; }
7152
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7154 $as_echo_n "checking whether ln -s works... " >&6; }
7155 LN_S=$as_ln_s
7156 if test "$LN_S" = "ln -s"; then
7157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7158 $as_echo "yes" >&6; }
7159 else
7160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7161 $as_echo "no, using $LN_S" >&6; }
7162 fi
7163
7164 # find the maximum length of command line arguments
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7166 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7167 if ${lt_cv_sys_max_cmd_len+:} false; then :
7168   $as_echo_n "(cached) " >&6
7169 else
7170     i=0
7171   teststring="ABCD"
7172
7173   case $build_os in
7174   msdosdjgpp*)
7175     # On DJGPP, this test can blow up pretty badly due to problems in libc
7176     # (any single argument exceeding 2000 bytes causes a buffer overrun
7177     # during glob expansion).  Even if it were fixed, the result of this
7178     # check would be larger than it should be.
7179     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7180     ;;
7181
7182   gnu*)
7183     # Under GNU Hurd, this test is not required because there is
7184     # no limit to the length of command line arguments.
7185     # Libtool will interpret -1 as no limit whatsoever
7186     lt_cv_sys_max_cmd_len=-1;
7187     ;;
7188
7189   cygwin* | mingw* | cegcc*)
7190     # On Win9x/ME, this test blows up -- it succeeds, but takes
7191     # about 5 minutes as the teststring grows exponentially.
7192     # Worse, since 9x/ME are not pre-emptively multitasking,
7193     # you end up with a "frozen" computer, even though with patience
7194     # the test eventually succeeds (with a max line length of 256k).
7195     # Instead, let's just punt: use the minimum linelength reported by
7196     # all of the supported platforms: 8192 (on NT/2K/XP).
7197     lt_cv_sys_max_cmd_len=8192;
7198     ;;
7199
7200   mint*)
7201     # On MiNT this can take a long time and run out of memory.
7202     lt_cv_sys_max_cmd_len=8192;
7203     ;;
7204
7205   amigaos*)
7206     # On AmigaOS with pdksh, this test takes hours, literally.
7207     # So we just punt and use a minimum line length of 8192.
7208     lt_cv_sys_max_cmd_len=8192;
7209     ;;
7210
7211   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7212     # This has been around since 386BSD, at least.  Likely further.
7213     if test -x /sbin/sysctl; then
7214       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7215     elif test -x /usr/sbin/sysctl; then
7216       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7217     else
7218       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7219     fi
7220     # And add a safety zone
7221     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7222     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7223     ;;
7224
7225   interix*)
7226     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7227     lt_cv_sys_max_cmd_len=196608
7228     ;;
7229
7230   os2*)
7231     # The test takes a long time on OS/2.
7232     lt_cv_sys_max_cmd_len=8192
7233     ;;
7234
7235   osf*)
7236     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7237     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7238     # nice to cause kernel panics so lets avoid the loop below.
7239     # First set a reasonable default.
7240     lt_cv_sys_max_cmd_len=16384
7241     #
7242     if test -x /sbin/sysconfig; then
7243       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7244         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7245       esac
7246     fi
7247     ;;
7248   sco3.2v5*)
7249     lt_cv_sys_max_cmd_len=102400
7250     ;;
7251   sysv5* | sco5v6* | sysv4.2uw2*)
7252     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7253     if test -n "$kargmax"; then
7254       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7255     else
7256       lt_cv_sys_max_cmd_len=32768
7257     fi
7258     ;;
7259   *)
7260     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7261     if test -n "$lt_cv_sys_max_cmd_len"; then
7262       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7263       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7264     else
7265       # Make teststring a little bigger before we do anything with it.
7266       # a 1K string should be a reasonable start.
7267       for i in 1 2 3 4 5 6 7 8 ; do
7268         teststring=$teststring$teststring
7269       done
7270       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7271       # If test is not a shell built-in, we'll probably end up computing a
7272       # maximum length that is only half of the actual maximum length, but
7273       # we can't tell.
7274       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7275                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7276               test $i != 17 # 1/2 MB should be enough
7277       do
7278         i=`expr $i + 1`
7279         teststring=$teststring$teststring
7280       done
7281       # Only check the string length outside the loop.
7282       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7283       teststring=
7284       # Add a significant safety factor because C++ compilers can tack on
7285       # massive amounts of additional arguments before passing them to the
7286       # linker.  It appears as though 1/2 is a usable value.
7287       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7288     fi
7289     ;;
7290   esac
7291
7292 fi
7293
7294 if test -n $lt_cv_sys_max_cmd_len ; then
7295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7296 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7297 else
7298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7299 $as_echo "none" >&6; }
7300 fi
7301 max_cmd_len=$lt_cv_sys_max_cmd_len
7302
7303
7304
7305
7306
7307
7308 : ${CP="cp -f"}
7309 : ${MV="mv -f"}
7310 : ${RM="rm -f"}
7311
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7313 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7314 # Try some XSI features
7315 xsi_shell=no
7316 ( _lt_dummy="a/b/c"
7317   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7318       = c,a/b,b/c, \
7319     && eval 'test $(( 1 + 1 )) -eq 2 \
7320     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7321   && xsi_shell=yes
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7323 $as_echo "$xsi_shell" >&6; }
7324
7325
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7327 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7328 lt_shell_append=no
7329 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7330     >/dev/null 2>&1 \
7331   && lt_shell_append=yes
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7333 $as_echo "$lt_shell_append" >&6; }
7334
7335
7336 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7337   lt_unset=unset
7338 else
7339   lt_unset=false
7340 fi
7341
7342
7343
7344
7345
7346 # test EBCDIC or ASCII
7347 case `echo X|tr X '\101'` in
7348  A) # ASCII based system
7349     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7350   lt_SP2NL='tr \040 \012'
7351   lt_NL2SP='tr \015\012 \040\040'
7352   ;;
7353  *) # EBCDIC based system
7354   lt_SP2NL='tr \100 \n'
7355   lt_NL2SP='tr \r\n \100\100'
7356   ;;
7357 esac
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7368 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7369 if ${lt_cv_to_host_file_cmd+:} false; then :
7370   $as_echo_n "(cached) " >&6
7371 else
7372   case $host in
7373   *-*-mingw* )
7374     case $build in
7375       *-*-mingw* ) # actually msys
7376         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7377         ;;
7378       *-*-cygwin* )
7379         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7380         ;;
7381       * ) # otherwise, assume *nix
7382         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7383         ;;
7384     esac
7385     ;;
7386   *-*-cygwin* )
7387     case $build in
7388       *-*-mingw* ) # actually msys
7389         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7390         ;;
7391       *-*-cygwin* )
7392         lt_cv_to_host_file_cmd=func_convert_file_noop
7393         ;;
7394       * ) # otherwise, assume *nix
7395         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7396         ;;
7397     esac
7398     ;;
7399   * ) # unhandled hosts (and "normal" native builds)
7400     lt_cv_to_host_file_cmd=func_convert_file_noop
7401     ;;
7402 esac
7403
7404 fi
7405
7406 to_host_file_cmd=$lt_cv_to_host_file_cmd
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7408 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7409
7410
7411
7412
7413
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7415 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7416 if ${lt_cv_to_tool_file_cmd+:} false; then :
7417   $as_echo_n "(cached) " >&6
7418 else
7419   #assume ordinary cross tools, or native build.
7420 lt_cv_to_tool_file_cmd=func_convert_file_noop
7421 case $host in
7422   *-*-mingw* )
7423     case $build in
7424       *-*-mingw* ) # actually msys
7425         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7426         ;;
7427     esac
7428     ;;
7429 esac
7430
7431 fi
7432
7433 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7435 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7436
7437
7438
7439
7440
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7442 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7443 if ${lt_cv_ld_reload_flag+:} false; then :
7444   $as_echo_n "(cached) " >&6
7445 else
7446   lt_cv_ld_reload_flag='-r'
7447 fi
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7449 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7450 reload_flag=$lt_cv_ld_reload_flag
7451 case $reload_flag in
7452 "" | " "*) ;;
7453 *) reload_flag=" $reload_flag" ;;
7454 esac
7455 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7456 case $host_os in
7457   cygwin* | mingw* | pw32* | cegcc*)
7458     if test "$GCC" != yes; then
7459       reload_cmds=false
7460     fi
7461     ;;
7462   darwin*)
7463     if test "$GCC" = yes; then
7464       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7465     else
7466       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7467     fi
7468     ;;
7469 esac
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479 if test -n "$ac_tool_prefix"; then
7480   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7481 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483 $as_echo_n "checking for $ac_word... " >&6; }
7484 if ${ac_cv_prog_OBJDUMP+:} false; then :
7485   $as_echo_n "(cached) " >&6
7486 else
7487   if test -n "$OBJDUMP"; then
7488   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7489 else
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 for as_dir in $PATH
7492 do
7493   IFS=$as_save_IFS
7494   test -z "$as_dir" && as_dir=.
7495     for ac_exec_ext in '' $ac_executable_extensions; do
7496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7499     break 2
7500   fi
7501 done
7502   done
7503 IFS=$as_save_IFS
7504
7505 fi
7506 fi
7507 OBJDUMP=$ac_cv_prog_OBJDUMP
7508 if test -n "$OBJDUMP"; then
7509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7510 $as_echo "$OBJDUMP" >&6; }
7511 else
7512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 $as_echo "no" >&6; }
7514 fi
7515
7516
7517 fi
7518 if test -z "$ac_cv_prog_OBJDUMP"; then
7519   ac_ct_OBJDUMP=$OBJDUMP
7520   # Extract the first word of "objdump", so it can be a program name with args.
7521 set dummy objdump; ac_word=$2
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523 $as_echo_n "checking for $ac_word... " >&6; }
7524 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7525   $as_echo_n "(cached) " >&6
7526 else
7527   if test -n "$ac_ct_OBJDUMP"; then
7528   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7529 else
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 for as_dir in $PATH
7532 do
7533   IFS=$as_save_IFS
7534   test -z "$as_dir" && as_dir=.
7535     for ac_exec_ext in '' $ac_executable_extensions; do
7536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7537     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539     break 2
7540   fi
7541 done
7542   done
7543 IFS=$as_save_IFS
7544
7545 fi
7546 fi
7547 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7548 if test -n "$ac_ct_OBJDUMP"; then
7549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7550 $as_echo "$ac_ct_OBJDUMP" >&6; }
7551 else
7552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553 $as_echo "no" >&6; }
7554 fi
7555
7556   if test "x$ac_ct_OBJDUMP" = x; then
7557     OBJDUMP="false"
7558   else
7559     case $cross_compiling:$ac_tool_warned in
7560 yes:)
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7563 ac_tool_warned=yes ;;
7564 esac
7565     OBJDUMP=$ac_ct_OBJDUMP
7566   fi
7567 else
7568   OBJDUMP="$ac_cv_prog_OBJDUMP"
7569 fi
7570
7571 test -z "$OBJDUMP" && OBJDUMP=objdump
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7582 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7583 if ${lt_cv_deplibs_check_method+:} false; then :
7584   $as_echo_n "(cached) " >&6
7585 else
7586   lt_cv_file_magic_cmd='$MAGIC_CMD'
7587 lt_cv_file_magic_test_file=
7588 lt_cv_deplibs_check_method='unknown'
7589 # Need to set the preceding variable on all platforms that support
7590 # interlibrary dependencies.
7591 # 'none' -- dependencies not supported.
7592 # `unknown' -- same as none, but documents that we really don't know.
7593 # 'pass_all' -- all dependencies passed with no checks.
7594 # 'test_compile' -- check by making test program.
7595 # 'file_magic [[regex]]' -- check by looking for files in library path
7596 # which responds to the $file_magic_cmd with a given extended regex.
7597 # If you have `file' or equivalent on your system and you're not sure
7598 # whether `pass_all' will *always* work, you probably want this one.
7599
7600 case $host_os in
7601 aix[4-9]*)
7602   lt_cv_deplibs_check_method=pass_all
7603   ;;
7604
7605 beos*)
7606   lt_cv_deplibs_check_method=pass_all
7607   ;;
7608
7609 bsdi[45]*)
7610   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7611   lt_cv_file_magic_cmd='/usr/bin/file -L'
7612   lt_cv_file_magic_test_file=/shlib/libc.so
7613   ;;
7614
7615 cygwin*)
7616   # func_win32_libid is a shell function defined in ltmain.sh
7617   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7618   lt_cv_file_magic_cmd='func_win32_libid'
7619   ;;
7620
7621 mingw* | pw32*)
7622   # Base MSYS/MinGW do not provide the 'file' command needed by
7623   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7624   # unless we find 'file', for example because we are cross-compiling.
7625   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7626   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7627     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7628     lt_cv_file_magic_cmd='func_win32_libid'
7629   else
7630     # Keep this pattern in sync with the one in func_win32_libid.
7631     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7632     lt_cv_file_magic_cmd='$OBJDUMP -f'
7633   fi
7634   ;;
7635
7636 cegcc*)
7637   # use the weaker test based on 'objdump'. See mingw*.
7638   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7639   lt_cv_file_magic_cmd='$OBJDUMP -f'
7640   ;;
7641
7642 darwin* | rhapsody*)
7643   lt_cv_deplibs_check_method=pass_all
7644   ;;
7645
7646 freebsd* | dragonfly*)
7647   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7648     case $host_cpu in
7649     i*86 )
7650       # Not sure whether the presence of OpenBSD here was a mistake.
7651       # Let's accept both of them until this is cleared up.
7652       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7653       lt_cv_file_magic_cmd=/usr/bin/file
7654       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7655       ;;
7656     esac
7657   else
7658     lt_cv_deplibs_check_method=pass_all
7659   fi
7660   ;;
7661
7662 gnu*)
7663   lt_cv_deplibs_check_method=pass_all
7664   ;;
7665
7666 haiku*)
7667   lt_cv_deplibs_check_method=pass_all
7668   ;;
7669
7670 hpux10.20* | hpux11*)
7671   lt_cv_file_magic_cmd=/usr/bin/file
7672   case $host_cpu in
7673   ia64*)
7674     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7675     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7676     ;;
7677   hppa*64*)
7678     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]'
7679     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7680     ;;
7681   *)
7682     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7683     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7684     ;;
7685   esac
7686   ;;
7687
7688 interix[3-9]*)
7689   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7690   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7691   ;;
7692
7693 irix5* | irix6* | nonstopux*)
7694   case $LD in
7695   *-32|*"-32 ") libmagic=32-bit;;
7696   *-n32|*"-n32 ") libmagic=N32;;
7697   *-64|*"-64 ") libmagic=64-bit;;
7698   *) libmagic=never-match;;
7699   esac
7700   lt_cv_deplibs_check_method=pass_all
7701   ;;
7702
7703 # This must be glibc/ELF.
7704 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7705   lt_cv_deplibs_check_method=pass_all
7706   ;;
7707
7708 netbsd*)
7709   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7710     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7711   else
7712     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7713   fi
7714   ;;
7715
7716 newos6*)
7717   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7718   lt_cv_file_magic_cmd=/usr/bin/file
7719   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7720   ;;
7721
7722 *nto* | *qnx*)
7723   lt_cv_deplibs_check_method=pass_all
7724   ;;
7725
7726 openbsd*)
7727   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7728     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7729   else
7730     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7731   fi
7732   ;;
7733
7734 osf3* | osf4* | osf5*)
7735   lt_cv_deplibs_check_method=pass_all
7736   ;;
7737
7738 rdos*)
7739   lt_cv_deplibs_check_method=pass_all
7740   ;;
7741
7742 solaris*)
7743   lt_cv_deplibs_check_method=pass_all
7744   ;;
7745
7746 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7747   lt_cv_deplibs_check_method=pass_all
7748   ;;
7749
7750 sysv4 | sysv4.3*)
7751   case $host_vendor in
7752   motorola)
7753     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]'
7754     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7755     ;;
7756   ncr)
7757     lt_cv_deplibs_check_method=pass_all
7758     ;;
7759   sequent)
7760     lt_cv_file_magic_cmd='/bin/file'
7761     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7762     ;;
7763   sni)
7764     lt_cv_file_magic_cmd='/bin/file'
7765     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7766     lt_cv_file_magic_test_file=/lib/libc.so
7767     ;;
7768   siemens)
7769     lt_cv_deplibs_check_method=pass_all
7770     ;;
7771   pc)
7772     lt_cv_deplibs_check_method=pass_all
7773     ;;
7774   esac
7775   ;;
7776
7777 tpf*)
7778   lt_cv_deplibs_check_method=pass_all
7779   ;;
7780 esac
7781
7782 fi
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7784 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7785
7786 file_magic_glob=
7787 want_nocaseglob=no
7788 if test "$build" = "$host"; then
7789   case $host_os in
7790   mingw* | pw32*)
7791     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7792       want_nocaseglob=yes
7793     else
7794       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7795     fi
7796     ;;
7797   esac
7798 fi
7799
7800 file_magic_cmd=$lt_cv_file_magic_cmd
7801 deplibs_check_method=$lt_cv_deplibs_check_method
7802 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825 if test -n "$ac_tool_prefix"; then
7826   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7827 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829 $as_echo_n "checking for $ac_word... " >&6; }
7830 if ${ac_cv_prog_DLLTOOL+:} false; then :
7831   $as_echo_n "(cached) " >&6
7832 else
7833   if test -n "$DLLTOOL"; then
7834   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7835 else
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 for as_dir in $PATH
7838 do
7839   IFS=$as_save_IFS
7840   test -z "$as_dir" && as_dir=.
7841     for ac_exec_ext in '' $ac_executable_extensions; do
7842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7843     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7845     break 2
7846   fi
7847 done
7848   done
7849 IFS=$as_save_IFS
7850
7851 fi
7852 fi
7853 DLLTOOL=$ac_cv_prog_DLLTOOL
7854 if test -n "$DLLTOOL"; then
7855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7856 $as_echo "$DLLTOOL" >&6; }
7857 else
7858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 $as_echo "no" >&6; }
7860 fi
7861
7862
7863 fi
7864 if test -z "$ac_cv_prog_DLLTOOL"; then
7865   ac_ct_DLLTOOL=$DLLTOOL
7866   # Extract the first word of "dlltool", so it can be a program name with args.
7867 set dummy dlltool; ac_word=$2
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 $as_echo_n "checking for $ac_word... " >&6; }
7870 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7871   $as_echo_n "(cached) " >&6
7872 else
7873   if test -n "$ac_ct_DLLTOOL"; then
7874   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7875 else
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 for as_dir in $PATH
7878 do
7879   IFS=$as_save_IFS
7880   test -z "$as_dir" && as_dir=.
7881     for ac_exec_ext in '' $ac_executable_extensions; do
7882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7883     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7885     break 2
7886   fi
7887 done
7888   done
7889 IFS=$as_save_IFS
7890
7891 fi
7892 fi
7893 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7894 if test -n "$ac_ct_DLLTOOL"; then
7895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7896 $as_echo "$ac_ct_DLLTOOL" >&6; }
7897 else
7898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7900 fi
7901
7902   if test "x$ac_ct_DLLTOOL" = x; then
7903     DLLTOOL="false"
7904   else
7905     case $cross_compiling:$ac_tool_warned in
7906 yes:)
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7909 ac_tool_warned=yes ;;
7910 esac
7911     DLLTOOL=$ac_ct_DLLTOOL
7912   fi
7913 else
7914   DLLTOOL="$ac_cv_prog_DLLTOOL"
7915 fi
7916
7917 test -z "$DLLTOOL" && DLLTOOL=dlltool
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7929 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7930 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7931   $as_echo_n "(cached) " >&6
7932 else
7933   lt_cv_sharedlib_from_linklib_cmd='unknown'
7934
7935 case $host_os in
7936 cygwin* | mingw* | pw32* | cegcc*)
7937   # two different shell functions defined in ltmain.sh
7938   # decide which to use based on capabilities of $DLLTOOL
7939   case `$DLLTOOL --help 2>&1` in
7940   *--identify-strict*)
7941     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7942     ;;
7943   *)
7944     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7945     ;;
7946   esac
7947   ;;
7948 *)
7949   # fallback: assume linklib IS sharedlib
7950   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7951   ;;
7952 esac
7953
7954 fi
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7956 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7957 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7958 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7959
7960
7961
7962
7963
7964
7965
7966 if test -n "$ac_tool_prefix"; then
7967   for ac_prog in ar
7968   do
7969     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972 $as_echo_n "checking for $ac_word... " >&6; }
7973 if ${ac_cv_prog_AR+:} false; then :
7974   $as_echo_n "(cached) " >&6
7975 else
7976   if test -n "$AR"; then
7977   ac_cv_prog_AR="$AR" # Let the user override the test.
7978 else
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 for as_dir in $PATH
7981 do
7982   IFS=$as_save_IFS
7983   test -z "$as_dir" && as_dir=.
7984     for ac_exec_ext in '' $ac_executable_extensions; do
7985   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7986     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7988     break 2
7989   fi
7990 done
7991   done
7992 IFS=$as_save_IFS
7993
7994 fi
7995 fi
7996 AR=$ac_cv_prog_AR
7997 if test -n "$AR"; then
7998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7999 $as_echo "$AR" >&6; }
8000 else
8001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8003 fi
8004
8005
8006     test -n "$AR" && break
8007   done
8008 fi
8009 if test -z "$AR"; then
8010   ac_ct_AR=$AR
8011   for ac_prog in ar
8012 do
8013   # Extract the first word of "$ac_prog", so it can be a program name with args.
8014 set dummy $ac_prog; ac_word=$2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 $as_echo_n "checking for $ac_word... " >&6; }
8017 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8018   $as_echo_n "(cached) " >&6
8019 else
8020   if test -n "$ac_ct_AR"; then
8021   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8022 else
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 for as_dir in $PATH
8025 do
8026   IFS=$as_save_IFS
8027   test -z "$as_dir" && as_dir=.
8028     for ac_exec_ext in '' $ac_executable_extensions; do
8029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030     ac_cv_prog_ac_ct_AR="$ac_prog"
8031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032     break 2
8033   fi
8034 done
8035   done
8036 IFS=$as_save_IFS
8037
8038 fi
8039 fi
8040 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8041 if test -n "$ac_ct_AR"; then
8042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8043 $as_echo "$ac_ct_AR" >&6; }
8044 else
8045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8047 fi
8048
8049
8050   test -n "$ac_ct_AR" && break
8051 done
8052
8053   if test "x$ac_ct_AR" = x; then
8054     AR="false"
8055   else
8056     case $cross_compiling:$ac_tool_warned in
8057 yes:)
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8060 ac_tool_warned=yes ;;
8061 esac
8062     AR=$ac_ct_AR
8063   fi
8064 fi
8065
8066 : ${AR=ar}
8067 : ${AR_FLAGS=cru}
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8080 $as_echo_n "checking for archiver @FILE support... " >&6; }
8081 if ${lt_cv_ar_at_file+:} false; then :
8082   $as_echo_n "(cached) " >&6
8083 else
8084   lt_cv_ar_at_file=no
8085    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h.  */
8087
8088 int
8089 main ()
8090 {
8091
8092   ;
8093   return 0;
8094 }
8095 _ACEOF
8096 if ac_fn_c_try_compile "$LINENO"; then :
8097   echo conftest.$ac_objext > conftest.lst
8098       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8099       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8100   (eval $lt_ar_try) 2>&5
8101   ac_status=$?
8102   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8103   test $ac_status = 0; }
8104       if test "$ac_status" -eq 0; then
8105         # Ensure the archiver fails upon bogus file names.
8106         rm -f conftest.$ac_objext libconftest.a
8107         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8108   (eval $lt_ar_try) 2>&5
8109   ac_status=$?
8110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8111   test $ac_status = 0; }
8112         if test "$ac_status" -ne 0; then
8113           lt_cv_ar_at_file=@
8114         fi
8115       fi
8116       rm -f conftest.* libconftest.a
8117
8118 fi
8119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8120
8121 fi
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8123 $as_echo "$lt_cv_ar_at_file" >&6; }
8124
8125 if test "x$lt_cv_ar_at_file" = xno; then
8126   archiver_list_spec=
8127 else
8128   archiver_list_spec=$lt_cv_ar_at_file
8129 fi
8130
8131
8132
8133
8134
8135
8136
8137 if test -n "$ac_tool_prefix"; then
8138   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8139 set dummy ${ac_tool_prefix}strip; ac_word=$2
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8141 $as_echo_n "checking for $ac_word... " >&6; }
8142 if ${ac_cv_prog_STRIP+:} false; then :
8143   $as_echo_n "(cached) " >&6
8144 else
8145   if test -n "$STRIP"; then
8146   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8147 else
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149 for as_dir in $PATH
8150 do
8151   IFS=$as_save_IFS
8152   test -z "$as_dir" && as_dir=.
8153     for ac_exec_ext in '' $ac_executable_extensions; do
8154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8155     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8157     break 2
8158   fi
8159 done
8160   done
8161 IFS=$as_save_IFS
8162
8163 fi
8164 fi
8165 STRIP=$ac_cv_prog_STRIP
8166 if test -n "$STRIP"; then
8167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8168 $as_echo "$STRIP" >&6; }
8169 else
8170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171 $as_echo "no" >&6; }
8172 fi
8173
8174
8175 fi
8176 if test -z "$ac_cv_prog_STRIP"; then
8177   ac_ct_STRIP=$STRIP
8178   # Extract the first word of "strip", so it can be a program name with args.
8179 set dummy strip; ac_word=$2
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181 $as_echo_n "checking for $ac_word... " >&6; }
8182 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8183   $as_echo_n "(cached) " >&6
8184 else
8185   if test -n "$ac_ct_STRIP"; then
8186   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8187 else
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 for as_dir in $PATH
8190 do
8191   IFS=$as_save_IFS
8192   test -z "$as_dir" && as_dir=.
8193     for ac_exec_ext in '' $ac_executable_extensions; do
8194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8195     ac_cv_prog_ac_ct_STRIP="strip"
8196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8197     break 2
8198   fi
8199 done
8200   done
8201 IFS=$as_save_IFS
8202
8203 fi
8204 fi
8205 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8206 if test -n "$ac_ct_STRIP"; then
8207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8208 $as_echo "$ac_ct_STRIP" >&6; }
8209 else
8210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211 $as_echo "no" >&6; }
8212 fi
8213
8214   if test "x$ac_ct_STRIP" = x; then
8215     STRIP=":"
8216   else
8217     case $cross_compiling:$ac_tool_warned in
8218 yes:)
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8221 ac_tool_warned=yes ;;
8222 esac
8223     STRIP=$ac_ct_STRIP
8224   fi
8225 else
8226   STRIP="$ac_cv_prog_STRIP"
8227 fi
8228
8229 test -z "$STRIP" && STRIP=:
8230
8231
8232
8233
8234
8235
8236 if test -n "$ac_tool_prefix"; then
8237   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8238 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8240 $as_echo_n "checking for $ac_word... " >&6; }
8241 if ${ac_cv_prog_RANLIB+:} false; then :
8242   $as_echo_n "(cached) " >&6
8243 else
8244   if test -n "$RANLIB"; then
8245   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8246 else
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 for as_dir in $PATH
8249 do
8250   IFS=$as_save_IFS
8251   test -z "$as_dir" && as_dir=.
8252     for ac_exec_ext in '' $ac_executable_extensions; do
8253   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8254     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8256     break 2
8257   fi
8258 done
8259   done
8260 IFS=$as_save_IFS
8261
8262 fi
8263 fi
8264 RANLIB=$ac_cv_prog_RANLIB
8265 if test -n "$RANLIB"; then
8266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8267 $as_echo "$RANLIB" >&6; }
8268 else
8269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 $as_echo "no" >&6; }
8271 fi
8272
8273
8274 fi
8275 if test -z "$ac_cv_prog_RANLIB"; then
8276   ac_ct_RANLIB=$RANLIB
8277   # Extract the first word of "ranlib", so it can be a program name with args.
8278 set dummy ranlib; ac_word=$2
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280 $as_echo_n "checking for $ac_word... " >&6; }
8281 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8282   $as_echo_n "(cached) " >&6
8283 else
8284   if test -n "$ac_ct_RANLIB"; then
8285   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8286 else
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288 for as_dir in $PATH
8289 do
8290   IFS=$as_save_IFS
8291   test -z "$as_dir" && as_dir=.
8292     for ac_exec_ext in '' $ac_executable_extensions; do
8293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8294     ac_cv_prog_ac_ct_RANLIB="ranlib"
8295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8296     break 2
8297   fi
8298 done
8299   done
8300 IFS=$as_save_IFS
8301
8302 fi
8303 fi
8304 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8305 if test -n "$ac_ct_RANLIB"; then
8306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8307 $as_echo "$ac_ct_RANLIB" >&6; }
8308 else
8309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310 $as_echo "no" >&6; }
8311 fi
8312
8313   if test "x$ac_ct_RANLIB" = x; then
8314     RANLIB=":"
8315   else
8316     case $cross_compiling:$ac_tool_warned in
8317 yes:)
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8320 ac_tool_warned=yes ;;
8321 esac
8322     RANLIB=$ac_ct_RANLIB
8323   fi
8324 else
8325   RANLIB="$ac_cv_prog_RANLIB"
8326 fi
8327
8328 test -z "$RANLIB" && RANLIB=:
8329
8330
8331
8332
8333
8334
8335 # Determine commands to create old-style static archives.
8336 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8337 old_postinstall_cmds='chmod 644 $oldlib'
8338 old_postuninstall_cmds=
8339
8340 if test -n "$RANLIB"; then
8341   case $host_os in
8342   openbsd*)
8343     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8344     ;;
8345   *)
8346     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8347     ;;
8348   esac
8349   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8350 fi
8351
8352 case $host_os in
8353   darwin*)
8354     lock_old_archive_extraction=yes ;;
8355   *)
8356     lock_old_archive_extraction=no ;;
8357 esac
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379 for ac_prog in gawk mawk nawk awk
8380 do
8381   # Extract the first word of "$ac_prog", so it can be a program name with args.
8382 set dummy $ac_prog; ac_word=$2
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8384 $as_echo_n "checking for $ac_word... " >&6; }
8385 if ${ac_cv_prog_AWK+:} false; then :
8386   $as_echo_n "(cached) " >&6
8387 else
8388   if test -n "$AWK"; then
8389   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8390 else
8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 for as_dir in $PATH
8393 do
8394   IFS=$as_save_IFS
8395   test -z "$as_dir" && as_dir=.
8396     for ac_exec_ext in '' $ac_executable_extensions; do
8397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8398     ac_cv_prog_AWK="$ac_prog"
8399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400     break 2
8401   fi
8402 done
8403   done
8404 IFS=$as_save_IFS
8405
8406 fi
8407 fi
8408 AWK=$ac_cv_prog_AWK
8409 if test -n "$AWK"; then
8410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8411 $as_echo "$AWK" >&6; }
8412 else
8413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8414 $as_echo "no" >&6; }
8415 fi
8416
8417
8418   test -n "$AWK" && break
8419 done
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439 # If no C compiler was specified, use CC.
8440 LTCC=${LTCC-"$CC"}
8441
8442 # If no C compiler flags were specified, use CFLAGS.
8443 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8444
8445 # Allow CC to be a program name with arguments.
8446 compiler=$CC
8447
8448
8449 # Check for command to grab the raw symbol name followed by C symbol from nm.
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8451 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8452 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8453   $as_echo_n "(cached) " >&6
8454 else
8455
8456 # These are sane defaults that work on at least a few old systems.
8457 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8458
8459 # Character class describing NM global symbol codes.
8460 symcode='[BCDEGRST]'
8461
8462 # Regexp to match symbols that can be accessed directly from C.
8463 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8464
8465 # Define system-specific variables.
8466 case $host_os in
8467 aix*)
8468   symcode='[BCDT]'
8469   ;;
8470 cygwin* | mingw* | pw32* | cegcc*)
8471   symcode='[ABCDGISTW]'
8472   ;;
8473 hpux*)
8474   if test "$host_cpu" = ia64; then
8475     symcode='[ABCDEGRST]'
8476   fi
8477   ;;
8478 irix* | nonstopux*)
8479   symcode='[BCDEGRST]'
8480   ;;
8481 osf*)
8482   symcode='[BCDEGQRST]'
8483   ;;
8484 solaris*)
8485   symcode='[BDRT]'
8486   ;;
8487 sco3.2v5*)
8488   symcode='[DT]'
8489   ;;
8490 sysv4.2uw2*)
8491   symcode='[DT]'
8492   ;;
8493 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8494   symcode='[ABDT]'
8495   ;;
8496 sysv4)
8497   symcode='[DFNSTU]'
8498   ;;
8499 esac
8500
8501 # If we're using GNU nm, then use its standard symbol codes.
8502 case `$NM -V 2>&1` in
8503 *GNU* | *'with BFD'*)
8504   symcode='[ABCDGIRSTW]' ;;
8505 esac
8506
8507 # Transform an extracted symbol line into a proper C declaration.
8508 # Some systems (esp. on ia64) link data and code symbols differently,
8509 # so use this general approach.
8510 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8511
8512 # Transform an extracted symbol line into symbol name and symbol address
8513 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8514 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
8515
8516 # Handle CRLF in mingw tool chain
8517 opt_cr=
8518 case $build_os in
8519 mingw*)
8520   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8521   ;;
8522 esac
8523
8524 # Try without a prefix underscore, then with it.
8525 for ac_symprfx in "" "_"; do
8526
8527   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8528   symxfrm="\\1 $ac_symprfx\\2 \\2"
8529
8530   # Write the raw and C identifiers.
8531   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8532     # Fake it for dumpbin and say T for any non-static function
8533     # and D for any global variable.
8534     # Also find C++ and __fastcall symbols from MSVC++,
8535     # which start with @ or ?.
8536     lt_cv_sys_global_symbol_pipe="$AWK '"\
8537 "     {last_section=section; section=\$ 3};"\
8538 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8539 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8540 "     \$ 0!~/External *\|/{next};"\
8541 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8542 "     {if(hide[section]) next};"\
8543 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8544 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8545 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8546 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8547 "     ' prfx=^$ac_symprfx"
8548   else
8549     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8550   fi
8551   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8552
8553   # Check to see that the pipe works correctly.
8554   pipe_works=no
8555
8556   rm -f conftest*
8557   cat > conftest.$ac_ext <<_LT_EOF
8558 #ifdef __cplusplus
8559 extern "C" {
8560 #endif
8561 char nm_test_var;
8562 void nm_test_func(void);
8563 void nm_test_func(void){}
8564 #ifdef __cplusplus
8565 }
8566 #endif
8567 int main(){nm_test_var='a';nm_test_func();return(0);}
8568 _LT_EOF
8569
8570   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8571   (eval $ac_compile) 2>&5
8572   ac_status=$?
8573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8574   test $ac_status = 0; }; then
8575     # Now try to grab the symbols.
8576     nlist=conftest.nm
8577     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8578   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8579   ac_status=$?
8580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8581   test $ac_status = 0; } && test -s "$nlist"; then
8582       # Try sorting and uniquifying the output.
8583       if sort "$nlist" | uniq > "$nlist"T; then
8584         mv -f "$nlist"T "$nlist"
8585       else
8586         rm -f "$nlist"T
8587       fi
8588
8589       # Make sure that we snagged all the symbols we need.
8590       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8591         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8592           cat <<_LT_EOF > conftest.$ac_ext
8593 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8594 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8595 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8596    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8597 # define LT_DLSYM_CONST
8598 #elif defined(__osf__)
8599 /* This system does not cope well with relocations in const data.  */
8600 # define LT_DLSYM_CONST
8601 #else
8602 # define LT_DLSYM_CONST const
8603 #endif
8604
8605 #ifdef __cplusplus
8606 extern "C" {
8607 #endif
8608
8609 _LT_EOF
8610           # Now generate the symbol file.
8611           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8612
8613           cat <<_LT_EOF >> conftest.$ac_ext
8614
8615 /* The mapping between symbol names and symbols.  */
8616 LT_DLSYM_CONST struct {
8617   const char *name;
8618   void       *address;
8619 }
8620 lt__PROGRAM__LTX_preloaded_symbols[] =
8621 {
8622   { "@PROGRAM@", (void *) 0 },
8623 _LT_EOF
8624           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8625           cat <<\_LT_EOF >> conftest.$ac_ext
8626   {0, (void *) 0}
8627 };
8628
8629 /* This works around a problem in FreeBSD linker */
8630 #ifdef FREEBSD_WORKAROUND
8631 static const void *lt_preloaded_setup() {
8632   return lt__PROGRAM__LTX_preloaded_symbols;
8633 }
8634 #endif
8635
8636 #ifdef __cplusplus
8637 }
8638 #endif
8639 _LT_EOF
8640           # Now try linking the two files.
8641           mv conftest.$ac_objext conftstm.$ac_objext
8642           lt_globsym_save_LIBS=$LIBS
8643           lt_globsym_save_CFLAGS=$CFLAGS
8644           LIBS="conftstm.$ac_objext"
8645           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8646           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8647   (eval $ac_link) 2>&5
8648   ac_status=$?
8649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8650   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8651             pipe_works=yes
8652           fi
8653           LIBS=$lt_globsym_save_LIBS
8654           CFLAGS=$lt_globsym_save_CFLAGS
8655         else
8656           echo "cannot find nm_test_func in $nlist" >&5
8657         fi
8658       else
8659         echo "cannot find nm_test_var in $nlist" >&5
8660       fi
8661     else
8662       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8663     fi
8664   else
8665     echo "$progname: failed program was:" >&5
8666     cat conftest.$ac_ext >&5
8667   fi
8668   rm -rf conftest* conftst*
8669
8670   # Do not use the global_symbol_pipe unless it works.
8671   if test "$pipe_works" = yes; then
8672     break
8673   else
8674     lt_cv_sys_global_symbol_pipe=
8675   fi
8676 done
8677
8678 fi
8679
8680 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8681   lt_cv_sys_global_symbol_to_cdecl=
8682 fi
8683 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8685 $as_echo "failed" >&6; }
8686 else
8687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8688 $as_echo "ok" >&6; }
8689 fi
8690
8691 # Response file support.
8692 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8693   nm_file_list_spec='@'
8694 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8695   nm_file_list_spec='@'
8696 fi
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8725 $as_echo_n "checking for sysroot... " >&6; }
8726
8727 # Check whether --with-sysroot was given.
8728 if test "${with_sysroot+set}" = set; then :
8729   withval=$with_sysroot;
8730 else
8731   with_sysroot=no
8732 fi
8733
8734
8735 lt_sysroot=
8736 case ${with_sysroot} in #(
8737  yes)
8738    if test "$GCC" = yes; then
8739      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8740    fi
8741    ;; #(
8742  /*)
8743    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8744    ;; #(
8745  no|'')
8746    ;; #(
8747  *)
8748    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8749 $as_echo "${with_sysroot}" >&6; }
8750    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8751    ;;
8752 esac
8753
8754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8755 $as_echo "${lt_sysroot:-no}" >&6; }
8756
8757
8758
8759
8760
8761 # Check whether --enable-libtool-lock was given.
8762 if test "${enable_libtool_lock+set}" = set; then :
8763   enableval=$enable_libtool_lock;
8764 fi
8765
8766 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8767
8768 # Some flags need to be propagated to the compiler or linker for good
8769 # libtool support.
8770 case $host in
8771 ia64-*-hpux*)
8772   # Find out which ABI we are using.
8773   echo 'int i;' > conftest.$ac_ext
8774   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8775   (eval $ac_compile) 2>&5
8776   ac_status=$?
8777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8778   test $ac_status = 0; }; then
8779     case `/usr/bin/file conftest.$ac_objext` in
8780       *ELF-32*)
8781         HPUX_IA64_MODE="32"
8782         ;;
8783       *ELF-64*)
8784         HPUX_IA64_MODE="64"
8785         ;;
8786     esac
8787   fi
8788   rm -rf conftest*
8789   ;;
8790 *-*-irix6*)
8791   # Find out which ABI we are using.
8792   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8793   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8794   (eval $ac_compile) 2>&5
8795   ac_status=$?
8796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8797   test $ac_status = 0; }; then
8798     if test "$lt_cv_prog_gnu_ld" = yes; then
8799       case `/usr/bin/file conftest.$ac_objext` in
8800         *32-bit*)
8801           LD="${LD-ld} -melf32bsmip"
8802           ;;
8803         *N32*)
8804           LD="${LD-ld} -melf32bmipn32"
8805           ;;
8806         *64-bit*)
8807           LD="${LD-ld} -melf64bmip"
8808         ;;
8809       esac
8810     else
8811       case `/usr/bin/file conftest.$ac_objext` in
8812         *32-bit*)
8813           LD="${LD-ld} -32"
8814           ;;
8815         *N32*)
8816           LD="${LD-ld} -n32"
8817           ;;
8818         *64-bit*)
8819           LD="${LD-ld} -64"
8820           ;;
8821       esac
8822     fi
8823   fi
8824   rm -rf conftest*
8825   ;;
8826
8827 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8828 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8829   # Find out which ABI we are using.
8830   echo 'int i;' > conftest.$ac_ext
8831   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8832   (eval $ac_compile) 2>&5
8833   ac_status=$?
8834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8835   test $ac_status = 0; }; then
8836     case `/usr/bin/file conftest.o` in
8837       *32-bit*)
8838         case $host in
8839           x86_64-*kfreebsd*-gnu)
8840             LD="${LD-ld} -m elf_i386_fbsd"
8841             ;;
8842           x86_64-*linux*)
8843             LD="${LD-ld} -m elf_i386"
8844             ;;
8845           powerpc64le-*linux*)
8846             LD="${LD-ld} -m elf32lppclinux"
8847             ;;
8848           powerpc64-*linux*)
8849             LD="${LD-ld} -m elf32ppclinux"
8850             ;;
8851           s390x-*linux*)
8852             LD="${LD-ld} -m elf_s390"
8853             ;;
8854           sparc64-*linux*)
8855             LD="${LD-ld} -m elf32_sparc"
8856             ;;
8857         esac
8858         ;;
8859       *64-bit*)
8860         case $host in
8861           x86_64-*kfreebsd*-gnu)
8862             LD="${LD-ld} -m elf_x86_64_fbsd"
8863             ;;
8864           x86_64-*linux*)
8865             LD="${LD-ld} -m elf_x86_64"
8866             ;;
8867           powerpcle-*linux*)
8868             LD="${LD-ld} -m elf64lppc"
8869             ;;
8870           powerpc-*linux*)
8871             LD="${LD-ld} -m elf64ppc"
8872             ;;
8873           s390*-*linux*|s390*-*tpf*)
8874             LD="${LD-ld} -m elf64_s390"
8875             ;;
8876           sparc*-*linux*)
8877             LD="${LD-ld} -m elf64_sparc"
8878             ;;
8879         esac
8880         ;;
8881     esac
8882   fi
8883   rm -rf conftest*
8884   ;;
8885
8886 *-*-sco3.2v5*)
8887   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8888   SAVE_CFLAGS="$CFLAGS"
8889   CFLAGS="$CFLAGS -belf"
8890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8891 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8892 if ${lt_cv_cc_needs_belf+:} false; then :
8893   $as_echo_n "(cached) " >&6
8894 else
8895   ac_ext=c
8896 ac_cpp='$CPP $CPPFLAGS'
8897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8900
8901      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h.  */
8903
8904 int
8905 main ()
8906 {
8907
8908   ;
8909   return 0;
8910 }
8911 _ACEOF
8912 if ac_fn_c_try_link "$LINENO"; then :
8913   lt_cv_cc_needs_belf=yes
8914 else
8915   lt_cv_cc_needs_belf=no
8916 fi
8917 rm -f core conftest.err conftest.$ac_objext \
8918     conftest$ac_exeext conftest.$ac_ext
8919      ac_ext=c
8920 ac_cpp='$CPP $CPPFLAGS'
8921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8924
8925 fi
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8927 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8928   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8929     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8930     CFLAGS="$SAVE_CFLAGS"
8931   fi
8932   ;;
8933 *-*solaris*)
8934   # Find out which ABI we are using.
8935   echo 'int i;' > conftest.$ac_ext
8936   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8937   (eval $ac_compile) 2>&5
8938   ac_status=$?
8939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8940   test $ac_status = 0; }; then
8941     case `/usr/bin/file conftest.o` in
8942     *64-bit*)
8943       case $lt_cv_prog_gnu_ld in
8944       yes*)
8945         case $host in
8946         i?86-*-solaris*)
8947           LD="${LD-ld} -m elf_x86_64"
8948           ;;
8949         sparc*-*-solaris*)
8950           LD="${LD-ld} -m elf64_sparc"
8951           ;;
8952         esac
8953         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8954         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8955           LD="${LD-ld}_sol2"
8956         fi
8957         ;;
8958       *)
8959         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8960           LD="${LD-ld} -64"
8961         fi
8962         ;;
8963       esac
8964       ;;
8965     esac
8966   fi
8967   rm -rf conftest*
8968   ;;
8969 esac
8970
8971 need_locks="$enable_libtool_lock"
8972
8973 if test -n "$ac_tool_prefix"; then
8974   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8975 set dummy ${ac_tool_prefix}mt; ac_word=$2
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8977 $as_echo_n "checking for $ac_word... " >&6; }
8978 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8979   $as_echo_n "(cached) " >&6
8980 else
8981   if test -n "$MANIFEST_TOOL"; then
8982   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8983 else
8984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8985 for as_dir in $PATH
8986 do
8987   IFS=$as_save_IFS
8988   test -z "$as_dir" && as_dir=.
8989     for ac_exec_ext in '' $ac_executable_extensions; do
8990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8991     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8993     break 2
8994   fi
8995 done
8996   done
8997 IFS=$as_save_IFS
8998
8999 fi
9000 fi
9001 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9002 if test -n "$MANIFEST_TOOL"; then
9003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9004 $as_echo "$MANIFEST_TOOL" >&6; }
9005 else
9006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007 $as_echo "no" >&6; }
9008 fi
9009
9010
9011 fi
9012 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9013   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9014   # Extract the first word of "mt", so it can be a program name with args.
9015 set dummy mt; ac_word=$2
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9017 $as_echo_n "checking for $ac_word... " >&6; }
9018 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9019   $as_echo_n "(cached) " >&6
9020 else
9021   if test -n "$ac_ct_MANIFEST_TOOL"; then
9022   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9023 else
9024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9025 for as_dir in $PATH
9026 do
9027   IFS=$as_save_IFS
9028   test -z "$as_dir" && as_dir=.
9029     for ac_exec_ext in '' $ac_executable_extensions; do
9030   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9031     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9033     break 2
9034   fi
9035 done
9036   done
9037 IFS=$as_save_IFS
9038
9039 fi
9040 fi
9041 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9042 if test -n "$ac_ct_MANIFEST_TOOL"; then
9043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9044 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9045 else
9046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9047 $as_echo "no" >&6; }
9048 fi
9049
9050   if test "x$ac_ct_MANIFEST_TOOL" = x; then
9051     MANIFEST_TOOL=":"
9052   else
9053     case $cross_compiling:$ac_tool_warned in
9054 yes:)
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9057 ac_tool_warned=yes ;;
9058 esac
9059     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9060   fi
9061 else
9062   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9063 fi
9064
9065 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9067 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9068 if ${lt_cv_path_mainfest_tool+:} false; then :
9069   $as_echo_n "(cached) " >&6
9070 else
9071   lt_cv_path_mainfest_tool=no
9072   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9073   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9074   cat conftest.err >&5
9075   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9076     lt_cv_path_mainfest_tool=yes
9077   fi
9078   rm -f conftest*
9079 fi
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9081 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9082 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9083   MANIFEST_TOOL=:
9084 fi
9085
9086
9087
9088
9089
9090
9091   case $host_os in
9092     rhapsody* | darwin*)
9093     if test -n "$ac_tool_prefix"; then
9094   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9095 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9097 $as_echo_n "checking for $ac_word... " >&6; }
9098 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9099   $as_echo_n "(cached) " >&6
9100 else
9101   if test -n "$DSYMUTIL"; then
9102   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9103 else
9104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9105 for as_dir in $PATH
9106 do
9107   IFS=$as_save_IFS
9108   test -z "$as_dir" && as_dir=.
9109     for ac_exec_ext in '' $ac_executable_extensions; do
9110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9111     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9113     break 2
9114   fi
9115 done
9116   done
9117 IFS=$as_save_IFS
9118
9119 fi
9120 fi
9121 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9122 if test -n "$DSYMUTIL"; then
9123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9124 $as_echo "$DSYMUTIL" >&6; }
9125 else
9126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9127 $as_echo "no" >&6; }
9128 fi
9129
9130
9131 fi
9132 if test -z "$ac_cv_prog_DSYMUTIL"; then
9133   ac_ct_DSYMUTIL=$DSYMUTIL
9134   # Extract the first word of "dsymutil", so it can be a program name with args.
9135 set dummy dsymutil; ac_word=$2
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9139   $as_echo_n "(cached) " >&6
9140 else
9141   if test -n "$ac_ct_DSYMUTIL"; then
9142   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9143 else
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145 for as_dir in $PATH
9146 do
9147   IFS=$as_save_IFS
9148   test -z "$as_dir" && as_dir=.
9149     for ac_exec_ext in '' $ac_executable_extensions; do
9150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9151     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9153     break 2
9154   fi
9155 done
9156   done
9157 IFS=$as_save_IFS
9158
9159 fi
9160 fi
9161 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9162 if test -n "$ac_ct_DSYMUTIL"; then
9163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9164 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9165 else
9166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9168 fi
9169
9170   if test "x$ac_ct_DSYMUTIL" = x; then
9171     DSYMUTIL=":"
9172   else
9173     case $cross_compiling:$ac_tool_warned in
9174 yes:)
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9177 ac_tool_warned=yes ;;
9178 esac
9179     DSYMUTIL=$ac_ct_DSYMUTIL
9180   fi
9181 else
9182   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9183 fi
9184
9185     if test -n "$ac_tool_prefix"; then
9186   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9187 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9189 $as_echo_n "checking for $ac_word... " >&6; }
9190 if ${ac_cv_prog_NMEDIT+:} false; then :
9191   $as_echo_n "(cached) " >&6
9192 else
9193   if test -n "$NMEDIT"; then
9194   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9195 else
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197 for as_dir in $PATH
9198 do
9199   IFS=$as_save_IFS
9200   test -z "$as_dir" && as_dir=.
9201     for ac_exec_ext in '' $ac_executable_extensions; do
9202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9203     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9205     break 2
9206   fi
9207 done
9208   done
9209 IFS=$as_save_IFS
9210
9211 fi
9212 fi
9213 NMEDIT=$ac_cv_prog_NMEDIT
9214 if test -n "$NMEDIT"; then
9215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9216 $as_echo "$NMEDIT" >&6; }
9217 else
9218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219 $as_echo "no" >&6; }
9220 fi
9221
9222
9223 fi
9224 if test -z "$ac_cv_prog_NMEDIT"; then
9225   ac_ct_NMEDIT=$NMEDIT
9226   # Extract the first word of "nmedit", so it can be a program name with args.
9227 set dummy nmedit; ac_word=$2
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9229 $as_echo_n "checking for $ac_word... " >&6; }
9230 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9231   $as_echo_n "(cached) " >&6
9232 else
9233   if test -n "$ac_ct_NMEDIT"; then
9234   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9235 else
9236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9237 for as_dir in $PATH
9238 do
9239   IFS=$as_save_IFS
9240   test -z "$as_dir" && as_dir=.
9241     for ac_exec_ext in '' $ac_executable_extensions; do
9242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9243     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9245     break 2
9246   fi
9247 done
9248   done
9249 IFS=$as_save_IFS
9250
9251 fi
9252 fi
9253 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9254 if test -n "$ac_ct_NMEDIT"; then
9255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9256 $as_echo "$ac_ct_NMEDIT" >&6; }
9257 else
9258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259 $as_echo "no" >&6; }
9260 fi
9261
9262   if test "x$ac_ct_NMEDIT" = x; then
9263     NMEDIT=":"
9264   else
9265     case $cross_compiling:$ac_tool_warned in
9266 yes:)
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9269 ac_tool_warned=yes ;;
9270 esac
9271     NMEDIT=$ac_ct_NMEDIT
9272   fi
9273 else
9274   NMEDIT="$ac_cv_prog_NMEDIT"
9275 fi
9276
9277     if test -n "$ac_tool_prefix"; then
9278   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9279 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9281 $as_echo_n "checking for $ac_word... " >&6; }
9282 if ${ac_cv_prog_LIPO+:} false; then :
9283   $as_echo_n "(cached) " >&6
9284 else
9285   if test -n "$LIPO"; then
9286   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9287 else
9288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289 for as_dir in $PATH
9290 do
9291   IFS=$as_save_IFS
9292   test -z "$as_dir" && as_dir=.
9293     for ac_exec_ext in '' $ac_executable_extensions; do
9294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9295     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9297     break 2
9298   fi
9299 done
9300   done
9301 IFS=$as_save_IFS
9302
9303 fi
9304 fi
9305 LIPO=$ac_cv_prog_LIPO
9306 if test -n "$LIPO"; then
9307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9308 $as_echo "$LIPO" >&6; }
9309 else
9310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311 $as_echo "no" >&6; }
9312 fi
9313
9314
9315 fi
9316 if test -z "$ac_cv_prog_LIPO"; then
9317   ac_ct_LIPO=$LIPO
9318   # Extract the first word of "lipo", so it can be a program name with args.
9319 set dummy lipo; ac_word=$2
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321 $as_echo_n "checking for $ac_word... " >&6; }
9322 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9323   $as_echo_n "(cached) " >&6
9324 else
9325   if test -n "$ac_ct_LIPO"; then
9326   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9327 else
9328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329 for as_dir in $PATH
9330 do
9331   IFS=$as_save_IFS
9332   test -z "$as_dir" && as_dir=.
9333     for ac_exec_ext in '' $ac_executable_extensions; do
9334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9335     ac_cv_prog_ac_ct_LIPO="lipo"
9336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9337     break 2
9338   fi
9339 done
9340   done
9341 IFS=$as_save_IFS
9342
9343 fi
9344 fi
9345 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9346 if test -n "$ac_ct_LIPO"; then
9347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9348 $as_echo "$ac_ct_LIPO" >&6; }
9349 else
9350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9351 $as_echo "no" >&6; }
9352 fi
9353
9354   if test "x$ac_ct_LIPO" = x; then
9355     LIPO=":"
9356   else
9357     case $cross_compiling:$ac_tool_warned in
9358 yes:)
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9361 ac_tool_warned=yes ;;
9362 esac
9363     LIPO=$ac_ct_LIPO
9364   fi
9365 else
9366   LIPO="$ac_cv_prog_LIPO"
9367 fi
9368
9369     if test -n "$ac_tool_prefix"; then
9370   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9371 set dummy ${ac_tool_prefix}otool; 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_OTOOL+:} false; then :
9375   $as_echo_n "(cached) " >&6
9376 else
9377   if test -n "$OTOOL"; then
9378   ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool"
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 OTOOL=$ac_cv_prog_OTOOL
9398 if test -n "$OTOOL"; then
9399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9400 $as_echo "$OTOOL" >&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_OTOOL"; then
9409   ac_ct_OTOOL=$OTOOL
9410   # Extract the first word of "otool", so it can be a program name with args.
9411 set dummy otool; 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_OTOOL+:} false; then :
9415   $as_echo_n "(cached) " >&6
9416 else
9417   if test -n "$ac_ct_OTOOL"; then
9418   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_OTOOL="otool"
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_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9438 if test -n "$ac_ct_OTOOL"; then
9439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9440 $as_echo "$ac_ct_OTOOL" >&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_OTOOL" = x; then
9447     OTOOL=":"
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     OTOOL=$ac_ct_OTOOL
9456   fi
9457 else
9458   OTOOL="$ac_cv_prog_OTOOL"
9459 fi
9460
9461     if test -n "$ac_tool_prefix"; then
9462   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9463 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9465 $as_echo_n "checking for $ac_word... " >&6; }
9466 if ${ac_cv_prog_OTOOL64+:} false; then :
9467   $as_echo_n "(cached) " >&6
9468 else
9469   if test -n "$OTOOL64"; then
9470   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9471 else
9472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9473 for as_dir in $PATH
9474 do
9475   IFS=$as_save_IFS
9476   test -z "$as_dir" && as_dir=.
9477     for ac_exec_ext in '' $ac_executable_extensions; do
9478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9479     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9481     break 2
9482   fi
9483 done
9484   done
9485 IFS=$as_save_IFS
9486
9487 fi
9488 fi
9489 OTOOL64=$ac_cv_prog_OTOOL64
9490 if test -n "$OTOOL64"; then
9491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9492 $as_echo "$OTOOL64" >&6; }
9493 else
9494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9496 fi
9497
9498
9499 fi
9500 if test -z "$ac_cv_prog_OTOOL64"; then
9501   ac_ct_OTOOL64=$OTOOL64
9502   # Extract the first word of "otool64", so it can be a program name with args.
9503 set dummy otool64; ac_word=$2
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9505 $as_echo_n "checking for $ac_word... " >&6; }
9506 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9507   $as_echo_n "(cached) " >&6
9508 else
9509   if test -n "$ac_ct_OTOOL64"; then
9510   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9511 else
9512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9513 for as_dir in $PATH
9514 do
9515   IFS=$as_save_IFS
9516   test -z "$as_dir" && as_dir=.
9517     for ac_exec_ext in '' $ac_executable_extensions; do
9518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9519     ac_cv_prog_ac_ct_OTOOL64="otool64"
9520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9521     break 2
9522   fi
9523 done
9524   done
9525 IFS=$as_save_IFS
9526
9527 fi
9528 fi
9529 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9530 if test -n "$ac_ct_OTOOL64"; then
9531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9532 $as_echo "$ac_ct_OTOOL64" >&6; }
9533 else
9534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9535 $as_echo "no" >&6; }
9536 fi
9537
9538   if test "x$ac_ct_OTOOL64" = x; then
9539     OTOOL64=":"
9540   else
9541     case $cross_compiling:$ac_tool_warned in
9542 yes:)
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9545 ac_tool_warned=yes ;;
9546 esac
9547     OTOOL64=$ac_ct_OTOOL64
9548   fi
9549 else
9550   OTOOL64="$ac_cv_prog_OTOOL64"
9551 fi
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9580 $as_echo_n "checking for -single_module linker flag... " >&6; }
9581 if ${lt_cv_apple_cc_single_mod+:} false; then :
9582   $as_echo_n "(cached) " >&6
9583 else
9584   lt_cv_apple_cc_single_mod=no
9585       if test -z "${LT_MULTI_MODULE}"; then
9586         # By default we will add the -single_module flag. You can override
9587         # by either setting the environment variable LT_MULTI_MODULE
9588         # non-empty at configure time, or by adding -multi_module to the
9589         # link flags.
9590         rm -rf libconftest.dylib*
9591         echo "int foo(void){return 1;}" > conftest.c
9592         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9593 -dynamiclib -Wl,-single_module conftest.c" >&5
9594         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9595           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9596         _lt_result=$?
9597         # If there is a non-empty error log, and "single_module"
9598         # appears in it, assume the flag caused a linker warning
9599         if test -s conftest.err && $GREP single_module conftest.err; then
9600           cat conftest.err >&5
9601         # Otherwise, if the output was created with a 0 exit code from
9602         # the compiler, it worked.
9603         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9604           lt_cv_apple_cc_single_mod=yes
9605         else
9606           cat conftest.err >&5
9607         fi
9608         rm -rf libconftest.dylib*
9609         rm -f conftest.*
9610       fi
9611 fi
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9613 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9614
9615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9616 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9617 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9618   $as_echo_n "(cached) " >&6
9619 else
9620   lt_cv_ld_exported_symbols_list=no
9621       save_LDFLAGS=$LDFLAGS
9622       echo "_main" > conftest.sym
9623       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9624       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h.  */
9626
9627 int
9628 main ()
9629 {
9630
9631   ;
9632   return 0;
9633 }
9634 _ACEOF
9635 if ac_fn_c_try_link "$LINENO"; then :
9636   lt_cv_ld_exported_symbols_list=yes
9637 else
9638   lt_cv_ld_exported_symbols_list=no
9639 fi
9640 rm -f core conftest.err conftest.$ac_objext \
9641     conftest$ac_exeext conftest.$ac_ext
9642         LDFLAGS="$save_LDFLAGS"
9643
9644 fi
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9646 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9647
9648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9649 $as_echo_n "checking for -force_load linker flag... " >&6; }
9650 if ${lt_cv_ld_force_load+:} false; then :
9651   $as_echo_n "(cached) " >&6
9652 else
9653   lt_cv_ld_force_load=no
9654       cat > conftest.c << _LT_EOF
9655 int forced_loaded() { return 2;}
9656 _LT_EOF
9657       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9658       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9659       echo "$AR cru libconftest.a conftest.o" >&5
9660       $AR cru libconftest.a conftest.o 2>&5
9661       echo "$RANLIB libconftest.a" >&5
9662       $RANLIB libconftest.a 2>&5
9663       cat > conftest.c << _LT_EOF
9664 int main() { return 0;}
9665 _LT_EOF
9666       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9667       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9668       _lt_result=$?
9669       if test -s conftest.err && $GREP force_load conftest.err; then
9670         cat conftest.err >&5
9671       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9672         lt_cv_ld_force_load=yes
9673       else
9674         cat conftest.err >&5
9675       fi
9676         rm -f conftest.err libconftest.a conftest conftest.c
9677         rm -rf conftest.dSYM
9678
9679 fi
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9681 $as_echo "$lt_cv_ld_force_load" >&6; }
9682     case $host_os in
9683     rhapsody* | darwin1.[012])
9684       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9685     darwin1.*)
9686       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9687     darwin*) # darwin 5.x on
9688       # if running on 10.5 or later, the deployment target defaults
9689       # to the OS version, if on x86, and 10.4, the deployment
9690       # target defaults to 10.4. Don't you love it?
9691       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9692         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9693           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9694         10.[012]*)
9695           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9696         10.*)
9697           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9698       esac
9699     ;;
9700   esac
9701     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9702       _lt_dar_single_mod='$single_module'
9703     fi
9704     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9705       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9706     else
9707       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9708     fi
9709     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9710       _lt_dsymutil='~$DSYMUTIL $lib || :'
9711     else
9712       _lt_dsymutil=
9713     fi
9714     ;;
9715   esac
9716
9717 for ac_header in dlfcn.h
9718 do :
9719   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9720 "
9721 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9722   cat >>confdefs.h <<_ACEOF
9723 #define HAVE_DLFCN_H 1
9724 _ACEOF
9725
9726 fi
9727
9728 done
9729
9730
9731
9732
9733
9734
9735
9736 # Set options
9737
9738
9739
9740         enable_dlopen=no
9741
9742
9743   enable_win32_dll=no
9744
9745
9746             # Check whether --enable-shared was given.
9747 if test "${enable_shared+set}" = set; then :
9748   enableval=$enable_shared; p=${PACKAGE-default}
9749     case $enableval in
9750     yes) enable_shared=yes ;;
9751     no) enable_shared=no ;;
9752     *)
9753       enable_shared=no
9754       # Look at the argument we got.  We use all the common list separators.
9755       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9756       for pkg in $enableval; do
9757         IFS="$lt_save_ifs"
9758         if test "X$pkg" = "X$p"; then
9759           enable_shared=yes
9760         fi
9761       done
9762       IFS="$lt_save_ifs"
9763       ;;
9764     esac
9765 else
9766   enable_shared=yes
9767 fi
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777   # Check whether --enable-static was given.
9778 if test "${enable_static+set}" = set; then :
9779   enableval=$enable_static; p=${PACKAGE-default}
9780     case $enableval in
9781     yes) enable_static=yes ;;
9782     no) enable_static=no ;;
9783     *)
9784      enable_static=no
9785       # Look at the argument we got.  We use all the common list separators.
9786       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9787       for pkg in $enableval; do
9788         IFS="$lt_save_ifs"
9789         if test "X$pkg" = "X$p"; then
9790           enable_static=yes
9791         fi
9792       done
9793       IFS="$lt_save_ifs"
9794       ;;
9795     esac
9796 else
9797   enable_static=yes
9798 fi
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809 # Check whether --with-pic was given.
9810 if test "${with_pic+set}" = set; then :
9811   withval=$with_pic; lt_p=${PACKAGE-default}
9812     case $withval in
9813     yes|no) pic_mode=$withval ;;
9814     *)
9815       pic_mode=default
9816       # Look at the argument we got.  We use all the common list separators.
9817       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9818       for lt_pkg in $withval; do
9819         IFS="$lt_save_ifs"
9820         if test "X$lt_pkg" = "X$lt_p"; then
9821           pic_mode=yes
9822         fi
9823       done
9824       IFS="$lt_save_ifs"
9825       ;;
9826     esac
9827 else
9828   pic_mode=default
9829 fi
9830
9831
9832 test -z "$pic_mode" && pic_mode=default
9833
9834
9835
9836
9837
9838
9839
9840   # Check whether --enable-fast-install was given.
9841 if test "${enable_fast_install+set}" = set; then :
9842   enableval=$enable_fast_install; p=${PACKAGE-default}
9843     case $enableval in
9844     yes) enable_fast_install=yes ;;
9845     no) enable_fast_install=no ;;
9846     *)
9847       enable_fast_install=no
9848       # Look at the argument we got.  We use all the common list separators.
9849       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9850       for pkg in $enableval; do
9851         IFS="$lt_save_ifs"
9852         if test "X$pkg" = "X$p"; then
9853           enable_fast_install=yes
9854         fi
9855       done
9856       IFS="$lt_save_ifs"
9857       ;;
9858     esac
9859 else
9860   enable_fast_install=yes
9861 fi
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873 # This can be used to rebuild libtool when needed
9874 LIBTOOL_DEPS="$ltmain"
9875
9876 # Always use our own libtool.
9877 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908 test -z "$LN_S" && LN_S="ln -s"
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923 if test -n "${ZSH_VERSION+set}" ; then
9924    setopt NO_GLOB_SUBST
9925 fi
9926
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9928 $as_echo_n "checking for objdir... " >&6; }
9929 if ${lt_cv_objdir+:} false; then :
9930   $as_echo_n "(cached) " >&6
9931 else
9932   rm -f .libs 2>/dev/null
9933 mkdir .libs 2>/dev/null
9934 if test -d .libs; then
9935   lt_cv_objdir=.libs
9936 else
9937   # MS-DOS does not allow filenames that begin with a dot.
9938   lt_cv_objdir=_libs
9939 fi
9940 rmdir .libs 2>/dev/null
9941 fi
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9943 $as_echo "$lt_cv_objdir" >&6; }
9944 objdir=$lt_cv_objdir
9945
9946
9947
9948
9949
9950 cat >>confdefs.h <<_ACEOF
9951 #define LT_OBJDIR "$lt_cv_objdir/"
9952 _ACEOF
9953
9954
9955
9956
9957 case $host_os in
9958 aix3*)
9959   # AIX sometimes has problems with the GCC collect2 program.  For some
9960   # reason, if we set the COLLECT_NAMES environment variable, the problems
9961   # vanish in a puff of smoke.
9962   if test "X${COLLECT_NAMES+set}" != Xset; then
9963     COLLECT_NAMES=
9964     export COLLECT_NAMES
9965   fi
9966   ;;
9967 esac
9968
9969 # Global variables:
9970 ofile=libtool
9971 can_build_shared=yes
9972
9973 # All known linkers require a `.a' archive for static linking (except MSVC,
9974 # which needs '.lib').
9975 libext=a
9976
9977 with_gnu_ld="$lt_cv_prog_gnu_ld"
9978
9979 old_CC="$CC"
9980 old_CFLAGS="$CFLAGS"
9981
9982 # Set sane defaults for various variables
9983 test -z "$CC" && CC=cc
9984 test -z "$LTCC" && LTCC=$CC
9985 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9986 test -z "$LD" && LD=ld
9987 test -z "$ac_objext" && ac_objext=o
9988
9989 for cc_temp in $compiler""; do
9990   case $cc_temp in
9991     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9992     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9993     \-*) ;;
9994     *) break;;
9995   esac
9996 done
9997 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9998
9999
10000 # Only perform the check for file, if the check method requires it
10001 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10002 case $deplibs_check_method in
10003 file_magic*)
10004   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10006 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10007 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10008   $as_echo_n "(cached) " >&6
10009 else
10010   case $MAGIC_CMD in
10011 [\\/*] |  ?:[\\/]*)
10012   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10013   ;;
10014 *)
10015   lt_save_MAGIC_CMD="$MAGIC_CMD"
10016   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10017   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10018   for ac_dir in $ac_dummy; do
10019     IFS="$lt_save_ifs"
10020     test -z "$ac_dir" && ac_dir=.
10021     if test -f $ac_dir/${ac_tool_prefix}file; then
10022       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10023       if test -n "$file_magic_test_file"; then
10024         case $deplibs_check_method in
10025         "file_magic "*)
10026           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10027           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10028           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10029             $EGREP "$file_magic_regex" > /dev/null; then
10030             :
10031           else
10032             cat <<_LT_EOF 1>&2
10033
10034 *** Warning: the command libtool uses to detect shared libraries,
10035 *** $file_magic_cmd, produces output that libtool cannot recognize.
10036 *** The result is that libtool may fail to recognize shared libraries
10037 *** as such.  This will affect the creation of libtool libraries that
10038 *** depend on shared libraries, but programs linked with such libtool
10039 *** libraries will work regardless of this problem.  Nevertheless, you
10040 *** may want to report the problem to your system manager and/or to
10041 *** bug-libtool@gnu.org
10042
10043 _LT_EOF
10044           fi ;;
10045         esac
10046       fi
10047       break
10048     fi
10049   done
10050   IFS="$lt_save_ifs"
10051   MAGIC_CMD="$lt_save_MAGIC_CMD"
10052   ;;
10053 esac
10054 fi
10055
10056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10057 if test -n "$MAGIC_CMD"; then
10058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10059 $as_echo "$MAGIC_CMD" >&6; }
10060 else
10061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10062 $as_echo "no" >&6; }
10063 fi
10064
10065
10066
10067
10068
10069 if test -z "$lt_cv_path_MAGIC_CMD"; then
10070   if test -n "$ac_tool_prefix"; then
10071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10072 $as_echo_n "checking for file... " >&6; }
10073 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10074   $as_echo_n "(cached) " >&6
10075 else
10076   case $MAGIC_CMD in
10077 [\\/*] |  ?:[\\/]*)
10078   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10079   ;;
10080 *)
10081   lt_save_MAGIC_CMD="$MAGIC_CMD"
10082   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10083   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10084   for ac_dir in $ac_dummy; do
10085     IFS="$lt_save_ifs"
10086     test -z "$ac_dir" && ac_dir=.
10087     if test -f $ac_dir/file; then
10088       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10089       if test -n "$file_magic_test_file"; then
10090         case $deplibs_check_method in
10091         "file_magic "*)
10092           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10093           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10094           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10095             $EGREP "$file_magic_regex" > /dev/null; then
10096             :
10097           else
10098             cat <<_LT_EOF 1>&2
10099
10100 *** Warning: the command libtool uses to detect shared libraries,
10101 *** $file_magic_cmd, produces output that libtool cannot recognize.
10102 *** The result is that libtool may fail to recognize shared libraries
10103 *** as such.  This will affect the creation of libtool libraries that
10104 *** depend on shared libraries, but programs linked with such libtool
10105 *** libraries will work regardless of this problem.  Nevertheless, you
10106 *** may want to report the problem to your system manager and/or to
10107 *** bug-libtool@gnu.org
10108
10109 _LT_EOF
10110           fi ;;
10111         esac
10112       fi
10113       break
10114     fi
10115   done
10116   IFS="$lt_save_ifs"
10117   MAGIC_CMD="$lt_save_MAGIC_CMD"
10118   ;;
10119 esac
10120 fi
10121
10122 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10123 if test -n "$MAGIC_CMD"; then
10124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10125 $as_echo "$MAGIC_CMD" >&6; }
10126 else
10127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10128 $as_echo "no" >&6; }
10129 fi
10130
10131
10132   else
10133     MAGIC_CMD=:
10134   fi
10135 fi
10136
10137   fi
10138   ;;
10139 esac
10140
10141 # Use C for the default configuration in the libtool script
10142
10143 lt_save_CC="$CC"
10144 ac_ext=c
10145 ac_cpp='$CPP $CPPFLAGS'
10146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10149
10150
10151 # Source file extension for C test sources.
10152 ac_ext=c
10153
10154 # Object file extension for compiled C test sources.
10155 objext=o
10156 objext=$objext
10157
10158 # Code to be used in simple compile tests
10159 lt_simple_compile_test_code="int some_variable = 0;"
10160
10161 # Code to be used in simple link tests
10162 lt_simple_link_test_code='int main(){return(0);}'
10163
10164
10165
10166
10167
10168
10169
10170 # If no C compiler was specified, use CC.
10171 LTCC=${LTCC-"$CC"}
10172
10173 # If no C compiler flags were specified, use CFLAGS.
10174 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10175
10176 # Allow CC to be a program name with arguments.
10177 compiler=$CC
10178
10179 # Save the default compiler, since it gets overwritten when the other
10180 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10181 compiler_DEFAULT=$CC
10182
10183 # save warnings/boilerplate of simple test code
10184 ac_outfile=conftest.$ac_objext
10185 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10186 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10187 _lt_compiler_boilerplate=`cat conftest.err`
10188 $RM conftest*
10189
10190 ac_outfile=conftest.$ac_objext
10191 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10192 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10193 _lt_linker_boilerplate=`cat conftest.err`
10194 $RM -r conftest*
10195
10196
10197 if test -n "$compiler"; then
10198
10199 lt_prog_compiler_no_builtin_flag=
10200
10201 if test "$GCC" = yes; then
10202   case $cc_basename in
10203   nvcc*)
10204     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10205   *)
10206     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10207   esac
10208
10209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10210 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10211 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10212   $as_echo_n "(cached) " >&6
10213 else
10214   lt_cv_prog_compiler_rtti_exceptions=no
10215    ac_outfile=conftest.$ac_objext
10216    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10217    lt_compiler_flag="-fno-rtti -fno-exceptions"
10218    # Insert the option either (1) after the last *FLAGS variable, or
10219    # (2) before a word containing "conftest.", or (3) at the end.
10220    # Note that $ac_compile itself does not contain backslashes and begins
10221    # with a dollar sign (not a hyphen), so the echo should work correctly.
10222    # The option is referenced via a variable to avoid confusing sed.
10223    lt_compile=`echo "$ac_compile" | $SED \
10224    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10225    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10226    -e 's:$: $lt_compiler_flag:'`
10227    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10228    (eval "$lt_compile" 2>conftest.err)
10229    ac_status=$?
10230    cat conftest.err >&5
10231    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232    if (exit $ac_status) && test -s "$ac_outfile"; then
10233      # The compiler can only warn and ignore the option if not recognized
10234      # So say no if there are warnings other than the usual output.
10235      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10236      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10237      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10238        lt_cv_prog_compiler_rtti_exceptions=yes
10239      fi
10240    fi
10241    $RM conftest*
10242
10243 fi
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10245 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10246
10247 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10248     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10249 else
10250     :
10251 fi
10252
10253 fi
10254
10255
10256
10257
10258
10259
10260   lt_prog_compiler_wl=
10261 lt_prog_compiler_pic=
10262 lt_prog_compiler_static=
10263
10264
10265   if test "$GCC" = yes; then
10266     lt_prog_compiler_wl='-Wl,'
10267     lt_prog_compiler_static='-static'
10268
10269     case $host_os in
10270       aix*)
10271       # All AIX code is PIC.
10272       if test "$host_cpu" = ia64; then
10273         # AIX 5 now supports IA64 processor
10274         lt_prog_compiler_static='-Bstatic'
10275       fi
10276       ;;
10277
10278     amigaos*)
10279       case $host_cpu in
10280       powerpc)
10281             # see comment about AmigaOS4 .so support
10282             lt_prog_compiler_pic='-fPIC'
10283         ;;
10284       m68k)
10285             # FIXME: we need at least 68020 code to build shared libraries, but
10286             # adding the `-m68020' flag to GCC prevents building anything better,
10287             # like `-m68040'.
10288             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10289         ;;
10290       esac
10291       ;;
10292
10293     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10294       # PIC is the default for these OSes.
10295       ;;
10296
10297     mingw* | cygwin* | pw32* | os2* | cegcc*)
10298       # This hack is so that the source file can tell whether it is being
10299       # built for inclusion in a dll (and should export symbols for example).
10300       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10301       # (--disable-auto-import) libraries
10302       lt_prog_compiler_pic='-DDLL_EXPORT'
10303       ;;
10304
10305     darwin* | rhapsody*)
10306       # PIC is the default on this platform
10307       # Common symbols not allowed in MH_DYLIB files
10308       lt_prog_compiler_pic='-fno-common'
10309       ;;
10310
10311     haiku*)
10312       # PIC is the default for Haiku.
10313       # The "-static" flag exists, but is broken.
10314       lt_prog_compiler_static=
10315       ;;
10316
10317     hpux*)
10318       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10319       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10320       # sets the default TLS model and affects inlining.
10321       case $host_cpu in
10322       hppa*64*)
10323         # +Z the default
10324         ;;
10325       *)
10326         lt_prog_compiler_pic='-fPIC'
10327         ;;
10328       esac
10329       ;;
10330
10331     interix[3-9]*)
10332       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10333       # Instead, we relocate shared libraries at runtime.
10334       ;;
10335
10336     msdosdjgpp*)
10337       # Just because we use GCC doesn't mean we suddenly get shared libraries
10338       # on systems that don't support them.
10339       lt_prog_compiler_can_build_shared=no
10340       enable_shared=no
10341       ;;
10342
10343     *nto* | *qnx*)
10344       # QNX uses GNU C++, but need to define -shared option too, otherwise
10345       # it will coredump.
10346       lt_prog_compiler_pic='-fPIC -shared'
10347       ;;
10348
10349     sysv4*MP*)
10350       if test -d /usr/nec; then
10351         lt_prog_compiler_pic=-Kconform_pic
10352       fi
10353       ;;
10354
10355     *)
10356       lt_prog_compiler_pic='-fPIC'
10357       ;;
10358     esac
10359
10360     case $cc_basename in
10361     nvcc*) # Cuda Compiler Driver 2.2
10362       lt_prog_compiler_wl='-Xlinker '
10363       if test -n "$lt_prog_compiler_pic"; then
10364         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10365       fi
10366       ;;
10367     esac
10368   else
10369     # PORTME Check for flag to pass linker flags through the system compiler.
10370     case $host_os in
10371     aix*)
10372       lt_prog_compiler_wl='-Wl,'
10373       if test "$host_cpu" = ia64; then
10374         # AIX 5 now supports IA64 processor
10375         lt_prog_compiler_static='-Bstatic'
10376       else
10377         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10378       fi
10379       ;;
10380
10381     mingw* | cygwin* | pw32* | os2* | cegcc*)
10382       # This hack is so that the source file can tell whether it is being
10383       # built for inclusion in a dll (and should export symbols for example).
10384       lt_prog_compiler_pic='-DDLL_EXPORT'
10385       ;;
10386
10387     hpux9* | hpux10* | hpux11*)
10388       lt_prog_compiler_wl='-Wl,'
10389       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10390       # not for PA HP-UX.
10391       case $host_cpu in
10392       hppa*64*|ia64*)
10393         # +Z the default
10394         ;;
10395       *)
10396         lt_prog_compiler_pic='+Z'
10397         ;;
10398       esac
10399       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10400       lt_prog_compiler_static='${wl}-a ${wl}archive'
10401       ;;
10402
10403     irix5* | irix6* | nonstopux*)
10404       lt_prog_compiler_wl='-Wl,'
10405       # PIC (with -KPIC) is the default.
10406       lt_prog_compiler_static='-non_shared'
10407       ;;
10408
10409     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10410       case $cc_basename in
10411       # old Intel for x86_64 which still supported -KPIC.
10412       ecc*)
10413         lt_prog_compiler_wl='-Wl,'
10414         lt_prog_compiler_pic='-KPIC'
10415         lt_prog_compiler_static='-static'
10416         ;;
10417       # icc used to be incompatible with GCC.
10418       # ICC 10 doesn't accept -KPIC any more.
10419       icc* | ifort*)
10420         lt_prog_compiler_wl='-Wl,'
10421         lt_prog_compiler_pic='-fPIC'
10422         lt_prog_compiler_static='-static'
10423         ;;
10424       # Lahey Fortran 8.1.
10425       lf95*)
10426         lt_prog_compiler_wl='-Wl,'
10427         lt_prog_compiler_pic='--shared'
10428         lt_prog_compiler_static='--static'
10429         ;;
10430       nagfor*)
10431         # NAG Fortran compiler
10432         lt_prog_compiler_wl='-Wl,-Wl,,'
10433         lt_prog_compiler_pic='-PIC'
10434         lt_prog_compiler_static='-Bstatic'
10435         ;;
10436       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10437         # Portland Group compilers (*not* the Pentium gcc compiler,
10438         # which looks to be a dead project)
10439         lt_prog_compiler_wl='-Wl,'
10440         lt_prog_compiler_pic='-fpic'
10441         lt_prog_compiler_static='-Bstatic'
10442         ;;
10443       ccc*)
10444         lt_prog_compiler_wl='-Wl,'
10445         # All Alpha code is PIC.
10446         lt_prog_compiler_static='-non_shared'
10447         ;;
10448       xl* | bgxl* | bgf* | mpixl*)
10449         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10450         lt_prog_compiler_wl='-Wl,'
10451         lt_prog_compiler_pic='-qpic'
10452         lt_prog_compiler_static='-qstaticlink'
10453         ;;
10454       *)
10455         case `$CC -V 2>&1 | sed 5q` in
10456         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10457           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10458           lt_prog_compiler_pic='-KPIC'
10459           lt_prog_compiler_static='-Bstatic'
10460           lt_prog_compiler_wl=''
10461           ;;
10462         *Sun\ F* | *Sun*Fortran*)
10463           lt_prog_compiler_pic='-KPIC'
10464           lt_prog_compiler_static='-Bstatic'
10465           lt_prog_compiler_wl='-Qoption ld '
10466           ;;
10467         *Sun\ C*)
10468           # Sun C 5.9
10469           lt_prog_compiler_pic='-KPIC'
10470           lt_prog_compiler_static='-Bstatic'
10471           lt_prog_compiler_wl='-Wl,'
10472           ;;
10473         *Intel*\ [CF]*Compiler*)
10474           lt_prog_compiler_wl='-Wl,'
10475           lt_prog_compiler_pic='-fPIC'
10476           lt_prog_compiler_static='-static'
10477           ;;
10478         *Portland\ Group*)
10479           lt_prog_compiler_wl='-Wl,'
10480           lt_prog_compiler_pic='-fpic'
10481           lt_prog_compiler_static='-Bstatic'
10482           ;;
10483         esac
10484         ;;
10485       esac
10486       ;;
10487
10488     newsos6)
10489       lt_prog_compiler_pic='-KPIC'
10490       lt_prog_compiler_static='-Bstatic'
10491       ;;
10492
10493     *nto* | *qnx*)
10494       # QNX uses GNU C++, but need to define -shared option too, otherwise
10495       # it will coredump.
10496       lt_prog_compiler_pic='-fPIC -shared'
10497       ;;
10498
10499     osf3* | osf4* | osf5*)
10500       lt_prog_compiler_wl='-Wl,'
10501       # All OSF/1 code is PIC.
10502       lt_prog_compiler_static='-non_shared'
10503       ;;
10504
10505     rdos*)
10506       lt_prog_compiler_static='-non_shared'
10507       ;;
10508
10509     solaris*)
10510       lt_prog_compiler_pic='-KPIC'
10511       lt_prog_compiler_static='-Bstatic'
10512       case $cc_basename in
10513       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10514         lt_prog_compiler_wl='-Qoption ld ';;
10515       *)
10516         lt_prog_compiler_wl='-Wl,';;
10517       esac
10518       ;;
10519
10520     sunos4*)
10521       lt_prog_compiler_wl='-Qoption ld '
10522       lt_prog_compiler_pic='-PIC'
10523       lt_prog_compiler_static='-Bstatic'
10524       ;;
10525
10526     sysv4 | sysv4.2uw2* | sysv4.3*)
10527       lt_prog_compiler_wl='-Wl,'
10528       lt_prog_compiler_pic='-KPIC'
10529       lt_prog_compiler_static='-Bstatic'
10530       ;;
10531
10532     sysv4*MP*)
10533       if test -d /usr/nec ;then
10534         lt_prog_compiler_pic='-Kconform_pic'
10535         lt_prog_compiler_static='-Bstatic'
10536       fi
10537       ;;
10538
10539     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10540       lt_prog_compiler_wl='-Wl,'
10541       lt_prog_compiler_pic='-KPIC'
10542       lt_prog_compiler_static='-Bstatic'
10543       ;;
10544
10545     unicos*)
10546       lt_prog_compiler_wl='-Wl,'
10547       lt_prog_compiler_can_build_shared=no
10548       ;;
10549
10550     uts4*)
10551       lt_prog_compiler_pic='-pic'
10552       lt_prog_compiler_static='-Bstatic'
10553       ;;
10554
10555     *)
10556       lt_prog_compiler_can_build_shared=no
10557       ;;
10558     esac
10559   fi
10560
10561 case $host_os in
10562   # For platforms which do not support PIC, -DPIC is meaningless:
10563   *djgpp*)
10564     lt_prog_compiler_pic=
10565     ;;
10566   *)
10567     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10568     ;;
10569 esac
10570
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10572 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10573 if ${lt_cv_prog_compiler_pic+:} false; then :
10574   $as_echo_n "(cached) " >&6
10575 else
10576   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10577 fi
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10579 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10580 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10581
10582 #
10583 # Check to make sure the PIC flag actually works.
10584 #
10585 if test -n "$lt_prog_compiler_pic"; then
10586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10587 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10588 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10589   $as_echo_n "(cached) " >&6
10590 else
10591   lt_cv_prog_compiler_pic_works=no
10592    ac_outfile=conftest.$ac_objext
10593    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10594    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10595    # Insert the option either (1) after the last *FLAGS variable, or
10596    # (2) before a word containing "conftest.", or (3) at the end.
10597    # Note that $ac_compile itself does not contain backslashes and begins
10598    # with a dollar sign (not a hyphen), so the echo should work correctly.
10599    # The option is referenced via a variable to avoid confusing sed.
10600    lt_compile=`echo "$ac_compile" | $SED \
10601    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10602    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10603    -e 's:$: $lt_compiler_flag:'`
10604    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10605    (eval "$lt_compile" 2>conftest.err)
10606    ac_status=$?
10607    cat conftest.err >&5
10608    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609    if (exit $ac_status) && test -s "$ac_outfile"; then
10610      # The compiler can only warn and ignore the option if not recognized
10611      # So say no if there are warnings other than the usual output.
10612      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10613      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10614      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10615        lt_cv_prog_compiler_pic_works=yes
10616      fi
10617    fi
10618    $RM conftest*
10619
10620 fi
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10622 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10623
10624 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10625     case $lt_prog_compiler_pic in
10626      "" | " "*) ;;
10627      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10628      esac
10629 else
10630     lt_prog_compiler_pic=
10631      lt_prog_compiler_can_build_shared=no
10632 fi
10633
10634 fi
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646 #
10647 # Check to make sure the static flag actually works.
10648 #
10649 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10651 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10652 if ${lt_cv_prog_compiler_static_works+:} false; then :
10653   $as_echo_n "(cached) " >&6
10654 else
10655   lt_cv_prog_compiler_static_works=no
10656    save_LDFLAGS="$LDFLAGS"
10657    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10658    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10659    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10660      # The linker can only warn and ignore the option if not recognized
10661      # So say no if there are warnings
10662      if test -s conftest.err; then
10663        # Append any errors to the config.log.
10664        cat conftest.err 1>&5
10665        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10666        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10667        if diff conftest.exp conftest.er2 >/dev/null; then
10668          lt_cv_prog_compiler_static_works=yes
10669        fi
10670      else
10671        lt_cv_prog_compiler_static_works=yes
10672      fi
10673    fi
10674    $RM -r conftest*
10675    LDFLAGS="$save_LDFLAGS"
10676
10677 fi
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10679 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10680
10681 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10682     :
10683 else
10684     lt_prog_compiler_static=
10685 fi
10686
10687
10688
10689
10690
10691
10692
10693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10694 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10695 if ${lt_cv_prog_compiler_c_o+:} false; then :
10696   $as_echo_n "(cached) " >&6
10697 else
10698   lt_cv_prog_compiler_c_o=no
10699    $RM -r conftest 2>/dev/null
10700    mkdir conftest
10701    cd conftest
10702    mkdir out
10703    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10704
10705    lt_compiler_flag="-o out/conftest2.$ac_objext"
10706    # Insert the option either (1) after the last *FLAGS variable, or
10707    # (2) before a word containing "conftest.", or (3) at the end.
10708    # Note that $ac_compile itself does not contain backslashes and begins
10709    # with a dollar sign (not a hyphen), so the echo should work correctly.
10710    lt_compile=`echo "$ac_compile" | $SED \
10711    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10712    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10713    -e 's:$: $lt_compiler_flag:'`
10714    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10715    (eval "$lt_compile" 2>out/conftest.err)
10716    ac_status=$?
10717    cat out/conftest.err >&5
10718    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10720    then
10721      # The compiler can only warn and ignore the option if not recognized
10722      # So say no if there are warnings
10723      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10724      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10725      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10726        lt_cv_prog_compiler_c_o=yes
10727      fi
10728    fi
10729    chmod u+w . 2>&5
10730    $RM conftest*
10731    # SGI C++ compiler will create directory out/ii_files/ for
10732    # template instantiation
10733    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10734    $RM out/* && rmdir out
10735    cd ..
10736    $RM -r conftest
10737    $RM conftest*
10738
10739 fi
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10741 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10742
10743
10744
10745
10746
10747
10748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10749 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10750 if ${lt_cv_prog_compiler_c_o+:} false; then :
10751   $as_echo_n "(cached) " >&6
10752 else
10753   lt_cv_prog_compiler_c_o=no
10754    $RM -r conftest 2>/dev/null
10755    mkdir conftest
10756    cd conftest
10757    mkdir out
10758    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10759
10760    lt_compiler_flag="-o out/conftest2.$ac_objext"
10761    # Insert the option either (1) after the last *FLAGS variable, or
10762    # (2) before a word containing "conftest.", or (3) at the end.
10763    # Note that $ac_compile itself does not contain backslashes and begins
10764    # with a dollar sign (not a hyphen), so the echo should work correctly.
10765    lt_compile=`echo "$ac_compile" | $SED \
10766    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10767    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10768    -e 's:$: $lt_compiler_flag:'`
10769    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10770    (eval "$lt_compile" 2>out/conftest.err)
10771    ac_status=$?
10772    cat out/conftest.err >&5
10773    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10775    then
10776      # The compiler can only warn and ignore the option if not recognized
10777      # So say no if there are warnings
10778      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10779      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10780      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10781        lt_cv_prog_compiler_c_o=yes
10782      fi
10783    fi
10784    chmod u+w . 2>&5
10785    $RM conftest*
10786    # SGI C++ compiler will create directory out/ii_files/ for
10787    # template instantiation
10788    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10789    $RM out/* && rmdir out
10790    cd ..
10791    $RM -r conftest
10792    $RM conftest*
10793
10794 fi
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10796 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10797
10798
10799
10800
10801 hard_links="nottested"
10802 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10803   # do not overwrite the value of need_locks provided by the user
10804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10805 $as_echo_n "checking if we can lock with hard links... " >&6; }
10806   hard_links=yes
10807   $RM conftest*
10808   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10809   touch conftest.a
10810   ln conftest.a conftest.b 2>&5 || hard_links=no
10811   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10813 $as_echo "$hard_links" >&6; }
10814   if test "$hard_links" = no; then
10815     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10816 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10817     need_locks=warn
10818   fi
10819 else
10820   need_locks=no
10821 fi
10822
10823
10824
10825
10826
10827
10828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10829 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10830
10831   runpath_var=
10832   allow_undefined_flag=
10833   always_export_symbols=no
10834   archive_cmds=
10835   archive_expsym_cmds=
10836   compiler_needs_object=no
10837   enable_shared_with_static_runtimes=no
10838   export_dynamic_flag_spec=
10839   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10840   hardcode_automatic=no
10841   hardcode_direct=no
10842   hardcode_direct_absolute=no
10843   hardcode_libdir_flag_spec=
10844   hardcode_libdir_separator=
10845   hardcode_minus_L=no
10846   hardcode_shlibpath_var=unsupported
10847   inherit_rpath=no
10848   link_all_deplibs=unknown
10849   module_cmds=
10850   module_expsym_cmds=
10851   old_archive_from_new_cmds=
10852   old_archive_from_expsyms_cmds=
10853   thread_safe_flag_spec=
10854   whole_archive_flag_spec=
10855   # include_expsyms should be a list of space-separated symbols to be *always*
10856   # included in the symbol list
10857   include_expsyms=
10858   # exclude_expsyms can be an extended regexp of symbols to exclude
10859   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10860   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10861   # as well as any symbol that contains `d'.
10862   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10863   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10864   # platforms (ab)use it in PIC code, but their linkers get confused if
10865   # the symbol is explicitly referenced.  Since portable code cannot
10866   # rely on this symbol name, it's probably fine to never include it in
10867   # preloaded symbol tables.
10868   # Exclude shared library initialization/finalization symbols.
10869   extract_expsyms_cmds=
10870
10871   case $host_os in
10872   cygwin* | mingw* | pw32* | cegcc*)
10873     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10874     # When not using gcc, we currently assume that we are using
10875     # Microsoft Visual C++.
10876     if test "$GCC" != yes; then
10877       with_gnu_ld=no
10878     fi
10879     ;;
10880   interix*)
10881     # we just hope/assume this is gcc and not c89 (= MSVC++)
10882     with_gnu_ld=yes
10883     ;;
10884   openbsd*)
10885     with_gnu_ld=no
10886     ;;
10887   esac
10888
10889   ld_shlibs=yes
10890
10891   # On some targets, GNU ld is compatible enough with the native linker
10892   # that we're better off using the native interface for both.
10893   lt_use_gnu_ld_interface=no
10894   if test "$with_gnu_ld" = yes; then
10895     case $host_os in
10896       aix*)
10897         # The AIX port of GNU ld has always aspired to compatibility
10898         # with the native linker.  However, as the warning in the GNU ld
10899         # block says, versions before 2.19.5* couldn't really create working
10900         # shared libraries, regardless of the interface used.
10901         case `$LD -v 2>&1` in
10902           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10903           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10904           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10905           *)
10906             lt_use_gnu_ld_interface=yes
10907             ;;
10908         esac
10909         ;;
10910       *)
10911         lt_use_gnu_ld_interface=yes
10912         ;;
10913     esac
10914   fi
10915
10916   if test "$lt_use_gnu_ld_interface" = yes; then
10917     # If archive_cmds runs LD, not CC, wlarc should be empty
10918     wlarc='${wl}'
10919
10920     # Set some defaults for GNU ld with shared library support. These
10921     # are reset later if shared libraries are not supported. Putting them
10922     # here allows them to be overridden if necessary.
10923     runpath_var=LD_RUN_PATH
10924     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10925     export_dynamic_flag_spec='${wl}--export-dynamic'
10926     # ancient GNU ld didn't support --whole-archive et. al.
10927     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10928       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10929     else
10930       whole_archive_flag_spec=
10931     fi
10932     supports_anon_versioning=no
10933     case `$LD -v 2>&1` in
10934       *GNU\ gold*) supports_anon_versioning=yes ;;
10935       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10936       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10937       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10938       *\ 2.11.*) ;; # other 2.11 versions
10939       *) supports_anon_versioning=yes ;;
10940     esac
10941
10942     # See if GNU ld supports shared libraries.
10943     case $host_os in
10944     aix[3-9]*)
10945       # On AIX/PPC, the GNU linker is very broken
10946       if test "$host_cpu" != ia64; then
10947         ld_shlibs=no
10948         cat <<_LT_EOF 1>&2
10949
10950 *** Warning: the GNU linker, at least up to release 2.19, is reported
10951 *** to be unable to reliably create shared libraries on AIX.
10952 *** Therefore, libtool is disabling shared libraries support.  If you
10953 *** really care for shared libraries, you may want to install binutils
10954 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10955 *** You will then need to restart the configuration process.
10956
10957 _LT_EOF
10958       fi
10959       ;;
10960
10961     amigaos*)
10962       case $host_cpu in
10963       powerpc)
10964             # see comment about AmigaOS4 .so support
10965             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10966             archive_expsym_cmds=''
10967         ;;
10968       m68k)
10969             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)'
10970             hardcode_libdir_flag_spec='-L$libdir'
10971             hardcode_minus_L=yes
10972         ;;
10973       esac
10974       ;;
10975
10976     beos*)
10977       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10978         allow_undefined_flag=unsupported
10979         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10980         # support --undefined.  This deserves some investigation.  FIXME
10981         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10982       else
10983         ld_shlibs=no
10984       fi
10985       ;;
10986
10987     cygwin* | mingw* | pw32* | cegcc*)
10988       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10989       # as there is no search path for DLLs.
10990       hardcode_libdir_flag_spec='-L$libdir'
10991       export_dynamic_flag_spec='${wl}--export-all-symbols'
10992       allow_undefined_flag=unsupported
10993       always_export_symbols=no
10994       enable_shared_with_static_runtimes=yes
10995       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'
10996       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10997
10998       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10999         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11000         # If the export-symbols file already is a .def file (1st line
11001         # is EXPORTS), use it as is; otherwise, prepend...
11002         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11003           cp $export_symbols $output_objdir/$soname.def;
11004         else
11005           echo EXPORTS > $output_objdir/$soname.def;
11006           cat $export_symbols >> $output_objdir/$soname.def;
11007         fi~
11008         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11009       else
11010         ld_shlibs=no
11011       fi
11012       ;;
11013
11014     haiku*)
11015       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11016       link_all_deplibs=yes
11017       ;;
11018
11019     interix[3-9]*)
11020       hardcode_direct=no
11021       hardcode_shlibpath_var=no
11022       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11023       export_dynamic_flag_spec='${wl}-E'
11024       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11025       # Instead, shared libraries are loaded at an image base (0x10000000 by
11026       # default) and relocated if they conflict, which is a slow very memory
11027       # consuming and fragmenting process.  To avoid this, we pick a random,
11028       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11029       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11030       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11031       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'
11032       ;;
11033
11034     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11035       tmp_diet=no
11036       if test "$host_os" = linux-dietlibc; then
11037         case $cc_basename in
11038           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11039         esac
11040       fi
11041       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11042          && test "$tmp_diet" = no
11043       then
11044         tmp_addflag=' $pic_flag'
11045         tmp_sharedflag='-shared'
11046         case $cc_basename,$host_cpu in
11047         pgcc*)                          # Portland Group C compiler
11048           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'
11049           tmp_addflag=' $pic_flag'
11050           ;;
11051         pgf77* | pgf90* | pgf95* | pgfortran*)
11052                                         # Portland Group f77 and f90 compilers
11053           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'
11054           tmp_addflag=' $pic_flag -Mnomain' ;;
11055         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11056           tmp_addflag=' -i_dynamic' ;;
11057         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11058           tmp_addflag=' -i_dynamic -nofor_main' ;;
11059         ifc* | ifort*)                  # Intel Fortran compiler
11060           tmp_addflag=' -nofor_main' ;;
11061         lf95*)                          # Lahey Fortran 8.1
11062           whole_archive_flag_spec=
11063           tmp_sharedflag='--shared' ;;
11064         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11065           tmp_sharedflag='-qmkshrobj'
11066           tmp_addflag= ;;
11067         nvcc*)  # Cuda Compiler Driver 2.2
11068           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'
11069           compiler_needs_object=yes
11070           ;;
11071         esac
11072         case `$CC -V 2>&1 | sed 5q` in
11073         *Sun\ C*)                       # Sun C 5.9
11074           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'
11075           compiler_needs_object=yes
11076           tmp_sharedflag='-G' ;;
11077         *Sun\ F*)                       # Sun Fortran 8.3
11078           tmp_sharedflag='-G' ;;
11079         esac
11080         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11081
11082         if test "x$supports_anon_versioning" = xyes; then
11083           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11084             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11085             echo "local: *; };" >> $output_objdir/$libname.ver~
11086             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11087         fi
11088
11089         case $cc_basename in
11090         xlf* | bgf* | bgxlf* | mpixlf*)
11091           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11092           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11093           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11094           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11095           if test "x$supports_anon_versioning" = xyes; then
11096             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11097               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11098               echo "local: *; };" >> $output_objdir/$libname.ver~
11099               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11100           fi
11101           ;;
11102         esac
11103       else
11104         ld_shlibs=no
11105       fi
11106       ;;
11107
11108     netbsd*)
11109       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11110         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11111         wlarc=
11112       else
11113         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11114         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11115       fi
11116       ;;
11117
11118     solaris*)
11119       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11120         ld_shlibs=no
11121         cat <<_LT_EOF 1>&2
11122
11123 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11124 *** create shared libraries on Solaris systems.  Therefore, libtool
11125 *** is disabling shared libraries support.  We urge you to upgrade GNU
11126 *** binutils to release 2.9.1 or newer.  Another option is to modify
11127 *** your PATH or compiler configuration so that the native linker is
11128 *** used, and then restart.
11129
11130 _LT_EOF
11131       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11132         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11133         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11134       else
11135         ld_shlibs=no
11136       fi
11137       ;;
11138
11139     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11140       case `$LD -v 2>&1` in
11141         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11142         ld_shlibs=no
11143         cat <<_LT_EOF 1>&2
11144
11145 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11146 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11147 *** is disabling shared libraries support.  We urge you to upgrade GNU
11148 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11149 *** your PATH or compiler configuration so that the native linker is
11150 *** used, and then restart.
11151
11152 _LT_EOF
11153         ;;
11154         *)
11155           # For security reasons, it is highly recommended that you always
11156           # use absolute paths for naming shared libraries, and exclude the
11157           # DT_RUNPATH tag from executables and libraries.  But doing so
11158           # requires that you compile everything twice, which is a pain.
11159           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11160             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11161             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11162             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11163           else
11164             ld_shlibs=no
11165           fi
11166         ;;
11167       esac
11168       ;;
11169
11170     sunos4*)
11171       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11172       wlarc=
11173       hardcode_direct=yes
11174       hardcode_shlibpath_var=no
11175       ;;
11176
11177     *)
11178       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11179         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11180         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11181       else
11182         ld_shlibs=no
11183       fi
11184       ;;
11185     esac
11186
11187     if test "$ld_shlibs" = no; then
11188       runpath_var=
11189       hardcode_libdir_flag_spec=
11190       export_dynamic_flag_spec=
11191       whole_archive_flag_spec=
11192     fi
11193   else
11194     # PORTME fill in a description of your system's linker (not GNU ld)
11195     case $host_os in
11196     aix3*)
11197       allow_undefined_flag=unsupported
11198       always_export_symbols=yes
11199       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'
11200       # Note: this linker hardcodes the directories in LIBPATH if there
11201       # are no directories specified by -L.
11202       hardcode_minus_L=yes
11203       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11204         # Neither direct hardcoding nor static linking is supported with a
11205         # broken collect2.
11206         hardcode_direct=unsupported
11207       fi
11208       ;;
11209
11210     aix[4-9]*)
11211       if test "$host_cpu" = ia64; then
11212         # On IA64, the linker does run time linking by default, so we don't
11213         # have to do anything special.
11214         aix_use_runtimelinking=no
11215         exp_sym_flag='-Bexport'
11216         no_entry_flag=""
11217       else
11218         # If we're using GNU nm, then we don't want the "-C" option.
11219         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11220         # Also, AIX nm treats weak defined symbols like other global
11221         # defined symbols, whereas GNU nm marks them as "W".
11222         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11223           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11224         else
11225           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11226         fi
11227         aix_use_runtimelinking=no
11228
11229         # Test if we are trying to use run time linking or normal
11230         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11231         # need to do runtime linking.
11232         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11233           for ld_flag in $LDFLAGS; do
11234           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11235             aix_use_runtimelinking=yes
11236             break
11237           fi
11238           done
11239           ;;
11240         esac
11241
11242         exp_sym_flag='-bexport'
11243         no_entry_flag='-bnoentry'
11244       fi
11245
11246       # When large executables or shared objects are built, AIX ld can
11247       # have problems creating the table of contents.  If linking a library
11248       # or program results in "error TOC overflow" add -mminimal-toc to
11249       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11250       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11251
11252       archive_cmds=''
11253       hardcode_direct=yes
11254       hardcode_direct_absolute=yes
11255       hardcode_libdir_separator=':'
11256       link_all_deplibs=yes
11257       file_list_spec='${wl}-f,'
11258
11259       if test "$GCC" = yes; then
11260         case $host_os in aix4.[012]|aix4.[012].*)
11261         # We only want to do this on AIX 4.2 and lower, the check
11262         # below for broken collect2 doesn't work under 4.3+
11263           collect2name=`${CC} -print-prog-name=collect2`
11264           if test -f "$collect2name" &&
11265            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11266           then
11267           # We have reworked collect2
11268           :
11269           else
11270           # We have old collect2
11271           hardcode_direct=unsupported
11272           # It fails to find uninstalled libraries when the uninstalled
11273           # path is not listed in the libpath.  Setting hardcode_minus_L
11274           # to unsupported forces relinking
11275           hardcode_minus_L=yes
11276           hardcode_libdir_flag_spec='-L$libdir'
11277           hardcode_libdir_separator=
11278           fi
11279           ;;
11280         esac
11281         shared_flag='-shared'
11282         if test "$aix_use_runtimelinking" = yes; then
11283           shared_flag="$shared_flag "'${wl}-G'
11284         fi
11285       else
11286         # not using gcc
11287         if test "$host_cpu" = ia64; then
11288         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11289         # chokes on -Wl,-G. The following line is correct:
11290           shared_flag='-G'
11291         else
11292           if test "$aix_use_runtimelinking" = yes; then
11293             shared_flag='${wl}-G'
11294           else
11295             shared_flag='${wl}-bM:SRE'
11296           fi
11297         fi
11298       fi
11299
11300       export_dynamic_flag_spec='${wl}-bexpall'
11301       # It seems that -bexpall does not export symbols beginning with
11302       # underscore (_), so it is better to generate a list of symbols to export.
11303       always_export_symbols=yes
11304       if test "$aix_use_runtimelinking" = yes; then
11305         # Warning - without using the other runtime loading flags (-brtl),
11306         # -berok will link without error, but may produce a broken library.
11307         allow_undefined_flag='-berok'
11308         # Determine the default libpath from the value encoded in an
11309         # empty executable.
11310         if test "${lt_cv_aix_libpath+set}" = set; then
11311   aix_libpath=$lt_cv_aix_libpath
11312 else
11313   if ${lt_cv_aix_libpath_+:} false; then :
11314   $as_echo_n "(cached) " >&6
11315 else
11316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317 /* end confdefs.h.  */
11318
11319 int
11320 main ()
11321 {
11322
11323   ;
11324   return 0;
11325 }
11326 _ACEOF
11327 if ac_fn_c_try_link "$LINENO"; then :
11328
11329   lt_aix_libpath_sed='
11330       /Import File Strings/,/^$/ {
11331           /^0/ {
11332               s/^0  *\([^ ]*\) *$/\1/
11333               p
11334           }
11335       }'
11336   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11337   # Check for a 64-bit object if we didn't find anything.
11338   if test -z "$lt_cv_aix_libpath_"; then
11339     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11340   fi
11341 fi
11342 rm -f core conftest.err conftest.$ac_objext \
11343     conftest$ac_exeext conftest.$ac_ext
11344   if test -z "$lt_cv_aix_libpath_"; then
11345     lt_cv_aix_libpath_="/usr/lib:/lib"
11346   fi
11347
11348 fi
11349
11350   aix_libpath=$lt_cv_aix_libpath_
11351 fi
11352
11353         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11354         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11355       else
11356         if test "$host_cpu" = ia64; then
11357           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11358           allow_undefined_flag="-z nodefs"
11359           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"
11360         else
11361          # Determine the default libpath from the value encoded in an
11362          # empty executable.
11363          if test "${lt_cv_aix_libpath+set}" = set; then
11364   aix_libpath=$lt_cv_aix_libpath
11365 else
11366   if ${lt_cv_aix_libpath_+:} false; then :
11367   $as_echo_n "(cached) " >&6
11368 else
11369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370 /* end confdefs.h.  */
11371
11372 int
11373 main ()
11374 {
11375
11376   ;
11377   return 0;
11378 }
11379 _ACEOF
11380 if ac_fn_c_try_link "$LINENO"; then :
11381
11382   lt_aix_libpath_sed='
11383       /Import File Strings/,/^$/ {
11384           /^0/ {
11385               s/^0  *\([^ ]*\) *$/\1/
11386               p
11387           }
11388       }'
11389   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11390   # Check for a 64-bit object if we didn't find anything.
11391   if test -z "$lt_cv_aix_libpath_"; then
11392     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11393   fi
11394 fi
11395 rm -f core conftest.err conftest.$ac_objext \
11396     conftest$ac_exeext conftest.$ac_ext
11397   if test -z "$lt_cv_aix_libpath_"; then
11398     lt_cv_aix_libpath_="/usr/lib:/lib"
11399   fi
11400
11401 fi
11402
11403   aix_libpath=$lt_cv_aix_libpath_
11404 fi
11405
11406          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11407           # Warning - without using the other run time loading flags,
11408           # -berok will link without error, but may produce a broken library.
11409           no_undefined_flag=' ${wl}-bernotok'
11410           allow_undefined_flag=' ${wl}-berok'
11411           if test "$with_gnu_ld" = yes; then
11412             # We only use this code for GNU lds that support --whole-archive.
11413             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11414           else
11415             # Exported symbols can be pulled into shared objects from archives
11416             whole_archive_flag_spec='$convenience'
11417           fi
11418           archive_cmds_need_lc=yes
11419           # This is similar to how AIX traditionally builds its shared libraries.
11420           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11421         fi
11422       fi
11423       ;;
11424
11425     amigaos*)
11426       case $host_cpu in
11427       powerpc)
11428             # see comment about AmigaOS4 .so support
11429             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11430             archive_expsym_cmds=''
11431         ;;
11432       m68k)
11433             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)'
11434             hardcode_libdir_flag_spec='-L$libdir'
11435             hardcode_minus_L=yes
11436         ;;
11437       esac
11438       ;;
11439
11440     bsdi[45]*)
11441       export_dynamic_flag_spec=-rdynamic
11442       ;;
11443
11444     cygwin* | mingw* | pw32* | cegcc*)
11445       # When not using gcc, we currently assume that we are using
11446       # Microsoft Visual C++.
11447       # hardcode_libdir_flag_spec is actually meaningless, as there is
11448       # no search path for DLLs.
11449       case $cc_basename in
11450       cl*)
11451         # Native MSVC
11452         hardcode_libdir_flag_spec=' '
11453         allow_undefined_flag=unsupported
11454         always_export_symbols=yes
11455         file_list_spec='@'
11456         # Tell ltmain to make .lib files, not .a files.
11457         libext=lib
11458         # Tell ltmain to make .dll files, not .so files.
11459         shrext_cmds=".dll"
11460         # FIXME: Setting linknames here is a bad hack.
11461         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11462         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11463             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11464           else
11465             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11466           fi~
11467           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11468           linknames='
11469         # The linker will not automatically build a static lib if we build a DLL.
11470         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11471         enable_shared_with_static_runtimes=yes
11472         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11473         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11474         # Don't use ranlib
11475         old_postinstall_cmds='chmod 644 $oldlib'
11476         postlink_cmds='lt_outputfile="@OUTPUT@"~
11477           lt_tool_outputfile="@TOOL_OUTPUT@"~
11478           case $lt_outputfile in
11479             *.exe|*.EXE) ;;
11480             *)
11481               lt_outputfile="$lt_outputfile.exe"
11482               lt_tool_outputfile="$lt_tool_outputfile.exe"
11483               ;;
11484           esac~
11485           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11486             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11487             $RM "$lt_outputfile.manifest";
11488           fi'
11489         ;;
11490       *)
11491         # Assume MSVC wrapper
11492         hardcode_libdir_flag_spec=' '
11493         allow_undefined_flag=unsupported
11494         # Tell ltmain to make .lib files, not .a files.
11495         libext=lib
11496         # Tell ltmain to make .dll files, not .so files.
11497         shrext_cmds=".dll"
11498         # FIXME: Setting linknames here is a bad hack.
11499         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11500         # The linker will automatically build a .lib file if we build a DLL.
11501         old_archive_from_new_cmds='true'
11502         # FIXME: Should let the user specify the lib program.
11503         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11504         enable_shared_with_static_runtimes=yes
11505         ;;
11506       esac
11507       ;;
11508
11509     darwin* | rhapsody*)
11510
11511
11512   archive_cmds_need_lc=no
11513   hardcode_direct=no
11514   hardcode_automatic=yes
11515   hardcode_shlibpath_var=unsupported
11516   if test "$lt_cv_ld_force_load" = "yes"; then
11517     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\"`'
11518
11519   else
11520     whole_archive_flag_spec=''
11521   fi
11522   link_all_deplibs=yes
11523   allow_undefined_flag="$_lt_dar_allow_undefined"
11524   case $cc_basename in
11525      ifort*) _lt_dar_can_shared=yes ;;
11526      *) _lt_dar_can_shared=$GCC ;;
11527   esac
11528   if test "$_lt_dar_can_shared" = "yes"; then
11529     output_verbose_link_cmd=func_echo_all
11530     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11531     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11532     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}"
11533     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}"
11534
11535   else
11536   ld_shlibs=no
11537   fi
11538
11539       ;;
11540
11541     dgux*)
11542       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11543       hardcode_libdir_flag_spec='-L$libdir'
11544       hardcode_shlibpath_var=no
11545       ;;
11546
11547     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11548     # support.  Future versions do this automatically, but an explicit c++rt0.o
11549     # does not break anything, and helps significantly (at the cost of a little
11550     # extra space).
11551     freebsd2.2*)
11552       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11553       hardcode_libdir_flag_spec='-R$libdir'
11554       hardcode_direct=yes
11555       hardcode_shlibpath_var=no
11556       ;;
11557
11558     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11559     freebsd2.*)
11560       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11561       hardcode_direct=yes
11562       hardcode_minus_L=yes
11563       hardcode_shlibpath_var=no
11564       ;;
11565
11566     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11567     freebsd* | dragonfly*)
11568       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11569       hardcode_libdir_flag_spec='-R$libdir'
11570       hardcode_direct=yes
11571       hardcode_shlibpath_var=no
11572       ;;
11573
11574     hpux9*)
11575       if test "$GCC" = yes; then
11576         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11577       else
11578         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11579       fi
11580       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11581       hardcode_libdir_separator=:
11582       hardcode_direct=yes
11583
11584       # hardcode_minus_L: Not really in the search PATH,
11585       # but as the default location of the library.
11586       hardcode_minus_L=yes
11587       export_dynamic_flag_spec='${wl}-E'
11588       ;;
11589
11590     hpux10*)
11591       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11592         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11593       else
11594         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11595       fi
11596       if test "$with_gnu_ld" = no; then
11597         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11598         hardcode_libdir_separator=:
11599         hardcode_direct=yes
11600         hardcode_direct_absolute=yes
11601         export_dynamic_flag_spec='${wl}-E'
11602         # hardcode_minus_L: Not really in the search PATH,
11603         # but as the default location of the library.
11604         hardcode_minus_L=yes
11605       fi
11606       ;;
11607
11608     hpux11*)
11609       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11610         case $host_cpu in
11611         hppa*64*)
11612           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11613           ;;
11614         ia64*)
11615           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11616           ;;
11617         *)
11618           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11619           ;;
11620         esac
11621       else
11622         case $host_cpu in
11623         hppa*64*)
11624           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11625           ;;
11626         ia64*)
11627           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11628           ;;
11629         *)
11630
11631           # Older versions of the 11.00 compiler do not understand -b yet
11632           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11633           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11634 $as_echo_n "checking if $CC understands -b... " >&6; }
11635 if ${lt_cv_prog_compiler__b+:} false; then :
11636   $as_echo_n "(cached) " >&6
11637 else
11638   lt_cv_prog_compiler__b=no
11639    save_LDFLAGS="$LDFLAGS"
11640    LDFLAGS="$LDFLAGS -b"
11641    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11642    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11643      # The linker can only warn and ignore the option if not recognized
11644      # So say no if there are warnings
11645      if test -s conftest.err; then
11646        # Append any errors to the config.log.
11647        cat conftest.err 1>&5
11648        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11649        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11650        if diff conftest.exp conftest.er2 >/dev/null; then
11651          lt_cv_prog_compiler__b=yes
11652        fi
11653      else
11654        lt_cv_prog_compiler__b=yes
11655      fi
11656    fi
11657    $RM -r conftest*
11658    LDFLAGS="$save_LDFLAGS"
11659
11660 fi
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11662 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11663
11664 if test x"$lt_cv_prog_compiler__b" = xyes; then
11665     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11666 else
11667     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11668 fi
11669
11670           ;;
11671         esac
11672       fi
11673       if test "$with_gnu_ld" = no; then
11674         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11675         hardcode_libdir_separator=:
11676
11677         case $host_cpu in
11678         hppa*64*|ia64*)
11679           hardcode_direct=no
11680           hardcode_shlibpath_var=no
11681           ;;
11682         *)
11683           hardcode_direct=yes
11684           hardcode_direct_absolute=yes
11685           export_dynamic_flag_spec='${wl}-E'
11686
11687           # hardcode_minus_L: Not really in the search PATH,
11688           # but as the default location of the library.
11689           hardcode_minus_L=yes
11690           ;;
11691         esac
11692       fi
11693       ;;
11694
11695     irix5* | irix6* | nonstopux*)
11696       if test "$GCC" = yes; then
11697         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'
11698         # Try to use the -exported_symbol ld option, if it does not
11699         # work, assume that -exports_file does not work either and
11700         # implicitly export all symbols.
11701         # This should be the same for all languages, so no per-tag cache variable.
11702         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11703 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11704 if ${lt_cv_irix_exported_symbol+:} false; then :
11705   $as_echo_n "(cached) " >&6
11706 else
11707   save_LDFLAGS="$LDFLAGS"
11708            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11709            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h.  */
11711 int foo (void) { return 0; }
11712 _ACEOF
11713 if ac_fn_c_try_link "$LINENO"; then :
11714   lt_cv_irix_exported_symbol=yes
11715 else
11716   lt_cv_irix_exported_symbol=no
11717 fi
11718 rm -f core conftest.err conftest.$ac_objext \
11719     conftest$ac_exeext conftest.$ac_ext
11720            LDFLAGS="$save_LDFLAGS"
11721 fi
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11723 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11724         if test "$lt_cv_irix_exported_symbol" = yes; then
11725           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'
11726         fi
11727       else
11728         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'
11729         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'
11730       fi
11731       archive_cmds_need_lc='no'
11732       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11733       hardcode_libdir_separator=:
11734       inherit_rpath=yes
11735       link_all_deplibs=yes
11736       ;;
11737
11738     netbsd*)
11739       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11740         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11741       else
11742         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11743       fi
11744       hardcode_libdir_flag_spec='-R$libdir'
11745       hardcode_direct=yes
11746       hardcode_shlibpath_var=no
11747       ;;
11748
11749     newsos6)
11750       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11751       hardcode_direct=yes
11752       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11753       hardcode_libdir_separator=:
11754       hardcode_shlibpath_var=no
11755       ;;
11756
11757     *nto* | *qnx*)
11758       ;;
11759
11760     openbsd*)
11761       if test -f /usr/libexec/ld.so; then
11762         hardcode_direct=yes
11763         hardcode_shlibpath_var=no
11764         hardcode_direct_absolute=yes
11765         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11766           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11767           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11768           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11769           export_dynamic_flag_spec='${wl}-E'
11770         else
11771           case $host_os in
11772            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11773              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11774              hardcode_libdir_flag_spec='-R$libdir'
11775              ;;
11776            *)
11777              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11778              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11779              ;;
11780           esac
11781         fi
11782       else
11783         ld_shlibs=no
11784       fi
11785       ;;
11786
11787     os2*)
11788       hardcode_libdir_flag_spec='-L$libdir'
11789       hardcode_minus_L=yes
11790       allow_undefined_flag=unsupported
11791       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11792       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11793       ;;
11794
11795     osf3*)
11796       if test "$GCC" = yes; then
11797         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11798         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'
11799       else
11800         allow_undefined_flag=' -expect_unresolved \*'
11801         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'
11802       fi
11803       archive_cmds_need_lc='no'
11804       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11805       hardcode_libdir_separator=:
11806       ;;
11807
11808     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11809       if test "$GCC" = yes; then
11810         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11811         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'
11812         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11813       else
11814         allow_undefined_flag=' -expect_unresolved \*'
11815         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'
11816         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~
11817         $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'
11818
11819         # Both c and cxx compiler support -rpath directly
11820         hardcode_libdir_flag_spec='-rpath $libdir'
11821       fi
11822       archive_cmds_need_lc='no'
11823       hardcode_libdir_separator=:
11824       ;;
11825
11826     solaris*)
11827       no_undefined_flag=' -z defs'
11828       if test "$GCC" = yes; then
11829         wlarc='${wl}'
11830         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11831         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11832           $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'
11833       else
11834         case `$CC -V 2>&1` in
11835         *"Compilers 5.0"*)
11836           wlarc=''
11837           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11838           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11839           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11840           ;;
11841         *)
11842           wlarc='${wl}'
11843           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11844           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11845           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11846           ;;
11847         esac
11848       fi
11849       hardcode_libdir_flag_spec='-R$libdir'
11850       hardcode_shlibpath_var=no
11851       case $host_os in
11852       solaris2.[0-5] | solaris2.[0-5].*) ;;
11853       *)
11854         # The compiler driver will combine and reorder linker options,
11855         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11856         # but is careful enough not to reorder.
11857         # Supported since Solaris 2.6 (maybe 2.5.1?)
11858         if test "$GCC" = yes; then
11859           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11860         else
11861           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11862         fi
11863         ;;
11864       esac
11865       link_all_deplibs=yes
11866       ;;
11867
11868     sunos4*)
11869       if test "x$host_vendor" = xsequent; then
11870         # Use $CC to link under sequent, because it throws in some extra .o
11871         # files that make .init and .fini sections work.
11872         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11873       else
11874         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11875       fi
11876       hardcode_libdir_flag_spec='-L$libdir'
11877       hardcode_direct=yes
11878       hardcode_minus_L=yes
11879       hardcode_shlibpath_var=no
11880       ;;
11881
11882     sysv4)
11883       case $host_vendor in
11884         sni)
11885           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11886           hardcode_direct=yes # is this really true???
11887         ;;
11888         siemens)
11889           ## LD is ld it makes a PLAMLIB
11890           ## CC just makes a GrossModule.
11891           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11892           reload_cmds='$CC -r -o $output$reload_objs'
11893           hardcode_direct=no
11894         ;;
11895         motorola)
11896           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11897           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11898         ;;
11899       esac
11900       runpath_var='LD_RUN_PATH'
11901       hardcode_shlibpath_var=no
11902       ;;
11903
11904     sysv4.3*)
11905       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11906       hardcode_shlibpath_var=no
11907       export_dynamic_flag_spec='-Bexport'
11908       ;;
11909
11910     sysv4*MP*)
11911       if test -d /usr/nec; then
11912         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11913         hardcode_shlibpath_var=no
11914         runpath_var=LD_RUN_PATH
11915         hardcode_runpath_var=yes
11916         ld_shlibs=yes
11917       fi
11918       ;;
11919
11920     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11921       no_undefined_flag='${wl}-z,text'
11922       archive_cmds_need_lc=no
11923       hardcode_shlibpath_var=no
11924       runpath_var='LD_RUN_PATH'
11925
11926       if test "$GCC" = yes; then
11927         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11928         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11929       else
11930         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11931         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11932       fi
11933       ;;
11934
11935     sysv5* | sco3.2v5* | sco5v6*)
11936       # Note: We can NOT use -z defs as we might desire, because we do not
11937       # link with -lc, and that would cause any symbols used from libc to
11938       # always be unresolved, which means just about no library would
11939       # ever link correctly.  If we're not using GNU ld we use -z text
11940       # though, which does catch some bad symbols but isn't as heavy-handed
11941       # as -z defs.
11942       no_undefined_flag='${wl}-z,text'
11943       allow_undefined_flag='${wl}-z,nodefs'
11944       archive_cmds_need_lc=no
11945       hardcode_shlibpath_var=no
11946       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11947       hardcode_libdir_separator=':'
11948       link_all_deplibs=yes
11949       export_dynamic_flag_spec='${wl}-Bexport'
11950       runpath_var='LD_RUN_PATH'
11951
11952       if test "$GCC" = yes; then
11953         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11954         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11955       else
11956         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11957         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11958       fi
11959       ;;
11960
11961     uts4*)
11962       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11963       hardcode_libdir_flag_spec='-L$libdir'
11964       hardcode_shlibpath_var=no
11965       ;;
11966
11967     *)
11968       ld_shlibs=no
11969       ;;
11970     esac
11971
11972     if test x$host_vendor = xsni; then
11973       case $host in
11974       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11975         export_dynamic_flag_spec='${wl}-Blargedynsym'
11976         ;;
11977       esac
11978     fi
11979   fi
11980
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11982 $as_echo "$ld_shlibs" >&6; }
11983 test "$ld_shlibs" = no && can_build_shared=no
11984
11985 with_gnu_ld=$with_gnu_ld
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001 #
12002 # Do we need to explicitly link libc?
12003 #
12004 case "x$archive_cmds_need_lc" in
12005 x|xyes)
12006   # Assume -lc should be added
12007   archive_cmds_need_lc=yes
12008
12009   if test "$enable_shared" = yes && test "$GCC" = yes; then
12010     case $archive_cmds in
12011     *'~'*)
12012       # FIXME: we may have to deal with multi-command sequences.
12013       ;;
12014     '$CC '*)
12015       # Test whether the compiler implicitly links with -lc since on some
12016       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12017       # to ld, don't add -lc before -lgcc.
12018       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12019 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12020 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12021   $as_echo_n "(cached) " >&6
12022 else
12023   $RM conftest*
12024         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12025
12026         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12027   (eval $ac_compile) 2>&5
12028   ac_status=$?
12029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12030   test $ac_status = 0; } 2>conftest.err; then
12031           soname=conftest
12032           lib=conftest
12033           libobjs=conftest.$ac_objext
12034           deplibs=
12035           wl=$lt_prog_compiler_wl
12036           pic_flag=$lt_prog_compiler_pic
12037           compiler_flags=-v
12038           linker_flags=-v
12039           verstring=
12040           output_objdir=.
12041           libname=conftest
12042           lt_save_allow_undefined_flag=$allow_undefined_flag
12043           allow_undefined_flag=
12044           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12045   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12046   ac_status=$?
12047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12048   test $ac_status = 0; }
12049           then
12050             lt_cv_archive_cmds_need_lc=no
12051           else
12052             lt_cv_archive_cmds_need_lc=yes
12053           fi
12054           allow_undefined_flag=$lt_save_allow_undefined_flag
12055         else
12056           cat conftest.err 1>&5
12057         fi
12058         $RM conftest*
12059
12060 fi
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12062 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12063       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12064       ;;
12065     esac
12066   fi
12067   ;;
12068 esac
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12222 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12223
12224 if test "$GCC" = yes; then
12225   case $host_os in
12226     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12227     *) lt_awk_arg="/^libraries:/" ;;
12228   esac
12229   case $host_os in
12230     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12231     *) lt_sed_strip_eq="s,=/,/,g" ;;
12232   esac
12233   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12234   case $lt_search_path_spec in
12235   *\;*)
12236     # if the path contains ";" then we assume it to be the separator
12237     # otherwise default to the standard path separator (i.e. ":") - it is
12238     # assumed that no part of a normal pathname contains ";" but that should
12239     # okay in the real world where ";" in dirpaths is itself problematic.
12240     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12241     ;;
12242   *)
12243     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12244     ;;
12245   esac
12246   # Ok, now we have the path, separated by spaces, we can step through it
12247   # and add multilib dir if necessary.
12248   lt_tmp_lt_search_path_spec=
12249   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12250   for lt_sys_path in $lt_search_path_spec; do
12251     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12252       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12253     else
12254       test -d "$lt_sys_path" && \
12255         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12256     fi
12257   done
12258   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12259 BEGIN {RS=" "; FS="/|\n";} {
12260   lt_foo="";
12261   lt_count=0;
12262   for (lt_i = NF; lt_i > 0; lt_i--) {
12263     if ($lt_i != "" && $lt_i != ".") {
12264       if ($lt_i == "..") {
12265         lt_count++;
12266       } else {
12267         if (lt_count == 0) {
12268           lt_foo="/" $lt_i lt_foo;
12269         } else {
12270           lt_count--;
12271         }
12272       }
12273     }
12274   }
12275   if (lt_foo != "") { lt_freq[lt_foo]++; }
12276   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12277 }'`
12278   # AWK program above erroneously prepends '/' to C:/dos/paths
12279   # for these hosts.
12280   case $host_os in
12281     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12282       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12283   esac
12284   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12285 else
12286   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12287 fi
12288 library_names_spec=
12289 libname_spec='lib$name'
12290 soname_spec=
12291 shrext_cmds=".so"
12292 postinstall_cmds=
12293 postuninstall_cmds=
12294 finish_cmds=
12295 finish_eval=
12296 shlibpath_var=
12297 shlibpath_overrides_runpath=unknown
12298 version_type=none
12299 dynamic_linker="$host_os ld.so"
12300 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12301 need_lib_prefix=unknown
12302 hardcode_into_libs=no
12303
12304 # when you set need_version to no, make sure it does not cause -set_version
12305 # flags to be left without arguments
12306 need_version=unknown
12307
12308 case $host_os in
12309 aix3*)
12310   version_type=linux # correct to gnu/linux during the next big refactor
12311   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12312   shlibpath_var=LIBPATH
12313
12314   # AIX 3 has no versioning support, so we append a major version to the name.
12315   soname_spec='${libname}${release}${shared_ext}$major'
12316   ;;
12317
12318 aix[4-9]*)
12319   version_type=linux # correct to gnu/linux during the next big refactor
12320   need_lib_prefix=no
12321   need_version=no
12322   hardcode_into_libs=yes
12323   if test "$host_cpu" = ia64; then
12324     # AIX 5 supports IA64
12325     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12326     shlibpath_var=LD_LIBRARY_PATH
12327   else
12328     # With GCC up to 2.95.x, collect2 would create an import file
12329     # for dependence libraries.  The import file would start with
12330     # the line `#! .'.  This would cause the generated library to
12331     # depend on `.', always an invalid library.  This was fixed in
12332     # development snapshots of GCC prior to 3.0.
12333     case $host_os in
12334       aix4 | aix4.[01] | aix4.[01].*)
12335       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12336            echo ' yes '
12337            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12338         :
12339       else
12340         can_build_shared=no
12341       fi
12342       ;;
12343     esac
12344     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12345     # soname into executable. Probably we can add versioning support to
12346     # collect2, so additional links can be useful in future.
12347     if test "$aix_use_runtimelinking" = yes; then
12348       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12349       # instead of lib<name>.a to let people know that these are not
12350       # typical AIX shared libraries.
12351       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12352     else
12353       # We preserve .a as extension for shared libraries through AIX4.2
12354       # and later when we are not doing run time linking.
12355       library_names_spec='${libname}${release}.a $libname.a'
12356       soname_spec='${libname}${release}${shared_ext}$major'
12357     fi
12358     shlibpath_var=LIBPATH
12359   fi
12360   ;;
12361
12362 amigaos*)
12363   case $host_cpu in
12364   powerpc)
12365     # Since July 2007 AmigaOS4 officially supports .so libraries.
12366     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12367     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12368     ;;
12369   m68k)
12370     library_names_spec='$libname.ixlibrary $libname.a'
12371     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12372     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
12373     ;;
12374   esac
12375   ;;
12376
12377 beos*)
12378   library_names_spec='${libname}${shared_ext}'
12379   dynamic_linker="$host_os ld.so"
12380   shlibpath_var=LIBRARY_PATH
12381   ;;
12382
12383 bsdi[45]*)
12384   version_type=linux # correct to gnu/linux during the next big refactor
12385   need_version=no
12386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12387   soname_spec='${libname}${release}${shared_ext}$major'
12388   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12389   shlibpath_var=LD_LIBRARY_PATH
12390   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12391   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12392   # the default ld.so.conf also contains /usr/contrib/lib and
12393   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12394   # libtool to hard-code these into programs
12395   ;;
12396
12397 cygwin* | mingw* | pw32* | cegcc*)
12398   version_type=windows
12399   shrext_cmds=".dll"
12400   need_version=no
12401   need_lib_prefix=no
12402
12403   case $GCC,$cc_basename in
12404   yes,*)
12405     # gcc
12406     library_names_spec='$libname.dll.a'
12407     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12408     postinstall_cmds='base_file=`basename \${file}`~
12409       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12410       dldir=$destdir/`dirname \$dlpath`~
12411       test -d \$dldir || mkdir -p \$dldir~
12412       $install_prog $dir/$dlname \$dldir/$dlname~
12413       chmod a+x \$dldir/$dlname~
12414       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12415         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12416       fi'
12417     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12418       dlpath=$dir/\$dldll~
12419        $RM \$dlpath'
12420     shlibpath_overrides_runpath=yes
12421
12422     case $host_os in
12423     cygwin*)
12424       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12425       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12426
12427       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12428       ;;
12429     mingw* | cegcc*)
12430       # MinGW DLLs use traditional 'lib' prefix
12431       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12432       ;;
12433     pw32*)
12434       # pw32 DLLs use 'pw' prefix rather than 'lib'
12435       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12436       ;;
12437     esac
12438     dynamic_linker='Win32 ld.exe'
12439     ;;
12440
12441   *,cl*)
12442     # Native MSVC
12443     libname_spec='$name'
12444     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12445     library_names_spec='${libname}.dll.lib'
12446
12447     case $build_os in
12448     mingw*)
12449       sys_lib_search_path_spec=
12450       lt_save_ifs=$IFS
12451       IFS=';'
12452       for lt_path in $LIB
12453       do
12454         IFS=$lt_save_ifs
12455         # Let DOS variable expansion print the short 8.3 style file name.
12456         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12457         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12458       done
12459       IFS=$lt_save_ifs
12460       # Convert to MSYS style.
12461       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12462       ;;
12463     cygwin*)
12464       # Convert to unix form, then to dos form, then back to unix form
12465       # but this time dos style (no spaces!) so that the unix form looks
12466       # like /cygdrive/c/PROGRA~1:/cygdr...
12467       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12468       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12469       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12470       ;;
12471     *)
12472       sys_lib_search_path_spec="$LIB"
12473       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12474         # It is most probably a Windows format PATH.
12475         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12476       else
12477         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12478       fi
12479       # FIXME: find the short name or the path components, as spaces are
12480       # common. (e.g. "Program Files" -> "PROGRA~1")
12481       ;;
12482     esac
12483
12484     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12485     postinstall_cmds='base_file=`basename \${file}`~
12486       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12487       dldir=$destdir/`dirname \$dlpath`~
12488       test -d \$dldir || mkdir -p \$dldir~
12489       $install_prog $dir/$dlname \$dldir/$dlname'
12490     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12491       dlpath=$dir/\$dldll~
12492        $RM \$dlpath'
12493     shlibpath_overrides_runpath=yes
12494     dynamic_linker='Win32 link.exe'
12495     ;;
12496
12497   *)
12498     # Assume MSVC wrapper
12499     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12500     dynamic_linker='Win32 ld.exe'
12501     ;;
12502   esac
12503   # FIXME: first we should search . and the directory the executable is in
12504   shlibpath_var=PATH
12505   ;;
12506
12507 darwin* | rhapsody*)
12508   dynamic_linker="$host_os dyld"
12509   version_type=darwin
12510   need_lib_prefix=no
12511   need_version=no
12512   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12513   soname_spec='${libname}${release}${major}$shared_ext'
12514   shlibpath_overrides_runpath=yes
12515   shlibpath_var=DYLD_LIBRARY_PATH
12516   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12517
12518   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12519   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12520   ;;
12521
12522 dgux*)
12523   version_type=linux # correct to gnu/linux during the next big refactor
12524   need_lib_prefix=no
12525   need_version=no
12526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12527   soname_spec='${libname}${release}${shared_ext}$major'
12528   shlibpath_var=LD_LIBRARY_PATH
12529   ;;
12530
12531 freebsd* | dragonfly*)
12532   # DragonFly does not have aout.  When/if they implement a new
12533   # versioning mechanism, adjust this.
12534   if test -x /usr/bin/objformat; then
12535     objformat=`/usr/bin/objformat`
12536   else
12537     case $host_os in
12538     freebsd[23].*) objformat=aout ;;
12539     *) objformat=elf ;;
12540     esac
12541   fi
12542   version_type=freebsd-$objformat
12543   case $version_type in
12544     freebsd-elf*)
12545       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12546       need_version=no
12547       need_lib_prefix=no
12548       ;;
12549     freebsd-*)
12550       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12551       need_version=yes
12552       ;;
12553   esac
12554   shlibpath_var=LD_LIBRARY_PATH
12555   case $host_os in
12556   freebsd2.*)
12557     shlibpath_overrides_runpath=yes
12558     ;;
12559   freebsd3.[01]* | freebsdelf3.[01]*)
12560     shlibpath_overrides_runpath=yes
12561     hardcode_into_libs=yes
12562     ;;
12563   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12564   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12565     shlibpath_overrides_runpath=no
12566     hardcode_into_libs=yes
12567     ;;
12568   *) # from 4.6 on, and DragonFly
12569     shlibpath_overrides_runpath=yes
12570     hardcode_into_libs=yes
12571     ;;
12572   esac
12573   ;;
12574
12575 gnu*)
12576   version_type=linux # correct to gnu/linux during the next big refactor
12577   need_lib_prefix=no
12578   need_version=no
12579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12580   soname_spec='${libname}${release}${shared_ext}$major'
12581   shlibpath_var=LD_LIBRARY_PATH
12582   shlibpath_overrides_runpath=no
12583   hardcode_into_libs=yes
12584   ;;
12585
12586 haiku*)
12587   version_type=linux # correct to gnu/linux during the next big refactor
12588   need_lib_prefix=no
12589   need_version=no
12590   dynamic_linker="$host_os runtime_loader"
12591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12592   soname_spec='${libname}${release}${shared_ext}$major'
12593   shlibpath_var=LIBRARY_PATH
12594   shlibpath_overrides_runpath=yes
12595   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12596   hardcode_into_libs=yes
12597   ;;
12598
12599 hpux9* | hpux10* | hpux11*)
12600   # Give a soname corresponding to the major version so that dld.sl refuses to
12601   # link against other versions.
12602   version_type=sunos
12603   need_lib_prefix=no
12604   need_version=no
12605   case $host_cpu in
12606   ia64*)
12607     shrext_cmds='.so'
12608     hardcode_into_libs=yes
12609     dynamic_linker="$host_os dld.so"
12610     shlibpath_var=LD_LIBRARY_PATH
12611     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12612     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12613     soname_spec='${libname}${release}${shared_ext}$major'
12614     if test "X$HPUX_IA64_MODE" = X32; then
12615       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12616     else
12617       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12618     fi
12619     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12620     ;;
12621   hppa*64*)
12622     shrext_cmds='.sl'
12623     hardcode_into_libs=yes
12624     dynamic_linker="$host_os dld.sl"
12625     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12626     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12627     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12628     soname_spec='${libname}${release}${shared_ext}$major'
12629     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12630     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12631     ;;
12632   *)
12633     shrext_cmds='.sl'
12634     dynamic_linker="$host_os dld.sl"
12635     shlibpath_var=SHLIB_PATH
12636     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12637     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12638     soname_spec='${libname}${release}${shared_ext}$major'
12639     ;;
12640   esac
12641   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12642   postinstall_cmds='chmod 555 $lib'
12643   # or fails outright, so override atomically:
12644   install_override_mode=555
12645   ;;
12646
12647 interix[3-9]*)
12648   version_type=linux # correct to gnu/linux during the next big refactor
12649   need_lib_prefix=no
12650   need_version=no
12651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12652   soname_spec='${libname}${release}${shared_ext}$major'
12653   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12654   shlibpath_var=LD_LIBRARY_PATH
12655   shlibpath_overrides_runpath=no
12656   hardcode_into_libs=yes
12657   ;;
12658
12659 irix5* | irix6* | nonstopux*)
12660   case $host_os in
12661     nonstopux*) version_type=nonstopux ;;
12662     *)
12663         if test "$lt_cv_prog_gnu_ld" = yes; then
12664                 version_type=linux # correct to gnu/linux during the next big refactor
12665         else
12666                 version_type=irix
12667         fi ;;
12668   esac
12669   need_lib_prefix=no
12670   need_version=no
12671   soname_spec='${libname}${release}${shared_ext}$major'
12672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12673   case $host_os in
12674   irix5* | nonstopux*)
12675     libsuff= shlibsuff=
12676     ;;
12677   *)
12678     case $LD in # libtool.m4 will add one of these switches to LD
12679     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12680       libsuff= shlibsuff= libmagic=32-bit;;
12681     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12682       libsuff=32 shlibsuff=N32 libmagic=N32;;
12683     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12684       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12685     *) libsuff= shlibsuff= libmagic=never-match;;
12686     esac
12687     ;;
12688   esac
12689   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12690   shlibpath_overrides_runpath=no
12691   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12692   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12693   hardcode_into_libs=yes
12694   ;;
12695
12696 # No shared lib support for Linux oldld, aout, or coff.
12697 linux*oldld* | linux*aout* | linux*coff*)
12698   dynamic_linker=no
12699   ;;
12700
12701 # This must be glibc/ELF.
12702 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12703   version_type=linux # correct to gnu/linux during the next big refactor
12704   need_lib_prefix=no
12705   need_version=no
12706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12707   soname_spec='${libname}${release}${shared_ext}$major'
12708   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12709   shlibpath_var=LD_LIBRARY_PATH
12710   shlibpath_overrides_runpath=no
12711
12712   # Some binutils ld are patched to set DT_RUNPATH
12713   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12714   $as_echo_n "(cached) " >&6
12715 else
12716   lt_cv_shlibpath_overrides_runpath=no
12717     save_LDFLAGS=$LDFLAGS
12718     save_libdir=$libdir
12719     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12720          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12721     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h.  */
12723
12724 int
12725 main ()
12726 {
12727
12728   ;
12729   return 0;
12730 }
12731 _ACEOF
12732 if ac_fn_c_try_link "$LINENO"; then :
12733   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12734   lt_cv_shlibpath_overrides_runpath=yes
12735 fi
12736 fi
12737 rm -f core conftest.err conftest.$ac_objext \
12738     conftest$ac_exeext conftest.$ac_ext
12739     LDFLAGS=$save_LDFLAGS
12740     libdir=$save_libdir
12741
12742 fi
12743
12744   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12745
12746   # This implies no fast_install, which is unacceptable.
12747   # Some rework will be needed to allow for fast_install
12748   # before this can be enabled.
12749   hardcode_into_libs=yes
12750
12751   # Add ABI-specific directories to the system library path.
12752   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12753
12754   # Append ld.so.conf contents to the search path
12755   if test -f /etc/ld.so.conf; then
12756     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' ' '`
12757     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12758
12759   fi
12760
12761   # We used to test for /lib/ld.so.1 and disable shared libraries on
12762   # powerpc, because MkLinux only supported shared libraries with the
12763   # GNU dynamic linker.  Since this was broken with cross compilers,
12764   # most powerpc-linux boxes support dynamic linking these days and
12765   # people can always --disable-shared, the test was removed, and we
12766   # assume the GNU/Linux dynamic linker is in use.
12767   dynamic_linker='GNU/Linux ld.so'
12768   ;;
12769
12770 netbsd*)
12771   version_type=sunos
12772   need_lib_prefix=no
12773   need_version=no
12774   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12775     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12776     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12777     dynamic_linker='NetBSD (a.out) ld.so'
12778   else
12779     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12780     soname_spec='${libname}${release}${shared_ext}$major'
12781     dynamic_linker='NetBSD ld.elf_so'
12782   fi
12783   shlibpath_var=LD_LIBRARY_PATH
12784   shlibpath_overrides_runpath=yes
12785   hardcode_into_libs=yes
12786   ;;
12787
12788 newsos6)
12789   version_type=linux # correct to gnu/linux during the next big refactor
12790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12791   shlibpath_var=LD_LIBRARY_PATH
12792   shlibpath_overrides_runpath=yes
12793   ;;
12794
12795 *nto* | *qnx*)
12796   version_type=qnx
12797   need_lib_prefix=no
12798   need_version=no
12799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12800   soname_spec='${libname}${release}${shared_ext}$major'
12801   shlibpath_var=LD_LIBRARY_PATH
12802   shlibpath_overrides_runpath=no
12803   hardcode_into_libs=yes
12804   dynamic_linker='ldqnx.so'
12805   ;;
12806
12807 openbsd*)
12808   version_type=sunos
12809   sys_lib_dlsearch_path_spec="/usr/lib"
12810   need_lib_prefix=no
12811   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12812   case $host_os in
12813     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12814     *)                          need_version=no  ;;
12815   esac
12816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12817   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12818   shlibpath_var=LD_LIBRARY_PATH
12819   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12820     case $host_os in
12821       openbsd2.[89] | openbsd2.[89].*)
12822         shlibpath_overrides_runpath=no
12823         ;;
12824       *)
12825         shlibpath_overrides_runpath=yes
12826         ;;
12827       esac
12828   else
12829     shlibpath_overrides_runpath=yes
12830   fi
12831   ;;
12832
12833 os2*)
12834   libname_spec='$name'
12835   shrext_cmds=".dll"
12836   need_lib_prefix=no
12837   library_names_spec='$libname${shared_ext} $libname.a'
12838   dynamic_linker='OS/2 ld.exe'
12839   shlibpath_var=LIBPATH
12840   ;;
12841
12842 osf3* | osf4* | osf5*)
12843   version_type=osf
12844   need_lib_prefix=no
12845   need_version=no
12846   soname_spec='${libname}${release}${shared_ext}$major'
12847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12848   shlibpath_var=LD_LIBRARY_PATH
12849   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12850   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12851   ;;
12852
12853 rdos*)
12854   dynamic_linker=no
12855   ;;
12856
12857 solaris*)
12858   version_type=linux # correct to gnu/linux during the next big refactor
12859   need_lib_prefix=no
12860   need_version=no
12861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12862   soname_spec='${libname}${release}${shared_ext}$major'
12863   shlibpath_var=LD_LIBRARY_PATH
12864   shlibpath_overrides_runpath=yes
12865   hardcode_into_libs=yes
12866   # ldd complains unless libraries are executable
12867   postinstall_cmds='chmod +x $lib'
12868   ;;
12869
12870 sunos4*)
12871   version_type=sunos
12872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12873   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12874   shlibpath_var=LD_LIBRARY_PATH
12875   shlibpath_overrides_runpath=yes
12876   if test "$with_gnu_ld" = yes; then
12877     need_lib_prefix=no
12878   fi
12879   need_version=yes
12880   ;;
12881
12882 sysv4 | sysv4.3*)
12883   version_type=linux # correct to gnu/linux during the next big refactor
12884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12885   soname_spec='${libname}${release}${shared_ext}$major'
12886   shlibpath_var=LD_LIBRARY_PATH
12887   case $host_vendor in
12888     sni)
12889       shlibpath_overrides_runpath=no
12890       need_lib_prefix=no
12891       runpath_var=LD_RUN_PATH
12892       ;;
12893     siemens)
12894       need_lib_prefix=no
12895       ;;
12896     motorola)
12897       need_lib_prefix=no
12898       need_version=no
12899       shlibpath_overrides_runpath=no
12900       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12901       ;;
12902   esac
12903   ;;
12904
12905 sysv4*MP*)
12906   if test -d /usr/nec ;then
12907     version_type=linux # correct to gnu/linux during the next big refactor
12908     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12909     soname_spec='$libname${shared_ext}.$major'
12910     shlibpath_var=LD_LIBRARY_PATH
12911   fi
12912   ;;
12913
12914 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12915   version_type=freebsd-elf
12916   need_lib_prefix=no
12917   need_version=no
12918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12919   soname_spec='${libname}${release}${shared_ext}$major'
12920   shlibpath_var=LD_LIBRARY_PATH
12921   shlibpath_overrides_runpath=yes
12922   hardcode_into_libs=yes
12923   if test "$with_gnu_ld" = yes; then
12924     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12925   else
12926     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12927     case $host_os in
12928       sco3.2v5*)
12929         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12930         ;;
12931     esac
12932   fi
12933   sys_lib_dlsearch_path_spec='/usr/lib'
12934   ;;
12935
12936 tpf*)
12937   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12938   version_type=linux # correct to gnu/linux during the next big refactor
12939   need_lib_prefix=no
12940   need_version=no
12941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12942   shlibpath_var=LD_LIBRARY_PATH
12943   shlibpath_overrides_runpath=no
12944   hardcode_into_libs=yes
12945   ;;
12946
12947 uts4*)
12948   version_type=linux # correct to gnu/linux during the next big refactor
12949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12950   soname_spec='${libname}${release}${shared_ext}$major'
12951   shlibpath_var=LD_LIBRARY_PATH
12952   ;;
12953
12954 *)
12955   dynamic_linker=no
12956   ;;
12957 esac
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12959 $as_echo "$dynamic_linker" >&6; }
12960 test "$dynamic_linker" = no && can_build_shared=no
12961
12962 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12963 if test "$GCC" = yes; then
12964   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12965 fi
12966
12967 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12968   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12969 fi
12970 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12971   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12972 fi
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13066 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13067 hardcode_action=
13068 if test -n "$hardcode_libdir_flag_spec" ||
13069    test -n "$runpath_var" ||
13070    test "X$hardcode_automatic" = "Xyes" ; then
13071
13072   # We can hardcode non-existent directories.
13073   if test "$hardcode_direct" != no &&
13074      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13075      # have to relink, otherwise we might link with an installed library
13076      # when we should be linking with a yet-to-be-installed one
13077      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13078      test "$hardcode_minus_L" != no; then
13079     # Linking always hardcodes the temporary library directory.
13080     hardcode_action=relink
13081   else
13082     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13083     hardcode_action=immediate
13084   fi
13085 else
13086   # We cannot hardcode anything, or else we can only hardcode existing
13087   # directories.
13088   hardcode_action=unsupported
13089 fi
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13091 $as_echo "$hardcode_action" >&6; }
13092
13093 if test "$hardcode_action" = relink ||
13094    test "$inherit_rpath" = yes; then
13095   # Fast installation is not supported
13096   enable_fast_install=no
13097 elif test "$shlibpath_overrides_runpath" = yes ||
13098      test "$enable_shared" = no; then
13099   # Fast installation is not necessary
13100   enable_fast_install=needless
13101 fi
13102
13103
13104
13105
13106
13107
13108   if test "x$enable_dlopen" != xyes; then
13109   enable_dlopen=unknown
13110   enable_dlopen_self=unknown
13111   enable_dlopen_self_static=unknown
13112 else
13113   lt_cv_dlopen=no
13114   lt_cv_dlopen_libs=
13115
13116   case $host_os in
13117   beos*)
13118     lt_cv_dlopen="load_add_on"
13119     lt_cv_dlopen_libs=
13120     lt_cv_dlopen_self=yes
13121     ;;
13122
13123   mingw* | pw32* | cegcc*)
13124     lt_cv_dlopen="LoadLibrary"
13125     lt_cv_dlopen_libs=
13126     ;;
13127
13128   cygwin*)
13129     lt_cv_dlopen="dlopen"
13130     lt_cv_dlopen_libs=
13131     ;;
13132
13133   darwin*)
13134   # if libdl is installed we need to link against it
13135     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13136 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13137 if ${ac_cv_lib_dl_dlopen+:} false; then :
13138   $as_echo_n "(cached) " >&6
13139 else
13140   ac_check_lib_save_LIBS=$LIBS
13141 LIBS="-ldl  $LIBS"
13142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h.  */
13144
13145 /* Override any GCC internal prototype to avoid an error.
13146    Use char because int might match the return type of a GCC
13147    builtin and then its argument prototype would still apply.  */
13148 #ifdef __cplusplus
13149 extern "C"
13150 #endif
13151 char dlopen ();
13152 int
13153 main ()
13154 {
13155 return dlopen ();
13156   ;
13157   return 0;
13158 }
13159 _ACEOF
13160 if ac_fn_c_try_link "$LINENO"; then :
13161   ac_cv_lib_dl_dlopen=yes
13162 else
13163   ac_cv_lib_dl_dlopen=no
13164 fi
13165 rm -f core conftest.err conftest.$ac_objext \
13166     conftest$ac_exeext conftest.$ac_ext
13167 LIBS=$ac_check_lib_save_LIBS
13168 fi
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13170 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13171 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13172   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13173 else
13174
13175     lt_cv_dlopen="dyld"
13176     lt_cv_dlopen_libs=
13177     lt_cv_dlopen_self=yes
13178
13179 fi
13180
13181     ;;
13182
13183   *)
13184     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13185 if test "x$ac_cv_func_shl_load" = xyes; then :
13186   lt_cv_dlopen="shl_load"
13187 else
13188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13189 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13190 if ${ac_cv_lib_dld_shl_load+:} false; then :
13191   $as_echo_n "(cached) " >&6
13192 else
13193   ac_check_lib_save_LIBS=$LIBS
13194 LIBS="-ldld  $LIBS"
13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h.  */
13197
13198 /* Override any GCC internal prototype to avoid an error.
13199    Use char because int might match the return type of a GCC
13200    builtin and then its argument prototype would still apply.  */
13201 #ifdef __cplusplus
13202 extern "C"
13203 #endif
13204 char shl_load ();
13205 int
13206 main ()
13207 {
13208 return shl_load ();
13209   ;
13210   return 0;
13211 }
13212 _ACEOF
13213 if ac_fn_c_try_link "$LINENO"; then :
13214   ac_cv_lib_dld_shl_load=yes
13215 else
13216   ac_cv_lib_dld_shl_load=no
13217 fi
13218 rm -f core conftest.err conftest.$ac_objext \
13219     conftest$ac_exeext conftest.$ac_ext
13220 LIBS=$ac_check_lib_save_LIBS
13221 fi
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13223 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13224 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13225   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13226 else
13227   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13228 if test "x$ac_cv_func_dlopen" = xyes; then :
13229   lt_cv_dlopen="dlopen"
13230 else
13231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13232 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13233 if ${ac_cv_lib_dl_dlopen+:} false; then :
13234   $as_echo_n "(cached) " >&6
13235 else
13236   ac_check_lib_save_LIBS=$LIBS
13237 LIBS="-ldl  $LIBS"
13238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239 /* end confdefs.h.  */
13240
13241 /* Override any GCC internal prototype to avoid an error.
13242    Use char because int might match the return type of a GCC
13243    builtin and then its argument prototype would still apply.  */
13244 #ifdef __cplusplus
13245 extern "C"
13246 #endif
13247 char dlopen ();
13248 int
13249 main ()
13250 {
13251 return dlopen ();
13252   ;
13253   return 0;
13254 }
13255 _ACEOF
13256 if ac_fn_c_try_link "$LINENO"; then :
13257   ac_cv_lib_dl_dlopen=yes
13258 else
13259   ac_cv_lib_dl_dlopen=no
13260 fi
13261 rm -f core conftest.err conftest.$ac_objext \
13262     conftest$ac_exeext conftest.$ac_ext
13263 LIBS=$ac_check_lib_save_LIBS
13264 fi
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13266 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13267 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13268   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13269 else
13270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13271 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13272 if ${ac_cv_lib_svld_dlopen+:} false; then :
13273   $as_echo_n "(cached) " >&6
13274 else
13275   ac_check_lib_save_LIBS=$LIBS
13276 LIBS="-lsvld  $LIBS"
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h.  */
13279
13280 /* Override any GCC internal prototype to avoid an error.
13281    Use char because int might match the return type of a GCC
13282    builtin and then its argument prototype would still apply.  */
13283 #ifdef __cplusplus
13284 extern "C"
13285 #endif
13286 char dlopen ();
13287 int
13288 main ()
13289 {
13290 return dlopen ();
13291   ;
13292   return 0;
13293 }
13294 _ACEOF
13295 if ac_fn_c_try_link "$LINENO"; then :
13296   ac_cv_lib_svld_dlopen=yes
13297 else
13298   ac_cv_lib_svld_dlopen=no
13299 fi
13300 rm -f core conftest.err conftest.$ac_objext \
13301     conftest$ac_exeext conftest.$ac_ext
13302 LIBS=$ac_check_lib_save_LIBS
13303 fi
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13305 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13306 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13307   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13308 else
13309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13310 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13311 if ${ac_cv_lib_dld_dld_link+:} false; then :
13312   $as_echo_n "(cached) " >&6
13313 else
13314   ac_check_lib_save_LIBS=$LIBS
13315 LIBS="-ldld  $LIBS"
13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h.  */
13318
13319 /* Override any GCC internal prototype to avoid an error.
13320    Use char because int might match the return type of a GCC
13321    builtin and then its argument prototype would still apply.  */
13322 #ifdef __cplusplus
13323 extern "C"
13324 #endif
13325 char dld_link ();
13326 int
13327 main ()
13328 {
13329 return dld_link ();
13330   ;
13331   return 0;
13332 }
13333 _ACEOF
13334 if ac_fn_c_try_link "$LINENO"; then :
13335   ac_cv_lib_dld_dld_link=yes
13336 else
13337   ac_cv_lib_dld_dld_link=no
13338 fi
13339 rm -f core conftest.err conftest.$ac_objext \
13340     conftest$ac_exeext conftest.$ac_ext
13341 LIBS=$ac_check_lib_save_LIBS
13342 fi
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13344 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13345 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13346   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13347 fi
13348
13349
13350 fi
13351
13352
13353 fi
13354
13355
13356 fi
13357
13358
13359 fi
13360
13361
13362 fi
13363
13364     ;;
13365   esac
13366
13367   if test "x$lt_cv_dlopen" != xno; then
13368     enable_dlopen=yes
13369   else
13370     enable_dlopen=no
13371   fi
13372
13373   case $lt_cv_dlopen in
13374   dlopen)
13375     save_CPPFLAGS="$CPPFLAGS"
13376     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13377
13378     save_LDFLAGS="$LDFLAGS"
13379     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13380
13381     save_LIBS="$LIBS"
13382     LIBS="$lt_cv_dlopen_libs $LIBS"
13383
13384     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13385 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13386 if ${lt_cv_dlopen_self+:} false; then :
13387   $as_echo_n "(cached) " >&6
13388 else
13389           if test "$cross_compiling" = yes; then :
13390   lt_cv_dlopen_self=cross
13391 else
13392   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13393   lt_status=$lt_dlunknown
13394   cat > conftest.$ac_ext <<_LT_EOF
13395 #line $LINENO "configure"
13396 #include "confdefs.h"
13397
13398 #if HAVE_DLFCN_H
13399 #include <dlfcn.h>
13400 #endif
13401
13402 #include <stdio.h>
13403
13404 #ifdef RTLD_GLOBAL
13405 #  define LT_DLGLOBAL           RTLD_GLOBAL
13406 #else
13407 #  ifdef DL_GLOBAL
13408 #    define LT_DLGLOBAL         DL_GLOBAL
13409 #  else
13410 #    define LT_DLGLOBAL         0
13411 #  endif
13412 #endif
13413
13414 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13415    find out it does not work in some platform. */
13416 #ifndef LT_DLLAZY_OR_NOW
13417 #  ifdef RTLD_LAZY
13418 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13419 #  else
13420 #    ifdef DL_LAZY
13421 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13422 #    else
13423 #      ifdef RTLD_NOW
13424 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13425 #      else
13426 #        ifdef DL_NOW
13427 #          define LT_DLLAZY_OR_NOW      DL_NOW
13428 #        else
13429 #          define LT_DLLAZY_OR_NOW      0
13430 #        endif
13431 #      endif
13432 #    endif
13433 #  endif
13434 #endif
13435
13436 /* When -fvisbility=hidden is used, assume the code has been annotated
13437    correspondingly for the symbols needed.  */
13438 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13439 int fnord () __attribute__((visibility("default")));
13440 #endif
13441
13442 int fnord () { return 42; }
13443 int main ()
13444 {
13445   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13446   int status = $lt_dlunknown;
13447
13448   if (self)
13449     {
13450       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13451       else
13452         {
13453           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13454           else puts (dlerror ());
13455         }
13456       /* dlclose (self); */
13457     }
13458   else
13459     puts (dlerror ());
13460
13461   return status;
13462 }
13463 _LT_EOF
13464   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13465   (eval $ac_link) 2>&5
13466   ac_status=$?
13467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13468   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13469     (./conftest; exit; ) >&5 2>/dev/null
13470     lt_status=$?
13471     case x$lt_status in
13472       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13473       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13474       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13475     esac
13476   else :
13477     # compilation failed
13478     lt_cv_dlopen_self=no
13479   fi
13480 fi
13481 rm -fr conftest*
13482
13483
13484 fi
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13486 $as_echo "$lt_cv_dlopen_self" >&6; }
13487
13488     if test "x$lt_cv_dlopen_self" = xyes; then
13489       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13490       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13491 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13492 if ${lt_cv_dlopen_self_static+:} false; then :
13493   $as_echo_n "(cached) " >&6
13494 else
13495           if test "$cross_compiling" = yes; then :
13496   lt_cv_dlopen_self_static=cross
13497 else
13498   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13499   lt_status=$lt_dlunknown
13500   cat > conftest.$ac_ext <<_LT_EOF
13501 #line $LINENO "configure"
13502 #include "confdefs.h"
13503
13504 #if HAVE_DLFCN_H
13505 #include <dlfcn.h>
13506 #endif
13507
13508 #include <stdio.h>
13509
13510 #ifdef RTLD_GLOBAL
13511 #  define LT_DLGLOBAL           RTLD_GLOBAL
13512 #else
13513 #  ifdef DL_GLOBAL
13514 #    define LT_DLGLOBAL         DL_GLOBAL
13515 #  else
13516 #    define LT_DLGLOBAL         0
13517 #  endif
13518 #endif
13519
13520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13521    find out it does not work in some platform. */
13522 #ifndef LT_DLLAZY_OR_NOW
13523 #  ifdef RTLD_LAZY
13524 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13525 #  else
13526 #    ifdef DL_LAZY
13527 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13528 #    else
13529 #      ifdef RTLD_NOW
13530 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13531 #      else
13532 #        ifdef DL_NOW
13533 #          define LT_DLLAZY_OR_NOW      DL_NOW
13534 #        else
13535 #          define LT_DLLAZY_OR_NOW      0
13536 #        endif
13537 #      endif
13538 #    endif
13539 #  endif
13540 #endif
13541
13542 /* When -fvisbility=hidden is used, assume the code has been annotated
13543    correspondingly for the symbols needed.  */
13544 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13545 int fnord () __attribute__((visibility("default")));
13546 #endif
13547
13548 int fnord () { return 42; }
13549 int main ()
13550 {
13551   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13552   int status = $lt_dlunknown;
13553
13554   if (self)
13555     {
13556       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13557       else
13558         {
13559           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13560           else puts (dlerror ());
13561         }
13562       /* dlclose (self); */
13563     }
13564   else
13565     puts (dlerror ());
13566
13567   return status;
13568 }
13569 _LT_EOF
13570   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13571   (eval $ac_link) 2>&5
13572   ac_status=$?
13573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13574   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13575     (./conftest; exit; ) >&5 2>/dev/null
13576     lt_status=$?
13577     case x$lt_status in
13578       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13579       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13580       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13581     esac
13582   else :
13583     # compilation failed
13584     lt_cv_dlopen_self_static=no
13585   fi
13586 fi
13587 rm -fr conftest*
13588
13589
13590 fi
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13592 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13593     fi
13594
13595     CPPFLAGS="$save_CPPFLAGS"
13596     LDFLAGS="$save_LDFLAGS"
13597     LIBS="$save_LIBS"
13598     ;;
13599   esac
13600
13601   case $lt_cv_dlopen_self in
13602   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13603   *) enable_dlopen_self=unknown ;;
13604   esac
13605
13606   case $lt_cv_dlopen_self_static in
13607   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13608   *) enable_dlopen_self_static=unknown ;;
13609   esac
13610 fi
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628 striplib=
13629 old_striplib=
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13631 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13632 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13633   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13634   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13636 $as_echo "yes" >&6; }
13637 else
13638 # FIXME - insert some real tests, host_os isn't really good enough
13639   case $host_os in
13640   darwin*)
13641     if test -n "$STRIP" ; then
13642       striplib="$STRIP -x"
13643       old_striplib="$STRIP -S"
13644       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13645 $as_echo "yes" >&6; }
13646     else
13647       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13648 $as_echo "no" >&6; }
13649     fi
13650     ;;
13651   *)
13652     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13654     ;;
13655   esac
13656 fi
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669   # Report which library types will actually be built
13670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13671 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13673 $as_echo "$can_build_shared" >&6; }
13674
13675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13676 $as_echo_n "checking whether to build shared libraries... " >&6; }
13677   test "$can_build_shared" = "no" && enable_shared=no
13678
13679   # On AIX, shared libraries and static libraries use the same namespace, and
13680   # are all built from PIC.
13681   case $host_os in
13682   aix3*)
13683     test "$enable_shared" = yes && enable_static=no
13684     if test -n "$RANLIB"; then
13685       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13686       postinstall_cmds='$RANLIB $lib'
13687     fi
13688     ;;
13689
13690   aix[4-9]*)
13691     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13692       test "$enable_shared" = yes && enable_static=no
13693     fi
13694     ;;
13695   esac
13696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13697 $as_echo "$enable_shared" >&6; }
13698
13699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13700 $as_echo_n "checking whether to build static libraries... " >&6; }
13701   # Make sure either enable_shared or enable_static is yes.
13702   test "$enable_shared" = yes || enable_static=yes
13703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13704 $as_echo "$enable_static" >&6; }
13705
13706
13707
13708
13709 fi
13710 ac_ext=c
13711 ac_cpp='$CPP $CPPFLAGS'
13712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13715
13716 CC="$lt_save_CC"
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732         ac_config_commands="$ac_config_commands libtool"
13733
13734
13735
13736
13737 # Only expand once:
13738
13739
13740
13741
13742 # Checks for header files.
13743 for ac_header in stdarg.h stdbool.h netinet/in.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
13744 do :
13745   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13746 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13747 "
13748 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13749   cat >>confdefs.h <<_ACEOF
13750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13751 _ACEOF
13752
13753 fi
13754
13755 done
13756
13757
13758 # check for types.
13759 # Using own tests for int64* because autoconf builtin only give 32bit.
13760 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
13761 if test "x$ac_cv_type_int8_t" = xyes; then :
13762
13763 else
13764
13765 cat >>confdefs.h <<_ACEOF
13766 #define int8_t signed char
13767 _ACEOF
13768
13769 fi
13770
13771 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13772 if test "x$ac_cv_type_int16_t" = xyes; then :
13773
13774 else
13775
13776 cat >>confdefs.h <<_ACEOF
13777 #define int16_t short
13778 _ACEOF
13779
13780 fi
13781
13782 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13783 if test "x$ac_cv_type_int32_t" = xyes; then :
13784
13785 else
13786
13787 cat >>confdefs.h <<_ACEOF
13788 #define int32_t int
13789 _ACEOF
13790
13791 fi
13792
13793 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13794 if test "x$ac_cv_type_int64_t" = xyes; then :
13795
13796 else
13797
13798 cat >>confdefs.h <<_ACEOF
13799 #define int64_t long long
13800 _ACEOF
13801
13802 fi
13803
13804 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
13805 if test "x$ac_cv_type_uint8_t" = xyes; then :
13806
13807 else
13808
13809 cat >>confdefs.h <<_ACEOF
13810 #define uint8_t unsigned char
13811 _ACEOF
13812
13813 fi
13814
13815 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13816 if test "x$ac_cv_type_uint16_t" = xyes; then :
13817
13818 else
13819
13820 cat >>confdefs.h <<_ACEOF
13821 #define uint16_t unsigned short
13822 _ACEOF
13823
13824 fi
13825
13826 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13827 if test "x$ac_cv_type_uint32_t" = xyes; then :
13828
13829 else
13830
13831 cat >>confdefs.h <<_ACEOF
13832 #define uint32_t unsigned int
13833 _ACEOF
13834
13835 fi
13836
13837 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13838 if test "x$ac_cv_type_uint64_t" = xyes; then :
13839
13840 else
13841
13842 cat >>confdefs.h <<_ACEOF
13843 #define uint64_t unsigned long long
13844 _ACEOF
13845
13846 fi
13847
13848 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13849 if test "x$ac_cv_type_size_t" = xyes; then :
13850
13851 else
13852
13853 cat >>confdefs.h <<_ACEOF
13854 #define size_t unsigned int
13855 _ACEOF
13856
13857 fi
13858
13859 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13860 if test "x$ac_cv_type_ssize_t" = xyes; then :
13861
13862 else
13863
13864 cat >>confdefs.h <<_ACEOF
13865 #define ssize_t int
13866 _ACEOF
13867
13868 fi
13869
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13871 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13872 if ${ac_cv_type_uid_t+:} false; then :
13873   $as_echo_n "(cached) " >&6
13874 else
13875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h.  */
13877 #include <sys/types.h>
13878
13879 _ACEOF
13880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13881   $EGREP "uid_t" >/dev/null 2>&1; then :
13882   ac_cv_type_uid_t=yes
13883 else
13884   ac_cv_type_uid_t=no
13885 fi
13886 rm -f conftest*
13887
13888 fi
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13890 $as_echo "$ac_cv_type_uid_t" >&6; }
13891 if test $ac_cv_type_uid_t = no; then
13892
13893 $as_echo "#define uid_t int" >>confdefs.h
13894
13895
13896 $as_echo "#define gid_t int" >>confdefs.h
13897
13898 fi
13899
13900 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13901 if test "x$ac_cv_type_pid_t" = xyes; then :
13902
13903 else
13904
13905 cat >>confdefs.h <<_ACEOF
13906 #define pid_t int
13907 _ACEOF
13908
13909 fi
13910
13911 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13912 if test "x$ac_cv_type_off_t" = xyes; then :
13913
13914 else
13915
13916 cat >>confdefs.h <<_ACEOF
13917 #define off_t long int
13918 _ACEOF
13919
13920 fi
13921
13922 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
13923 $ac_includes_default
13924 #ifdef HAVE_WINSOCK2_H
13925 #  include <winsock2.h>
13926 #endif
13927
13928 "
13929 if test "x$ac_cv_type_u_char" = xyes; then :
13930
13931 else
13932
13933 $as_echo "#define u_char unsigned char" >>confdefs.h
13934
13935 fi
13936
13937 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
13938 $ac_includes_default
13939 #ifdef HAVE_SYS_RESOURCE_H
13940 #  include <sys/resource.h>
13941 #endif
13942
13943 "
13944 if test "x$ac_cv_type_rlim_t" = xyes; then :
13945
13946 else
13947
13948 $as_echo "#define rlim_t unsigned long" >>confdefs.h
13949
13950 fi
13951
13952
13953 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13954 $ac_includes_default
13955 #ifdef HAVE_SYS_SOCKET_H
13956 #  include <sys/socket.h>
13957 #endif
13958 #ifdef HAVE_WS2TCPIP_H
13959 #  include <ws2tcpip.h>
13960 #endif
13961
13962 "
13963 if test "x$ac_cv_type_socklen_t" = xyes; then :
13964
13965 else
13966
13967 $as_echo "#define socklen_t int" >>confdefs.h
13968
13969 fi
13970
13971  ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
13972 $ac_includes_default
13973 #ifdef HAVE_SYS_TYPES_H
13974 # include <sys/types.h>
13975 #endif
13976 #ifdef HAVE_NETINET_IN_H
13977 # include <netinet/in.h>
13978 #endif
13979
13980 "
13981 if test "x$ac_cv_type_in_addr_t" = xyes; then :
13982
13983 else
13984
13985 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
13986
13987 fi
13988
13989  ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
13990 $ac_includes_default
13991 #ifdef HAVE_SYS_TYPES_H
13992 # include <sys/types.h>
13993 #endif
13994 #ifdef HAVE_NETINET_IN_H
13995 # include <netinet/in.h>
13996 #endif
13997
13998 "
13999 if test "x$ac_cv_type_in_port_t" = xyes; then :
14000
14001 else
14002
14003 $as_echo "#define in_port_t uint16_t" >>confdefs.h
14004
14005 fi
14006
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
14008 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
14009 if test "$cross_compiling" = yes; then :
14010    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
14011 $as_echo "cross-compile no" >&6; }
14012
14013 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14014
14015   case " $LIBOBJS " in
14016   *" memcmp.$ac_objext "* ) ;;
14017   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14018  ;;
14019 esac
14020
14021
14022 else
14023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h.  */
14025
14026 #include <stdio.h>
14027 #include <stdlib.h>
14028 #include <string.h>
14029 int main(void)
14030 {
14031         char a = 255, b = 0;
14032         if(memcmp(&a, &b, 1) < 0)
14033                 return 1;
14034         return 0;
14035 }
14036
14037 _ACEOF
14038 if ac_fn_c_try_run "$LINENO"; then :
14039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14040 $as_echo "yes" >&6; }
14041 else
14042    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043 $as_echo "no" >&6; }
14044
14045 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14046
14047   case " $LIBOBJS " in
14048   *" memcmp.$ac_objext "* ) ;;
14049   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14050  ;;
14051 esac
14052
14053
14054 fi
14055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14056   conftest.$ac_objext conftest.beam conftest.$ac_ext
14057 fi
14058
14059
14060 # The cast to long int works around a bug in the HP C Compiler
14061 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14062 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14063 # This bug is HP SR number 8606223364.
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14065 $as_echo_n "checking size of time_t... " >&6; }
14066 if ${ac_cv_sizeof_time_t+:} false; then :
14067   $as_echo_n "(cached) " >&6
14068 else
14069   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
14070 $ac_includes_default
14071 #ifdef TIME_WITH_SYS_TIME
14072 # include <sys/time.h>
14073 # include <time.h>
14074 #else
14075 # ifdef HAVE_SYS_TIME_H
14076 #  include <sys/time.h>
14077 # else
14078 #  include <time.h>
14079 # endif
14080 #endif
14081
14082 "; then :
14083
14084 else
14085   if test "$ac_cv_type_time_t" = yes; then
14086      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14088 as_fn_error 77 "cannot compute sizeof (time_t)
14089 See \`config.log' for more details" "$LINENO" 5; }
14090    else
14091      ac_cv_sizeof_time_t=0
14092    fi
14093 fi
14094
14095 fi
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14097 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14098
14099
14100
14101 cat >>confdefs.h <<_ACEOF
14102 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14103 _ACEOF
14104
14105
14106
14107 # add option to disable the evil rpath
14108
14109 # Check whether --enable-rpath was given.
14110 if test "${enable_rpath+set}" = set; then :
14111   enableval=$enable_rpath; enable_rpath=$enableval
14112 else
14113   enable_rpath=yes
14114 fi
14115
14116 if test "x$enable_rpath" = xno; then
14117                 ac_config_commands="$ac_config_commands disable-rpath"
14118
14119 fi
14120
14121
14122
14123 # check to see if libraries are needed for these functions.
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14125 $as_echo_n "checking for library containing inet_pton... " >&6; }
14126 if ${ac_cv_search_inet_pton+:} false; then :
14127   $as_echo_n "(cached) " >&6
14128 else
14129   ac_func_search_save_LIBS=$LIBS
14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h.  */
14132
14133 /* Override any GCC internal prototype to avoid an error.
14134    Use char because int might match the return type of a GCC
14135    builtin and then its argument prototype would still apply.  */
14136 #ifdef __cplusplus
14137 extern "C"
14138 #endif
14139 char inet_pton ();
14140 int
14141 main ()
14142 {
14143 return inet_pton ();
14144   ;
14145   return 0;
14146 }
14147 _ACEOF
14148 for ac_lib in '' nsl; do
14149   if test -z "$ac_lib"; then
14150     ac_res="none required"
14151   else
14152     ac_res=-l$ac_lib
14153     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14154   fi
14155   if ac_fn_c_try_link "$LINENO"; then :
14156   ac_cv_search_inet_pton=$ac_res
14157 fi
14158 rm -f core conftest.err conftest.$ac_objext \
14159     conftest$ac_exeext
14160   if ${ac_cv_search_inet_pton+:} false; then :
14161   break
14162 fi
14163 done
14164 if ${ac_cv_search_inet_pton+:} false; then :
14165
14166 else
14167   ac_cv_search_inet_pton=no
14168 fi
14169 rm conftest.$ac_ext
14170 LIBS=$ac_func_search_save_LIBS
14171 fi
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14173 $as_echo "$ac_cv_search_inet_pton" >&6; }
14174 ac_res=$ac_cv_search_inet_pton
14175 if test "$ac_res" != no; then :
14176   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14177
14178 fi
14179
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14181 $as_echo_n "checking for library containing socket... " >&6; }
14182 if ${ac_cv_search_socket+:} false; then :
14183   $as_echo_n "(cached) " >&6
14184 else
14185   ac_func_search_save_LIBS=$LIBS
14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h.  */
14188
14189 /* Override any GCC internal prototype to avoid an error.
14190    Use char because int might match the return type of a GCC
14191    builtin and then its argument prototype would still apply.  */
14192 #ifdef __cplusplus
14193 extern "C"
14194 #endif
14195 char socket ();
14196 int
14197 main ()
14198 {
14199 return socket ();
14200   ;
14201   return 0;
14202 }
14203 _ACEOF
14204 for ac_lib in '' socket; do
14205   if test -z "$ac_lib"; then
14206     ac_res="none required"
14207   else
14208     ac_res=-l$ac_lib
14209     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14210   fi
14211   if ac_fn_c_try_link "$LINENO"; then :
14212   ac_cv_search_socket=$ac_res
14213 fi
14214 rm -f core conftest.err conftest.$ac_objext \
14215     conftest$ac_exeext
14216   if ${ac_cv_search_socket+:} false; then :
14217   break
14218 fi
14219 done
14220 if ${ac_cv_search_socket+:} false; then :
14221
14222 else
14223   ac_cv_search_socket=no
14224 fi
14225 rm conftest.$ac_ext
14226 LIBS=$ac_func_search_save_LIBS
14227 fi
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14229 $as_echo "$ac_cv_search_socket" >&6; }
14230 ac_res=$ac_cv_search_socket
14231 if test "$ac_res" != no; then :
14232   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14233
14234 fi
14235
14236
14237 # check wether strptime also works
14238
14239 # check some functions of the OS before linking libs (while still runnable).
14240 for ac_header in unistd.h
14241 do :
14242   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14243 if test "x$ac_cv_header_unistd_h" = xyes; then :
14244   cat >>confdefs.h <<_ACEOF
14245 #define HAVE_UNISTD_H 1
14246 _ACEOF
14247
14248 fi
14249
14250 done
14251
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14253 $as_echo_n "checking for working chown... " >&6; }
14254 if ${ac_cv_func_chown_works+:} false; then :
14255   $as_echo_n "(cached) " >&6
14256 else
14257   if test "$cross_compiling" = yes; then :
14258   ac_cv_func_chown_works=no
14259 else
14260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261 /* end confdefs.h.  */
14262 $ac_includes_default
14263 #include <fcntl.h>
14264
14265 int
14266 main ()
14267 {
14268   char *f = "conftest.chown";
14269   struct stat before, after;
14270
14271   if (creat (f, 0600) < 0)
14272     return 1;
14273   if (stat (f, &before) < 0)
14274     return 1;
14275   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14276     return 1;
14277   if (stat (f, &after) < 0)
14278     return 1;
14279   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
14280
14281   ;
14282   return 0;
14283 }
14284 _ACEOF
14285 if ac_fn_c_try_run "$LINENO"; then :
14286   ac_cv_func_chown_works=yes
14287 else
14288   ac_cv_func_chown_works=no
14289 fi
14290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14291   conftest.$ac_objext conftest.beam conftest.$ac_ext
14292 fi
14293
14294 rm -f conftest.chown
14295
14296 fi
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
14298 $as_echo "$ac_cv_func_chown_works" >&6; }
14299 if test $ac_cv_func_chown_works = yes; then
14300
14301 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
14302
14303 fi
14304
14305 for ac_header in vfork.h
14306 do :
14307   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14308 if test "x$ac_cv_header_vfork_h" = xyes; then :
14309   cat >>confdefs.h <<_ACEOF
14310 #define HAVE_VFORK_H 1
14311 _ACEOF
14312
14313 fi
14314
14315 done
14316
14317 for ac_func in fork vfork
14318 do :
14319   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14320 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14321 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14322   cat >>confdefs.h <<_ACEOF
14323 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14324 _ACEOF
14325
14326 fi
14327 done
14328
14329 if test "x$ac_cv_func_fork" = xyes; then
14330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14331 $as_echo_n "checking for working fork... " >&6; }
14332 if ${ac_cv_func_fork_works+:} false; then :
14333   $as_echo_n "(cached) " >&6
14334 else
14335   if test "$cross_compiling" = yes; then :
14336   ac_cv_func_fork_works=cross
14337 else
14338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14339 /* end confdefs.h.  */
14340 $ac_includes_default
14341 int
14342 main ()
14343 {
14344
14345           /* By Ruediger Kuhlmann. */
14346           return fork () < 0;
14347
14348   ;
14349   return 0;
14350 }
14351 _ACEOF
14352 if ac_fn_c_try_run "$LINENO"; then :
14353   ac_cv_func_fork_works=yes
14354 else
14355   ac_cv_func_fork_works=no
14356 fi
14357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14358   conftest.$ac_objext conftest.beam conftest.$ac_ext
14359 fi
14360
14361 fi
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14363 $as_echo "$ac_cv_func_fork_works" >&6; }
14364
14365 else
14366   ac_cv_func_fork_works=$ac_cv_func_fork
14367 fi
14368 if test "x$ac_cv_func_fork_works" = xcross; then
14369   case $host in
14370     *-*-amigaos* | *-*-msdosdjgpp*)
14371       # Override, as these systems have only a dummy fork() stub
14372       ac_cv_func_fork_works=no
14373       ;;
14374     *)
14375       ac_cv_func_fork_works=yes
14376       ;;
14377   esac
14378   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14379 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14380 fi
14381 ac_cv_func_vfork_works=$ac_cv_func_vfork
14382 if test "x$ac_cv_func_vfork" = xyes; then
14383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14384 $as_echo_n "checking for working vfork... " >&6; }
14385 if ${ac_cv_func_vfork_works+:} false; then :
14386   $as_echo_n "(cached) " >&6
14387 else
14388   if test "$cross_compiling" = yes; then :
14389   ac_cv_func_vfork_works=cross
14390 else
14391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392 /* end confdefs.h.  */
14393 /* Thanks to Paul Eggert for this test.  */
14394 $ac_includes_default
14395 #include <sys/wait.h>
14396 #ifdef HAVE_VFORK_H
14397 # include <vfork.h>
14398 #endif
14399 /* On some sparc systems, changes by the child to local and incoming
14400    argument registers are propagated back to the parent.  The compiler
14401    is told about this with #include <vfork.h>, but some compilers
14402    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14403    static variable whose address is put into a register that is
14404    clobbered by the vfork.  */
14405 static void
14406 #ifdef __cplusplus
14407 sparc_address_test (int arg)
14408 # else
14409 sparc_address_test (arg) int arg;
14410 #endif
14411 {
14412   static pid_t child;
14413   if (!child) {
14414     child = vfork ();
14415     if (child < 0) {
14416       perror ("vfork");
14417       _exit(2);
14418     }
14419     if (!child) {
14420       arg = getpid();
14421       write(-1, "", 0);
14422       _exit (arg);
14423     }
14424   }
14425 }
14426
14427 int
14428 main ()
14429 {
14430   pid_t parent = getpid ();
14431   pid_t child;
14432
14433   sparc_address_test (0);
14434
14435   child = vfork ();
14436
14437   if (child == 0) {
14438     /* Here is another test for sparc vfork register problems.  This
14439        test uses lots of local variables, at least as many local
14440        variables as main has allocated so far including compiler
14441        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14442        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14443        reuse the register of parent for one of the local variables,
14444        since it will think that parent can't possibly be used any more
14445        in this routine.  Assigning to the local variable will thus
14446        munge parent in the parent process.  */
14447     pid_t
14448       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14449       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14450     /* Convince the compiler that p..p7 are live; otherwise, it might
14451        use the same hardware register for all 8 local variables.  */
14452     if (p != p1 || p != p2 || p != p3 || p != p4
14453         || p != p5 || p != p6 || p != p7)
14454       _exit(1);
14455
14456     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14457        from child file descriptors.  If the child closes a descriptor
14458        before it execs or exits, this munges the parent's descriptor
14459        as well.  Test for this by closing stdout in the child.  */
14460     _exit(close(fileno(stdout)) != 0);
14461   } else {
14462     int status;
14463     struct stat st;
14464
14465     while (wait(&status) != child)
14466       ;
14467     return (
14468          /* Was there some problem with vforking?  */
14469          child < 0
14470
14471          /* Did the child fail?  (This shouldn't happen.)  */
14472          || status
14473
14474          /* Did the vfork/compiler bug occur?  */
14475          || parent != getpid()
14476
14477          /* Did the file descriptor bug occur?  */
14478          || fstat(fileno(stdout), &st) != 0
14479          );
14480   }
14481 }
14482 _ACEOF
14483 if ac_fn_c_try_run "$LINENO"; then :
14484   ac_cv_func_vfork_works=yes
14485 else
14486   ac_cv_func_vfork_works=no
14487 fi
14488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14489   conftest.$ac_objext conftest.beam conftest.$ac_ext
14490 fi
14491
14492 fi
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14494 $as_echo "$ac_cv_func_vfork_works" >&6; }
14495
14496 fi;
14497 if test "x$ac_cv_func_fork_works" = xcross; then
14498   ac_cv_func_vfork_works=$ac_cv_func_vfork
14499   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14500 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14501 fi
14502
14503 if test "x$ac_cv_func_vfork_works" = xyes; then
14504
14505 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14506
14507 else
14508
14509 $as_echo "#define vfork fork" >>confdefs.h
14510
14511 fi
14512 if test "x$ac_cv_func_fork_works" = xyes; then
14513
14514 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14515
14516 fi
14517
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14519 $as_echo_n "checking return type of signal handlers... " >&6; }
14520 if ${ac_cv_type_signal+:} false; then :
14521   $as_echo_n "(cached) " >&6
14522 else
14523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h.  */
14525 #include <sys/types.h>
14526 #include <signal.h>
14527
14528 int
14529 main ()
14530 {
14531 return *(signal (0, 0)) (0) == 1;
14532   ;
14533   return 0;
14534 }
14535 _ACEOF
14536 if ac_fn_c_try_compile "$LINENO"; then :
14537   ac_cv_type_signal=int
14538 else
14539   ac_cv_type_signal=void
14540 fi
14541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14542 fi
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14544 $as_echo "$ac_cv_type_signal" >&6; }
14545
14546 cat >>confdefs.h <<_ACEOF
14547 #define RETSIGTYPE $ac_cv_type_signal
14548 _ACEOF
14549
14550
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14552 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14553 if ${ac_cv_sys_largefile_source+:} false; then :
14554   $as_echo_n "(cached) " >&6
14555 else
14556   while :; do
14557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h.  */
14559 #include <sys/types.h> /* for off_t */
14560      #include <stdio.h>
14561 int
14562 main ()
14563 {
14564 int (*fp) (FILE *, off_t, int) = fseeko;
14565      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14566   ;
14567   return 0;
14568 }
14569 _ACEOF
14570 if ac_fn_c_try_link "$LINENO"; then :
14571   ac_cv_sys_largefile_source=no; break
14572 fi
14573 rm -f core conftest.err conftest.$ac_objext \
14574     conftest$ac_exeext conftest.$ac_ext
14575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h.  */
14577 #define _LARGEFILE_SOURCE 1
14578 #include <sys/types.h> /* for off_t */
14579      #include <stdio.h>
14580 int
14581 main ()
14582 {
14583 int (*fp) (FILE *, off_t, int) = fseeko;
14584      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14585   ;
14586   return 0;
14587 }
14588 _ACEOF
14589 if ac_fn_c_try_link "$LINENO"; then :
14590   ac_cv_sys_largefile_source=1; break
14591 fi
14592 rm -f core conftest.err conftest.$ac_objext \
14593     conftest$ac_exeext conftest.$ac_ext
14594   ac_cv_sys_largefile_source=unknown
14595   break
14596 done
14597 fi
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14599 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14600 case $ac_cv_sys_largefile_source in #(
14601   no | unknown) ;;
14602   *)
14603 cat >>confdefs.h <<_ACEOF
14604 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14605 _ACEOF
14606 ;;
14607 esac
14608 rm -rf conftest*
14609
14610 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14611 # in glibc 2.1.3, but that breaks too many other things.
14612 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14613 if test $ac_cv_sys_largefile_source != unknown; then
14614
14615 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14616
14617 fi
14618
14619
14620 # Check whether --enable-largefile was given.
14621 if test "${enable_largefile+set}" = set; then :
14622   enableval=$enable_largefile;
14623 fi
14624
14625 if test "$enable_largefile" != no; then
14626
14627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14628 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14629 if ${ac_cv_sys_largefile_CC+:} false; then :
14630   $as_echo_n "(cached) " >&6
14631 else
14632   ac_cv_sys_largefile_CC=no
14633      if test "$GCC" != yes; then
14634        ac_save_CC=$CC
14635        while :; do
14636          # IRIX 6.2 and later do not support large files by default,
14637          # so use the C compiler's -n32 option if that helps.
14638          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639 /* end confdefs.h.  */
14640 #include <sys/types.h>
14641  /* Check that off_t can represent 2**63 - 1 correctly.
14642     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14643     since some C++ compilers masquerading as C compilers
14644     incorrectly reject 9223372036854775807.  */
14645 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14646   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14647                        && LARGE_OFF_T % 2147483647 == 1)
14648                       ? 1 : -1];
14649 int
14650 main ()
14651 {
14652
14653   ;
14654   return 0;
14655 }
14656 _ACEOF
14657          if ac_fn_c_try_compile "$LINENO"; then :
14658   break
14659 fi
14660 rm -f core conftest.err conftest.$ac_objext
14661          CC="$CC -n32"
14662          if ac_fn_c_try_compile "$LINENO"; then :
14663   ac_cv_sys_largefile_CC=' -n32'; break
14664 fi
14665 rm -f core conftest.err conftest.$ac_objext
14666          break
14667        done
14668        CC=$ac_save_CC
14669        rm -f conftest.$ac_ext
14670     fi
14671 fi
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14673 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14674   if test "$ac_cv_sys_largefile_CC" != no; then
14675     CC=$CC$ac_cv_sys_largefile_CC
14676   fi
14677
14678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14679 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14680 if ${ac_cv_sys_file_offset_bits+:} false; then :
14681   $as_echo_n "(cached) " >&6
14682 else
14683   while :; do
14684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14685 /* end confdefs.h.  */
14686 #include <sys/types.h>
14687  /* Check that off_t can represent 2**63 - 1 correctly.
14688     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14689     since some C++ compilers masquerading as C compilers
14690     incorrectly reject 9223372036854775807.  */
14691 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14692   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14693                        && LARGE_OFF_T % 2147483647 == 1)
14694                       ? 1 : -1];
14695 int
14696 main ()
14697 {
14698
14699   ;
14700   return 0;
14701 }
14702 _ACEOF
14703 if ac_fn_c_try_compile "$LINENO"; then :
14704   ac_cv_sys_file_offset_bits=no; break
14705 fi
14706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14708 /* end confdefs.h.  */
14709 #define _FILE_OFFSET_BITS 64
14710 #include <sys/types.h>
14711  /* Check that off_t can represent 2**63 - 1 correctly.
14712     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14713     since some C++ compilers masquerading as C compilers
14714     incorrectly reject 9223372036854775807.  */
14715 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14716   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14717                        && LARGE_OFF_T % 2147483647 == 1)
14718                       ? 1 : -1];
14719 int
14720 main ()
14721 {
14722
14723   ;
14724   return 0;
14725 }
14726 _ACEOF
14727 if ac_fn_c_try_compile "$LINENO"; then :
14728   ac_cv_sys_file_offset_bits=64; break
14729 fi
14730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14731   ac_cv_sys_file_offset_bits=unknown
14732   break
14733 done
14734 fi
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14736 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14737 case $ac_cv_sys_file_offset_bits in #(
14738   no | unknown) ;;
14739   *)
14740 cat >>confdefs.h <<_ACEOF
14741 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14742 _ACEOF
14743 ;;
14744 esac
14745 rm -rf conftest*
14746   if test $ac_cv_sys_file_offset_bits = unknown; then
14747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14748 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14749 if ${ac_cv_sys_large_files+:} false; then :
14750   $as_echo_n "(cached) " >&6
14751 else
14752   while :; do
14753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14754 /* end confdefs.h.  */
14755 #include <sys/types.h>
14756  /* Check that off_t can represent 2**63 - 1 correctly.
14757     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14758     since some C++ compilers masquerading as C compilers
14759     incorrectly reject 9223372036854775807.  */
14760 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14761   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14762                        && LARGE_OFF_T % 2147483647 == 1)
14763                       ? 1 : -1];
14764 int
14765 main ()
14766 {
14767
14768   ;
14769   return 0;
14770 }
14771 _ACEOF
14772 if ac_fn_c_try_compile "$LINENO"; then :
14773   ac_cv_sys_large_files=no; break
14774 fi
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777 /* end confdefs.h.  */
14778 #define _LARGE_FILES 1
14779 #include <sys/types.h>
14780  /* Check that off_t can represent 2**63 - 1 correctly.
14781     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14782     since some C++ compilers masquerading as C compilers
14783     incorrectly reject 9223372036854775807.  */
14784 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14785   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14786                        && LARGE_OFF_T % 2147483647 == 1)
14787                       ? 1 : -1];
14788 int
14789 main ()
14790 {
14791
14792   ;
14793   return 0;
14794 }
14795 _ACEOF
14796 if ac_fn_c_try_compile "$LINENO"; then :
14797   ac_cv_sys_large_files=1; break
14798 fi
14799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14800   ac_cv_sys_large_files=unknown
14801   break
14802 done
14803 fi
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14805 $as_echo "$ac_cv_sys_large_files" >&6; }
14806 case $ac_cv_sys_large_files in #(
14807   no | unknown) ;;
14808   *)
14809 cat >>confdefs.h <<_ACEOF
14810 #define _LARGE_FILES $ac_cv_sys_large_files
14811 _ACEOF
14812 ;;
14813 esac
14814 rm -rf conftest*
14815   fi
14816
14817
14818 fi
14819
14820
14821
14822
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
14824 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
14825 cache=_D_LARGEFILE_SOURCE_1
14826 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
14827   $as_echo_n "(cached) " >&6
14828 else
14829
14830 echo '
14831 #include <stdio.h>
14832 int test() {
14833         int a = fseeko(stdin, 0, 0);
14834         return a;
14835 }
14836 ' > conftest.c
14837 echo 'void f(){}' >>conftest.c
14838 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14839 eval "cv_prog_cc_flag_needed_$cache=no"
14840 else
14841
14842 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
14843 eval "cv_prog_cc_flag_needed_$cache=yes"
14844 else
14845 eval "cv_prog_cc_flag_needed_$cache=fail"
14846 #echo 'Test with flag fails too!'
14847 #cat conftest.c
14848 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14849 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14850 #exit 1
14851 fi
14852
14853 fi
14854 rm -f conftest conftest.c conftest.o
14855
14856 fi
14857
14858 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14860 $as_echo "yes" >&6; }
14861 :
14862 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
14863 else
14864 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14866 $as_echo "no" >&6; }
14867 #echo 'Test with flag is no!'
14868 #cat conftest.c
14869 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14870 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14871 #exit 1
14872 :
14873
14874 else
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14876 $as_echo "failed" >&6; }
14877 :
14878
14879 fi
14880 fi
14881
14882
14883
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
14885 $as_echo_n "checking if nonblocking sockets work... " >&6; }
14886 if echo $target | grep mingw32 >/dev/null; then
14887         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
14888 $as_echo "no (windows)" >&6; }
14889
14890 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14891
14892 else
14893 if test "$cross_compiling" = yes; then :
14894
14895         { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
14896 $as_echo "crosscompile(yes)" >&6; }
14897
14898 else
14899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900 /* end confdefs.h.  */
14901
14902
14903 #include <stdio.h>
14904 #include <string.h>
14905 #include <stdlib.h>
14906 #include <fcntl.h>
14907 #include <errno.h>
14908 #ifdef HAVE_SYS_TYPES_H
14909 #include <sys/types.h>
14910 #endif
14911 #ifdef HAVE_SYS_SOCKET_H
14912 #include <sys/socket.h>
14913 #endif
14914 #ifdef HAVE_NETINET_IN_H
14915 #include <netinet/in.h>
14916 #endif
14917 #ifdef HAVE_ARPA_INET_H
14918 #include <arpa/inet.h>
14919 #endif
14920 #ifdef HAVE_UNISTD_H
14921 #include <unistd.h>
14922 #endif
14923 #ifdef HAVE_TIME_H
14924 #include <time.h>
14925 #endif
14926
14927 int main(void)
14928 {
14929         int port;
14930         int sfd, cfd;
14931         int num = 10;
14932         int i, p;
14933         struct sockaddr_in a;
14934         /* test if select and nonblocking reads work well together */
14935         /* open port.
14936            fork child to send 10 messages.
14937            select to read.
14938            then try to nonblocking read the 10 messages
14939            then, nonblocking read must give EAGAIN
14940         */
14941
14942         port = 12345 + (time(0)%32);
14943         sfd = socket(PF_INET, SOCK_DGRAM, 0);
14944         if(sfd == -1) {
14945                 perror("socket");
14946                 return 1;
14947         }
14948         memset(&a, 0, sizeof(a));
14949         a.sin_family = AF_INET;
14950         a.sin_port = htons(port);
14951         a.sin_addr.s_addr = inet_addr("127.0.0.1");
14952         if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14953                 perror("bind");
14954                 return 1;
14955         }
14956         if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
14957                 perror("fcntl");
14958                 return 1;
14959         }
14960
14961         cfd = socket(PF_INET, SOCK_DGRAM, 0);
14962         if(cfd == -1) {
14963                 perror("client socket");
14964                 return 1;
14965         }
14966         a.sin_port = 0;
14967         if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14968                 perror("client bind");
14969                 return 1;
14970         }
14971         a.sin_port = htons(port);
14972
14973         /* no handler, causes exit in 10 seconds */
14974         alarm(10);
14975
14976         /* send and receive on the socket */
14977         if((p=fork()) == 0) {
14978                 for(i=0; i<num; i++) {
14979                         if(sendto(cfd, &i, sizeof(i), 0,
14980                                 (struct sockaddr*)&a, sizeof(a)) < 0) {
14981                                 perror("sendto");
14982                                 return 1;
14983                         }
14984                 }
14985         } else {
14986                 /* parent */
14987                 fd_set rset;
14988                 int x;
14989                 if(p == -1) {
14990                         perror("fork");
14991                         return 1;
14992                 }
14993                 FD_ZERO(&rset);
14994                 FD_SET(sfd, &rset);
14995                 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
14996                         perror("select");
14997                         return 1;
14998                 }
14999                 i = 0;
15000                 while(i < num) {
15001                         if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
15002                                 if(errno == EAGAIN)
15003                                         continue;
15004                                 perror("recv");
15005                                 return 1;
15006                         }
15007                         i++;
15008                 }
15009                 /* now we want to get EAGAIN: nonblocking goodness */
15010                 errno = 0;
15011                 recv(sfd, &x, sizeof(x), 0);
15012                 if(errno != EAGAIN) {
15013                         perror("trying to recv again");
15014                         return 1;
15015                 }
15016                 /* EAGAIN encountered */
15017         }
15018
15019         close(sfd);
15020         close(cfd);
15021         return 0;
15022 }
15023
15024 _ACEOF
15025 if ac_fn_c_try_run "$LINENO"; then :
15026
15027         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15028 $as_echo "yes" >&6; }
15029
15030 else
15031
15032         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15033 $as_echo "no" >&6; }
15034
15035 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15036
15037
15038 fi
15039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15040   conftest.$ac_objext conftest.beam conftest.$ac_ext
15041 fi
15042
15043 fi
15044
15045
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
15047 $as_echo_n "checking whether mkdir has one arg... " >&6; }
15048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049 /* end confdefs.h.  */
15050
15051 #include <stdio.h>
15052 #include <unistd.h>
15053 #ifdef HAVE_WINSOCK2_H
15054 #include <winsock2.h>
15055 #endif
15056 #ifdef HAVE_SYS_STAT_H
15057 #include <sys/stat.h>
15058 #endif
15059
15060 int
15061 main ()
15062 {
15063
15064         (void)mkdir("directory");
15065
15066   ;
15067   return 0;
15068 }
15069 _ACEOF
15070 if ac_fn_c_try_compile "$LINENO"; then :
15071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15072 $as_echo "yes" >&6; }
15073
15074 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
15075
15076
15077 else
15078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15079 $as_echo "no" >&6; }
15080
15081 fi
15082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15083
15084 for ac_func in strptime
15085 do :
15086   ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
15087 if test "x$ac_cv_func_strptime" = xyes; then :
15088   cat >>confdefs.h <<_ACEOF
15089 #define HAVE_STRPTIME 1
15090 _ACEOF
15091
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
15093 $as_echo_n "checking whether strptime works... " >&6; }
15094 if test c${cross_compiling} = cno; then
15095 if test "$cross_compiling" = yes; then :
15096   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15098 as_fn_error $? "cannot run test program while cross compiling
15099 See \`config.log' for more details" "$LINENO" 5; }
15100 else
15101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15102 /* end confdefs.h.  */
15103
15104 #define _XOPEN_SOURCE 600
15105 #include <time.h>
15106 int main(void) { struct tm tm; char *res;
15107 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);
15108 if (!res) return 2;
15109 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
15110 if (!res) return 1; return 0; }
15111
15112 _ACEOF
15113 if ac_fn_c_try_run "$LINENO"; then :
15114   eval "ac_cv_c_strptime_works=yes"
15115 else
15116   eval "ac_cv_c_strptime_works=no"
15117 fi
15118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15119   conftest.$ac_objext conftest.beam conftest.$ac_ext
15120 fi
15121
15122 else
15123 eval "ac_cv_c_strptime_works=maybe"
15124 fi
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
15126 $as_echo "$ac_cv_c_strptime_works" >&6; }
15127 if test $ac_cv_c_strptime_works = no; then
15128 case " $LIBOBJS " in
15129   *" strptime.$ac_objext "* ) ;;
15130   *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15131  ;;
15132 esac
15133
15134 else
15135
15136 cat >>confdefs.h <<_ACEOF
15137 #define STRPTIME_WORKS 1
15138 _ACEOF
15139
15140 fi
15141
15142 else
15143   case " $LIBOBJS " in
15144   *" strptime.$ac_objext "* ) ;;
15145   *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15146  ;;
15147 esac
15148
15149 fi
15150 done
15151
15152
15153 # set memory allocation checking if requested
15154 # Check whether --enable-alloc-checks was given.
15155 if test "${enable_alloc_checks+set}" = set; then :
15156   enableval=$enable_alloc_checks;
15157 fi
15158
15159 # Check whether --enable-alloc-lite was given.
15160 if test "${enable_alloc_lite+set}" = set; then :
15161   enableval=$enable_alloc_lite;
15162 fi
15163
15164 # Check whether --enable-alloc-nonregional was given.
15165 if test "${enable_alloc_nonregional+set}" = set; then :
15166   enableval=$enable_alloc_nonregional;
15167 fi
15168
15169 if test x_$enable_alloc_nonregional = x_yes; then
15170
15171 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
15172
15173 fi
15174 if test x_$enable_alloc_checks = x_yes; then
15175
15176 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
15177
15178 else
15179         if test x_$enable_alloc_lite = x_yes; then
15180
15181 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
15182
15183         else
15184
15185         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15186 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15187         if test "$cross_compiling" = yes; then :
15188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
15189 $as_echo "no (crosscompile)" >&6; }
15190         case " $LIBOBJS " in
15191   *" malloc.$ac_objext "* ) ;;
15192   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15193  ;;
15194 esac
15195
15196
15197 cat >>confdefs.h <<_ACEOF
15198 #define malloc rpl_malloc_unbound
15199 _ACEOF
15200
15201 else
15202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h.  */
15204 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15205 #include <stdlib.h>
15206 #else
15207 char *malloc ();
15208 #endif
15209
15210 int
15211 main ()
15212 {
15213  if(malloc(0) != 0) return 1;
15214   ;
15215   return 0;
15216 }
15217
15218 _ACEOF
15219 if ac_fn_c_try_run "$LINENO"; then :
15220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15221 $as_echo "no" >&6; }
15222         case " $LIBOBJS " in
15223   *" malloc.$ac_objext "* ) ;;
15224   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15225  ;;
15226 esac
15227
15228
15229 cat >>confdefs.h <<_ACEOF
15230 #define malloc rpl_malloc_unbound
15231 _ACEOF
15232
15233 else
15234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15235 $as_echo "yes" >&6; }
15236
15237 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15238
15239 fi
15240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15241   conftest.$ac_objext conftest.beam conftest.$ac_ext
15242 fi
15243
15244
15245         fi
15246 fi
15247
15248 # check windows threads (we use them, not pthreads, on windows).
15249 if test "$on_mingw" = "yes"; then
15250 # check windows threads
15251         for ac_header in windows.h
15252 do :
15253   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15254 "
15255 if test "x$ac_cv_header_windows_h" = xyes; then :
15256   cat >>confdefs.h <<_ACEOF
15257 #define HAVE_WINDOWS_H 1
15258 _ACEOF
15259
15260 fi
15261
15262 done
15263
15264         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
15265 $as_echo_n "checking for CreateThread... " >&6; }
15266         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15267 /* end confdefs.h.  */
15268
15269 #ifdef HAVE_WINDOWS_H
15270 #include <windows.h>
15271 #endif
15272
15273 int
15274 main ()
15275 {
15276
15277         HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
15278
15279   ;
15280   return 0;
15281 }
15282 _ACEOF
15283 if ac_fn_c_try_compile "$LINENO"; then :
15284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15285 $as_echo "yes" >&6; }
15286
15287 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
15288
15289
15290 else
15291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15292 $as_echo "no" >&6; }
15293
15294 fi
15295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15296
15297 else
15298 # not on mingw, check thread libraries.
15299
15300 # check for thread library.
15301 # check this first, so that the pthread lib does not get linked in via
15302 # libssl or libpython, and thus distorts the tests, and we end up using
15303 # the non-threadsafe C libraries.
15304
15305 # Check whether --with-pthreads was given.
15306 if test "${with_pthreads+set}" = set; then :
15307   withval=$with_pthreads;
15308 else
15309    withval="yes"
15310 fi
15311
15312 ub_have_pthreads=no
15313 if test x_$withval != x_no; then
15314
15315
15316 ac_ext=c
15317 ac_cpp='$CPP $CPPFLAGS'
15318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15321
15322 ax_pthread_ok=no
15323
15324 # We used to check for pthread.h first, but this fails if pthread.h
15325 # requires special compiler flags (e.g. on True64 or Sequent).
15326 # It gets checked for in the link test anyway.
15327
15328 # First of all, check if the user has set any of the PTHREAD_LIBS,
15329 # etcetera environment variables, and if threads linking works using
15330 # them:
15331 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15332         save_CFLAGS="$CFLAGS"
15333         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15334         save_LIBS="$LIBS"
15335         LIBS="$PTHREAD_LIBS $LIBS"
15336         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15337 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15338         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h.  */
15340
15341 /* Override any GCC internal prototype to avoid an error.
15342    Use char because int might match the return type of a GCC
15343    builtin and then its argument prototype would still apply.  */
15344 #ifdef __cplusplus
15345 extern "C"
15346 #endif
15347 char pthread_join ();
15348 int
15349 main ()
15350 {
15351 return pthread_join ();
15352   ;
15353   return 0;
15354 }
15355 _ACEOF
15356 if ac_fn_c_try_link "$LINENO"; then :
15357   ax_pthread_ok=yes
15358 fi
15359 rm -f core conftest.err conftest.$ac_objext \
15360     conftest$ac_exeext conftest.$ac_ext
15361         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15362 $as_echo "$ax_pthread_ok" >&6; }
15363         if test x"$ax_pthread_ok" = xno; then
15364                 PTHREAD_LIBS=""
15365                 PTHREAD_CFLAGS=""
15366         fi
15367         LIBS="$save_LIBS"
15368         CFLAGS="$save_CFLAGS"
15369 fi
15370
15371 # We must check for the threads library under a number of different
15372 # names; the ordering is very important because some systems
15373 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15374 # libraries is broken (non-POSIX).
15375
15376 # Create a list of thread flags to try.  Items starting with a "-" are
15377 # C compiler flags, and other items are library names, except for "none"
15378 # which indicates that we try without any flags at all, and "pthread-config"
15379 # which is a program returning the flags for the Pth emulation library.
15380
15381 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15382
15383 # The ordering *is* (sometimes) important.  Some notes on the
15384 # individual items follow:
15385
15386 # pthreads: AIX (must check this before -lpthread)
15387 # none: in case threads are in libc; should be tried before -Kthread and
15388 #       other compiler flags to prevent continual compiler warnings
15389 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15390 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15391 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15392 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15393 # -pthreads: Solaris/gcc
15394 # -mthreads: Mingw32/gcc, Lynx/gcc
15395 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15396 #      doesn't hurt to check since this sometimes defines pthreads too;
15397 #      also defines -D_REENTRANT)
15398 #      ... -mt is also the pthreads flag for HP/aCC
15399 # pthread: Linux, etcetera
15400 # --thread-safe: KAI C++
15401 # pthread-config: use pthread-config program (for GNU Pth library)
15402
15403 case ${host_os} in
15404         solaris*)
15405
15406         # On Solaris (at least, for some versions), libc contains stubbed
15407         # (non-functional) versions of the pthreads routines, so link-based
15408         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15409         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15410         # a function called by this macro, so we could check for that, but
15411         # who knows whether they'll stub that too in a future libc.)  So,
15412         # we'll just look for -pthreads and -lpthread first:
15413
15414         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
15415         ;;
15416
15417         darwin*)
15418         ax_pthread_flags="-pthread $ax_pthread_flags"
15419         ;;
15420 esac
15421
15422 if test x"$ax_pthread_ok" = xno; then
15423 for flag in $ax_pthread_flags; do
15424
15425         case $flag in
15426                 none)
15427                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15428 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15429                 ;;
15430
15431                 -*)
15432                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15433 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15434                 PTHREAD_CFLAGS="$flag"
15435                 ;;
15436
15437                 pthread-config)
15438                 # Extract the first word of "pthread-config", so it can be a program name with args.
15439 set dummy pthread-config; ac_word=$2
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15441 $as_echo_n "checking for $ac_word... " >&6; }
15442 if ${ac_cv_prog_ax_pthread_config+:} false; then :
15443   $as_echo_n "(cached) " >&6
15444 else
15445   if test -n "$ax_pthread_config"; then
15446   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15447 else
15448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15449 for as_dir in $PATH
15450 do
15451   IFS=$as_save_IFS
15452   test -z "$as_dir" && as_dir=.
15453     for ac_exec_ext in '' $ac_executable_extensions; do
15454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15455     ac_cv_prog_ax_pthread_config="yes"
15456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15457     break 2
15458   fi
15459 done
15460   done
15461 IFS=$as_save_IFS
15462
15463   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15464 fi
15465 fi
15466 ax_pthread_config=$ac_cv_prog_ax_pthread_config
15467 if test -n "$ax_pthread_config"; then
15468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15469 $as_echo "$ax_pthread_config" >&6; }
15470 else
15471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15472 $as_echo "no" >&6; }
15473 fi
15474
15475
15476                 if test x"$ax_pthread_config" = xno; then continue; fi
15477                 PTHREAD_CFLAGS="`pthread-config --cflags`"
15478                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15479                 ;;
15480
15481                 *)
15482                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15483 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15484                 PTHREAD_LIBS="-l$flag"
15485                 ;;
15486         esac
15487
15488         save_LIBS="$LIBS"
15489         save_CFLAGS="$CFLAGS"
15490         LIBS="$PTHREAD_LIBS $LIBS"
15491         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15492
15493         # Check for various functions.  We must include pthread.h,
15494         # since some functions may be macros.  (On the Sequent, we
15495         # need a special flag -Kthread to make this header compile.)
15496         # We check for pthread_join because it is in -lpthread on IRIX
15497         # while pthread_create is in libc.  We check for pthread_attr_init
15498         # due to DEC craziness with -lpthreads.  We check for
15499         # pthread_cleanup_push because it is one of the few pthread
15500         # functions on Solaris that doesn't have a non-functional libc stub.
15501         # We try pthread_create on general principles.
15502         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15503 /* end confdefs.h.  */
15504 #include <pthread.h>
15505                         static void routine(void *a) { *((int*)a) = 0; }
15506                         static void *start_routine(void *a) { return a; }
15507 int
15508 main ()
15509 {
15510 pthread_t th; pthread_attr_t attr;
15511                         pthread_create(&th, 0, start_routine, 0);
15512                         pthread_join(th, 0);
15513                         pthread_attr_init(&attr);
15514                         pthread_cleanup_push(routine, 0);
15515                         pthread_cleanup_pop(0) /* ; */
15516   ;
15517   return 0;
15518 }
15519 _ACEOF
15520 if ac_fn_c_try_link "$LINENO"; then :
15521   ax_pthread_ok=yes
15522 fi
15523 rm -f core conftest.err conftest.$ac_objext \
15524     conftest$ac_exeext conftest.$ac_ext
15525
15526         LIBS="$save_LIBS"
15527         CFLAGS="$save_CFLAGS"
15528
15529         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15530 $as_echo "$ax_pthread_ok" >&6; }
15531         if test "x$ax_pthread_ok" = xyes; then
15532                 break;
15533         fi
15534
15535         PTHREAD_LIBS=""
15536         PTHREAD_CFLAGS=""
15537 done
15538 fi
15539
15540 # Various other checks:
15541 if test "x$ax_pthread_ok" = xyes; then
15542         save_LIBS="$LIBS"
15543         LIBS="$PTHREAD_LIBS $LIBS"
15544         save_CFLAGS="$CFLAGS"
15545         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15546
15547         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15548         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15549 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15550         attr_name=unknown
15551         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15552             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15553 /* end confdefs.h.  */
15554 #include <pthread.h>
15555 int
15556 main ()
15557 {
15558 int attr = $attr; return attr /* ; */
15559   ;
15560   return 0;
15561 }
15562 _ACEOF
15563 if ac_fn_c_try_link "$LINENO"; then :
15564   attr_name=$attr; break
15565 fi
15566 rm -f core conftest.err conftest.$ac_objext \
15567     conftest$ac_exeext conftest.$ac_ext
15568         done
15569         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15570 $as_echo "$attr_name" >&6; }
15571         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15572
15573 cat >>confdefs.h <<_ACEOF
15574 #define PTHREAD_CREATE_JOINABLE $attr_name
15575 _ACEOF
15576
15577         fi
15578
15579         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15580 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15581         flag=no
15582         case ${host_os} in
15583             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
15584             osf* | hpux*) flag="-D_REENTRANT";;
15585             solaris*)
15586             if test "$GCC" = "yes"; then
15587                 flag="-D_REENTRANT"
15588             else
15589                 flag="-mt -D_REENTRANT"
15590             fi
15591             ;;
15592         esac
15593         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15594 $as_echo "${flag}" >&6; }
15595         if test "x$flag" != xno; then
15596             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15597         fi
15598
15599         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15600 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15601 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
15602   $as_echo_n "(cached) " >&6
15603 else
15604
15605                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15606 /* end confdefs.h.  */
15607
15608                     #include <pthread.h>
15609 int
15610 main ()
15611 {
15612 int i = PTHREAD_PRIO_INHERIT;
15613   ;
15614   return 0;
15615 }
15616 _ACEOF
15617 if ac_fn_c_try_link "$LINENO"; then :
15618   ax_cv_PTHREAD_PRIO_INHERIT=yes
15619 else
15620   ax_cv_PTHREAD_PRIO_INHERIT=no
15621 fi
15622 rm -f core conftest.err conftest.$ac_objext \
15623     conftest$ac_exeext conftest.$ac_ext
15624
15625 fi
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15627 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15628         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
15629
15630 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15631
15632 fi
15633
15634         LIBS="$save_LIBS"
15635         CFLAGS="$save_CFLAGS"
15636
15637         # More AIX lossage: compile with *_r variant
15638         if test "x$GCC" != xyes; then
15639             case $host_os in
15640                 aix*)
15641                 case "x/$CC" in #(
15642   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
15643     #handle absolute path differently from PATH based program lookup
15644                    case "x$CC" in #(
15645   x/*) :
15646     if as_fn_executable_p ${CC}_r; then :
15647   PTHREAD_CC="${CC}_r"
15648 fi ;; #(
15649   *) :
15650     for ac_prog in ${CC}_r
15651 do
15652   # Extract the first word of "$ac_prog", so it can be a program name with args.
15653 set dummy $ac_prog; ac_word=$2
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15655 $as_echo_n "checking for $ac_word... " >&6; }
15656 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15657   $as_echo_n "(cached) " >&6
15658 else
15659   if test -n "$PTHREAD_CC"; then
15660   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15661 else
15662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15663 for as_dir in $PATH
15664 do
15665   IFS=$as_save_IFS
15666   test -z "$as_dir" && as_dir=.
15667     for ac_exec_ext in '' $ac_executable_extensions; do
15668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15669     ac_cv_prog_PTHREAD_CC="$ac_prog"
15670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15671     break 2
15672   fi
15673 done
15674   done
15675 IFS=$as_save_IFS
15676
15677 fi
15678 fi
15679 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15680 if test -n "$PTHREAD_CC"; then
15681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15682 $as_echo "$PTHREAD_CC" >&6; }
15683 else
15684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15685 $as_echo "no" >&6; }
15686 fi
15687
15688
15689   test -n "$PTHREAD_CC" && break
15690 done
15691 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15692  ;;
15693 esac ;; #(
15694   *) :
15695      ;;
15696 esac
15697                 ;;
15698             esac
15699         fi
15700 fi
15701
15702 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15703
15704
15705
15706
15707
15708 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15709 if test x"$ax_pthread_ok" = xyes; then
15710
15711
15712 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15713
15714                 LIBS="$PTHREAD_LIBS $LIBS"
15715                 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15716                 CC="$PTHREAD_CC"
15717                 ub_have_pthreads=yes
15718                 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
15719 "
15720 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
15721
15722 cat >>confdefs.h <<_ACEOF
15723 #define HAVE_PTHREAD_SPINLOCK_T 1
15724 _ACEOF
15725
15726
15727 fi
15728 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15729 "
15730 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15731
15732 cat >>confdefs.h <<_ACEOF
15733 #define HAVE_PTHREAD_RWLOCK_T 1
15734 _ACEOF
15735
15736
15737 fi
15738
15739
15740         :
15741 else
15742         ax_pthread_ok=no
15743
15744 fi
15745 ac_ext=c
15746 ac_cpp='$CPP $CPPFLAGS'
15747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15750
15751
15752 fi
15753
15754 # check solaris thread library
15755
15756 # Check whether --with-solaris-threads was given.
15757 if test "${with_solaris_threads+set}" = set; then :
15758   withval=$with_solaris_threads;
15759 else
15760    withval="no"
15761 fi
15762
15763 ub_have_sol_threads=no
15764 if test x_$withval != x_no; then
15765         if test x_$ub_have_pthreads != x_no; then
15766             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
15767 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
15768         else
15769         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
15770 $as_echo_n "checking for library containing thr_create... " >&6; }
15771 if ${ac_cv_search_thr_create+:} false; then :
15772   $as_echo_n "(cached) " >&6
15773 else
15774   ac_func_search_save_LIBS=$LIBS
15775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776 /* end confdefs.h.  */
15777
15778 /* Override any GCC internal prototype to avoid an error.
15779    Use char because int might match the return type of a GCC
15780    builtin and then its argument prototype would still apply.  */
15781 #ifdef __cplusplus
15782 extern "C"
15783 #endif
15784 char thr_create ();
15785 int
15786 main ()
15787 {
15788 return thr_create ();
15789   ;
15790   return 0;
15791 }
15792 _ACEOF
15793 for ac_lib in '' thread; do
15794   if test -z "$ac_lib"; then
15795     ac_res="none required"
15796   else
15797     ac_res=-l$ac_lib
15798     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15799   fi
15800   if ac_fn_c_try_link "$LINENO"; then :
15801   ac_cv_search_thr_create=$ac_res
15802 fi
15803 rm -f core conftest.err conftest.$ac_objext \
15804     conftest$ac_exeext
15805   if ${ac_cv_search_thr_create+:} false; then :
15806   break
15807 fi
15808 done
15809 if ${ac_cv_search_thr_create+:} false; then :
15810
15811 else
15812   ac_cv_search_thr_create=no
15813 fi
15814 rm conftest.$ac_ext
15815 LIBS=$ac_func_search_save_LIBS
15816 fi
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
15818 $as_echo "$ac_cv_search_thr_create" >&6; }
15819 ac_res=$ac_cv_search_thr_create
15820 if test "$ac_res" != no; then :
15821   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15822
15823
15824 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
15825
15826
15827
15828
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
15830 $as_echo_n "checking whether $CC supports -mt... " >&6; }
15831 cache=`echo mt | sed 'y%.=/+-%___p_%'`
15832 if eval \${cv_prog_cc_flag_$cache+:} false; then :
15833   $as_echo_n "(cached) " >&6
15834 else
15835
15836 echo 'void f(void){}' >conftest.c
15837 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
15838 eval "cv_prog_cc_flag_$cache=yes"
15839 else
15840 eval "cv_prog_cc_flag_$cache=no"
15841 fi
15842 rm -f conftest conftest.o conftest.c
15843
15844 fi
15845
15846 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15848 $as_echo "yes" >&6; }
15849 :
15850 CFLAGS="$CFLAGS -mt"
15851 else
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15853 $as_echo "no" >&6; }
15854 :
15855 CFLAGS="$CFLAGS -D_REENTRANT"
15856 fi
15857
15858                 ub_have_sol_threads=yes
15859
15860 else
15861
15862                 as_fn_error $? "no solaris threads found." "$LINENO" 5
15863
15864 fi
15865
15866         fi
15867 fi
15868
15869 fi # end of non-mingw check of thread libraries
15870
15871 # Check for PyUnbound
15872
15873 # Check whether --with-pyunbound was given.
15874 if test "${with_pyunbound+set}" = set; then :
15875   withval=$with_pyunbound;
15876 else
15877    withval="no"
15878 fi
15879
15880
15881 ub_test_python=no
15882 ub_with_pyunbound=no
15883 if test x_$withval != x_no; then
15884    ub_with_pyunbound=yes
15885    ub_test_python=yes
15886 fi
15887
15888 # Check for Python module
15889
15890 # Check whether --with-pythonmodule was given.
15891 if test "${with_pythonmodule+set}" = set; then :
15892   withval=$with_pythonmodule;
15893 else
15894    withval="no"
15895 fi
15896
15897
15898 ub_with_pythonmod=no
15899 if test x_$withval != x_no; then
15900    ub_with_pythonmod=yes
15901    ub_test_python=yes
15902 fi
15903
15904 # Check for Python & SWIG only on PyUnbound or PyModule
15905 if test x_$ub_test_python != x_no; then
15906
15907    # Check for Python
15908    ub_have_python=no
15909    ac_save_LIBS="$LIBS"
15910         #
15911         # Allow the use of a (user set) custom python version
15912         #
15913
15914
15915         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
15916 set dummy python$PYTHON_VERSION; ac_word=$2
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15918 $as_echo_n "checking for $ac_word... " >&6; }
15919 if ${ac_cv_path_PYTHON+:} false; then :
15920   $as_echo_n "(cached) " >&6
15921 else
15922   case $PYTHON in
15923   [\\/]* | ?:[\\/]*)
15924   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15925   ;;
15926   *)
15927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15928 for as_dir in $PATH
15929 do
15930   IFS=$as_save_IFS
15931   test -z "$as_dir" && as_dir=.
15932     for ac_exec_ext in '' $ac_executable_extensions; do
15933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15934     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15936     break 2
15937   fi
15938 done
15939   done
15940 IFS=$as_save_IFS
15941
15942   ;;
15943 esac
15944 fi
15945 PYTHON=$ac_cv_path_PYTHON
15946 if test -n "$PYTHON"; then
15947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15948 $as_echo "$PYTHON" >&6; }
15949 else
15950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15951 $as_echo "no" >&6; }
15952 fi
15953
15954
15955         if test -z "$PYTHON"; then
15956            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
15957            PYTHON_VERSION=""
15958         fi
15959
15960         if test -z "$PYTHON_VERSION"; then
15961                 PYTHON_VERSION=`$PYTHON -c "import sys; \
15962                         print(sys.version.split()[0])"`
15963         fi
15964
15965         #
15966         # Check if you have distutils, else fail
15967         #
15968         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
15969 $as_echo_n "checking for the distutils Python package... " >&6; }
15970         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
15971         if test -z "$ac_distutils_result"; then
15972                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15973 $as_echo "yes" >&6; }
15974         else
15975                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15976 $as_echo "no" >&6; }
15977                 as_fn_error $? "cannot import Python module \"distutils\".
15978 Please check your Python installation. The error was:
15979 $ac_distutils_result" "$LINENO" 5
15980                 PYTHON_VERSION=""
15981         fi
15982
15983         #
15984         # Check for Python include path
15985         #
15986         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
15987 $as_echo_n "checking for Python include path... " >&6; }
15988         if test -z "$PYTHON_CPPFLAGS"; then
15989                 python_path=`$PYTHON -c "import distutils.sysconfig; \
15990                         print(distutils.sysconfig.get_python_inc());"`
15991                 if test -n "${python_path}"; then
15992                         python_path="-I$python_path"
15993                 fi
15994                 PYTHON_CPPFLAGS=$python_path
15995         fi
15996         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
15997 $as_echo "$PYTHON_CPPFLAGS" >&6; }
15998
15999
16000         #
16001         # Check for Python library path
16002         #
16003         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
16004 $as_echo_n "checking for Python library path... " >&6; }
16005         if test -z "$PYTHON_LDFLAGS"; then
16006                 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
16007                         print(get_config_var('BLDLIBRARY'));"`
16008         fi
16009         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
16010 $as_echo "$PYTHON_LDFLAGS" >&6; }
16011
16012
16013         #
16014         # Check for site packages
16015         #
16016         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
16017 $as_echo_n "checking for Python site-packages path... " >&6; }
16018         if test -z "$PYTHON_SITE_PKG"; then
16019                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
16020                         print(distutils.sysconfig.get_python_lib(1,0));"`
16021         fi
16022         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
16023 $as_echo "$PYTHON_SITE_PKG" >&6; }
16024
16025
16026         #
16027         # final check to see if everything compiles alright
16028         #
16029         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16030 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
16031         ac_ext=c
16032 ac_cpp='$CPP $CPPFLAGS'
16033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16036
16037         # save current global flags
16038         ac_save_LIBS="$LIBS"
16039         ac_save_CPPFLAGS="$CPPFLAGS"
16040
16041         LIBS="$LIBS $PYTHON_LDFLAGS"
16042         CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16043         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16044 /* end confdefs.h.  */
16045
16046                 #include <Python.h>
16047
16048 int
16049 main ()
16050 {
16051
16052                 Py_Initialize();
16053
16054   ;
16055   return 0;
16056 }
16057 _ACEOF
16058 if ac_fn_c_try_link "$LINENO"; then :
16059   pythonexists=yes
16060 else
16061   pythonexists=no
16062 fi
16063 rm -f core conftest.err conftest.$ac_objext \
16064     conftest$ac_exeext conftest.$ac_ext
16065
16066         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16067 $as_echo "$pythonexists" >&6; }
16068
16069         if test ! "$pythonexists" = "yes"; then
16070            as_fn_error $? "
16071   Could not link test program to Python. Maybe the main Python library has been
16072   installed in some non-standard library path. If so, pass it to configure,
16073   via the LDFLAGS environment variable.
16074   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
16075   ============================================================================
16076    ERROR!
16077    You probably have to install the development version of the Python package
16078    for your distribution.  The exact name of this package varies among them.
16079   ============================================================================
16080            " "$LINENO" 5
16081           PYTHON_VERSION=""
16082         fi
16083         ac_ext=c
16084 ac_cpp='$CPP $CPPFLAGS'
16085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16088
16089         # turn back to default flags
16090         CPPFLAGS="$ac_save_CPPFLAGS"
16091         LIBS="$ac_save_LIBS"
16092
16093         #
16094         # all done!
16095         #
16096
16097    if test ! -z "$PYTHON_VERSION"; then
16098         if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
16099                 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
16100         fi
16101
16102       # Have Python
16103
16104 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
16105
16106       LIBS="$PYTHON_LDFLAGS $LIBS"
16107       CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16108       ub_have_python=yes
16109
16110       # Check for SWIG
16111       ub_have_swig=no
16112
16113         # Extract the first word of "swig", so it can be a program name with args.
16114 set dummy swig; ac_word=$2
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16116 $as_echo_n "checking for $ac_word... " >&6; }
16117 if ${ac_cv_path_SWIG+:} false; then :
16118   $as_echo_n "(cached) " >&6
16119 else
16120   case $SWIG in
16121   [\\/]* | ?:[\\/]*)
16122   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
16123   ;;
16124   *)
16125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16126 for as_dir in $PATH
16127 do
16128   IFS=$as_save_IFS
16129   test -z "$as_dir" && as_dir=.
16130     for ac_exec_ext in '' $ac_executable_extensions; do
16131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16132     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
16133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16134     break 2
16135   fi
16136 done
16137   done
16138 IFS=$as_save_IFS
16139
16140   ;;
16141 esac
16142 fi
16143 SWIG=$ac_cv_path_SWIG
16144 if test -n "$SWIG"; then
16145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
16146 $as_echo "$SWIG" >&6; }
16147 else
16148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16149 $as_echo "no" >&6; }
16150 fi
16151
16152
16153         if test -z "$SWIG" ; then
16154                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
16155 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
16156                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
16157         elif test -n "" ; then
16158                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
16159 $as_echo_n "checking for SWIG version... " >&6; }
16160                 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'`
16161                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
16162 $as_echo "$swig_version" >&6; }
16163                 if test -n "$swig_version" ; then
16164                         # Calculate the required version number components
16165                         required=
16166                         required_major=`echo $required | sed 's/[^0-9].*//'`
16167                         if test -z "$required_major" ; then
16168                                 required_major=0
16169                         fi
16170                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16171                         required_minor=`echo $required | sed 's/[^0-9].*//'`
16172                         if test -z "$required_minor" ; then
16173                                 required_minor=0
16174                         fi
16175                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16176                         required_patch=`echo $required | sed 's/[^0-9].*//'`
16177                         if test -z "$required_patch" ; then
16178                                 required_patch=0
16179                         fi
16180                         # Calculate the available version number components
16181                         available=$swig_version
16182                         available_major=`echo $available | sed 's/[^0-9].*//'`
16183                         if test -z "$available_major" ; then
16184                                 available_major=0
16185                         fi
16186                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16187                         available_minor=`echo $available | sed 's/[^0-9].*//'`
16188                         if test -z "$available_minor" ; then
16189                                 available_minor=0
16190                         fi
16191                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16192                         available_patch=`echo $available | sed 's/[^0-9].*//'`
16193                         if test -z "$available_patch" ; then
16194                                 available_patch=0
16195                         fi
16196                         if test $available_major -ne $required_major \
16197                                 -o $available_minor -ne $required_minor \
16198                                 -o $available_patch -lt $required_patch ; then
16199                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&5
16200 $as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
16201                                 SWIG='echo "Error: SWIG version >=  is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
16202                         else
16203                                 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
16204 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
16205                                 SWIG_LIB=`$SWIG -swiglib`
16206                                 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
16207 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
16208                         fi
16209                 else
16210                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
16211 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
16212                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
16213                 fi
16214         fi
16215
16216
16217       { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
16218 $as_echo_n "checking SWIG... " >&6; }
16219       if test ! -x "$SWIG"; then
16220          as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
16221       else
16222
16223 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
16224
16225          swig="$SWIG"
16226
16227          { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
16228 $as_echo "present" >&6; }
16229
16230          # If have Python & SWIG
16231          # Declare PythonMod
16232          if test x_$ub_with_pythonmod != x_no; then
16233
16234 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
16235
16236             WITH_PYTHONMODULE=yes
16237
16238             PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
16239
16240             PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
16241
16242             PYTHONMOD_INSTALL=pythonmod-install
16243
16244             PYTHONMOD_UNINSTALL=pythonmod-uninstall
16245
16246          fi
16247
16248          # Declare PyUnbound
16249          if test x_$ub_with_pyunbound != x_no; then
16250
16251 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
16252
16253             WITH_PYUNBOUND=yes
16254
16255             PYUNBOUND_OBJ="libunbound_wrap.lo"
16256
16257             PYUNBOUND_TARGET="_unbound.la"
16258
16259             PYUNBOUND_INSTALL=pyunbound-install
16260
16261             PYUNBOUND_UNINSTALL=pyunbound-uninstall
16262
16263          fi
16264       fi
16265    else
16266       { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
16267 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
16268       ub_with_pyunbound=no
16269       ub_with_pythonmod=no
16270    fi
16271 fi
16272
16273 if test "`uname`" = "NetBSD"; then
16274         NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
16275
16276 fi
16277 CONFIG_DATE=`date +%Y%m%d`
16278
16279
16280 # Checks for libraries.
16281
16282 # libnss
16283 USE_NSS="no"
16284
16285 # Check whether --with-nss was given.
16286 if test "${with_nss+set}" = set; then :
16287   withval=$with_nss;
16288         USE_NSS="yes"
16289
16290 $as_echo "#define HAVE_NSS 1" >>confdefs.h
16291
16292         if test "$withval" != "" -a "$withval" != "yes"; then
16293                 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
16294                 LDFLAGS="$LDFLAGS -L$withval/lib"
16295
16296         if test "x$enable_rpath" = xyes; then
16297                 if echo "$withval/lib" | grep "^/" >/dev/null; then
16298                         RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
16299                 fi
16300         fi
16301
16302                 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
16303         else
16304                 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
16305                 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
16306         fi
16307         LIBS="$LIBS -lnss3 -lnspr4"
16308
16309
16310 fi
16311
16312
16313 # openssl
16314 if test $USE_NSS = "no"; then
16315
16316
16317 # Check whether --with-ssl was given.
16318 if test "${with_ssl+set}" = set; then :
16319   withval=$with_ssl;
16320
16321 else
16322
16323             withval="yes"
16324
16325 fi
16326
16327     if test x_$withval = x_no; then
16328         as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
16329     fi
16330
16331     withval=$withval
16332     if test x_$withval != x_no; then
16333         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
16334 $as_echo_n "checking for SSL... " >&6; }
16335         if test x_$withval = x_ -o x_$withval = x_yes; then
16336             withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
16337         fi
16338         for dir in $withval; do
16339             ssldir="$dir"
16340             if test -f "$dir/include/openssl/ssl.h"; then
16341                 found_ssl="yes"
16342
16343 cat >>confdefs.h <<_ACEOF
16344 #define HAVE_SSL /**/
16345 _ACEOF
16346
16347                                 if test "$ssldir" != "/usr"; then
16348                         CPPFLAGS="$CPPFLAGS -I$ssldir/include"
16349                         LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
16350                 fi
16351                 break;
16352             fi
16353         done
16354         if test x_$found_ssl != x_yes; then
16355             as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
16356         else
16357             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
16358 $as_echo "found in $ssldir" >&6; }
16359             HAVE_SSL=yes
16360                         if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
16361                 LDFLAGS="$LDFLAGS -L$ssldir/lib"
16362                 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
16363
16364         if test "x$enable_rpath" = xyes; then
16365                 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
16366                         RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
16367                 fi
16368         fi
16369
16370             fi
16371
16372             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
16373 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
16374             LIBS="$LIBS -lcrypto"
16375             LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
16376             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16377 /* end confdefs.h.  */
16378
16379 int
16380 main ()
16381 {
16382
16383                 int HMAC_CTX_init(void);
16384                 (void)HMAC_CTX_init();
16385
16386   ;
16387   return 0;
16388 }
16389 _ACEOF
16390 if ac_fn_c_try_link "$LINENO"; then :
16391
16392                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16393 $as_echo "yes" >&6; }
16394
16395 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16396
16397
16398 else
16399
16400                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16401 $as_echo "no" >&6; }
16402                 # check if -lwsock32 or -lgdi32 are needed.
16403                 BAKLIBS="$LIBS"
16404                 BAKSSLLIBS="$LIBSSL_LIBS"
16405                 LIBS="$LIBS -lgdi32"
16406                 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
16407                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
16408 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
16409                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16410 /* end confdefs.h.  */
16411
16412 int
16413 main ()
16414 {
16415
16416                     int HMAC_CTX_init(void);
16417                     (void)HMAC_CTX_init();
16418
16419   ;
16420   return 0;
16421 }
16422 _ACEOF
16423 if ac_fn_c_try_link "$LINENO"; then :
16424
16425
16426 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16427
16428                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16429 $as_echo "yes" >&6; }
16430
16431 else
16432
16433                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16434 $as_echo "no" >&6; }
16435                     LIBS="$BAKLIBS"
16436                     LIBSSL_LIBS="$BAKSSLLIBS"
16437                     LIBS="$LIBS -ldl"
16438                     LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16439                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
16440 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
16441                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h.  */
16443
16444 int
16445 main ()
16446 {
16447
16448                         int HMAC_CTX_init(void);
16449                         (void)HMAC_CTX_init();
16450
16451   ;
16452   return 0;
16453 }
16454 _ACEOF
16455 if ac_fn_c_try_link "$LINENO"; then :
16456
16457
16458 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16459
16460                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16461 $as_echo "yes" >&6; }
16462
16463 else
16464
16465                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16466 $as_echo "no" >&6; }
16467                     as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
16468
16469 fi
16470 rm -f core conftest.err conftest.$ac_objext \
16471     conftest$ac_exeext conftest.$ac_ext
16472
16473 fi
16474 rm -f core conftest.err conftest.$ac_objext \
16475     conftest$ac_exeext conftest.$ac_ext
16476
16477 fi
16478 rm -f core conftest.err conftest.$ac_objext \
16479     conftest$ac_exeext conftest.$ac_ext
16480         fi
16481
16482
16483         # openssl engine functionality needs dlopen().
16484         BAKLIBS="$LIBS"
16485         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16486 $as_echo_n "checking for library containing dlopen... " >&6; }
16487 if ${ac_cv_search_dlopen+:} false; then :
16488   $as_echo_n "(cached) " >&6
16489 else
16490   ac_func_search_save_LIBS=$LIBS
16491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16492 /* end confdefs.h.  */
16493
16494 /* Override any GCC internal prototype to avoid an error.
16495    Use char because int might match the return type of a GCC
16496    builtin and then its argument prototype would still apply.  */
16497 #ifdef __cplusplus
16498 extern "C"
16499 #endif
16500 char dlopen ();
16501 int
16502 main ()
16503 {
16504 return dlopen ();
16505   ;
16506   return 0;
16507 }
16508 _ACEOF
16509 for ac_lib in '' dl; do
16510   if test -z "$ac_lib"; then
16511     ac_res="none required"
16512   else
16513     ac_res=-l$ac_lib
16514     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16515   fi
16516   if ac_fn_c_try_link "$LINENO"; then :
16517   ac_cv_search_dlopen=$ac_res
16518 fi
16519 rm -f core conftest.err conftest.$ac_objext \
16520     conftest$ac_exeext
16521   if ${ac_cv_search_dlopen+:} false; then :
16522   break
16523 fi
16524 done
16525 if ${ac_cv_search_dlopen+:} false; then :
16526
16527 else
16528   ac_cv_search_dlopen=no
16529 fi
16530 rm conftest.$ac_ext
16531 LIBS=$ac_func_search_save_LIBS
16532 fi
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16534 $as_echo "$ac_cv_search_dlopen" >&6; }
16535 ac_res=$ac_cv_search_dlopen
16536 if test "$ac_res" != no; then :
16537   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16538
16539 fi
16540
16541         if test "$LIBS" != "$BAKLIBS"; then
16542                 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16543         fi
16544     fi
16545 for ac_header in openssl/ssl.h
16546 do :
16547   ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
16548 "
16549 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
16550   cat >>confdefs.h <<_ACEOF
16551 #define HAVE_OPENSSL_SSL_H 1
16552 _ACEOF
16553
16554 fi
16555
16556 done
16557
16558 for ac_header in openssl/err.h
16559 do :
16560   ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
16561 "
16562 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
16563   cat >>confdefs.h <<_ACEOF
16564 #define HAVE_OPENSSL_ERR_H 1
16565 _ACEOF
16566
16567 fi
16568
16569 done
16570
16571 for ac_header in openssl/rand.h
16572 do :
16573   ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
16574 "
16575 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
16576   cat >>confdefs.h <<_ACEOF
16577 #define HAVE_OPENSSL_RAND_H 1
16578 _ACEOF
16579
16580 fi
16581
16582 done
16583
16584
16585
16586
16587 # check if libssl needs libdl
16588 BAKLIBS="$LIBS"
16589 LIBS="-lssl $LIBS"
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
16591 $as_echo_n "checking if libssl needs libdl... " >&6; }
16592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16593 /* end confdefs.h.  */
16594
16595 /* Override any GCC internal prototype to avoid an error.
16596    Use char because int might match the return type of a GCC
16597    builtin and then its argument prototype would still apply.  */
16598 #ifdef __cplusplus
16599 extern "C"
16600 #endif
16601 char SSL_CTX_new ();
16602 int
16603 main ()
16604 {
16605 return SSL_CTX_new ();
16606   ;
16607   return 0;
16608 }
16609 _ACEOF
16610 if ac_fn_c_try_link "$LINENO"; then :
16611
16612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16613 $as_echo "no" >&6; }
16614         LIBS="$BAKLIBS"
16615
16616 else
16617
16618         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16619 $as_echo "yes" >&6; }
16620         LIBS="$BAKLIBS"
16621         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16622 $as_echo_n "checking for library containing dlopen... " >&6; }
16623 if ${ac_cv_search_dlopen+:} false; then :
16624   $as_echo_n "(cached) " >&6
16625 else
16626   ac_func_search_save_LIBS=$LIBS
16627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16628 /* end confdefs.h.  */
16629
16630 /* Override any GCC internal prototype to avoid an error.
16631    Use char because int might match the return type of a GCC
16632    builtin and then its argument prototype would still apply.  */
16633 #ifdef __cplusplus
16634 extern "C"
16635 #endif
16636 char dlopen ();
16637 int
16638 main ()
16639 {
16640 return dlopen ();
16641   ;
16642   return 0;
16643 }
16644 _ACEOF
16645 for ac_lib in '' dl; do
16646   if test -z "$ac_lib"; then
16647     ac_res="none required"
16648   else
16649     ac_res=-l$ac_lib
16650     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16651   fi
16652   if ac_fn_c_try_link "$LINENO"; then :
16653   ac_cv_search_dlopen=$ac_res
16654 fi
16655 rm -f core conftest.err conftest.$ac_objext \
16656     conftest$ac_exeext
16657   if ${ac_cv_search_dlopen+:} false; then :
16658   break
16659 fi
16660 done
16661 if ${ac_cv_search_dlopen+:} false; then :
16662
16663 else
16664   ac_cv_search_dlopen=no
16665 fi
16666 rm conftest.$ac_ext
16667 LIBS=$ac_func_search_save_LIBS
16668 fi
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16670 $as_echo "$ac_cv_search_dlopen" >&6; }
16671 ac_res=$ac_cv_search_dlopen
16672 if test "$ac_res" != no; then :
16673   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16674
16675 fi
16676
16677
16678 fi
16679 rm -f core conftest.err conftest.$ac_objext \
16680     conftest$ac_exeext conftest.$ac_ext
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
16682 $as_echo_n "checking for LibreSSL... " >&6; }
16683 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
16684         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16685 $as_echo "yes" >&6; }
16686
16687 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
16688
16689         # libressl provides these compat functions, but they may also be
16690         # declared by the OS in libc.  See if they have been declared.
16691         ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
16692 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
16693   ac_have_decl=1
16694 else
16695   ac_have_decl=0
16696 fi
16697
16698 cat >>confdefs.h <<_ACEOF
16699 #define HAVE_DECL_STRLCPY $ac_have_decl
16700 _ACEOF
16701 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
16702 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
16703   ac_have_decl=1
16704 else
16705   ac_have_decl=0
16706 fi
16707
16708 cat >>confdefs.h <<_ACEOF
16709 #define HAVE_DECL_STRLCAT $ac_have_decl
16710 _ACEOF
16711 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
16712 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
16713   ac_have_decl=1
16714 else
16715   ac_have_decl=0
16716 fi
16717
16718 cat >>confdefs.h <<_ACEOF
16719 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
16720 _ACEOF
16721 ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
16722 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
16723   ac_have_decl=1
16724 else
16725   ac_have_decl=0
16726 fi
16727
16728 cat >>confdefs.h <<_ACEOF
16729 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
16730 _ACEOF
16731
16732 else
16733         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16734 $as_echo "no" >&6; }
16735 fi
16736 for ac_header in openssl/conf.h
16737 do :
16738   ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default
16739 "
16740 if test "x$ac_cv_header_openssl_conf_h" = xyes; then :
16741   cat >>confdefs.h <<_ACEOF
16742 #define HAVE_OPENSSL_CONF_H 1
16743 _ACEOF
16744
16745 fi
16746
16747 done
16748
16749 for ac_header in openssl/engine.h
16750 do :
16751   ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default
16752 "
16753 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
16754   cat >>confdefs.h <<_ACEOF
16755 #define HAVE_OPENSSL_ENGINE_H 1
16756 _ACEOF
16757
16758 fi
16759
16760 done
16761
16762 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode
16763 do :
16764   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16765 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16766 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16767   cat >>confdefs.h <<_ACEOF
16768 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16769 _ACEOF
16770
16771 fi
16772 done
16773
16774 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
16775 $ac_includes_default
16776 #ifdef HAVE_OPENSSL_ERR_H
16777 #include <openssl/err.h>
16778 #endif
16779
16780 #ifdef HAVE_OPENSSL_RAND_H
16781 #include <openssl/rand.h>
16782 #endif
16783
16784 #ifdef HAVE_OPENSSL_CONF_H
16785 #include <openssl/conf.h>
16786 #endif
16787
16788 #ifdef HAVE_OPENSSL_ENGINE_H
16789 #include <openssl/engine.h>
16790 #endif
16791 #include <openssl/ssl.h>
16792 #include <openssl/evp.h>
16793
16794 "
16795 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
16796   ac_have_decl=1
16797 else
16798   ac_have_decl=0
16799 fi
16800
16801 cat >>confdefs.h <<_ACEOF
16802 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
16803 _ACEOF
16804 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
16805 $ac_includes_default
16806 #ifdef HAVE_OPENSSL_ERR_H
16807 #include <openssl/err.h>
16808 #endif
16809
16810 #ifdef HAVE_OPENSSL_RAND_H
16811 #include <openssl/rand.h>
16812 #endif
16813
16814 #ifdef HAVE_OPENSSL_CONF_H
16815 #include <openssl/conf.h>
16816 #endif
16817
16818 #ifdef HAVE_OPENSSL_ENGINE_H
16819 #include <openssl/engine.h>
16820 #endif
16821 #include <openssl/ssl.h>
16822 #include <openssl/evp.h>
16823
16824 "
16825 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
16826   ac_have_decl=1
16827 else
16828   ac_have_decl=0
16829 fi
16830
16831 cat >>confdefs.h <<_ACEOF
16832 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
16833 _ACEOF
16834
16835 fi
16836
16837
16838 # Check whether --enable-sha2 was given.
16839 if test "${enable_sha2+set}" = set; then :
16840   enableval=$enable_sha2;
16841 fi
16842
16843 case "$enable_sha2" in
16844         no)
16845         ;;
16846         yes|*)
16847
16848 $as_echo "#define USE_SHA2 1" >>confdefs.h
16849
16850         ;;
16851 esac
16852
16853 # check wether gost also works
16854
16855 # Check whether --enable-gost was given.
16856 if test "${enable_gost+set}" = set; then :
16857   enableval=$enable_gost;
16858 fi
16859
16860 use_gost="no"
16861 if test $USE_NSS = "no"; then
16862 case "$enable_gost" in
16863         no)
16864         ;;
16865         *)
16866         ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
16867 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
16868   :
16869 else
16870   as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
16871 fi
16872
16873         ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
16874 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
16875
16876 else
16877   as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
16878 fi
16879
16880
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
16882 $as_echo_n "checking if GOST works... " >&6; }
16883 if test c${cross_compiling} = cno; then
16884 BAKCFLAGS="$CFLAGS"
16885 if test -n "$ssldir"; then
16886         CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
16887 fi
16888 if test "$cross_compiling" = yes; then :
16889   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16891 as_fn_error $? "cannot run test program while cross compiling
16892 See \`config.log' for more details" "$LINENO" 5; }
16893 else
16894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895 /* end confdefs.h.  */
16896
16897 #include <string.h>
16898 #include <openssl/ssl.h>
16899 #include <openssl/evp.h>
16900 #include <openssl/engine.h>
16901 #include <openssl/conf.h>
16902 /* routine to load gost (from sldns) */
16903 int load_gost_id(void)
16904 {
16905         static int gost_id = 0;
16906         const EVP_PKEY_ASN1_METHOD* meth;
16907         ENGINE* e;
16908
16909         if(gost_id) return gost_id;
16910
16911         /* see if configuration loaded gost implementation from other engine*/
16912         meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
16913         if(meth) {
16914                 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16915                 return gost_id;
16916         }
16917
16918         /* see if engine can be loaded already */
16919         e = ENGINE_by_id("gost");
16920         if(!e) {
16921                 /* load it ourself, in case statically linked */
16922                 ENGINE_load_builtin_engines();
16923                 ENGINE_load_dynamic();
16924                 e = ENGINE_by_id("gost");
16925         }
16926         if(!e) {
16927                 /* no gost engine in openssl */
16928                 return 0;
16929         }
16930         if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
16931                 ENGINE_finish(e);
16932                 ENGINE_free(e);
16933                 return 0;
16934         }
16935
16936         meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
16937         if(!meth) {
16938                 /* algo not found */
16939                 ENGINE_finish(e);
16940                 ENGINE_free(e);
16941                 return 0;
16942         }
16943         EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16944         return gost_id;
16945 }
16946 int main(void) {
16947         EVP_MD_CTX* ctx;
16948         const EVP_MD* md;
16949         unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
16950         const char* str = "Hello world";
16951         const unsigned char check[] = {
16952                 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
16953                 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
16954                 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
16955                 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
16956         };
16957         OPENSSL_config(NULL);
16958         (void)load_gost_id();
16959         md = EVP_get_digestbyname("md_gost94");
16960         if(!md) return 1;
16961         memset(digest, 0, sizeof(digest));
16962         ctx = EVP_MD_CTX_create();
16963         if(!ctx) return 2;
16964         if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
16965         if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
16966         if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
16967         /* uncomment to see the hash calculated.
16968                 {int i;
16969                 for(i=0; i<32; i++)
16970                         printf(" %2.2x", (int)digest[i]);
16971                 printf("\n");}
16972         */
16973         if(memcmp(digest, check, sizeof(check)) != 0)
16974                 return 6;
16975         return 0;
16976 }
16977
16978 _ACEOF
16979 if ac_fn_c_try_run "$LINENO"; then :
16980   eval "ac_cv_c_gost_works=yes"
16981 else
16982   eval "ac_cv_c_gost_works=no"
16983 fi
16984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16985   conftest.$ac_objext conftest.beam conftest.$ac_ext
16986 fi
16987
16988 CFLAGS="$BAKCFLAGS"
16989 else
16990 eval "ac_cv_c_gost_works=maybe"
16991 fi
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
16993 $as_echo "$ac_cv_c_gost_works" >&6; }
16994
16995         if test "$ac_cv_c_gost_works" != no; then
16996                 use_gost="yes"
16997
16998 $as_echo "#define USE_GOST 1" >>confdefs.h
16999
17000         fi
17001         ;;
17002 esac
17003 fi
17004 # Check whether --enable-ecdsa was given.
17005 if test "${enable_ecdsa+set}" = set; then :
17006   enableval=$enable_ecdsa;
17007 fi
17008
17009 use_ecdsa="no"
17010 case "$enable_ecdsa" in
17011     no)
17012       ;;
17013     *)
17014       if test $USE_NSS = "no"; then
17015               ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
17016 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
17017
17018 else
17019   as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17020 fi
17021
17022               ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
17023 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
17024
17025 else
17026   as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17027 fi
17028
17029               ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
17030 #include <openssl/evp.h>
17031
17032 "
17033 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
17034   ac_have_decl=1
17035 else
17036   ac_have_decl=0
17037 fi
17038
17039 cat >>confdefs.h <<_ACEOF
17040 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
17041 _ACEOF
17042 if test $ac_have_decl = 1; then :
17043
17044 else
17045   as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17046 fi
17047 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
17048 #include <openssl/evp.h>
17049
17050 "
17051 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
17052   ac_have_decl=1
17053 else
17054   ac_have_decl=0
17055 fi
17056
17057 cat >>confdefs.h <<_ACEOF
17058 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
17059 _ACEOF
17060 if test $ac_have_decl = 1; then :
17061
17062 else
17063   as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17064 fi
17065
17066               # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
17067               { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
17068 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
17069               if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
17070                 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
17071                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17072 $as_echo "no" >&6; }
17073
17074 cat >>confdefs.h <<_ACEOF
17075 #define USE_ECDSA_EVP_WORKAROUND 1
17076 _ACEOF
17077
17078                 else
17079                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17080 $as_echo "yes" >&6; }
17081                 fi
17082               else
17083                 # not OpenSSL, thus likely LibreSSL, which supports it
17084                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17085 $as_echo "yes" >&6; }
17086               fi
17087       fi
17088       # we now know we have ECDSA and the required curves.
17089
17090 cat >>confdefs.h <<_ACEOF
17091 #define USE_ECDSA 1
17092 _ACEOF
17093
17094       use_ecdsa="yes"
17095       ;;
17096 esac
17097
17098 # Check whether --enable-event-api was given.
17099 if test "${enable_event_api+set}" = set; then :
17100   enableval=$enable_event_api;
17101 fi
17102
17103 use_unbound_event="no"
17104 case "$enable_event_api" in
17105     yes)
17106       use_unbound_event="yes"
17107       ;;
17108     *)
17109       ;;
17110 esac
17111
17112 # check for libevent
17113
17114 # Check whether --with-libevent was given.
17115 if test "${with_libevent+set}" = set; then :
17116   withval=$with_libevent;
17117 else
17118    withval="no"
17119 fi
17120
17121 if test x_$withval = x_yes -o x_$withval != x_no; then
17122         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
17123 $as_echo_n "checking for libevent... " >&6; }
17124         if test x_$withval = x_ -o x_$withval = x_yes; then
17125             withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17126         fi
17127         for dir in $withval; do
17128             thedir="$dir"
17129             if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
17130                 found_libevent="yes"
17131                                 if test "$thedir" != "/usr"; then
17132                     CPPFLAGS="$CPPFLAGS -I$thedir/include"
17133                 fi
17134                 break;
17135             fi
17136         done
17137         if test x_$found_libevent != x_yes; then
17138                 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
17139                         # libevent source directory
17140                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
17141 $as_echo "found in $thedir" >&6; }
17142                         CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
17143                         BAK_LDFLAGS_SET="1"
17144                         BAK_LDFLAGS="$LDFLAGS"
17145                         # remove evdns from linking
17146                         mkdir build >/dev/null 2>&1
17147                         mkdir build/libevent >/dev/null 2>&1
17148                         mkdir build/libevent/.libs >/dev/null 2>&1
17149                         ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
17150                         ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
17151                         ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
17152                         cp $ev_files_o build/libevent
17153                         cp $ev_files_lo build/libevent
17154                         cp $ev_files_libso build/libevent/.libs
17155                         LATE_LDFLAGS="build/libevent/*.lo -lm"
17156                         LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
17157                 else
17158                         as_fn_error $? "Cannot find the libevent library in $withval
17159 You can restart ./configure --with-libevent=no to use a builtin alternative.
17160 Please note that this alternative is not as capable as libevent when using
17161 large outgoing port ranges.  " "$LINENO" 5
17162                 fi
17163         else
17164             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
17165 $as_echo "found in $thedir" >&6; }
17166                     if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
17167                     LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
17168
17169         if test "x$enable_rpath" = xyes; then
17170                 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
17171                         RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
17172                 fi
17173         fi
17174
17175             else
17176                                     if test "$thedir" != "/usr" -a "$thedir" != ""; then
17177                         LDFLAGS="$LDFLAGS -L$thedir/lib"
17178
17179         if test "x$enable_rpath" = xyes; then
17180                 if echo "$thedir/lib" | grep "^/" >/dev/null; then
17181                         RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
17182                 fi
17183         fi
17184
17185                     fi
17186             fi
17187         fi
17188         # check for library used by libevent after 1.3c
17189         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17190 $as_echo_n "checking for library containing clock_gettime... " >&6; }
17191 if ${ac_cv_search_clock_gettime+:} false; then :
17192   $as_echo_n "(cached) " >&6
17193 else
17194   ac_func_search_save_LIBS=$LIBS
17195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17196 /* end confdefs.h.  */
17197
17198 /* Override any GCC internal prototype to avoid an error.
17199    Use char because int might match the return type of a GCC
17200    builtin and then its argument prototype would still apply.  */
17201 #ifdef __cplusplus
17202 extern "C"
17203 #endif
17204 char clock_gettime ();
17205 int
17206 main ()
17207 {
17208 return clock_gettime ();
17209   ;
17210   return 0;
17211 }
17212 _ACEOF
17213 for ac_lib in '' rt; do
17214   if test -z "$ac_lib"; then
17215     ac_res="none required"
17216   else
17217     ac_res=-l$ac_lib
17218     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17219   fi
17220   if ac_fn_c_try_link "$LINENO"; then :
17221   ac_cv_search_clock_gettime=$ac_res
17222 fi
17223 rm -f core conftest.err conftest.$ac_objext \
17224     conftest$ac_exeext
17225   if ${ac_cv_search_clock_gettime+:} false; then :
17226   break
17227 fi
17228 done
17229 if ${ac_cv_search_clock_gettime+:} false; then :
17230
17231 else
17232   ac_cv_search_clock_gettime=no
17233 fi
17234 rm conftest.$ac_ext
17235 LIBS=$ac_func_search_save_LIBS
17236 fi
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17238 $as_echo "$ac_cv_search_clock_gettime" >&6; }
17239 ac_res=$ac_cv_search_clock_gettime
17240 if test "$ac_res" != no; then :
17241   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17242
17243 fi
17244
17245
17246         # is the event.h header libev or libevent?
17247         for ac_header in event.h
17248 do :
17249   ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
17250 "
17251 if test "x$ac_cv_header_event_h" = xyes; then :
17252   cat >>confdefs.h <<_ACEOF
17253 #define HAVE_EVENT_H 1
17254 _ACEOF
17255
17256 fi
17257
17258 done
17259
17260         ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
17261 #include <event.h>
17262
17263 "
17264 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
17265
17266                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17267 $as_echo_n "checking for library containing event_set... " >&6; }
17268 if ${ac_cv_search_event_set+:} false; then :
17269   $as_echo_n "(cached) " >&6
17270 else
17271   ac_func_search_save_LIBS=$LIBS
17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273 /* end confdefs.h.  */
17274
17275 /* Override any GCC internal prototype to avoid an error.
17276    Use char because int might match the return type of a GCC
17277    builtin and then its argument prototype would still apply.  */
17278 #ifdef __cplusplus
17279 extern "C"
17280 #endif
17281 char event_set ();
17282 int
17283 main ()
17284 {
17285 return event_set ();
17286   ;
17287   return 0;
17288 }
17289 _ACEOF
17290 for ac_lib in '' ev; do
17291   if test -z "$ac_lib"; then
17292     ac_res="none required"
17293   else
17294     ac_res=-l$ac_lib
17295     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17296   fi
17297   if ac_fn_c_try_link "$LINENO"; then :
17298   ac_cv_search_event_set=$ac_res
17299 fi
17300 rm -f core conftest.err conftest.$ac_objext \
17301     conftest$ac_exeext
17302   if ${ac_cv_search_event_set+:} false; then :
17303   break
17304 fi
17305 done
17306 if ${ac_cv_search_event_set+:} false; then :
17307
17308 else
17309   ac_cv_search_event_set=no
17310 fi
17311 rm conftest.$ac_ext
17312 LIBS=$ac_func_search_save_LIBS
17313 fi
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17315 $as_echo "$ac_cv_search_event_set" >&6; }
17316 ac_res=$ac_cv_search_event_set
17317 if test "$ac_res" != no; then :
17318   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17319
17320 fi
17321
17322
17323 else
17324
17325                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17326 $as_echo_n "checking for library containing event_set... " >&6; }
17327 if ${ac_cv_search_event_set+:} false; then :
17328   $as_echo_n "(cached) " >&6
17329 else
17330   ac_func_search_save_LIBS=$LIBS
17331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17332 /* end confdefs.h.  */
17333
17334 /* Override any GCC internal prototype to avoid an error.
17335    Use char because int might match the return type of a GCC
17336    builtin and then its argument prototype would still apply.  */
17337 #ifdef __cplusplus
17338 extern "C"
17339 #endif
17340 char event_set ();
17341 int
17342 main ()
17343 {
17344 return event_set ();
17345   ;
17346   return 0;
17347 }
17348 _ACEOF
17349 for ac_lib in '' event; do
17350   if test -z "$ac_lib"; then
17351     ac_res="none required"
17352   else
17353     ac_res=-l$ac_lib
17354     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17355   fi
17356   if ac_fn_c_try_link "$LINENO"; then :
17357   ac_cv_search_event_set=$ac_res
17358 fi
17359 rm -f core conftest.err conftest.$ac_objext \
17360     conftest$ac_exeext
17361   if ${ac_cv_search_event_set+:} false; then :
17362   break
17363 fi
17364 done
17365 if ${ac_cv_search_event_set+:} false; then :
17366
17367 else
17368   ac_cv_search_event_set=no
17369 fi
17370 rm conftest.$ac_ext
17371 LIBS=$ac_func_search_save_LIBS
17372 fi
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17374 $as_echo "$ac_cv_search_event_set" >&6; }
17375 ac_res=$ac_cv_search_event_set
17376 if test "$ac_res" != no; then :
17377   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17378
17379 fi
17380
17381
17382 fi
17383
17384         for ac_func in event_base_free
17385 do :
17386   ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
17387 if test "x$ac_cv_func_event_base_free" = xyes; then :
17388   cat >>confdefs.h <<_ACEOF
17389 #define HAVE_EVENT_BASE_FREE 1
17390 _ACEOF
17391
17392 fi
17393 done
17394  # only in libevent 1.2 and later
17395         for ac_func in event_base_once
17396 do :
17397   ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
17398 if test "x$ac_cv_func_event_base_once" = xyes; then :
17399   cat >>confdefs.h <<_ACEOF
17400 #define HAVE_EVENT_BASE_ONCE 1
17401 _ACEOF
17402
17403 fi
17404 done
17405  # only in libevent 1.4.1 and later
17406         for ac_func in event_base_new
17407 do :
17408   ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
17409 if test "x$ac_cv_func_event_base_new" = xyes; then :
17410   cat >>confdefs.h <<_ACEOF
17411 #define HAVE_EVENT_BASE_NEW 1
17412 _ACEOF
17413
17414 fi
17415 done
17416  # only in libevent 1.4.1 and later
17417         for ac_func in event_base_get_method
17418 do :
17419   ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
17420 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
17421   cat >>confdefs.h <<_ACEOF
17422 #define HAVE_EVENT_BASE_GET_METHOD 1
17423 _ACEOF
17424
17425 fi
17426 done
17427  # only in libevent 1.4.3 and later
17428         for ac_func in ev_loop
17429 do :
17430   ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
17431 if test "x$ac_cv_func_ev_loop" = xyes; then :
17432   cat >>confdefs.h <<_ACEOF
17433 #define HAVE_EV_LOOP 1
17434 _ACEOF
17435
17436 fi
17437 done
17438  # only in libev. (tested on 3.51)
17439         for ac_func in ev_default_loop
17440 do :
17441   ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
17442 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
17443   cat >>confdefs.h <<_ACEOF
17444 #define HAVE_EV_DEFAULT_LOOP 1
17445 _ACEOF
17446
17447 fi
17448 done
17449  # only in libev. (tested on 4.00)
17450         if test -n "$BAK_LDFLAGS_SET"; then
17451                 LDFLAGS="$BAK_LDFLAGS"
17452         fi
17453         if test "$use_unbound_event" = "yes"; then
17454                 UNBOUND_EVENT_INSTALL=unbound-event-install
17455
17456                 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
17457
17458         fi
17459 else
17460
17461 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
17462
17463 fi
17464
17465 # check for libexpat
17466
17467 # Check whether --with-libexpat was given.
17468 if test "${with_libexpat+set}" = set; then :
17469   withval=$with_libexpat;
17470 else
17471    withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17472 fi
17473
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
17475 $as_echo_n "checking for libexpat... " >&6; }
17476 found_libexpat="no"
17477 for dir in $withval ; do
17478             if test -f "$dir/include/expat.h"; then
17479                 found_libexpat="yes"
17480                                 if test "$dir" != "/usr"; then
17481                     CPPFLAGS="$CPPFLAGS -I$dir/include"
17482                     LDFLAGS="$LDFLAGS -L$dir/lib"
17483                 fi
17484                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
17485 $as_echo "found in $dir" >&6; }
17486                 break;
17487             fi
17488 done
17489 if test x_$found_libexpat != x_yes; then
17490         as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
17491 fi
17492 for ac_header in expat.h
17493 do :
17494   ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
17495 "
17496 if test "x$ac_cv_header_expat_h" = xyes; then :
17497   cat >>confdefs.h <<_ACEOF
17498 #define HAVE_EXPAT_H 1
17499 _ACEOF
17500
17501 fi
17502
17503 done
17504
17505
17506 # set static linking if requested
17507
17508 staticexe=""
17509 # Check whether --enable-static-exe was given.
17510 if test "${enable_static_exe+set}" = set; then :
17511   enableval=$enable_static_exe;
17512 fi
17513
17514 if test x_$enable_static_exe = x_yes; then
17515         staticexe="-static"
17516         if test "$on_mingw" = yes; then
17517                 staticexe="-all-static"
17518                 # for static crosscompile, include gdi32 and zlib here.
17519                 if test "`uname`" = "Linux"; then
17520                         LIBS="$LIBS -lgdi32 -lz"
17521                 fi
17522         fi
17523 fi
17524
17525 # set lock checking if requested
17526 # Check whether --enable-lock_checks was given.
17527 if test "${enable_lock_checks+set}" = set; then :
17528   enableval=$enable_lock_checks;
17529 fi
17530
17531 if test x_$enable_lock_checks = x_yes; then
17532
17533 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
17534
17535         CHECKLOCK_OBJ="checklocks.lo"
17536
17537 fi
17538
17539
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
17541 $as_echo_n "checking for getaddrinfo... " >&6; }
17542 ac_cv_func_getaddrinfo=no
17543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17544 /* end confdefs.h.  */
17545
17546 #ifdef __cplusplus
17547 extern "C"
17548 {
17549 #endif
17550 char* getaddrinfo();
17551 char* (*f) () = getaddrinfo;
17552 #ifdef __cplusplus
17553 }
17554 #endif
17555 int main() {
17556         ;
17557         return 0;
17558 }
17559
17560 _ACEOF
17561 if ac_fn_c_try_link "$LINENO"; then :
17562   ac_cv_func_getaddrinfo="yes"
17563 if test "$ac_cv_header_windows_h" = "yes"; then
17564
17565 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17566
17567         USE_WINSOCK="1"
17568         LIBS="$LIBS -lws2_32"
17569 fi
17570
17571 else
17572   ORIGLIBS="$LIBS"
17573 LIBS="$LIBS -lws2_32"
17574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17575 /* end confdefs.h.  */
17576
17577 #ifdef HAVE_WS2TCPIP_H
17578 #include <ws2tcpip.h>
17579 #endif
17580
17581 int
17582 main ()
17583 {
17584
17585         (void)getaddrinfo(NULL, NULL, NULL, NULL);
17586
17587
17588   ;
17589   return 0;
17590 }
17591 _ACEOF
17592 if ac_fn_c_try_link "$LINENO"; then :
17593
17594 ac_cv_func_getaddrinfo="yes"
17595
17596 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17597
17598 USE_WINSOCK="1"
17599
17600 else
17601
17602 ac_cv_func_getaddrinfo="no"
17603 LIBS="$ORIGLIBS"
17604
17605 fi
17606 rm -f core conftest.err conftest.$ac_objext \
17607     conftest$ac_exeext conftest.$ac_ext
17608
17609 fi
17610 rm -f core conftest.err conftest.$ac_objext \
17611     conftest$ac_exeext conftest.$ac_ext
17612
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
17614 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
17615 if test $ac_cv_func_getaddrinfo = yes; then
17616
17617 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17618
17619 fi
17620
17621 if test "$USE_WINSOCK" = 1; then
17622
17623 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
17624
17625         for ac_header in iphlpapi.h
17626 do :
17627   ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
17628 #include <windows.h>
17629
17630 "
17631 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
17632   cat >>confdefs.h <<_ACEOF
17633 #define HAVE_IPHLPAPI_H 1
17634 _ACEOF
17635
17636 fi
17637
17638 done
17639
17640         if test -n "$ac_tool_prefix"; then
17641   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17642 set dummy ${ac_tool_prefix}windres; ac_word=$2
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17644 $as_echo_n "checking for $ac_word... " >&6; }
17645 if ${ac_cv_prog_WINDRES+:} false; then :
17646   $as_echo_n "(cached) " >&6
17647 else
17648   if test -n "$WINDRES"; then
17649   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17650 else
17651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17652 for as_dir in $PATH
17653 do
17654   IFS=$as_save_IFS
17655   test -z "$as_dir" && as_dir=.
17656     for ac_exec_ext in '' $ac_executable_extensions; do
17657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17658     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
17659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17660     break 2
17661   fi
17662 done
17663   done
17664 IFS=$as_save_IFS
17665
17666 fi
17667 fi
17668 WINDRES=$ac_cv_prog_WINDRES
17669 if test -n "$WINDRES"; then
17670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
17671 $as_echo "$WINDRES" >&6; }
17672 else
17673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17674 $as_echo "no" >&6; }
17675 fi
17676
17677
17678 fi
17679 if test -z "$ac_cv_prog_WINDRES"; then
17680   ac_ct_WINDRES=$WINDRES
17681   # Extract the first word of "windres", so it can be a program name with args.
17682 set dummy windres; ac_word=$2
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17684 $as_echo_n "checking for $ac_word... " >&6; }
17685 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
17686   $as_echo_n "(cached) " >&6
17687 else
17688   if test -n "$ac_ct_WINDRES"; then
17689   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17690 else
17691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17692 for as_dir in $PATH
17693 do
17694   IFS=$as_save_IFS
17695   test -z "$as_dir" && as_dir=.
17696     for ac_exec_ext in '' $ac_executable_extensions; do
17697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17698     ac_cv_prog_ac_ct_WINDRES="windres"
17699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17700     break 2
17701   fi
17702 done
17703   done
17704 IFS=$as_save_IFS
17705
17706 fi
17707 fi
17708 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17709 if test -n "$ac_ct_WINDRES"; then
17710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
17711 $as_echo "$ac_ct_WINDRES" >&6; }
17712 else
17713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17714 $as_echo "no" >&6; }
17715 fi
17716
17717   if test "x$ac_ct_WINDRES" = x; then
17718     WINDRES=""
17719   else
17720     case $cross_compiling:$ac_tool_warned in
17721 yes:)
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17724 ac_tool_warned=yes ;;
17725 esac
17726     WINDRES=$ac_ct_WINDRES
17727   fi
17728 else
17729   WINDRES="$ac_cv_prog_WINDRES"
17730 fi
17731
17732         LIBS="$LIBS -liphlpapi"
17733         WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
17734
17735         WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
17736
17737         WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
17738
17739         WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
17740
17741         WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
17742
17743         WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
17744
17745         WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
17746
17747         WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
17748
17749 fi
17750 if test $ac_cv_func_getaddrinfo = no; then
17751         case " $LIBOBJS " in
17752   *" fake-rfc2553.$ac_objext "* ) ;;
17753   *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
17754  ;;
17755 esac
17756
17757 fi
17758 # check after getaddrinfo for its libraries
17759
17760 # check ioctlsocket
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
17762 $as_echo_n "checking for ioctlsocket... " >&6; }
17763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17764 /* end confdefs.h.  */
17765
17766 #ifdef HAVE_WINSOCK2_H
17767 #include <winsock2.h>
17768 #endif
17769
17770 int
17771 main ()
17772 {
17773
17774         (void)ioctlsocket(0, 0, NULL);
17775
17776   ;
17777   return 0;
17778 }
17779 _ACEOF
17780 if ac_fn_c_try_link "$LINENO"; then :
17781
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17783 $as_echo "yes" >&6; }
17784
17785 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
17786
17787
17788 else
17789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17790 $as_echo "no" >&6; }
17791 fi
17792 rm -f core conftest.err conftest.$ac_objext \
17793     conftest$ac_exeext conftest.$ac_ext
17794
17795
17796 # see if daemon(3) exists, and if it is deprecated.
17797 for ac_func in daemon
17798 do :
17799   ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
17800 if test "x$ac_cv_func_daemon" = xyes; then :
17801   cat >>confdefs.h <<_ACEOF
17802 #define HAVE_DAEMON 1
17803 _ACEOF
17804
17805 fi
17806 done
17807
17808 if test $ac_cv_func_daemon = yes; then
17809
17810
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
17812 $as_echo_n "checking if daemon is deprecated... " >&6; }
17813 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
17814 if eval \${cv_cc_deprecated_$cache+:} false; then :
17815   $as_echo_n "(cached) " >&6
17816 else
17817
17818 echo '
17819 #include <stdlib.h>
17820 ' >conftest.c
17821 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
17822 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
17823 eval "cv_cc_deprecated_$cache=no"
17824 else
17825 eval "cv_cc_deprecated_$cache=yes"
17826 fi
17827 rm -f conftest conftest.o conftest.c
17828
17829 fi
17830
17831 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17833 $as_echo "yes" >&6; }
17834
17835 cat >>confdefs.h <<_ACEOF
17836 #define DEPRECATED_DAEMON 1
17837 _ACEOF
17838
17839 :
17840
17841 else
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17843 $as_echo "no" >&6; }
17844 :
17845
17846 fi
17847
17848 fi
17849
17850 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
17851 $ac_includes_default
17852 #ifdef HAVE_SYS_UN_H
17853 #include <sys/un.h>
17854 #endif
17855
17856 "
17857 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
17858
17859 cat >>confdefs.h <<_ACEOF
17860 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
17861 _ACEOF
17862
17863
17864 fi
17865
17866 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
17867 $ac_includes_default
17868 #if HAVE_SYS_PARAM_H
17869 #include <sys/param.h>
17870 #endif
17871
17872 #ifdef HAVE_SYS_SOCKET_H
17873 #include <sys/socket.h>
17874 #endif
17875
17876 #ifdef HAVE_SYS_UIO_H
17877 #include <sys/uio.h>
17878 #endif
17879
17880 #ifdef HAVE_NETINET_IN_H
17881 #include <netinet/in.h>
17882 #endif
17883
17884 #ifdef HAVE_ARPA_INET_H
17885 #include <arpa/inet.h>
17886 #endif
17887
17888 #ifdef HAVE_WINSOCK2_H
17889 #include <winsock2.h>
17890 #endif
17891
17892 #ifdef HAVE_WS2TCPIP_H
17893 #include <ws2tcpip.h>
17894 #endif
17895
17896 "
17897 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
17898
17899 cat >>confdefs.h <<_ACEOF
17900 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
17901 _ACEOF
17902
17903
17904 fi
17905
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
17907 $as_echo_n "checking for library containing setusercontext... " >&6; }
17908 if ${ac_cv_search_setusercontext+:} false; then :
17909   $as_echo_n "(cached) " >&6
17910 else
17911   ac_func_search_save_LIBS=$LIBS
17912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17913 /* end confdefs.h.  */
17914
17915 /* Override any GCC internal prototype to avoid an error.
17916    Use char because int might match the return type of a GCC
17917    builtin and then its argument prototype would still apply.  */
17918 #ifdef __cplusplus
17919 extern "C"
17920 #endif
17921 char setusercontext ();
17922 int
17923 main ()
17924 {
17925 return setusercontext ();
17926   ;
17927   return 0;
17928 }
17929 _ACEOF
17930 for ac_lib in '' util; do
17931   if test -z "$ac_lib"; then
17932     ac_res="none required"
17933   else
17934     ac_res=-l$ac_lib
17935     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17936   fi
17937   if ac_fn_c_try_link "$LINENO"; then :
17938   ac_cv_search_setusercontext=$ac_res
17939 fi
17940 rm -f core conftest.err conftest.$ac_objext \
17941     conftest$ac_exeext
17942   if ${ac_cv_search_setusercontext+:} false; then :
17943   break
17944 fi
17945 done
17946 if ${ac_cv_search_setusercontext+:} false; then :
17947
17948 else
17949   ac_cv_search_setusercontext=no
17950 fi
17951 rm conftest.$ac_ext
17952 LIBS=$ac_func_search_save_LIBS
17953 fi
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
17955 $as_echo "$ac_cv_search_setusercontext" >&6; }
17956 ac_res=$ac_cv_search_setusercontext
17957 if test "$ac_res" != no; then :
17958   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17959
17960 fi
17961
17962 for ac_func in tzset sigprocmask fcntl getpwnam getrlimit setrlimit setsid sbrk chroot kill chown sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent
17963 do :
17964   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17965 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17966 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17967   cat >>confdefs.h <<_ACEOF
17968 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17969 _ACEOF
17970
17971 fi
17972 done
17973
17974 for ac_func in setresuid
17975 do :
17976   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
17977 if test "x$ac_cv_func_setresuid" = xyes; then :
17978   cat >>confdefs.h <<_ACEOF
17979 #define HAVE_SETRESUID 1
17980 _ACEOF
17981
17982 else
17983   for ac_func in setreuid
17984 do :
17985   ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
17986 if test "x$ac_cv_func_setreuid" = xyes; then :
17987   cat >>confdefs.h <<_ACEOF
17988 #define HAVE_SETREUID 1
17989 _ACEOF
17990
17991 fi
17992 done
17993
17994 fi
17995 done
17996
17997 for ac_func in setresgid
17998 do :
17999   ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
18000 if test "x$ac_cv_func_setresgid" = xyes; then :
18001   cat >>confdefs.h <<_ACEOF
18002 #define HAVE_SETRESGID 1
18003 _ACEOF
18004
18005 else
18006   for ac_func in setregid
18007 do :
18008   ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
18009 if test "x$ac_cv_func_setregid" = xyes; then :
18010   cat >>confdefs.h <<_ACEOF
18011 #define HAVE_SETREGID 1
18012 _ACEOF
18013
18014 fi
18015 done
18016
18017 fi
18018 done
18019
18020
18021 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
18022 if echo $build_os | grep darwin8 > /dev/null; then
18023
18024 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
18025
18026 fi
18027 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
18028 if test "x$ac_cv_func_inet_aton" = xyes; then :
18029   $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
18030
18031 else
18032   case " $LIBOBJS " in
18033   *" inet_aton.$ac_objext "* ) ;;
18034   *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
18035  ;;
18036 esac
18037
18038 fi
18039
18040
18041 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
18042 if test "x$ac_cv_func_inet_pton" = xyes; then :
18043   $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
18044
18045 else
18046   case " $LIBOBJS " in
18047   *" inet_pton.$ac_objext "* ) ;;
18048   *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
18049  ;;
18050 esac
18051
18052 fi
18053
18054
18055 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
18056 if test "x$ac_cv_func_inet_ntop" = xyes; then :
18057   $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
18058
18059 else
18060   case " $LIBOBJS " in
18061   *" inet_ntop.$ac_objext "* ) ;;
18062   *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
18063  ;;
18064 esac
18065
18066 fi
18067
18068
18069 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
18070 if test "x$ac_cv_func_snprintf" = xyes; then :
18071   $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
18072
18073 else
18074   case " $LIBOBJS " in
18075   *" snprintf.$ac_objext "* ) ;;
18076   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18077  ;;
18078 esac
18079
18080 fi
18081
18082
18083 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
18084 if test "x$ac_cv_func_strlcat" = xyes; then :
18085   $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
18086
18087 else
18088   case " $LIBOBJS " in
18089   *" strlcat.$ac_objext "* ) ;;
18090   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
18091  ;;
18092 esac
18093
18094 fi
18095
18096
18097 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18098 if test "x$ac_cv_func_strlcpy" = xyes; then :
18099   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
18100
18101 else
18102   case " $LIBOBJS " in
18103   *" strlcpy.$ac_objext "* ) ;;
18104   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
18105  ;;
18106 esac
18107
18108 fi
18109
18110
18111 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
18112 if test "x$ac_cv_func_memmove" = xyes; then :
18113   $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
18114
18115 else
18116   case " $LIBOBJS " in
18117   *" memmove.$ac_objext "* ) ;;
18118   *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
18119  ;;
18120 esac
18121
18122 fi
18123
18124
18125 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
18126 if test "x$ac_cv_func_gmtime_r" = xyes; then :
18127   $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
18128
18129 else
18130   case " $LIBOBJS " in
18131   *" gmtime_r.$ac_objext "* ) ;;
18132   *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
18133  ;;
18134 esac
18135
18136 fi
18137
18138
18139 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
18140
18141 if test "$USE_NSS" = "no"; then
18142         ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
18143 if test "x$ac_cv_func_arc4random" = xyes; then :
18144   $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
18145
18146 else
18147   case " $LIBOBJS " in
18148   *" arc4random.$ac_objext "* ) ;;
18149   *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
18150  ;;
18151 esac
18152
18153 fi
18154
18155
18156         ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
18157 if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
18158   $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
18159
18160 else
18161   case " $LIBOBJS " in
18162   *" arc4random_uniform.$ac_objext "* ) ;;
18163   *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
18164  ;;
18165 esac
18166
18167 fi
18168
18169
18170         if test "$ac_cv_func_arc4random" = "no"; then
18171                 case " $LIBOBJS " in
18172   *" explicit_bzero.$ac_objext "* ) ;;
18173   *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
18174  ;;
18175 esac
18176
18177                 case " $LIBOBJS " in
18178   *" arc4_lock.$ac_objext "* ) ;;
18179   *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
18180  ;;
18181 esac
18182
18183                 for ac_func in getentropy
18184 do :
18185   ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
18186 if test "x$ac_cv_func_getentropy" = xyes; then :
18187   cat >>confdefs.h <<_ACEOF
18188 #define HAVE_GETENTROPY 1
18189 _ACEOF
18190
18191 else
18192
18193                     if test "$USE_WINSOCK" = 1; then
18194                         case " $LIBOBJS " in
18195   *" getentropy_win.$ac_objext "* ) ;;
18196   *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
18197  ;;
18198 esac
18199
18200                     else
18201                         case `uname` in
18202                         Darwin)
18203                                 case " $LIBOBJS " in
18204   *" getentropy_osx.$ac_objext "* ) ;;
18205   *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
18206  ;;
18207 esac
18208
18209                         ;;
18210                         SunOS)
18211                                 case " $LIBOBJS " in
18212   *" getentropy_solaris.$ac_objext "* ) ;;
18213   *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
18214  ;;
18215 esac
18216
18217                                 for ac_header in sys/sha2.h
18218 do :
18219   ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
18220 "
18221 if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
18222   cat >>confdefs.h <<_ACEOF
18223 #define HAVE_SYS_SHA2_H 1
18224 _ACEOF
18225
18226 else
18227
18228                                         for ac_func in SHA512_Update
18229 do :
18230   ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
18231 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
18232   cat >>confdefs.h <<_ACEOF
18233 #define HAVE_SHA512_UPDATE 1
18234 _ACEOF
18235
18236 else
18237
18238                                                 case " $LIBOBJS " in
18239   *" sha512.$ac_objext "* ) ;;
18240   *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
18241  ;;
18242 esac
18243
18244
18245 fi
18246 done
18247
18248
18249 fi
18250
18251 done
18252
18253                                 if test "$ac_cv_header_sys_sha2_h" = "yes"; then
18254                                         # this lib needed for sha2 on solaris
18255                                         LIBS="$LIBS -lmd"
18256                                 fi
18257                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18258 $as_echo_n "checking for library containing clock_gettime... " >&6; }
18259 if ${ac_cv_search_clock_gettime+:} false; then :
18260   $as_echo_n "(cached) " >&6
18261 else
18262   ac_func_search_save_LIBS=$LIBS
18263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18264 /* end confdefs.h.  */
18265
18266 /* Override any GCC internal prototype to avoid an error.
18267    Use char because int might match the return type of a GCC
18268    builtin and then its argument prototype would still apply.  */
18269 #ifdef __cplusplus
18270 extern "C"
18271 #endif
18272 char clock_gettime ();
18273 int
18274 main ()
18275 {
18276 return clock_gettime ();
18277   ;
18278   return 0;
18279 }
18280 _ACEOF
18281 for ac_lib in '' rt; do
18282   if test -z "$ac_lib"; then
18283     ac_res="none required"
18284   else
18285     ac_res=-l$ac_lib
18286     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18287   fi
18288   if ac_fn_c_try_link "$LINENO"; then :
18289   ac_cv_search_clock_gettime=$ac_res
18290 fi
18291 rm -f core conftest.err conftest.$ac_objext \
18292     conftest$ac_exeext
18293   if ${ac_cv_search_clock_gettime+:} false; then :
18294   break
18295 fi
18296 done
18297 if ${ac_cv_search_clock_gettime+:} false; then :
18298
18299 else
18300   ac_cv_search_clock_gettime=no
18301 fi
18302 rm conftest.$ac_ext
18303 LIBS=$ac_func_search_save_LIBS
18304 fi
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18306 $as_echo "$ac_cv_search_clock_gettime" >&6; }
18307 ac_res=$ac_cv_search_clock_gettime
18308 if test "$ac_res" != no; then :
18309   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18310
18311 fi
18312
18313                         ;;
18314                         Linux|*)
18315                                 case " $LIBOBJS " in
18316   *" getentropy_linux.$ac_objext "* ) ;;
18317   *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
18318  ;;
18319 esac
18320
18321                                 for ac_func in SHA512_Update
18322 do :
18323   ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
18324 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
18325   cat >>confdefs.h <<_ACEOF
18326 #define HAVE_SHA512_UPDATE 1
18327 _ACEOF
18328
18329 else
18330
18331
18332 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
18333
18334                                         case " $LIBOBJS " in
18335   *" sha512.$ac_objext "* ) ;;
18336   *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
18337  ;;
18338 esac
18339
18340
18341 fi
18342 done
18343
18344                                 for ac_header in sys/sysctl.h
18345 do :
18346   ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
18347 "
18348 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
18349   cat >>confdefs.h <<_ACEOF
18350 #define HAVE_SYS_SYSCTL_H 1
18351 _ACEOF
18352
18353 fi
18354
18355 done
18356
18357                                 for ac_func in getauxval
18358 do :
18359   ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
18360 if test "x$ac_cv_func_getauxval" = xyes; then :
18361   cat >>confdefs.h <<_ACEOF
18362 #define HAVE_GETAUXVAL 1
18363 _ACEOF
18364
18365 fi
18366 done
18367
18368                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18369 $as_echo_n "checking for library containing clock_gettime... " >&6; }
18370 if ${ac_cv_search_clock_gettime+:} false; then :
18371   $as_echo_n "(cached) " >&6
18372 else
18373   ac_func_search_save_LIBS=$LIBS
18374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375 /* end confdefs.h.  */
18376
18377 /* Override any GCC internal prototype to avoid an error.
18378    Use char because int might match the return type of a GCC
18379    builtin and then its argument prototype would still apply.  */
18380 #ifdef __cplusplus
18381 extern "C"
18382 #endif
18383 char clock_gettime ();
18384 int
18385 main ()
18386 {
18387 return clock_gettime ();
18388   ;
18389   return 0;
18390 }
18391 _ACEOF
18392 for ac_lib in '' rt; do
18393   if test -z "$ac_lib"; then
18394     ac_res="none required"
18395   else
18396     ac_res=-l$ac_lib
18397     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18398   fi
18399   if ac_fn_c_try_link "$LINENO"; then :
18400   ac_cv_search_clock_gettime=$ac_res
18401 fi
18402 rm -f core conftest.err conftest.$ac_objext \
18403     conftest$ac_exeext
18404   if ${ac_cv_search_clock_gettime+:} false; then :
18405   break
18406 fi
18407 done
18408 if ${ac_cv_search_clock_gettime+:} false; then :
18409
18410 else
18411   ac_cv_search_clock_gettime=no
18412 fi
18413 rm conftest.$ac_ext
18414 LIBS=$ac_func_search_save_LIBS
18415 fi
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18417 $as_echo "$ac_cv_search_clock_gettime" >&6; }
18418 ac_res=$ac_cv_search_clock_gettime
18419 if test "$ac_res" != no; then :
18420   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18421
18422 fi
18423
18424                         ;;
18425                         esac
18426                     fi
18427
18428 fi
18429 done
18430
18431         fi
18432 fi
18433 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
18434
18435 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
18436 if test "x$ac_cv_func_ctime_r" = xyes; then :
18437   $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
18438
18439 else
18440   case " $LIBOBJS " in
18441   *" ctime_r.$ac_objext "* ) ;;
18442   *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
18443  ;;
18444 esac
18445
18446 fi
18447
18448
18449
18450 # Check whether --enable-allsymbols was given.
18451 if test "${enable_allsymbols+set}" = set; then :
18452   enableval=$enable_allsymbols;
18453 fi
18454
18455 case "$enable_allsymbols" in
18456         yes)
18457         COMMON_OBJ_ALL_SYMBOLS=""
18458         UBSYMS=""
18459         EXTRALINK="-L. -L.libs -lunbound"
18460
18461 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
18462
18463         ;;
18464         no|*)
18465         COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
18466         UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
18467         EXTRALINK=""
18468         ;;
18469 esac
18470
18471
18472
18473 if test x_$enable_lock_checks = x_yes; then
18474         UBSYMS="-export-symbols clubsyms.def"
18475         cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
18476         echo lock_protect >> clubsyms.def
18477         echo lock_unprotect >> clubsyms.def
18478         echo lock_get_mem >> clubsyms.def
18479         echo checklock_start >> clubsyms.def
18480         echo checklock_stop >> clubsyms.def
18481         echo checklock_lock >> clubsyms.def
18482         echo checklock_unlock >> clubsyms.def
18483         echo checklock_init >> clubsyms.def
18484         echo checklock_thrcreate >> clubsyms.def
18485         echo checklock_thrjoin >> clubsyms.def
18486 fi
18487
18488 # check for dnstap if requested
18489
18490   # Check whether --enable-dnstap was given.
18491 if test "${enable_dnstap+set}" = set; then :
18492   enableval=$enable_dnstap; opt_dnstap=$enableval
18493 else
18494   opt_dnstap=no
18495 fi
18496
18497
18498
18499 # Check whether --with-dnstap-socket-path was given.
18500 if test "${with_dnstap_socket_path+set}" = set; then :
18501   withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
18502 else
18503   opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
18504 fi
18505
18506
18507   if test "x$opt_dnstap" != "xno"; then
18508     # Extract the first word of "protoc-c", so it can be a program name with args.
18509 set dummy protoc-c; ac_word=$2
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18511 $as_echo_n "checking for $ac_word... " >&6; }
18512 if ${ac_cv_path_PROTOC_C+:} false; then :
18513   $as_echo_n "(cached) " >&6
18514 else
18515   case $PROTOC_C in
18516   [\\/]* | ?:[\\/]*)
18517   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
18518   ;;
18519   *)
18520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18521 for as_dir in $PATH
18522 do
18523   IFS=$as_save_IFS
18524   test -z "$as_dir" && as_dir=.
18525     for ac_exec_ext in '' $ac_executable_extensions; do
18526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18527     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
18528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18529     break 2
18530   fi
18531 done
18532   done
18533 IFS=$as_save_IFS
18534
18535   ;;
18536 esac
18537 fi
18538 PROTOC_C=$ac_cv_path_PROTOC_C
18539 if test -n "$PROTOC_C"; then
18540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
18541 $as_echo "$PROTOC_C" >&6; }
18542 else
18543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18544 $as_echo "no" >&6; }
18545 fi
18546
18547
18548     if test -z "$PROTOC_C"; then
18549       as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
18550     fi
18551
18552 # Check whether --with-protobuf-c was given.
18553 if test "${with_protobuf_c+set}" = set; then :
18554   withval=$with_protobuf_c;
18555           # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
18556           if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
18557             CFLAGS="$CFLAGS -I$withval/include/google"
18558           else
18559             CFLAGS="$CFLAGS -I$withval/include"
18560           fi
18561           LDFLAGS="$LDFLAGS -L$withval/lib"
18562
18563 else
18564
18565           # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
18566           if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
18567             CFLAGS="$CFLAGS -I/usr/include/google"
18568           else
18569             if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
18570               CFLAGS="$CFLAGS -I/usr/local/include/google"
18571               LDFLAGS="$LDFLAGS -L/usr/local/lib"
18572             fi
18573           fi
18574
18575 fi
18576
18577
18578 # Check whether --with-libfstrm was given.
18579 if test "${with_libfstrm+set}" = set; then :
18580   withval=$with_libfstrm;
18581         CFLAGS="$CFLAGS -I$withval/include"
18582         LDFLAGS="$LDFLAGS -L$withval/lib"
18583
18584 fi
18585
18586     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
18587 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
18588 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
18589   $as_echo_n "(cached) " >&6
18590 else
18591   ac_func_search_save_LIBS=$LIBS
18592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18593 /* end confdefs.h.  */
18594
18595 /* Override any GCC internal prototype to avoid an error.
18596    Use char because int might match the return type of a GCC
18597    builtin and then its argument prototype would still apply.  */
18598 #ifdef __cplusplus
18599 extern "C"
18600 #endif
18601 char fstrm_iothr_init ();
18602 int
18603 main ()
18604 {
18605 return fstrm_iothr_init ();
18606   ;
18607   return 0;
18608 }
18609 _ACEOF
18610 for ac_lib in '' fstrm; do
18611   if test -z "$ac_lib"; then
18612     ac_res="none required"
18613   else
18614     ac_res=-l$ac_lib
18615     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18616   fi
18617   if ac_fn_c_try_link "$LINENO"; then :
18618   ac_cv_search_fstrm_iothr_init=$ac_res
18619 fi
18620 rm -f core conftest.err conftest.$ac_objext \
18621     conftest$ac_exeext
18622   if ${ac_cv_search_fstrm_iothr_init+:} false; then :
18623   break
18624 fi
18625 done
18626 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
18627
18628 else
18629   ac_cv_search_fstrm_iothr_init=no
18630 fi
18631 rm conftest.$ac_ext
18632 LIBS=$ac_func_search_save_LIBS
18633 fi
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
18635 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
18636 ac_res=$ac_cv_search_fstrm_iothr_init
18637 if test "$ac_res" != no; then :
18638   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18639
18640 else
18641   as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
18642 fi
18643
18644     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
18645 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
18646 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
18647   $as_echo_n "(cached) " >&6
18648 else
18649   ac_func_search_save_LIBS=$LIBS
18650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18651 /* end confdefs.h.  */
18652
18653 /* Override any GCC internal prototype to avoid an error.
18654    Use char because int might match the return type of a GCC
18655    builtin and then its argument prototype would still apply.  */
18656 #ifdef __cplusplus
18657 extern "C"
18658 #endif
18659 char protobuf_c_message_pack ();
18660 int
18661 main ()
18662 {
18663 return protobuf_c_message_pack ();
18664   ;
18665   return 0;
18666 }
18667 _ACEOF
18668 for ac_lib in '' protobuf-c; do
18669   if test -z "$ac_lib"; then
18670     ac_res="none required"
18671   else
18672     ac_res=-l$ac_lib
18673     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18674   fi
18675   if ac_fn_c_try_link "$LINENO"; then :
18676   ac_cv_search_protobuf_c_message_pack=$ac_res
18677 fi
18678 rm -f core conftest.err conftest.$ac_objext \
18679     conftest$ac_exeext
18680   if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
18681   break
18682 fi
18683 done
18684 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
18685
18686 else
18687   ac_cv_search_protobuf_c_message_pack=no
18688 fi
18689 rm conftest.$ac_ext
18690 LIBS=$ac_func_search_save_LIBS
18691 fi
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
18693 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
18694 ac_res=$ac_cv_search_protobuf_c_message_pack
18695 if test "$ac_res" != no; then :
18696   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18697
18698 else
18699   as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
18700 fi
18701
18702
18703
18704 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
18705
18706         ENABLE_DNSTAP=1
18707
18708
18709
18710         hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
18711
18712
18713 cat >>confdefs.h <<_ACEOF
18714 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
18715 _ACEOF
18716
18717
18718         DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c"
18719
18720         DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo"
18721
18722
18723   else
18724
18725         ENABLE_DNSTAP=0
18726
18727
18728
18729   fi
18730
18731
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
18733 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
18734 # on openBSD, the implicit rule make $< work.
18735 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
18736 # gmake works.
18737 cat >conftest.make <<EOF
18738 all:    conftest.lo
18739
18740 conftest.lo foo.lo bla.lo:
18741         if test -f "\$<"; then touch \$@; fi
18742
18743 .SUFFIXES: .lo
18744 .c.lo:
18745         if test -f "\$<"; then touch \$@; fi
18746
18747 conftest.lo:        conftest.dir/conftest.c
18748 EOF
18749 mkdir conftest.dir
18750 touch conftest.dir/conftest.c
18751 rm -f conftest.lo conftest.c
18752 ${MAKE:-make} -f conftest.make >/dev/null
18753 rm -f conftest.make conftest.c conftest.dir/conftest.c
18754 rm -rf conftest.dir
18755 if test ! -f conftest.lo; then
18756         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18757 $as_echo "no" >&6; }
18758         SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
18759         SOURCEFILE='`cat .source`'
18760 else
18761         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18762 $as_echo "yes" >&6; }
18763         SOURCEDETERMINE=':'
18764         SOURCEFILE='$<'
18765 fi
18766 rm -f conftest.lo
18767
18768
18769
18770 # see if we want to build the library or everything
18771 ALLTARGET="alltargets"
18772 INSTALLTARGET="install-all"
18773
18774 # Check whether --with-libunbound-only was given.
18775 if test "${with_libunbound_only+set}" = set; then :
18776   withval=$with_libunbound_only;
18777         if test "$withval" = "yes"; then
18778                 ALLTARGET="lib"
18779                 INSTALLTARGET="install-lib"
18780         fi
18781
18782 fi
18783
18784
18785
18786
18787
18788   { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
18789 $as_echo "$as_me: Stripping extension flags..." >&6;}
18790
18791   if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
18792     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
18793
18794 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
18795
18796   fi
18797
18798
18799   if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
18800     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
18801
18802 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
18803
18804   fi
18805
18806
18807   if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
18808     CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
18809
18810 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
18811
18812   fi
18813
18814
18815   if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
18816     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
18817
18818 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
18819
18820   fi
18821
18822
18823   if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
18824     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
18825
18826 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
18827
18828   fi
18829
18830
18831   if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
18832     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
18833
18834 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
18835
18836   fi
18837
18838
18839   if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
18840     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
18841
18842 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
18843
18844   fi
18845
18846
18847   if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
18848     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
18849
18850 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
18851
18852   fi
18853
18854
18855 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
18856
18857
18858 cat >>confdefs.h <<_ACEOF
18859 #define MAXSYSLOGMSGLEN 10240
18860 _ACEOF
18861
18862
18863
18864
18865 version=1.5.3
18866
18867 date=`date +'%b %e, %Y'`
18868
18869
18870 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"
18871
18872 ac_config_headers="$ac_config_headers config.h"
18873
18874 cat >confcache <<\_ACEOF
18875 # This file is a shell script that caches the results of configure
18876 # tests run on this system so they can be shared between configure
18877 # scripts and configure runs, see configure's option --config-cache.
18878 # It is not useful on other systems.  If it contains results you don't
18879 # want to keep, you may remove or edit it.
18880 #
18881 # config.status only pays attention to the cache file if you give it
18882 # the --recheck option to rerun configure.
18883 #
18884 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18885 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18886 # following values.
18887
18888 _ACEOF
18889
18890 # The following way of writing the cache mishandles newlines in values,
18891 # but we know of no workaround that is simple, portable, and efficient.
18892 # So, we kill variables containing newlines.
18893 # Ultrix sh set writes to stderr and can't be redirected directly,
18894 # and sets the high bit in the cache file unless we assign to the vars.
18895 (
18896   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18897     eval ac_val=\$$ac_var
18898     case $ac_val in #(
18899     *${as_nl}*)
18900       case $ac_var in #(
18901       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18902 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18903       esac
18904       case $ac_var in #(
18905       _ | IFS | as_nl) ;; #(
18906       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18907       *) { eval $ac_var=; unset $ac_var;} ;;
18908       esac ;;
18909     esac
18910   done
18911
18912   (set) 2>&1 |
18913     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18914     *${as_nl}ac_space=\ *)
18915       # `set' does not quote correctly, so add quotes: double-quote
18916       # substitution turns \\\\ into \\, and sed turns \\ into \.
18917       sed -n \
18918         "s/'/'\\\\''/g;
18919           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18920       ;; #(
18921     *)
18922       # `set' quotes correctly as required by POSIX, so do not add quotes.
18923       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18924       ;;
18925     esac |
18926     sort
18927 ) |
18928   sed '
18929      /^ac_cv_env_/b end
18930      t clear
18931      :clear
18932      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18933      t end
18934      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18935      :end' >>confcache
18936 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18937   if test -w "$cache_file"; then
18938     if test "x$cache_file" != "x/dev/null"; then
18939       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18940 $as_echo "$as_me: updating cache $cache_file" >&6;}
18941       if test ! -f "$cache_file" || test -h "$cache_file"; then
18942         cat confcache >"$cache_file"
18943       else
18944         case $cache_file in #(
18945         */* | ?:*)
18946           mv -f confcache "$cache_file"$$ &&
18947           mv -f "$cache_file"$$ "$cache_file" ;; #(
18948         *)
18949           mv -f confcache "$cache_file" ;;
18950         esac
18951       fi
18952     fi
18953   else
18954     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18955 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18956   fi
18957 fi
18958 rm -f confcache
18959
18960 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18961 # Let make expand exec_prefix.
18962 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18963
18964 DEFS=-DHAVE_CONFIG_H
18965
18966 ac_libobjs=
18967 ac_ltlibobjs=
18968 U=
18969 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18970   # 1. Remove the extension, and $U if already installed.
18971   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18972   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18973   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18974   #    will be set to the directory where LIBOBJS objects are built.
18975   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18976   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18977 done
18978 LIBOBJS=$ac_libobjs
18979
18980 LTLIBOBJS=$ac_ltlibobjs
18981
18982
18983
18984 : "${CONFIG_STATUS=./config.status}"
18985 ac_write_fail=0
18986 ac_clean_files_save=$ac_clean_files
18987 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18989 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18990 as_write_fail=0
18991 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18992 #! $SHELL
18993 # Generated by $as_me.
18994 # Run this file to recreate the current configuration.
18995 # Compiler output produced by configure, useful for debugging
18996 # configure, is in config.log if it exists.
18997
18998 debug=false
18999 ac_cs_recheck=false
19000 ac_cs_silent=false
19001
19002 SHELL=\${CONFIG_SHELL-$SHELL}
19003 export SHELL
19004 _ASEOF
19005 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19006 ## -------------------- ##
19007 ## M4sh Initialization. ##
19008 ## -------------------- ##
19009
19010 # Be more Bourne compatible
19011 DUALCASE=1; export DUALCASE # for MKS sh
19012 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19013   emulate sh
19014   NULLCMD=:
19015   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19016   # is contrary to our usage.  Disable this feature.
19017   alias -g '${1+"$@"}'='"$@"'
19018   setopt NO_GLOB_SUBST
19019 else
19020   case `(set -o) 2>/dev/null` in #(
19021   *posix*) :
19022     set -o posix ;; #(
19023   *) :
19024      ;;
19025 esac
19026 fi
19027
19028
19029 as_nl='
19030 '
19031 export as_nl
19032 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19033 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19034 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19035 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19036 # Prefer a ksh shell builtin over an external printf program on Solaris,
19037 # but without wasting forks for bash or zsh.
19038 if test -z "$BASH_VERSION$ZSH_VERSION" \
19039     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19040   as_echo='print -r --'
19041   as_echo_n='print -rn --'
19042 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19043   as_echo='printf %s\n'
19044   as_echo_n='printf %s'
19045 else
19046   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19047     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19048     as_echo_n='/usr/ucb/echo -n'
19049   else
19050     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19051     as_echo_n_body='eval
19052       arg=$1;
19053       case $arg in #(
19054       *"$as_nl"*)
19055         expr "X$arg" : "X\\(.*\\)$as_nl";
19056         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19057       esac;
19058       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19059     '
19060     export as_echo_n_body
19061     as_echo_n='sh -c $as_echo_n_body as_echo'
19062   fi
19063   export as_echo_body
19064   as_echo='sh -c $as_echo_body as_echo'
19065 fi
19066
19067 # The user is always right.
19068 if test "${PATH_SEPARATOR+set}" != set; then
19069   PATH_SEPARATOR=:
19070   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19071     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19072       PATH_SEPARATOR=';'
19073   }
19074 fi
19075
19076
19077 # IFS
19078 # We need space, tab and new line, in precisely that order.  Quoting is
19079 # there to prevent editors from complaining about space-tab.
19080 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19081 # splitting by setting IFS to empty value.)
19082 IFS=" ""        $as_nl"
19083
19084 # Find who we are.  Look in the path if we contain no directory separator.
19085 as_myself=
19086 case $0 in #((
19087   *[\\/]* ) as_myself=$0 ;;
19088   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19089 for as_dir in $PATH
19090 do
19091   IFS=$as_save_IFS
19092   test -z "$as_dir" && as_dir=.
19093     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19094   done
19095 IFS=$as_save_IFS
19096
19097      ;;
19098 esac
19099 # We did not find ourselves, most probably we were run as `sh COMMAND'
19100 # in which case we are not to be found in the path.
19101 if test "x$as_myself" = x; then
19102   as_myself=$0
19103 fi
19104 if test ! -f "$as_myself"; then
19105   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19106   exit 1
19107 fi
19108
19109 # Unset variables that we do not need and which cause bugs (e.g. in
19110 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19111 # suppresses any "Segmentation fault" message there.  '((' could
19112 # trigger a bug in pdksh 5.2.14.
19113 for as_var in BASH_ENV ENV MAIL MAILPATH
19114 do eval test x\${$as_var+set} = xset \
19115   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19116 done
19117 PS1='$ '
19118 PS2='> '
19119 PS4='+ '
19120
19121 # NLS nuisances.
19122 LC_ALL=C
19123 export LC_ALL
19124 LANGUAGE=C
19125 export LANGUAGE
19126
19127 # CDPATH.
19128 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19129
19130
19131 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19132 # ----------------------------------------
19133 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19134 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19135 # script with STATUS, using 1 if that was 0.
19136 as_fn_error ()
19137 {
19138   as_status=$1; test $as_status -eq 0 && as_status=1
19139   if test "$4"; then
19140     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19141     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19142   fi
19143   $as_echo "$as_me: error: $2" >&2
19144   as_fn_exit $as_status
19145 } # as_fn_error
19146
19147
19148 # as_fn_set_status STATUS
19149 # -----------------------
19150 # Set $? to STATUS, without forking.
19151 as_fn_set_status ()
19152 {
19153   return $1
19154 } # as_fn_set_status
19155
19156 # as_fn_exit STATUS
19157 # -----------------
19158 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19159 as_fn_exit ()
19160 {
19161   set +e
19162   as_fn_set_status $1
19163   exit $1
19164 } # as_fn_exit
19165
19166 # as_fn_unset VAR
19167 # ---------------
19168 # Portably unset VAR.
19169 as_fn_unset ()
19170 {
19171   { eval $1=; unset $1;}
19172 }
19173 as_unset=as_fn_unset
19174 # as_fn_append VAR VALUE
19175 # ----------------------
19176 # Append the text in VALUE to the end of the definition contained in VAR. Take
19177 # advantage of any shell optimizations that allow amortized linear growth over
19178 # repeated appends, instead of the typical quadratic growth present in naive
19179 # implementations.
19180 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19181   eval 'as_fn_append ()
19182   {
19183     eval $1+=\$2
19184   }'
19185 else
19186   as_fn_append ()
19187   {
19188     eval $1=\$$1\$2
19189   }
19190 fi # as_fn_append
19191
19192 # as_fn_arith ARG...
19193 # ------------------
19194 # Perform arithmetic evaluation on the ARGs, and store the result in the
19195 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19196 # must be portable across $(()) and expr.
19197 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19198   eval 'as_fn_arith ()
19199   {
19200     as_val=$(( $* ))
19201   }'
19202 else
19203   as_fn_arith ()
19204   {
19205     as_val=`expr "$@" || test $? -eq 1`
19206   }
19207 fi # as_fn_arith
19208
19209
19210 if expr a : '\(a\)' >/dev/null 2>&1 &&
19211    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19212   as_expr=expr
19213 else
19214   as_expr=false
19215 fi
19216
19217 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19218   as_basename=basename
19219 else
19220   as_basename=false
19221 fi
19222
19223 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19224   as_dirname=dirname
19225 else
19226   as_dirname=false
19227 fi
19228
19229 as_me=`$as_basename -- "$0" ||
19230 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19231          X"$0" : 'X\(//\)$' \| \
19232          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19233 $as_echo X/"$0" |
19234     sed '/^.*\/\([^/][^/]*\)\/*$/{
19235             s//\1/
19236             q
19237           }
19238           /^X\/\(\/\/\)$/{
19239             s//\1/
19240             q
19241           }
19242           /^X\/\(\/\).*/{
19243             s//\1/
19244             q
19245           }
19246           s/.*/./; q'`
19247
19248 # Avoid depending upon Character Ranges.
19249 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19250 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19251 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19252 as_cr_digits='0123456789'
19253 as_cr_alnum=$as_cr_Letters$as_cr_digits
19254
19255 ECHO_C= ECHO_N= ECHO_T=
19256 case `echo -n x` in #(((((
19257 -n*)
19258   case `echo 'xy\c'` in
19259   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19260   xy)  ECHO_C='\c';;
19261   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19262        ECHO_T=' ';;
19263   esac;;
19264 *)
19265   ECHO_N='-n';;
19266 esac
19267
19268 rm -f conf$$ conf$$.exe conf$$.file
19269 if test -d conf$$.dir; then
19270   rm -f conf$$.dir/conf$$.file
19271 else
19272   rm -f conf$$.dir
19273   mkdir conf$$.dir 2>/dev/null
19274 fi
19275 if (echo >conf$$.file) 2>/dev/null; then
19276   if ln -s conf$$.file conf$$ 2>/dev/null; then
19277     as_ln_s='ln -s'
19278     # ... but there are two gotchas:
19279     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19280     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19281     # In both cases, we have to default to `cp -pR'.
19282     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19283       as_ln_s='cp -pR'
19284   elif ln conf$$.file conf$$ 2>/dev/null; then
19285     as_ln_s=ln
19286   else
19287     as_ln_s='cp -pR'
19288   fi
19289 else
19290   as_ln_s='cp -pR'
19291 fi
19292 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19293 rmdir conf$$.dir 2>/dev/null
19294
19295
19296 # as_fn_mkdir_p
19297 # -------------
19298 # Create "$as_dir" as a directory, including parents if necessary.
19299 as_fn_mkdir_p ()
19300 {
19301
19302   case $as_dir in #(
19303   -*) as_dir=./$as_dir;;
19304   esac
19305   test -d "$as_dir" || eval $as_mkdir_p || {
19306     as_dirs=
19307     while :; do
19308       case $as_dir in #(
19309       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19310       *) as_qdir=$as_dir;;
19311       esac
19312       as_dirs="'$as_qdir' $as_dirs"
19313       as_dir=`$as_dirname -- "$as_dir" ||
19314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19315          X"$as_dir" : 'X\(//\)[^/]' \| \
19316          X"$as_dir" : 'X\(//\)$' \| \
19317          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19318 $as_echo X"$as_dir" |
19319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19320             s//\1/
19321             q
19322           }
19323           /^X\(\/\/\)[^/].*/{
19324             s//\1/
19325             q
19326           }
19327           /^X\(\/\/\)$/{
19328             s//\1/
19329             q
19330           }
19331           /^X\(\/\).*/{
19332             s//\1/
19333             q
19334           }
19335           s/.*/./; q'`
19336       test -d "$as_dir" && break
19337     done
19338     test -z "$as_dirs" || eval "mkdir $as_dirs"
19339   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19340
19341
19342 } # as_fn_mkdir_p
19343 if mkdir -p . 2>/dev/null; then
19344   as_mkdir_p='mkdir -p "$as_dir"'
19345 else
19346   test -d ./-p && rmdir ./-p
19347   as_mkdir_p=false
19348 fi
19349
19350
19351 # as_fn_executable_p FILE
19352 # -----------------------
19353 # Test if FILE is an executable regular file.
19354 as_fn_executable_p ()
19355 {
19356   test -f "$1" && test -x "$1"
19357 } # as_fn_executable_p
19358 as_test_x='test -x'
19359 as_executable_p=as_fn_executable_p
19360
19361 # Sed expression to map a string onto a valid CPP name.
19362 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19363
19364 # Sed expression to map a string onto a valid variable name.
19365 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19366
19367
19368 exec 6>&1
19369 ## ----------------------------------- ##
19370 ## Main body of $CONFIG_STATUS script. ##
19371 ## ----------------------------------- ##
19372 _ASEOF
19373 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19374
19375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19376 # Save the log message, to keep $0 and so on meaningful, and to
19377 # report actual input values of CONFIG_FILES etc. instead of their
19378 # values after options handling.
19379 ac_log="
19380 This file was extended by unbound $as_me 1.5.3, which was
19381 generated by GNU Autoconf 2.69.  Invocation command line was
19382
19383   CONFIG_FILES    = $CONFIG_FILES
19384   CONFIG_HEADERS  = $CONFIG_HEADERS
19385   CONFIG_LINKS    = $CONFIG_LINKS
19386   CONFIG_COMMANDS = $CONFIG_COMMANDS
19387   $ $0 $@
19388
19389 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19390 "
19391
19392 _ACEOF
19393
19394 case $ac_config_files in *"
19395 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19396 esac
19397
19398 case $ac_config_headers in *"
19399 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19400 esac
19401
19402
19403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19404 # Files that config.status was made for.
19405 config_files="$ac_config_files"
19406 config_headers="$ac_config_headers"
19407 config_commands="$ac_config_commands"
19408
19409 _ACEOF
19410
19411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19412 ac_cs_usage="\
19413 \`$as_me' instantiates files and other configuration actions
19414 from templates according to the current configuration.  Unless the files
19415 and actions are specified as TAGs, all are instantiated by default.
19416
19417 Usage: $0 [OPTION]... [TAG]...
19418
19419   -h, --help       print this help, then exit
19420   -V, --version    print version number and configuration settings, then exit
19421       --config     print configuration, then exit
19422   -q, --quiet, --silent
19423                    do not print progress messages
19424   -d, --debug      don't remove temporary files
19425       --recheck    update $as_me by reconfiguring in the same conditions
19426       --file=FILE[:TEMPLATE]
19427                    instantiate the configuration file FILE
19428       --header=FILE[:TEMPLATE]
19429                    instantiate the configuration header FILE
19430
19431 Configuration files:
19432 $config_files
19433
19434 Configuration headers:
19435 $config_headers
19436
19437 Configuration commands:
19438 $config_commands
19439
19440 Report bugs to <unbound-bugs@nlnetlabs.nl>."
19441
19442 _ACEOF
19443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19444 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19445 ac_cs_version="\\
19446 unbound config.status 1.5.3
19447 configured by $0, generated by GNU Autoconf 2.69,
19448   with options \\"\$ac_cs_config\\"
19449
19450 Copyright (C) 2012 Free Software Foundation, Inc.
19451 This config.status script is free software; the Free Software Foundation
19452 gives unlimited permission to copy, distribute and modify it."
19453
19454 ac_pwd='$ac_pwd'
19455 srcdir='$srcdir'
19456 AWK='$AWK'
19457 test -n "\$AWK" || AWK=awk
19458 _ACEOF
19459
19460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19461 # The default lists apply if the user does not specify any file.
19462 ac_need_defaults=:
19463 while test $# != 0
19464 do
19465   case $1 in
19466   --*=?*)
19467     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19468     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19469     ac_shift=:
19470     ;;
19471   --*=)
19472     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19473     ac_optarg=
19474     ac_shift=:
19475     ;;
19476   *)
19477     ac_option=$1
19478     ac_optarg=$2
19479     ac_shift=shift
19480     ;;
19481   esac
19482
19483   case $ac_option in
19484   # Handling of the options.
19485   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19486     ac_cs_recheck=: ;;
19487   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19488     $as_echo "$ac_cs_version"; exit ;;
19489   --config | --confi | --conf | --con | --co | --c )
19490     $as_echo "$ac_cs_config"; exit ;;
19491   --debug | --debu | --deb | --de | --d | -d )
19492     debug=: ;;
19493   --file | --fil | --fi | --f )
19494     $ac_shift
19495     case $ac_optarg in
19496     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19497     '') as_fn_error $? "missing file argument" ;;
19498     esac
19499     as_fn_append CONFIG_FILES " '$ac_optarg'"
19500     ac_need_defaults=false;;
19501   --header | --heade | --head | --hea )
19502     $ac_shift
19503     case $ac_optarg in
19504     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19505     esac
19506     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19507     ac_need_defaults=false;;
19508   --he | --h)
19509     # Conflict between --help and --header
19510     as_fn_error $? "ambiguous option: \`$1'
19511 Try \`$0 --help' for more information.";;
19512   --help | --hel | -h )
19513     $as_echo "$ac_cs_usage"; exit ;;
19514   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19515   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19516     ac_cs_silent=: ;;
19517
19518   # This is an error.
19519   -*) as_fn_error $? "unrecognized option: \`$1'
19520 Try \`$0 --help' for more information." ;;
19521
19522   *) as_fn_append ac_config_targets " $1"
19523      ac_need_defaults=false ;;
19524
19525   esac
19526   shift
19527 done
19528
19529 ac_configure_extra_args=
19530
19531 if $ac_cs_silent; then
19532   exec 6>/dev/null
19533   ac_configure_extra_args="$ac_configure_extra_args --silent"
19534 fi
19535
19536 _ACEOF
19537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19538 if \$ac_cs_recheck; then
19539   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19540   shift
19541   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19542   CONFIG_SHELL='$SHELL'
19543   export CONFIG_SHELL
19544   exec "\$@"
19545 fi
19546
19547 _ACEOF
19548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19549 exec 5>>config.log
19550 {
19551   echo
19552   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19553 ## Running $as_me. ##
19554 _ASBOX
19555   $as_echo "$ac_log"
19556 } >&5
19557
19558 _ACEOF
19559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19560 #
19561 # INIT-COMMANDS
19562 #
19563
19564
19565 # The HP-UX ksh and POSIX shell print the target directory to stdout
19566 # if CDPATH is set.
19567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19568
19569 sed_quote_subst='$sed_quote_subst'
19570 double_quote_subst='$double_quote_subst'
19571 delay_variable_subst='$delay_variable_subst'
19572 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19573 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19574 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19575 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19576 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19577 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19578 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19579 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19580 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19581 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19582 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19583 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19584 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19585 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19586 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19587 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19588 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19589 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19590 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19591 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19592 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19593 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19594 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19595 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19596 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19597 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19598 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19599 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19600 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19601 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19602 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19603 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19604 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19605 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19606 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19607 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19608 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19609 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19610 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19611 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19612 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19613 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19614 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19615 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19616 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19617 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19618 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19619 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19620 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19621 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19622 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19623 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19624 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19625 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19626 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19627 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19628 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"`'
19629 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19630 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19631 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19632 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19633 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19634 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19635 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19636 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19637 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19638 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19639 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19640 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19641 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19642 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19643 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19644 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19645 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19646 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19647 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19648 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19649 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19650 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19651 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19652 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19653 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19654 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19655 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19656 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19657 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19658 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19659 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19660 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19661 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19662 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19663 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19664 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19665 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19666 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19667 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19668 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19669 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19670 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19671 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19672 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19673 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19674 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19675 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19676 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19677 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19678 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19679 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19680 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19681 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19682 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19683 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19684 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19685 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19686 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19687 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19688 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19689 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19690 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19691 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19692 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19693 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19694 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19695 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19696 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19697 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19698 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19699 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19700 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19701 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19702
19703 LTCC='$LTCC'
19704 LTCFLAGS='$LTCFLAGS'
19705 compiler='$compiler_DEFAULT'
19706
19707 # A function that is used when there is no print builtin or printf.
19708 func_fallback_echo ()
19709 {
19710   eval 'cat <<_LTECHO_EOF
19711 \$1
19712 _LTECHO_EOF'
19713 }
19714
19715 # Quote evaled strings.
19716 for var in SHELL \
19717 ECHO \
19718 PATH_SEPARATOR \
19719 SED \
19720 GREP \
19721 EGREP \
19722 FGREP \
19723 LD \
19724 NM \
19725 LN_S \
19726 lt_SP2NL \
19727 lt_NL2SP \
19728 reload_flag \
19729 OBJDUMP \
19730 deplibs_check_method \
19731 file_magic_cmd \
19732 file_magic_glob \
19733 want_nocaseglob \
19734 DLLTOOL \
19735 sharedlib_from_linklib_cmd \
19736 AR \
19737 AR_FLAGS \
19738 archiver_list_spec \
19739 STRIP \
19740 RANLIB \
19741 CC \
19742 CFLAGS \
19743 compiler \
19744 lt_cv_sys_global_symbol_pipe \
19745 lt_cv_sys_global_symbol_to_cdecl \
19746 lt_cv_sys_global_symbol_to_c_name_address \
19747 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19748 nm_file_list_spec \
19749 lt_prog_compiler_no_builtin_flag \
19750 lt_prog_compiler_pic \
19751 lt_prog_compiler_wl \
19752 lt_prog_compiler_static \
19753 lt_cv_prog_compiler_c_o \
19754 need_locks \
19755 MANIFEST_TOOL \
19756 DSYMUTIL \
19757 NMEDIT \
19758 LIPO \
19759 OTOOL \
19760 OTOOL64 \
19761 shrext_cmds \
19762 export_dynamic_flag_spec \
19763 whole_archive_flag_spec \
19764 compiler_needs_object \
19765 with_gnu_ld \
19766 allow_undefined_flag \
19767 no_undefined_flag \
19768 hardcode_libdir_flag_spec \
19769 hardcode_libdir_separator \
19770 exclude_expsyms \
19771 include_expsyms \
19772 file_list_spec \
19773 variables_saved_for_relink \
19774 libname_spec \
19775 library_names_spec \
19776 soname_spec \
19777 install_override_mode \
19778 finish_eval \
19779 old_striplib \
19780 striplib; do
19781     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19782     *[\\\\\\\`\\"\\\$]*)
19783       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19784       ;;
19785     *)
19786       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19787       ;;
19788     esac
19789 done
19790
19791 # Double-quote double-evaled strings.
19792 for var in reload_cmds \
19793 old_postinstall_cmds \
19794 old_postuninstall_cmds \
19795 old_archive_cmds \
19796 extract_expsyms_cmds \
19797 old_archive_from_new_cmds \
19798 old_archive_from_expsyms_cmds \
19799 archive_cmds \
19800 archive_expsym_cmds \
19801 module_cmds \
19802 module_expsym_cmds \
19803 export_symbols_cmds \
19804 prelink_cmds \
19805 postlink_cmds \
19806 postinstall_cmds \
19807 postuninstall_cmds \
19808 finish_cmds \
19809 sys_lib_search_path_spec \
19810 sys_lib_dlsearch_path_spec; do
19811     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19812     *[\\\\\\\`\\"\\\$]*)
19813       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19814       ;;
19815     *)
19816       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19817       ;;
19818     esac
19819 done
19820
19821 ac_aux_dir='$ac_aux_dir'
19822 xsi_shell='$xsi_shell'
19823 lt_shell_append='$lt_shell_append'
19824
19825 # See if we are running on zsh, and set the options which allow our
19826 # commands through without removal of \ escapes INIT.
19827 if test -n "\${ZSH_VERSION+set}" ; then
19828    setopt NO_GLOB_SUBST
19829 fi
19830
19831
19832     PACKAGE='$PACKAGE'
19833     VERSION='$VERSION'
19834     TIMESTAMP='$TIMESTAMP'
19835     RM='$RM'
19836     ofile='$ofile'
19837
19838
19839
19840
19841 _ACEOF
19842
19843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19844
19845 # Handling of arguments.
19846 for ac_config_target in $ac_config_targets
19847 do
19848   case $ac_config_target in
19849     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19850     "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
19851     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19852     "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
19853     "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
19854     "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
19855     "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
19856     "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
19857     "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
19858     "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
19859     "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
19860     "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
19861     "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
19862     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19863
19864   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19865   esac
19866 done
19867
19868
19869 # If the user did not use the arguments to specify the items to instantiate,
19870 # then the envvar interface is used.  Set only those that are not.
19871 # We use the long form for the default assignment because of an extremely
19872 # bizarre bug on SunOS 4.1.3.
19873 if $ac_need_defaults; then
19874   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19875   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19876   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19877 fi
19878
19879 # Have a temporary directory for convenience.  Make it in the build tree
19880 # simply because there is no reason against having it here, and in addition,
19881 # creating and moving files from /tmp can sometimes cause problems.
19882 # Hook for its removal unless debugging.
19883 # Note that there is a small window in which the directory will not be cleaned:
19884 # after its creation but before its name has been assigned to `$tmp'.
19885 $debug ||
19886 {
19887   tmp= ac_tmp=
19888   trap 'exit_status=$?
19889   : "${ac_tmp:=$tmp}"
19890   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19891 ' 0
19892   trap 'as_fn_exit 1' 1 2 13 15
19893 }
19894 # Create a (secure) tmp directory for tmp files.
19895
19896 {
19897   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19898   test -d "$tmp"
19899 }  ||
19900 {
19901   tmp=./conf$$-$RANDOM
19902   (umask 077 && mkdir "$tmp")
19903 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19904 ac_tmp=$tmp
19905
19906 # Set up the scripts for CONFIG_FILES section.
19907 # No need to generate them if there are no CONFIG_FILES.
19908 # This happens for instance with `./config.status config.h'.
19909 if test -n "$CONFIG_FILES"; then
19910
19911
19912 ac_cr=`echo X | tr X '\015'`
19913 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19914 # But we know of no other shell where ac_cr would be empty at this
19915 # point, so we can use a bashism as a fallback.
19916 if test "x$ac_cr" = x; then
19917   eval ac_cr=\$\'\\r\'
19918 fi
19919 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19920 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19921   ac_cs_awk_cr='\\r'
19922 else
19923   ac_cs_awk_cr=$ac_cr
19924 fi
19925
19926 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19927 _ACEOF
19928
19929
19930 {
19931   echo "cat >conf$$subs.awk <<_ACEOF" &&
19932   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19933   echo "_ACEOF"
19934 } >conf$$subs.sh ||
19935   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19936 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19937 ac_delim='%!_!# '
19938 for ac_last_try in false false false false false :; do
19939   . ./conf$$subs.sh ||
19940     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19941
19942   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19943   if test $ac_delim_n = $ac_delim_num; then
19944     break
19945   elif $ac_last_try; then
19946     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19947   else
19948     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19949   fi
19950 done
19951 rm -f conf$$subs.sh
19952
19953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19954 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19955 _ACEOF
19956 sed -n '
19957 h
19958 s/^/S["/; s/!.*/"]=/
19959 p
19960 g
19961 s/^[^!]*!//
19962 :repl
19963 t repl
19964 s/'"$ac_delim"'$//
19965 t delim
19966 :nl
19967 h
19968 s/\(.\{148\}\)..*/\1/
19969 t more1
19970 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19971 p
19972 n
19973 b repl
19974 :more1
19975 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19976 p
19977 g
19978 s/.\{148\}//
19979 t nl
19980 :delim
19981 h
19982 s/\(.\{148\}\)..*/\1/
19983 t more2
19984 s/["\\]/\\&/g; s/^/"/; s/$/"/
19985 p
19986 b
19987 :more2
19988 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19989 p
19990 g
19991 s/.\{148\}//
19992 t delim
19993 ' <conf$$subs.awk | sed '
19994 /^[^""]/{
19995   N
19996   s/\n//
19997 }
19998 ' >>$CONFIG_STATUS || ac_write_fail=1
19999 rm -f conf$$subs.awk
20000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20001 _ACAWK
20002 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20003   for (key in S) S_is_set[key] = 1
20004   FS = "\a"
20005
20006 }
20007 {
20008   line = $ 0
20009   nfields = split(line, field, "@")
20010   substed = 0
20011   len = length(field[1])
20012   for (i = 2; i < nfields; i++) {
20013     key = field[i]
20014     keylen = length(key)
20015     if (S_is_set[key]) {
20016       value = S[key]
20017       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20018       len += length(value) + length(field[++i])
20019       substed = 1
20020     } else
20021       len += 1 + keylen
20022   }
20023
20024   print line
20025 }
20026
20027 _ACAWK
20028 _ACEOF
20029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20030 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20031   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20032 else
20033   cat
20034 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20035   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20036 _ACEOF
20037
20038 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20039 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20040 # trailing colons and then remove the whole line if VPATH becomes empty
20041 # (actually we leave an empty line to preserve line numbers).
20042 if test "x$srcdir" = x.; then
20043   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20044 h
20045 s///
20046 s/^/:/
20047 s/[      ]*$/:/
20048 s/:\$(srcdir):/:/g
20049 s/:\${srcdir}:/:/g
20050 s/:@srcdir@:/:/g
20051 s/^:*//
20052 s/:*$//
20053 x
20054 s/\(=[   ]*\).*/\1/
20055 G
20056 s/\n//
20057 s/^[^=]*=[       ]*$//
20058 }'
20059 fi
20060
20061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20062 fi # test -n "$CONFIG_FILES"
20063
20064 # Set up the scripts for CONFIG_HEADERS section.
20065 # No need to generate them if there are no CONFIG_HEADERS.
20066 # This happens for instance with `./config.status Makefile'.
20067 if test -n "$CONFIG_HEADERS"; then
20068 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20069 BEGIN {
20070 _ACEOF
20071
20072 # Transform confdefs.h into an awk script `defines.awk', embedded as
20073 # here-document in config.status, that substitutes the proper values into
20074 # config.h.in to produce config.h.
20075
20076 # Create a delimiter string that does not exist in confdefs.h, to ease
20077 # handling of long lines.
20078 ac_delim='%!_!# '
20079 for ac_last_try in false false :; do
20080   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20081   if test -z "$ac_tt"; then
20082     break
20083   elif $ac_last_try; then
20084     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20085   else
20086     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20087   fi
20088 done
20089
20090 # For the awk script, D is an array of macro values keyed by name,
20091 # likewise P contains macro parameters if any.  Preserve backslash
20092 # newline sequences.
20093
20094 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20095 sed -n '
20096 s/.\{148\}/&'"$ac_delim"'/g
20097 t rset
20098 :rset
20099 s/^[     ]*#[    ]*define[       ][      ]*/ /
20100 t def
20101 d
20102 :def
20103 s/\\$//
20104 t bsnl
20105 s/["\\]/\\&/g
20106 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20107 D["\1"]=" \3"/p
20108 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20109 d
20110 :bsnl
20111 s/["\\]/\\&/g
20112 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20113 D["\1"]=" \3\\\\\\n"\\/p
20114 t cont
20115 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20116 t cont
20117 d
20118 :cont
20119 n
20120 s/.\{148\}/&'"$ac_delim"'/g
20121 t clear
20122 :clear
20123 s/\\$//
20124 t bsnlc
20125 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20126 d
20127 :bsnlc
20128 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20129 b cont
20130 ' <confdefs.h | sed '
20131 s/'"$ac_delim"'/"\\\
20132 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20133
20134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20135   for (key in D) D_is_set[key] = 1
20136   FS = "\a"
20137 }
20138 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20139   line = \$ 0
20140   split(line, arg, " ")
20141   if (arg[1] == "#") {
20142     defundef = arg[2]
20143     mac1 = arg[3]
20144   } else {
20145     defundef = substr(arg[1], 2)
20146     mac1 = arg[2]
20147   }
20148   split(mac1, mac2, "(") #)
20149   macro = mac2[1]
20150   prefix = substr(line, 1, index(line, defundef) - 1)
20151   if (D_is_set[macro]) {
20152     # Preserve the white space surrounding the "#".
20153     print prefix "define", macro P[macro] D[macro]
20154     next
20155   } else {
20156     # Replace #undef with comments.  This is necessary, for example,
20157     # in the case of _POSIX_SOURCE, which is predefined and required
20158     # on some systems where configure will not decide to define it.
20159     if (defundef == "undef") {
20160       print "/*", prefix defundef, macro, "*/"
20161       next
20162     }
20163   }
20164 }
20165 { print }
20166 _ACAWK
20167 _ACEOF
20168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20169   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20170 fi # test -n "$CONFIG_HEADERS"
20171
20172
20173 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20174 shift
20175 for ac_tag
20176 do
20177   case $ac_tag in
20178   :[FHLC]) ac_mode=$ac_tag; continue;;
20179   esac
20180   case $ac_mode$ac_tag in
20181   :[FHL]*:*);;
20182   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20183   :[FH]-) ac_tag=-:-;;
20184   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20185   esac
20186   ac_save_IFS=$IFS
20187   IFS=:
20188   set x $ac_tag
20189   IFS=$ac_save_IFS
20190   shift
20191   ac_file=$1
20192   shift
20193
20194   case $ac_mode in
20195   :L) ac_source=$1;;
20196   :[FH])
20197     ac_file_inputs=
20198     for ac_f
20199     do
20200       case $ac_f in
20201       -) ac_f="$ac_tmp/stdin";;
20202       *) # Look for the file first in the build tree, then in the source tree
20203          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20204          # because $ac_f cannot contain `:'.
20205          test -f "$ac_f" ||
20206            case $ac_f in
20207            [\\/$]*) false;;
20208            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20209            esac ||
20210            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20211       esac
20212       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20213       as_fn_append ac_file_inputs " '$ac_f'"
20214     done
20215
20216     # Let's still pretend it is `configure' which instantiates (i.e., don't
20217     # use $as_me), people would be surprised to read:
20218     #    /* config.h.  Generated by config.status.  */
20219     configure_input='Generated from '`
20220           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20221         `' by configure.'
20222     if test x"$ac_file" != x-; then
20223       configure_input="$ac_file.  $configure_input"
20224       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20225 $as_echo "$as_me: creating $ac_file" >&6;}
20226     fi
20227     # Neutralize special characters interpreted by sed in replacement strings.
20228     case $configure_input in #(
20229     *\&* | *\|* | *\\* )
20230        ac_sed_conf_input=`$as_echo "$configure_input" |
20231        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20232     *) ac_sed_conf_input=$configure_input;;
20233     esac
20234
20235     case $ac_tag in
20236     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20237       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20238     esac
20239     ;;
20240   esac
20241
20242   ac_dir=`$as_dirname -- "$ac_file" ||
20243 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20244          X"$ac_file" : 'X\(//\)[^/]' \| \
20245          X"$ac_file" : 'X\(//\)$' \| \
20246          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20247 $as_echo X"$ac_file" |
20248     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20249             s//\1/
20250             q
20251           }
20252           /^X\(\/\/\)[^/].*/{
20253             s//\1/
20254             q
20255           }
20256           /^X\(\/\/\)$/{
20257             s//\1/
20258             q
20259           }
20260           /^X\(\/\).*/{
20261             s//\1/
20262             q
20263           }
20264           s/.*/./; q'`
20265   as_dir="$ac_dir"; as_fn_mkdir_p
20266   ac_builddir=.
20267
20268 case "$ac_dir" in
20269 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20270 *)
20271   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20272   # A ".." for each directory in $ac_dir_suffix.
20273   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20274   case $ac_top_builddir_sub in
20275   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20276   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20277   esac ;;
20278 esac
20279 ac_abs_top_builddir=$ac_pwd
20280 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20281 # for backward compatibility:
20282 ac_top_builddir=$ac_top_build_prefix
20283
20284 case $srcdir in
20285   .)  # We are building in place.
20286     ac_srcdir=.
20287     ac_top_srcdir=$ac_top_builddir_sub
20288     ac_abs_top_srcdir=$ac_pwd ;;
20289   [\\/]* | ?:[\\/]* )  # Absolute name.
20290     ac_srcdir=$srcdir$ac_dir_suffix;
20291     ac_top_srcdir=$srcdir
20292     ac_abs_top_srcdir=$srcdir ;;
20293   *) # Relative name.
20294     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20295     ac_top_srcdir=$ac_top_build_prefix$srcdir
20296     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20297 esac
20298 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20299
20300
20301   case $ac_mode in
20302   :F)
20303   #
20304   # CONFIG_FILE
20305   #
20306
20307 _ACEOF
20308
20309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20310 # If the template does not know about datarootdir, expand it.
20311 # FIXME: This hack should be removed a few years after 2.60.
20312 ac_datarootdir_hack=; ac_datarootdir_seen=
20313 ac_sed_dataroot='
20314 /datarootdir/ {
20315   p
20316   q
20317 }
20318 /@datadir@/p
20319 /@docdir@/p
20320 /@infodir@/p
20321 /@localedir@/p
20322 /@mandir@/p'
20323 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20324 *datarootdir*) ac_datarootdir_seen=yes;;
20325 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20326   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20327 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20328 _ACEOF
20329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20330   ac_datarootdir_hack='
20331   s&@datadir@&$datadir&g
20332   s&@docdir@&$docdir&g
20333   s&@infodir@&$infodir&g
20334   s&@localedir@&$localedir&g
20335   s&@mandir@&$mandir&g
20336   s&\\\${datarootdir}&$datarootdir&g' ;;
20337 esac
20338 _ACEOF
20339
20340 # Neutralize VPATH when `$srcdir' = `.'.
20341 # Shell code in configure.ac might set extrasub.
20342 # FIXME: do we really want to maintain this feature?
20343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20344 ac_sed_extra="$ac_vpsub
20345 $extrasub
20346 _ACEOF
20347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20348 :t
20349 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20350 s|@configure_input@|$ac_sed_conf_input|;t t
20351 s&@top_builddir@&$ac_top_builddir_sub&;t t
20352 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20353 s&@srcdir@&$ac_srcdir&;t t
20354 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20355 s&@top_srcdir@&$ac_top_srcdir&;t t
20356 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20357 s&@builddir@&$ac_builddir&;t t
20358 s&@abs_builddir@&$ac_abs_builddir&;t t
20359 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20360 $ac_datarootdir_hack
20361 "
20362 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20363   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20364
20365 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20366   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20367   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20368       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20369   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20370 which seems to be undefined.  Please make sure it is defined" >&5
20371 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20372 which seems to be undefined.  Please make sure it is defined" >&2;}
20373
20374   rm -f "$ac_tmp/stdin"
20375   case $ac_file in
20376   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20377   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20378   esac \
20379   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20380  ;;
20381   :H)
20382   #
20383   # CONFIG_HEADER
20384   #
20385   if test x"$ac_file" != x-; then
20386     {
20387       $as_echo "/* $configure_input  */" \
20388       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20389     } >"$ac_tmp/config.h" \
20390       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20391     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20392       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20393 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20394     else
20395       rm -f "$ac_file"
20396       mv "$ac_tmp/config.h" "$ac_file" \
20397         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20398     fi
20399   else
20400     $as_echo "/* $configure_input  */" \
20401       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20402       || as_fn_error $? "could not create -" "$LINENO" 5
20403   fi
20404  ;;
20405
20406   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20407 $as_echo "$as_me: executing $ac_file commands" >&6;}
20408  ;;
20409   esac
20410
20411
20412   case $ac_file$ac_mode in
20413     "libtool":C)
20414
20415     # See if we are running on zsh, and set the options which allow our
20416     # commands through without removal of \ escapes.
20417     if test -n "${ZSH_VERSION+set}" ; then
20418       setopt NO_GLOB_SUBST
20419     fi
20420
20421     cfgfile="${ofile}T"
20422     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20423     $RM "$cfgfile"
20424
20425     cat <<_LT_EOF >> "$cfgfile"
20426 #! $SHELL
20427
20428 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20429 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20430 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20431 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20432 #
20433 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20434 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20435 #                 Foundation, Inc.
20436 #   Written by Gordon Matzigkeit, 1996
20437 #
20438 #   This file is part of GNU Libtool.
20439 #
20440 # GNU Libtool is free software; you can redistribute it and/or
20441 # modify it under the terms of the GNU General Public License as
20442 # published by the Free Software Foundation; either version 2 of
20443 # the License, or (at your option) any later version.
20444 #
20445 # As a special exception to the GNU General Public License,
20446 # if you distribute this file as part of a program or library that
20447 # is built using GNU Libtool, you may include this file under the
20448 # same distribution terms that you use for the rest of that program.
20449 #
20450 # GNU Libtool is distributed in the hope that it will be useful,
20451 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20452 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20453 # GNU General Public License for more details.
20454 #
20455 # You should have received a copy of the GNU General Public License
20456 # along with GNU Libtool; see the file COPYING.  If not, a copy
20457 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20458 # obtained by writing to the Free Software Foundation, Inc.,
20459 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20460
20461
20462 # The names of the tagged configurations supported by this script.
20463 available_tags=""
20464
20465 # ### BEGIN LIBTOOL CONFIG
20466
20467 # Which release of libtool.m4 was used?
20468 macro_version=$macro_version
20469 macro_revision=$macro_revision
20470
20471 # Whether or not to build shared libraries.
20472 build_libtool_libs=$enable_shared
20473
20474 # Whether or not to build static libraries.
20475 build_old_libs=$enable_static
20476
20477 # What type of objects to build.
20478 pic_mode=$pic_mode
20479
20480 # Whether or not to optimize for fast installation.
20481 fast_install=$enable_fast_install
20482
20483 # Shell to use when invoking shell scripts.
20484 SHELL=$lt_SHELL
20485
20486 # An echo program that protects backslashes.
20487 ECHO=$lt_ECHO
20488
20489 # The PATH separator for the build system.
20490 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20491
20492 # The host system.
20493 host_alias=$host_alias
20494 host=$host
20495 host_os=$host_os
20496
20497 # The build system.
20498 build_alias=$build_alias
20499 build=$build
20500 build_os=$build_os
20501
20502 # A sed program that does not truncate output.
20503 SED=$lt_SED
20504
20505 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20506 Xsed="\$SED -e 1s/^X//"
20507
20508 # A grep program that handles long lines.
20509 GREP=$lt_GREP
20510
20511 # An ERE matcher.
20512 EGREP=$lt_EGREP
20513
20514 # A literal string matcher.
20515 FGREP=$lt_FGREP
20516
20517 # A BSD- or MS-compatible name lister.
20518 NM=$lt_NM
20519
20520 # Whether we need soft or hard links.
20521 LN_S=$lt_LN_S
20522
20523 # What is the maximum length of a command?
20524 max_cmd_len=$max_cmd_len
20525
20526 # Object file suffix (normally "o").
20527 objext=$ac_objext
20528
20529 # Executable file suffix (normally "").
20530 exeext=$exeext
20531
20532 # whether the shell understands "unset".
20533 lt_unset=$lt_unset
20534
20535 # turn spaces into newlines.
20536 SP2NL=$lt_lt_SP2NL
20537
20538 # turn newlines into spaces.
20539 NL2SP=$lt_lt_NL2SP
20540
20541 # convert \$build file names to \$host format.
20542 to_host_file_cmd=$lt_cv_to_host_file_cmd
20543
20544 # convert \$build files to toolchain format.
20545 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20546
20547 # An object symbol dumper.
20548 OBJDUMP=$lt_OBJDUMP
20549
20550 # Method to check whether dependent libraries are shared objects.
20551 deplibs_check_method=$lt_deplibs_check_method
20552
20553 # Command to use when deplibs_check_method = "file_magic".
20554 file_magic_cmd=$lt_file_magic_cmd
20555
20556 # How to find potential files when deplibs_check_method = "file_magic".
20557 file_magic_glob=$lt_file_magic_glob
20558
20559 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20560 want_nocaseglob=$lt_want_nocaseglob
20561
20562 # DLL creation program.
20563 DLLTOOL=$lt_DLLTOOL
20564
20565 # Command to associate shared and link libraries.
20566 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20567
20568 # The archiver.
20569 AR=$lt_AR
20570
20571 # Flags to create an archive.
20572 AR_FLAGS=$lt_AR_FLAGS
20573
20574 # How to feed a file listing to the archiver.
20575 archiver_list_spec=$lt_archiver_list_spec
20576
20577 # A symbol stripping program.
20578 STRIP=$lt_STRIP
20579
20580 # Commands used to install an old-style archive.
20581 RANLIB=$lt_RANLIB
20582 old_postinstall_cmds=$lt_old_postinstall_cmds
20583 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20584
20585 # Whether to use a lock for old archive extraction.
20586 lock_old_archive_extraction=$lock_old_archive_extraction
20587
20588 # A C compiler.
20589 LTCC=$lt_CC
20590
20591 # LTCC compiler flags.
20592 LTCFLAGS=$lt_CFLAGS
20593
20594 # Take the output of nm and produce a listing of raw symbols and C names.
20595 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20596
20597 # Transform the output of nm in a proper C declaration.
20598 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20599
20600 # Transform the output of nm in a C name address pair.
20601 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20602
20603 # Transform the output of nm in a C name address pair when lib prefix is needed.
20604 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20605
20606 # Specify filename containing input files for \$NM.
20607 nm_file_list_spec=$lt_nm_file_list_spec
20608
20609 # The root where to search for dependent libraries,and in which our libraries should be installed.
20610 lt_sysroot=$lt_sysroot
20611
20612 # The name of the directory that contains temporary libtool files.
20613 objdir=$objdir
20614
20615 # Used to examine libraries when file_magic_cmd begins with "file".
20616 MAGIC_CMD=$MAGIC_CMD
20617
20618 # Must we lock files when doing compilation?
20619 need_locks=$lt_need_locks
20620
20621 # Manifest tool.
20622 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20623
20624 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20625 DSYMUTIL=$lt_DSYMUTIL
20626
20627 # Tool to change global to local symbols on Mac OS X.
20628 NMEDIT=$lt_NMEDIT
20629
20630 # Tool to manipulate fat objects and archives on Mac OS X.
20631 LIPO=$lt_LIPO
20632
20633 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20634 OTOOL=$lt_OTOOL
20635
20636 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20637 OTOOL64=$lt_OTOOL64
20638
20639 # Old archive suffix (normally "a").
20640 libext=$libext
20641
20642 # Shared library suffix (normally ".so").
20643 shrext_cmds=$lt_shrext_cmds
20644
20645 # The commands to extract the exported symbol list from a shared archive.
20646 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20647
20648 # Variables whose values should be saved in libtool wrapper scripts and
20649 # restored at link time.
20650 variables_saved_for_relink=$lt_variables_saved_for_relink
20651
20652 # Do we need the "lib" prefix for modules?
20653 need_lib_prefix=$need_lib_prefix
20654
20655 # Do we need a version for libraries?
20656 need_version=$need_version
20657
20658 # Library versioning type.
20659 version_type=$version_type
20660
20661 # Shared library runtime path variable.
20662 runpath_var=$runpath_var
20663
20664 # Shared library path variable.
20665 shlibpath_var=$shlibpath_var
20666
20667 # Is shlibpath searched before the hard-coded library search path?
20668 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20669
20670 # Format of library name prefix.
20671 libname_spec=$lt_libname_spec
20672
20673 # List of archive names.  First name is the real one, the rest are links.
20674 # The last name is the one that the linker finds with -lNAME
20675 library_names_spec=$lt_library_names_spec
20676
20677 # The coded name of the library, if different from the real name.
20678 soname_spec=$lt_soname_spec
20679
20680 # Permission mode override for installation of shared libraries.
20681 install_override_mode=$lt_install_override_mode
20682
20683 # Command to use after installation of a shared archive.
20684 postinstall_cmds=$lt_postinstall_cmds
20685
20686 # Command to use after uninstallation of a shared archive.
20687 postuninstall_cmds=$lt_postuninstall_cmds
20688
20689 # Commands used to finish a libtool library installation in a directory.
20690 finish_cmds=$lt_finish_cmds
20691
20692 # As "finish_cmds", except a single script fragment to be evaled but
20693 # not shown.
20694 finish_eval=$lt_finish_eval
20695
20696 # Whether we should hardcode library paths into libraries.
20697 hardcode_into_libs=$hardcode_into_libs
20698
20699 # Compile-time system search path for libraries.
20700 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20701
20702 # Run-time system search path for libraries.
20703 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20704
20705 # Whether dlopen is supported.
20706 dlopen_support=$enable_dlopen
20707
20708 # Whether dlopen of programs is supported.
20709 dlopen_self=$enable_dlopen_self
20710
20711 # Whether dlopen of statically linked programs is supported.
20712 dlopen_self_static=$enable_dlopen_self_static
20713
20714 # Commands to strip libraries.
20715 old_striplib=$lt_old_striplib
20716 striplib=$lt_striplib
20717
20718
20719 # The linker used to build libraries.
20720 LD=$lt_LD
20721
20722 # How to create reloadable object files.
20723 reload_flag=$lt_reload_flag
20724 reload_cmds=$lt_reload_cmds
20725
20726 # Commands used to build an old-style archive.
20727 old_archive_cmds=$lt_old_archive_cmds
20728
20729 # A language specific compiler.
20730 CC=$lt_compiler
20731
20732 # Is the compiler the GNU compiler?
20733 with_gcc=$GCC
20734
20735 # Compiler flag to turn off builtin functions.
20736 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20737
20738 # Additional compiler flags for building library objects.
20739 pic_flag=$lt_lt_prog_compiler_pic
20740
20741 # How to pass a linker flag through the compiler.
20742 wl=$lt_lt_prog_compiler_wl
20743
20744 # Compiler flag to prevent dynamic linking.
20745 link_static_flag=$lt_lt_prog_compiler_static
20746
20747 # Does compiler simultaneously support -c and -o options?
20748 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20749
20750 # Whether or not to add -lc for building shared libraries.
20751 build_libtool_need_lc=$archive_cmds_need_lc
20752
20753 # Whether or not to disallow shared libs when runtime libs are static.
20754 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20755
20756 # Compiler flag to allow reflexive dlopens.
20757 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20758
20759 # Compiler flag to generate shared objects directly from archives.
20760 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20761
20762 # Whether the compiler copes with passing no objects directly.
20763 compiler_needs_object=$lt_compiler_needs_object
20764
20765 # Create an old-style archive from a shared archive.
20766 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20767
20768 # Create a temporary old-style archive to link instead of a shared archive.
20769 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20770
20771 # Commands used to build a shared archive.
20772 archive_cmds=$lt_archive_cmds
20773 archive_expsym_cmds=$lt_archive_expsym_cmds
20774
20775 # Commands used to build a loadable module if different from building
20776 # a shared archive.
20777 module_cmds=$lt_module_cmds
20778 module_expsym_cmds=$lt_module_expsym_cmds
20779
20780 # Whether we are building with GNU ld or not.
20781 with_gnu_ld=$lt_with_gnu_ld
20782
20783 # Flag that allows shared libraries with undefined symbols to be built.
20784 allow_undefined_flag=$lt_allow_undefined_flag
20785
20786 # Flag that enforces no undefined symbols.
20787 no_undefined_flag=$lt_no_undefined_flag
20788
20789 # Flag to hardcode \$libdir into a binary during linking.
20790 # This must work even if \$libdir does not exist
20791 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20792
20793 # Whether we need a single "-rpath" flag with a separated argument.
20794 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20795
20796 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20797 # DIR into the resulting binary.
20798 hardcode_direct=$hardcode_direct
20799
20800 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20801 # DIR into the resulting binary and the resulting library dependency is
20802 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20803 # library is relocated.
20804 hardcode_direct_absolute=$hardcode_direct_absolute
20805
20806 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20807 # into the resulting binary.
20808 hardcode_minus_L=$hardcode_minus_L
20809
20810 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20811 # into the resulting binary.
20812 hardcode_shlibpath_var=$hardcode_shlibpath_var
20813
20814 # Set to "yes" if building a shared library automatically hardcodes DIR
20815 # into the library and all subsequent libraries and executables linked
20816 # against it.
20817 hardcode_automatic=$hardcode_automatic
20818
20819 # Set to yes if linker adds runtime paths of dependent libraries
20820 # to runtime path list.
20821 inherit_rpath=$inherit_rpath
20822
20823 # Whether libtool must link a program against all its dependency libraries.
20824 link_all_deplibs=$link_all_deplibs
20825
20826 # Set to "yes" if exported symbols are required.
20827 always_export_symbols=$always_export_symbols
20828
20829 # The commands to list exported symbols.
20830 export_symbols_cmds=$lt_export_symbols_cmds
20831
20832 # Symbols that should not be listed in the preloaded symbols.
20833 exclude_expsyms=$lt_exclude_expsyms
20834
20835 # Symbols that must always be exported.
20836 include_expsyms=$lt_include_expsyms
20837
20838 # Commands necessary for linking programs (against libraries) with templates.
20839 prelink_cmds=$lt_prelink_cmds
20840
20841 # Commands necessary for finishing linking programs.
20842 postlink_cmds=$lt_postlink_cmds
20843
20844 # Specify filename containing input files.
20845 file_list_spec=$lt_file_list_spec
20846
20847 # How to hardcode a shared library path into an executable.
20848 hardcode_action=$hardcode_action
20849
20850 # ### END LIBTOOL CONFIG
20851
20852 _LT_EOF
20853
20854   case $host_os in
20855   aix3*)
20856     cat <<\_LT_EOF >> "$cfgfile"
20857 # AIX sometimes has problems with the GCC collect2 program.  For some
20858 # reason, if we set the COLLECT_NAMES environment variable, the problems
20859 # vanish in a puff of smoke.
20860 if test "X${COLLECT_NAMES+set}" != Xset; then
20861   COLLECT_NAMES=
20862   export COLLECT_NAMES
20863 fi
20864 _LT_EOF
20865     ;;
20866   esac
20867
20868
20869 ltmain="$ac_aux_dir/ltmain.sh"
20870
20871
20872   # We use sed instead of cat because bash on DJGPP gets confused if
20873   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20874   # text mode, it properly converts lines to CR/LF.  This bash problem
20875   # is reportedly fixed, but why not run on old versions too?
20876   sed '$q' "$ltmain" >> "$cfgfile" \
20877      || (rm -f "$cfgfile"; exit 1)
20878
20879   if test x"$xsi_shell" = xyes; then
20880   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20881 func_dirname ()\
20882 {\
20883 \    case ${1} in\
20884 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20885 \      *  ) func_dirname_result="${3}" ;;\
20886 \    esac\
20887 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20888   && mv -f "$cfgfile.tmp" "$cfgfile" \
20889     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20890 test 0 -eq $? || _lt_function_replace_fail=:
20891
20892
20893   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20894 func_basename ()\
20895 {\
20896 \    func_basename_result="${1##*/}"\
20897 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20898   && mv -f "$cfgfile.tmp" "$cfgfile" \
20899     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20900 test 0 -eq $? || _lt_function_replace_fail=:
20901
20902
20903   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20904 func_dirname_and_basename ()\
20905 {\
20906 \    case ${1} in\
20907 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20908 \      *  ) func_dirname_result="${3}" ;;\
20909 \    esac\
20910 \    func_basename_result="${1##*/}"\
20911 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20912   && mv -f "$cfgfile.tmp" "$cfgfile" \
20913     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20914 test 0 -eq $? || _lt_function_replace_fail=:
20915
20916
20917   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20918 func_stripname ()\
20919 {\
20920 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20921 \    # positional parameters, so assign one to ordinary parameter first.\
20922 \    func_stripname_result=${3}\
20923 \    func_stripname_result=${func_stripname_result#"${1}"}\
20924 \    func_stripname_result=${func_stripname_result%"${2}"}\
20925 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20926   && mv -f "$cfgfile.tmp" "$cfgfile" \
20927     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20928 test 0 -eq $? || _lt_function_replace_fail=:
20929
20930
20931   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20932 func_split_long_opt ()\
20933 {\
20934 \    func_split_long_opt_name=${1%%=*}\
20935 \    func_split_long_opt_arg=${1#*=}\
20936 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20937   && mv -f "$cfgfile.tmp" "$cfgfile" \
20938     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20939 test 0 -eq $? || _lt_function_replace_fail=:
20940
20941
20942   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20943 func_split_short_opt ()\
20944 {\
20945 \    func_split_short_opt_arg=${1#??}\
20946 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20947 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20948   && mv -f "$cfgfile.tmp" "$cfgfile" \
20949     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20950 test 0 -eq $? || _lt_function_replace_fail=:
20951
20952
20953   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20954 func_lo2o ()\
20955 {\
20956 \    case ${1} in\
20957 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20958 \      *)    func_lo2o_result=${1} ;;\
20959 \    esac\
20960 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20961   && mv -f "$cfgfile.tmp" "$cfgfile" \
20962     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20963 test 0 -eq $? || _lt_function_replace_fail=:
20964
20965
20966   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20967 func_xform ()\
20968 {\
20969     func_xform_result=${1%.*}.lo\
20970 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20971   && mv -f "$cfgfile.tmp" "$cfgfile" \
20972     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20973 test 0 -eq $? || _lt_function_replace_fail=:
20974
20975
20976   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20977 func_arith ()\
20978 {\
20979     func_arith_result=$(( $* ))\
20980 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20981   && mv -f "$cfgfile.tmp" "$cfgfile" \
20982     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20983 test 0 -eq $? || _lt_function_replace_fail=:
20984
20985
20986   sed -e '/^func_len ()$/,/^} # func_len /c\
20987 func_len ()\
20988 {\
20989     func_len_result=${#1}\
20990 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20991   && mv -f "$cfgfile.tmp" "$cfgfile" \
20992     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20993 test 0 -eq $? || _lt_function_replace_fail=:
20994
20995 fi
20996
20997 if test x"$lt_shell_append" = xyes; then
20998   sed -e '/^func_append ()$/,/^} # func_append /c\
20999 func_append ()\
21000 {\
21001     eval "${1}+=\\${2}"\
21002 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21003   && mv -f "$cfgfile.tmp" "$cfgfile" \
21004     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21005 test 0 -eq $? || _lt_function_replace_fail=:
21006
21007
21008   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21009 func_append_quoted ()\
21010 {\
21011 \    func_quote_for_eval "${2}"\
21012 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21013 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21014   && mv -f "$cfgfile.tmp" "$cfgfile" \
21015     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21016 test 0 -eq $? || _lt_function_replace_fail=:
21017
21018
21019   # Save a `func_append' function call where possible by direct use of '+='
21020   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21021     && mv -f "$cfgfile.tmp" "$cfgfile" \
21022       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21023   test 0 -eq $? || _lt_function_replace_fail=:
21024 else
21025   # Save a `func_append' function call even when '+=' is not available
21026   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21027     && mv -f "$cfgfile.tmp" "$cfgfile" \
21028       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21029   test 0 -eq $? || _lt_function_replace_fail=:
21030 fi
21031
21032 if test x"$_lt_function_replace_fail" = x":"; then
21033   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21034 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21035 fi
21036
21037
21038    mv -f "$cfgfile" "$ofile" ||
21039     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21040   chmod +x "$ofile"
21041
21042  ;;
21043     "disable-rpath":C)
21044         sed < libtool > libtool-2 \
21045         's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
21046         mv libtool-2 libtool
21047         chmod 755 libtool
21048         libtool="./libtool"
21049          ;;
21050
21051   esac
21052 done # for ac_tag
21053
21054
21055 as_fn_exit 0
21056 _ACEOF
21057 ac_clean_files=$ac_clean_files_save
21058
21059 test $ac_write_fail = 0 ||
21060   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21061
21062
21063 # configure is writing to config.log, and then calls config.status.
21064 # config.status does its own redirection, appending to config.log.
21065 # Unfortunately, on DOS this fails, as config.log is still kept open
21066 # by configure, so config.status won't be able to write to it; its
21067 # output is simply discarded.  So we exec the FD to /dev/null,
21068 # effectively closing config.log, so it can be properly (re)opened and
21069 # appended to by config.status.  When coming back to configure, we
21070 # need to make the FD available again.
21071 if test "$no_create" != yes; then
21072   ac_cs_success=:
21073   ac_config_status_args=
21074   test "$silent" = yes &&
21075     ac_config_status_args="$ac_config_status_args --quiet"
21076   exec 5>/dev/null
21077   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21078   exec 5>>config.log
21079   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21080   # would make configure fail if this is the last instruction.
21081   $ac_cs_success || as_fn_exit 1
21082 fi
21083 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21084   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21085 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21086 fi
21087