]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - contrib/unbound/configure
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.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.4.20.
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.4.20'
594 PACKAGE_STRING='unbound 1.4.20'
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 ldnsdir
636 ALLTARGET
637 SOURCEFILE
638 SOURCEDETERMINE
639 UBSYMS
640 EXTRALINK
641 COMMON_OBJ_ALL_SYMBOLS
642 LIBOBJ_WITHOUT_CTIME
643 WIN_CHECKCONF_OBJ_LINK
644 WIN_CONTROL_OBJ_LINK
645 WIN_UBANCHOR_OBJ_LINK
646 WIN_HOST_OBJ_LINK
647 WIN_DAEMON_OBJ_LINK
648 WIN_DAEMON_OBJ
649 WIN_DAEMON_SRC
650 WINAPPS
651 WINDRES
652 CHECKLOCK_OBJ
653 staticexe
654 HAVE_SSL
655 CONFIG_DATE
656 NETBSD_LINTFLAGS
657 PYUNBOUND_UNINSTALL
658 PYUNBOUND_INSTALL
659 PYUNBOUND_TARGET
660 PYUNBOUND_OBJ
661 WITH_PYUNBOUND
662 PYTHONMOD_UNINSTALL
663 PYTHONMOD_INSTALL
664 PYTHONMOD_HEADER
665 PYTHONMOD_OBJ
666 WITH_PYTHONMODULE
667 swig
668 SWIG_LIB
669 SWIG
670 PYTHON_EXTRA_LDFLAGS
671 PYTHON_EXTRA_LIBS
672 PYTHON_SITE_PKG
673 PYTHON_LDFLAGS
674 PYTHON_CPPFLAGS
675 PYTHON
676 PYTHON_VERSION
677 PTHREAD_CFLAGS
678 PTHREAD_LIBS
679 PTHREAD_CC
680 acx_pthread_config
681 RUNTIME_PATH
682 LIBOBJS
683 OTOOL64
684 OTOOL
685 LIPO
686 NMEDIT
687 DSYMUTIL
688 MANIFEST_TOOL
689 AWK
690 RANLIB
691 ac_ct_AR
692 DLLTOOL
693 OBJDUMP
694 LN_S
695 NM
696 ac_ct_DUMPBIN
697 DUMPBIN
698 LD
699 FGREP
700 SED
701 LIBTOOL
702 AR
703 host_os
704 host_vendor
705 host_cpu
706 host
707 build_os
708 build_vendor
709 build_cpu
710 build
711 libtool
712 STRIP
713 doxygen
714 YFLAGS
715 YACC
716 LEXLIB
717 LEX_OUTPUT_ROOT
718 LEX
719 debug_enabled
720 DEPFLAG
721 UNBOUND_USERNAME
722 UNBOUND_ROOTCERT_FILE
723 UNBOUND_ROOTKEY_FILE
724 UNBOUND_PIDFILE
725 UNBOUND_SHARE_DIR
726 UNBOUND_CHROOT_DIR
727 UNBOUND_RUN_DIR
728 ub_conf_file
729 EGREP
730 GREP
731 CPP
732 OBJEXT
733 EXEEXT
734 ac_ct_CC
735 CPPFLAGS
736 LDFLAGS
737 CFLAGS
738 CC
739 LIBUNBOUND_AGE
740 LIBUNBOUND_REVISION
741 LIBUNBOUND_CURRENT
742 target_alias
743 host_alias
744 build_alias
745 LIBS
746 ECHO_T
747 ECHO_N
748 ECHO_C
749 DEFS
750 mandir
751 localedir
752 libdir
753 psdir
754 pdfdir
755 dvidir
756 htmldir
757 infodir
758 docdir
759 oldincludedir
760 includedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 with_conf_file
784 with_run_dir
785 with_chroot_dir
786 with_share_dir
787 with_pidfile
788 with_rootkey_file
789 with_rootcert_file
790 with_username
791 enable_checking
792 enable_debug
793 enable_shared
794 enable_static
795 with_pic
796 enable_fast_install
797 with_gnu_ld
798 with_sysroot
799 enable_libtool_lock
800 enable_rpath
801 enable_largefile
802 enable_alloc_checks
803 enable_alloc_lite
804 enable_alloc_nonregional
805 with_pthreads
806 with_solaris_threads
807 with_pyunbound
808 with_pythonmodule
809 with_nss
810 with_ssl
811 enable_sha2
812 enable_gost
813 enable_ecdsa
814 with_libevent
815 with_libexpat
816 enable_static_exe
817 enable_lock_checks
818 enable_allsymbols
819 with_libunbound_only
820 with_ldns
821 '
822       ac_precious_vars='build_alias
823 host_alias
824 target_alias
825 CC
826 CFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
830 CPP
831 YACC
832 YFLAGS
833 PYTHON_VERSION'
834
835
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
857
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir='${datarootdir}/info'
876 htmldir='${docdir}'
877 dvidir='${docdir}'
878 pdfdir='${docdir}'
879 psdir='${docdir}'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
883
884 ac_prev=
885 ac_dashdash=
886 for ac_option
887 do
888   # If the previous option needs an argument, assign it.
889   if test -n "$ac_prev"; then
890     eval $ac_prev=\$ac_option
891     ac_prev=
892     continue
893   fi
894
895   case $ac_option in
896   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897   *=)   ac_optarg= ;;
898   *)    ac_optarg=yes ;;
899   esac
900
901   # Accept the important Cygnus configure options, so we can diagnose typos.
902
903   case $ac_dashdash$ac_option in
904   --)
905     ac_dashdash=yes ;;
906
907   -bindir | --bindir | --bindi | --bind | --bin | --bi)
908     ac_prev=bindir ;;
909   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910     bindir=$ac_optarg ;;
911
912   -build | --build | --buil | --bui | --bu)
913     ac_prev=build_alias ;;
914   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915     build_alias=$ac_optarg ;;
916
917   -cache-file | --cache-file | --cache-fil | --cache-fi \
918   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919     ac_prev=cache_file ;;
920   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922     cache_file=$ac_optarg ;;
923
924   --config-cache | -C)
925     cache_file=config.cache ;;
926
927   -datadir | --datadir | --datadi | --datad)
928     ac_prev=datadir ;;
929   -datadir=* | --datadir=* | --datadi=* | --datad=*)
930     datadir=$ac_optarg ;;
931
932   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933   | --dataroo | --dataro | --datar)
934     ac_prev=datarootdir ;;
935   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937     datarootdir=$ac_optarg ;;
938
939   -disable-* | --disable-*)
940     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943       as_fn_error $? "invalid feature name: $ac_useropt"
944     ac_useropt_orig=$ac_useropt
945     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946     case $ac_user_opts in
947       *"
948 "enable_$ac_useropt"
949 "*) ;;
950       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951          ac_unrecognized_sep=', ';;
952     esac
953     eval enable_$ac_useropt=no ;;
954
955   -docdir | --docdir | --docdi | --doc | --do)
956     ac_prev=docdir ;;
957   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958     docdir=$ac_optarg ;;
959
960   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961     ac_prev=dvidir ;;
962   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963     dvidir=$ac_optarg ;;
964
965   -enable-* | --enable-*)
966     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967     # Reject names that are not valid shell variable names.
968     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969       as_fn_error $? "invalid feature name: $ac_useropt"
970     ac_useropt_orig=$ac_useropt
971     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972     case $ac_user_opts in
973       *"
974 "enable_$ac_useropt"
975 "*) ;;
976       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977          ac_unrecognized_sep=', ';;
978     esac
979     eval enable_$ac_useropt=\$ac_optarg ;;
980
981   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983   | --exec | --exe | --ex)
984     ac_prev=exec_prefix ;;
985   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987   | --exec=* | --exe=* | --ex=*)
988     exec_prefix=$ac_optarg ;;
989
990   -gas | --gas | --ga | --g)
991     # Obsolete; use --with-gas.
992     with_gas=yes ;;
993
994   -help | --help | --hel | --he | -h)
995     ac_init_help=long ;;
996   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997     ac_init_help=recursive ;;
998   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999     ac_init_help=short ;;
1000
1001   -host | --host | --hos | --ho)
1002     ac_prev=host_alias ;;
1003   -host=* | --host=* | --hos=* | --ho=*)
1004     host_alias=$ac_optarg ;;
1005
1006   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007     ac_prev=htmldir ;;
1008   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009   | --ht=*)
1010     htmldir=$ac_optarg ;;
1011
1012   -includedir | --includedir | --includedi | --included | --include \
1013   | --includ | --inclu | --incl | --inc)
1014     ac_prev=includedir ;;
1015   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016   | --includ=* | --inclu=* | --incl=* | --inc=*)
1017     includedir=$ac_optarg ;;
1018
1019   -infodir | --infodir | --infodi | --infod | --info | --inf)
1020     ac_prev=infodir ;;
1021   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022     infodir=$ac_optarg ;;
1023
1024   -libdir | --libdir | --libdi | --libd)
1025     ac_prev=libdir ;;
1026   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027     libdir=$ac_optarg ;;
1028
1029   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030   | --libexe | --libex | --libe)
1031     ac_prev=libexecdir ;;
1032   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033   | --libexe=* | --libex=* | --libe=*)
1034     libexecdir=$ac_optarg ;;
1035
1036   -localedir | --localedir | --localedi | --localed | --locale)
1037     ac_prev=localedir ;;
1038   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039     localedir=$ac_optarg ;;
1040
1041   -localstatedir | --localstatedir | --localstatedi | --localstated \
1042   | --localstate | --localstat | --localsta | --localst | --locals)
1043     ac_prev=localstatedir ;;
1044   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046     localstatedir=$ac_optarg ;;
1047
1048   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049     ac_prev=mandir ;;
1050   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051     mandir=$ac_optarg ;;
1052
1053   -nfp | --nfp | --nf)
1054     # Obsolete; use --without-fp.
1055     with_fp=no ;;
1056
1057   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058   | --no-cr | --no-c | -n)
1059     no_create=yes ;;
1060
1061   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063     no_recursion=yes ;;
1064
1065   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067   | --oldin | --oldi | --old | --ol | --o)
1068     ac_prev=oldincludedir ;;
1069   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072     oldincludedir=$ac_optarg ;;
1073
1074   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075     ac_prev=prefix ;;
1076   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077     prefix=$ac_optarg ;;
1078
1079   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080   | --program-pre | --program-pr | --program-p)
1081     ac_prev=program_prefix ;;
1082   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084     program_prefix=$ac_optarg ;;
1085
1086   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087   | --program-suf | --program-su | --program-s)
1088     ac_prev=program_suffix ;;
1089   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091     program_suffix=$ac_optarg ;;
1092
1093   -program-transform-name | --program-transform-name \
1094   | --program-transform-nam | --program-transform-na \
1095   | --program-transform-n | --program-transform- \
1096   | --program-transform | --program-transfor \
1097   | --program-transfo | --program-transf \
1098   | --program-trans | --program-tran \
1099   | --progr-tra | --program-tr | --program-t)
1100     ac_prev=program_transform_name ;;
1101   -program-transform-name=* | --program-transform-name=* \
1102   | --program-transform-nam=* | --program-transform-na=* \
1103   | --program-transform-n=* | --program-transform-=* \
1104   | --program-transform=* | --program-transfor=* \
1105   | --program-transfo=* | --program-transf=* \
1106   | --program-trans=* | --program-tran=* \
1107   | --progr-tra=* | --program-tr=* | --program-t=*)
1108     program_transform_name=$ac_optarg ;;
1109
1110   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111     ac_prev=pdfdir ;;
1112   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113     pdfdir=$ac_optarg ;;
1114
1115   -psdir | --psdir | --psdi | --psd | --ps)
1116     ac_prev=psdir ;;
1117   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118     psdir=$ac_optarg ;;
1119
1120   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121   | -silent | --silent | --silen | --sile | --sil)
1122     silent=yes ;;
1123
1124   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125     ac_prev=sbindir ;;
1126   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127   | --sbi=* | --sb=*)
1128     sbindir=$ac_optarg ;;
1129
1130   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132   | --sharedst | --shareds | --shared | --share | --shar \
1133   | --sha | --sh)
1134     ac_prev=sharedstatedir ;;
1135   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138   | --sha=* | --sh=*)
1139     sharedstatedir=$ac_optarg ;;
1140
1141   -site | --site | --sit)
1142     ac_prev=site ;;
1143   -site=* | --site=* | --sit=*)
1144     site=$ac_optarg ;;
1145
1146   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147     ac_prev=srcdir ;;
1148   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149     srcdir=$ac_optarg ;;
1150
1151   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152   | --syscon | --sysco | --sysc | --sys | --sy)
1153     ac_prev=sysconfdir ;;
1154   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156     sysconfdir=$ac_optarg ;;
1157
1158   -target | --target | --targe | --targ | --tar | --ta | --t)
1159     ac_prev=target_alias ;;
1160   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161     target_alias=$ac_optarg ;;
1162
1163   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164     verbose=yes ;;
1165
1166   -version | --version | --versio | --versi | --vers | -V)
1167     ac_init_version=: ;;
1168
1169   -with-* | --with-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173       as_fn_error $? "invalid package name: $ac_useropt"
1174     ac_useropt_orig=$ac_useropt
1175     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176     case $ac_user_opts in
1177       *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181          ac_unrecognized_sep=', ';;
1182     esac
1183     eval with_$ac_useropt=\$ac_optarg ;;
1184
1185   -without-* | --without-*)
1186     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187     # Reject names that are not valid shell variable names.
1188     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189       as_fn_error $? "invalid package name: $ac_useropt"
1190     ac_useropt_orig=$ac_useropt
1191     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192     case $ac_user_opts in
1193       *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197          ac_unrecognized_sep=', ';;
1198     esac
1199     eval with_$ac_useropt=no ;;
1200
1201   --x)
1202     # Obsolete; use --with-x.
1203     with_x=yes ;;
1204
1205   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206   | --x-incl | --x-inc | --x-in | --x-i)
1207     ac_prev=x_includes ;;
1208   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210     x_includes=$ac_optarg ;;
1211
1212   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214     ac_prev=x_libraries ;;
1215   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217     x_libraries=$ac_optarg ;;
1218
1219   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1221     ;;
1222
1223   *=*)
1224     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225     # Reject names that are not valid shell variable names.
1226     case $ac_envvar in #(
1227       '' | [0-9]* | *[!_$as_cr_alnum]* )
1228       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229     esac
1230     eval $ac_envvar=\$ac_optarg
1231     export $ac_envvar ;;
1232
1233   *)
1234     # FIXME: should be removed in autoconf 3.0.
1235     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239     ;;
1240
1241   esac
1242 done
1243
1244 if test -n "$ac_prev"; then
1245   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246   as_fn_error $? "missing argument to $ac_option"
1247 fi
1248
1249 if test -n "$ac_unrecognized_opts"; then
1250   case $enable_option_checking in
1251     no) ;;
1252     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254   esac
1255 fi
1256
1257 # Check all directory arguments for consistency.
1258 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259                 datadir sysconfdir sharedstatedir localstatedir includedir \
1260                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261                 libdir localedir mandir
1262 do
1263   eval ac_val=\$$ac_var
1264   # Remove trailing slashes.
1265   case $ac_val in
1266     */ )
1267       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268       eval $ac_var=\$ac_val;;
1269   esac
1270   # Be sure to have absolute directory names.
1271   case $ac_val in
1272     [\\/$]* | ?:[\\/]* )  continue;;
1273     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274   esac
1275   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1277
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1284
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287   if test "x$build_alias" = x; then
1288     cross_compiling=maybe
1289   elif test "x$build_alias" != "x$host_alias"; then
1290     cross_compiling=yes
1291   fi
1292 fi
1293
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297 test "$silent" = yes && exec 6>/dev/null
1298
1299
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303   as_fn_error $? "working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305   as_fn_error $? "pwd does not report name of working directory"
1306
1307
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310   ac_srcdir_defaulted=yes
1311   # Try the directory containing this script, then the parent directory.
1312   ac_confdir=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314          X"$as_myself" : 'X\(//\)[^/]' \| \
1315          X"$as_myself" : 'X\(//\)$' \| \
1316          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 $as_echo X"$as_myself" |
1318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319             s//\1/
1320             q
1321           }
1322           /^X\(\/\/\)[^/].*/{
1323             s//\1/
1324             q
1325           }
1326           /^X\(\/\/\)$/{
1327             s//\1/
1328             q
1329           }
1330           /^X\(\/\).*/{
1331             s//\1/
1332             q
1333           }
1334           s/.*/./; q'`
1335   srcdir=$ac_confdir
1336   if test ! -r "$srcdir/$ac_unique_file"; then
1337     srcdir=..
1338   fi
1339 else
1340   ac_srcdir_defaulted=no
1341 fi
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1345 fi
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 ac_abs_confdir=`(
1348         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349         pwd)`
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352   srcdir=.
1353 fi
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1357 case $srcdir in
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 esac
1360 for ac_var in $ac_precious_vars; do
1361   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362   eval ac_env_${ac_var}_value=\$${ac_var}
1363   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 done
1366
1367 #
1368 # Report the --help message.
1369 #
1370 if test "$ac_init_help" = "long"; then
1371   # Omit some internal or obsolete options to make the list less imposing.
1372   # This message is too long to be a string in the A/UX 3.1 sh.
1373   cat <<_ACEOF
1374 \`configure' configures unbound 1.4.20 to adapt to many kinds of systems.
1375
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1377
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE.  See below for descriptions of some of the useful variables.
1380
1381 Defaults for the options are specified in brackets.
1382
1383 Configuration:
1384   -h, --help              display this help and exit
1385       --help=short        display options specific to this package
1386       --help=recursive    display the short help of all the included packages
1387   -V, --version           display version information and exit
1388   -q, --quiet, --silent   do not print \`checking ...' messages
1389       --cache-file=FILE   cache test results in FILE [disabled]
1390   -C, --config-cache      alias for \`--cache-file=config.cache'
1391   -n, --no-create         do not create output files
1392       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1393
1394 Installation directories:
1395   --prefix=PREFIX         install architecture-independent files in PREFIX
1396                           [$ac_default_prefix]
1397   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1398                           [PREFIX]
1399
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1404
1405 For better control, use the options below.
1406
1407 Fine tuning of the installation directories:
1408   --bindir=DIR            user executables [EPREFIX/bin]
1409   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1410   --libexecdir=DIR        program executables [EPREFIX/libexec]
1411   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1412   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1413   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1414   --libdir=DIR            object code libraries [EPREFIX/lib]
1415   --includedir=DIR        C header files [PREFIX/include]
1416   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1417   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1418   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1419   --infodir=DIR           info documentation [DATAROOTDIR/info]
1420   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1421   --mandir=DIR            man documentation [DATAROOTDIR/man]
1422   --docdir=DIR            documentation root [DATAROOTDIR/doc/unbound]
1423   --htmldir=DIR           html documentation [DOCDIR]
1424   --dvidir=DIR            dvi documentation [DOCDIR]
1425   --pdfdir=DIR            pdf documentation [DOCDIR]
1426   --psdir=DIR             ps documentation [DOCDIR]
1427 _ACEOF
1428
1429   cat <<\_ACEOF
1430
1431 System types:
1432   --build=BUILD     configure for building on BUILD [guessed]
1433   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1434 _ACEOF
1435 fi
1436
1437 if test -n "$ac_init_help"; then
1438   case $ac_init_help in
1439      short | recursive ) echo "Configuration of unbound 1.4.20:";;
1440    esac
1441   cat <<\_ACEOF
1442
1443 Optional Features:
1444   --disable-option-checking  ignore unrecognized --enable/--with options
1445   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1446   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1447   --enable-checking       Enable warnings, asserts, makefile-dependencies
1448   --enable-debug          same as enable-checking
1449   --enable-shared[=PKGS]  build shared libraries [default=yes]
1450   --enable-static[=PKGS]  build static libraries [default=yes]
1451   --enable-fast-install[=PKGS]
1452                           optimize for fast installation [default=yes]
1453   --disable-libtool-lock  avoid locking (might break parallel builds)
1454   --disable-rpath         disable hardcoded rpath (default=enabled)
1455   --disable-largefile     omit support for large files
1456   --enable-alloc-checks   enable to memory allocation statistics, for debug
1457                           purposes
1458   --enable-alloc-lite     enable for lightweight alloc assertions, for debug
1459                           purposes
1460   --enable-alloc-nonregional
1461                           enable nonregional allocs, slow but exposes regional
1462                           allocations to other memory purifiers, for debug
1463                           purposes
1464   --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1465   --disable-gost          Disable GOST support
1466   --disable-ecdsa         Disable ECDSA support
1467   --enable-static-exe     enable to compile executables statically against
1468                           event, ldns libs, for debug purposes
1469   --enable-lock-checks    enable to check lock and unlock calls, for debug
1470                           purposes
1471   --enable-allsymbols     export all symbols from libunbound and link binaries
1472                           to it, smaller install size but libunbound export
1473                           table is polluted by internal symbols
1474
1475 Optional Packages:
1476   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1477   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1478   --with-conf-file=path   Pathname to the Unbound configuration file
1479   --with-run-dir=path     set default directory to chdir to (by default dir
1480                           part of cfg file)
1481   --with-chroot-dir=path  set default directory to chroot to (by default same
1482                           as run-dir)
1483   --with-share-dir=path   set default directory with shared data (by default
1484                           same as share/unbound)
1485   --with-pidfile=filename set default pathname to unbound pidfile (default
1486                           run-dir/unbound.pid)
1487   --with-rootkey-file=filename
1488                           set default pathname to root key file (default
1489                           run-dir/root.key). This file is read and written.
1490   --with-rootcert-file=filename
1491                           set default pathname to root update certificate file
1492                           (default run-dir/icannbundle.pem). This file need
1493                           not exist if you are content with the builtin.
1494   --with-username=user    set default user that unbound changes to (default
1495                           user is unbound)
1496   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1497                           both]
1498   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1499   --with-sysroot=DIR Search for dependent libraries within DIR
1500                         (or the compiler's sysroot if not specified).
1501   --with-pthreads         use pthreads library, or --without-pthreads to
1502                           disable threading support.
1503   --with-solaris-threads  use solaris native thread library.
1504   --with-pyunbound        build PyUnbound, or --without-pyunbound to skip it.
1505                           (default=no)
1506   --with-pythonmodule     build Python module, or --without-pythonmodule to
1507                           disable script engine. (default=no)
1508   --with-nss=path         use libnss instead of openssl, installed at path.
1509   --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1510                           /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1511                           /usr)
1512   --with-libevent=pathname
1513                           use libevent (will check /usr/local /opt/local
1514                           /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1515                           an explicit path). Slower, but allows use of large
1516                           outgoing port ranges.
1517   --with-libexpat=path    specify explicit path for libexpat.
1518   --with-libunbound-only  do not build daemon and tool programs
1519   --with-ldns=PATH        specify prefix of path of ldns library to use
1520
1521 Some influential environment variables:
1522   CC          C compiler command
1523   CFLAGS      C compiler flags
1524   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1525               nonstandard directory <lib dir>
1526   LIBS        libraries to pass to the linker, e.g. -l<library>
1527   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1528               you have headers in a nonstandard directory <include dir>
1529   CPP         C preprocessor
1530   YACC        The `Yet Another Compiler Compiler' implementation to use.
1531               Defaults to the first program found out of: `bison -y', `byacc',
1532               `yacc'.
1533   YFLAGS      The list of arguments that will be passed by default to $YACC.
1534               This script will default YFLAGS to the empty string to avoid a
1535               default value of `-d' given by some make applications.
1536   PYTHON_VERSION
1537               The installed Python version to use, for example '2.3'. This
1538               string will be appended to the Python interpreter canonical
1539               name.
1540
1541 Use these variables to override the choices made by `configure' or to help
1542 it to find libraries and programs with nonstandard names/locations.
1543
1544 Report bugs to <unbound-bugs@nlnetlabs.nl>.
1545 _ACEOF
1546 ac_status=$?
1547 fi
1548
1549 if test "$ac_init_help" = "recursive"; then
1550   # If there are subdirs, report their specific --help.
1551   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552     test -d "$ac_dir" ||
1553       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554       continue
1555     ac_builddir=.
1556
1557 case "$ac_dir" in
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *)
1560   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561   # A ".." for each directory in $ac_dir_suffix.
1562   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563   case $ac_top_builddir_sub in
1564   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566   esac ;;
1567 esac
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1572
1573 case $srcdir in
1574   .)  # We are building in place.
1575     ac_srcdir=.
1576     ac_top_srcdir=$ac_top_builddir_sub
1577     ac_abs_top_srcdir=$ac_pwd ;;
1578   [\\/]* | ?:[\\/]* )  # Absolute name.
1579     ac_srcdir=$srcdir$ac_dir_suffix;
1580     ac_top_srcdir=$srcdir
1581     ac_abs_top_srcdir=$srcdir ;;
1582   *) # Relative name.
1583     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584     ac_top_srcdir=$ac_top_build_prefix$srcdir
1585     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 esac
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589     cd "$ac_dir" || { ac_status=$?; continue; }
1590     # Check for guested configure.
1591     if test -f "$ac_srcdir/configure.gnu"; then
1592       echo &&
1593       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594     elif test -f "$ac_srcdir/configure"; then
1595       echo &&
1596       $SHELL "$ac_srcdir/configure" --help=recursive
1597     else
1598       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599     fi || ac_status=$?
1600     cd "$ac_pwd" || { ac_status=$?; break; }
1601   done
1602 fi
1603
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1606   cat <<\_ACEOF
1607 unbound configure 1.4.20
1608 generated by GNU Autoconf 2.69
1609
1610 Copyright (C) 2012 Free Software Foundation, Inc.
1611 This configure script is free software; the Free Software Foundation
1612 gives unlimited permission to copy, distribute and modify it.
1613 _ACEOF
1614   exit
1615 fi
1616
1617 ## ------------------------ ##
1618 ## Autoconf initialization. ##
1619 ## ------------------------ ##
1620
1621 # ac_fn_c_try_compile LINENO
1622 # --------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_compile ()
1625 {
1626   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627   rm -f conftest.$ac_objext
1628   if { { ac_try="$ac_compile"
1629 case "(($ac_try" in
1630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631   *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635   (eval "$ac_compile") 2>conftest.err
1636   ac_status=$?
1637   if test -s conftest.err; then
1638     grep -v '^ *+' conftest.err >conftest.er1
1639     cat conftest.er1 >&5
1640     mv -f conftest.er1 conftest.err
1641   fi
1642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643   test $ac_status = 0; } && {
1644          test -z "$ac_c_werror_flag" ||
1645          test ! -s conftest.err
1646        } && test -s conftest.$ac_objext; then :
1647   ac_retval=0
1648 else
1649   $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1651
1652         ac_retval=1
1653 fi
1654   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655   as_fn_set_status $ac_retval
1656
1657 } # ac_fn_c_try_compile
1658
1659 # ac_fn_c_try_cpp LINENO
1660 # ----------------------
1661 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_cpp ()
1663 {
1664   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665   if { { ac_try="$ac_cpp conftest.$ac_ext"
1666 case "(($ac_try" in
1667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668   *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673   ac_status=$?
1674   if test -s conftest.err; then
1675     grep -v '^ *+' conftest.err >conftest.er1
1676     cat conftest.er1 >&5
1677     mv -f conftest.er1 conftest.err
1678   fi
1679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680   test $ac_status = 0; } > conftest.i && {
1681          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682          test ! -s conftest.err
1683        }; then :
1684   ac_retval=0
1685 else
1686   $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689     ac_retval=1
1690 fi
1691   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692   as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_cpp
1695
1696 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1697 # -------------------------------------------------------
1698 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1699 # the include files in INCLUDES and setting the cache variable VAR
1700 # accordingly.
1701 ac_fn_c_check_header_mongrel ()
1702 {
1703   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704   if eval \${$3+:} false; then :
1705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if eval \${$3+:} false; then :
1708   $as_echo_n "(cached) " >&6
1709 fi
1710 eval ac_res=\$$3
1711                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712 $as_echo "$ac_res" >&6; }
1713 else
1714   # Is the header compilable?
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1716 $as_echo_n "checking $2 usability... " >&6; }
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h.  */
1719 $4
1720 #include <$2>
1721 _ACEOF
1722 if ac_fn_c_try_compile "$LINENO"; then :
1723   ac_header_compiler=yes
1724 else
1725   ac_header_compiler=no
1726 fi
1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1729 $as_echo "$ac_header_compiler" >&6; }
1730
1731 # Is the header present?
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1733 $as_echo_n "checking $2 presence... " >&6; }
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h.  */
1736 #include <$2>
1737 _ACEOF
1738 if ac_fn_c_try_cpp "$LINENO"; then :
1739   ac_header_preproc=yes
1740 else
1741   ac_header_preproc=no
1742 fi
1743 rm -f conftest.err conftest.i conftest.$ac_ext
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1745 $as_echo "$ac_header_preproc" >&6; }
1746
1747 # So?  What about this header?
1748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1749   yes:no: )
1750     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1751 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1752     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1753 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1754     ;;
1755   no:yes:* )
1756     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1757 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1758     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1759 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1760     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1761 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1762     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1763 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1764     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1765 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1766 ( $as_echo "## ---------------------------------------- ##
1767 ## Report this to unbound-bugs@nlnetlabs.nl ##
1768 ## ---------------------------------------- ##"
1769      ) | sed "s/^/$as_me: WARNING:     /" >&2
1770     ;;
1771 esac
1772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775   $as_echo_n "(cached) " >&6
1776 else
1777   eval "$3=\$ac_header_compiler"
1778 fi
1779 eval ac_res=\$$3
1780                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 fi
1783   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785 } # ac_fn_c_check_header_mongrel
1786
1787 # ac_fn_c_try_run LINENO
1788 # ----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1790 # that executables *can* be run.
1791 ac_fn_c_try_run ()
1792 {
1793   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794   if { { ac_try="$ac_link"
1795 case "(($ac_try" in
1796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797   *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801   (eval "$ac_link") 2>&5
1802   ac_status=$?
1803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1805   { { case "(($ac_try" in
1806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807   *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811   (eval "$ac_try") 2>&5
1812   ac_status=$?
1813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814   test $ac_status = 0; }; }; then :
1815   ac_retval=0
1816 else
1817   $as_echo "$as_me: program exited with status $ac_status" >&5
1818        $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1820
1821        ac_retval=$ac_status
1822 fi
1823   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825   as_fn_set_status $ac_retval
1826
1827 } # ac_fn_c_try_run
1828
1829 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1830 # -------------------------------------------------------
1831 # Tests whether HEADER exists and can be compiled using the include files in
1832 # INCLUDES, setting the cache variable VAR accordingly.
1833 ac_fn_c_check_header_compile ()
1834 {
1835   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839   $as_echo_n "(cached) " >&6
1840 else
1841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h.  */
1843 $4
1844 #include <$2>
1845 _ACEOF
1846 if ac_fn_c_try_compile "$LINENO"; then :
1847   eval "$3=yes"
1848 else
1849   eval "$3=no"
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852 fi
1853 eval ac_res=\$$3
1854                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858 } # ac_fn_c_check_header_compile
1859
1860 # ac_fn_c_try_link LINENO
1861 # -----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_c_try_link ()
1864 {
1865   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866   rm -f conftest.$ac_objext conftest$ac_exeext
1867   if { { ac_try="$ac_link"
1868 case "(($ac_try" in
1869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870   *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874   (eval "$ac_link") 2>conftest.err
1875   ac_status=$?
1876   if test -s conftest.err; then
1877     grep -v '^ *+' conftest.err >conftest.er1
1878     cat conftest.er1 >&5
1879     mv -f conftest.er1 conftest.err
1880   fi
1881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882   test $ac_status = 0; } && {
1883          test -z "$ac_c_werror_flag" ||
1884          test ! -s conftest.err
1885        } && test -s conftest$ac_exeext && {
1886          test "$cross_compiling" = yes ||
1887          test -x conftest$ac_exeext
1888        }; then :
1889   ac_retval=0
1890 else
1891   $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894         ac_retval=1
1895 fi
1896   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1897   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1898   # interfere with the next link command; also delete a directory that is
1899   # left behind by Apple's compiler.  We do this before executing the actions.
1900   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902   as_fn_set_status $ac_retval
1903
1904 } # ac_fn_c_try_link
1905
1906 # ac_fn_c_check_func LINENO FUNC VAR
1907 # ----------------------------------
1908 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1909 ac_fn_c_check_func ()
1910 {
1911   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if eval \${$3+:} false; then :
1915   $as_echo_n "(cached) " >&6
1916 else
1917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h.  */
1919 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1921 #define $2 innocuous_$2
1922
1923 /* System header to define __stub macros and hopefully few prototypes,
1924     which can conflict with char $2 (); below.
1925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926     <limits.h> exists even on freestanding compilers.  */
1927
1928 #ifdef __STDC__
1929 # include <limits.h>
1930 #else
1931 # include <assert.h>
1932 #endif
1933
1934 #undef $2
1935
1936 /* Override any GCC internal prototype to avoid an error.
1937    Use char because int might match the return type of a GCC
1938    builtin and then its argument prototype would still apply.  */
1939 #ifdef __cplusplus
1940 extern "C"
1941 #endif
1942 char $2 ();
1943 /* The GNU C library defines this for functions which it implements
1944     to always fail with ENOSYS.  Some functions are actually named
1945     something starting with __ and the normal name is an alias.  */
1946 #if defined __stub_$2 || defined __stub___$2
1947 choke me
1948 #endif
1949
1950 int
1951 main ()
1952 {
1953 return $2 ();
1954   ;
1955   return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_link "$LINENO"; then :
1959   eval "$3=yes"
1960 else
1961   eval "$3=no"
1962 fi
1963 rm -f core conftest.err conftest.$ac_objext \
1964     conftest$ac_exeext conftest.$ac_ext
1965 fi
1966 eval ac_res=\$$3
1967                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971 } # ac_fn_c_check_func
1972
1973 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1974 # -------------------------------------------
1975 # Tests whether TYPE exists after having included INCLUDES, setting cache
1976 # variable VAR accordingly.
1977 ac_fn_c_check_type ()
1978 {
1979   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \${$3+:} false; then :
1983   $as_echo_n "(cached) " >&6
1984 else
1985   eval "$3=no"
1986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h.  */
1988 $4
1989 int
1990 main ()
1991 {
1992 if (sizeof ($2))
1993          return 0;
1994   ;
1995   return 0;
1996 }
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h.  */
2001 $4
2002 int
2003 main ()
2004 {
2005 if (sizeof (($2)))
2006             return 0;
2007   ;
2008   return 0;
2009 }
2010 _ACEOF
2011 if ac_fn_c_try_compile "$LINENO"; then :
2012
2013 else
2014   eval "$3=yes"
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 fi
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 fi
2020 eval ac_res=\$$3
2021                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024
2025 } # ac_fn_c_check_type
2026
2027 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2028 # ---------------------------------------------
2029 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2030 # accordingly.
2031 ac_fn_c_check_decl ()
2032 {
2033   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034   as_decl_name=`echo $2|sed 's/ *(.*//'`
2035   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2037 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2038 if eval \${$3+:} false; then :
2039   $as_echo_n "(cached) " >&6
2040 else
2041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h.  */
2043 $4
2044 int
2045 main ()
2046 {
2047 #ifndef $as_decl_name
2048 #ifdef __cplusplus
2049   (void) $as_decl_use;
2050 #else
2051   (void) $as_decl_name;
2052 #endif
2053 #endif
2054
2055   ;
2056   return 0;
2057 }
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060   eval "$3=yes"
2061 else
2062   eval "$3=no"
2063 fi
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 fi
2066 eval ac_res=\$$3
2067                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2069   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070
2071 } # ac_fn_c_check_decl
2072
2073 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2074 # ----------------------------------------------------
2075 # Tries to find if the field MEMBER exists in type AGGR, after including
2076 # INCLUDES, setting cache variable VAR accordingly.
2077 ac_fn_c_check_member ()
2078 {
2079   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2081 $as_echo_n "checking for $2.$3... " >&6; }
2082 if eval \${$4+:} false; then :
2083   $as_echo_n "(cached) " >&6
2084 else
2085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h.  */
2087 $5
2088 int
2089 main ()
2090 {
2091 static $2 ac_aggr;
2092 if (ac_aggr.$3)
2093 return 0;
2094   ;
2095   return 0;
2096 }
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099   eval "$4=yes"
2100 else
2101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h.  */
2103 $5
2104 int
2105 main ()
2106 {
2107 static $2 ac_aggr;
2108 if (sizeof ac_aggr.$3)
2109 return 0;
2110   ;
2111   return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115   eval "$4=yes"
2116 else
2117   eval "$4=no"
2118 fi
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 fi
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 fi
2123 eval ac_res=\$$4
2124                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 $as_echo "$ac_res" >&6; }
2126   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127
2128 } # ac_fn_c_check_member
2129 cat >config.log <<_ACEOF
2130 This file contains any messages produced by compilers while
2131 running configure, to aid debugging if configure makes a mistake.
2132
2133 It was created by unbound $as_me 1.4.20, which was
2134 generated by GNU Autoconf 2.69.  Invocation command line was
2135
2136   $ $0 $@
2137
2138 _ACEOF
2139 exec 5>>config.log
2140 {
2141 cat <<_ASUNAME
2142 ## --------- ##
2143 ## Platform. ##
2144 ## --------- ##
2145
2146 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2147 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2148 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2149 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2150 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2151
2152 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2153 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2154
2155 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2156 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2157 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2158 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2159 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2160 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2161 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2162
2163 _ASUNAME
2164
2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 for as_dir in $PATH
2167 do
2168   IFS=$as_save_IFS
2169   test -z "$as_dir" && as_dir=.
2170     $as_echo "PATH: $as_dir"
2171   done
2172 IFS=$as_save_IFS
2173
2174 } >&5
2175
2176 cat >&5 <<_ACEOF
2177
2178
2179 ## ----------- ##
2180 ## Core tests. ##
2181 ## ----------- ##
2182
2183 _ACEOF
2184
2185
2186 # Keep a trace of the command line.
2187 # Strip out --no-create and --no-recursion so they do not pile up.
2188 # Strip out --silent because we don't want to record it for future runs.
2189 # Also quote any args containing shell meta-characters.
2190 # Make two passes to allow for proper duplicate-argument suppression.
2191 ac_configure_args=
2192 ac_configure_args0=
2193 ac_configure_args1=
2194 ac_must_keep_next=false
2195 for ac_pass in 1 2
2196 do
2197   for ac_arg
2198   do
2199     case $ac_arg in
2200     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2201     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2202     | -silent | --silent | --silen | --sile | --sil)
2203       continue ;;
2204     *\'*)
2205       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2206     esac
2207     case $ac_pass in
2208     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2209     2)
2210       as_fn_append ac_configure_args1 " '$ac_arg'"
2211       if test $ac_must_keep_next = true; then
2212         ac_must_keep_next=false # Got value, back to normal.
2213       else
2214         case $ac_arg in
2215           *=* | --config-cache | -C | -disable-* | --disable-* \
2216           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2217           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2218           | -with-* | --with-* | -without-* | --without-* | --x)
2219             case "$ac_configure_args0 " in
2220               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2221             esac
2222             ;;
2223           -* ) ac_must_keep_next=true ;;
2224         esac
2225       fi
2226       as_fn_append ac_configure_args " '$ac_arg'"
2227       ;;
2228     esac
2229   done
2230 done
2231 { ac_configure_args0=; unset ac_configure_args0;}
2232 { ac_configure_args1=; unset ac_configure_args1;}
2233
2234 # When interrupted or exit'd, cleanup temporary files, and complete
2235 # config.log.  We remove comments because anyway the quotes in there
2236 # would cause problems or look ugly.
2237 # WARNING: Use '\'' to represent an apostrophe within the trap.
2238 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2239 trap 'exit_status=$?
2240   # Save into config.log some information that might help in debugging.
2241   {
2242     echo
2243
2244     $as_echo "## ---------------- ##
2245 ## Cache variables. ##
2246 ## ---------------- ##"
2247     echo
2248     # The following way of writing the cache mishandles newlines in values,
2249 (
2250   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2251     eval ac_val=\$$ac_var
2252     case $ac_val in #(
2253     *${as_nl}*)
2254       case $ac_var in #(
2255       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2256 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2257       esac
2258       case $ac_var in #(
2259       _ | IFS | as_nl) ;; #(
2260       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2261       *) { eval $ac_var=; unset $ac_var;} ;;
2262       esac ;;
2263     esac
2264   done
2265   (set) 2>&1 |
2266     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2267     *${as_nl}ac_space=\ *)
2268       sed -n \
2269         "s/'\''/'\''\\\\'\'''\''/g;
2270           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2271       ;; #(
2272     *)
2273       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2274       ;;
2275     esac |
2276     sort
2277 )
2278     echo
2279
2280     $as_echo "## ----------------- ##
2281 ## Output variables. ##
2282 ## ----------------- ##"
2283     echo
2284     for ac_var in $ac_subst_vars
2285     do
2286       eval ac_val=\$$ac_var
2287       case $ac_val in
2288       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2289       esac
2290       $as_echo "$ac_var='\''$ac_val'\''"
2291     done | sort
2292     echo
2293
2294     if test -n "$ac_subst_files"; then
2295       $as_echo "## ------------------- ##
2296 ## File substitutions. ##
2297 ## ------------------- ##"
2298       echo
2299       for ac_var in $ac_subst_files
2300       do
2301         eval ac_val=\$$ac_var
2302         case $ac_val in
2303         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2304         esac
2305         $as_echo "$ac_var='\''$ac_val'\''"
2306       done | sort
2307       echo
2308     fi
2309
2310     if test -s confdefs.h; then
2311       $as_echo "## ----------- ##
2312 ## confdefs.h. ##
2313 ## ----------- ##"
2314       echo
2315       cat confdefs.h
2316       echo
2317     fi
2318     test "$ac_signal" != 0 &&
2319       $as_echo "$as_me: caught signal $ac_signal"
2320     $as_echo "$as_me: exit $exit_status"
2321   } >&5
2322   rm -f core *.core core.conftest.* &&
2323     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2324     exit $exit_status
2325 ' 0
2326 for ac_signal in 1 2 13 15; do
2327   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2328 done
2329 ac_signal=0
2330
2331 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2332 rm -f -r conftest* confdefs.h
2333
2334 $as_echo "/* confdefs.h */" > confdefs.h
2335
2336 # Predefined preprocessor variables.
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_NAME "$PACKAGE_NAME"
2340 _ACEOF
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2344 _ACEOF
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2348 _ACEOF
2349
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_STRING "$PACKAGE_STRING"
2352 _ACEOF
2353
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2356 _ACEOF
2357
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_URL "$PACKAGE_URL"
2360 _ACEOF
2361
2362
2363 # Let the site file select an alternate cache file if it wants to.
2364 # Prefer an explicitly selected file to automatically selected ones.
2365 ac_site_file1=NONE
2366 ac_site_file2=NONE
2367 if test -n "$CONFIG_SITE"; then
2368   # We do not want a PATH search for config.site.
2369   case $CONFIG_SITE in #((
2370     -*)  ac_site_file1=./$CONFIG_SITE;;
2371     */*) ac_site_file1=$CONFIG_SITE;;
2372     *)   ac_site_file1=./$CONFIG_SITE;;
2373   esac
2374 elif test "x$prefix" != xNONE; then
2375   ac_site_file1=$prefix/share/config.site
2376   ac_site_file2=$prefix/etc/config.site
2377 else
2378   ac_site_file1=$ac_default_prefix/share/config.site
2379   ac_site_file2=$ac_default_prefix/etc/config.site
2380 fi
2381 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2382 do
2383   test "x$ac_site_file" = xNONE && continue
2384   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2385     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2386 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2387     sed 's/^/| /' "$ac_site_file" >&5
2388     . "$ac_site_file" \
2389       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2391 as_fn_error $? "failed to load site script $ac_site_file
2392 See \`config.log' for more details" "$LINENO" 5; }
2393   fi
2394 done
2395
2396 if test -r "$cache_file"; then
2397   # Some versions of bash will fail to source /dev/null (special files
2398   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2399   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2400     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2401 $as_echo "$as_me: loading cache $cache_file" >&6;}
2402     case $cache_file in
2403       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2404       *)                      . "./$cache_file";;
2405     esac
2406   fi
2407 else
2408   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2409 $as_echo "$as_me: creating cache $cache_file" >&6;}
2410   >$cache_file
2411 fi
2412
2413 # Check that the precious variables saved in the cache have kept the same
2414 # value.
2415 ac_cache_corrupted=false
2416 for ac_var in $ac_precious_vars; do
2417   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2418   eval ac_new_set=\$ac_env_${ac_var}_set
2419   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2420   eval ac_new_val=\$ac_env_${ac_var}_value
2421   case $ac_old_set,$ac_new_set in
2422     set,)
2423       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2424 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2425       ac_cache_corrupted=: ;;
2426     ,set)
2427       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2428 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2429       ac_cache_corrupted=: ;;
2430     ,);;
2431     *)
2432       if test "x$ac_old_val" != "x$ac_new_val"; then
2433         # differences in whitespace do not lead to failure.
2434         ac_old_val_w=`echo x $ac_old_val`
2435         ac_new_val_w=`echo x $ac_new_val`
2436         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2437           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2438 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2439           ac_cache_corrupted=:
2440         else
2441           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2442 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2443           eval $ac_var=\$ac_old_val
2444         fi
2445         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2446 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2447         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2448 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2449       fi;;
2450   esac
2451   # Pass precious variables to config.status.
2452   if test "$ac_new_set" = set; then
2453     case $ac_new_val in
2454     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2455     *) ac_arg=$ac_var=$ac_new_val ;;
2456     esac
2457     case " $ac_configure_args " in
2458       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2459       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2460     esac
2461   fi
2462 done
2463 if $ac_cache_corrupted; then
2464   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2466   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2467 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2468   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2469 fi
2470 ## -------------------- ##
2471 ## Main body of script. ##
2472 ## -------------------- ##
2473
2474 ac_ext=c
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479
2480
2481
2482 LIBUNBOUND_CURRENT=3
2483 LIBUNBOUND_REVISION=5
2484 LIBUNBOUND_AGE=1
2485 # 1.0.0 had 0:12:0
2486 # 1.0.1 had 0:13:0
2487 # 1.0.2 had 0:14:0
2488 # 1.1.0 had 0:15:0
2489 # 1.1.1 had 0:16:0
2490 # 1.2.0 had 0:17:0
2491 # 1.2.1 had 0:18:0
2492 # 1.3.0 had 1:0:0   # ub_cancel and -export-symbols.
2493 # 1.3.1 had 1:1:0
2494 # 1.3.2 had 1:2:0
2495 # 1.3.3 had 1:3:0
2496 # 1.3.4 had 1:4:0
2497 # 1.4.0-snapshots had 1:5:0
2498 # 1.4.0 had 1:5:0 (not 2:0:0)   # ub_result.why_bogus
2499 # 1.4.1 had 2:1:0
2500 # 1.4.2 had 2:2:0
2501 # 1.4.3 had 2:3:0
2502 # 1.4.4 had 2:4:0
2503 # 1.4.5 had 2:5:0
2504 # 1.4.6 had 2:6:0
2505 # 1.4.7 had 2:7:0
2506 # 1.4.8 had 2:8:0
2507 # 1.4.9 had 2:9:0
2508 # 1.4.10 had 2:10:0
2509 # 1.4.11 had 2:11:0
2510 # 1.4.12 had 2:12:0
2511 # 1.4.13 had 2:13:0
2512 # and 1.4.13p1 and 1.4.13.p2
2513 # 1.4.14 had 2:14:0
2514 # 1.4.15 had 3:0:1 # adds ub_version()
2515 # 1.4.16 had 3:1:1
2516 # 1.4.17 had 3:2:1
2517 # 1.4.18 had 3:3:1
2518 # 1.4.19 had 3:4:1
2519 # 1.4.20 had 4:0:2 # adds libunbound.ttl
2520
2521 #   Current  -- the number of the binary API that we're implementing
2522 #   Revision -- which iteration of the implementation of the binary
2523 #               API are we supplying?
2524 #   Age      -- How many previous binary API versions do we also
2525 #               support?
2526 #
2527 # If we release a new version that does not change the binary API,
2528 # increment Revision.
2529 #
2530 # If we release a new version that changes the binary API, but does
2531 # not break programs compiled against the old binary API, increment
2532 # Current and Age.  Set Revision to 0, since this is the first
2533 # implementation of the new API.
2534 #
2535 # Otherwise, we're changing the binary API and breaking bakward
2536 # compatibility with old binaries.  Increment Current.  Set Age to 0,
2537 # since we're backward compatible with no previous APIs.  Set Revision
2538 # to 0 too.
2539
2540
2541
2542
2543 CFLAGS="$CFLAGS"
2544 ac_ext=c
2545 ac_cpp='$CPP $CPPFLAGS'
2546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2549 if test -n "$ac_tool_prefix"; then
2550   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2551 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2553 $as_echo_n "checking for $ac_word... " >&6; }
2554 if ${ac_cv_prog_CC+:} false; then :
2555   $as_echo_n "(cached) " >&6
2556 else
2557   if test -n "$CC"; then
2558   ac_cv_prog_CC="$CC" # Let the user override the test.
2559 else
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2562 do
2563   IFS=$as_save_IFS
2564   test -z "$as_dir" && as_dir=.
2565     for ac_exec_ext in '' $ac_executable_extensions; do
2566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2567     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569     break 2
2570   fi
2571 done
2572   done
2573 IFS=$as_save_IFS
2574
2575 fi
2576 fi
2577 CC=$ac_cv_prog_CC
2578 if test -n "$CC"; then
2579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2580 $as_echo "$CC" >&6; }
2581 else
2582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583 $as_echo "no" >&6; }
2584 fi
2585
2586
2587 fi
2588 if test -z "$ac_cv_prog_CC"; then
2589   ac_ct_CC=$CC
2590   # Extract the first word of "gcc", so it can be a program name with args.
2591 set dummy gcc; ac_word=$2
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2593 $as_echo_n "checking for $ac_word... " >&6; }
2594 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2595   $as_echo_n "(cached) " >&6
2596 else
2597   if test -n "$ac_ct_CC"; then
2598   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2599 else
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 for as_dir in $PATH
2602 do
2603   IFS=$as_save_IFS
2604   test -z "$as_dir" && as_dir=.
2605     for ac_exec_ext in '' $ac_executable_extensions; do
2606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2607     ac_cv_prog_ac_ct_CC="gcc"
2608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2609     break 2
2610   fi
2611 done
2612   done
2613 IFS=$as_save_IFS
2614
2615 fi
2616 fi
2617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2618 if test -n "$ac_ct_CC"; then
2619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2620 $as_echo "$ac_ct_CC" >&6; }
2621 else
2622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623 $as_echo "no" >&6; }
2624 fi
2625
2626   if test "x$ac_ct_CC" = x; then
2627     CC=""
2628   else
2629     case $cross_compiling:$ac_tool_warned in
2630 yes:)
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2633 ac_tool_warned=yes ;;
2634 esac
2635     CC=$ac_ct_CC
2636   fi
2637 else
2638   CC="$ac_cv_prog_CC"
2639 fi
2640
2641 if test -z "$CC"; then
2642           if test -n "$ac_tool_prefix"; then
2643     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2644 set dummy ${ac_tool_prefix}cc; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if ${ac_cv_prog_CC+:} false; then :
2648   $as_echo_n "(cached) " >&6
2649 else
2650   if test -n "$CC"; then
2651   ac_cv_prog_CC="$CC" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658     for ac_exec_ext in '' $ac_executable_extensions; do
2659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660     ac_cv_prog_CC="${ac_tool_prefix}cc"
2661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665   done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 CC=$ac_cv_prog_CC
2671 if test -n "$CC"; then
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2673 $as_echo "$CC" >&6; }
2674 else
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2677 fi
2678
2679
2680   fi
2681 fi
2682 if test -z "$CC"; then
2683   # Extract the first word of "cc", so it can be a program name with args.
2684 set dummy cc; ac_word=$2
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686 $as_echo_n "checking for $ac_word... " >&6; }
2687 if ${ac_cv_prog_CC+:} false; then :
2688   $as_echo_n "(cached) " >&6
2689 else
2690   if test -n "$CC"; then
2691   ac_cv_prog_CC="$CC" # Let the user override the test.
2692 else
2693   ac_prog_rejected=no
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697   IFS=$as_save_IFS
2698   test -z "$as_dir" && as_dir=.
2699     for ac_exec_ext in '' $ac_executable_extensions; do
2700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2701     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2702        ac_prog_rejected=yes
2703        continue
2704      fi
2705     ac_cv_prog_CC="cc"
2706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707     break 2
2708   fi
2709 done
2710   done
2711 IFS=$as_save_IFS
2712
2713 if test $ac_prog_rejected = yes; then
2714   # We found a bogon in the path, so make sure we never use it.
2715   set dummy $ac_cv_prog_CC
2716   shift
2717   if test $# != 0; then
2718     # We chose a different compiler from the bogus one.
2719     # However, it has the same basename, so the bogon will be chosen
2720     # first if we set CC to just the basename; use the full file name.
2721     shift
2722     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2723   fi
2724 fi
2725 fi
2726 fi
2727 CC=$ac_cv_prog_CC
2728 if test -n "$CC"; then
2729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2730 $as_echo "$CC" >&6; }
2731 else
2732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2734 fi
2735
2736
2737 fi
2738 if test -z "$CC"; then
2739   if test -n "$ac_tool_prefix"; then
2740   for ac_prog in cl.exe
2741   do
2742     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if ${ac_cv_prog_CC+:} false; then :
2747   $as_echo_n "(cached) " >&6
2748 else
2749   if test -n "$CC"; then
2750   ac_cv_prog_CC="$CC" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755   IFS=$as_save_IFS
2756   test -z "$as_dir" && as_dir=.
2757     for ac_exec_ext in '' $ac_executable_extensions; do
2758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761     break 2
2762   fi
2763 done
2764   done
2765 IFS=$as_save_IFS
2766
2767 fi
2768 fi
2769 CC=$ac_cv_prog_CC
2770 if test -n "$CC"; then
2771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2772 $as_echo "$CC" >&6; }
2773 else
2774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775 $as_echo "no" >&6; }
2776 fi
2777
2778
2779     test -n "$CC" && break
2780   done
2781 fi
2782 if test -z "$CC"; then
2783   ac_ct_CC=$CC
2784   for ac_prog in cl.exe
2785 do
2786   # Extract the first word of "$ac_prog", so it can be a program name with args.
2787 set dummy $ac_prog; ac_word=$2
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789 $as_echo_n "checking for $ac_word... " >&6; }
2790 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2791   $as_echo_n "(cached) " >&6
2792 else
2793   if test -n "$ac_ct_CC"; then
2794   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799   IFS=$as_save_IFS
2800   test -z "$as_dir" && as_dir=.
2801     for ac_exec_ext in '' $ac_executable_extensions; do
2802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803     ac_cv_prog_ac_ct_CC="$ac_prog"
2804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805     break 2
2806   fi
2807 done
2808   done
2809 IFS=$as_save_IFS
2810
2811 fi
2812 fi
2813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2814 if test -n "$ac_ct_CC"; then
2815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2816 $as_echo "$ac_ct_CC" >&6; }
2817 else
2818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819 $as_echo "no" >&6; }
2820 fi
2821
2822
2823   test -n "$ac_ct_CC" && break
2824 done
2825
2826   if test "x$ac_ct_CC" = x; then
2827     CC=""
2828   else
2829     case $cross_compiling:$ac_tool_warned in
2830 yes:)
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2833 ac_tool_warned=yes ;;
2834 esac
2835     CC=$ac_ct_CC
2836   fi
2837 fi
2838
2839 fi
2840
2841
2842 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2844 as_fn_error $? "no acceptable C compiler found in \$PATH
2845 See \`config.log' for more details" "$LINENO" 5; }
2846
2847 # Provide some information about the compiler.
2848 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2849 set X $ac_compile
2850 ac_compiler=$2
2851 for ac_option in --version -v -V -qversion; do
2852   { { ac_try="$ac_compiler $ac_option >&5"
2853 case "(($ac_try" in
2854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855   *) ac_try_echo=$ac_try;;
2856 esac
2857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2858 $as_echo "$ac_try_echo"; } >&5
2859   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2860   ac_status=$?
2861   if test -s conftest.err; then
2862     sed '10a\
2863 ... rest of stderr output deleted ...
2864          10q' conftest.err >conftest.er1
2865     cat conftest.er1 >&5
2866   fi
2867   rm -f conftest.er1 conftest.err
2868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2869   test $ac_status = 0; }
2870 done
2871
2872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2873 /* end confdefs.h.  */
2874
2875 int
2876 main ()
2877 {
2878
2879   ;
2880   return 0;
2881 }
2882 _ACEOF
2883 ac_clean_files_save=$ac_clean_files
2884 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2885 # Try to create an executable without -o first, disregard a.out.
2886 # It will help us diagnose broken compilers, and finding out an intuition
2887 # of exeext.
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2889 $as_echo_n "checking whether the C compiler works... " >&6; }
2890 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2891
2892 # The possible output files:
2893 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2894
2895 ac_rmfiles=
2896 for ac_file in $ac_files
2897 do
2898   case $ac_file in
2899     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2900     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2901   esac
2902 done
2903 rm -f $ac_rmfiles
2904
2905 if { { ac_try="$ac_link_default"
2906 case "(($ac_try" in
2907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908   *) ac_try_echo=$ac_try;;
2909 esac
2910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2911 $as_echo "$ac_try_echo"; } >&5
2912   (eval "$ac_link_default") 2>&5
2913   ac_status=$?
2914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2915   test $ac_status = 0; }; then :
2916   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2917 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2918 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2919 # so that the user can short-circuit this test for compilers unknown to
2920 # Autoconf.
2921 for ac_file in $ac_files ''
2922 do
2923   test -f "$ac_file" || continue
2924   case $ac_file in
2925     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2926         ;;
2927     [ab].out )
2928         # We found the default executable, but exeext='' is most
2929         # certainly right.
2930         break;;
2931     *.* )
2932         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2933         then :; else
2934            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2935         fi
2936         # We set ac_cv_exeext here because the later test for it is not
2937         # safe: cross compilers may not add the suffix if given an `-o'
2938         # argument, so we may need to know it at that point already.
2939         # Even if this section looks crufty: it has the advantage of
2940         # actually working.
2941         break;;
2942     * )
2943         break;;
2944   esac
2945 done
2946 test "$ac_cv_exeext" = no && ac_cv_exeext=
2947
2948 else
2949   ac_file=''
2950 fi
2951 if test -z "$ac_file"; then :
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2954 $as_echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2956
2957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2959 as_fn_error 77 "C compiler cannot create executables
2960 See \`config.log' for more details" "$LINENO" 5; }
2961 else
2962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2963 $as_echo "yes" >&6; }
2964 fi
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2966 $as_echo_n "checking for C compiler default output file name... " >&6; }
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2968 $as_echo "$ac_file" >&6; }
2969 ac_exeext=$ac_cv_exeext
2970
2971 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2972 ac_clean_files=$ac_clean_files_save
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2974 $as_echo_n "checking for suffix of executables... " >&6; }
2975 if { { ac_try="$ac_link"
2976 case "(($ac_try" in
2977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978   *) ac_try_echo=$ac_try;;
2979 esac
2980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2981 $as_echo "$ac_try_echo"; } >&5
2982   (eval "$ac_link") 2>&5
2983   ac_status=$?
2984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2985   test $ac_status = 0; }; then :
2986   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2987 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2988 # work properly (i.e., refer to `conftest.exe'), while it won't with
2989 # `rm'.
2990 for ac_file in conftest.exe conftest conftest.*; do
2991   test -f "$ac_file" || continue
2992   case $ac_file in
2993     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2994     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2995           break;;
2996     * ) break;;
2997   esac
2998 done
2999 else
3000   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3002 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3003 See \`config.log' for more details" "$LINENO" 5; }
3004 fi
3005 rm -f conftest conftest$ac_cv_exeext
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3007 $as_echo "$ac_cv_exeext" >&6; }
3008
3009 rm -f conftest.$ac_ext
3010 EXEEXT=$ac_cv_exeext
3011 ac_exeext=$EXEEXT
3012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3013 /* end confdefs.h.  */
3014 #include <stdio.h>
3015 int
3016 main ()
3017 {
3018 FILE *f = fopen ("conftest.out", "w");
3019  return ferror (f) || fclose (f) != 0;
3020
3021   ;
3022   return 0;
3023 }
3024 _ACEOF
3025 ac_clean_files="$ac_clean_files conftest.out"
3026 # Check that the compiler produces executables we can run.  If not, either
3027 # the compiler is broken, or we cross compile.
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3029 $as_echo_n "checking whether we are cross compiling... " >&6; }
3030 if test "$cross_compiling" != yes; then
3031   { { ac_try="$ac_link"
3032 case "(($ac_try" in
3033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034   *) ac_try_echo=$ac_try;;
3035 esac
3036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037 $as_echo "$ac_try_echo"; } >&5
3038   (eval "$ac_link") 2>&5
3039   ac_status=$?
3040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041   test $ac_status = 0; }
3042   if { ac_try='./conftest$ac_cv_exeext'
3043   { { case "(($ac_try" in
3044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045   *) ac_try_echo=$ac_try;;
3046 esac
3047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3048 $as_echo "$ac_try_echo"; } >&5
3049   (eval "$ac_try") 2>&5
3050   ac_status=$?
3051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3052   test $ac_status = 0; }; }; then
3053     cross_compiling=no
3054   else
3055     if test "$cross_compiling" = maybe; then
3056         cross_compiling=yes
3057     else
3058         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060 as_fn_error $? "cannot run C compiled programs.
3061 If you meant to cross compile, use \`--host'.
3062 See \`config.log' for more details" "$LINENO" 5; }
3063     fi
3064   fi
3065 fi
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3067 $as_echo "$cross_compiling" >&6; }
3068
3069 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3070 ac_clean_files=$ac_clean_files_save
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3072 $as_echo_n "checking for suffix of object files... " >&6; }
3073 if ${ac_cv_objext+:} false; then :
3074   $as_echo_n "(cached) " >&6
3075 else
3076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077 /* end confdefs.h.  */
3078
3079 int
3080 main ()
3081 {
3082
3083   ;
3084   return 0;
3085 }
3086 _ACEOF
3087 rm -f conftest.o conftest.obj
3088 if { { ac_try="$ac_compile"
3089 case "(($ac_try" in
3090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091   *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3094 $as_echo "$ac_try_echo"; } >&5
3095   (eval "$ac_compile") 2>&5
3096   ac_status=$?
3097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098   test $ac_status = 0; }; then :
3099   for ac_file in conftest.o conftest.obj conftest.*; do
3100   test -f "$ac_file" || continue;
3101   case $ac_file in
3102     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3103     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3104        break;;
3105   esac
3106 done
3107 else
3108   $as_echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3110
3111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3113 as_fn_error $? "cannot compute suffix of object files: cannot compile
3114 See \`config.log' for more details" "$LINENO" 5; }
3115 fi
3116 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3117 fi
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3119 $as_echo "$ac_cv_objext" >&6; }
3120 OBJEXT=$ac_cv_objext
3121 ac_objext=$OBJEXT
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3123 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3124 if ${ac_cv_c_compiler_gnu+:} false; then :
3125   $as_echo_n "(cached) " >&6
3126 else
3127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3128 /* end confdefs.h.  */
3129
3130 int
3131 main ()
3132 {
3133 #ifndef __GNUC__
3134        choke me
3135 #endif
3136
3137   ;
3138   return 0;
3139 }
3140 _ACEOF
3141 if ac_fn_c_try_compile "$LINENO"; then :
3142   ac_compiler_gnu=yes
3143 else
3144   ac_compiler_gnu=no
3145 fi
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3148
3149 fi
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3151 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3152 if test $ac_compiler_gnu = yes; then
3153   GCC=yes
3154 else
3155   GCC=
3156 fi
3157 ac_test_CFLAGS=${CFLAGS+set}
3158 ac_save_CFLAGS=$CFLAGS
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3160 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3161 if ${ac_cv_prog_cc_g+:} false; then :
3162   $as_echo_n "(cached) " >&6
3163 else
3164   ac_save_c_werror_flag=$ac_c_werror_flag
3165    ac_c_werror_flag=yes
3166    ac_cv_prog_cc_g=no
3167    CFLAGS="-g"
3168    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169 /* end confdefs.h.  */
3170
3171 int
3172 main ()
3173 {
3174
3175   ;
3176   return 0;
3177 }
3178 _ACEOF
3179 if ac_fn_c_try_compile "$LINENO"; then :
3180   ac_cv_prog_cc_g=yes
3181 else
3182   CFLAGS=""
3183       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h.  */
3185
3186 int
3187 main ()
3188 {
3189
3190   ;
3191   return 0;
3192 }
3193 _ACEOF
3194 if ac_fn_c_try_compile "$LINENO"; then :
3195
3196 else
3197   ac_c_werror_flag=$ac_save_c_werror_flag
3198          CFLAGS="-g"
3199          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h.  */
3201
3202 int
3203 main ()
3204 {
3205
3206   ;
3207   return 0;
3208 }
3209 _ACEOF
3210 if ac_fn_c_try_compile "$LINENO"; then :
3211   ac_cv_prog_cc_g=yes
3212 fi
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 fi
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 fi
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218    ac_c_werror_flag=$ac_save_c_werror_flag
3219 fi
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3221 $as_echo "$ac_cv_prog_cc_g" >&6; }
3222 if test "$ac_test_CFLAGS" = set; then
3223   CFLAGS=$ac_save_CFLAGS
3224 elif test $ac_cv_prog_cc_g = yes; then
3225   if test "$GCC" = yes; then
3226     CFLAGS="-g -O2"
3227   else
3228     CFLAGS="-g"
3229   fi
3230 else
3231   if test "$GCC" = yes; then
3232     CFLAGS="-O2"
3233   else
3234     CFLAGS=
3235   fi
3236 fi
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3238 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3239 if ${ac_cv_prog_cc_c89+:} false; then :
3240   $as_echo_n "(cached) " >&6
3241 else
3242   ac_cv_prog_cc_c89=no
3243 ac_save_CC=$CC
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h.  */
3246 #include <stdarg.h>
3247 #include <stdio.h>
3248 struct stat;
3249 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3250 struct buf { int x; };
3251 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3252 static char *e (p, i)
3253      char **p;
3254      int i;
3255 {
3256   return p[i];
3257 }
3258 static char *f (char * (*g) (char **, int), char **p, ...)
3259 {
3260   char *s;
3261   va_list v;
3262   va_start (v,p);
3263   s = g (p, va_arg (v,int));
3264   va_end (v);
3265   return s;
3266 }
3267
3268 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3269    function prototypes and stuff, but not '\xHH' hex character constants.
3270    These don't provoke an error unfortunately, instead are silently treated
3271    as 'x'.  The following induces an error, until -std is added to get
3272    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3273    array size at least.  It's necessary to write '\x00'==0 to get something
3274    that's true only with -std.  */
3275 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3276
3277 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3278    inside strings and character constants.  */
3279 #define FOO(x) 'x'
3280 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3281
3282 int test (int i, double x);
3283 struct s1 {int (*f) (int a);};
3284 struct s2 {int (*f) (double a);};
3285 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3286 int argc;
3287 char **argv;
3288 int
3289 main ()
3290 {
3291 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3292   ;
3293   return 0;
3294 }
3295 _ACEOF
3296 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3297         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3298 do
3299   CC="$ac_save_CC $ac_arg"
3300   if ac_fn_c_try_compile "$LINENO"; then :
3301   ac_cv_prog_cc_c89=$ac_arg
3302 fi
3303 rm -f core conftest.err conftest.$ac_objext
3304   test "x$ac_cv_prog_cc_c89" != "xno" && break
3305 done
3306 rm -f conftest.$ac_ext
3307 CC=$ac_save_CC
3308
3309 fi
3310 # AC_CACHE_VAL
3311 case "x$ac_cv_prog_cc_c89" in
3312   x)
3313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3314 $as_echo "none needed" >&6; } ;;
3315   xno)
3316     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3317 $as_echo "unsupported" >&6; } ;;
3318   *)
3319     CC="$CC $ac_cv_prog_cc_c89"
3320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3321 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3322 esac
3323 if test "x$ac_cv_prog_cc_c89" != xno; then :
3324
3325 fi
3326
3327 ac_ext=c
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332
3333
3334 ac_ext=c
3335 ac_cpp='$CPP $CPPFLAGS'
3336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3340 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3341 # On Suns, sometimes $CPP names a directory.
3342 if test -n "$CPP" && test -d "$CPP"; then
3343   CPP=
3344 fi
3345 if test -z "$CPP"; then
3346   if ${ac_cv_prog_CPP+:} false; then :
3347   $as_echo_n "(cached) " >&6
3348 else
3349       # Double quotes because CPP needs to be expanded
3350     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3351     do
3352       ac_preproc_ok=false
3353 for ac_c_preproc_warn_flag in '' yes
3354 do
3355   # Use a header file that comes with gcc, so configuring glibc
3356   # with a fresh cross-compiler works.
3357   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3358   # <limits.h> exists even on freestanding compilers.
3359   # On the NeXT, cc -E runs the code through the compiler's parser,
3360   # not just through cpp. "Syntax error" is here to catch this case.
3361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h.  */
3363 #ifdef __STDC__
3364 # include <limits.h>
3365 #else
3366 # include <assert.h>
3367 #endif
3368                      Syntax error
3369 _ACEOF
3370 if ac_fn_c_try_cpp "$LINENO"; then :
3371
3372 else
3373   # Broken: fails on valid input.
3374 continue
3375 fi
3376 rm -f conftest.err conftest.i conftest.$ac_ext
3377
3378   # OK, works on sane cases.  Now check whether nonexistent headers
3379   # can be detected and how.
3380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h.  */
3382 #include <ac_nonexistent.h>
3383 _ACEOF
3384 if ac_fn_c_try_cpp "$LINENO"; then :
3385   # Broken: success on invalid input.
3386 continue
3387 else
3388   # Passes both tests.
3389 ac_preproc_ok=:
3390 break
3391 fi
3392 rm -f conftest.err conftest.i conftest.$ac_ext
3393
3394 done
3395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3396 rm -f conftest.i conftest.err conftest.$ac_ext
3397 if $ac_preproc_ok; then :
3398   break
3399 fi
3400
3401     done
3402     ac_cv_prog_CPP=$CPP
3403
3404 fi
3405   CPP=$ac_cv_prog_CPP
3406 else
3407   ac_cv_prog_CPP=$CPP
3408 fi
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3410 $as_echo "$CPP" >&6; }
3411 ac_preproc_ok=false
3412 for ac_c_preproc_warn_flag in '' yes
3413 do
3414   # Use a header file that comes with gcc, so configuring glibc
3415   # with a fresh cross-compiler works.
3416   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3417   # <limits.h> exists even on freestanding compilers.
3418   # On the NeXT, cc -E runs the code through the compiler's parser,
3419   # not just through cpp. "Syntax error" is here to catch this case.
3420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h.  */
3422 #ifdef __STDC__
3423 # include <limits.h>
3424 #else
3425 # include <assert.h>
3426 #endif
3427                      Syntax error
3428 _ACEOF
3429 if ac_fn_c_try_cpp "$LINENO"; then :
3430
3431 else
3432   # Broken: fails on valid input.
3433 continue
3434 fi
3435 rm -f conftest.err conftest.i conftest.$ac_ext
3436
3437   # OK, works on sane cases.  Now check whether nonexistent headers
3438   # can be detected and how.
3439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h.  */
3441 #include <ac_nonexistent.h>
3442 _ACEOF
3443 if ac_fn_c_try_cpp "$LINENO"; then :
3444   # Broken: success on invalid input.
3445 continue
3446 else
3447   # Passes both tests.
3448 ac_preproc_ok=:
3449 break
3450 fi
3451 rm -f conftest.err conftest.i conftest.$ac_ext
3452
3453 done
3454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3455 rm -f conftest.i conftest.err conftest.$ac_ext
3456 if $ac_preproc_ok; then :
3457
3458 else
3459   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3462 See \`config.log' for more details" "$LINENO" 5; }
3463 fi
3464
3465 ac_ext=c
3466 ac_cpp='$CPP $CPPFLAGS'
3467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3470
3471
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3473 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3474 if ${ac_cv_path_GREP+:} false; then :
3475   $as_echo_n "(cached) " >&6
3476 else
3477   if test -z "$GREP"; then
3478   ac_path_GREP_found=false
3479   # Loop through the user's path and test for each of PROGNAME-LIST
3480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3482 do
3483   IFS=$as_save_IFS
3484   test -z "$as_dir" && as_dir=.
3485     for ac_prog in grep ggrep; do
3486     for ac_exec_ext in '' $ac_executable_extensions; do
3487       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3488       as_fn_executable_p "$ac_path_GREP" || continue
3489 # Check for GNU ac_path_GREP and select it if it is found.
3490   # Check for GNU $ac_path_GREP
3491 case `"$ac_path_GREP" --version 2>&1` in
3492 *GNU*)
3493   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3494 *)
3495   ac_count=0
3496   $as_echo_n 0123456789 >"conftest.in"
3497   while :
3498   do
3499     cat "conftest.in" "conftest.in" >"conftest.tmp"
3500     mv "conftest.tmp" "conftest.in"
3501     cp "conftest.in" "conftest.nl"
3502     $as_echo 'GREP' >> "conftest.nl"
3503     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3504     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3505     as_fn_arith $ac_count + 1 && ac_count=$as_val
3506     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3507       # Best one so far, save it but keep looking for a better one
3508       ac_cv_path_GREP="$ac_path_GREP"
3509       ac_path_GREP_max=$ac_count
3510     fi
3511     # 10*(2^10) chars as input seems more than enough
3512     test $ac_count -gt 10 && break
3513   done
3514   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3515 esac
3516
3517       $ac_path_GREP_found && break 3
3518     done
3519   done
3520   done
3521 IFS=$as_save_IFS
3522   if test -z "$ac_cv_path_GREP"; then
3523     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3524   fi
3525 else
3526   ac_cv_path_GREP=$GREP
3527 fi
3528
3529 fi
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3531 $as_echo "$ac_cv_path_GREP" >&6; }
3532  GREP="$ac_cv_path_GREP"
3533
3534
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3536 $as_echo_n "checking for egrep... " >&6; }
3537 if ${ac_cv_path_EGREP+:} false; then :
3538   $as_echo_n "(cached) " >&6
3539 else
3540   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3541    then ac_cv_path_EGREP="$GREP -E"
3542    else
3543      if test -z "$EGREP"; then
3544   ac_path_EGREP_found=false
3545   # Loop through the user's path and test for each of PROGNAME-LIST
3546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3548 do
3549   IFS=$as_save_IFS
3550   test -z "$as_dir" && as_dir=.
3551     for ac_prog in egrep; do
3552     for ac_exec_ext in '' $ac_executable_extensions; do
3553       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3554       as_fn_executable_p "$ac_path_EGREP" || continue
3555 # Check for GNU ac_path_EGREP and select it if it is found.
3556   # Check for GNU $ac_path_EGREP
3557 case `"$ac_path_EGREP" --version 2>&1` in
3558 *GNU*)
3559   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3560 *)
3561   ac_count=0
3562   $as_echo_n 0123456789 >"conftest.in"
3563   while :
3564   do
3565     cat "conftest.in" "conftest.in" >"conftest.tmp"
3566     mv "conftest.tmp" "conftest.in"
3567     cp "conftest.in" "conftest.nl"
3568     $as_echo 'EGREP' >> "conftest.nl"
3569     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3570     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3571     as_fn_arith $ac_count + 1 && ac_count=$as_val
3572     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3573       # Best one so far, save it but keep looking for a better one
3574       ac_cv_path_EGREP="$ac_path_EGREP"
3575       ac_path_EGREP_max=$ac_count
3576     fi
3577     # 10*(2^10) chars as input seems more than enough
3578     test $ac_count -gt 10 && break
3579   done
3580   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3581 esac
3582
3583       $ac_path_EGREP_found && break 3
3584     done
3585   done
3586   done
3587 IFS=$as_save_IFS
3588   if test -z "$ac_cv_path_EGREP"; then
3589     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3590   fi
3591 else
3592   ac_cv_path_EGREP=$EGREP
3593 fi
3594
3595    fi
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3598 $as_echo "$ac_cv_path_EGREP" >&6; }
3599  EGREP="$ac_cv_path_EGREP"
3600
3601
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3603 $as_echo_n "checking for ANSI C header files... " >&6; }
3604 if ${ac_cv_header_stdc+:} false; then :
3605   $as_echo_n "(cached) " >&6
3606 else
3607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h.  */
3609 #include <stdlib.h>
3610 #include <stdarg.h>
3611 #include <string.h>
3612 #include <float.h>
3613
3614 int
3615 main ()
3616 {
3617
3618   ;
3619   return 0;
3620 }
3621 _ACEOF
3622 if ac_fn_c_try_compile "$LINENO"; then :
3623   ac_cv_header_stdc=yes
3624 else
3625   ac_cv_header_stdc=no
3626 fi
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628
3629 if test $ac_cv_header_stdc = yes; then
3630   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h.  */
3633 #include <string.h>
3634
3635 _ACEOF
3636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3637   $EGREP "memchr" >/dev/null 2>&1; then :
3638
3639 else
3640   ac_cv_header_stdc=no
3641 fi
3642 rm -f conftest*
3643
3644 fi
3645
3646 if test $ac_cv_header_stdc = yes; then
3647   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h.  */
3650 #include <stdlib.h>
3651
3652 _ACEOF
3653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3654   $EGREP "free" >/dev/null 2>&1; then :
3655
3656 else
3657   ac_cv_header_stdc=no
3658 fi
3659 rm -f conftest*
3660
3661 fi
3662
3663 if test $ac_cv_header_stdc = yes; then
3664   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3665   if test "$cross_compiling" = yes; then :
3666   :
3667 else
3668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h.  */
3670 #include <ctype.h>
3671 #include <stdlib.h>
3672 #if ((' ' & 0x0FF) == 0x020)
3673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3675 #else
3676 # define ISLOWER(c) \
3677                    (('a' <= (c) && (c) <= 'i') \
3678                      || ('j' <= (c) && (c) <= 'r') \
3679                      || ('s' <= (c) && (c) <= 'z'))
3680 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3681 #endif
3682
3683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3684 int
3685 main ()
3686 {
3687   int i;
3688   for (i = 0; i < 256; i++)
3689     if (XOR (islower (i), ISLOWER (i))
3690         || toupper (i) != TOUPPER (i))
3691       return 2;
3692   return 0;
3693 }
3694 _ACEOF
3695 if ac_fn_c_try_run "$LINENO"; then :
3696
3697 else
3698   ac_cv_header_stdc=no
3699 fi
3700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3701   conftest.$ac_objext conftest.beam conftest.$ac_ext
3702 fi
3703
3704 fi
3705 fi
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3707 $as_echo "$ac_cv_header_stdc" >&6; }
3708 if test $ac_cv_header_stdc = yes; then
3709
3710 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3711
3712 fi
3713
3714 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3715 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3716                   inttypes.h stdint.h unistd.h
3717 do :
3718   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3719 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3720 "
3721 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3722   cat >>confdefs.h <<_ACEOF
3723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3724 _ACEOF
3725
3726 fi
3727
3728 done
3729
3730
3731
3732   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3733 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3734   MINIX=yes
3735 else
3736   MINIX=
3737 fi
3738
3739
3740   if test "$MINIX" = yes; then
3741
3742 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3743
3744
3745 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3746
3747
3748 $as_echo "#define _MINIX 1" >>confdefs.h
3749
3750   fi
3751
3752
3753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3754 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3755 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3756   $as_echo_n "(cached) " >&6
3757 else
3758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h.  */
3760
3761 #         define __EXTENSIONS__ 1
3762           $ac_includes_default
3763 int
3764 main ()
3765 {
3766
3767   ;
3768   return 0;
3769 }
3770 _ACEOF
3771 if ac_fn_c_try_compile "$LINENO"; then :
3772   ac_cv_safe_to_define___extensions__=yes
3773 else
3774   ac_cv_safe_to_define___extensions__=no
3775 fi
3776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777 fi
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3779 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3780   test $ac_cv_safe_to_define___extensions__ = yes &&
3781     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3782
3783   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3784
3785   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3786
3787   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3788
3789   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3790
3791
3792
3793
3794 case "$prefix" in
3795         NONE)
3796                 prefix="/usr/local"
3797         ;;
3798 esac
3799
3800 # are we on MinGW?
3801 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
3802 else
3803         if echo $target | grep mingw32 >/dev/null; then on_mingw="yes"
3804         else on_mingw="no"; fi
3805 fi
3806
3807 #
3808 # Determine configuration file
3809 # the eval is to evaluate shell expansion twice
3810 if test $on_mingw = "no"; then
3811   ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
3812 else
3813   ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
3814 fi
3815
3816 # Check whether --with-conf_file was given.
3817 if test "${with_conf_file+set}" = set; then :
3818   withval=$with_conf_file; ub_conf_file="$withval"
3819 fi
3820
3821
3822 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
3823
3824
3825 cat >>confdefs.h <<_ACEOF
3826 #define CONFIGFILE "$hdr_config"
3827 _ACEOF
3828
3829
3830 # Determine run, chroot directory and pidfile locations
3831
3832 # Check whether --with-run-dir was given.
3833 if test "${with_run_dir+set}" = set; then :
3834   withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
3835 else
3836   if test $on_mingw = no; then
3837     UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
3838 else
3839     UNBOUND_RUN_DIR=""
3840 fi
3841
3842 fi
3843
3844
3845 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
3846
3847
3848 cat >>confdefs.h <<_ACEOF
3849 #define RUN_DIR "$hdr_run"
3850 _ACEOF
3851
3852
3853
3854 # Check whether --with-chroot-dir was given.
3855 if test "${with_chroot_dir+set}" = set; then :
3856   withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
3857 else
3858   if test $on_mingw = no; then
3859     UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
3860 else
3861     UNBOUND_CHROOT_DIR=""
3862 fi
3863
3864 fi
3865
3866
3867 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
3868
3869
3870 cat >>confdefs.h <<_ACEOF
3871 #define CHROOT_DIR "$hdr_chroot"
3872 _ACEOF
3873
3874
3875
3876 # Check whether --with-share-dir was given.
3877 if test "${with_share_dir+set}" = set; then :
3878   withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
3879 else
3880   UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
3881 fi
3882
3883
3884
3885 cat >>confdefs.h <<_ACEOF
3886 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
3887 _ACEOF
3888
3889
3890
3891 # Check whether --with-pidfile was given.
3892 if test "${with_pidfile+set}" = set; then :
3893   withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
3894 else
3895   if test $on_mingw = no; then
3896     UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
3897 else
3898     UNBOUND_PIDFILE=""
3899 fi
3900
3901 fi
3902
3903
3904 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
3905
3906
3907 cat >>confdefs.h <<_ACEOF
3908 #define PIDFILE "$hdr_pid"
3909 _ACEOF
3910
3911
3912
3913 # Check whether --with-rootkey-file was given.
3914 if test "${with_rootkey_file+set}" = set; then :
3915   withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
3916 else
3917   if test $on_mingw = no; then
3918     UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
3919 else
3920     UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
3921 fi
3922
3923 fi
3924
3925
3926 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
3927
3928
3929 cat >>confdefs.h <<_ACEOF
3930 #define ROOT_ANCHOR_FILE "$hdr_rkey"
3931 _ACEOF
3932
3933
3934
3935 # Check whether --with-rootcert-file was given.
3936 if test "${with_rootcert_file+set}" = set; then :
3937   withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
3938 else
3939   if test $on_mingw = no; then
3940     UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
3941 else
3942     UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
3943 fi
3944
3945 fi
3946
3947
3948 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
3949
3950
3951 cat >>confdefs.h <<_ACEOF
3952 #define ROOT_CERT_FILE "$hdr_rpem"
3953 _ACEOF
3954
3955
3956
3957 # Check whether --with-username was given.
3958 if test "${with_username+set}" = set; then :
3959   withval=$with_username; UNBOUND_USERNAME="$withval"
3960 else
3961   UNBOUND_USERNAME="unbound"
3962 fi
3963
3964
3965
3966 cat >>confdefs.h <<_ACEOF
3967 #define UB_USERNAME "$UNBOUND_USERNAME"
3968 _ACEOF
3969
3970
3971
3972 $as_echo "#define WINVER 0x0502" >>confdefs.h
3973
3974 wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^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]*$/\1,\2,\3,0/' `
3975
3976
3977 cat >>confdefs.h <<_ACEOF
3978 #define RSRC_PACKAGE_VERSION $wnvs
3979 _ACEOF
3980
3981
3982 # Checks for typedefs, structures, and compiler characteristics.
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3984 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3985 if ${ac_cv_c_const+:} false; then :
3986   $as_echo_n "(cached) " >&6
3987 else
3988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h.  */
3990
3991 int
3992 main ()
3993 {
3994
3995 #ifndef __cplusplus
3996   /* Ultrix mips cc rejects this sort of thing.  */
3997   typedef int charset[2];
3998   const charset cs = { 0, 0 };
3999   /* SunOS 4.1.1 cc rejects this.  */
4000   char const *const *pcpcc;
4001   char **ppc;
4002   /* NEC SVR4.0.2 mips cc rejects this.  */
4003   struct point {int x, y;};
4004   static struct point const zero = {0,0};
4005   /* AIX XL C 1.02.0.0 rejects this.
4006      It does not let you subtract one const X* pointer from another in
4007      an arm of an if-expression whose if-part is not a constant
4008      expression */
4009   const char *g = "string";
4010   pcpcc = &g + (g ? g-g : 0);
4011   /* HPUX 7.0 cc rejects these. */
4012   ++pcpcc;
4013   ppc = (char**) pcpcc;
4014   pcpcc = (char const *const *) ppc;
4015   { /* SCO 3.2v4 cc rejects this sort of thing.  */
4016     char tx;
4017     char *t = &tx;
4018     char const *s = 0 ? (char *) 0 : (char const *) 0;
4019
4020     *t++ = 0;
4021     if (s) return 0;
4022   }
4023   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4024     int x[] = {25, 17};
4025     const int *foo = &x[0];
4026     ++foo;
4027   }
4028   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4029     typedef const int *iptr;
4030     iptr p = 0;
4031     ++p;
4032   }
4033   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4034        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4035     struct s { int j; const int *ap[3]; } bx;
4036     struct s *b = &bx; b->j = 5;
4037   }
4038   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4039     const int foo = 10;
4040     if (!foo) return 0;
4041   }
4042   return !cs[0] && !zero.x;
4043 #endif
4044
4045   ;
4046   return 0;
4047 }
4048 _ACEOF
4049 if ac_fn_c_try_compile "$LINENO"; then :
4050   ac_cv_c_const=yes
4051 else
4052   ac_cv_c_const=no
4053 fi
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 fi
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4057 $as_echo "$ac_cv_c_const" >&6; }
4058 if test $ac_cv_c_const = no; then
4059
4060 $as_echo "#define const /**/" >>confdefs.h
4061
4062 fi
4063
4064 ac_ext=c
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069
4070 # allow user to override the -g -O2 flags.
4071 if test "x$CFLAGS" = "x" ; then
4072
4073
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4075 $as_echo_n "checking whether $CC supports -g... " >&6; }
4076 cache=`echo g | sed 'y%.=/+-%___p_%'`
4077 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4078   $as_echo_n "(cached) " >&6
4079 else
4080
4081 echo 'void f(){}' >conftest.c
4082 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4083 eval "cv_prog_cc_flag_$cache=yes"
4084 else
4085 eval "cv_prog_cc_flag_$cache=no"
4086 fi
4087 rm -f conftest conftest.o conftest.c
4088
4089 fi
4090
4091 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4093 $as_echo "yes" >&6; }
4094 :
4095 CFLAGS="$CFLAGS -g"
4096 else
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4099 :
4100
4101 fi
4102
4103
4104
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4106 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4107 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4108 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4109   $as_echo_n "(cached) " >&6
4110 else
4111
4112 echo 'void f(){}' >conftest.c
4113 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4114 eval "cv_prog_cc_flag_$cache=yes"
4115 else
4116 eval "cv_prog_cc_flag_$cache=no"
4117 fi
4118 rm -f conftest conftest.o conftest.c
4119
4120 fi
4121
4122 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4124 $as_echo "yes" >&6; }
4125 :
4126 CFLAGS="$CFLAGS -O2"
4127 else
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 $as_echo "no" >&6; }
4130 :
4131
4132 fi
4133
4134 fi
4135 ac_ext=c
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140 if test -n "$ac_tool_prefix"; then
4141   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 $as_echo_n "checking for $ac_word... " >&6; }
4145 if ${ac_cv_prog_CC+:} false; then :
4146   $as_echo_n "(cached) " >&6
4147 else
4148   if test -n "$CC"; then
4149   ac_cv_prog_CC="$CC" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4153 do
4154   IFS=$as_save_IFS
4155   test -z "$as_dir" && as_dir=.
4156     for ac_exec_ext in '' $ac_executable_extensions; do
4157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160     break 2
4161   fi
4162 done
4163   done
4164 IFS=$as_save_IFS
4165
4166 fi
4167 fi
4168 CC=$ac_cv_prog_CC
4169 if test -n "$CC"; then
4170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4171 $as_echo "$CC" >&6; }
4172 else
4173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4175 fi
4176
4177
4178 fi
4179 if test -z "$ac_cv_prog_CC"; then
4180   ac_ct_CC=$CC
4181   # Extract the first word of "gcc", so it can be a program name with args.
4182 set dummy gcc; ac_word=$2
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184 $as_echo_n "checking for $ac_word... " >&6; }
4185 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4186   $as_echo_n "(cached) " >&6
4187 else
4188   if test -n "$ac_ct_CC"; then
4189   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4190 else
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4193 do
4194   IFS=$as_save_IFS
4195   test -z "$as_dir" && as_dir=.
4196     for ac_exec_ext in '' $ac_executable_extensions; do
4197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4198     ac_cv_prog_ac_ct_CC="gcc"
4199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200     break 2
4201   fi
4202 done
4203   done
4204 IFS=$as_save_IFS
4205
4206 fi
4207 fi
4208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4209 if test -n "$ac_ct_CC"; then
4210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4211 $as_echo "$ac_ct_CC" >&6; }
4212 else
4213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 $as_echo "no" >&6; }
4215 fi
4216
4217   if test "x$ac_ct_CC" = x; then
4218     CC=""
4219   else
4220     case $cross_compiling:$ac_tool_warned in
4221 yes:)
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4224 ac_tool_warned=yes ;;
4225 esac
4226     CC=$ac_ct_CC
4227   fi
4228 else
4229   CC="$ac_cv_prog_CC"
4230 fi
4231
4232 if test -z "$CC"; then
4233           if test -n "$ac_tool_prefix"; then
4234     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4235 set dummy ${ac_tool_prefix}cc; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if ${ac_cv_prog_CC+:} false; then :
4239   $as_echo_n "(cached) " >&6
4240 else
4241   if test -n "$CC"; then
4242   ac_cv_prog_CC="$CC" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247   IFS=$as_save_IFS
4248   test -z "$as_dir" && as_dir=.
4249     for ac_exec_ext in '' $ac_executable_extensions; do
4250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251     ac_cv_prog_CC="${ac_tool_prefix}cc"
4252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253     break 2
4254   fi
4255 done
4256   done
4257 IFS=$as_save_IFS
4258
4259 fi
4260 fi
4261 CC=$ac_cv_prog_CC
4262 if test -n "$CC"; then
4263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4264 $as_echo "$CC" >&6; }
4265 else
4266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4268 fi
4269
4270
4271   fi
4272 fi
4273 if test -z "$CC"; then
4274   # Extract the first word of "cc", so it can be a program name with args.
4275 set dummy cc; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if ${ac_cv_prog_CC+:} false; then :
4279   $as_echo_n "(cached) " >&6
4280 else
4281   if test -n "$CC"; then
4282   ac_cv_prog_CC="$CC" # Let the user override the test.
4283 else
4284   ac_prog_rejected=no
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 for as_dir in $PATH
4287 do
4288   IFS=$as_save_IFS
4289   test -z "$as_dir" && as_dir=.
4290     for ac_exec_ext in '' $ac_executable_extensions; do
4291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4292     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4293        ac_prog_rejected=yes
4294        continue
4295      fi
4296     ac_cv_prog_CC="cc"
4297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4298     break 2
4299   fi
4300 done
4301   done
4302 IFS=$as_save_IFS
4303
4304 if test $ac_prog_rejected = yes; then
4305   # We found a bogon in the path, so make sure we never use it.
4306   set dummy $ac_cv_prog_CC
4307   shift
4308   if test $# != 0; then
4309     # We chose a different compiler from the bogus one.
4310     # However, it has the same basename, so the bogon will be chosen
4311     # first if we set CC to just the basename; use the full file name.
4312     shift
4313     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4314   fi
4315 fi
4316 fi
4317 fi
4318 CC=$ac_cv_prog_CC
4319 if test -n "$CC"; then
4320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4321 $as_echo "$CC" >&6; }
4322 else
4323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4325 fi
4326
4327
4328 fi
4329 if test -z "$CC"; then
4330   if test -n "$ac_tool_prefix"; then
4331   for ac_prog in cl.exe
4332   do
4333     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if ${ac_cv_prog_CC+:} false; then :
4338   $as_echo_n "(cached) " >&6
4339 else
4340   if test -n "$CC"; then
4341   ac_cv_prog_CC="$CC" # Let the user override the test.
4342 else
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4345 do
4346   IFS=$as_save_IFS
4347   test -z "$as_dir" && as_dir=.
4348     for ac_exec_ext in '' $ac_executable_extensions; do
4349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4350     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352     break 2
4353   fi
4354 done
4355   done
4356 IFS=$as_save_IFS
4357
4358 fi
4359 fi
4360 CC=$ac_cv_prog_CC
4361 if test -n "$CC"; then
4362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4363 $as_echo "$CC" >&6; }
4364 else
4365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4367 fi
4368
4369
4370     test -n "$CC" && break
4371   done
4372 fi
4373 if test -z "$CC"; then
4374   ac_ct_CC=$CC
4375   for ac_prog in cl.exe
4376 do
4377   # Extract the first word of "$ac_prog", so it can be a program name with args.
4378 set dummy $ac_prog; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4382   $as_echo_n "(cached) " >&6
4383 else
4384   if test -n "$ac_ct_CC"; then
4385   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4389 do
4390   IFS=$as_save_IFS
4391   test -z "$as_dir" && as_dir=.
4392     for ac_exec_ext in '' $ac_executable_extensions; do
4393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4394     ac_cv_prog_ac_ct_CC="$ac_prog"
4395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4396     break 2
4397   fi
4398 done
4399   done
4400 IFS=$as_save_IFS
4401
4402 fi
4403 fi
4404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4405 if test -n "$ac_ct_CC"; then
4406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4407 $as_echo "$ac_ct_CC" >&6; }
4408 else
4409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4411 fi
4412
4413
4414   test -n "$ac_ct_CC" && break
4415 done
4416
4417   if test "x$ac_ct_CC" = x; then
4418     CC=""
4419   else
4420     case $cross_compiling:$ac_tool_warned in
4421 yes:)
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4424 ac_tool_warned=yes ;;
4425 esac
4426     CC=$ac_ct_CC
4427   fi
4428 fi
4429
4430 fi
4431
4432
4433 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error $? "no acceptable C compiler found in \$PATH
4436 See \`config.log' for more details" "$LINENO" 5; }
4437
4438 # Provide some information about the compiler.
4439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4440 set X $ac_compile
4441 ac_compiler=$2
4442 for ac_option in --version -v -V -qversion; do
4443   { { ac_try="$ac_compiler $ac_option >&5"
4444 case "(($ac_try" in
4445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446   *) ac_try_echo=$ac_try;;
4447 esac
4448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4449 $as_echo "$ac_try_echo"; } >&5
4450   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4451   ac_status=$?
4452   if test -s conftest.err; then
4453     sed '10a\
4454 ... rest of stderr output deleted ...
4455          10q' conftest.err >conftest.er1
4456     cat conftest.er1 >&5
4457   fi
4458   rm -f conftest.er1 conftest.err
4459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4460   test $ac_status = 0; }
4461 done
4462
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4464 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4465 if ${ac_cv_c_compiler_gnu+:} false; then :
4466   $as_echo_n "(cached) " >&6
4467 else
4468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h.  */
4470
4471 int
4472 main ()
4473 {
4474 #ifndef __GNUC__
4475        choke me
4476 #endif
4477
4478   ;
4479   return 0;
4480 }
4481 _ACEOF
4482 if ac_fn_c_try_compile "$LINENO"; then :
4483   ac_compiler_gnu=yes
4484 else
4485   ac_compiler_gnu=no
4486 fi
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4489
4490 fi
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4492 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4493 if test $ac_compiler_gnu = yes; then
4494   GCC=yes
4495 else
4496   GCC=
4497 fi
4498 ac_test_CFLAGS=${CFLAGS+set}
4499 ac_save_CFLAGS=$CFLAGS
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4501 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4502 if ${ac_cv_prog_cc_g+:} false; then :
4503   $as_echo_n "(cached) " >&6
4504 else
4505   ac_save_c_werror_flag=$ac_c_werror_flag
4506    ac_c_werror_flag=yes
4507    ac_cv_prog_cc_g=no
4508    CFLAGS="-g"
4509    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h.  */
4511
4512 int
4513 main ()
4514 {
4515
4516   ;
4517   return 0;
4518 }
4519 _ACEOF
4520 if ac_fn_c_try_compile "$LINENO"; then :
4521   ac_cv_prog_cc_g=yes
4522 else
4523   CFLAGS=""
4524       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h.  */
4526
4527 int
4528 main ()
4529 {
4530
4531   ;
4532   return 0;
4533 }
4534 _ACEOF
4535 if ac_fn_c_try_compile "$LINENO"; then :
4536
4537 else
4538   ac_c_werror_flag=$ac_save_c_werror_flag
4539          CFLAGS="-g"
4540          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h.  */
4542
4543 int
4544 main ()
4545 {
4546
4547   ;
4548   return 0;
4549 }
4550 _ACEOF
4551 if ac_fn_c_try_compile "$LINENO"; then :
4552   ac_cv_prog_cc_g=yes
4553 fi
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555 fi
4556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4557 fi
4558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4559    ac_c_werror_flag=$ac_save_c_werror_flag
4560 fi
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4562 $as_echo "$ac_cv_prog_cc_g" >&6; }
4563 if test "$ac_test_CFLAGS" = set; then
4564   CFLAGS=$ac_save_CFLAGS
4565 elif test $ac_cv_prog_cc_g = yes; then
4566   if test "$GCC" = yes; then
4567     CFLAGS="-g -O2"
4568   else
4569     CFLAGS="-g"
4570   fi
4571 else
4572   if test "$GCC" = yes; then
4573     CFLAGS="-O2"
4574   else
4575     CFLAGS=
4576   fi
4577 fi
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4579 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4580 if ${ac_cv_prog_cc_c89+:} false; then :
4581   $as_echo_n "(cached) " >&6
4582 else
4583   ac_cv_prog_cc_c89=no
4584 ac_save_CC=$CC
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h.  */
4587 #include <stdarg.h>
4588 #include <stdio.h>
4589 struct stat;
4590 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4591 struct buf { int x; };
4592 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4593 static char *e (p, i)
4594      char **p;
4595      int i;
4596 {
4597   return p[i];
4598 }
4599 static char *f (char * (*g) (char **, int), char **p, ...)
4600 {
4601   char *s;
4602   va_list v;
4603   va_start (v,p);
4604   s = g (p, va_arg (v,int));
4605   va_end (v);
4606   return s;
4607 }
4608
4609 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4610    function prototypes and stuff, but not '\xHH' hex character constants.
4611    These don't provoke an error unfortunately, instead are silently treated
4612    as 'x'.  The following induces an error, until -std is added to get
4613    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4614    array size at least.  It's necessary to write '\x00'==0 to get something
4615    that's true only with -std.  */
4616 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4617
4618 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4619    inside strings and character constants.  */
4620 #define FOO(x) 'x'
4621 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4622
4623 int test (int i, double x);
4624 struct s1 {int (*f) (int a);};
4625 struct s2 {int (*f) (double a);};
4626 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4627 int argc;
4628 char **argv;
4629 int
4630 main ()
4631 {
4632 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4633   ;
4634   return 0;
4635 }
4636 _ACEOF
4637 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4638         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4639 do
4640   CC="$ac_save_CC $ac_arg"
4641   if ac_fn_c_try_compile "$LINENO"; then :
4642   ac_cv_prog_cc_c89=$ac_arg
4643 fi
4644 rm -f core conftest.err conftest.$ac_objext
4645   test "x$ac_cv_prog_cc_c89" != "xno" && break
4646 done
4647 rm -f conftest.$ac_ext
4648 CC=$ac_save_CC
4649
4650 fi
4651 # AC_CACHE_VAL
4652 case "x$ac_cv_prog_cc_c89" in
4653   x)
4654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4655 $as_echo "none needed" >&6; } ;;
4656   xno)
4657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4658 $as_echo "unsupported" >&6; } ;;
4659   *)
4660     CC="$CC $ac_cv_prog_cc_c89"
4661     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4662 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4663 esac
4664 if test "x$ac_cv_prog_cc_c89" != xno; then :
4665
4666 fi
4667
4668 ac_ext=c
4669 ac_cpp='$CPP $CPPFLAGS'
4670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4673
4674
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4676 $as_echo_n "checking $CC dependency flag... " >&6; }
4677 echo 'void f(){}' >conftest.c
4678 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4679         DEPFLAG="-MM"
4680 else
4681   if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4682         DEPFLAG="-xM1"
4683   else
4684         DEPFLAG="-MM"  # dunno do something
4685   fi
4686 fi
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4688 $as_echo "$DEPFLAG" >&6; }
4689 rm -f conftest.c
4690
4691
4692
4693
4694
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4696 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
4697 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4698 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4699   $as_echo_n "(cached) " >&6
4700 else
4701
4702 echo 'void f(){}' >conftest.c
4703 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4704 eval "cv_prog_cc_flag_$cache=yes"
4705 else
4706 eval "cv_prog_cc_flag_$cache=no"
4707 fi
4708 rm -f conftest conftest.o conftest.c
4709
4710 fi
4711
4712 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4714 $as_echo "yes" >&6; }
4715 :
4716 ERRFLAG="-Werror"
4717 else
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4720 :
4721 ERRFLAG="-errwarn"
4722 fi
4723
4724
4725
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4727 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
4728 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4729 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4730   $as_echo_n "(cached) " >&6
4731 else
4732
4733 echo 'void f(){}' >conftest.c
4734 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4735 eval "cv_prog_cc_flag_$cache=yes"
4736 else
4737 eval "cv_prog_cc_flag_$cache=no"
4738 fi
4739 rm -f conftest conftest.o conftest.c
4740
4741 fi
4742
4743 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4745 $as_echo "yes" >&6; }
4746 :
4747 ERRFLAG="$ERRFLAG -Wall"
4748 else
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4750 $as_echo "no" >&6; }
4751 :
4752 ERRFLAG="$ERRFLAG -errfmt"
4753 fi
4754
4755
4756
4757
4758
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
4760 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
4761 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
4762 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4763   $as_echo_n "(cached) " >&6
4764 else
4765
4766 echo 'void f(){}' >conftest.c
4767 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
4768 eval "cv_prog_cc_flag_$cache=yes"
4769 else
4770 eval "cv_prog_cc_flag_$cache=no"
4771 fi
4772 rm -f conftest conftest.o conftest.c
4773
4774 fi
4775
4776 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4778 $as_echo "yes" >&6; }
4779 :
4780 C99FLAG="-std=c99"
4781 else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4784 :
4785
4786 fi
4787
4788
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
4791 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
4792 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
4793 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4794   $as_echo_n "(cached) " >&6
4795 else
4796
4797 echo 'void f(){}' >conftest.c
4798 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
4799 eval "cv_prog_cc_flag_$cache=yes"
4800 else
4801 eval "cv_prog_cc_flag_$cache=no"
4802 fi
4803 rm -f conftest conftest.o conftest.c
4804
4805 fi
4806
4807 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4809 $as_echo "yes" >&6; }
4810 :
4811 C99FLAG="-xc99"
4812 else
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814 $as_echo "no" >&6; }
4815 :
4816
4817 fi
4818
4819
4820 for ac_header in getopt.h time.h
4821 do :
4822   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4823 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4824 "
4825 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4826   cat >>confdefs.h <<_ACEOF
4827 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4828 _ACEOF
4829
4830 fi
4831
4832 done
4833
4834
4835
4836
4837
4838 { $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
4839 $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; }
4840 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`
4841 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
4842   $as_echo_n "(cached) " >&6
4843 else
4844
4845 echo '
4846 #include "confdefs.h"
4847 #include <stdlib.h>
4848 #include <ctype.h>
4849 #include <sys/time.h>
4850 #ifdef HAVE_TIME_H
4851 #include <time.h>
4852 #endif
4853 #include <unistd.h>
4854 #include <netdb.h>
4855 #ifdef HAVE_GETOPT_H
4856 #include <getopt.h>
4857 #endif
4858
4859 int test() {
4860         int a;
4861         char **opts = NULL;
4862         struct timeval tv;
4863         char *t;
4864         time_t time = 0;
4865         char *buf = NULL;
4866         const char* str = NULL;
4867         struct msghdr msg;
4868         msg.msg_control = 0;
4869         t = ctime_r(&time, buf);
4870         tv.tv_usec = 10;
4871         srandom(32);
4872         a = getopt(2, opts, "a");
4873         a = isascii(32);
4874         str = gai_strerror(0);
4875         if(str && t && tv.tv_usec && msg.msg_control)
4876                 a = 0;
4877         return a;
4878 }
4879 ' > conftest.c
4880 echo 'void f(){}' >>conftest.c
4881 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
4882 eval "cv_prog_cc_flag_needed_$cache=no"
4883 else
4884
4885 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
4886 eval "cv_prog_cc_flag_needed_$cache=yes"
4887 else
4888 eval "cv_prog_cc_flag_needed_$cache=fail"
4889 #echo 'Test with flag fails too!'
4890 #cat conftest.c
4891 #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"
4892 #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`
4893 #exit 1
4894 fi
4895
4896 fi
4897 rm -f conftest conftest.c conftest.o
4898
4899 fi
4900
4901 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4903 $as_echo "yes" >&6; }
4904 :
4905 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"
4906 else
4907 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4910 #echo 'Test with flag is no!'
4911 #cat conftest.c
4912 #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"
4913 #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`
4914 #exit 1
4915 :
4916
4917 else
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
4919 $as_echo "failed" >&6; }
4920 :
4921
4922 fi
4923 fi
4924
4925
4926
4927
4928
4929 { $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
4930 $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; }
4931 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
4932 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
4933   $as_echo_n "(cached) " >&6
4934 else
4935
4936 echo '
4937 #include "confdefs.h"
4938 #include <stdlib.h>
4939 #include <ctype.h>
4940 #include <sys/time.h>
4941 #ifdef HAVE_TIME_H
4942 #include <time.h>
4943 #endif
4944 #include <unistd.h>
4945 #include <netdb.h>
4946 #ifdef HAVE_GETOPT_H
4947 #include <getopt.h>
4948 #endif
4949
4950 int test() {
4951         int a;
4952         char **opts = NULL;
4953         struct timeval tv;
4954         char *t;
4955         time_t time = 0;
4956         char *buf = NULL;
4957         const char* str = NULL;
4958         struct msghdr msg;
4959         msg.msg_control = 0;
4960         t = ctime_r(&time, buf);
4961         tv.tv_usec = 10;
4962         srandom(32);
4963         a = getopt(2, opts, "a");
4964         a = isascii(32);
4965         str = gai_strerror(0);
4966         if(str && t && tv.tv_usec && msg.msg_control)
4967                 a = 0;
4968         return a;
4969 }
4970 ' > conftest.c
4971 echo 'void f(){}' >>conftest.c
4972 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
4973 eval "cv_prog_cc_flag_needed_$cache=no"
4974 else
4975
4976 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
4977 eval "cv_prog_cc_flag_needed_$cache=yes"
4978 else
4979 eval "cv_prog_cc_flag_needed_$cache=fail"
4980 #echo 'Test with flag fails too!'
4981 #cat conftest.c
4982 #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"
4983 #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`
4984 #exit 1
4985 fi
4986
4987 fi
4988 rm -f conftest conftest.c conftest.o
4989
4990 fi
4991
4992 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4994 $as_echo "yes" >&6; }
4995 :
4996 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
4997 else
4998 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5001 #echo 'Test with flag is no!'
5002 #cat conftest.c
5003 #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"
5004 #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`
5005 #exit 1
5006 :
5007
5008 else
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5010 $as_echo "failed" >&6; }
5011 :
5012
5013 fi
5014 fi
5015
5016
5017
5018
5019
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5021 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5022 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5023 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5024   $as_echo_n "(cached) " >&6
5025 else
5026
5027 echo '
5028 #include <stdbool.h>
5029 #include <ctype.h>
5030 int test() {
5031         int a = 0;
5032         return a;
5033 }
5034 ' > conftest.c
5035 echo 'void f(){}' >>conftest.c
5036 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5037 eval "cv_prog_cc_flag_needed_$cache=no"
5038 else
5039
5040 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5041 eval "cv_prog_cc_flag_needed_$cache=yes"
5042 else
5043 eval "cv_prog_cc_flag_needed_$cache=fail"
5044 #echo 'Test with flag fails too!'
5045 #cat conftest.c
5046 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5047 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5048 #exit 1
5049 fi
5050
5051 fi
5052 rm -f conftest conftest.c conftest.o
5053
5054 fi
5055
5056 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5058 $as_echo "yes" >&6; }
5059 :
5060 CFLAGS="$CFLAGS $C99FLAG"
5061 else
5062 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5065 #echo 'Test with flag is no!'
5066 #cat conftest.c
5067 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5068 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5069 #exit 1
5070 :
5071
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5074 $as_echo "failed" >&6; }
5075 :
5076
5077 fi
5078 fi
5079
5080
5081
5082
5083
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
5085 $as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
5086 cache=_D_BSD_SOURCE
5087 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5088   $as_echo_n "(cached) " >&6
5089 else
5090
5091 echo '
5092 #include <ctype.h>
5093
5094 int test() {
5095         int a;
5096         a = isascii(32);
5097         return a;
5098 }
5099 ' > conftest.c
5100 echo 'void f(){}' >>conftest.c
5101 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5102 eval "cv_prog_cc_flag_needed_$cache=no"
5103 else
5104
5105 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5106 eval "cv_prog_cc_flag_needed_$cache=yes"
5107 else
5108 eval "cv_prog_cc_flag_needed_$cache=fail"
5109 #echo 'Test with flag fails too!'
5110 #cat conftest.c
5111 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5112 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5113 #exit 1
5114 fi
5115
5116 fi
5117 rm -f conftest conftest.c conftest.o
5118
5119 fi
5120
5121 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5123 $as_echo "yes" >&6; }
5124 :
5125 CFLAGS="$CFLAGS -D_BSD_SOURCE"
5126 else
5127 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5130 #echo 'Test with flag is no!'
5131 #cat conftest.c
5132 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5133 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5134 #exit 1
5135 :
5136
5137 else
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5139 $as_echo "failed" >&6; }
5140 :
5141
5142 fi
5143 fi
5144
5145
5146
5147
5148
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5150 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5151 cache=_D_GNU_SOURCE
5152 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5153   $as_echo_n "(cached) " >&6
5154 else
5155
5156 echo '
5157 #include <netinet/in.h>
5158
5159 int test() {
5160         struct in6_pktinfo inf;
5161         int a = (int)sizeof(inf);
5162         return a;
5163 }
5164 ' > conftest.c
5165 echo 'void f(){}' >>conftest.c
5166 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5167 eval "cv_prog_cc_flag_needed_$cache=no"
5168 else
5169
5170 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5171 eval "cv_prog_cc_flag_needed_$cache=yes"
5172 else
5173 eval "cv_prog_cc_flag_needed_$cache=fail"
5174 #echo 'Test with flag fails too!'
5175 #cat conftest.c
5176 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5177 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5178 #exit 1
5179 fi
5180
5181 fi
5182 rm -f conftest conftest.c conftest.o
5183
5184 fi
5185
5186 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5188 $as_echo "yes" >&6; }
5189 :
5190 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5191 else
5192 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; }
5195 #echo 'Test with flag is no!'
5196 #cat conftest.c
5197 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5198 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5199 #exit 1
5200 :
5201
5202 else
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5204 $as_echo "failed" >&6; }
5205 :
5206
5207 fi
5208 fi
5209
5210
5211 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5212 # is not available at all. -D_FRSRESGID is to make this check unique.
5213 # otherwise we would get the previous cached result.
5214
5215
5216
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5218 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5219 cache=_D_GNU_SOURCE__D_FRSRESGID
5220 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5221   $as_echo_n "(cached) " >&6
5222 else
5223
5224 echo '
5225 #include <unistd.h>
5226
5227 int test() {
5228         int a = setresgid(0,0,0);
5229         a = setresuid(0,0,0);
5230         return a;
5231 }
5232 ' > conftest.c
5233 echo 'void f(){}' >>conftest.c
5234 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5235 eval "cv_prog_cc_flag_needed_$cache=no"
5236 else
5237
5238 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5239 eval "cv_prog_cc_flag_needed_$cache=yes"
5240 else
5241 eval "cv_prog_cc_flag_needed_$cache=fail"
5242 #echo 'Test with flag fails too!'
5243 #cat conftest.c
5244 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5245 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5246 #exit 1
5247 fi
5248
5249 fi
5250 rm -f conftest conftest.c conftest.o
5251
5252 fi
5253
5254 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5256 $as_echo "yes" >&6; }
5257 :
5258 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5259 else
5260 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5263 #echo 'Test with flag is no!'
5264 #cat conftest.c
5265 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5266 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5267 #exit 1
5268 :
5269
5270 else
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5272 $as_echo "failed" >&6; }
5273 :
5274
5275 fi
5276 fi
5277
5278
5279
5280
5281
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5283 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5284 cache=_D_POSIX_C_SOURCE_200112
5285 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5286   $as_echo_n "(cached) " >&6
5287 else
5288
5289 echo '
5290 #include "confdefs.h"
5291 #ifdef HAVE_TIME_H
5292 #include <time.h>
5293 #endif
5294 #include <netdb.h>
5295
5296 int test() {
5297         int a = 0;
5298         char *t;
5299         time_t time = 0;
5300         char *buf = NULL;
5301         const char* str = NULL;
5302         t = ctime_r(&time, buf);
5303         str = gai_strerror(0);
5304         if(t && str)
5305                 a = 0;
5306         return a;
5307 }
5308 ' > conftest.c
5309 echo 'void f(){}' >>conftest.c
5310 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5311 eval "cv_prog_cc_flag_needed_$cache=no"
5312 else
5313
5314 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5315 eval "cv_prog_cc_flag_needed_$cache=yes"
5316 else
5317 eval "cv_prog_cc_flag_needed_$cache=fail"
5318 #echo 'Test with flag fails too!'
5319 #cat conftest.c
5320 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5321 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5322 #exit 1
5323 fi
5324
5325 fi
5326 rm -f conftest conftest.c conftest.o
5327
5328 fi
5329
5330 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5332 $as_echo "yes" >&6; }
5333 :
5334 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5335 else
5336 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339 #echo 'Test with flag is no!'
5340 #cat conftest.c
5341 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5342 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5343 #exit 1
5344 :
5345
5346 else
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5348 $as_echo "failed" >&6; }
5349 :
5350
5351 fi
5352 fi
5353
5354
5355
5356
5357
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5359 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5360 cache=_D__EXTENSIONS__
5361 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5362   $as_echo_n "(cached) " >&6
5363 else
5364
5365 echo '
5366 #include "confdefs.h"
5367 #include <stdlib.h>
5368 #include <ctype.h>
5369 #include <sys/time.h>
5370 #ifdef HAVE_TIME_H
5371 #include <time.h>
5372 #endif
5373 #include <unistd.h>
5374 #ifdef HAVE_GETOPT_H
5375 #include <getopt.h>
5376 #endif
5377
5378 int test() {
5379         int a;
5380         char **opts = NULL;
5381         struct timeval tv;
5382         tv.tv_usec = 10;
5383         srandom(32);
5384         a = getopt(2, opts, "a");
5385         a = isascii(32);
5386         if(tv.tv_usec)
5387                 a = 0;
5388         return a;
5389 }
5390 ' > conftest.c
5391 echo 'void f(){}' >>conftest.c
5392 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5393 eval "cv_prog_cc_flag_needed_$cache=no"
5394 else
5395
5396 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5397 eval "cv_prog_cc_flag_needed_$cache=yes"
5398 else
5399 eval "cv_prog_cc_flag_needed_$cache=fail"
5400 #echo 'Test with flag fails too!'
5401 #cat conftest.c
5402 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5403 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5404 #exit 1
5405 fi
5406
5407 fi
5408 rm -f conftest conftest.c conftest.o
5409
5410 fi
5411
5412 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5414 $as_echo "yes" >&6; }
5415 :
5416 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5417 else
5418 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5421 #echo 'Test with flag is no!'
5422 #cat conftest.c
5423 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5424 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5425 #exit 1
5426 :
5427
5428 else
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5430 $as_echo "failed" >&6; }
5431 :
5432
5433 fi
5434 fi
5435
5436
5437
5438
5439 # debug mode flags warnings
5440 # Check whether --enable-checking was given.
5441 if test "${enable_checking+set}" = set; then :
5442   enableval=$enable_checking;
5443 fi
5444
5445 # Check whether --enable-debug was given.
5446 if test "${enable_debug+set}" = set; then :
5447   enableval=$enable_debug;
5448 fi
5449
5450 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5451 else debug_enabled="$enable_checking"; fi
5452
5453 case "$debug_enabled" in
5454         yes)
5455
5456
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5458 $as_echo_n "checking whether $CC supports -W... " >&6; }
5459 cache=`echo W | sed 'y%.=/+-%___p_%'`
5460 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5461   $as_echo_n "(cached) " >&6
5462 else
5463
5464 echo 'void f(){}' >conftest.c
5465 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5466 eval "cv_prog_cc_flag_$cache=yes"
5467 else
5468 eval "cv_prog_cc_flag_$cache=no"
5469 fi
5470 rm -f conftest conftest.o conftest.c
5471
5472 fi
5473
5474 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5476 $as_echo "yes" >&6; }
5477 :
5478 CFLAGS="$CFLAGS -W"
5479 else
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481 $as_echo "no" >&6; }
5482 :
5483
5484 fi
5485
5486
5487
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5489 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5490 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5491 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5492   $as_echo_n "(cached) " >&6
5493 else
5494
5495 echo 'void f(){}' >conftest.c
5496 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5497 eval "cv_prog_cc_flag_$cache=yes"
5498 else
5499 eval "cv_prog_cc_flag_$cache=no"
5500 fi
5501 rm -f conftest conftest.o conftest.c
5502
5503 fi
5504
5505 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5507 $as_echo "yes" >&6; }
5508 :
5509 CFLAGS="$CFLAGS -Wall"
5510 else
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5513 :
5514
5515 fi
5516
5517
5518
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5520 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5521 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5522 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5523   $as_echo_n "(cached) " >&6
5524 else
5525
5526 echo 'void f(){}' >conftest.c
5527 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5528 eval "cv_prog_cc_flag_$cache=yes"
5529 else
5530 eval "cv_prog_cc_flag_$cache=no"
5531 fi
5532 rm -f conftest conftest.o conftest.c
5533
5534 fi
5535
5536 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5538 $as_echo "yes" >&6; }
5539 :
5540 CFLAGS="$CFLAGS -Wextra"
5541 else
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5544 :
5545
5546 fi
5547
5548
5549
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5551 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5552 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5553 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5554   $as_echo_n "(cached) " >&6
5555 else
5556
5557 echo 'void f(){}' >conftest.c
5558 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5559 eval "cv_prog_cc_flag_$cache=yes"
5560 else
5561 eval "cv_prog_cc_flag_$cache=no"
5562 fi
5563 rm -f conftest conftest.o conftest.c
5564
5565 fi
5566
5567 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5569 $as_echo "yes" >&6; }
5570 :
5571 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5572 else
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5575 :
5576
5577 fi
5578
5579
5580 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5581
5582                 ;;
5583         no|*)
5584                 # nothing to do.
5585                 ;;
5586 esac
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5588 $as_echo_n "checking if $CC supports -flto... " >&6; }
5589 BAKCFLAGS="$CFLAGS"
5590 CFLAGS="$CFLAGS -flto"
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h.  */
5593
5594 int
5595 main ()
5596 {
5597
5598   ;
5599   return 0;
5600 }
5601 _ACEOF
5602 if ac_fn_c_try_link "$LINENO"; then :
5603
5604     if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5605         CFLAGS="$BAKCFLAGS"
5606         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5608     else
5609         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5610 $as_echo "yes" >&6; }
5611     fi
5612     rm -f conftest conftest.c conftest.o
5613
5614 else
5615   CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5617 fi
5618 rm -f core conftest.err conftest.$ac_objext \
5619     conftest$ac_exeext conftest.$ac_ext
5620
5621
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5623 $as_echo_n "checking for inline... " >&6; }
5624 if ${ac_cv_c_inline+:} false; then :
5625   $as_echo_n "(cached) " >&6
5626 else
5627   ac_cv_c_inline=no
5628 for ac_kw in inline __inline__ __inline; do
5629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h.  */
5631 #ifndef __cplusplus
5632 typedef int foo_t;
5633 static $ac_kw foo_t static_foo () {return 0; }
5634 $ac_kw foo_t foo () {return 0; }
5635 #endif
5636
5637 _ACEOF
5638 if ac_fn_c_try_compile "$LINENO"; then :
5639   ac_cv_c_inline=$ac_kw
5640 fi
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642   test "$ac_cv_c_inline" != no && break
5643 done
5644
5645 fi
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5647 $as_echo "$ac_cv_c_inline" >&6; }
5648
5649 case $ac_cv_c_inline in
5650   inline | yes) ;;
5651   *)
5652     case $ac_cv_c_inline in
5653       no) ac_val=;;
5654       *) ac_val=$ac_cv_c_inline;;
5655     esac
5656     cat >>confdefs.h <<_ACEOF
5657 #ifndef __cplusplus
5658 #define inline $ac_val
5659 #endif
5660 _ACEOF
5661     ;;
5662 esac
5663
5664
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
5666 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
5667 if ${ac_cv_c_format_attribute+:} false; then :
5668   $as_echo_n "(cached) " >&6
5669 else
5670   ac_cv_c_format_attribute=no
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h.  */
5673 #include <stdio.h>
5674 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5675 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5676
5677 int
5678 main ()
5679 {
5680
5681    f ("%s", "str");
5682
5683   ;
5684   return 0;
5685 }
5686 _ACEOF
5687 if ac_fn_c_try_compile "$LINENO"; then :
5688   ac_cv_c_format_attribute="yes"
5689 else
5690   ac_cv_c_format_attribute="no"
5691 fi
5692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693
5694 fi
5695
5696
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
5698 $as_echo "$ac_cv_c_format_attribute" >&6; }
5699 if test $ac_cv_c_format_attribute = yes; then
5700
5701 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
5702
5703 fi
5704
5705
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
5707 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
5708 if ${ac_cv_c_unused_attribute+:} false; then :
5709   $as_echo_n "(cached) " >&6
5710 else
5711   ac_cv_c_unused_attribute=no
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h.  */
5714 #include <stdio.h>
5715 void f (char *u __attribute__((unused)));
5716
5717 int
5718 main ()
5719 {
5720
5721    f ("x");
5722
5723   ;
5724   return 0;
5725 }
5726 _ACEOF
5727 if ac_fn_c_try_compile "$LINENO"; then :
5728   ac_cv_c_unused_attribute="yes"
5729 else
5730   ac_cv_c_unused_attribute="no"
5731 fi
5732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5733
5734 fi
5735
5736
5737
5738
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
5740 $as_echo "$ac_cv_c_unused_attribute" >&6; }
5741 if test $ac_cv_c_unused_attribute = yes; then
5742
5743 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
5744
5745 fi
5746
5747
5748 if test "$srcdir" != "."; then
5749         CPPFLAGS="$CPPFLAGS -I$srcdir"
5750 fi
5751
5752
5753
5754 for ac_prog in flex lex
5755 do
5756   # Extract the first word of "$ac_prog", so it can be a program name with args.
5757 set dummy $ac_prog; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if ${ac_cv_prog_LEX+:} false; then :
5761   $as_echo_n "(cached) " >&6
5762 else
5763   if test -n "$LEX"; then
5764   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5768 do
5769   IFS=$as_save_IFS
5770   test -z "$as_dir" && as_dir=.
5771     for ac_exec_ext in '' $ac_executable_extensions; do
5772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5773     ac_cv_prog_LEX="$ac_prog"
5774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775     break 2
5776   fi
5777 done
5778   done
5779 IFS=$as_save_IFS
5780
5781 fi
5782 fi
5783 LEX=$ac_cv_prog_LEX
5784 if test -n "$LEX"; then
5785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5786 $as_echo "$LEX" >&6; }
5787 else
5788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5790 fi
5791
5792
5793   test -n "$LEX" && break
5794 done
5795 test -n "$LEX" || LEX=":"
5796
5797 if test "x$LEX" != "x:"; then
5798   cat >conftest.l <<_ACEOF
5799 %%
5800 a { ECHO; }
5801 b { REJECT; }
5802 c { yymore (); }
5803 d { yyless (1); }
5804 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
5805     yyless ((input () != 0)); }
5806 f { unput (yytext[0]); }
5807 . { BEGIN INITIAL; }
5808 %%
5809 #ifdef YYTEXT_POINTER
5810 extern char *yytext;
5811 #endif
5812 int
5813 main (void)
5814 {
5815   return ! yylex () + ! yywrap ();
5816 }
5817 _ACEOF
5818 { { ac_try="$LEX conftest.l"
5819 case "(($ac_try" in
5820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821   *) ac_try_echo=$ac_try;;
5822 esac
5823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5824 $as_echo "$ac_try_echo"; } >&5
5825   (eval "$LEX conftest.l") 2>&5
5826   ac_status=$?
5827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5828   test $ac_status = 0; }
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5830 $as_echo_n "checking lex output file root... " >&6; }
5831 if ${ac_cv_prog_lex_root+:} false; then :
5832   $as_echo_n "(cached) " >&6
5833 else
5834
5835 if test -f lex.yy.c; then
5836   ac_cv_prog_lex_root=lex.yy
5837 elif test -f lexyy.c; then
5838   ac_cv_prog_lex_root=lexyy
5839 else
5840   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
5841 fi
5842 fi
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5844 $as_echo "$ac_cv_prog_lex_root" >&6; }
5845 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5846
5847 if test -z "${LEXLIB+set}"; then
5848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5849 $as_echo_n "checking lex library... " >&6; }
5850 if ${ac_cv_lib_lex+:} false; then :
5851   $as_echo_n "(cached) " >&6
5852 else
5853
5854     ac_save_LIBS=$LIBS
5855     ac_cv_lib_lex='none needed'
5856     for ac_lib in '' -lfl -ll; do
5857       LIBS="$ac_lib $ac_save_LIBS"
5858       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h.  */
5860 `cat $LEX_OUTPUT_ROOT.c`
5861 _ACEOF
5862 if ac_fn_c_try_link "$LINENO"; then :
5863   ac_cv_lib_lex=$ac_lib
5864 fi
5865 rm -f core conftest.err conftest.$ac_objext \
5866     conftest$ac_exeext conftest.$ac_ext
5867       test "$ac_cv_lib_lex" != 'none needed' && break
5868     done
5869     LIBS=$ac_save_LIBS
5870
5871 fi
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5873 $as_echo "$ac_cv_lib_lex" >&6; }
5874   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5875 fi
5876
5877
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5879 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5880 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
5881   $as_echo_n "(cached) " >&6
5882 else
5883   # POSIX says lex can declare yytext either as a pointer or an array; the
5884 # default is implementation-dependent.  Figure out which it is, since
5885 # not all implementations provide the %pointer and %array declarations.
5886 ac_cv_prog_lex_yytext_pointer=no
5887 ac_save_LIBS=$LIBS
5888 LIBS="$LEXLIB $ac_save_LIBS"
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h.  */
5891
5892   #define YYTEXT_POINTER 1
5893 `cat $LEX_OUTPUT_ROOT.c`
5894 _ACEOF
5895 if ac_fn_c_try_link "$LINENO"; then :
5896   ac_cv_prog_lex_yytext_pointer=yes
5897 fi
5898 rm -f core conftest.err conftest.$ac_objext \
5899     conftest$ac_exeext conftest.$ac_ext
5900 LIBS=$ac_save_LIBS
5901
5902 fi
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5904 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5905 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5906
5907 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5908
5909 fi
5910 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5911
5912 fi
5913
5914         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
5915 $as_echo_n "checking for yylex_destroy... " >&6; }
5916         if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
5917
5918 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
5919
5920                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5921 $as_echo "yes" >&6; }
5922         else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923 $as_echo "no" >&6; }; fi
5924
5925 for ac_prog in 'bison -y' byacc
5926 do
5927   # Extract the first word of "$ac_prog", so it can be a program name with args.
5928 set dummy $ac_prog; ac_word=$2
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 $as_echo_n "checking for $ac_word... " >&6; }
5931 if ${ac_cv_prog_YACC+:} false; then :
5932   $as_echo_n "(cached) " >&6
5933 else
5934   if test -n "$YACC"; then
5935   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940   IFS=$as_save_IFS
5941   test -z "$as_dir" && as_dir=.
5942     for ac_exec_ext in '' $ac_executable_extensions; do
5943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944     ac_cv_prog_YACC="$ac_prog"
5945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946     break 2
5947   fi
5948 done
5949   done
5950 IFS=$as_save_IFS
5951
5952 fi
5953 fi
5954 YACC=$ac_cv_prog_YACC
5955 if test -n "$YACC"; then
5956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5957 $as_echo "$YACC" >&6; }
5958 else
5959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5961 fi
5962
5963
5964   test -n "$YACC" && break
5965 done
5966 test -n "$YACC" || YACC="yacc"
5967
5968 # Extract the first word of "doxygen", so it can be a program name with args.
5969 set dummy doxygen; ac_word=$2
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971 $as_echo_n "checking for $ac_word... " >&6; }
5972 if ${ac_cv_prog_doxygen+:} false; then :
5973   $as_echo_n "(cached) " >&6
5974 else
5975   if test -n "$doxygen"; then
5976   ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
5977 else
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5980 do
5981   IFS=$as_save_IFS
5982   test -z "$as_dir" && as_dir=.
5983     for ac_exec_ext in '' $ac_executable_extensions; do
5984   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5985     ac_cv_prog_doxygen="doxygen"
5986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987     break 2
5988   fi
5989 done
5990   done
5991 IFS=$as_save_IFS
5992
5993 fi
5994 fi
5995 doxygen=$ac_cv_prog_doxygen
5996 if test -n "$doxygen"; then
5997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
5998 $as_echo "$doxygen" >&6; }
5999 else
6000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001 $as_echo "no" >&6; }
6002 fi
6003
6004
6005 if test -n "$ac_tool_prefix"; then
6006   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6007 set dummy ${ac_tool_prefix}strip; ac_word=$2
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009 $as_echo_n "checking for $ac_word... " >&6; }
6010 if ${ac_cv_prog_STRIP+:} false; then :
6011   $as_echo_n "(cached) " >&6
6012 else
6013   if test -n "$STRIP"; then
6014   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6015 else
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6018 do
6019   IFS=$as_save_IFS
6020   test -z "$as_dir" && as_dir=.
6021     for ac_exec_ext in '' $ac_executable_extensions; do
6022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025     break 2
6026   fi
6027 done
6028   done
6029 IFS=$as_save_IFS
6030
6031 fi
6032 fi
6033 STRIP=$ac_cv_prog_STRIP
6034 if test -n "$STRIP"; then
6035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6036 $as_echo "$STRIP" >&6; }
6037 else
6038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6040 fi
6041
6042
6043 fi
6044 if test -z "$ac_cv_prog_STRIP"; then
6045   ac_ct_STRIP=$STRIP
6046   # Extract the first word of "strip", so it can be a program name with args.
6047 set dummy strip; ac_word=$2
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049 $as_echo_n "checking for $ac_word... " >&6; }
6050 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6051   $as_echo_n "(cached) " >&6
6052 else
6053   if test -n "$ac_ct_STRIP"; then
6054   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6055 else
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059   IFS=$as_save_IFS
6060   test -z "$as_dir" && as_dir=.
6061     for ac_exec_ext in '' $ac_executable_extensions; do
6062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6063     ac_cv_prog_ac_ct_STRIP="strip"
6064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065     break 2
6066   fi
6067 done
6068   done
6069 IFS=$as_save_IFS
6070
6071 fi
6072 fi
6073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6074 if test -n "$ac_ct_STRIP"; then
6075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6076 $as_echo "$ac_ct_STRIP" >&6; }
6077 else
6078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079 $as_echo "no" >&6; }
6080 fi
6081
6082   if test "x$ac_ct_STRIP" = x; then
6083     STRIP=""
6084   else
6085     case $cross_compiling:$ac_tool_warned in
6086 yes:)
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6089 ac_tool_warned=yes ;;
6090 esac
6091     STRIP=$ac_ct_STRIP
6092   fi
6093 else
6094   STRIP="$ac_cv_prog_STRIP"
6095 fi
6096
6097 ac_aux_dir=
6098 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6099   if test -f "$ac_dir/install-sh"; then
6100     ac_aux_dir=$ac_dir
6101     ac_install_sh="$ac_aux_dir/install-sh -c"
6102     break
6103   elif test -f "$ac_dir/install.sh"; then
6104     ac_aux_dir=$ac_dir
6105     ac_install_sh="$ac_aux_dir/install.sh -c"
6106     break
6107   elif test -f "$ac_dir/shtool"; then
6108     ac_aux_dir=$ac_dir
6109     ac_install_sh="$ac_aux_dir/shtool install -c"
6110     break
6111   fi
6112 done
6113 if test -z "$ac_aux_dir"; then
6114   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6115 fi
6116
6117 # These three variables are undocumented and unsupported,
6118 # and are intended to be withdrawn in a future Autoconf release.
6119 # They can cause serious problems if a builder's source tree is in a directory
6120 # whose full name contains unusual characters.
6121 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6122 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6123 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6124
6125
6126 # Make sure we can run config.sub.
6127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6128   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6129
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6131 $as_echo_n "checking build system type... " >&6; }
6132 if ${ac_cv_build+:} false; then :
6133   $as_echo_n "(cached) " >&6
6134 else
6135   ac_build_alias=$build_alias
6136 test "x$ac_build_alias" = x &&
6137   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6138 test "x$ac_build_alias" = x &&
6139   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6140 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6141   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6142
6143 fi
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6145 $as_echo "$ac_cv_build" >&6; }
6146 case $ac_cv_build in
6147 *-*-*) ;;
6148 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6149 esac
6150 build=$ac_cv_build
6151 ac_save_IFS=$IFS; IFS='-'
6152 set x $ac_cv_build
6153 shift
6154 build_cpu=$1
6155 build_vendor=$2
6156 shift; shift
6157 # Remember, the first character of IFS is used to create $*,
6158 # except with old shells:
6159 build_os=$*
6160 IFS=$ac_save_IFS
6161 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6162
6163
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6165 $as_echo_n "checking host system type... " >&6; }
6166 if ${ac_cv_host+:} false; then :
6167   $as_echo_n "(cached) " >&6
6168 else
6169   if test "x$host_alias" = x; then
6170   ac_cv_host=$ac_cv_build
6171 else
6172   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6173     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6174 fi
6175
6176 fi
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6178 $as_echo "$ac_cv_host" >&6; }
6179 case $ac_cv_host in
6180 *-*-*) ;;
6181 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6182 esac
6183 host=$ac_cv_host
6184 ac_save_IFS=$IFS; IFS='-'
6185 set x $ac_cv_host
6186 shift
6187 host_cpu=$1
6188 host_vendor=$2
6189 shift; shift
6190 # Remember, the first character of IFS is used to create $*,
6191 # except with old shells:
6192 host_os=$*
6193 IFS=$ac_save_IFS
6194 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6195
6196
6197
6198 # skip these tests, we do not need them.
6199
6200
6201
6202
6203
6204
6205
6206
6207 # always use ./libtool unless override from commandline (libtool=mylibtool)
6208 if test -z "$libtool"; then
6209         libtool="./libtool"
6210 fi
6211
6212 # avoid libtool max commandline length test on systems that fork slowly.
6213
6214 if echo "$host_os" | grep "sunos4" >/dev/null; then
6215         lt_cv_sys_max_cmd_len=32750;
6216 fi
6217 if test -n "$ac_tool_prefix"; then
6218   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6219 set dummy ${ac_tool_prefix}ar; ac_word=$2
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221 $as_echo_n "checking for $ac_word... " >&6; }
6222 if ${ac_cv_path_AR+:} false; then :
6223   $as_echo_n "(cached) " >&6
6224 else
6225   case $AR in
6226   [\\/]* | ?:[\\/]*)
6227   ac_cv_path_AR="$AR" # Let the user override the test with a path.
6228   ;;
6229   *)
6230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233   IFS=$as_save_IFS
6234   test -z "$as_dir" && as_dir=.
6235     for ac_exec_ext in '' $ac_executable_extensions; do
6236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6237     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6239     break 2
6240   fi
6241 done
6242   done
6243 IFS=$as_save_IFS
6244
6245   ;;
6246 esac
6247 fi
6248 AR=$ac_cv_path_AR
6249 if test -n "$AR"; then
6250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6251 $as_echo "$AR" >&6; }
6252 else
6253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6255 fi
6256
6257
6258 fi
6259 if test -z "$ac_cv_path_AR"; then
6260   ac_pt_AR=$AR
6261   # Extract the first word of "ar", so it can be a program name with args.
6262 set dummy ar; ac_word=$2
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if ${ac_cv_path_ac_pt_AR+:} false; then :
6266   $as_echo_n "(cached) " >&6
6267 else
6268   case $ac_pt_AR in
6269   [\\/]* | ?:[\\/]*)
6270   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6271   ;;
6272   *)
6273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276   IFS=$as_save_IFS
6277   test -z "$as_dir" && as_dir=.
6278     for ac_exec_ext in '' $ac_executable_extensions; do
6279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6280     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282     break 2
6283   fi
6284 done
6285   done
6286 IFS=$as_save_IFS
6287
6288   ;;
6289 esac
6290 fi
6291 ac_pt_AR=$ac_cv_path_ac_pt_AR
6292 if test -n "$ac_pt_AR"; then
6293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6294 $as_echo "$ac_pt_AR" >&6; }
6295 else
6296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6298 fi
6299
6300   if test "x$ac_pt_AR" = x; then
6301     AR="false"
6302   else
6303     case $cross_compiling:$ac_tool_warned in
6304 yes:)
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6307 ac_tool_warned=yes ;;
6308 esac
6309     AR=$ac_pt_AR
6310   fi
6311 else
6312   AR="$ac_cv_path_AR"
6313 fi
6314
6315 if test $AR = false; then
6316         as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6317 fi
6318
6319 case `pwd` in
6320   *\ * | *\     *)
6321     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6322 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6323 esac
6324
6325
6326
6327 macro_version='2.4.2'
6328 macro_revision='1.3337'
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342 ltmain="$ac_aux_dir/ltmain.sh"
6343
6344 # Backslashify metacharacters that are still active within
6345 # double-quoted strings.
6346 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6347
6348 # Same as above, but do not quote variable references.
6349 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6350
6351 # Sed substitution to delay expansion of an escaped shell variable in a
6352 # double_quote_subst'ed string.
6353 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6354
6355 # Sed substitution to delay expansion of an escaped single quote.
6356 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6357
6358 # Sed substitution to avoid accidental globbing in evaled expressions
6359 no_glob_subst='s/\*/\\\*/g'
6360
6361 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6362 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6363 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6364
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6366 $as_echo_n "checking how to print strings... " >&6; }
6367 # Test print first, because it will be a builtin if present.
6368 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6369    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6370   ECHO='print -r --'
6371 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6372   ECHO='printf %s\n'
6373 else
6374   # Use this function as a fallback that always works.
6375   func_fallback_echo ()
6376   {
6377     eval 'cat <<_LTECHO_EOF
6378 $1
6379 _LTECHO_EOF'
6380   }
6381   ECHO='func_fallback_echo'
6382 fi
6383
6384 # func_echo_all arg...
6385 # Invoke $ECHO with all args, space-separated.
6386 func_echo_all ()
6387 {
6388     $ECHO ""
6389 }
6390
6391 case "$ECHO" in
6392   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6393 $as_echo "printf" >&6; } ;;
6394   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6395 $as_echo "print -r" >&6; } ;;
6396   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6397 $as_echo "cat" >&6; } ;;
6398 esac
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6414 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6415 if ${ac_cv_path_SED+:} false; then :
6416   $as_echo_n "(cached) " >&6
6417 else
6418             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6419      for ac_i in 1 2 3 4 5 6 7; do
6420        ac_script="$ac_script$as_nl$ac_script"
6421      done
6422      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6423      { ac_script=; unset ac_script;}
6424      if test -z "$SED"; then
6425   ac_path_SED_found=false
6426   # Loop through the user's path and test for each of PROGNAME-LIST
6427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430   IFS=$as_save_IFS
6431   test -z "$as_dir" && as_dir=.
6432     for ac_prog in sed gsed; do
6433     for ac_exec_ext in '' $ac_executable_extensions; do
6434       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6435       as_fn_executable_p "$ac_path_SED" || continue
6436 # Check for GNU ac_path_SED and select it if it is found.
6437   # Check for GNU $ac_path_SED
6438 case `"$ac_path_SED" --version 2>&1` in
6439 *GNU*)
6440   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6441 *)
6442   ac_count=0
6443   $as_echo_n 0123456789 >"conftest.in"
6444   while :
6445   do
6446     cat "conftest.in" "conftest.in" >"conftest.tmp"
6447     mv "conftest.tmp" "conftest.in"
6448     cp "conftest.in" "conftest.nl"
6449     $as_echo '' >> "conftest.nl"
6450     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6451     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6452     as_fn_arith $ac_count + 1 && ac_count=$as_val
6453     if test $ac_count -gt ${ac_path_SED_max-0}; then
6454       # Best one so far, save it but keep looking for a better one
6455       ac_cv_path_SED="$ac_path_SED"
6456       ac_path_SED_max=$ac_count
6457     fi
6458     # 10*(2^10) chars as input seems more than enough
6459     test $ac_count -gt 10 && break
6460   done
6461   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6462 esac
6463
6464       $ac_path_SED_found && break 3
6465     done
6466   done
6467   done
6468 IFS=$as_save_IFS
6469   if test -z "$ac_cv_path_SED"; then
6470     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6471   fi
6472 else
6473   ac_cv_path_SED=$SED
6474 fi
6475
6476 fi
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6478 $as_echo "$ac_cv_path_SED" >&6; }
6479  SED="$ac_cv_path_SED"
6480   rm -f conftest.sed
6481
6482 test -z "$SED" && SED=sed
6483 Xsed="$SED -e 1s/^X//"
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6496 $as_echo_n "checking for fgrep... " >&6; }
6497 if ${ac_cv_path_FGREP+:} false; then :
6498   $as_echo_n "(cached) " >&6
6499 else
6500   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6501    then ac_cv_path_FGREP="$GREP -F"
6502    else
6503      if test -z "$FGREP"; then
6504   ac_path_FGREP_found=false
6505   # Loop through the user's path and test for each of PROGNAME-LIST
6506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6508 do
6509   IFS=$as_save_IFS
6510   test -z "$as_dir" && as_dir=.
6511     for ac_prog in fgrep; do
6512     for ac_exec_ext in '' $ac_executable_extensions; do
6513       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6514       as_fn_executable_p "$ac_path_FGREP" || continue
6515 # Check for GNU ac_path_FGREP and select it if it is found.
6516   # Check for GNU $ac_path_FGREP
6517 case `"$ac_path_FGREP" --version 2>&1` in
6518 *GNU*)
6519   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6520 *)
6521   ac_count=0
6522   $as_echo_n 0123456789 >"conftest.in"
6523   while :
6524   do
6525     cat "conftest.in" "conftest.in" >"conftest.tmp"
6526     mv "conftest.tmp" "conftest.in"
6527     cp "conftest.in" "conftest.nl"
6528     $as_echo 'FGREP' >> "conftest.nl"
6529     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6530     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6531     as_fn_arith $ac_count + 1 && ac_count=$as_val
6532     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6533       # Best one so far, save it but keep looking for a better one
6534       ac_cv_path_FGREP="$ac_path_FGREP"
6535       ac_path_FGREP_max=$ac_count
6536     fi
6537     # 10*(2^10) chars as input seems more than enough
6538     test $ac_count -gt 10 && break
6539   done
6540   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6541 esac
6542
6543       $ac_path_FGREP_found && break 3
6544     done
6545   done
6546   done
6547 IFS=$as_save_IFS
6548   if test -z "$ac_cv_path_FGREP"; then
6549     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6550   fi
6551 else
6552   ac_cv_path_FGREP=$FGREP
6553 fi
6554
6555    fi
6556 fi
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6558 $as_echo "$ac_cv_path_FGREP" >&6; }
6559  FGREP="$ac_cv_path_FGREP"
6560
6561
6562 test -z "$GREP" && GREP=grep
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582 # Check whether --with-gnu-ld was given.
6583 if test "${with_gnu_ld+set}" = set; then :
6584   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6585 else
6586   with_gnu_ld=no
6587 fi
6588
6589 ac_prog=ld
6590 if test "$GCC" = yes; then
6591   # Check if gcc -print-prog-name=ld gives a path.
6592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6593 $as_echo_n "checking for ld used by $CC... " >&6; }
6594   case $host in
6595   *-*-mingw*)
6596     # gcc leaves a trailing carriage return which upsets mingw
6597     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6598   *)
6599     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6600   esac
6601   case $ac_prog in
6602     # Accept absolute paths.
6603     [\\/]* | ?:[\\/]*)
6604       re_direlt='/[^/][^/]*/\.\./'
6605       # Canonicalize the pathname of ld
6606       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6607       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6608         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6609       done
6610       test -z "$LD" && LD="$ac_prog"
6611       ;;
6612   "")
6613     # If it fails, then pretend we aren't using GCC.
6614     ac_prog=ld
6615     ;;
6616   *)
6617     # If it is relative, then search for the first ld in PATH.
6618     with_gnu_ld=unknown
6619     ;;
6620   esac
6621 elif test "$with_gnu_ld" = yes; then
6622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6623 $as_echo_n "checking for GNU ld... " >&6; }
6624 else
6625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6626 $as_echo_n "checking for non-GNU ld... " >&6; }
6627 fi
6628 if ${lt_cv_path_LD+:} false; then :
6629   $as_echo_n "(cached) " >&6
6630 else
6631   if test -z "$LD"; then
6632   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6633   for ac_dir in $PATH; do
6634     IFS="$lt_save_ifs"
6635     test -z "$ac_dir" && ac_dir=.
6636     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6637       lt_cv_path_LD="$ac_dir/$ac_prog"
6638       # Check to see if the program is GNU ld.  I'd rather use --version,
6639       # but apparently some variants of GNU ld only accept -v.
6640       # Break only if it was the GNU/non-GNU ld that we prefer.
6641       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6642       *GNU* | *'with BFD'*)
6643         test "$with_gnu_ld" != no && break
6644         ;;
6645       *)
6646         test "$with_gnu_ld" != yes && break
6647         ;;
6648       esac
6649     fi
6650   done
6651   IFS="$lt_save_ifs"
6652 else
6653   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6654 fi
6655 fi
6656
6657 LD="$lt_cv_path_LD"
6658 if test -n "$LD"; then
6659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6660 $as_echo "$LD" >&6; }
6661 else
6662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6664 fi
6665 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6667 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6668 if ${lt_cv_prog_gnu_ld+:} false; then :
6669   $as_echo_n "(cached) " >&6
6670 else
6671   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6672 case `$LD -v 2>&1 </dev/null` in
6673 *GNU* | *'with BFD'*)
6674   lt_cv_prog_gnu_ld=yes
6675   ;;
6676 *)
6677   lt_cv_prog_gnu_ld=no
6678   ;;
6679 esac
6680 fi
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6682 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6683 with_gnu_ld=$lt_cv_prog_gnu_ld
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6694 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6695 if ${lt_cv_path_NM+:} false; then :
6696   $as_echo_n "(cached) " >&6
6697 else
6698   if test -n "$NM"; then
6699   # Let the user override the test.
6700   lt_cv_path_NM="$NM"
6701 else
6702   lt_nm_to_check="${ac_tool_prefix}nm"
6703   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6704     lt_nm_to_check="$lt_nm_to_check nm"
6705   fi
6706   for lt_tmp_nm in $lt_nm_to_check; do
6707     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6708     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6709       IFS="$lt_save_ifs"
6710       test -z "$ac_dir" && ac_dir=.
6711       tmp_nm="$ac_dir/$lt_tmp_nm"
6712       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6713         # Check to see if the nm accepts a BSD-compat flag.
6714         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6715         #   nm: unknown option "B" ignored
6716         # Tru64's nm complains that /dev/null is an invalid object file
6717         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6718         */dev/null* | *'Invalid file or object type'*)
6719           lt_cv_path_NM="$tmp_nm -B"
6720           break
6721           ;;
6722         *)
6723           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6724           */dev/null*)
6725             lt_cv_path_NM="$tmp_nm -p"
6726             break
6727             ;;
6728           *)
6729             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6730             continue # so that we can try to find one that supports BSD flags
6731             ;;
6732           esac
6733           ;;
6734         esac
6735       fi
6736     done
6737     IFS="$lt_save_ifs"
6738   done
6739   : ${lt_cv_path_NM=no}
6740 fi
6741 fi
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6743 $as_echo "$lt_cv_path_NM" >&6; }
6744 if test "$lt_cv_path_NM" != "no"; then
6745   NM="$lt_cv_path_NM"
6746 else
6747   # Didn't find any BSD compatible name lister, look for dumpbin.
6748   if test -n "$DUMPBIN"; then :
6749     # Let the user override the test.
6750   else
6751     if test -n "$ac_tool_prefix"; then
6752   for ac_prog in dumpbin "link -dump"
6753   do
6754     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if ${ac_cv_prog_DUMPBIN+:} false; then :
6759   $as_echo_n "(cached) " >&6
6760 else
6761   if test -n "$DUMPBIN"; then
6762   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767   IFS=$as_save_IFS
6768   test -z "$as_dir" && as_dir=.
6769     for ac_exec_ext in '' $ac_executable_extensions; do
6770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773     break 2
6774   fi
6775 done
6776   done
6777 IFS=$as_save_IFS
6778
6779 fi
6780 fi
6781 DUMPBIN=$ac_cv_prog_DUMPBIN
6782 if test -n "$DUMPBIN"; then
6783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6784 $as_echo "$DUMPBIN" >&6; }
6785 else
6786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6788 fi
6789
6790
6791     test -n "$DUMPBIN" && break
6792   done
6793 fi
6794 if test -z "$DUMPBIN"; then
6795   ac_ct_DUMPBIN=$DUMPBIN
6796   for ac_prog in dumpbin "link -dump"
6797 do
6798   # Extract the first word of "$ac_prog", so it can be a program name with args.
6799 set dummy $ac_prog; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6803   $as_echo_n "(cached) " >&6
6804 else
6805   if test -n "$ac_ct_DUMPBIN"; then
6806   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811   IFS=$as_save_IFS
6812   test -z "$as_dir" && as_dir=.
6813     for ac_exec_ext in '' $ac_executable_extensions; do
6814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6815     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817     break 2
6818   fi
6819 done
6820   done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6826 if test -n "$ac_ct_DUMPBIN"; then
6827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6828 $as_echo "$ac_ct_DUMPBIN" >&6; }
6829 else
6830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6832 fi
6833
6834
6835   test -n "$ac_ct_DUMPBIN" && break
6836 done
6837
6838   if test "x$ac_ct_DUMPBIN" = x; then
6839     DUMPBIN=":"
6840   else
6841     case $cross_compiling:$ac_tool_warned in
6842 yes:)
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845 ac_tool_warned=yes ;;
6846 esac
6847     DUMPBIN=$ac_ct_DUMPBIN
6848   fi
6849 fi
6850
6851     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6852     *COFF*)
6853       DUMPBIN="$DUMPBIN -symbols"
6854       ;;
6855     *)
6856       DUMPBIN=:
6857       ;;
6858     esac
6859   fi
6860
6861   if test "$DUMPBIN" != ":"; then
6862     NM="$DUMPBIN"
6863   fi
6864 fi
6865 test -z "$NM" && NM=nm
6866
6867
6868
6869
6870
6871
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6873 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6874 if ${lt_cv_nm_interface+:} false; then :
6875   $as_echo_n "(cached) " >&6
6876 else
6877   lt_cv_nm_interface="BSD nm"
6878   echo "int some_variable = 0;" > conftest.$ac_ext
6879   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6880   (eval "$ac_compile" 2>conftest.err)
6881   cat conftest.err >&5
6882   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6883   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6884   cat conftest.err >&5
6885   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6886   cat conftest.out >&5
6887   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6888     lt_cv_nm_interface="MS dumpbin"
6889   fi
6890   rm -f conftest*
6891 fi
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6893 $as_echo "$lt_cv_nm_interface" >&6; }
6894
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6896 $as_echo_n "checking whether ln -s works... " >&6; }
6897 LN_S=$as_ln_s
6898 if test "$LN_S" = "ln -s"; then
6899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6900 $as_echo "yes" >&6; }
6901 else
6902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6903 $as_echo "no, using $LN_S" >&6; }
6904 fi
6905
6906 # find the maximum length of command line arguments
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6908 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6909 if ${lt_cv_sys_max_cmd_len+:} false; then :
6910   $as_echo_n "(cached) " >&6
6911 else
6912     i=0
6913   teststring="ABCD"
6914
6915   case $build_os in
6916   msdosdjgpp*)
6917     # On DJGPP, this test can blow up pretty badly due to problems in libc
6918     # (any single argument exceeding 2000 bytes causes a buffer overrun
6919     # during glob expansion).  Even if it were fixed, the result of this
6920     # check would be larger than it should be.
6921     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6922     ;;
6923
6924   gnu*)
6925     # Under GNU Hurd, this test is not required because there is
6926     # no limit to the length of command line arguments.
6927     # Libtool will interpret -1 as no limit whatsoever
6928     lt_cv_sys_max_cmd_len=-1;
6929     ;;
6930
6931   cygwin* | mingw* | cegcc*)
6932     # On Win9x/ME, this test blows up -- it succeeds, but takes
6933     # about 5 minutes as the teststring grows exponentially.
6934     # Worse, since 9x/ME are not pre-emptively multitasking,
6935     # you end up with a "frozen" computer, even though with patience
6936     # the test eventually succeeds (with a max line length of 256k).
6937     # Instead, let's just punt: use the minimum linelength reported by
6938     # all of the supported platforms: 8192 (on NT/2K/XP).
6939     lt_cv_sys_max_cmd_len=8192;
6940     ;;
6941
6942   mint*)
6943     # On MiNT this can take a long time and run out of memory.
6944     lt_cv_sys_max_cmd_len=8192;
6945     ;;
6946
6947   amigaos*)
6948     # On AmigaOS with pdksh, this test takes hours, literally.
6949     # So we just punt and use a minimum line length of 8192.
6950     lt_cv_sys_max_cmd_len=8192;
6951     ;;
6952
6953   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6954     # This has been around since 386BSD, at least.  Likely further.
6955     if test -x /sbin/sysctl; then
6956       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6957     elif test -x /usr/sbin/sysctl; then
6958       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6959     else
6960       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6961     fi
6962     # And add a safety zone
6963     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6964     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6965     ;;
6966
6967   interix*)
6968     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6969     lt_cv_sys_max_cmd_len=196608
6970     ;;
6971
6972   os2*)
6973     # The test takes a long time on OS/2.
6974     lt_cv_sys_max_cmd_len=8192
6975     ;;
6976
6977   osf*)
6978     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6979     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6980     # nice to cause kernel panics so lets avoid the loop below.
6981     # First set a reasonable default.
6982     lt_cv_sys_max_cmd_len=16384
6983     #
6984     if test -x /sbin/sysconfig; then
6985       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6986         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6987       esac
6988     fi
6989     ;;
6990   sco3.2v5*)
6991     lt_cv_sys_max_cmd_len=102400
6992     ;;
6993   sysv5* | sco5v6* | sysv4.2uw2*)
6994     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6995     if test -n "$kargmax"; then
6996       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6997     else
6998       lt_cv_sys_max_cmd_len=32768
6999     fi
7000     ;;
7001   *)
7002     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7003     if test -n "$lt_cv_sys_max_cmd_len"; then
7004       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7005       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7006     else
7007       # Make teststring a little bigger before we do anything with it.
7008       # a 1K string should be a reasonable start.
7009       for i in 1 2 3 4 5 6 7 8 ; do
7010         teststring=$teststring$teststring
7011       done
7012       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7013       # If test is not a shell built-in, we'll probably end up computing a
7014       # maximum length that is only half of the actual maximum length, but
7015       # we can't tell.
7016       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7017                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7018               test $i != 17 # 1/2 MB should be enough
7019       do
7020         i=`expr $i + 1`
7021         teststring=$teststring$teststring
7022       done
7023       # Only check the string length outside the loop.
7024       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7025       teststring=
7026       # Add a significant safety factor because C++ compilers can tack on
7027       # massive amounts of additional arguments before passing them to the
7028       # linker.  It appears as though 1/2 is a usable value.
7029       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7030     fi
7031     ;;
7032   esac
7033
7034 fi
7035
7036 if test -n $lt_cv_sys_max_cmd_len ; then
7037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7038 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7039 else
7040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7041 $as_echo "none" >&6; }
7042 fi
7043 max_cmd_len=$lt_cv_sys_max_cmd_len
7044
7045
7046
7047
7048
7049
7050 : ${CP="cp -f"}
7051 : ${MV="mv -f"}
7052 : ${RM="rm -f"}
7053
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7055 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7056 # Try some XSI features
7057 xsi_shell=no
7058 ( _lt_dummy="a/b/c"
7059   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7060       = c,a/b,b/c, \
7061     && eval 'test $(( 1 + 1 )) -eq 2 \
7062     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7063   && xsi_shell=yes
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7065 $as_echo "$xsi_shell" >&6; }
7066
7067
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7069 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7070 lt_shell_append=no
7071 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7072     >/dev/null 2>&1 \
7073   && lt_shell_append=yes
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7075 $as_echo "$lt_shell_append" >&6; }
7076
7077
7078 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7079   lt_unset=unset
7080 else
7081   lt_unset=false
7082 fi
7083
7084
7085
7086
7087
7088 # test EBCDIC or ASCII
7089 case `echo X|tr X '\101'` in
7090  A) # ASCII based system
7091     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7092   lt_SP2NL='tr \040 \012'
7093   lt_NL2SP='tr \015\012 \040\040'
7094   ;;
7095  *) # EBCDIC based system
7096   lt_SP2NL='tr \100 \n'
7097   lt_NL2SP='tr \r\n \100\100'
7098   ;;
7099 esac
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7110 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7111 if ${lt_cv_to_host_file_cmd+:} false; then :
7112   $as_echo_n "(cached) " >&6
7113 else
7114   case $host in
7115   *-*-mingw* )
7116     case $build in
7117       *-*-mingw* ) # actually msys
7118         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7119         ;;
7120       *-*-cygwin* )
7121         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7122         ;;
7123       * ) # otherwise, assume *nix
7124         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7125         ;;
7126     esac
7127     ;;
7128   *-*-cygwin* )
7129     case $build in
7130       *-*-mingw* ) # actually msys
7131         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7132         ;;
7133       *-*-cygwin* )
7134         lt_cv_to_host_file_cmd=func_convert_file_noop
7135         ;;
7136       * ) # otherwise, assume *nix
7137         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7138         ;;
7139     esac
7140     ;;
7141   * ) # unhandled hosts (and "normal" native builds)
7142     lt_cv_to_host_file_cmd=func_convert_file_noop
7143     ;;
7144 esac
7145
7146 fi
7147
7148 to_host_file_cmd=$lt_cv_to_host_file_cmd
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7150 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7151
7152
7153
7154
7155
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7157 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7158 if ${lt_cv_to_tool_file_cmd+:} false; then :
7159   $as_echo_n "(cached) " >&6
7160 else
7161   #assume ordinary cross tools, or native build.
7162 lt_cv_to_tool_file_cmd=func_convert_file_noop
7163 case $host in
7164   *-*-mingw* )
7165     case $build in
7166       *-*-mingw* ) # actually msys
7167         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7168         ;;
7169     esac
7170     ;;
7171 esac
7172
7173 fi
7174
7175 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7177 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7178
7179
7180
7181
7182
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7184 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7185 if ${lt_cv_ld_reload_flag+:} false; then :
7186   $as_echo_n "(cached) " >&6
7187 else
7188   lt_cv_ld_reload_flag='-r'
7189 fi
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7191 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7192 reload_flag=$lt_cv_ld_reload_flag
7193 case $reload_flag in
7194 "" | " "*) ;;
7195 *) reload_flag=" $reload_flag" ;;
7196 esac
7197 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7198 case $host_os in
7199   cygwin* | mingw* | pw32* | cegcc*)
7200     if test "$GCC" != yes; then
7201       reload_cmds=false
7202     fi
7203     ;;
7204   darwin*)
7205     if test "$GCC" = yes; then
7206       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7207     else
7208       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7209     fi
7210     ;;
7211 esac
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221 if test -n "$ac_tool_prefix"; then
7222   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if ${ac_cv_prog_OBJDUMP+:} false; then :
7227   $as_echo_n "(cached) " >&6
7228 else
7229   if test -n "$OBJDUMP"; then
7230   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235   IFS=$as_save_IFS
7236   test -z "$as_dir" && as_dir=.
7237     for ac_exec_ext in '' $ac_executable_extensions; do
7238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241     break 2
7242   fi
7243 done
7244   done
7245 IFS=$as_save_IFS
7246
7247 fi
7248 fi
7249 OBJDUMP=$ac_cv_prog_OBJDUMP
7250 if test -n "$OBJDUMP"; then
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7252 $as_echo "$OBJDUMP" >&6; }
7253 else
7254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7256 fi
7257
7258
7259 fi
7260 if test -z "$ac_cv_prog_OBJDUMP"; then
7261   ac_ct_OBJDUMP=$OBJDUMP
7262   # Extract the first word of "objdump", so it can be a program name with args.
7263 set dummy objdump; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7267   $as_echo_n "(cached) " >&6
7268 else
7269   if test -n "$ac_ct_OBJDUMP"; then
7270   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7271 else
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275   IFS=$as_save_IFS
7276   test -z "$as_dir" && as_dir=.
7277     for ac_exec_ext in '' $ac_executable_extensions; do
7278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281     break 2
7282   fi
7283 done
7284   done
7285 IFS=$as_save_IFS
7286
7287 fi
7288 fi
7289 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7290 if test -n "$ac_ct_OBJDUMP"; then
7291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7292 $as_echo "$ac_ct_OBJDUMP" >&6; }
7293 else
7294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7296 fi
7297
7298   if test "x$ac_ct_OBJDUMP" = x; then
7299     OBJDUMP="false"
7300   else
7301     case $cross_compiling:$ac_tool_warned in
7302 yes:)
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7305 ac_tool_warned=yes ;;
7306 esac
7307     OBJDUMP=$ac_ct_OBJDUMP
7308   fi
7309 else
7310   OBJDUMP="$ac_cv_prog_OBJDUMP"
7311 fi
7312
7313 test -z "$OBJDUMP" && OBJDUMP=objdump
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7324 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7325 if ${lt_cv_deplibs_check_method+:} false; then :
7326   $as_echo_n "(cached) " >&6
7327 else
7328   lt_cv_file_magic_cmd='$MAGIC_CMD'
7329 lt_cv_file_magic_test_file=
7330 lt_cv_deplibs_check_method='unknown'
7331 # Need to set the preceding variable on all platforms that support
7332 # interlibrary dependencies.
7333 # 'none' -- dependencies not supported.
7334 # `unknown' -- same as none, but documents that we really don't know.
7335 # 'pass_all' -- all dependencies passed with no checks.
7336 # 'test_compile' -- check by making test program.
7337 # 'file_magic [[regex]]' -- check by looking for files in library path
7338 # which responds to the $file_magic_cmd with a given extended regex.
7339 # If you have `file' or equivalent on your system and you're not sure
7340 # whether `pass_all' will *always* work, you probably want this one.
7341
7342 case $host_os in
7343 aix[4-9]*)
7344   lt_cv_deplibs_check_method=pass_all
7345   ;;
7346
7347 beos*)
7348   lt_cv_deplibs_check_method=pass_all
7349   ;;
7350
7351 bsdi[45]*)
7352   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7353   lt_cv_file_magic_cmd='/usr/bin/file -L'
7354   lt_cv_file_magic_test_file=/shlib/libc.so
7355   ;;
7356
7357 cygwin*)
7358   # func_win32_libid is a shell function defined in ltmain.sh
7359   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7360   lt_cv_file_magic_cmd='func_win32_libid'
7361   ;;
7362
7363 mingw* | pw32*)
7364   # Base MSYS/MinGW do not provide the 'file' command needed by
7365   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7366   # unless we find 'file', for example because we are cross-compiling.
7367   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7368   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7369     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7370     lt_cv_file_magic_cmd='func_win32_libid'
7371   else
7372     # Keep this pattern in sync with the one in func_win32_libid.
7373     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7374     lt_cv_file_magic_cmd='$OBJDUMP -f'
7375   fi
7376   ;;
7377
7378 cegcc*)
7379   # use the weaker test based on 'objdump'. See mingw*.
7380   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7381   lt_cv_file_magic_cmd='$OBJDUMP -f'
7382   ;;
7383
7384 darwin* | rhapsody*)
7385   lt_cv_deplibs_check_method=pass_all
7386   ;;
7387
7388 freebsd* | dragonfly*)
7389   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7390     case $host_cpu in
7391     i*86 )
7392       # Not sure whether the presence of OpenBSD here was a mistake.
7393       # Let's accept both of them until this is cleared up.
7394       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7395       lt_cv_file_magic_cmd=/usr/bin/file
7396       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7397       ;;
7398     esac
7399   else
7400     lt_cv_deplibs_check_method=pass_all
7401   fi
7402   ;;
7403
7404 gnu*)
7405   lt_cv_deplibs_check_method=pass_all
7406   ;;
7407
7408 haiku*)
7409   lt_cv_deplibs_check_method=pass_all
7410   ;;
7411
7412 hpux10.20* | hpux11*)
7413   lt_cv_file_magic_cmd=/usr/bin/file
7414   case $host_cpu in
7415   ia64*)
7416     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7417     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7418     ;;
7419   hppa*64*)
7420     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]'
7421     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7422     ;;
7423   *)
7424     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7425     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7426     ;;
7427   esac
7428   ;;
7429
7430 interix[3-9]*)
7431   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7432   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7433   ;;
7434
7435 irix5* | irix6* | nonstopux*)
7436   case $LD in
7437   *-32|*"-32 ") libmagic=32-bit;;
7438   *-n32|*"-n32 ") libmagic=N32;;
7439   *-64|*"-64 ") libmagic=64-bit;;
7440   *) libmagic=never-match;;
7441   esac
7442   lt_cv_deplibs_check_method=pass_all
7443   ;;
7444
7445 # This must be glibc/ELF.
7446 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7447   lt_cv_deplibs_check_method=pass_all
7448   ;;
7449
7450 netbsd*)
7451   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7452     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7453   else
7454     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7455   fi
7456   ;;
7457
7458 newos6*)
7459   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7460   lt_cv_file_magic_cmd=/usr/bin/file
7461   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7462   ;;
7463
7464 *nto* | *qnx*)
7465   lt_cv_deplibs_check_method=pass_all
7466   ;;
7467
7468 openbsd*)
7469   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7470     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7471   else
7472     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7473   fi
7474   ;;
7475
7476 osf3* | osf4* | osf5*)
7477   lt_cv_deplibs_check_method=pass_all
7478   ;;
7479
7480 rdos*)
7481   lt_cv_deplibs_check_method=pass_all
7482   ;;
7483
7484 solaris*)
7485   lt_cv_deplibs_check_method=pass_all
7486   ;;
7487
7488 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7489   lt_cv_deplibs_check_method=pass_all
7490   ;;
7491
7492 sysv4 | sysv4.3*)
7493   case $host_vendor in
7494   motorola)
7495     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]'
7496     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7497     ;;
7498   ncr)
7499     lt_cv_deplibs_check_method=pass_all
7500     ;;
7501   sequent)
7502     lt_cv_file_magic_cmd='/bin/file'
7503     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7504     ;;
7505   sni)
7506     lt_cv_file_magic_cmd='/bin/file'
7507     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7508     lt_cv_file_magic_test_file=/lib/libc.so
7509     ;;
7510   siemens)
7511     lt_cv_deplibs_check_method=pass_all
7512     ;;
7513   pc)
7514     lt_cv_deplibs_check_method=pass_all
7515     ;;
7516   esac
7517   ;;
7518
7519 tpf*)
7520   lt_cv_deplibs_check_method=pass_all
7521   ;;
7522 esac
7523
7524 fi
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7526 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7527
7528 file_magic_glob=
7529 want_nocaseglob=no
7530 if test "$build" = "$host"; then
7531   case $host_os in
7532   mingw* | pw32*)
7533     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7534       want_nocaseglob=yes
7535     else
7536       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7537     fi
7538     ;;
7539   esac
7540 fi
7541
7542 file_magic_cmd=$lt_cv_file_magic_cmd
7543 deplibs_check_method=$lt_cv_deplibs_check_method
7544 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567 if test -n "$ac_tool_prefix"; then
7568   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7569 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if ${ac_cv_prog_DLLTOOL+:} false; then :
7573   $as_echo_n "(cached) " >&6
7574 else
7575   if test -n "$DLLTOOL"; then
7576   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7577 else
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in $PATH
7580 do
7581   IFS=$as_save_IFS
7582   test -z "$as_dir" && as_dir=.
7583     for ac_exec_ext in '' $ac_executable_extensions; do
7584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7585     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587     break 2
7588   fi
7589 done
7590   done
7591 IFS=$as_save_IFS
7592
7593 fi
7594 fi
7595 DLLTOOL=$ac_cv_prog_DLLTOOL
7596 if test -n "$DLLTOOL"; then
7597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7598 $as_echo "$DLLTOOL" >&6; }
7599 else
7600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7602 fi
7603
7604
7605 fi
7606 if test -z "$ac_cv_prog_DLLTOOL"; then
7607   ac_ct_DLLTOOL=$DLLTOOL
7608   # Extract the first word of "dlltool", so it can be a program name with args.
7609 set dummy dlltool; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7613   $as_echo_n "(cached) " >&6
7614 else
7615   if test -n "$ac_ct_DLLTOOL"; then
7616   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7620 do
7621   IFS=$as_save_IFS
7622   test -z "$as_dir" && as_dir=.
7623     for ac_exec_ext in '' $ac_executable_extensions; do
7624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7625     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627     break 2
7628   fi
7629 done
7630   done
7631 IFS=$as_save_IFS
7632
7633 fi
7634 fi
7635 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7636 if test -n "$ac_ct_DLLTOOL"; then
7637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7638 $as_echo "$ac_ct_DLLTOOL" >&6; }
7639 else
7640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7642 fi
7643
7644   if test "x$ac_ct_DLLTOOL" = x; then
7645     DLLTOOL="false"
7646   else
7647     case $cross_compiling:$ac_tool_warned in
7648 yes:)
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7651 ac_tool_warned=yes ;;
7652 esac
7653     DLLTOOL=$ac_ct_DLLTOOL
7654   fi
7655 else
7656   DLLTOOL="$ac_cv_prog_DLLTOOL"
7657 fi
7658
7659 test -z "$DLLTOOL" && DLLTOOL=dlltool
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7671 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7672 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7673   $as_echo_n "(cached) " >&6
7674 else
7675   lt_cv_sharedlib_from_linklib_cmd='unknown'
7676
7677 case $host_os in
7678 cygwin* | mingw* | pw32* | cegcc*)
7679   # two different shell functions defined in ltmain.sh
7680   # decide which to use based on capabilities of $DLLTOOL
7681   case `$DLLTOOL --help 2>&1` in
7682   *--identify-strict*)
7683     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7684     ;;
7685   *)
7686     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7687     ;;
7688   esac
7689   ;;
7690 *)
7691   # fallback: assume linklib IS sharedlib
7692   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7693   ;;
7694 esac
7695
7696 fi
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7698 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7699 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7700 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7701
7702
7703
7704
7705
7706
7707
7708 if test -n "$ac_tool_prefix"; then
7709   for ac_prog in ar
7710   do
7711     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7712 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if ${ac_cv_prog_AR+:} false; then :
7716   $as_echo_n "(cached) " >&6
7717 else
7718   if test -n "$AR"; then
7719   ac_cv_prog_AR="$AR" # Let the user override the test.
7720 else
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH
7723 do
7724   IFS=$as_save_IFS
7725   test -z "$as_dir" && as_dir=.
7726     for ac_exec_ext in '' $ac_executable_extensions; do
7727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7728     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730     break 2
7731   fi
7732 done
7733   done
7734 IFS=$as_save_IFS
7735
7736 fi
7737 fi
7738 AR=$ac_cv_prog_AR
7739 if test -n "$AR"; then
7740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7741 $as_echo "$AR" >&6; }
7742 else
7743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7745 fi
7746
7747
7748     test -n "$AR" && break
7749   done
7750 fi
7751 if test -z "$AR"; then
7752   ac_ct_AR=$AR
7753   for ac_prog in ar
7754 do
7755   # Extract the first word of "$ac_prog", so it can be a program name with args.
7756 set dummy $ac_prog; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7760   $as_echo_n "(cached) " >&6
7761 else
7762   if test -n "$ac_ct_AR"; then
7763   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7764 else
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7767 do
7768   IFS=$as_save_IFS
7769   test -z "$as_dir" && as_dir=.
7770     for ac_exec_ext in '' $ac_executable_extensions; do
7771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7772     ac_cv_prog_ac_ct_AR="$ac_prog"
7773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774     break 2
7775   fi
7776 done
7777   done
7778 IFS=$as_save_IFS
7779
7780 fi
7781 fi
7782 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7783 if test -n "$ac_ct_AR"; then
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7785 $as_echo "$ac_ct_AR" >&6; }
7786 else
7787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7789 fi
7790
7791
7792   test -n "$ac_ct_AR" && break
7793 done
7794
7795   if test "x$ac_ct_AR" = x; then
7796     AR="false"
7797   else
7798     case $cross_compiling:$ac_tool_warned in
7799 yes:)
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7802 ac_tool_warned=yes ;;
7803 esac
7804     AR=$ac_ct_AR
7805   fi
7806 fi
7807
7808 : ${AR=ar}
7809 : ${AR_FLAGS=cru}
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7822 $as_echo_n "checking for archiver @FILE support... " >&6; }
7823 if ${lt_cv_ar_at_file+:} false; then :
7824   $as_echo_n "(cached) " >&6
7825 else
7826   lt_cv_ar_at_file=no
7827    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h.  */
7829
7830 int
7831 main ()
7832 {
7833
7834   ;
7835   return 0;
7836 }
7837 _ACEOF
7838 if ac_fn_c_try_compile "$LINENO"; then :
7839   echo conftest.$ac_objext > conftest.lst
7840       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7841       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7842   (eval $lt_ar_try) 2>&5
7843   ac_status=$?
7844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7845   test $ac_status = 0; }
7846       if test "$ac_status" -eq 0; then
7847         # Ensure the archiver fails upon bogus file names.
7848         rm -f conftest.$ac_objext libconftest.a
7849         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7850   (eval $lt_ar_try) 2>&5
7851   ac_status=$?
7852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7853   test $ac_status = 0; }
7854         if test "$ac_status" -ne 0; then
7855           lt_cv_ar_at_file=@
7856         fi
7857       fi
7858       rm -f conftest.* libconftest.a
7859
7860 fi
7861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7862
7863 fi
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7865 $as_echo "$lt_cv_ar_at_file" >&6; }
7866
7867 if test "x$lt_cv_ar_at_file" = xno; then
7868   archiver_list_spec=
7869 else
7870   archiver_list_spec=$lt_cv_ar_at_file
7871 fi
7872
7873
7874
7875
7876
7877
7878
7879 if test -n "$ac_tool_prefix"; then
7880   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7881 set dummy ${ac_tool_prefix}strip; ac_word=$2
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 $as_echo_n "checking for $ac_word... " >&6; }
7884 if ${ac_cv_prog_STRIP+:} false; then :
7885   $as_echo_n "(cached) " >&6
7886 else
7887   if test -n "$STRIP"; then
7888   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7889 else
7890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891 for as_dir in $PATH
7892 do
7893   IFS=$as_save_IFS
7894   test -z "$as_dir" && as_dir=.
7895     for ac_exec_ext in '' $ac_executable_extensions; do
7896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7897     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899     break 2
7900   fi
7901 done
7902   done
7903 IFS=$as_save_IFS
7904
7905 fi
7906 fi
7907 STRIP=$ac_cv_prog_STRIP
7908 if test -n "$STRIP"; then
7909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7910 $as_echo "$STRIP" >&6; }
7911 else
7912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7914 fi
7915
7916
7917 fi
7918 if test -z "$ac_cv_prog_STRIP"; then
7919   ac_ct_STRIP=$STRIP
7920   # Extract the first word of "strip", so it can be a program name with args.
7921 set dummy strip; ac_word=$2
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923 $as_echo_n "checking for $ac_word... " >&6; }
7924 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7925   $as_echo_n "(cached) " >&6
7926 else
7927   if test -n "$ac_ct_STRIP"; then
7928   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7929 else
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931 for as_dir in $PATH
7932 do
7933   IFS=$as_save_IFS
7934   test -z "$as_dir" && as_dir=.
7935     for ac_exec_ext in '' $ac_executable_extensions; do
7936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7937     ac_cv_prog_ac_ct_STRIP="strip"
7938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7939     break 2
7940   fi
7941 done
7942   done
7943 IFS=$as_save_IFS
7944
7945 fi
7946 fi
7947 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7948 if test -n "$ac_ct_STRIP"; then
7949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7950 $as_echo "$ac_ct_STRIP" >&6; }
7951 else
7952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7954 fi
7955
7956   if test "x$ac_ct_STRIP" = x; then
7957     STRIP=":"
7958   else
7959     case $cross_compiling:$ac_tool_warned in
7960 yes:)
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7963 ac_tool_warned=yes ;;
7964 esac
7965     STRIP=$ac_ct_STRIP
7966   fi
7967 else
7968   STRIP="$ac_cv_prog_STRIP"
7969 fi
7970
7971 test -z "$STRIP" && STRIP=:
7972
7973
7974
7975
7976
7977
7978 if test -n "$ac_tool_prefix"; then
7979   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7980 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982 $as_echo_n "checking for $ac_word... " >&6; }
7983 if ${ac_cv_prog_RANLIB+:} false; then :
7984   $as_echo_n "(cached) " >&6
7985 else
7986   if test -n "$RANLIB"; then
7987   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7988 else
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990 for as_dir in $PATH
7991 do
7992   IFS=$as_save_IFS
7993   test -z "$as_dir" && as_dir=.
7994     for ac_exec_ext in '' $ac_executable_extensions; do
7995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7996     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7998     break 2
7999   fi
8000 done
8001   done
8002 IFS=$as_save_IFS
8003
8004 fi
8005 fi
8006 RANLIB=$ac_cv_prog_RANLIB
8007 if test -n "$RANLIB"; then
8008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8009 $as_echo "$RANLIB" >&6; }
8010 else
8011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8013 fi
8014
8015
8016 fi
8017 if test -z "$ac_cv_prog_RANLIB"; then
8018   ac_ct_RANLIB=$RANLIB
8019   # Extract the first word of "ranlib", so it can be a program name with args.
8020 set dummy ranlib; ac_word=$2
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 $as_echo_n "checking for $ac_word... " >&6; }
8023 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8024   $as_echo_n "(cached) " >&6
8025 else
8026   if test -n "$ac_ct_RANLIB"; then
8027   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8028 else
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8031 do
8032   IFS=$as_save_IFS
8033   test -z "$as_dir" && as_dir=.
8034     for ac_exec_ext in '' $ac_executable_extensions; do
8035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8036     ac_cv_prog_ac_ct_RANLIB="ranlib"
8037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038     break 2
8039   fi
8040 done
8041   done
8042 IFS=$as_save_IFS
8043
8044 fi
8045 fi
8046 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8047 if test -n "$ac_ct_RANLIB"; then
8048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8049 $as_echo "$ac_ct_RANLIB" >&6; }
8050 else
8051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8053 fi
8054
8055   if test "x$ac_ct_RANLIB" = x; then
8056     RANLIB=":"
8057   else
8058     case $cross_compiling:$ac_tool_warned in
8059 yes:)
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8062 ac_tool_warned=yes ;;
8063 esac
8064     RANLIB=$ac_ct_RANLIB
8065   fi
8066 else
8067   RANLIB="$ac_cv_prog_RANLIB"
8068 fi
8069
8070 test -z "$RANLIB" && RANLIB=:
8071
8072
8073
8074
8075
8076
8077 # Determine commands to create old-style static archives.
8078 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8079 old_postinstall_cmds='chmod 644 $oldlib'
8080 old_postuninstall_cmds=
8081
8082 if test -n "$RANLIB"; then
8083   case $host_os in
8084   openbsd*)
8085     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8086     ;;
8087   *)
8088     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8089     ;;
8090   esac
8091   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8092 fi
8093
8094 case $host_os in
8095   darwin*)
8096     lock_old_archive_extraction=yes ;;
8097   *)
8098     lock_old_archive_extraction=no ;;
8099 esac
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121 for ac_prog in gawk mawk nawk awk
8122 do
8123   # Extract the first word of "$ac_prog", so it can be a program name with args.
8124 set dummy $ac_prog; ac_word=$2
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126 $as_echo_n "checking for $ac_word... " >&6; }
8127 if ${ac_cv_prog_AWK+:} false; then :
8128   $as_echo_n "(cached) " >&6
8129 else
8130   if test -n "$AWK"; then
8131   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8132 else
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 for as_dir in $PATH
8135 do
8136   IFS=$as_save_IFS
8137   test -z "$as_dir" && as_dir=.
8138     for ac_exec_ext in '' $ac_executable_extensions; do
8139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8140     ac_cv_prog_AWK="$ac_prog"
8141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8142     break 2
8143   fi
8144 done
8145   done
8146 IFS=$as_save_IFS
8147
8148 fi
8149 fi
8150 AWK=$ac_cv_prog_AWK
8151 if test -n "$AWK"; then
8152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8153 $as_echo "$AWK" >&6; }
8154 else
8155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8157 fi
8158
8159
8160   test -n "$AWK" && break
8161 done
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181 # If no C compiler was specified, use CC.
8182 LTCC=${LTCC-"$CC"}
8183
8184 # If no C compiler flags were specified, use CFLAGS.
8185 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8186
8187 # Allow CC to be a program name with arguments.
8188 compiler=$CC
8189
8190
8191 # Check for command to grab the raw symbol name followed by C symbol from nm.
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8193 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8194 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8195   $as_echo_n "(cached) " >&6
8196 else
8197
8198 # These are sane defaults that work on at least a few old systems.
8199 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8200
8201 # Character class describing NM global symbol codes.
8202 symcode='[BCDEGRST]'
8203
8204 # Regexp to match symbols that can be accessed directly from C.
8205 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8206
8207 # Define system-specific variables.
8208 case $host_os in
8209 aix*)
8210   symcode='[BCDT]'
8211   ;;
8212 cygwin* | mingw* | pw32* | cegcc*)
8213   symcode='[ABCDGISTW]'
8214   ;;
8215 hpux*)
8216   if test "$host_cpu" = ia64; then
8217     symcode='[ABCDEGRST]'
8218   fi
8219   ;;
8220 irix* | nonstopux*)
8221   symcode='[BCDEGRST]'
8222   ;;
8223 osf*)
8224   symcode='[BCDEGQRST]'
8225   ;;
8226 solaris*)
8227   symcode='[BDRT]'
8228   ;;
8229 sco3.2v5*)
8230   symcode='[DT]'
8231   ;;
8232 sysv4.2uw2*)
8233   symcode='[DT]'
8234   ;;
8235 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8236   symcode='[ABDT]'
8237   ;;
8238 sysv4)
8239   symcode='[DFNSTU]'
8240   ;;
8241 esac
8242
8243 # If we're using GNU nm, then use its standard symbol codes.
8244 case `$NM -V 2>&1` in
8245 *GNU* | *'with BFD'*)
8246   symcode='[ABCDGIRSTW]' ;;
8247 esac
8248
8249 # Transform an extracted symbol line into a proper C declaration.
8250 # Some systems (esp. on ia64) link data and code symbols differently,
8251 # so use this general approach.
8252 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8253
8254 # Transform an extracted symbol line into symbol name and symbol address
8255 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8256 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'"
8257
8258 # Handle CRLF in mingw tool chain
8259 opt_cr=
8260 case $build_os in
8261 mingw*)
8262   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8263   ;;
8264 esac
8265
8266 # Try without a prefix underscore, then with it.
8267 for ac_symprfx in "" "_"; do
8268
8269   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8270   symxfrm="\\1 $ac_symprfx\\2 \\2"
8271
8272   # Write the raw and C identifiers.
8273   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8274     # Fake it for dumpbin and say T for any non-static function
8275     # and D for any global variable.
8276     # Also find C++ and __fastcall symbols from MSVC++,
8277     # which start with @ or ?.
8278     lt_cv_sys_global_symbol_pipe="$AWK '"\
8279 "     {last_section=section; section=\$ 3};"\
8280 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8281 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8282 "     \$ 0!~/External *\|/{next};"\
8283 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8284 "     {if(hide[section]) next};"\
8285 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8286 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8287 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8288 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8289 "     ' prfx=^$ac_symprfx"
8290   else
8291     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8292   fi
8293   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8294
8295   # Check to see that the pipe works correctly.
8296   pipe_works=no
8297
8298   rm -f conftest*
8299   cat > conftest.$ac_ext <<_LT_EOF
8300 #ifdef __cplusplus
8301 extern "C" {
8302 #endif
8303 char nm_test_var;
8304 void nm_test_func(void);
8305 void nm_test_func(void){}
8306 #ifdef __cplusplus
8307 }
8308 #endif
8309 int main(){nm_test_var='a';nm_test_func();return(0);}
8310 _LT_EOF
8311
8312   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8313   (eval $ac_compile) 2>&5
8314   ac_status=$?
8315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8316   test $ac_status = 0; }; then
8317     # Now try to grab the symbols.
8318     nlist=conftest.nm
8319     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8320   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8321   ac_status=$?
8322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8323   test $ac_status = 0; } && test -s "$nlist"; then
8324       # Try sorting and uniquifying the output.
8325       if sort "$nlist" | uniq > "$nlist"T; then
8326         mv -f "$nlist"T "$nlist"
8327       else
8328         rm -f "$nlist"T
8329       fi
8330
8331       # Make sure that we snagged all the symbols we need.
8332       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8333         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8334           cat <<_LT_EOF > conftest.$ac_ext
8335 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8336 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8337 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8338    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8339 # define LT_DLSYM_CONST
8340 #elif defined(__osf__)
8341 /* This system does not cope well with relocations in const data.  */
8342 # define LT_DLSYM_CONST
8343 #else
8344 # define LT_DLSYM_CONST const
8345 #endif
8346
8347 #ifdef __cplusplus
8348 extern "C" {
8349 #endif
8350
8351 _LT_EOF
8352           # Now generate the symbol file.
8353           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8354
8355           cat <<_LT_EOF >> conftest.$ac_ext
8356
8357 /* The mapping between symbol names and symbols.  */
8358 LT_DLSYM_CONST struct {
8359   const char *name;
8360   void       *address;
8361 }
8362 lt__PROGRAM__LTX_preloaded_symbols[] =
8363 {
8364   { "@PROGRAM@", (void *) 0 },
8365 _LT_EOF
8366           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8367           cat <<\_LT_EOF >> conftest.$ac_ext
8368   {0, (void *) 0}
8369 };
8370
8371 /* This works around a problem in FreeBSD linker */
8372 #ifdef FREEBSD_WORKAROUND
8373 static const void *lt_preloaded_setup() {
8374   return lt__PROGRAM__LTX_preloaded_symbols;
8375 }
8376 #endif
8377
8378 #ifdef __cplusplus
8379 }
8380 #endif
8381 _LT_EOF
8382           # Now try linking the two files.
8383           mv conftest.$ac_objext conftstm.$ac_objext
8384           lt_globsym_save_LIBS=$LIBS
8385           lt_globsym_save_CFLAGS=$CFLAGS
8386           LIBS="conftstm.$ac_objext"
8387           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8388           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8389   (eval $ac_link) 2>&5
8390   ac_status=$?
8391   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8392   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8393             pipe_works=yes
8394           fi
8395           LIBS=$lt_globsym_save_LIBS
8396           CFLAGS=$lt_globsym_save_CFLAGS
8397         else
8398           echo "cannot find nm_test_func in $nlist" >&5
8399         fi
8400       else
8401         echo "cannot find nm_test_var in $nlist" >&5
8402       fi
8403     else
8404       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8405     fi
8406   else
8407     echo "$progname: failed program was:" >&5
8408     cat conftest.$ac_ext >&5
8409   fi
8410   rm -rf conftest* conftst*
8411
8412   # Do not use the global_symbol_pipe unless it works.
8413   if test "$pipe_works" = yes; then
8414     break
8415   else
8416     lt_cv_sys_global_symbol_pipe=
8417   fi
8418 done
8419
8420 fi
8421
8422 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8423   lt_cv_sys_global_symbol_to_cdecl=
8424 fi
8425 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8427 $as_echo "failed" >&6; }
8428 else
8429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8430 $as_echo "ok" >&6; }
8431 fi
8432
8433 # Response file support.
8434 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8435   nm_file_list_spec='@'
8436 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8437   nm_file_list_spec='@'
8438 fi
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8467 $as_echo_n "checking for sysroot... " >&6; }
8468
8469 # Check whether --with-sysroot was given.
8470 if test "${with_sysroot+set}" = set; then :
8471   withval=$with_sysroot;
8472 else
8473   with_sysroot=no
8474 fi
8475
8476
8477 lt_sysroot=
8478 case ${with_sysroot} in #(
8479  yes)
8480    if test "$GCC" = yes; then
8481      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8482    fi
8483    ;; #(
8484  /*)
8485    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8486    ;; #(
8487  no|'')
8488    ;; #(
8489  *)
8490    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8491 $as_echo "${with_sysroot}" >&6; }
8492    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8493    ;;
8494 esac
8495
8496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8497 $as_echo "${lt_sysroot:-no}" >&6; }
8498
8499
8500
8501
8502
8503 # Check whether --enable-libtool-lock was given.
8504 if test "${enable_libtool_lock+set}" = set; then :
8505   enableval=$enable_libtool_lock;
8506 fi
8507
8508 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8509
8510 # Some flags need to be propagated to the compiler or linker for good
8511 # libtool support.
8512 case $host in
8513 ia64-*-hpux*)
8514   # Find out which ABI we are using.
8515   echo 'int i;' > conftest.$ac_ext
8516   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8517   (eval $ac_compile) 2>&5
8518   ac_status=$?
8519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8520   test $ac_status = 0; }; then
8521     case `/usr/bin/file conftest.$ac_objext` in
8522       *ELF-32*)
8523         HPUX_IA64_MODE="32"
8524         ;;
8525       *ELF-64*)
8526         HPUX_IA64_MODE="64"
8527         ;;
8528     esac
8529   fi
8530   rm -rf conftest*
8531   ;;
8532 *-*-irix6*)
8533   # Find out which ABI we are using.
8534   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8535   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8536   (eval $ac_compile) 2>&5
8537   ac_status=$?
8538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8539   test $ac_status = 0; }; then
8540     if test "$lt_cv_prog_gnu_ld" = yes; then
8541       case `/usr/bin/file conftest.$ac_objext` in
8542         *32-bit*)
8543           LD="${LD-ld} -melf32bsmip"
8544           ;;
8545         *N32*)
8546           LD="${LD-ld} -melf32bmipn32"
8547           ;;
8548         *64-bit*)
8549           LD="${LD-ld} -melf64bmip"
8550         ;;
8551       esac
8552     else
8553       case `/usr/bin/file conftest.$ac_objext` in
8554         *32-bit*)
8555           LD="${LD-ld} -32"
8556           ;;
8557         *N32*)
8558           LD="${LD-ld} -n32"
8559           ;;
8560         *64-bit*)
8561           LD="${LD-ld} -64"
8562           ;;
8563       esac
8564     fi
8565   fi
8566   rm -rf conftest*
8567   ;;
8568
8569 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8570 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8571   # Find out which ABI we are using.
8572   echo 'int i;' > conftest.$ac_ext
8573   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8574   (eval $ac_compile) 2>&5
8575   ac_status=$?
8576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8577   test $ac_status = 0; }; then
8578     case `/usr/bin/file conftest.o` in
8579       *32-bit*)
8580         case $host in
8581           x86_64-*kfreebsd*-gnu)
8582             LD="${LD-ld} -m elf_i386_fbsd"
8583             ;;
8584           x86_64-*linux*)
8585             LD="${LD-ld} -m elf_i386"
8586             ;;
8587           ppc64-*linux*|powerpc64-*linux*)
8588             LD="${LD-ld} -m elf32ppclinux"
8589             ;;
8590           s390x-*linux*)
8591             LD="${LD-ld} -m elf_s390"
8592             ;;
8593           sparc64-*linux*)
8594             LD="${LD-ld} -m elf32_sparc"
8595             ;;
8596         esac
8597         ;;
8598       *64-bit*)
8599         case $host in
8600           x86_64-*kfreebsd*-gnu)
8601             LD="${LD-ld} -m elf_x86_64_fbsd"
8602             ;;
8603           x86_64-*linux*)
8604             LD="${LD-ld} -m elf_x86_64"
8605             ;;
8606           ppc*-*linux*|powerpc*-*linux*)
8607             LD="${LD-ld} -m elf64ppc"
8608             ;;
8609           s390*-*linux*|s390*-*tpf*)
8610             LD="${LD-ld} -m elf64_s390"
8611             ;;
8612           sparc*-*linux*)
8613             LD="${LD-ld} -m elf64_sparc"
8614             ;;
8615         esac
8616         ;;
8617     esac
8618   fi
8619   rm -rf conftest*
8620   ;;
8621
8622 *-*-sco3.2v5*)
8623   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8624   SAVE_CFLAGS="$CFLAGS"
8625   CFLAGS="$CFLAGS -belf"
8626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8627 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8628 if ${lt_cv_cc_needs_belf+:} false; then :
8629   $as_echo_n "(cached) " >&6
8630 else
8631   ac_ext=c
8632 ac_cpp='$CPP $CPPFLAGS'
8633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8636
8637      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h.  */
8639
8640 int
8641 main ()
8642 {
8643
8644   ;
8645   return 0;
8646 }
8647 _ACEOF
8648 if ac_fn_c_try_link "$LINENO"; then :
8649   lt_cv_cc_needs_belf=yes
8650 else
8651   lt_cv_cc_needs_belf=no
8652 fi
8653 rm -f core conftest.err conftest.$ac_objext \
8654     conftest$ac_exeext conftest.$ac_ext
8655      ac_ext=c
8656 ac_cpp='$CPP $CPPFLAGS'
8657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8660
8661 fi
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8663 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8664   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8665     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8666     CFLAGS="$SAVE_CFLAGS"
8667   fi
8668   ;;
8669 *-*solaris*)
8670   # Find out which ABI we are using.
8671   echo 'int i;' > conftest.$ac_ext
8672   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8673   (eval $ac_compile) 2>&5
8674   ac_status=$?
8675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8676   test $ac_status = 0; }; then
8677     case `/usr/bin/file conftest.o` in
8678     *64-bit*)
8679       case $lt_cv_prog_gnu_ld in
8680       yes*)
8681         case $host in
8682         i?86-*-solaris*)
8683           LD="${LD-ld} -m elf_x86_64"
8684           ;;
8685         sparc*-*-solaris*)
8686           LD="${LD-ld} -m elf64_sparc"
8687           ;;
8688         esac
8689         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8690         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8691           LD="${LD-ld}_sol2"
8692         fi
8693         ;;
8694       *)
8695         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8696           LD="${LD-ld} -64"
8697         fi
8698         ;;
8699       esac
8700       ;;
8701     esac
8702   fi
8703   rm -rf conftest*
8704   ;;
8705 esac
8706
8707 need_locks="$enable_libtool_lock"
8708
8709 if test -n "$ac_tool_prefix"; then
8710   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8711 set dummy ${ac_tool_prefix}mt; ac_word=$2
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8713 $as_echo_n "checking for $ac_word... " >&6; }
8714 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8715   $as_echo_n "(cached) " >&6
8716 else
8717   if test -n "$MANIFEST_TOOL"; then
8718   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8719 else
8720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721 for as_dir in $PATH
8722 do
8723   IFS=$as_save_IFS
8724   test -z "$as_dir" && as_dir=.
8725     for ac_exec_ext in '' $ac_executable_extensions; do
8726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8727     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8729     break 2
8730   fi
8731 done
8732   done
8733 IFS=$as_save_IFS
8734
8735 fi
8736 fi
8737 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8738 if test -n "$MANIFEST_TOOL"; then
8739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8740 $as_echo "$MANIFEST_TOOL" >&6; }
8741 else
8742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8743 $as_echo "no" >&6; }
8744 fi
8745
8746
8747 fi
8748 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8749   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8750   # Extract the first word of "mt", so it can be a program name with args.
8751 set dummy mt; ac_word=$2
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8753 $as_echo_n "checking for $ac_word... " >&6; }
8754 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8755   $as_echo_n "(cached) " >&6
8756 else
8757   if test -n "$ac_ct_MANIFEST_TOOL"; then
8758   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8759 else
8760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761 for as_dir in $PATH
8762 do
8763   IFS=$as_save_IFS
8764   test -z "$as_dir" && as_dir=.
8765     for ac_exec_ext in '' $ac_executable_extensions; do
8766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8767     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8769     break 2
8770   fi
8771 done
8772   done
8773 IFS=$as_save_IFS
8774
8775 fi
8776 fi
8777 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8778 if test -n "$ac_ct_MANIFEST_TOOL"; then
8779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8780 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8781 else
8782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8783 $as_echo "no" >&6; }
8784 fi
8785
8786   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8787     MANIFEST_TOOL=":"
8788   else
8789     case $cross_compiling:$ac_tool_warned in
8790 yes:)
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8793 ac_tool_warned=yes ;;
8794 esac
8795     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8796   fi
8797 else
8798   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8799 fi
8800
8801 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8803 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8804 if ${lt_cv_path_mainfest_tool+:} false; then :
8805   $as_echo_n "(cached) " >&6
8806 else
8807   lt_cv_path_mainfest_tool=no
8808   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8809   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8810   cat conftest.err >&5
8811   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8812     lt_cv_path_mainfest_tool=yes
8813   fi
8814   rm -f conftest*
8815 fi
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8817 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8818 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8819   MANIFEST_TOOL=:
8820 fi
8821
8822
8823
8824
8825
8826
8827   case $host_os in
8828     rhapsody* | darwin*)
8829     if test -n "$ac_tool_prefix"; then
8830   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8831 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8833 $as_echo_n "checking for $ac_word... " >&6; }
8834 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8835   $as_echo_n "(cached) " >&6
8836 else
8837   if test -n "$DSYMUTIL"; then
8838   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8839 else
8840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8841 for as_dir in $PATH
8842 do
8843   IFS=$as_save_IFS
8844   test -z "$as_dir" && as_dir=.
8845     for ac_exec_ext in '' $ac_executable_extensions; do
8846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8847     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8849     break 2
8850   fi
8851 done
8852   done
8853 IFS=$as_save_IFS
8854
8855 fi
8856 fi
8857 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8858 if test -n "$DSYMUTIL"; then
8859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8860 $as_echo "$DSYMUTIL" >&6; }
8861 else
8862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8863 $as_echo "no" >&6; }
8864 fi
8865
8866
8867 fi
8868 if test -z "$ac_cv_prog_DSYMUTIL"; then
8869   ac_ct_DSYMUTIL=$DSYMUTIL
8870   # Extract the first word of "dsymutil", so it can be a program name with args.
8871 set dummy dsymutil; ac_word=$2
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8873 $as_echo_n "checking for $ac_word... " >&6; }
8874 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8875   $as_echo_n "(cached) " >&6
8876 else
8877   if test -n "$ac_ct_DSYMUTIL"; then
8878   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8879 else
8880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8881 for as_dir in $PATH
8882 do
8883   IFS=$as_save_IFS
8884   test -z "$as_dir" && as_dir=.
8885     for ac_exec_ext in '' $ac_executable_extensions; do
8886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8887     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8889     break 2
8890   fi
8891 done
8892   done
8893 IFS=$as_save_IFS
8894
8895 fi
8896 fi
8897 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8898 if test -n "$ac_ct_DSYMUTIL"; then
8899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8900 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8901 else
8902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8903 $as_echo "no" >&6; }
8904 fi
8905
8906   if test "x$ac_ct_DSYMUTIL" = x; then
8907     DSYMUTIL=":"
8908   else
8909     case $cross_compiling:$ac_tool_warned in
8910 yes:)
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8913 ac_tool_warned=yes ;;
8914 esac
8915     DSYMUTIL=$ac_ct_DSYMUTIL
8916   fi
8917 else
8918   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8919 fi
8920
8921     if test -n "$ac_tool_prefix"; then
8922   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8923 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8925 $as_echo_n "checking for $ac_word... " >&6; }
8926 if ${ac_cv_prog_NMEDIT+:} false; then :
8927   $as_echo_n "(cached) " >&6
8928 else
8929   if test -n "$NMEDIT"; then
8930   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8931 else
8932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8933 for as_dir in $PATH
8934 do
8935   IFS=$as_save_IFS
8936   test -z "$as_dir" && as_dir=.
8937     for ac_exec_ext in '' $ac_executable_extensions; do
8938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8939     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8941     break 2
8942   fi
8943 done
8944   done
8945 IFS=$as_save_IFS
8946
8947 fi
8948 fi
8949 NMEDIT=$ac_cv_prog_NMEDIT
8950 if test -n "$NMEDIT"; then
8951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8952 $as_echo "$NMEDIT" >&6; }
8953 else
8954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8955 $as_echo "no" >&6; }
8956 fi
8957
8958
8959 fi
8960 if test -z "$ac_cv_prog_NMEDIT"; then
8961   ac_ct_NMEDIT=$NMEDIT
8962   # Extract the first word of "nmedit", so it can be a program name with args.
8963 set dummy nmedit; ac_word=$2
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8965 $as_echo_n "checking for $ac_word... " >&6; }
8966 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8967   $as_echo_n "(cached) " >&6
8968 else
8969   if test -n "$ac_ct_NMEDIT"; then
8970   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8971 else
8972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 for as_dir in $PATH
8974 do
8975   IFS=$as_save_IFS
8976   test -z "$as_dir" && as_dir=.
8977     for ac_exec_ext in '' $ac_executable_extensions; do
8978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8979     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8981     break 2
8982   fi
8983 done
8984   done
8985 IFS=$as_save_IFS
8986
8987 fi
8988 fi
8989 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8990 if test -n "$ac_ct_NMEDIT"; then
8991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8992 $as_echo "$ac_ct_NMEDIT" >&6; }
8993 else
8994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
8996 fi
8997
8998   if test "x$ac_ct_NMEDIT" = x; then
8999     NMEDIT=":"
9000   else
9001     case $cross_compiling:$ac_tool_warned in
9002 yes:)
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9005 ac_tool_warned=yes ;;
9006 esac
9007     NMEDIT=$ac_ct_NMEDIT
9008   fi
9009 else
9010   NMEDIT="$ac_cv_prog_NMEDIT"
9011 fi
9012
9013     if test -n "$ac_tool_prefix"; then
9014   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9015 set dummy ${ac_tool_prefix}lipo; 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_LIPO+:} false; then :
9019   $as_echo_n "(cached) " >&6
9020 else
9021   if test -n "$LIPO"; then
9022   ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo"
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 LIPO=$ac_cv_prog_LIPO
9042 if test -n "$LIPO"; then
9043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9044 $as_echo "$LIPO" >&6; }
9045 else
9046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9047 $as_echo "no" >&6; }
9048 fi
9049
9050
9051 fi
9052 if test -z "$ac_cv_prog_LIPO"; then
9053   ac_ct_LIPO=$LIPO
9054   # Extract the first word of "lipo", so it can be a program name with args.
9055 set dummy lipo; ac_word=$2
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9057 $as_echo_n "checking for $ac_word... " >&6; }
9058 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9059   $as_echo_n "(cached) " >&6
9060 else
9061   if test -n "$ac_ct_LIPO"; then
9062   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9063 else
9064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9065 for as_dir in $PATH
9066 do
9067   IFS=$as_save_IFS
9068   test -z "$as_dir" && as_dir=.
9069     for ac_exec_ext in '' $ac_executable_extensions; do
9070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9071     ac_cv_prog_ac_ct_LIPO="lipo"
9072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9073     break 2
9074   fi
9075 done
9076   done
9077 IFS=$as_save_IFS
9078
9079 fi
9080 fi
9081 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9082 if test -n "$ac_ct_LIPO"; then
9083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9084 $as_echo "$ac_ct_LIPO" >&6; }
9085 else
9086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }
9088 fi
9089
9090   if test "x$ac_ct_LIPO" = x; then
9091     LIPO=":"
9092   else
9093     case $cross_compiling:$ac_tool_warned in
9094 yes:)
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9097 ac_tool_warned=yes ;;
9098 esac
9099     LIPO=$ac_ct_LIPO
9100   fi
9101 else
9102   LIPO="$ac_cv_prog_LIPO"
9103 fi
9104
9105     if test -n "$ac_tool_prefix"; then
9106   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9107 set dummy ${ac_tool_prefix}otool; ac_word=$2
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9109 $as_echo_n "checking for $ac_word... " >&6; }
9110 if ${ac_cv_prog_OTOOL+:} false; then :
9111   $as_echo_n "(cached) " >&6
9112 else
9113   if test -n "$OTOOL"; then
9114   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9115 else
9116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117 for as_dir in $PATH
9118 do
9119   IFS=$as_save_IFS
9120   test -z "$as_dir" && as_dir=.
9121     for ac_exec_ext in '' $ac_executable_extensions; do
9122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9123     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9125     break 2
9126   fi
9127 done
9128   done
9129 IFS=$as_save_IFS
9130
9131 fi
9132 fi
9133 OTOOL=$ac_cv_prog_OTOOL
9134 if test -n "$OTOOL"; then
9135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9136 $as_echo "$OTOOL" >&6; }
9137 else
9138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 $as_echo "no" >&6; }
9140 fi
9141
9142
9143 fi
9144 if test -z "$ac_cv_prog_OTOOL"; then
9145   ac_ct_OTOOL=$OTOOL
9146   # Extract the first word of "otool", so it can be a program name with args.
9147 set dummy otool; ac_word=$2
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149 $as_echo_n "checking for $ac_word... " >&6; }
9150 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9151   $as_echo_n "(cached) " >&6
9152 else
9153   if test -n "$ac_ct_OTOOL"; then
9154   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9155 else
9156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9157 for as_dir in $PATH
9158 do
9159   IFS=$as_save_IFS
9160   test -z "$as_dir" && as_dir=.
9161     for ac_exec_ext in '' $ac_executable_extensions; do
9162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9163     ac_cv_prog_ac_ct_OTOOL="otool"
9164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9165     break 2
9166   fi
9167 done
9168   done
9169 IFS=$as_save_IFS
9170
9171 fi
9172 fi
9173 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9174 if test -n "$ac_ct_OTOOL"; then
9175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9176 $as_echo "$ac_ct_OTOOL" >&6; }
9177 else
9178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179 $as_echo "no" >&6; }
9180 fi
9181
9182   if test "x$ac_ct_OTOOL" = x; then
9183     OTOOL=":"
9184   else
9185     case $cross_compiling:$ac_tool_warned in
9186 yes:)
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9189 ac_tool_warned=yes ;;
9190 esac
9191     OTOOL=$ac_ct_OTOOL
9192   fi
9193 else
9194   OTOOL="$ac_cv_prog_OTOOL"
9195 fi
9196
9197     if test -n "$ac_tool_prefix"; then
9198   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9199 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201 $as_echo_n "checking for $ac_word... " >&6; }
9202 if ${ac_cv_prog_OTOOL64+:} false; then :
9203   $as_echo_n "(cached) " >&6
9204 else
9205   if test -n "$OTOOL64"; then
9206   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9207 else
9208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9209 for as_dir in $PATH
9210 do
9211   IFS=$as_save_IFS
9212   test -z "$as_dir" && as_dir=.
9213     for ac_exec_ext in '' $ac_executable_extensions; do
9214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9215     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9217     break 2
9218   fi
9219 done
9220   done
9221 IFS=$as_save_IFS
9222
9223 fi
9224 fi
9225 OTOOL64=$ac_cv_prog_OTOOL64
9226 if test -n "$OTOOL64"; then
9227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9228 $as_echo "$OTOOL64" >&6; }
9229 else
9230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9232 fi
9233
9234
9235 fi
9236 if test -z "$ac_cv_prog_OTOOL64"; then
9237   ac_ct_OTOOL64=$OTOOL64
9238   # Extract the first word of "otool64", so it can be a program name with args.
9239 set dummy otool64; ac_word=$2
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9241 $as_echo_n "checking for $ac_word... " >&6; }
9242 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9243   $as_echo_n "(cached) " >&6
9244 else
9245   if test -n "$ac_ct_OTOOL64"; then
9246   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9247 else
9248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249 for as_dir in $PATH
9250 do
9251   IFS=$as_save_IFS
9252   test -z "$as_dir" && as_dir=.
9253     for ac_exec_ext in '' $ac_executable_extensions; do
9254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9255     ac_cv_prog_ac_ct_OTOOL64="otool64"
9256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9257     break 2
9258   fi
9259 done
9260   done
9261 IFS=$as_save_IFS
9262
9263 fi
9264 fi
9265 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9266 if test -n "$ac_ct_OTOOL64"; then
9267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9268 $as_echo "$ac_ct_OTOOL64" >&6; }
9269 else
9270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271 $as_echo "no" >&6; }
9272 fi
9273
9274   if test "x$ac_ct_OTOOL64" = x; then
9275     OTOOL64=":"
9276   else
9277     case $cross_compiling:$ac_tool_warned in
9278 yes:)
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9281 ac_tool_warned=yes ;;
9282 esac
9283     OTOOL64=$ac_ct_OTOOL64
9284   fi
9285 else
9286   OTOOL64="$ac_cv_prog_OTOOL64"
9287 fi
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9316 $as_echo_n "checking for -single_module linker flag... " >&6; }
9317 if ${lt_cv_apple_cc_single_mod+:} false; then :
9318   $as_echo_n "(cached) " >&6
9319 else
9320   lt_cv_apple_cc_single_mod=no
9321       if test -z "${LT_MULTI_MODULE}"; then
9322         # By default we will add the -single_module flag. You can override
9323         # by either setting the environment variable LT_MULTI_MODULE
9324         # non-empty at configure time, or by adding -multi_module to the
9325         # link flags.
9326         rm -rf libconftest.dylib*
9327         echo "int foo(void){return 1;}" > conftest.c
9328         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9329 -dynamiclib -Wl,-single_module conftest.c" >&5
9330         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9331           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9332         _lt_result=$?
9333         # If there is a non-empty error log, and "single_module"
9334         # appears in it, assume the flag caused a linker warning
9335         if test -s conftest.err && $GREP single_module conftest.err; then
9336           cat conftest.err >&5
9337         # Otherwise, if the output was created with a 0 exit code from
9338         # the compiler, it worked.
9339         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9340           lt_cv_apple_cc_single_mod=yes
9341         else
9342           cat conftest.err >&5
9343         fi
9344         rm -rf libconftest.dylib*
9345         rm -f conftest.*
9346       fi
9347 fi
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9349 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9350
9351     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9352 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9353 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9354   $as_echo_n "(cached) " >&6
9355 else
9356   lt_cv_ld_exported_symbols_list=no
9357       save_LDFLAGS=$LDFLAGS
9358       echo "_main" > conftest.sym
9359       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9360       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h.  */
9362
9363 int
9364 main ()
9365 {
9366
9367   ;
9368   return 0;
9369 }
9370 _ACEOF
9371 if ac_fn_c_try_link "$LINENO"; then :
9372   lt_cv_ld_exported_symbols_list=yes
9373 else
9374   lt_cv_ld_exported_symbols_list=no
9375 fi
9376 rm -f core conftest.err conftest.$ac_objext \
9377     conftest$ac_exeext conftest.$ac_ext
9378         LDFLAGS="$save_LDFLAGS"
9379
9380 fi
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9382 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9383
9384     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9385 $as_echo_n "checking for -force_load linker flag... " >&6; }
9386 if ${lt_cv_ld_force_load+:} false; then :
9387   $as_echo_n "(cached) " >&6
9388 else
9389   lt_cv_ld_force_load=no
9390       cat > conftest.c << _LT_EOF
9391 int forced_loaded() { return 2;}
9392 _LT_EOF
9393       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9394       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9395       echo "$AR cru libconftest.a conftest.o" >&5
9396       $AR cru libconftest.a conftest.o 2>&5
9397       echo "$RANLIB libconftest.a" >&5
9398       $RANLIB libconftest.a 2>&5
9399       cat > conftest.c << _LT_EOF
9400 int main() { return 0;}
9401 _LT_EOF
9402       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9403       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9404       _lt_result=$?
9405       if test -s conftest.err && $GREP force_load conftest.err; then
9406         cat conftest.err >&5
9407       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9408         lt_cv_ld_force_load=yes
9409       else
9410         cat conftest.err >&5
9411       fi
9412         rm -f conftest.err libconftest.a conftest conftest.c
9413         rm -rf conftest.dSYM
9414
9415 fi
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9417 $as_echo "$lt_cv_ld_force_load" >&6; }
9418     case $host_os in
9419     rhapsody* | darwin1.[012])
9420       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9421     darwin1.*)
9422       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9423     darwin*) # darwin 5.x on
9424       # if running on 10.5 or later, the deployment target defaults
9425       # to the OS version, if on x86, and 10.4, the deployment
9426       # target defaults to 10.4. Don't you love it?
9427       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9428         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9429           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9430         10.[012]*)
9431           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9432         10.*)
9433           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9434       esac
9435     ;;
9436   esac
9437     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9438       _lt_dar_single_mod='$single_module'
9439     fi
9440     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9441       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9442     else
9443       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9444     fi
9445     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9446       _lt_dsymutil='~$DSYMUTIL $lib || :'
9447     else
9448       _lt_dsymutil=
9449     fi
9450     ;;
9451   esac
9452
9453 for ac_header in dlfcn.h
9454 do :
9455   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9456 "
9457 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9458   cat >>confdefs.h <<_ACEOF
9459 #define HAVE_DLFCN_H 1
9460 _ACEOF
9461
9462 fi
9463
9464 done
9465
9466
9467
9468
9469
9470
9471
9472 # Set options
9473
9474
9475
9476         enable_dlopen=no
9477
9478
9479   enable_win32_dll=no
9480
9481
9482             # Check whether --enable-shared was given.
9483 if test "${enable_shared+set}" = set; then :
9484   enableval=$enable_shared; p=${PACKAGE-default}
9485     case $enableval in
9486     yes) enable_shared=yes ;;
9487     no) enable_shared=no ;;
9488     *)
9489       enable_shared=no
9490       # Look at the argument we got.  We use all the common list separators.
9491       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9492       for pkg in $enableval; do
9493         IFS="$lt_save_ifs"
9494         if test "X$pkg" = "X$p"; then
9495           enable_shared=yes
9496         fi
9497       done
9498       IFS="$lt_save_ifs"
9499       ;;
9500     esac
9501 else
9502   enable_shared=yes
9503 fi
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513   # Check whether --enable-static was given.
9514 if test "${enable_static+set}" = set; then :
9515   enableval=$enable_static; p=${PACKAGE-default}
9516     case $enableval in
9517     yes) enable_static=yes ;;
9518     no) enable_static=no ;;
9519     *)
9520      enable_static=no
9521       # Look at the argument we got.  We use all the common list separators.
9522       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9523       for pkg in $enableval; do
9524         IFS="$lt_save_ifs"
9525         if test "X$pkg" = "X$p"; then
9526           enable_static=yes
9527         fi
9528       done
9529       IFS="$lt_save_ifs"
9530       ;;
9531     esac
9532 else
9533   enable_static=yes
9534 fi
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545 # Check whether --with-pic was given.
9546 if test "${with_pic+set}" = set; then :
9547   withval=$with_pic; lt_p=${PACKAGE-default}
9548     case $withval in
9549     yes|no) pic_mode=$withval ;;
9550     *)
9551       pic_mode=default
9552       # Look at the argument we got.  We use all the common list separators.
9553       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9554       for lt_pkg in $withval; do
9555         IFS="$lt_save_ifs"
9556         if test "X$lt_pkg" = "X$lt_p"; then
9557           pic_mode=yes
9558         fi
9559       done
9560       IFS="$lt_save_ifs"
9561       ;;
9562     esac
9563 else
9564   pic_mode=default
9565 fi
9566
9567
9568 test -z "$pic_mode" && pic_mode=default
9569
9570
9571
9572
9573
9574
9575
9576   # Check whether --enable-fast-install was given.
9577 if test "${enable_fast_install+set}" = set; then :
9578   enableval=$enable_fast_install; p=${PACKAGE-default}
9579     case $enableval in
9580     yes) enable_fast_install=yes ;;
9581     no) enable_fast_install=no ;;
9582     *)
9583       enable_fast_install=no
9584       # Look at the argument we got.  We use all the common list separators.
9585       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9586       for pkg in $enableval; do
9587         IFS="$lt_save_ifs"
9588         if test "X$pkg" = "X$p"; then
9589           enable_fast_install=yes
9590         fi
9591       done
9592       IFS="$lt_save_ifs"
9593       ;;
9594     esac
9595 else
9596   enable_fast_install=yes
9597 fi
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609 # This can be used to rebuild libtool when needed
9610 LIBTOOL_DEPS="$ltmain"
9611
9612 # Always use our own libtool.
9613 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644 test -z "$LN_S" && LN_S="ln -s"
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659 if test -n "${ZSH_VERSION+set}" ; then
9660    setopt NO_GLOB_SUBST
9661 fi
9662
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9664 $as_echo_n "checking for objdir... " >&6; }
9665 if ${lt_cv_objdir+:} false; then :
9666   $as_echo_n "(cached) " >&6
9667 else
9668   rm -f .libs 2>/dev/null
9669 mkdir .libs 2>/dev/null
9670 if test -d .libs; then
9671   lt_cv_objdir=.libs
9672 else
9673   # MS-DOS does not allow filenames that begin with a dot.
9674   lt_cv_objdir=_libs
9675 fi
9676 rmdir .libs 2>/dev/null
9677 fi
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9679 $as_echo "$lt_cv_objdir" >&6; }
9680 objdir=$lt_cv_objdir
9681
9682
9683
9684
9685
9686 cat >>confdefs.h <<_ACEOF
9687 #define LT_OBJDIR "$lt_cv_objdir/"
9688 _ACEOF
9689
9690
9691
9692
9693 case $host_os in
9694 aix3*)
9695   # AIX sometimes has problems with the GCC collect2 program.  For some
9696   # reason, if we set the COLLECT_NAMES environment variable, the problems
9697   # vanish in a puff of smoke.
9698   if test "X${COLLECT_NAMES+set}" != Xset; then
9699     COLLECT_NAMES=
9700     export COLLECT_NAMES
9701   fi
9702   ;;
9703 esac
9704
9705 # Global variables:
9706 ofile=libtool
9707 can_build_shared=yes
9708
9709 # All known linkers require a `.a' archive for static linking (except MSVC,
9710 # which needs '.lib').
9711 libext=a
9712
9713 with_gnu_ld="$lt_cv_prog_gnu_ld"
9714
9715 old_CC="$CC"
9716 old_CFLAGS="$CFLAGS"
9717
9718 # Set sane defaults for various variables
9719 test -z "$CC" && CC=cc
9720 test -z "$LTCC" && LTCC=$CC
9721 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9722 test -z "$LD" && LD=ld
9723 test -z "$ac_objext" && ac_objext=o
9724
9725 for cc_temp in $compiler""; do
9726   case $cc_temp in
9727     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9728     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9729     \-*) ;;
9730     *) break;;
9731   esac
9732 done
9733 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9734
9735
9736 # Only perform the check for file, if the check method requires it
9737 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9738 case $deplibs_check_method in
9739 file_magic*)
9740   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9742 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9743 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9744   $as_echo_n "(cached) " >&6
9745 else
9746   case $MAGIC_CMD in
9747 [\\/*] |  ?:[\\/]*)
9748   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9749   ;;
9750 *)
9751   lt_save_MAGIC_CMD="$MAGIC_CMD"
9752   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9753   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9754   for ac_dir in $ac_dummy; do
9755     IFS="$lt_save_ifs"
9756     test -z "$ac_dir" && ac_dir=.
9757     if test -f $ac_dir/${ac_tool_prefix}file; then
9758       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9759       if test -n "$file_magic_test_file"; then
9760         case $deplibs_check_method in
9761         "file_magic "*)
9762           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9763           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9764           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9765             $EGREP "$file_magic_regex" > /dev/null; then
9766             :
9767           else
9768             cat <<_LT_EOF 1>&2
9769
9770 *** Warning: the command libtool uses to detect shared libraries,
9771 *** $file_magic_cmd, produces output that libtool cannot recognize.
9772 *** The result is that libtool may fail to recognize shared libraries
9773 *** as such.  This will affect the creation of libtool libraries that
9774 *** depend on shared libraries, but programs linked with such libtool
9775 *** libraries will work regardless of this problem.  Nevertheless, you
9776 *** may want to report the problem to your system manager and/or to
9777 *** bug-libtool@gnu.org
9778
9779 _LT_EOF
9780           fi ;;
9781         esac
9782       fi
9783       break
9784     fi
9785   done
9786   IFS="$lt_save_ifs"
9787   MAGIC_CMD="$lt_save_MAGIC_CMD"
9788   ;;
9789 esac
9790 fi
9791
9792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9793 if test -n "$MAGIC_CMD"; then
9794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9795 $as_echo "$MAGIC_CMD" >&6; }
9796 else
9797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9798 $as_echo "no" >&6; }
9799 fi
9800
9801
9802
9803
9804
9805 if test -z "$lt_cv_path_MAGIC_CMD"; then
9806   if test -n "$ac_tool_prefix"; then
9807     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9808 $as_echo_n "checking for file... " >&6; }
9809 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9810   $as_echo_n "(cached) " >&6
9811 else
9812   case $MAGIC_CMD in
9813 [\\/*] |  ?:[\\/]*)
9814   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9815   ;;
9816 *)
9817   lt_save_MAGIC_CMD="$MAGIC_CMD"
9818   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9819   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9820   for ac_dir in $ac_dummy; do
9821     IFS="$lt_save_ifs"
9822     test -z "$ac_dir" && ac_dir=.
9823     if test -f $ac_dir/file; then
9824       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9825       if test -n "$file_magic_test_file"; then
9826         case $deplibs_check_method in
9827         "file_magic "*)
9828           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9829           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9830           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9831             $EGREP "$file_magic_regex" > /dev/null; then
9832             :
9833           else
9834             cat <<_LT_EOF 1>&2
9835
9836 *** Warning: the command libtool uses to detect shared libraries,
9837 *** $file_magic_cmd, produces output that libtool cannot recognize.
9838 *** The result is that libtool may fail to recognize shared libraries
9839 *** as such.  This will affect the creation of libtool libraries that
9840 *** depend on shared libraries, but programs linked with such libtool
9841 *** libraries will work regardless of this problem.  Nevertheless, you
9842 *** may want to report the problem to your system manager and/or to
9843 *** bug-libtool@gnu.org
9844
9845 _LT_EOF
9846           fi ;;
9847         esac
9848       fi
9849       break
9850     fi
9851   done
9852   IFS="$lt_save_ifs"
9853   MAGIC_CMD="$lt_save_MAGIC_CMD"
9854   ;;
9855 esac
9856 fi
9857
9858 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9859 if test -n "$MAGIC_CMD"; then
9860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9861 $as_echo "$MAGIC_CMD" >&6; }
9862 else
9863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864 $as_echo "no" >&6; }
9865 fi
9866
9867
9868   else
9869     MAGIC_CMD=:
9870   fi
9871 fi
9872
9873   fi
9874   ;;
9875 esac
9876
9877 # Use C for the default configuration in the libtool script
9878
9879 lt_save_CC="$CC"
9880 ac_ext=c
9881 ac_cpp='$CPP $CPPFLAGS'
9882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9885
9886
9887 # Source file extension for C test sources.
9888 ac_ext=c
9889
9890 # Object file extension for compiled C test sources.
9891 objext=o
9892 objext=$objext
9893
9894 # Code to be used in simple compile tests
9895 lt_simple_compile_test_code="int some_variable = 0;"
9896
9897 # Code to be used in simple link tests
9898 lt_simple_link_test_code='int main(){return(0);}'
9899
9900
9901
9902
9903
9904
9905
9906 # If no C compiler was specified, use CC.
9907 LTCC=${LTCC-"$CC"}
9908
9909 # If no C compiler flags were specified, use CFLAGS.
9910 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9911
9912 # Allow CC to be a program name with arguments.
9913 compiler=$CC
9914
9915 # Save the default compiler, since it gets overwritten when the other
9916 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9917 compiler_DEFAULT=$CC
9918
9919 # save warnings/boilerplate of simple test code
9920 ac_outfile=conftest.$ac_objext
9921 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9922 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9923 _lt_compiler_boilerplate=`cat conftest.err`
9924 $RM conftest*
9925
9926 ac_outfile=conftest.$ac_objext
9927 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9928 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9929 _lt_linker_boilerplate=`cat conftest.err`
9930 $RM -r conftest*
9931
9932
9933 if test -n "$compiler"; then
9934
9935 lt_prog_compiler_no_builtin_flag=
9936
9937 if test "$GCC" = yes; then
9938   case $cc_basename in
9939   nvcc*)
9940     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9941   *)
9942     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9943   esac
9944
9945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9946 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9947 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9948   $as_echo_n "(cached) " >&6
9949 else
9950   lt_cv_prog_compiler_rtti_exceptions=no
9951    ac_outfile=conftest.$ac_objext
9952    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9953    lt_compiler_flag="-fno-rtti -fno-exceptions"
9954    # Insert the option either (1) after the last *FLAGS variable, or
9955    # (2) before a word containing "conftest.", or (3) at the end.
9956    # Note that $ac_compile itself does not contain backslashes and begins
9957    # with a dollar sign (not a hyphen), so the echo should work correctly.
9958    # The option is referenced via a variable to avoid confusing sed.
9959    lt_compile=`echo "$ac_compile" | $SED \
9960    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9961    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9962    -e 's:$: $lt_compiler_flag:'`
9963    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9964    (eval "$lt_compile" 2>conftest.err)
9965    ac_status=$?
9966    cat conftest.err >&5
9967    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968    if (exit $ac_status) && test -s "$ac_outfile"; then
9969      # The compiler can only warn and ignore the option if not recognized
9970      # So say no if there are warnings other than the usual output.
9971      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9972      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9973      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9974        lt_cv_prog_compiler_rtti_exceptions=yes
9975      fi
9976    fi
9977    $RM conftest*
9978
9979 fi
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9981 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9982
9983 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9984     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9985 else
9986     :
9987 fi
9988
9989 fi
9990
9991
9992
9993
9994
9995
9996   lt_prog_compiler_wl=
9997 lt_prog_compiler_pic=
9998 lt_prog_compiler_static=
9999
10000
10001   if test "$GCC" = yes; then
10002     lt_prog_compiler_wl='-Wl,'
10003     lt_prog_compiler_static='-static'
10004
10005     case $host_os in
10006       aix*)
10007       # All AIX code is PIC.
10008       if test "$host_cpu" = ia64; then
10009         # AIX 5 now supports IA64 processor
10010         lt_prog_compiler_static='-Bstatic'
10011       fi
10012       ;;
10013
10014     amigaos*)
10015       case $host_cpu in
10016       powerpc)
10017             # see comment about AmigaOS4 .so support
10018             lt_prog_compiler_pic='-fPIC'
10019         ;;
10020       m68k)
10021             # FIXME: we need at least 68020 code to build shared libraries, but
10022             # adding the `-m68020' flag to GCC prevents building anything better,
10023             # like `-m68040'.
10024             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10025         ;;
10026       esac
10027       ;;
10028
10029     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10030       # PIC is the default for these OSes.
10031       ;;
10032
10033     mingw* | cygwin* | pw32* | os2* | cegcc*)
10034       # This hack is so that the source file can tell whether it is being
10035       # built for inclusion in a dll (and should export symbols for example).
10036       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10037       # (--disable-auto-import) libraries
10038       lt_prog_compiler_pic='-DDLL_EXPORT'
10039       ;;
10040
10041     darwin* | rhapsody*)
10042       # PIC is the default on this platform
10043       # Common symbols not allowed in MH_DYLIB files
10044       lt_prog_compiler_pic='-fno-common'
10045       ;;
10046
10047     haiku*)
10048       # PIC is the default for Haiku.
10049       # The "-static" flag exists, but is broken.
10050       lt_prog_compiler_static=
10051       ;;
10052
10053     hpux*)
10054       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10055       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10056       # sets the default TLS model and affects inlining.
10057       case $host_cpu in
10058       hppa*64*)
10059         # +Z the default
10060         ;;
10061       *)
10062         lt_prog_compiler_pic='-fPIC'
10063         ;;
10064       esac
10065       ;;
10066
10067     interix[3-9]*)
10068       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10069       # Instead, we relocate shared libraries at runtime.
10070       ;;
10071
10072     msdosdjgpp*)
10073       # Just because we use GCC doesn't mean we suddenly get shared libraries
10074       # on systems that don't support them.
10075       lt_prog_compiler_can_build_shared=no
10076       enable_shared=no
10077       ;;
10078
10079     *nto* | *qnx*)
10080       # QNX uses GNU C++, but need to define -shared option too, otherwise
10081       # it will coredump.
10082       lt_prog_compiler_pic='-fPIC -shared'
10083       ;;
10084
10085     sysv4*MP*)
10086       if test -d /usr/nec; then
10087         lt_prog_compiler_pic=-Kconform_pic
10088       fi
10089       ;;
10090
10091     *)
10092       lt_prog_compiler_pic='-fPIC'
10093       ;;
10094     esac
10095
10096     case $cc_basename in
10097     nvcc*) # Cuda Compiler Driver 2.2
10098       lt_prog_compiler_wl='-Xlinker '
10099       if test -n "$lt_prog_compiler_pic"; then
10100         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10101       fi
10102       ;;
10103     esac
10104   else
10105     # PORTME Check for flag to pass linker flags through the system compiler.
10106     case $host_os in
10107     aix*)
10108       lt_prog_compiler_wl='-Wl,'
10109       if test "$host_cpu" = ia64; then
10110         # AIX 5 now supports IA64 processor
10111         lt_prog_compiler_static='-Bstatic'
10112       else
10113         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10114       fi
10115       ;;
10116
10117     mingw* | cygwin* | pw32* | os2* | cegcc*)
10118       # This hack is so that the source file can tell whether it is being
10119       # built for inclusion in a dll (and should export symbols for example).
10120       lt_prog_compiler_pic='-DDLL_EXPORT'
10121       ;;
10122
10123     hpux9* | hpux10* | hpux11*)
10124       lt_prog_compiler_wl='-Wl,'
10125       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10126       # not for PA HP-UX.
10127       case $host_cpu in
10128       hppa*64*|ia64*)
10129         # +Z the default
10130         ;;
10131       *)
10132         lt_prog_compiler_pic='+Z'
10133         ;;
10134       esac
10135       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10136       lt_prog_compiler_static='${wl}-a ${wl}archive'
10137       ;;
10138
10139     irix5* | irix6* | nonstopux*)
10140       lt_prog_compiler_wl='-Wl,'
10141       # PIC (with -KPIC) is the default.
10142       lt_prog_compiler_static='-non_shared'
10143       ;;
10144
10145     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10146       case $cc_basename in
10147       # old Intel for x86_64 which still supported -KPIC.
10148       ecc*)
10149         lt_prog_compiler_wl='-Wl,'
10150         lt_prog_compiler_pic='-KPIC'
10151         lt_prog_compiler_static='-static'
10152         ;;
10153       # icc used to be incompatible with GCC.
10154       # ICC 10 doesn't accept -KPIC any more.
10155       icc* | ifort*)
10156         lt_prog_compiler_wl='-Wl,'
10157         lt_prog_compiler_pic='-fPIC'
10158         lt_prog_compiler_static='-static'
10159         ;;
10160       # Lahey Fortran 8.1.
10161       lf95*)
10162         lt_prog_compiler_wl='-Wl,'
10163         lt_prog_compiler_pic='--shared'
10164         lt_prog_compiler_static='--static'
10165         ;;
10166       nagfor*)
10167         # NAG Fortran compiler
10168         lt_prog_compiler_wl='-Wl,-Wl,,'
10169         lt_prog_compiler_pic='-PIC'
10170         lt_prog_compiler_static='-Bstatic'
10171         ;;
10172       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10173         # Portland Group compilers (*not* the Pentium gcc compiler,
10174         # which looks to be a dead project)
10175         lt_prog_compiler_wl='-Wl,'
10176         lt_prog_compiler_pic='-fpic'
10177         lt_prog_compiler_static='-Bstatic'
10178         ;;
10179       ccc*)
10180         lt_prog_compiler_wl='-Wl,'
10181         # All Alpha code is PIC.
10182         lt_prog_compiler_static='-non_shared'
10183         ;;
10184       xl* | bgxl* | bgf* | mpixl*)
10185         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10186         lt_prog_compiler_wl='-Wl,'
10187         lt_prog_compiler_pic='-qpic'
10188         lt_prog_compiler_static='-qstaticlink'
10189         ;;
10190       *)
10191         case `$CC -V 2>&1 | sed 5q` in
10192         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10193           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10194           lt_prog_compiler_pic='-KPIC'
10195           lt_prog_compiler_static='-Bstatic'
10196           lt_prog_compiler_wl=''
10197           ;;
10198         *Sun\ F* | *Sun*Fortran*)
10199           lt_prog_compiler_pic='-KPIC'
10200           lt_prog_compiler_static='-Bstatic'
10201           lt_prog_compiler_wl='-Qoption ld '
10202           ;;
10203         *Sun\ C*)
10204           # Sun C 5.9
10205           lt_prog_compiler_pic='-KPIC'
10206           lt_prog_compiler_static='-Bstatic'
10207           lt_prog_compiler_wl='-Wl,'
10208           ;;
10209         *Intel*\ [CF]*Compiler*)
10210           lt_prog_compiler_wl='-Wl,'
10211           lt_prog_compiler_pic='-fPIC'
10212           lt_prog_compiler_static='-static'
10213           ;;
10214         *Portland\ Group*)
10215           lt_prog_compiler_wl='-Wl,'
10216           lt_prog_compiler_pic='-fpic'
10217           lt_prog_compiler_static='-Bstatic'
10218           ;;
10219         esac
10220         ;;
10221       esac
10222       ;;
10223
10224     newsos6)
10225       lt_prog_compiler_pic='-KPIC'
10226       lt_prog_compiler_static='-Bstatic'
10227       ;;
10228
10229     *nto* | *qnx*)
10230       # QNX uses GNU C++, but need to define -shared option too, otherwise
10231       # it will coredump.
10232       lt_prog_compiler_pic='-fPIC -shared'
10233       ;;
10234
10235     osf3* | osf4* | osf5*)
10236       lt_prog_compiler_wl='-Wl,'
10237       # All OSF/1 code is PIC.
10238       lt_prog_compiler_static='-non_shared'
10239       ;;
10240
10241     rdos*)
10242       lt_prog_compiler_static='-non_shared'
10243       ;;
10244
10245     solaris*)
10246       lt_prog_compiler_pic='-KPIC'
10247       lt_prog_compiler_static='-Bstatic'
10248       case $cc_basename in
10249       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10250         lt_prog_compiler_wl='-Qoption ld ';;
10251       *)
10252         lt_prog_compiler_wl='-Wl,';;
10253       esac
10254       ;;
10255
10256     sunos4*)
10257       lt_prog_compiler_wl='-Qoption ld '
10258       lt_prog_compiler_pic='-PIC'
10259       lt_prog_compiler_static='-Bstatic'
10260       ;;
10261
10262     sysv4 | sysv4.2uw2* | sysv4.3*)
10263       lt_prog_compiler_wl='-Wl,'
10264       lt_prog_compiler_pic='-KPIC'
10265       lt_prog_compiler_static='-Bstatic'
10266       ;;
10267
10268     sysv4*MP*)
10269       if test -d /usr/nec ;then
10270         lt_prog_compiler_pic='-Kconform_pic'
10271         lt_prog_compiler_static='-Bstatic'
10272       fi
10273       ;;
10274
10275     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10276       lt_prog_compiler_wl='-Wl,'
10277       lt_prog_compiler_pic='-KPIC'
10278       lt_prog_compiler_static='-Bstatic'
10279       ;;
10280
10281     unicos*)
10282       lt_prog_compiler_wl='-Wl,'
10283       lt_prog_compiler_can_build_shared=no
10284       ;;
10285
10286     uts4*)
10287       lt_prog_compiler_pic='-pic'
10288       lt_prog_compiler_static='-Bstatic'
10289       ;;
10290
10291     *)
10292       lt_prog_compiler_can_build_shared=no
10293       ;;
10294     esac
10295   fi
10296
10297 case $host_os in
10298   # For platforms which do not support PIC, -DPIC is meaningless:
10299   *djgpp*)
10300     lt_prog_compiler_pic=
10301     ;;
10302   *)
10303     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10304     ;;
10305 esac
10306
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10308 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10309 if ${lt_cv_prog_compiler_pic+:} false; then :
10310   $as_echo_n "(cached) " >&6
10311 else
10312   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10313 fi
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10315 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10316 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10317
10318 #
10319 # Check to make sure the PIC flag actually works.
10320 #
10321 if test -n "$lt_prog_compiler_pic"; then
10322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10323 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10324 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10325   $as_echo_n "(cached) " >&6
10326 else
10327   lt_cv_prog_compiler_pic_works=no
10328    ac_outfile=conftest.$ac_objext
10329    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10330    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10331    # Insert the option either (1) after the last *FLAGS variable, or
10332    # (2) before a word containing "conftest.", or (3) at the end.
10333    # Note that $ac_compile itself does not contain backslashes and begins
10334    # with a dollar sign (not a hyphen), so the echo should work correctly.
10335    # The option is referenced via a variable to avoid confusing sed.
10336    lt_compile=`echo "$ac_compile" | $SED \
10337    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10338    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10339    -e 's:$: $lt_compiler_flag:'`
10340    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10341    (eval "$lt_compile" 2>conftest.err)
10342    ac_status=$?
10343    cat conftest.err >&5
10344    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345    if (exit $ac_status) && test -s "$ac_outfile"; then
10346      # The compiler can only warn and ignore the option if not recognized
10347      # So say no if there are warnings other than the usual output.
10348      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10349      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10350      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10351        lt_cv_prog_compiler_pic_works=yes
10352      fi
10353    fi
10354    $RM conftest*
10355
10356 fi
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10358 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10359
10360 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10361     case $lt_prog_compiler_pic in
10362      "" | " "*) ;;
10363      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10364      esac
10365 else
10366     lt_prog_compiler_pic=
10367      lt_prog_compiler_can_build_shared=no
10368 fi
10369
10370 fi
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382 #
10383 # Check to make sure the static flag actually works.
10384 #
10385 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10387 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10388 if ${lt_cv_prog_compiler_static_works+:} false; then :
10389   $as_echo_n "(cached) " >&6
10390 else
10391   lt_cv_prog_compiler_static_works=no
10392    save_LDFLAGS="$LDFLAGS"
10393    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10394    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10395    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10396      # The linker can only warn and ignore the option if not recognized
10397      # So say no if there are warnings
10398      if test -s conftest.err; then
10399        # Append any errors to the config.log.
10400        cat conftest.err 1>&5
10401        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10402        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10403        if diff conftest.exp conftest.er2 >/dev/null; then
10404          lt_cv_prog_compiler_static_works=yes
10405        fi
10406      else
10407        lt_cv_prog_compiler_static_works=yes
10408      fi
10409    fi
10410    $RM -r conftest*
10411    LDFLAGS="$save_LDFLAGS"
10412
10413 fi
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10415 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10416
10417 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10418     :
10419 else
10420     lt_prog_compiler_static=
10421 fi
10422
10423
10424
10425
10426
10427
10428
10429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10430 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10431 if ${lt_cv_prog_compiler_c_o+:} false; then :
10432   $as_echo_n "(cached) " >&6
10433 else
10434   lt_cv_prog_compiler_c_o=no
10435    $RM -r conftest 2>/dev/null
10436    mkdir conftest
10437    cd conftest
10438    mkdir out
10439    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10440
10441    lt_compiler_flag="-o out/conftest2.$ac_objext"
10442    # Insert the option either (1) after the last *FLAGS variable, or
10443    # (2) before a word containing "conftest.", or (3) at the end.
10444    # Note that $ac_compile itself does not contain backslashes and begins
10445    # with a dollar sign (not a hyphen), so the echo should work correctly.
10446    lt_compile=`echo "$ac_compile" | $SED \
10447    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10448    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10449    -e 's:$: $lt_compiler_flag:'`
10450    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10451    (eval "$lt_compile" 2>out/conftest.err)
10452    ac_status=$?
10453    cat out/conftest.err >&5
10454    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10456    then
10457      # The compiler can only warn and ignore the option if not recognized
10458      # So say no if there are warnings
10459      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10460      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10461      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10462        lt_cv_prog_compiler_c_o=yes
10463      fi
10464    fi
10465    chmod u+w . 2>&5
10466    $RM conftest*
10467    # SGI C++ compiler will create directory out/ii_files/ for
10468    # template instantiation
10469    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10470    $RM out/* && rmdir out
10471    cd ..
10472    $RM -r conftest
10473    $RM conftest*
10474
10475 fi
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10477 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10478
10479
10480
10481
10482
10483
10484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10485 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10486 if ${lt_cv_prog_compiler_c_o+:} false; then :
10487   $as_echo_n "(cached) " >&6
10488 else
10489   lt_cv_prog_compiler_c_o=no
10490    $RM -r conftest 2>/dev/null
10491    mkdir conftest
10492    cd conftest
10493    mkdir out
10494    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10495
10496    lt_compiler_flag="-o out/conftest2.$ac_objext"
10497    # Insert the option either (1) after the last *FLAGS variable, or
10498    # (2) before a word containing "conftest.", or (3) at the end.
10499    # Note that $ac_compile itself does not contain backslashes and begins
10500    # with a dollar sign (not a hyphen), so the echo should work correctly.
10501    lt_compile=`echo "$ac_compile" | $SED \
10502    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10503    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10504    -e 's:$: $lt_compiler_flag:'`
10505    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10506    (eval "$lt_compile" 2>out/conftest.err)
10507    ac_status=$?
10508    cat out/conftest.err >&5
10509    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10511    then
10512      # The compiler can only warn and ignore the option if not recognized
10513      # So say no if there are warnings
10514      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10515      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10516      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10517        lt_cv_prog_compiler_c_o=yes
10518      fi
10519    fi
10520    chmod u+w . 2>&5
10521    $RM conftest*
10522    # SGI C++ compiler will create directory out/ii_files/ for
10523    # template instantiation
10524    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10525    $RM out/* && rmdir out
10526    cd ..
10527    $RM -r conftest
10528    $RM conftest*
10529
10530 fi
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10532 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10533
10534
10535
10536
10537 hard_links="nottested"
10538 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10539   # do not overwrite the value of need_locks provided by the user
10540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10541 $as_echo_n "checking if we can lock with hard links... " >&6; }
10542   hard_links=yes
10543   $RM conftest*
10544   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10545   touch conftest.a
10546   ln conftest.a conftest.b 2>&5 || hard_links=no
10547   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10549 $as_echo "$hard_links" >&6; }
10550   if test "$hard_links" = no; then
10551     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10552 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10553     need_locks=warn
10554   fi
10555 else
10556   need_locks=no
10557 fi
10558
10559
10560
10561
10562
10563
10564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10565 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10566
10567   runpath_var=
10568   allow_undefined_flag=
10569   always_export_symbols=no
10570   archive_cmds=
10571   archive_expsym_cmds=
10572   compiler_needs_object=no
10573   enable_shared_with_static_runtimes=no
10574   export_dynamic_flag_spec=
10575   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10576   hardcode_automatic=no
10577   hardcode_direct=no
10578   hardcode_direct_absolute=no
10579   hardcode_libdir_flag_spec=
10580   hardcode_libdir_separator=
10581   hardcode_minus_L=no
10582   hardcode_shlibpath_var=unsupported
10583   inherit_rpath=no
10584   link_all_deplibs=unknown
10585   module_cmds=
10586   module_expsym_cmds=
10587   old_archive_from_new_cmds=
10588   old_archive_from_expsyms_cmds=
10589   thread_safe_flag_spec=
10590   whole_archive_flag_spec=
10591   # include_expsyms should be a list of space-separated symbols to be *always*
10592   # included in the symbol list
10593   include_expsyms=
10594   # exclude_expsyms can be an extended regexp of symbols to exclude
10595   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10596   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10597   # as well as any symbol that contains `d'.
10598   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10599   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10600   # platforms (ab)use it in PIC code, but their linkers get confused if
10601   # the symbol is explicitly referenced.  Since portable code cannot
10602   # rely on this symbol name, it's probably fine to never include it in
10603   # preloaded symbol tables.
10604   # Exclude shared library initialization/finalization symbols.
10605   extract_expsyms_cmds=
10606
10607   case $host_os in
10608   cygwin* | mingw* | pw32* | cegcc*)
10609     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10610     # When not using gcc, we currently assume that we are using
10611     # Microsoft Visual C++.
10612     if test "$GCC" != yes; then
10613       with_gnu_ld=no
10614     fi
10615     ;;
10616   interix*)
10617     # we just hope/assume this is gcc and not c89 (= MSVC++)
10618     with_gnu_ld=yes
10619     ;;
10620   openbsd*)
10621     with_gnu_ld=no
10622     ;;
10623   esac
10624
10625   ld_shlibs=yes
10626
10627   # On some targets, GNU ld is compatible enough with the native linker
10628   # that we're better off using the native interface for both.
10629   lt_use_gnu_ld_interface=no
10630   if test "$with_gnu_ld" = yes; then
10631     case $host_os in
10632       aix*)
10633         # The AIX port of GNU ld has always aspired to compatibility
10634         # with the native linker.  However, as the warning in the GNU ld
10635         # block says, versions before 2.19.5* couldn't really create working
10636         # shared libraries, regardless of the interface used.
10637         case `$LD -v 2>&1` in
10638           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10639           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10640           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10641           *)
10642             lt_use_gnu_ld_interface=yes
10643             ;;
10644         esac
10645         ;;
10646       *)
10647         lt_use_gnu_ld_interface=yes
10648         ;;
10649     esac
10650   fi
10651
10652   if test "$lt_use_gnu_ld_interface" = yes; then
10653     # If archive_cmds runs LD, not CC, wlarc should be empty
10654     wlarc='${wl}'
10655
10656     # Set some defaults for GNU ld with shared library support. These
10657     # are reset later if shared libraries are not supported. Putting them
10658     # here allows them to be overridden if necessary.
10659     runpath_var=LD_RUN_PATH
10660     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10661     export_dynamic_flag_spec='${wl}--export-dynamic'
10662     # ancient GNU ld didn't support --whole-archive et. al.
10663     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10664       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10665     else
10666       whole_archive_flag_spec=
10667     fi
10668     supports_anon_versioning=no
10669     case `$LD -v 2>&1` in
10670       *GNU\ gold*) supports_anon_versioning=yes ;;
10671       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10672       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10673       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10674       *\ 2.11.*) ;; # other 2.11 versions
10675       *) supports_anon_versioning=yes ;;
10676     esac
10677
10678     # See if GNU ld supports shared libraries.
10679     case $host_os in
10680     aix[3-9]*)
10681       # On AIX/PPC, the GNU linker is very broken
10682       if test "$host_cpu" != ia64; then
10683         ld_shlibs=no
10684         cat <<_LT_EOF 1>&2
10685
10686 *** Warning: the GNU linker, at least up to release 2.19, is reported
10687 *** to be unable to reliably create shared libraries on AIX.
10688 *** Therefore, libtool is disabling shared libraries support.  If you
10689 *** really care for shared libraries, you may want to install binutils
10690 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10691 *** You will then need to restart the configuration process.
10692
10693 _LT_EOF
10694       fi
10695       ;;
10696
10697     amigaos*)
10698       case $host_cpu in
10699       powerpc)
10700             # see comment about AmigaOS4 .so support
10701             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10702             archive_expsym_cmds=''
10703         ;;
10704       m68k)
10705             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)'
10706             hardcode_libdir_flag_spec='-L$libdir'
10707             hardcode_minus_L=yes
10708         ;;
10709       esac
10710       ;;
10711
10712     beos*)
10713       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10714         allow_undefined_flag=unsupported
10715         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10716         # support --undefined.  This deserves some investigation.  FIXME
10717         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10718       else
10719         ld_shlibs=no
10720       fi
10721       ;;
10722
10723     cygwin* | mingw* | pw32* | cegcc*)
10724       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10725       # as there is no search path for DLLs.
10726       hardcode_libdir_flag_spec='-L$libdir'
10727       export_dynamic_flag_spec='${wl}--export-all-symbols'
10728       allow_undefined_flag=unsupported
10729       always_export_symbols=no
10730       enable_shared_with_static_runtimes=yes
10731       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'
10732       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10733
10734       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10735         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10736         # If the export-symbols file already is a .def file (1st line
10737         # is EXPORTS), use it as is; otherwise, prepend...
10738         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10739           cp $export_symbols $output_objdir/$soname.def;
10740         else
10741           echo EXPORTS > $output_objdir/$soname.def;
10742           cat $export_symbols >> $output_objdir/$soname.def;
10743         fi~
10744         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10745       else
10746         ld_shlibs=no
10747       fi
10748       ;;
10749
10750     haiku*)
10751       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10752       link_all_deplibs=yes
10753       ;;
10754
10755     interix[3-9]*)
10756       hardcode_direct=no
10757       hardcode_shlibpath_var=no
10758       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10759       export_dynamic_flag_spec='${wl}-E'
10760       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10761       # Instead, shared libraries are loaded at an image base (0x10000000 by
10762       # default) and relocated if they conflict, which is a slow very memory
10763       # consuming and fragmenting process.  To avoid this, we pick a random,
10764       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10765       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10766       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10767       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'
10768       ;;
10769
10770     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10771       tmp_diet=no
10772       if test "$host_os" = linux-dietlibc; then
10773         case $cc_basename in
10774           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10775         esac
10776       fi
10777       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10778          && test "$tmp_diet" = no
10779       then
10780         tmp_addflag=' $pic_flag'
10781         tmp_sharedflag='-shared'
10782         case $cc_basename,$host_cpu in
10783         pgcc*)                          # Portland Group C compiler
10784           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'
10785           tmp_addflag=' $pic_flag'
10786           ;;
10787         pgf77* | pgf90* | pgf95* | pgfortran*)
10788                                         # Portland Group f77 and f90 compilers
10789           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'
10790           tmp_addflag=' $pic_flag -Mnomain' ;;
10791         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10792           tmp_addflag=' -i_dynamic' ;;
10793         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10794           tmp_addflag=' -i_dynamic -nofor_main' ;;
10795         ifc* | ifort*)                  # Intel Fortran compiler
10796           tmp_addflag=' -nofor_main' ;;
10797         lf95*)                          # Lahey Fortran 8.1
10798           whole_archive_flag_spec=
10799           tmp_sharedflag='--shared' ;;
10800         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10801           tmp_sharedflag='-qmkshrobj'
10802           tmp_addflag= ;;
10803         nvcc*)  # Cuda Compiler Driver 2.2
10804           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'
10805           compiler_needs_object=yes
10806           ;;
10807         esac
10808         case `$CC -V 2>&1 | sed 5q` in
10809         *Sun\ C*)                       # Sun C 5.9
10810           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'
10811           compiler_needs_object=yes
10812           tmp_sharedflag='-G' ;;
10813         *Sun\ F*)                       # Sun Fortran 8.3
10814           tmp_sharedflag='-G' ;;
10815         esac
10816         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10817
10818         if test "x$supports_anon_versioning" = xyes; then
10819           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10820             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10821             echo "local: *; };" >> $output_objdir/$libname.ver~
10822             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10823         fi
10824
10825         case $cc_basename in
10826         xlf* | bgf* | bgxlf* | mpixlf*)
10827           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10828           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10829           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10830           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10831           if test "x$supports_anon_versioning" = xyes; then
10832             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10833               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10834               echo "local: *; };" >> $output_objdir/$libname.ver~
10835               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10836           fi
10837           ;;
10838         esac
10839       else
10840         ld_shlibs=no
10841       fi
10842       ;;
10843
10844     netbsd*)
10845       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10846         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10847         wlarc=
10848       else
10849         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10850         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10851       fi
10852       ;;
10853
10854     solaris*)
10855       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10856         ld_shlibs=no
10857         cat <<_LT_EOF 1>&2
10858
10859 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10860 *** create shared libraries on Solaris systems.  Therefore, libtool
10861 *** is disabling shared libraries support.  We urge you to upgrade GNU
10862 *** binutils to release 2.9.1 or newer.  Another option is to modify
10863 *** your PATH or compiler configuration so that the native linker is
10864 *** used, and then restart.
10865
10866 _LT_EOF
10867       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10868         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10869         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10870       else
10871         ld_shlibs=no
10872       fi
10873       ;;
10874
10875     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10876       case `$LD -v 2>&1` in
10877         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10878         ld_shlibs=no
10879         cat <<_LT_EOF 1>&2
10880
10881 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10882 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10883 *** is disabling shared libraries support.  We urge you to upgrade GNU
10884 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10885 *** your PATH or compiler configuration so that the native linker is
10886 *** used, and then restart.
10887
10888 _LT_EOF
10889         ;;
10890         *)
10891           # For security reasons, it is highly recommended that you always
10892           # use absolute paths for naming shared libraries, and exclude the
10893           # DT_RUNPATH tag from executables and libraries.  But doing so
10894           # requires that you compile everything twice, which is a pain.
10895           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10896             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10897             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10898             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10899           else
10900             ld_shlibs=no
10901           fi
10902         ;;
10903       esac
10904       ;;
10905
10906     sunos4*)
10907       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10908       wlarc=
10909       hardcode_direct=yes
10910       hardcode_shlibpath_var=no
10911       ;;
10912
10913     *)
10914       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10915         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10916         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10917       else
10918         ld_shlibs=no
10919       fi
10920       ;;
10921     esac
10922
10923     if test "$ld_shlibs" = no; then
10924       runpath_var=
10925       hardcode_libdir_flag_spec=
10926       export_dynamic_flag_spec=
10927       whole_archive_flag_spec=
10928     fi
10929   else
10930     # PORTME fill in a description of your system's linker (not GNU ld)
10931     case $host_os in
10932     aix3*)
10933       allow_undefined_flag=unsupported
10934       always_export_symbols=yes
10935       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'
10936       # Note: this linker hardcodes the directories in LIBPATH if there
10937       # are no directories specified by -L.
10938       hardcode_minus_L=yes
10939       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10940         # Neither direct hardcoding nor static linking is supported with a
10941         # broken collect2.
10942         hardcode_direct=unsupported
10943       fi
10944       ;;
10945
10946     aix[4-9]*)
10947       if test "$host_cpu" = ia64; then
10948         # On IA64, the linker does run time linking by default, so we don't
10949         # have to do anything special.
10950         aix_use_runtimelinking=no
10951         exp_sym_flag='-Bexport'
10952         no_entry_flag=""
10953       else
10954         # If we're using GNU nm, then we don't want the "-C" option.
10955         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10956         # Also, AIX nm treats weak defined symbols like other global
10957         # defined symbols, whereas GNU nm marks them as "W".
10958         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10959           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'
10960         else
10961           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'
10962         fi
10963         aix_use_runtimelinking=no
10964
10965         # Test if we are trying to use run time linking or normal
10966         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10967         # need to do runtime linking.
10968         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10969           for ld_flag in $LDFLAGS; do
10970           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10971             aix_use_runtimelinking=yes
10972             break
10973           fi
10974           done
10975           ;;
10976         esac
10977
10978         exp_sym_flag='-bexport'
10979         no_entry_flag='-bnoentry'
10980       fi
10981
10982       # When large executables or shared objects are built, AIX ld can
10983       # have problems creating the table of contents.  If linking a library
10984       # or program results in "error TOC overflow" add -mminimal-toc to
10985       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10986       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10987
10988       archive_cmds=''
10989       hardcode_direct=yes
10990       hardcode_direct_absolute=yes
10991       hardcode_libdir_separator=':'
10992       link_all_deplibs=yes
10993       file_list_spec='${wl}-f,'
10994
10995       if test "$GCC" = yes; then
10996         case $host_os in aix4.[012]|aix4.[012].*)
10997         # We only want to do this on AIX 4.2 and lower, the check
10998         # below for broken collect2 doesn't work under 4.3+
10999           collect2name=`${CC} -print-prog-name=collect2`
11000           if test -f "$collect2name" &&
11001            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11002           then
11003           # We have reworked collect2
11004           :
11005           else
11006           # We have old collect2
11007           hardcode_direct=unsupported
11008           # It fails to find uninstalled libraries when the uninstalled
11009           # path is not listed in the libpath.  Setting hardcode_minus_L
11010           # to unsupported forces relinking
11011           hardcode_minus_L=yes
11012           hardcode_libdir_flag_spec='-L$libdir'
11013           hardcode_libdir_separator=
11014           fi
11015           ;;
11016         esac
11017         shared_flag='-shared'
11018         if test "$aix_use_runtimelinking" = yes; then
11019           shared_flag="$shared_flag "'${wl}-G'
11020         fi
11021       else
11022         # not using gcc
11023         if test "$host_cpu" = ia64; then
11024         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11025         # chokes on -Wl,-G. The following line is correct:
11026           shared_flag='-G'
11027         else
11028           if test "$aix_use_runtimelinking" = yes; then
11029             shared_flag='${wl}-G'
11030           else
11031             shared_flag='${wl}-bM:SRE'
11032           fi
11033         fi
11034       fi
11035
11036       export_dynamic_flag_spec='${wl}-bexpall'
11037       # It seems that -bexpall does not export symbols beginning with
11038       # underscore (_), so it is better to generate a list of symbols to export.
11039       always_export_symbols=yes
11040       if test "$aix_use_runtimelinking" = yes; then
11041         # Warning - without using the other runtime loading flags (-brtl),
11042         # -berok will link without error, but may produce a broken library.
11043         allow_undefined_flag='-berok'
11044         # Determine the default libpath from the value encoded in an
11045         # empty executable.
11046         if test "${lt_cv_aix_libpath+set}" = set; then
11047   aix_libpath=$lt_cv_aix_libpath
11048 else
11049   if ${lt_cv_aix_libpath_+:} false; then :
11050   $as_echo_n "(cached) " >&6
11051 else
11052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11053 /* end confdefs.h.  */
11054
11055 int
11056 main ()
11057 {
11058
11059   ;
11060   return 0;
11061 }
11062 _ACEOF
11063 if ac_fn_c_try_link "$LINENO"; then :
11064
11065   lt_aix_libpath_sed='
11066       /Import File Strings/,/^$/ {
11067           /^0/ {
11068               s/^0  *\([^ ]*\) *$/\1/
11069               p
11070           }
11071       }'
11072   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11073   # Check for a 64-bit object if we didn't find anything.
11074   if test -z "$lt_cv_aix_libpath_"; then
11075     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11076   fi
11077 fi
11078 rm -f core conftest.err conftest.$ac_objext \
11079     conftest$ac_exeext conftest.$ac_ext
11080   if test -z "$lt_cv_aix_libpath_"; then
11081     lt_cv_aix_libpath_="/usr/lib:/lib"
11082   fi
11083
11084 fi
11085
11086   aix_libpath=$lt_cv_aix_libpath_
11087 fi
11088
11089         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11090         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"
11091       else
11092         if test "$host_cpu" = ia64; then
11093           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11094           allow_undefined_flag="-z nodefs"
11095           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"
11096         else
11097          # Determine the default libpath from the value encoded in an
11098          # empty executable.
11099          if test "${lt_cv_aix_libpath+set}" = set; then
11100   aix_libpath=$lt_cv_aix_libpath
11101 else
11102   if ${lt_cv_aix_libpath_+:} false; then :
11103   $as_echo_n "(cached) " >&6
11104 else
11105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11106 /* end confdefs.h.  */
11107
11108 int
11109 main ()
11110 {
11111
11112   ;
11113   return 0;
11114 }
11115 _ACEOF
11116 if ac_fn_c_try_link "$LINENO"; then :
11117
11118   lt_aix_libpath_sed='
11119       /Import File Strings/,/^$/ {
11120           /^0/ {
11121               s/^0  *\([^ ]*\) *$/\1/
11122               p
11123           }
11124       }'
11125   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11126   # Check for a 64-bit object if we didn't find anything.
11127   if test -z "$lt_cv_aix_libpath_"; then
11128     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11129   fi
11130 fi
11131 rm -f core conftest.err conftest.$ac_objext \
11132     conftest$ac_exeext conftest.$ac_ext
11133   if test -z "$lt_cv_aix_libpath_"; then
11134     lt_cv_aix_libpath_="/usr/lib:/lib"
11135   fi
11136
11137 fi
11138
11139   aix_libpath=$lt_cv_aix_libpath_
11140 fi
11141
11142          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11143           # Warning - without using the other run time loading flags,
11144           # -berok will link without error, but may produce a broken library.
11145           no_undefined_flag=' ${wl}-bernotok'
11146           allow_undefined_flag=' ${wl}-berok'
11147           if test "$with_gnu_ld" = yes; then
11148             # We only use this code for GNU lds that support --whole-archive.
11149             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11150           else
11151             # Exported symbols can be pulled into shared objects from archives
11152             whole_archive_flag_spec='$convenience'
11153           fi
11154           archive_cmds_need_lc=yes
11155           # This is similar to how AIX traditionally builds its shared libraries.
11156           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'
11157         fi
11158       fi
11159       ;;
11160
11161     amigaos*)
11162       case $host_cpu in
11163       powerpc)
11164             # see comment about AmigaOS4 .so support
11165             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11166             archive_expsym_cmds=''
11167         ;;
11168       m68k)
11169             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)'
11170             hardcode_libdir_flag_spec='-L$libdir'
11171             hardcode_minus_L=yes
11172         ;;
11173       esac
11174       ;;
11175
11176     bsdi[45]*)
11177       export_dynamic_flag_spec=-rdynamic
11178       ;;
11179
11180     cygwin* | mingw* | pw32* | cegcc*)
11181       # When not using gcc, we currently assume that we are using
11182       # Microsoft Visual C++.
11183       # hardcode_libdir_flag_spec is actually meaningless, as there is
11184       # no search path for DLLs.
11185       case $cc_basename in
11186       cl*)
11187         # Native MSVC
11188         hardcode_libdir_flag_spec=' '
11189         allow_undefined_flag=unsupported
11190         always_export_symbols=yes
11191         file_list_spec='@'
11192         # Tell ltmain to make .lib files, not .a files.
11193         libext=lib
11194         # Tell ltmain to make .dll files, not .so files.
11195         shrext_cmds=".dll"
11196         # FIXME: Setting linknames here is a bad hack.
11197         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11198         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11199             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11200           else
11201             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11202           fi~
11203           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11204           linknames='
11205         # The linker will not automatically build a static lib if we build a DLL.
11206         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11207         enable_shared_with_static_runtimes=yes
11208         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11209         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11210         # Don't use ranlib
11211         old_postinstall_cmds='chmod 644 $oldlib'
11212         postlink_cmds='lt_outputfile="@OUTPUT@"~
11213           lt_tool_outputfile="@TOOL_OUTPUT@"~
11214           case $lt_outputfile in
11215             *.exe|*.EXE) ;;
11216             *)
11217               lt_outputfile="$lt_outputfile.exe"
11218               lt_tool_outputfile="$lt_tool_outputfile.exe"
11219               ;;
11220           esac~
11221           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11222             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11223             $RM "$lt_outputfile.manifest";
11224           fi'
11225         ;;
11226       *)
11227         # Assume MSVC wrapper
11228         hardcode_libdir_flag_spec=' '
11229         allow_undefined_flag=unsupported
11230         # Tell ltmain to make .lib files, not .a files.
11231         libext=lib
11232         # Tell ltmain to make .dll files, not .so files.
11233         shrext_cmds=".dll"
11234         # FIXME: Setting linknames here is a bad hack.
11235         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11236         # The linker will automatically build a .lib file if we build a DLL.
11237         old_archive_from_new_cmds='true'
11238         # FIXME: Should let the user specify the lib program.
11239         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11240         enable_shared_with_static_runtimes=yes
11241         ;;
11242       esac
11243       ;;
11244
11245     darwin* | rhapsody*)
11246
11247
11248   archive_cmds_need_lc=no
11249   hardcode_direct=no
11250   hardcode_automatic=yes
11251   hardcode_shlibpath_var=unsupported
11252   if test "$lt_cv_ld_force_load" = "yes"; then
11253     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\"`'
11254
11255   else
11256     whole_archive_flag_spec=''
11257   fi
11258   link_all_deplibs=yes
11259   allow_undefined_flag="$_lt_dar_allow_undefined"
11260   case $cc_basename in
11261      ifort*) _lt_dar_can_shared=yes ;;
11262      *) _lt_dar_can_shared=$GCC ;;
11263   esac
11264   if test "$_lt_dar_can_shared" = "yes"; then
11265     output_verbose_link_cmd=func_echo_all
11266     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11267     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11268     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}"
11269     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}"
11270
11271   else
11272   ld_shlibs=no
11273   fi
11274
11275       ;;
11276
11277     dgux*)
11278       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11279       hardcode_libdir_flag_spec='-L$libdir'
11280       hardcode_shlibpath_var=no
11281       ;;
11282
11283     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11284     # support.  Future versions do this automatically, but an explicit c++rt0.o
11285     # does not break anything, and helps significantly (at the cost of a little
11286     # extra space).
11287     freebsd2.2*)
11288       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11289       hardcode_libdir_flag_spec='-R$libdir'
11290       hardcode_direct=yes
11291       hardcode_shlibpath_var=no
11292       ;;
11293
11294     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11295     freebsd2.*)
11296       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11297       hardcode_direct=yes
11298       hardcode_minus_L=yes
11299       hardcode_shlibpath_var=no
11300       ;;
11301
11302     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11303     freebsd* | dragonfly*)
11304       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11305       hardcode_libdir_flag_spec='-R$libdir'
11306       hardcode_direct=yes
11307       hardcode_shlibpath_var=no
11308       ;;
11309
11310     hpux9*)
11311       if test "$GCC" = yes; then
11312         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'
11313       else
11314         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'
11315       fi
11316       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11317       hardcode_libdir_separator=:
11318       hardcode_direct=yes
11319
11320       # hardcode_minus_L: Not really in the search PATH,
11321       # but as the default location of the library.
11322       hardcode_minus_L=yes
11323       export_dynamic_flag_spec='${wl}-E'
11324       ;;
11325
11326     hpux10*)
11327       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11328         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11329       else
11330         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11331       fi
11332       if test "$with_gnu_ld" = no; then
11333         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11334         hardcode_libdir_separator=:
11335         hardcode_direct=yes
11336         hardcode_direct_absolute=yes
11337         export_dynamic_flag_spec='${wl}-E'
11338         # hardcode_minus_L: Not really in the search PATH,
11339         # but as the default location of the library.
11340         hardcode_minus_L=yes
11341       fi
11342       ;;
11343
11344     hpux11*)
11345       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11346         case $host_cpu in
11347         hppa*64*)
11348           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11349           ;;
11350         ia64*)
11351           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11352           ;;
11353         *)
11354           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11355           ;;
11356         esac
11357       else
11358         case $host_cpu in
11359         hppa*64*)
11360           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11361           ;;
11362         ia64*)
11363           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11364           ;;
11365         *)
11366
11367           # Older versions of the 11.00 compiler do not understand -b yet
11368           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11369           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11370 $as_echo_n "checking if $CC understands -b... " >&6; }
11371 if ${lt_cv_prog_compiler__b+:} false; then :
11372   $as_echo_n "(cached) " >&6
11373 else
11374   lt_cv_prog_compiler__b=no
11375    save_LDFLAGS="$LDFLAGS"
11376    LDFLAGS="$LDFLAGS -b"
11377    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11378    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11379      # The linker can only warn and ignore the option if not recognized
11380      # So say no if there are warnings
11381      if test -s conftest.err; then
11382        # Append any errors to the config.log.
11383        cat conftest.err 1>&5
11384        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11385        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11386        if diff conftest.exp conftest.er2 >/dev/null; then
11387          lt_cv_prog_compiler__b=yes
11388        fi
11389      else
11390        lt_cv_prog_compiler__b=yes
11391      fi
11392    fi
11393    $RM -r conftest*
11394    LDFLAGS="$save_LDFLAGS"
11395
11396 fi
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11398 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11399
11400 if test x"$lt_cv_prog_compiler__b" = xyes; then
11401     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11402 else
11403     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11404 fi
11405
11406           ;;
11407         esac
11408       fi
11409       if test "$with_gnu_ld" = no; then
11410         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11411         hardcode_libdir_separator=:
11412
11413         case $host_cpu in
11414         hppa*64*|ia64*)
11415           hardcode_direct=no
11416           hardcode_shlibpath_var=no
11417           ;;
11418         *)
11419           hardcode_direct=yes
11420           hardcode_direct_absolute=yes
11421           export_dynamic_flag_spec='${wl}-E'
11422
11423           # hardcode_minus_L: Not really in the search PATH,
11424           # but as the default location of the library.
11425           hardcode_minus_L=yes
11426           ;;
11427         esac
11428       fi
11429       ;;
11430
11431     irix5* | irix6* | nonstopux*)
11432       if test "$GCC" = yes; then
11433         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'
11434         # Try to use the -exported_symbol ld option, if it does not
11435         # work, assume that -exports_file does not work either and
11436         # implicitly export all symbols.
11437         # This should be the same for all languages, so no per-tag cache variable.
11438         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11439 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11440 if ${lt_cv_irix_exported_symbol+:} false; then :
11441   $as_echo_n "(cached) " >&6
11442 else
11443   save_LDFLAGS="$LDFLAGS"
11444            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11445            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h.  */
11447 int foo (void) { return 0; }
11448 _ACEOF
11449 if ac_fn_c_try_link "$LINENO"; then :
11450   lt_cv_irix_exported_symbol=yes
11451 else
11452   lt_cv_irix_exported_symbol=no
11453 fi
11454 rm -f core conftest.err conftest.$ac_objext \
11455     conftest$ac_exeext conftest.$ac_ext
11456            LDFLAGS="$save_LDFLAGS"
11457 fi
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11459 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11460         if test "$lt_cv_irix_exported_symbol" = yes; then
11461           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'
11462         fi
11463       else
11464         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'
11465         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'
11466       fi
11467       archive_cmds_need_lc='no'
11468       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11469       hardcode_libdir_separator=:
11470       inherit_rpath=yes
11471       link_all_deplibs=yes
11472       ;;
11473
11474     netbsd*)
11475       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11476         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11477       else
11478         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11479       fi
11480       hardcode_libdir_flag_spec='-R$libdir'
11481       hardcode_direct=yes
11482       hardcode_shlibpath_var=no
11483       ;;
11484
11485     newsos6)
11486       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11487       hardcode_direct=yes
11488       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11489       hardcode_libdir_separator=:
11490       hardcode_shlibpath_var=no
11491       ;;
11492
11493     *nto* | *qnx*)
11494       ;;
11495
11496     openbsd*)
11497       if test -f /usr/libexec/ld.so; then
11498         hardcode_direct=yes
11499         hardcode_shlibpath_var=no
11500         hardcode_direct_absolute=yes
11501         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11502           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11503           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11504           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11505           export_dynamic_flag_spec='${wl}-E'
11506         else
11507           case $host_os in
11508            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11509              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11510              hardcode_libdir_flag_spec='-R$libdir'
11511              ;;
11512            *)
11513              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11514              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11515              ;;
11516           esac
11517         fi
11518       else
11519         ld_shlibs=no
11520       fi
11521       ;;
11522
11523     os2*)
11524       hardcode_libdir_flag_spec='-L$libdir'
11525       hardcode_minus_L=yes
11526       allow_undefined_flag=unsupported
11527       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'
11528       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11529       ;;
11530
11531     osf3*)
11532       if test "$GCC" = yes; then
11533         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11534         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'
11535       else
11536         allow_undefined_flag=' -expect_unresolved \*'
11537         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'
11538       fi
11539       archive_cmds_need_lc='no'
11540       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11541       hardcode_libdir_separator=:
11542       ;;
11543
11544     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11545       if test "$GCC" = yes; then
11546         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11547         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'
11548         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11549       else
11550         allow_undefined_flag=' -expect_unresolved \*'
11551         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'
11552         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~
11553         $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'
11554
11555         # Both c and cxx compiler support -rpath directly
11556         hardcode_libdir_flag_spec='-rpath $libdir'
11557       fi
11558       archive_cmds_need_lc='no'
11559       hardcode_libdir_separator=:
11560       ;;
11561
11562     solaris*)
11563       no_undefined_flag=' -z defs'
11564       if test "$GCC" = yes; then
11565         wlarc='${wl}'
11566         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11567         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11568           $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'
11569       else
11570         case `$CC -V 2>&1` in
11571         *"Compilers 5.0"*)
11572           wlarc=''
11573           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11574           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11575           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11576           ;;
11577         *)
11578           wlarc='${wl}'
11579           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11580           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11581           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11582           ;;
11583         esac
11584       fi
11585       hardcode_libdir_flag_spec='-R$libdir'
11586       hardcode_shlibpath_var=no
11587       case $host_os in
11588       solaris2.[0-5] | solaris2.[0-5].*) ;;
11589       *)
11590         # The compiler driver will combine and reorder linker options,
11591         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11592         # but is careful enough not to reorder.
11593         # Supported since Solaris 2.6 (maybe 2.5.1?)
11594         if test "$GCC" = yes; then
11595           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11596         else
11597           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11598         fi
11599         ;;
11600       esac
11601       link_all_deplibs=yes
11602       ;;
11603
11604     sunos4*)
11605       if test "x$host_vendor" = xsequent; then
11606         # Use $CC to link under sequent, because it throws in some extra .o
11607         # files that make .init and .fini sections work.
11608         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11609       else
11610         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11611       fi
11612       hardcode_libdir_flag_spec='-L$libdir'
11613       hardcode_direct=yes
11614       hardcode_minus_L=yes
11615       hardcode_shlibpath_var=no
11616       ;;
11617
11618     sysv4)
11619       case $host_vendor in
11620         sni)
11621           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11622           hardcode_direct=yes # is this really true???
11623         ;;
11624         siemens)
11625           ## LD is ld it makes a PLAMLIB
11626           ## CC just makes a GrossModule.
11627           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11628           reload_cmds='$CC -r -o $output$reload_objs'
11629           hardcode_direct=no
11630         ;;
11631         motorola)
11632           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11633           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11634         ;;
11635       esac
11636       runpath_var='LD_RUN_PATH'
11637       hardcode_shlibpath_var=no
11638       ;;
11639
11640     sysv4.3*)
11641       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11642       hardcode_shlibpath_var=no
11643       export_dynamic_flag_spec='-Bexport'
11644       ;;
11645
11646     sysv4*MP*)
11647       if test -d /usr/nec; then
11648         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11649         hardcode_shlibpath_var=no
11650         runpath_var=LD_RUN_PATH
11651         hardcode_runpath_var=yes
11652         ld_shlibs=yes
11653       fi
11654       ;;
11655
11656     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11657       no_undefined_flag='${wl}-z,text'
11658       archive_cmds_need_lc=no
11659       hardcode_shlibpath_var=no
11660       runpath_var='LD_RUN_PATH'
11661
11662       if test "$GCC" = yes; then
11663         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11664         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11665       else
11666         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11667         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11668       fi
11669       ;;
11670
11671     sysv5* | sco3.2v5* | sco5v6*)
11672       # Note: We can NOT use -z defs as we might desire, because we do not
11673       # link with -lc, and that would cause any symbols used from libc to
11674       # always be unresolved, which means just about no library would
11675       # ever link correctly.  If we're not using GNU ld we use -z text
11676       # though, which does catch some bad symbols but isn't as heavy-handed
11677       # as -z defs.
11678       no_undefined_flag='${wl}-z,text'
11679       allow_undefined_flag='${wl}-z,nodefs'
11680       archive_cmds_need_lc=no
11681       hardcode_shlibpath_var=no
11682       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11683       hardcode_libdir_separator=':'
11684       link_all_deplibs=yes
11685       export_dynamic_flag_spec='${wl}-Bexport'
11686       runpath_var='LD_RUN_PATH'
11687
11688       if test "$GCC" = yes; then
11689         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11690         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11691       else
11692         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11693         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11694       fi
11695       ;;
11696
11697     uts4*)
11698       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11699       hardcode_libdir_flag_spec='-L$libdir'
11700       hardcode_shlibpath_var=no
11701       ;;
11702
11703     *)
11704       ld_shlibs=no
11705       ;;
11706     esac
11707
11708     if test x$host_vendor = xsni; then
11709       case $host in
11710       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11711         export_dynamic_flag_spec='${wl}-Blargedynsym'
11712         ;;
11713       esac
11714     fi
11715   fi
11716
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11718 $as_echo "$ld_shlibs" >&6; }
11719 test "$ld_shlibs" = no && can_build_shared=no
11720
11721 with_gnu_ld=$with_gnu_ld
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737 #
11738 # Do we need to explicitly link libc?
11739 #
11740 case "x$archive_cmds_need_lc" in
11741 x|xyes)
11742   # Assume -lc should be added
11743   archive_cmds_need_lc=yes
11744
11745   if test "$enable_shared" = yes && test "$GCC" = yes; then
11746     case $archive_cmds in
11747     *'~'*)
11748       # FIXME: we may have to deal with multi-command sequences.
11749       ;;
11750     '$CC '*)
11751       # Test whether the compiler implicitly links with -lc since on some
11752       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11753       # to ld, don't add -lc before -lgcc.
11754       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11755 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11756 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11757   $as_echo_n "(cached) " >&6
11758 else
11759   $RM conftest*
11760         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11761
11762         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11763   (eval $ac_compile) 2>&5
11764   ac_status=$?
11765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11766   test $ac_status = 0; } 2>conftest.err; then
11767           soname=conftest
11768           lib=conftest
11769           libobjs=conftest.$ac_objext
11770           deplibs=
11771           wl=$lt_prog_compiler_wl
11772           pic_flag=$lt_prog_compiler_pic
11773           compiler_flags=-v
11774           linker_flags=-v
11775           verstring=
11776           output_objdir=.
11777           libname=conftest
11778           lt_save_allow_undefined_flag=$allow_undefined_flag
11779           allow_undefined_flag=
11780           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11781   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11782   ac_status=$?
11783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11784   test $ac_status = 0; }
11785           then
11786             lt_cv_archive_cmds_need_lc=no
11787           else
11788             lt_cv_archive_cmds_need_lc=yes
11789           fi
11790           allow_undefined_flag=$lt_save_allow_undefined_flag
11791         else
11792           cat conftest.err 1>&5
11793         fi
11794         $RM conftest*
11795
11796 fi
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11798 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11799       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11800       ;;
11801     esac
11802   fi
11803   ;;
11804 esac
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11958 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11959
11960 if test "$GCC" = yes; then
11961   case $host_os in
11962     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11963     *) lt_awk_arg="/^libraries:/" ;;
11964   esac
11965   case $host_os in
11966     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11967     *) lt_sed_strip_eq="s,=/,/,g" ;;
11968   esac
11969   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11970   case $lt_search_path_spec in
11971   *\;*)
11972     # if the path contains ";" then we assume it to be the separator
11973     # otherwise default to the standard path separator (i.e. ":") - it is
11974     # assumed that no part of a normal pathname contains ";" but that should
11975     # okay in the real world where ";" in dirpaths is itself problematic.
11976     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11977     ;;
11978   *)
11979     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11980     ;;
11981   esac
11982   # Ok, now we have the path, separated by spaces, we can step through it
11983   # and add multilib dir if necessary.
11984   lt_tmp_lt_search_path_spec=
11985   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11986   for lt_sys_path in $lt_search_path_spec; do
11987     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11988       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11989     else
11990       test -d "$lt_sys_path" && \
11991         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11992     fi
11993   done
11994   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11995 BEGIN {RS=" "; FS="/|\n";} {
11996   lt_foo="";
11997   lt_count=0;
11998   for (lt_i = NF; lt_i > 0; lt_i--) {
11999     if ($lt_i != "" && $lt_i != ".") {
12000       if ($lt_i == "..") {
12001         lt_count++;
12002       } else {
12003         if (lt_count == 0) {
12004           lt_foo="/" $lt_i lt_foo;
12005         } else {
12006           lt_count--;
12007         }
12008       }
12009     }
12010   }
12011   if (lt_foo != "") { lt_freq[lt_foo]++; }
12012   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12013 }'`
12014   # AWK program above erroneously prepends '/' to C:/dos/paths
12015   # for these hosts.
12016   case $host_os in
12017     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12018       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12019   esac
12020   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12021 else
12022   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12023 fi
12024 library_names_spec=
12025 libname_spec='lib$name'
12026 soname_spec=
12027 shrext_cmds=".so"
12028 postinstall_cmds=
12029 postuninstall_cmds=
12030 finish_cmds=
12031 finish_eval=
12032 shlibpath_var=
12033 shlibpath_overrides_runpath=unknown
12034 version_type=none
12035 dynamic_linker="$host_os ld.so"
12036 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12037 need_lib_prefix=unknown
12038 hardcode_into_libs=no
12039
12040 # when you set need_version to no, make sure it does not cause -set_version
12041 # flags to be left without arguments
12042 need_version=unknown
12043
12044 case $host_os in
12045 aix3*)
12046   version_type=linux # correct to gnu/linux during the next big refactor
12047   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12048   shlibpath_var=LIBPATH
12049
12050   # AIX 3 has no versioning support, so we append a major version to the name.
12051   soname_spec='${libname}${release}${shared_ext}$major'
12052   ;;
12053
12054 aix[4-9]*)
12055   version_type=linux # correct to gnu/linux during the next big refactor
12056   need_lib_prefix=no
12057   need_version=no
12058   hardcode_into_libs=yes
12059   if test "$host_cpu" = ia64; then
12060     # AIX 5 supports IA64
12061     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12062     shlibpath_var=LD_LIBRARY_PATH
12063   else
12064     # With GCC up to 2.95.x, collect2 would create an import file
12065     # for dependence libraries.  The import file would start with
12066     # the line `#! .'.  This would cause the generated library to
12067     # depend on `.', always an invalid library.  This was fixed in
12068     # development snapshots of GCC prior to 3.0.
12069     case $host_os in
12070       aix4 | aix4.[01] | aix4.[01].*)
12071       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12072            echo ' yes '
12073            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12074         :
12075       else
12076         can_build_shared=no
12077       fi
12078       ;;
12079     esac
12080     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12081     # soname into executable. Probably we can add versioning support to
12082     # collect2, so additional links can be useful in future.
12083     if test "$aix_use_runtimelinking" = yes; then
12084       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12085       # instead of lib<name>.a to let people know that these are not
12086       # typical AIX shared libraries.
12087       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12088     else
12089       # We preserve .a as extension for shared libraries through AIX4.2
12090       # and later when we are not doing run time linking.
12091       library_names_spec='${libname}${release}.a $libname.a'
12092       soname_spec='${libname}${release}${shared_ext}$major'
12093     fi
12094     shlibpath_var=LIBPATH
12095   fi
12096   ;;
12097
12098 amigaos*)
12099   case $host_cpu in
12100   powerpc)
12101     # Since July 2007 AmigaOS4 officially supports .so libraries.
12102     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12104     ;;
12105   m68k)
12106     library_names_spec='$libname.ixlibrary $libname.a'
12107     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12108     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'
12109     ;;
12110   esac
12111   ;;
12112
12113 beos*)
12114   library_names_spec='${libname}${shared_ext}'
12115   dynamic_linker="$host_os ld.so"
12116   shlibpath_var=LIBRARY_PATH
12117   ;;
12118
12119 bsdi[45]*)
12120   version_type=linux # correct to gnu/linux during the next big refactor
12121   need_version=no
12122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12123   soname_spec='${libname}${release}${shared_ext}$major'
12124   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12125   shlibpath_var=LD_LIBRARY_PATH
12126   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12127   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12128   # the default ld.so.conf also contains /usr/contrib/lib and
12129   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12130   # libtool to hard-code these into programs
12131   ;;
12132
12133 cygwin* | mingw* | pw32* | cegcc*)
12134   version_type=windows
12135   shrext_cmds=".dll"
12136   need_version=no
12137   need_lib_prefix=no
12138
12139   case $GCC,$cc_basename in
12140   yes,*)
12141     # gcc
12142     library_names_spec='$libname.dll.a'
12143     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12144     postinstall_cmds='base_file=`basename \${file}`~
12145       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12146       dldir=$destdir/`dirname \$dlpath`~
12147       test -d \$dldir || mkdir -p \$dldir~
12148       $install_prog $dir/$dlname \$dldir/$dlname~
12149       chmod a+x \$dldir/$dlname~
12150       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12151         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12152       fi'
12153     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12154       dlpath=$dir/\$dldll~
12155        $RM \$dlpath'
12156     shlibpath_overrides_runpath=yes
12157
12158     case $host_os in
12159     cygwin*)
12160       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12161       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12162
12163       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12164       ;;
12165     mingw* | cegcc*)
12166       # MinGW DLLs use traditional 'lib' prefix
12167       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12168       ;;
12169     pw32*)
12170       # pw32 DLLs use 'pw' prefix rather than 'lib'
12171       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12172       ;;
12173     esac
12174     dynamic_linker='Win32 ld.exe'
12175     ;;
12176
12177   *,cl*)
12178     # Native MSVC
12179     libname_spec='$name'
12180     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12181     library_names_spec='${libname}.dll.lib'
12182
12183     case $build_os in
12184     mingw*)
12185       sys_lib_search_path_spec=
12186       lt_save_ifs=$IFS
12187       IFS=';'
12188       for lt_path in $LIB
12189       do
12190         IFS=$lt_save_ifs
12191         # Let DOS variable expansion print the short 8.3 style file name.
12192         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12193         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12194       done
12195       IFS=$lt_save_ifs
12196       # Convert to MSYS style.
12197       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12198       ;;
12199     cygwin*)
12200       # Convert to unix form, then to dos form, then back to unix form
12201       # but this time dos style (no spaces!) so that the unix form looks
12202       # like /cygdrive/c/PROGRA~1:/cygdr...
12203       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12204       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12205       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12206       ;;
12207     *)
12208       sys_lib_search_path_spec="$LIB"
12209       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12210         # It is most probably a Windows format PATH.
12211         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12212       else
12213         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12214       fi
12215       # FIXME: find the short name or the path components, as spaces are
12216       # common. (e.g. "Program Files" -> "PROGRA~1")
12217       ;;
12218     esac
12219
12220     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12221     postinstall_cmds='base_file=`basename \${file}`~
12222       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12223       dldir=$destdir/`dirname \$dlpath`~
12224       test -d \$dldir || mkdir -p \$dldir~
12225       $install_prog $dir/$dlname \$dldir/$dlname'
12226     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12227       dlpath=$dir/\$dldll~
12228        $RM \$dlpath'
12229     shlibpath_overrides_runpath=yes
12230     dynamic_linker='Win32 link.exe'
12231     ;;
12232
12233   *)
12234     # Assume MSVC wrapper
12235     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12236     dynamic_linker='Win32 ld.exe'
12237     ;;
12238   esac
12239   # FIXME: first we should search . and the directory the executable is in
12240   shlibpath_var=PATH
12241   ;;
12242
12243 darwin* | rhapsody*)
12244   dynamic_linker="$host_os dyld"
12245   version_type=darwin
12246   need_lib_prefix=no
12247   need_version=no
12248   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12249   soname_spec='${libname}${release}${major}$shared_ext'
12250   shlibpath_overrides_runpath=yes
12251   shlibpath_var=DYLD_LIBRARY_PATH
12252   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12253
12254   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12255   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12256   ;;
12257
12258 dgux*)
12259   version_type=linux # correct to gnu/linux during the next big refactor
12260   need_lib_prefix=no
12261   need_version=no
12262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12263   soname_spec='${libname}${release}${shared_ext}$major'
12264   shlibpath_var=LD_LIBRARY_PATH
12265   ;;
12266
12267 freebsd* | dragonfly*)
12268   # DragonFly does not have aout.  When/if they implement a new
12269   # versioning mechanism, adjust this.
12270   if test -x /usr/bin/objformat; then
12271     objformat=`/usr/bin/objformat`
12272   else
12273     case $host_os in
12274     freebsd[23].*) objformat=aout ;;
12275     *) objformat=elf ;;
12276     esac
12277   fi
12278   version_type=freebsd-$objformat
12279   case $version_type in
12280     freebsd-elf*)
12281       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12282       need_version=no
12283       need_lib_prefix=no
12284       ;;
12285     freebsd-*)
12286       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12287       need_version=yes
12288       ;;
12289   esac
12290   shlibpath_var=LD_LIBRARY_PATH
12291   case $host_os in
12292   freebsd2.*)
12293     shlibpath_overrides_runpath=yes
12294     ;;
12295   freebsd3.[01]* | freebsdelf3.[01]*)
12296     shlibpath_overrides_runpath=yes
12297     hardcode_into_libs=yes
12298     ;;
12299   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12300   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12301     shlibpath_overrides_runpath=no
12302     hardcode_into_libs=yes
12303     ;;
12304   *) # from 4.6 on, and DragonFly
12305     shlibpath_overrides_runpath=yes
12306     hardcode_into_libs=yes
12307     ;;
12308   esac
12309   ;;
12310
12311 gnu*)
12312   version_type=linux # correct to gnu/linux during the next big refactor
12313   need_lib_prefix=no
12314   need_version=no
12315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12316   soname_spec='${libname}${release}${shared_ext}$major'
12317   shlibpath_var=LD_LIBRARY_PATH
12318   shlibpath_overrides_runpath=no
12319   hardcode_into_libs=yes
12320   ;;
12321
12322 haiku*)
12323   version_type=linux # correct to gnu/linux during the next big refactor
12324   need_lib_prefix=no
12325   need_version=no
12326   dynamic_linker="$host_os runtime_loader"
12327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12328   soname_spec='${libname}${release}${shared_ext}$major'
12329   shlibpath_var=LIBRARY_PATH
12330   shlibpath_overrides_runpath=yes
12331   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12332   hardcode_into_libs=yes
12333   ;;
12334
12335 hpux9* | hpux10* | hpux11*)
12336   # Give a soname corresponding to the major version so that dld.sl refuses to
12337   # link against other versions.
12338   version_type=sunos
12339   need_lib_prefix=no
12340   need_version=no
12341   case $host_cpu in
12342   ia64*)
12343     shrext_cmds='.so'
12344     hardcode_into_libs=yes
12345     dynamic_linker="$host_os dld.so"
12346     shlibpath_var=LD_LIBRARY_PATH
12347     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12348     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12349     soname_spec='${libname}${release}${shared_ext}$major'
12350     if test "X$HPUX_IA64_MODE" = X32; then
12351       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12352     else
12353       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12354     fi
12355     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12356     ;;
12357   hppa*64*)
12358     shrext_cmds='.sl'
12359     hardcode_into_libs=yes
12360     dynamic_linker="$host_os dld.sl"
12361     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12362     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12364     soname_spec='${libname}${release}${shared_ext}$major'
12365     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12366     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12367     ;;
12368   *)
12369     shrext_cmds='.sl'
12370     dynamic_linker="$host_os dld.sl"
12371     shlibpath_var=SHLIB_PATH
12372     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12373     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12374     soname_spec='${libname}${release}${shared_ext}$major'
12375     ;;
12376   esac
12377   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12378   postinstall_cmds='chmod 555 $lib'
12379   # or fails outright, so override atomically:
12380   install_override_mode=555
12381   ;;
12382
12383 interix[3-9]*)
12384   version_type=linux # correct to gnu/linux during the next big refactor
12385   need_lib_prefix=no
12386   need_version=no
12387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12388   soname_spec='${libname}${release}${shared_ext}$major'
12389   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12390   shlibpath_var=LD_LIBRARY_PATH
12391   shlibpath_overrides_runpath=no
12392   hardcode_into_libs=yes
12393   ;;
12394
12395 irix5* | irix6* | nonstopux*)
12396   case $host_os in
12397     nonstopux*) version_type=nonstopux ;;
12398     *)
12399         if test "$lt_cv_prog_gnu_ld" = yes; then
12400                 version_type=linux # correct to gnu/linux during the next big refactor
12401         else
12402                 version_type=irix
12403         fi ;;
12404   esac
12405   need_lib_prefix=no
12406   need_version=no
12407   soname_spec='${libname}${release}${shared_ext}$major'
12408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12409   case $host_os in
12410   irix5* | nonstopux*)
12411     libsuff= shlibsuff=
12412     ;;
12413   *)
12414     case $LD in # libtool.m4 will add one of these switches to LD
12415     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12416       libsuff= shlibsuff= libmagic=32-bit;;
12417     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12418       libsuff=32 shlibsuff=N32 libmagic=N32;;
12419     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12420       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12421     *) libsuff= shlibsuff= libmagic=never-match;;
12422     esac
12423     ;;
12424   esac
12425   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12426   shlibpath_overrides_runpath=no
12427   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12428   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12429   hardcode_into_libs=yes
12430   ;;
12431
12432 # No shared lib support for Linux oldld, aout, or coff.
12433 linux*oldld* | linux*aout* | linux*coff*)
12434   dynamic_linker=no
12435   ;;
12436
12437 # This must be glibc/ELF.
12438 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12439   version_type=linux # correct to gnu/linux during the next big refactor
12440   need_lib_prefix=no
12441   need_version=no
12442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12443   soname_spec='${libname}${release}${shared_ext}$major'
12444   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12445   shlibpath_var=LD_LIBRARY_PATH
12446   shlibpath_overrides_runpath=no
12447
12448   # Some binutils ld are patched to set DT_RUNPATH
12449   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12450   $as_echo_n "(cached) " >&6
12451 else
12452   lt_cv_shlibpath_overrides_runpath=no
12453     save_LDFLAGS=$LDFLAGS
12454     save_libdir=$libdir
12455     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12456          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12457     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458 /* end confdefs.h.  */
12459
12460 int
12461 main ()
12462 {
12463
12464   ;
12465   return 0;
12466 }
12467 _ACEOF
12468 if ac_fn_c_try_link "$LINENO"; then :
12469   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12470   lt_cv_shlibpath_overrides_runpath=yes
12471 fi
12472 fi
12473 rm -f core conftest.err conftest.$ac_objext \
12474     conftest$ac_exeext conftest.$ac_ext
12475     LDFLAGS=$save_LDFLAGS
12476     libdir=$save_libdir
12477
12478 fi
12479
12480   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12481
12482   # This implies no fast_install, which is unacceptable.
12483   # Some rework will be needed to allow for fast_install
12484   # before this can be enabled.
12485   hardcode_into_libs=yes
12486
12487   # Add ABI-specific directories to the system library path.
12488   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12489
12490   # Append ld.so.conf contents to the search path
12491   if test -f /etc/ld.so.conf; then
12492     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' ' '`
12493     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12494
12495   fi
12496
12497   # We used to test for /lib/ld.so.1 and disable shared libraries on
12498   # powerpc, because MkLinux only supported shared libraries with the
12499   # GNU dynamic linker.  Since this was broken with cross compilers,
12500   # most powerpc-linux boxes support dynamic linking these days and
12501   # people can always --disable-shared, the test was removed, and we
12502   # assume the GNU/Linux dynamic linker is in use.
12503   dynamic_linker='GNU/Linux ld.so'
12504   ;;
12505
12506 netbsd*)
12507   version_type=sunos
12508   need_lib_prefix=no
12509   need_version=no
12510   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12511     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12512     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12513     dynamic_linker='NetBSD (a.out) ld.so'
12514   else
12515     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12516     soname_spec='${libname}${release}${shared_ext}$major'
12517     dynamic_linker='NetBSD ld.elf_so'
12518   fi
12519   shlibpath_var=LD_LIBRARY_PATH
12520   shlibpath_overrides_runpath=yes
12521   hardcode_into_libs=yes
12522   ;;
12523
12524 newsos6)
12525   version_type=linux # correct to gnu/linux during the next big refactor
12526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12527   shlibpath_var=LD_LIBRARY_PATH
12528   shlibpath_overrides_runpath=yes
12529   ;;
12530
12531 *nto* | *qnx*)
12532   version_type=qnx
12533   need_lib_prefix=no
12534   need_version=no
12535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12536   soname_spec='${libname}${release}${shared_ext}$major'
12537   shlibpath_var=LD_LIBRARY_PATH
12538   shlibpath_overrides_runpath=no
12539   hardcode_into_libs=yes
12540   dynamic_linker='ldqnx.so'
12541   ;;
12542
12543 openbsd*)
12544   version_type=sunos
12545   sys_lib_dlsearch_path_spec="/usr/lib"
12546   need_lib_prefix=no
12547   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12548   case $host_os in
12549     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12550     *)                          need_version=no  ;;
12551   esac
12552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12553   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12554   shlibpath_var=LD_LIBRARY_PATH
12555   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12556     case $host_os in
12557       openbsd2.[89] | openbsd2.[89].*)
12558         shlibpath_overrides_runpath=no
12559         ;;
12560       *)
12561         shlibpath_overrides_runpath=yes
12562         ;;
12563       esac
12564   else
12565     shlibpath_overrides_runpath=yes
12566   fi
12567   ;;
12568
12569 os2*)
12570   libname_spec='$name'
12571   shrext_cmds=".dll"
12572   need_lib_prefix=no
12573   library_names_spec='$libname${shared_ext} $libname.a'
12574   dynamic_linker='OS/2 ld.exe'
12575   shlibpath_var=LIBPATH
12576   ;;
12577
12578 osf3* | osf4* | osf5*)
12579   version_type=osf
12580   need_lib_prefix=no
12581   need_version=no
12582   soname_spec='${libname}${release}${shared_ext}$major'
12583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12584   shlibpath_var=LD_LIBRARY_PATH
12585   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12586   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12587   ;;
12588
12589 rdos*)
12590   dynamic_linker=no
12591   ;;
12592
12593 solaris*)
12594   version_type=linux # correct to gnu/linux during the next big refactor
12595   need_lib_prefix=no
12596   need_version=no
12597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12598   soname_spec='${libname}${release}${shared_ext}$major'
12599   shlibpath_var=LD_LIBRARY_PATH
12600   shlibpath_overrides_runpath=yes
12601   hardcode_into_libs=yes
12602   # ldd complains unless libraries are executable
12603   postinstall_cmds='chmod +x $lib'
12604   ;;
12605
12606 sunos4*)
12607   version_type=sunos
12608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12609   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12610   shlibpath_var=LD_LIBRARY_PATH
12611   shlibpath_overrides_runpath=yes
12612   if test "$with_gnu_ld" = yes; then
12613     need_lib_prefix=no
12614   fi
12615   need_version=yes
12616   ;;
12617
12618 sysv4 | sysv4.3*)
12619   version_type=linux # correct to gnu/linux during the next big refactor
12620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12621   soname_spec='${libname}${release}${shared_ext}$major'
12622   shlibpath_var=LD_LIBRARY_PATH
12623   case $host_vendor in
12624     sni)
12625       shlibpath_overrides_runpath=no
12626       need_lib_prefix=no
12627       runpath_var=LD_RUN_PATH
12628       ;;
12629     siemens)
12630       need_lib_prefix=no
12631       ;;
12632     motorola)
12633       need_lib_prefix=no
12634       need_version=no
12635       shlibpath_overrides_runpath=no
12636       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12637       ;;
12638   esac
12639   ;;
12640
12641 sysv4*MP*)
12642   if test -d /usr/nec ;then
12643     version_type=linux # correct to gnu/linux during the next big refactor
12644     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12645     soname_spec='$libname${shared_ext}.$major'
12646     shlibpath_var=LD_LIBRARY_PATH
12647   fi
12648   ;;
12649
12650 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12651   version_type=freebsd-elf
12652   need_lib_prefix=no
12653   need_version=no
12654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12655   soname_spec='${libname}${release}${shared_ext}$major'
12656   shlibpath_var=LD_LIBRARY_PATH
12657   shlibpath_overrides_runpath=yes
12658   hardcode_into_libs=yes
12659   if test "$with_gnu_ld" = yes; then
12660     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12661   else
12662     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12663     case $host_os in
12664       sco3.2v5*)
12665         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12666         ;;
12667     esac
12668   fi
12669   sys_lib_dlsearch_path_spec='/usr/lib'
12670   ;;
12671
12672 tpf*)
12673   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12674   version_type=linux # correct to gnu/linux during the next big refactor
12675   need_lib_prefix=no
12676   need_version=no
12677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12678   shlibpath_var=LD_LIBRARY_PATH
12679   shlibpath_overrides_runpath=no
12680   hardcode_into_libs=yes
12681   ;;
12682
12683 uts4*)
12684   version_type=linux # correct to gnu/linux during the next big refactor
12685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12686   soname_spec='${libname}${release}${shared_ext}$major'
12687   shlibpath_var=LD_LIBRARY_PATH
12688   ;;
12689
12690 *)
12691   dynamic_linker=no
12692   ;;
12693 esac
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12695 $as_echo "$dynamic_linker" >&6; }
12696 test "$dynamic_linker" = no && can_build_shared=no
12697
12698 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12699 if test "$GCC" = yes; then
12700   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12701 fi
12702
12703 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12704   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12705 fi
12706 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12707   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12708 fi
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12802 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12803 hardcode_action=
12804 if test -n "$hardcode_libdir_flag_spec" ||
12805    test -n "$runpath_var" ||
12806    test "X$hardcode_automatic" = "Xyes" ; then
12807
12808   # We can hardcode non-existent directories.
12809   if test "$hardcode_direct" != no &&
12810      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12811      # have to relink, otherwise we might link with an installed library
12812      # when we should be linking with a yet-to-be-installed one
12813      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12814      test "$hardcode_minus_L" != no; then
12815     # Linking always hardcodes the temporary library directory.
12816     hardcode_action=relink
12817   else
12818     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12819     hardcode_action=immediate
12820   fi
12821 else
12822   # We cannot hardcode anything, or else we can only hardcode existing
12823   # directories.
12824   hardcode_action=unsupported
12825 fi
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12827 $as_echo "$hardcode_action" >&6; }
12828
12829 if test "$hardcode_action" = relink ||
12830    test "$inherit_rpath" = yes; then
12831   # Fast installation is not supported
12832   enable_fast_install=no
12833 elif test "$shlibpath_overrides_runpath" = yes ||
12834      test "$enable_shared" = no; then
12835   # Fast installation is not necessary
12836   enable_fast_install=needless
12837 fi
12838
12839
12840
12841
12842
12843
12844   if test "x$enable_dlopen" != xyes; then
12845   enable_dlopen=unknown
12846   enable_dlopen_self=unknown
12847   enable_dlopen_self_static=unknown
12848 else
12849   lt_cv_dlopen=no
12850   lt_cv_dlopen_libs=
12851
12852   case $host_os in
12853   beos*)
12854     lt_cv_dlopen="load_add_on"
12855     lt_cv_dlopen_libs=
12856     lt_cv_dlopen_self=yes
12857     ;;
12858
12859   mingw* | pw32* | cegcc*)
12860     lt_cv_dlopen="LoadLibrary"
12861     lt_cv_dlopen_libs=
12862     ;;
12863
12864   cygwin*)
12865     lt_cv_dlopen="dlopen"
12866     lt_cv_dlopen_libs=
12867     ;;
12868
12869   darwin*)
12870   # if libdl is installed we need to link against it
12871     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12872 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12873 if ${ac_cv_lib_dl_dlopen+:} false; then :
12874   $as_echo_n "(cached) " >&6
12875 else
12876   ac_check_lib_save_LIBS=$LIBS
12877 LIBS="-ldl  $LIBS"
12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h.  */
12880
12881 /* Override any GCC internal prototype to avoid an error.
12882    Use char because int might match the return type of a GCC
12883    builtin and then its argument prototype would still apply.  */
12884 #ifdef __cplusplus
12885 extern "C"
12886 #endif
12887 char dlopen ();
12888 int
12889 main ()
12890 {
12891 return dlopen ();
12892   ;
12893   return 0;
12894 }
12895 _ACEOF
12896 if ac_fn_c_try_link "$LINENO"; then :
12897   ac_cv_lib_dl_dlopen=yes
12898 else
12899   ac_cv_lib_dl_dlopen=no
12900 fi
12901 rm -f core conftest.err conftest.$ac_objext \
12902     conftest$ac_exeext conftest.$ac_ext
12903 LIBS=$ac_check_lib_save_LIBS
12904 fi
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12906 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12907 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12908   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12909 else
12910
12911     lt_cv_dlopen="dyld"
12912     lt_cv_dlopen_libs=
12913     lt_cv_dlopen_self=yes
12914
12915 fi
12916
12917     ;;
12918
12919   *)
12920     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12921 if test "x$ac_cv_func_shl_load" = xyes; then :
12922   lt_cv_dlopen="shl_load"
12923 else
12924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12925 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12926 if ${ac_cv_lib_dld_shl_load+:} false; then :
12927   $as_echo_n "(cached) " >&6
12928 else
12929   ac_check_lib_save_LIBS=$LIBS
12930 LIBS="-ldld  $LIBS"
12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h.  */
12933
12934 /* Override any GCC internal prototype to avoid an error.
12935    Use char because int might match the return type of a GCC
12936    builtin and then its argument prototype would still apply.  */
12937 #ifdef __cplusplus
12938 extern "C"
12939 #endif
12940 char shl_load ();
12941 int
12942 main ()
12943 {
12944 return shl_load ();
12945   ;
12946   return 0;
12947 }
12948 _ACEOF
12949 if ac_fn_c_try_link "$LINENO"; then :
12950   ac_cv_lib_dld_shl_load=yes
12951 else
12952   ac_cv_lib_dld_shl_load=no
12953 fi
12954 rm -f core conftest.err conftest.$ac_objext \
12955     conftest$ac_exeext conftest.$ac_ext
12956 LIBS=$ac_check_lib_save_LIBS
12957 fi
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12959 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12960 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12961   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12962 else
12963   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12964 if test "x$ac_cv_func_dlopen" = xyes; then :
12965   lt_cv_dlopen="dlopen"
12966 else
12967   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12968 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12969 if ${ac_cv_lib_dl_dlopen+:} false; then :
12970   $as_echo_n "(cached) " >&6
12971 else
12972   ac_check_lib_save_LIBS=$LIBS
12973 LIBS="-ldl  $LIBS"
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h.  */
12976
12977 /* Override any GCC internal prototype to avoid an error.
12978    Use char because int might match the return type of a GCC
12979    builtin and then its argument prototype would still apply.  */
12980 #ifdef __cplusplus
12981 extern "C"
12982 #endif
12983 char dlopen ();
12984 int
12985 main ()
12986 {
12987 return dlopen ();
12988   ;
12989   return 0;
12990 }
12991 _ACEOF
12992 if ac_fn_c_try_link "$LINENO"; then :
12993   ac_cv_lib_dl_dlopen=yes
12994 else
12995   ac_cv_lib_dl_dlopen=no
12996 fi
12997 rm -f core conftest.err conftest.$ac_objext \
12998     conftest$ac_exeext conftest.$ac_ext
12999 LIBS=$ac_check_lib_save_LIBS
13000 fi
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13002 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13003 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13004   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13005 else
13006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13007 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13008 if ${ac_cv_lib_svld_dlopen+:} false; then :
13009   $as_echo_n "(cached) " >&6
13010 else
13011   ac_check_lib_save_LIBS=$LIBS
13012 LIBS="-lsvld  $LIBS"
13013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h.  */
13015
13016 /* Override any GCC internal prototype to avoid an error.
13017    Use char because int might match the return type of a GCC
13018    builtin and then its argument prototype would still apply.  */
13019 #ifdef __cplusplus
13020 extern "C"
13021 #endif
13022 char dlopen ();
13023 int
13024 main ()
13025 {
13026 return dlopen ();
13027   ;
13028   return 0;
13029 }
13030 _ACEOF
13031 if ac_fn_c_try_link "$LINENO"; then :
13032   ac_cv_lib_svld_dlopen=yes
13033 else
13034   ac_cv_lib_svld_dlopen=no
13035 fi
13036 rm -f core conftest.err conftest.$ac_objext \
13037     conftest$ac_exeext conftest.$ac_ext
13038 LIBS=$ac_check_lib_save_LIBS
13039 fi
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13041 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13042 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13043   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13044 else
13045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13046 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13047 if ${ac_cv_lib_dld_dld_link+:} false; then :
13048   $as_echo_n "(cached) " >&6
13049 else
13050   ac_check_lib_save_LIBS=$LIBS
13051 LIBS="-ldld  $LIBS"
13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h.  */
13054
13055 /* Override any GCC internal prototype to avoid an error.
13056    Use char because int might match the return type of a GCC
13057    builtin and then its argument prototype would still apply.  */
13058 #ifdef __cplusplus
13059 extern "C"
13060 #endif
13061 char dld_link ();
13062 int
13063 main ()
13064 {
13065 return dld_link ();
13066   ;
13067   return 0;
13068 }
13069 _ACEOF
13070 if ac_fn_c_try_link "$LINENO"; then :
13071   ac_cv_lib_dld_dld_link=yes
13072 else
13073   ac_cv_lib_dld_dld_link=no
13074 fi
13075 rm -f core conftest.err conftest.$ac_objext \
13076     conftest$ac_exeext conftest.$ac_ext
13077 LIBS=$ac_check_lib_save_LIBS
13078 fi
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13080 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13081 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13082   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13083 fi
13084
13085
13086 fi
13087
13088
13089 fi
13090
13091
13092 fi
13093
13094
13095 fi
13096
13097
13098 fi
13099
13100     ;;
13101   esac
13102
13103   if test "x$lt_cv_dlopen" != xno; then
13104     enable_dlopen=yes
13105   else
13106     enable_dlopen=no
13107   fi
13108
13109   case $lt_cv_dlopen in
13110   dlopen)
13111     save_CPPFLAGS="$CPPFLAGS"
13112     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13113
13114     save_LDFLAGS="$LDFLAGS"
13115     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13116
13117     save_LIBS="$LIBS"
13118     LIBS="$lt_cv_dlopen_libs $LIBS"
13119
13120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13121 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13122 if ${lt_cv_dlopen_self+:} false; then :
13123   $as_echo_n "(cached) " >&6
13124 else
13125           if test "$cross_compiling" = yes; then :
13126   lt_cv_dlopen_self=cross
13127 else
13128   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13129   lt_status=$lt_dlunknown
13130   cat > conftest.$ac_ext <<_LT_EOF
13131 #line $LINENO "configure"
13132 #include "confdefs.h"
13133
13134 #if HAVE_DLFCN_H
13135 #include <dlfcn.h>
13136 #endif
13137
13138 #include <stdio.h>
13139
13140 #ifdef RTLD_GLOBAL
13141 #  define LT_DLGLOBAL           RTLD_GLOBAL
13142 #else
13143 #  ifdef DL_GLOBAL
13144 #    define LT_DLGLOBAL         DL_GLOBAL
13145 #  else
13146 #    define LT_DLGLOBAL         0
13147 #  endif
13148 #endif
13149
13150 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13151    find out it does not work in some platform. */
13152 #ifndef LT_DLLAZY_OR_NOW
13153 #  ifdef RTLD_LAZY
13154 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13155 #  else
13156 #    ifdef DL_LAZY
13157 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13158 #    else
13159 #      ifdef RTLD_NOW
13160 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13161 #      else
13162 #        ifdef DL_NOW
13163 #          define LT_DLLAZY_OR_NOW      DL_NOW
13164 #        else
13165 #          define LT_DLLAZY_OR_NOW      0
13166 #        endif
13167 #      endif
13168 #    endif
13169 #  endif
13170 #endif
13171
13172 /* When -fvisbility=hidden is used, assume the code has been annotated
13173    correspondingly for the symbols needed.  */
13174 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13175 int fnord () __attribute__((visibility("default")));
13176 #endif
13177
13178 int fnord () { return 42; }
13179 int main ()
13180 {
13181   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13182   int status = $lt_dlunknown;
13183
13184   if (self)
13185     {
13186       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13187       else
13188         {
13189           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13190           else puts (dlerror ());
13191         }
13192       /* dlclose (self); */
13193     }
13194   else
13195     puts (dlerror ());
13196
13197   return status;
13198 }
13199 _LT_EOF
13200   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13201   (eval $ac_link) 2>&5
13202   ac_status=$?
13203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13204   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13205     (./conftest; exit; ) >&5 2>/dev/null
13206     lt_status=$?
13207     case x$lt_status in
13208       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13209       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13210       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13211     esac
13212   else :
13213     # compilation failed
13214     lt_cv_dlopen_self=no
13215   fi
13216 fi
13217 rm -fr conftest*
13218
13219
13220 fi
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13222 $as_echo "$lt_cv_dlopen_self" >&6; }
13223
13224     if test "x$lt_cv_dlopen_self" = xyes; then
13225       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13226       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13227 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13228 if ${lt_cv_dlopen_self_static+:} false; then :
13229   $as_echo_n "(cached) " >&6
13230 else
13231           if test "$cross_compiling" = yes; then :
13232   lt_cv_dlopen_self_static=cross
13233 else
13234   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13235   lt_status=$lt_dlunknown
13236   cat > conftest.$ac_ext <<_LT_EOF
13237 #line $LINENO "configure"
13238 #include "confdefs.h"
13239
13240 #if HAVE_DLFCN_H
13241 #include <dlfcn.h>
13242 #endif
13243
13244 #include <stdio.h>
13245
13246 #ifdef RTLD_GLOBAL
13247 #  define LT_DLGLOBAL           RTLD_GLOBAL
13248 #else
13249 #  ifdef DL_GLOBAL
13250 #    define LT_DLGLOBAL         DL_GLOBAL
13251 #  else
13252 #    define LT_DLGLOBAL         0
13253 #  endif
13254 #endif
13255
13256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13257    find out it does not work in some platform. */
13258 #ifndef LT_DLLAZY_OR_NOW
13259 #  ifdef RTLD_LAZY
13260 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13261 #  else
13262 #    ifdef DL_LAZY
13263 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13264 #    else
13265 #      ifdef RTLD_NOW
13266 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13267 #      else
13268 #        ifdef DL_NOW
13269 #          define LT_DLLAZY_OR_NOW      DL_NOW
13270 #        else
13271 #          define LT_DLLAZY_OR_NOW      0
13272 #        endif
13273 #      endif
13274 #    endif
13275 #  endif
13276 #endif
13277
13278 /* When -fvisbility=hidden is used, assume the code has been annotated
13279    correspondingly for the symbols needed.  */
13280 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13281 int fnord () __attribute__((visibility("default")));
13282 #endif
13283
13284 int fnord () { return 42; }
13285 int main ()
13286 {
13287   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13288   int status = $lt_dlunknown;
13289
13290   if (self)
13291     {
13292       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13293       else
13294         {
13295           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13296           else puts (dlerror ());
13297         }
13298       /* dlclose (self); */
13299     }
13300   else
13301     puts (dlerror ());
13302
13303   return status;
13304 }
13305 _LT_EOF
13306   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13307   (eval $ac_link) 2>&5
13308   ac_status=$?
13309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13310   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13311     (./conftest; exit; ) >&5 2>/dev/null
13312     lt_status=$?
13313     case x$lt_status in
13314       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13315       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13316       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13317     esac
13318   else :
13319     # compilation failed
13320     lt_cv_dlopen_self_static=no
13321   fi
13322 fi
13323 rm -fr conftest*
13324
13325
13326 fi
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13328 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13329     fi
13330
13331     CPPFLAGS="$save_CPPFLAGS"
13332     LDFLAGS="$save_LDFLAGS"
13333     LIBS="$save_LIBS"
13334     ;;
13335   esac
13336
13337   case $lt_cv_dlopen_self in
13338   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13339   *) enable_dlopen_self=unknown ;;
13340   esac
13341
13342   case $lt_cv_dlopen_self_static in
13343   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13344   *) enable_dlopen_self_static=unknown ;;
13345   esac
13346 fi
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364 striplib=
13365 old_striplib=
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13367 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13368 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13369   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13370   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13372 $as_echo "yes" >&6; }
13373 else
13374 # FIXME - insert some real tests, host_os isn't really good enough
13375   case $host_os in
13376   darwin*)
13377     if test -n "$STRIP" ; then
13378       striplib="$STRIP -x"
13379       old_striplib="$STRIP -S"
13380       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13381 $as_echo "yes" >&6; }
13382     else
13383       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13384 $as_echo "no" >&6; }
13385     fi
13386     ;;
13387   *)
13388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389 $as_echo "no" >&6; }
13390     ;;
13391   esac
13392 fi
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405   # Report which library types will actually be built
13406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13407 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13409 $as_echo "$can_build_shared" >&6; }
13410
13411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13412 $as_echo_n "checking whether to build shared libraries... " >&6; }
13413   test "$can_build_shared" = "no" && enable_shared=no
13414
13415   # On AIX, shared libraries and static libraries use the same namespace, and
13416   # are all built from PIC.
13417   case $host_os in
13418   aix3*)
13419     test "$enable_shared" = yes && enable_static=no
13420     if test -n "$RANLIB"; then
13421       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13422       postinstall_cmds='$RANLIB $lib'
13423     fi
13424     ;;
13425
13426   aix[4-9]*)
13427     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13428       test "$enable_shared" = yes && enable_static=no
13429     fi
13430     ;;
13431   esac
13432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13433 $as_echo "$enable_shared" >&6; }
13434
13435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13436 $as_echo_n "checking whether to build static libraries... " >&6; }
13437   # Make sure either enable_shared or enable_static is yes.
13438   test "$enable_shared" = yes || enable_static=yes
13439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13440 $as_echo "$enable_static" >&6; }
13441
13442
13443
13444
13445 fi
13446 ac_ext=c
13447 ac_cpp='$CPP $CPPFLAGS'
13448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13451
13452 CC="$lt_save_CC"
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468         ac_config_commands="$ac_config_commands libtool"
13469
13470
13471
13472
13473 # Only expand once:
13474
13475
13476
13477
13478 # Checks for header files.
13479 for ac_header in stdarg.h stdbool.h netinet/in.h sys/param.h sys/socket.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
13480 do :
13481   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13482 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13483 "
13484 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13485   cat >>confdefs.h <<_ACEOF
13486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13487 _ACEOF
13488
13489 fi
13490
13491 done
13492
13493
13494 # check for types.
13495 # Using own tests for int64* because autoconf builtin only give 32bit.
13496 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
13497 if test "x$ac_cv_type_int8_t" = xyes; then :
13498
13499 else
13500
13501 cat >>confdefs.h <<_ACEOF
13502 #define int8_t signed char
13503 _ACEOF
13504
13505 fi
13506
13507 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13508 if test "x$ac_cv_type_int16_t" = xyes; then :
13509
13510 else
13511
13512 cat >>confdefs.h <<_ACEOF
13513 #define int16_t short
13514 _ACEOF
13515
13516 fi
13517
13518 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13519 if test "x$ac_cv_type_int32_t" = xyes; then :
13520
13521 else
13522
13523 cat >>confdefs.h <<_ACEOF
13524 #define int32_t int
13525 _ACEOF
13526
13527 fi
13528
13529 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13530 if test "x$ac_cv_type_int64_t" = xyes; then :
13531
13532 else
13533
13534 cat >>confdefs.h <<_ACEOF
13535 #define int64_t long long
13536 _ACEOF
13537
13538 fi
13539
13540 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
13541 if test "x$ac_cv_type_uint8_t" = xyes; then :
13542
13543 else
13544
13545 cat >>confdefs.h <<_ACEOF
13546 #define uint8_t unsigned char
13547 _ACEOF
13548
13549 fi
13550
13551 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13552 if test "x$ac_cv_type_uint16_t" = xyes; then :
13553
13554 else
13555
13556 cat >>confdefs.h <<_ACEOF
13557 #define uint16_t unsigned short
13558 _ACEOF
13559
13560 fi
13561
13562 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13563 if test "x$ac_cv_type_uint32_t" = xyes; then :
13564
13565 else
13566
13567 cat >>confdefs.h <<_ACEOF
13568 #define uint32_t unsigned int
13569 _ACEOF
13570
13571 fi
13572
13573 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13574 if test "x$ac_cv_type_uint64_t" = xyes; then :
13575
13576 else
13577
13578 cat >>confdefs.h <<_ACEOF
13579 #define uint64_t unsigned long long
13580 _ACEOF
13581
13582 fi
13583
13584 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13585 if test "x$ac_cv_type_size_t" = xyes; then :
13586
13587 else
13588
13589 cat >>confdefs.h <<_ACEOF
13590 #define size_t unsigned int
13591 _ACEOF
13592
13593 fi
13594
13595 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13596 if test "x$ac_cv_type_ssize_t" = xyes; then :
13597
13598 else
13599
13600 cat >>confdefs.h <<_ACEOF
13601 #define ssize_t int
13602 _ACEOF
13603
13604 fi
13605
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13607 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13608 if ${ac_cv_type_uid_t+:} false; then :
13609   $as_echo_n "(cached) " >&6
13610 else
13611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13612 /* end confdefs.h.  */
13613 #include <sys/types.h>
13614
13615 _ACEOF
13616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13617   $EGREP "uid_t" >/dev/null 2>&1; then :
13618   ac_cv_type_uid_t=yes
13619 else
13620   ac_cv_type_uid_t=no
13621 fi
13622 rm -f conftest*
13623
13624 fi
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13626 $as_echo "$ac_cv_type_uid_t" >&6; }
13627 if test $ac_cv_type_uid_t = no; then
13628
13629 $as_echo "#define uid_t int" >>confdefs.h
13630
13631
13632 $as_echo "#define gid_t int" >>confdefs.h
13633
13634 fi
13635
13636 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13637 if test "x$ac_cv_type_pid_t" = xyes; then :
13638
13639 else
13640
13641 cat >>confdefs.h <<_ACEOF
13642 #define pid_t int
13643 _ACEOF
13644
13645 fi
13646
13647 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13648 if test "x$ac_cv_type_off_t" = xyes; then :
13649
13650 else
13651
13652 cat >>confdefs.h <<_ACEOF
13653 #define off_t long int
13654 _ACEOF
13655
13656 fi
13657
13658 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
13659 $ac_includes_default
13660 #ifdef HAVE_WINSOCK2_H
13661 #  include <winsock2.h>
13662 #endif
13663
13664 "
13665 if test "x$ac_cv_type_u_char" = xyes; then :
13666
13667 else
13668
13669 $as_echo "#define u_char unsigned char" >>confdefs.h
13670
13671 fi
13672
13673 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
13674 $ac_includes_default
13675 #ifdef HAVE_SYS_RESOURCE_H
13676 #  include <sys/resource.h>
13677 #endif
13678
13679 "
13680 if test "x$ac_cv_type_rlim_t" = xyes; then :
13681
13682 else
13683
13684 $as_echo "#define rlim_t unsigned long" >>confdefs.h
13685
13686 fi
13687
13688
13689 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13690 $ac_includes_default
13691 #ifdef HAVE_SYS_SOCKET_H
13692 #  include <sys/socket.h>
13693 #endif
13694 #ifdef HAVE_WS2TCPIP_H
13695 #  include <ws2tcpip.h>
13696 #endif
13697
13698 "
13699 if test "x$ac_cv_type_socklen_t" = xyes; then :
13700
13701 else
13702
13703 $as_echo "#define socklen_t int" >>confdefs.h
13704
13705 fi
13706
13707  ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
13708 $ac_includes_default
13709 #ifdef HAVE_SYS_TYPES_H
13710 # include <sys/types.h>
13711 #endif
13712 #ifdef HAVE_NETINET_IN_H
13713 # include <netinet/in.h>
13714 #endif
13715
13716 "
13717 if test "x$ac_cv_type_in_addr_t" = xyes; then :
13718
13719 else
13720
13721 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
13722
13723 fi
13724
13725  ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
13726 $ac_includes_default
13727 #ifdef HAVE_SYS_TYPES_H
13728 # include <sys/types.h>
13729 #endif
13730 #ifdef HAVE_NETINET_IN_H
13731 # include <netinet/in.h>
13732 #endif
13733
13734 "
13735 if test "x$ac_cv_type_in_port_t" = xyes; then :
13736
13737 else
13738
13739 $as_echo "#define in_port_t uint16_t" >>confdefs.h
13740
13741 fi
13742
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
13744 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
13745 if test "$cross_compiling" = yes; then :
13746    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
13747 $as_echo "cross-compile no" >&6; }
13748
13749 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
13750
13751   case " $LIBOBJS " in
13752   *" memcmp.$ac_objext "* ) ;;
13753   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13754  ;;
13755 esac
13756
13757
13758 else
13759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h.  */
13761
13762 #include <stdio.h>
13763 #include <stdlib.h>
13764 #include <string.h>
13765 int main(void)
13766 {
13767         char a = 255, b = 0;
13768         if(memcmp(&a, &b, 1) < 0)
13769                 return 1;
13770         return 0;
13771 }
13772
13773 _ACEOF
13774 if ac_fn_c_try_run "$LINENO"; then :
13775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13776 $as_echo "yes" >&6; }
13777 else
13778    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13779 $as_echo "no" >&6; }
13780
13781 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
13782
13783   case " $LIBOBJS " in
13784   *" memcmp.$ac_objext "* ) ;;
13785   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13786  ;;
13787 esac
13788
13789
13790 fi
13791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13792   conftest.$ac_objext conftest.beam conftest.$ac_ext
13793 fi
13794
13795
13796 # add option to disable the evil rpath
13797
13798 # Check whether --enable-rpath was given.
13799 if test "${enable_rpath+set}" = set; then :
13800   enableval=$enable_rpath; enable_rpath=$enableval
13801 else
13802   enable_rpath=yes
13803 fi
13804
13805 if test "x$enable_rpath" = xno; then
13806                 ac_config_commands="$ac_config_commands disable-rpath"
13807
13808 fi
13809
13810
13811
13812 # check to see if libraries are needed for these functions.
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
13814 $as_echo_n "checking for library containing inet_pton... " >&6; }
13815 if ${ac_cv_search_inet_pton+:} false; then :
13816   $as_echo_n "(cached) " >&6
13817 else
13818   ac_func_search_save_LIBS=$LIBS
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h.  */
13821
13822 /* Override any GCC internal prototype to avoid an error.
13823    Use char because int might match the return type of a GCC
13824    builtin and then its argument prototype would still apply.  */
13825 #ifdef __cplusplus
13826 extern "C"
13827 #endif
13828 char inet_pton ();
13829 int
13830 main ()
13831 {
13832 return inet_pton ();
13833   ;
13834   return 0;
13835 }
13836 _ACEOF
13837 for ac_lib in '' nsl; do
13838   if test -z "$ac_lib"; then
13839     ac_res="none required"
13840   else
13841     ac_res=-l$ac_lib
13842     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13843   fi
13844   if ac_fn_c_try_link "$LINENO"; then :
13845   ac_cv_search_inet_pton=$ac_res
13846 fi
13847 rm -f core conftest.err conftest.$ac_objext \
13848     conftest$ac_exeext
13849   if ${ac_cv_search_inet_pton+:} false; then :
13850   break
13851 fi
13852 done
13853 if ${ac_cv_search_inet_pton+:} false; then :
13854
13855 else
13856   ac_cv_search_inet_pton=no
13857 fi
13858 rm conftest.$ac_ext
13859 LIBS=$ac_func_search_save_LIBS
13860 fi
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
13862 $as_echo "$ac_cv_search_inet_pton" >&6; }
13863 ac_res=$ac_cv_search_inet_pton
13864 if test "$ac_res" != no; then :
13865   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13866
13867 fi
13868
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13870 $as_echo_n "checking for library containing socket... " >&6; }
13871 if ${ac_cv_search_socket+:} false; then :
13872   $as_echo_n "(cached) " >&6
13873 else
13874   ac_func_search_save_LIBS=$LIBS
13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h.  */
13877
13878 /* Override any GCC internal prototype to avoid an error.
13879    Use char because int might match the return type of a GCC
13880    builtin and then its argument prototype would still apply.  */
13881 #ifdef __cplusplus
13882 extern "C"
13883 #endif
13884 char socket ();
13885 int
13886 main ()
13887 {
13888 return socket ();
13889   ;
13890   return 0;
13891 }
13892 _ACEOF
13893 for ac_lib in '' socket; do
13894   if test -z "$ac_lib"; then
13895     ac_res="none required"
13896   else
13897     ac_res=-l$ac_lib
13898     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13899   fi
13900   if ac_fn_c_try_link "$LINENO"; then :
13901   ac_cv_search_socket=$ac_res
13902 fi
13903 rm -f core conftest.err conftest.$ac_objext \
13904     conftest$ac_exeext
13905   if ${ac_cv_search_socket+:} false; then :
13906   break
13907 fi
13908 done
13909 if ${ac_cv_search_socket+:} false; then :
13910
13911 else
13912   ac_cv_search_socket=no
13913 fi
13914 rm conftest.$ac_ext
13915 LIBS=$ac_func_search_save_LIBS
13916 fi
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13918 $as_echo "$ac_cv_search_socket" >&6; }
13919 ac_res=$ac_cv_search_socket
13920 if test "$ac_res" != no; then :
13921   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13922
13923 fi
13924
13925
13926 # check wether strptime also works
13927
13928 # check some functions of the OS before linking libs (while still runnable).
13929 for ac_header in unistd.h
13930 do :
13931   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13932 if test "x$ac_cv_header_unistd_h" = xyes; then :
13933   cat >>confdefs.h <<_ACEOF
13934 #define HAVE_UNISTD_H 1
13935 _ACEOF
13936
13937 fi
13938
13939 done
13940
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
13942 $as_echo_n "checking for working chown... " >&6; }
13943 if ${ac_cv_func_chown_works+:} false; then :
13944   $as_echo_n "(cached) " >&6
13945 else
13946   if test "$cross_compiling" = yes; then :
13947   ac_cv_func_chown_works=no
13948 else
13949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950 /* end confdefs.h.  */
13951 $ac_includes_default
13952 #include <fcntl.h>
13953
13954 int
13955 main ()
13956 {
13957   char *f = "conftest.chown";
13958   struct stat before, after;
13959
13960   if (creat (f, 0600) < 0)
13961     return 1;
13962   if (stat (f, &before) < 0)
13963     return 1;
13964   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
13965     return 1;
13966   if (stat (f, &after) < 0)
13967     return 1;
13968   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
13969
13970   ;
13971   return 0;
13972 }
13973 _ACEOF
13974 if ac_fn_c_try_run "$LINENO"; then :
13975   ac_cv_func_chown_works=yes
13976 else
13977   ac_cv_func_chown_works=no
13978 fi
13979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13980   conftest.$ac_objext conftest.beam conftest.$ac_ext
13981 fi
13982
13983 rm -f conftest.chown
13984
13985 fi
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
13987 $as_echo "$ac_cv_func_chown_works" >&6; }
13988 if test $ac_cv_func_chown_works = yes; then
13989
13990 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
13991
13992 fi
13993
13994 for ac_header in vfork.h
13995 do :
13996   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13997 if test "x$ac_cv_header_vfork_h" = xyes; then :
13998   cat >>confdefs.h <<_ACEOF
13999 #define HAVE_VFORK_H 1
14000 _ACEOF
14001
14002 fi
14003
14004 done
14005
14006 for ac_func in fork vfork
14007 do :
14008   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14009 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14010 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14011   cat >>confdefs.h <<_ACEOF
14012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14013 _ACEOF
14014
14015 fi
14016 done
14017
14018 if test "x$ac_cv_func_fork" = xyes; then
14019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14020 $as_echo_n "checking for working fork... " >&6; }
14021 if ${ac_cv_func_fork_works+:} false; then :
14022   $as_echo_n "(cached) " >&6
14023 else
14024   if test "$cross_compiling" = yes; then :
14025   ac_cv_func_fork_works=cross
14026 else
14027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028 /* end confdefs.h.  */
14029 $ac_includes_default
14030 int
14031 main ()
14032 {
14033
14034           /* By Ruediger Kuhlmann. */
14035           return fork () < 0;
14036
14037   ;
14038   return 0;
14039 }
14040 _ACEOF
14041 if ac_fn_c_try_run "$LINENO"; then :
14042   ac_cv_func_fork_works=yes
14043 else
14044   ac_cv_func_fork_works=no
14045 fi
14046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14047   conftest.$ac_objext conftest.beam conftest.$ac_ext
14048 fi
14049
14050 fi
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14052 $as_echo "$ac_cv_func_fork_works" >&6; }
14053
14054 else
14055   ac_cv_func_fork_works=$ac_cv_func_fork
14056 fi
14057 if test "x$ac_cv_func_fork_works" = xcross; then
14058   case $host in
14059     *-*-amigaos* | *-*-msdosdjgpp*)
14060       # Override, as these systems have only a dummy fork() stub
14061       ac_cv_func_fork_works=no
14062       ;;
14063     *)
14064       ac_cv_func_fork_works=yes
14065       ;;
14066   esac
14067   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14068 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14069 fi
14070 ac_cv_func_vfork_works=$ac_cv_func_vfork
14071 if test "x$ac_cv_func_vfork" = xyes; then
14072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14073 $as_echo_n "checking for working vfork... " >&6; }
14074 if ${ac_cv_func_vfork_works+:} false; then :
14075   $as_echo_n "(cached) " >&6
14076 else
14077   if test "$cross_compiling" = yes; then :
14078   ac_cv_func_vfork_works=cross
14079 else
14080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081 /* end confdefs.h.  */
14082 /* Thanks to Paul Eggert for this test.  */
14083 $ac_includes_default
14084 #include <sys/wait.h>
14085 #ifdef HAVE_VFORK_H
14086 # include <vfork.h>
14087 #endif
14088 /* On some sparc systems, changes by the child to local and incoming
14089    argument registers are propagated back to the parent.  The compiler
14090    is told about this with #include <vfork.h>, but some compilers
14091    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14092    static variable whose address is put into a register that is
14093    clobbered by the vfork.  */
14094 static void
14095 #ifdef __cplusplus
14096 sparc_address_test (int arg)
14097 # else
14098 sparc_address_test (arg) int arg;
14099 #endif
14100 {
14101   static pid_t child;
14102   if (!child) {
14103     child = vfork ();
14104     if (child < 0) {
14105       perror ("vfork");
14106       _exit(2);
14107     }
14108     if (!child) {
14109       arg = getpid();
14110       write(-1, "", 0);
14111       _exit (arg);
14112     }
14113   }
14114 }
14115
14116 int
14117 main ()
14118 {
14119   pid_t parent = getpid ();
14120   pid_t child;
14121
14122   sparc_address_test (0);
14123
14124   child = vfork ();
14125
14126   if (child == 0) {
14127     /* Here is another test for sparc vfork register problems.  This
14128        test uses lots of local variables, at least as many local
14129        variables as main has allocated so far including compiler
14130        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14131        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14132        reuse the register of parent for one of the local variables,
14133        since it will think that parent can't possibly be used any more
14134        in this routine.  Assigning to the local variable will thus
14135        munge parent in the parent process.  */
14136     pid_t
14137       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14138       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14139     /* Convince the compiler that p..p7 are live; otherwise, it might
14140        use the same hardware register for all 8 local variables.  */
14141     if (p != p1 || p != p2 || p != p3 || p != p4
14142         || p != p5 || p != p6 || p != p7)
14143       _exit(1);
14144
14145     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14146        from child file descriptors.  If the child closes a descriptor
14147        before it execs or exits, this munges the parent's descriptor
14148        as well.  Test for this by closing stdout in the child.  */
14149     _exit(close(fileno(stdout)) != 0);
14150   } else {
14151     int status;
14152     struct stat st;
14153
14154     while (wait(&status) != child)
14155       ;
14156     return (
14157          /* Was there some problem with vforking?  */
14158          child < 0
14159
14160          /* Did the child fail?  (This shouldn't happen.)  */
14161          || status
14162
14163          /* Did the vfork/compiler bug occur?  */
14164          || parent != getpid()
14165
14166          /* Did the file descriptor bug occur?  */
14167          || fstat(fileno(stdout), &st) != 0
14168          );
14169   }
14170 }
14171 _ACEOF
14172 if ac_fn_c_try_run "$LINENO"; then :
14173   ac_cv_func_vfork_works=yes
14174 else
14175   ac_cv_func_vfork_works=no
14176 fi
14177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14178   conftest.$ac_objext conftest.beam conftest.$ac_ext
14179 fi
14180
14181 fi
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14183 $as_echo "$ac_cv_func_vfork_works" >&6; }
14184
14185 fi;
14186 if test "x$ac_cv_func_fork_works" = xcross; then
14187   ac_cv_func_vfork_works=$ac_cv_func_vfork
14188   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14189 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14190 fi
14191
14192 if test "x$ac_cv_func_vfork_works" = xyes; then
14193
14194 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14195
14196 else
14197
14198 $as_echo "#define vfork fork" >>confdefs.h
14199
14200 fi
14201 if test "x$ac_cv_func_fork_works" = xyes; then
14202
14203 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14204
14205 fi
14206
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14208 $as_echo_n "checking return type of signal handlers... " >&6; }
14209 if ${ac_cv_type_signal+:} false; then :
14210   $as_echo_n "(cached) " >&6
14211 else
14212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213 /* end confdefs.h.  */
14214 #include <sys/types.h>
14215 #include <signal.h>
14216
14217 int
14218 main ()
14219 {
14220 return *(signal (0, 0)) (0) == 1;
14221   ;
14222   return 0;
14223 }
14224 _ACEOF
14225 if ac_fn_c_try_compile "$LINENO"; then :
14226   ac_cv_type_signal=int
14227 else
14228   ac_cv_type_signal=void
14229 fi
14230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14231 fi
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14233 $as_echo "$ac_cv_type_signal" >&6; }
14234
14235 cat >>confdefs.h <<_ACEOF
14236 #define RETSIGTYPE $ac_cv_type_signal
14237 _ACEOF
14238
14239
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14241 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14242 if ${ac_cv_sys_largefile_source+:} false; then :
14243   $as_echo_n "(cached) " >&6
14244 else
14245   while :; do
14246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14247 /* end confdefs.h.  */
14248 #include <sys/types.h> /* for off_t */
14249      #include <stdio.h>
14250 int
14251 main ()
14252 {
14253 int (*fp) (FILE *, off_t, int) = fseeko;
14254      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14255   ;
14256   return 0;
14257 }
14258 _ACEOF
14259 if ac_fn_c_try_link "$LINENO"; then :
14260   ac_cv_sys_largefile_source=no; break
14261 fi
14262 rm -f core conftest.err conftest.$ac_objext \
14263     conftest$ac_exeext conftest.$ac_ext
14264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h.  */
14266 #define _LARGEFILE_SOURCE 1
14267 #include <sys/types.h> /* for off_t */
14268      #include <stdio.h>
14269 int
14270 main ()
14271 {
14272 int (*fp) (FILE *, off_t, int) = fseeko;
14273      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14274   ;
14275   return 0;
14276 }
14277 _ACEOF
14278 if ac_fn_c_try_link "$LINENO"; then :
14279   ac_cv_sys_largefile_source=1; break
14280 fi
14281 rm -f core conftest.err conftest.$ac_objext \
14282     conftest$ac_exeext conftest.$ac_ext
14283   ac_cv_sys_largefile_source=unknown
14284   break
14285 done
14286 fi
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14288 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14289 case $ac_cv_sys_largefile_source in #(
14290   no | unknown) ;;
14291   *)
14292 cat >>confdefs.h <<_ACEOF
14293 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14294 _ACEOF
14295 ;;
14296 esac
14297 rm -rf conftest*
14298
14299 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14300 # in glibc 2.1.3, but that breaks too many other things.
14301 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14302 if test $ac_cv_sys_largefile_source != unknown; then
14303
14304 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14305
14306 fi
14307
14308
14309 # Check whether --enable-largefile was given.
14310 if test "${enable_largefile+set}" = set; then :
14311   enableval=$enable_largefile;
14312 fi
14313
14314 if test "$enable_largefile" != no; then
14315
14316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14317 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14318 if ${ac_cv_sys_largefile_CC+:} false; then :
14319   $as_echo_n "(cached) " >&6
14320 else
14321   ac_cv_sys_largefile_CC=no
14322      if test "$GCC" != yes; then
14323        ac_save_CC=$CC
14324        while :; do
14325          # IRIX 6.2 and later do not support large files by default,
14326          # so use the C compiler's -n32 option if that helps.
14327          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h.  */
14329 #include <sys/types.h>
14330  /* Check that off_t can represent 2**63 - 1 correctly.
14331     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14332     since some C++ compilers masquerading as C compilers
14333     incorrectly reject 9223372036854775807.  */
14334 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14335   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14336                        && LARGE_OFF_T % 2147483647 == 1)
14337                       ? 1 : -1];
14338 int
14339 main ()
14340 {
14341
14342   ;
14343   return 0;
14344 }
14345 _ACEOF
14346          if ac_fn_c_try_compile "$LINENO"; then :
14347   break
14348 fi
14349 rm -f core conftest.err conftest.$ac_objext
14350          CC="$CC -n32"
14351          if ac_fn_c_try_compile "$LINENO"; then :
14352   ac_cv_sys_largefile_CC=' -n32'; break
14353 fi
14354 rm -f core conftest.err conftest.$ac_objext
14355          break
14356        done
14357        CC=$ac_save_CC
14358        rm -f conftest.$ac_ext
14359     fi
14360 fi
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14362 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14363   if test "$ac_cv_sys_largefile_CC" != no; then
14364     CC=$CC$ac_cv_sys_largefile_CC
14365   fi
14366
14367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14368 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14369 if ${ac_cv_sys_file_offset_bits+:} false; then :
14370   $as_echo_n "(cached) " >&6
14371 else
14372   while :; do
14373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14374 /* end confdefs.h.  */
14375 #include <sys/types.h>
14376  /* Check that off_t can represent 2**63 - 1 correctly.
14377     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14378     since some C++ compilers masquerading as C compilers
14379     incorrectly reject 9223372036854775807.  */
14380 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14381   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14382                        && LARGE_OFF_T % 2147483647 == 1)
14383                       ? 1 : -1];
14384 int
14385 main ()
14386 {
14387
14388   ;
14389   return 0;
14390 }
14391 _ACEOF
14392 if ac_fn_c_try_compile "$LINENO"; then :
14393   ac_cv_sys_file_offset_bits=no; break
14394 fi
14395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h.  */
14398 #define _FILE_OFFSET_BITS 64
14399 #include <sys/types.h>
14400  /* Check that off_t can represent 2**63 - 1 correctly.
14401     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14402     since some C++ compilers masquerading as C compilers
14403     incorrectly reject 9223372036854775807.  */
14404 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14405   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14406                        && LARGE_OFF_T % 2147483647 == 1)
14407                       ? 1 : -1];
14408 int
14409 main ()
14410 {
14411
14412   ;
14413   return 0;
14414 }
14415 _ACEOF
14416 if ac_fn_c_try_compile "$LINENO"; then :
14417   ac_cv_sys_file_offset_bits=64; break
14418 fi
14419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14420   ac_cv_sys_file_offset_bits=unknown
14421   break
14422 done
14423 fi
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14425 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14426 case $ac_cv_sys_file_offset_bits in #(
14427   no | unknown) ;;
14428   *)
14429 cat >>confdefs.h <<_ACEOF
14430 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14431 _ACEOF
14432 ;;
14433 esac
14434 rm -rf conftest*
14435   if test $ac_cv_sys_file_offset_bits = unknown; then
14436     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14437 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14438 if ${ac_cv_sys_large_files+:} false; then :
14439   $as_echo_n "(cached) " >&6
14440 else
14441   while :; do
14442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h.  */
14444 #include <sys/types.h>
14445  /* Check that off_t can represent 2**63 - 1 correctly.
14446     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14447     since some C++ compilers masquerading as C compilers
14448     incorrectly reject 9223372036854775807.  */
14449 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14450   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14451                        && LARGE_OFF_T % 2147483647 == 1)
14452                       ? 1 : -1];
14453 int
14454 main ()
14455 {
14456
14457   ;
14458   return 0;
14459 }
14460 _ACEOF
14461 if ac_fn_c_try_compile "$LINENO"; then :
14462   ac_cv_sys_large_files=no; break
14463 fi
14464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466 /* end confdefs.h.  */
14467 #define _LARGE_FILES 1
14468 #include <sys/types.h>
14469  /* Check that off_t can represent 2**63 - 1 correctly.
14470     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14471     since some C++ compilers masquerading as C compilers
14472     incorrectly reject 9223372036854775807.  */
14473 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14474   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14475                        && LARGE_OFF_T % 2147483647 == 1)
14476                       ? 1 : -1];
14477 int
14478 main ()
14479 {
14480
14481   ;
14482   return 0;
14483 }
14484 _ACEOF
14485 if ac_fn_c_try_compile "$LINENO"; then :
14486   ac_cv_sys_large_files=1; break
14487 fi
14488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14489   ac_cv_sys_large_files=unknown
14490   break
14491 done
14492 fi
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14494 $as_echo "$ac_cv_sys_large_files" >&6; }
14495 case $ac_cv_sys_large_files in #(
14496   no | unknown) ;;
14497   *)
14498 cat >>confdefs.h <<_ACEOF
14499 #define _LARGE_FILES $ac_cv_sys_large_files
14500 _ACEOF
14501 ;;
14502 esac
14503 rm -rf conftest*
14504   fi
14505
14506
14507 fi
14508
14509
14510
14511
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
14513 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
14514 cache=_D_LARGEFILE_SOURCE_1
14515 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
14516   $as_echo_n "(cached) " >&6
14517 else
14518
14519 echo '
14520 #include <stdio.h>
14521 int test() {
14522         int a = fseeko(stdin, 0, 0);
14523         return a;
14524 }
14525 ' > conftest.c
14526 echo 'void f(){}' >>conftest.c
14527 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14528 eval "cv_prog_cc_flag_needed_$cache=no"
14529 else
14530
14531 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
14532 eval "cv_prog_cc_flag_needed_$cache=yes"
14533 else
14534 eval "cv_prog_cc_flag_needed_$cache=fail"
14535 #echo 'Test with flag fails too!'
14536 #cat conftest.c
14537 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14538 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14539 #exit 1
14540 fi
14541
14542 fi
14543 rm -f conftest conftest.c conftest.o
14544
14545 fi
14546
14547 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14549 $as_echo "yes" >&6; }
14550 :
14551 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
14552 else
14553 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14555 $as_echo "no" >&6; }
14556 #echo 'Test with flag is no!'
14557 #cat conftest.c
14558 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14559 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14560 #exit 1
14561 :
14562
14563 else
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14565 $as_echo "failed" >&6; }
14566 :
14567
14568 fi
14569 fi
14570
14571
14572
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
14574 $as_echo_n "checking if nonblocking sockets work... " >&6; }
14575 if echo $target | grep mingw32 >/dev/null; then
14576         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
14577 $as_echo "no (windows)" >&6; }
14578
14579 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14580
14581 else
14582 if test "$cross_compiling" = yes; then :
14583
14584         { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
14585 $as_echo "crosscompile(yes)" >&6; }
14586
14587 else
14588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589 /* end confdefs.h.  */
14590
14591
14592 #include <stdio.h>
14593 #include <string.h>
14594 #include <stdlib.h>
14595 #include <fcntl.h>
14596 #include <errno.h>
14597 #ifdef HAVE_SYS_TYPES_H
14598 #include <sys/types.h>
14599 #endif
14600 #ifdef HAVE_SYS_SOCKET_H
14601 #include <sys/socket.h>
14602 #endif
14603 #ifdef HAVE_NETINET_IN_H
14604 #include <netinet/in.h>
14605 #endif
14606 #ifdef HAVE_ARPA_INET_H
14607 #include <arpa/inet.h>
14608 #endif
14609 #ifdef HAVE_UNISTD_H
14610 #include <unistd.h>
14611 #endif
14612 #ifdef HAVE_TIME_H
14613 #include <time.h>
14614 #endif
14615
14616 int main(void)
14617 {
14618         int port;
14619         int sfd, cfd;
14620         int num = 10;
14621         int i, p;
14622         struct sockaddr_in a;
14623         /* test if select and nonblocking reads work well together */
14624         /* open port.
14625            fork child to send 10 messages.
14626            select to read.
14627            then try to nonblocking read the 10 messages
14628            then, nonblocking read must give EAGAIN
14629         */
14630
14631         port = 12345 + (time(0)%32);
14632         sfd = socket(PF_INET, SOCK_DGRAM, 0);
14633         if(sfd == -1) {
14634                 perror("socket");
14635                 return 1;
14636         }
14637         memset(&a, 0, sizeof(a));
14638         a.sin_family = AF_INET;
14639         a.sin_port = htons(port);
14640         a.sin_addr.s_addr = inet_addr("127.0.0.1");
14641         if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14642                 perror("bind");
14643                 return 1;
14644         }
14645         if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
14646                 perror("fcntl");
14647                 return 1;
14648         }
14649
14650         cfd = socket(PF_INET, SOCK_DGRAM, 0);
14651         if(cfd == -1) {
14652                 perror("client socket");
14653                 return 1;
14654         }
14655         a.sin_port = 0;
14656         if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14657                 perror("client bind");
14658                 return 1;
14659         }
14660         a.sin_port = htons(port);
14661
14662         /* no handler, causes exit in 10 seconds */
14663         alarm(10);
14664
14665         /* send and receive on the socket */
14666         if((p=fork()) == 0) {
14667                 for(i=0; i<num; i++) {
14668                         if(sendto(cfd, &i, sizeof(i), 0,
14669                                 (struct sockaddr*)&a, sizeof(a)) < 0) {
14670                                 perror("sendto");
14671                                 return 1;
14672                         }
14673                 }
14674         } else {
14675                 /* parent */
14676                 fd_set rset;
14677                 int x;
14678                 if(p == -1) {
14679                         perror("fork");
14680                         return 1;
14681                 }
14682                 FD_ZERO(&rset);
14683                 FD_SET(sfd, &rset);
14684                 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
14685                         perror("select");
14686                         return 1;
14687                 }
14688                 i = 0;
14689                 while(i < num) {
14690                         if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
14691                                 if(errno == EAGAIN)
14692                                         continue;
14693                                 perror("recv");
14694                                 return 1;
14695                         }
14696                         i++;
14697                 }
14698                 /* now we want to get EAGAIN: nonblocking goodness */
14699                 errno = 0;
14700                 recv(sfd, &x, sizeof(x), 0);
14701                 if(errno != EAGAIN) {
14702                         perror("trying to recv again");
14703                         return 1;
14704                 }
14705                 /* EAGAIN encountered */
14706         }
14707
14708         close(sfd);
14709         close(cfd);
14710         return 0;
14711 }
14712
14713 _ACEOF
14714 if ac_fn_c_try_run "$LINENO"; then :
14715
14716         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14717 $as_echo "yes" >&6; }
14718
14719 else
14720
14721         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14722 $as_echo "no" >&6; }
14723
14724 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14725
14726
14727 fi
14728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14729   conftest.$ac_objext conftest.beam conftest.$ac_ext
14730 fi
14731
14732 fi
14733
14734
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
14736 $as_echo_n "checking whether mkdir has one arg... " >&6; }
14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h.  */
14739
14740 #include <stdio.h>
14741 #include <unistd.h>
14742 #ifdef HAVE_WINSOCK2_H
14743 #include <winsock2.h>
14744 #endif
14745 #ifdef HAVE_SYS_STAT_H
14746 #include <sys/stat.h>
14747 #endif
14748
14749 int
14750 main ()
14751 {
14752
14753         (void)mkdir("directory");
14754
14755   ;
14756   return 0;
14757 }
14758 _ACEOF
14759 if ac_fn_c_try_compile "$LINENO"; then :
14760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14761 $as_echo "yes" >&6; }
14762
14763 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
14764
14765
14766 else
14767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14768 $as_echo "no" >&6; }
14769
14770 fi
14771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14772
14773 for ac_func in strptime
14774 do :
14775   ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
14776 if test "x$ac_cv_func_strptime" = xyes; then :
14777   cat >>confdefs.h <<_ACEOF
14778 #define HAVE_STRPTIME 1
14779 _ACEOF
14780
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
14782 $as_echo_n "checking whether strptime works... " >&6; }
14783 if test c${cross_compiling} = cno; then
14784 if test "$cross_compiling" = yes; then :
14785   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14787 as_fn_error $? "cannot run test program while cross compiling
14788 See \`config.log' for more details" "$LINENO" 5; }
14789 else
14790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h.  */
14792
14793 #define _XOPEN_SOURCE
14794 #include <time.h>
14795 int main(void) { struct tm tm; char *res;
14796 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);
14797 if (!res) return 2;
14798 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
14799 if (!res) return 1; return 0; }
14800
14801 _ACEOF
14802 if ac_fn_c_try_run "$LINENO"; then :
14803   eval "ac_cv_c_strptime_works=yes"
14804 else
14805   eval "ac_cv_c_strptime_works=no"
14806 fi
14807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14808   conftest.$ac_objext conftest.beam conftest.$ac_ext
14809 fi
14810
14811 else
14812 eval "ac_cv_c_strptime_works=maybe"
14813 fi
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
14815 $as_echo "$ac_cv_c_strptime_works" >&6; }
14816 if test $ac_cv_c_strptime_works = no; then
14817 case " $LIBOBJS " in
14818   *" strptime.$ac_objext "* ) ;;
14819   *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
14820  ;;
14821 esac
14822
14823 else
14824
14825 cat >>confdefs.h <<_ACEOF
14826 #define STRPTIME_WORKS 1
14827 _ACEOF
14828
14829 fi
14830
14831 else
14832   case " $LIBOBJS " in
14833   *" strptime.$ac_objext "* ) ;;
14834   *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
14835  ;;
14836 esac
14837
14838 fi
14839 done
14840
14841
14842 # set memory allocation checking if requested
14843 # Check whether --enable-alloc-checks was given.
14844 if test "${enable_alloc_checks+set}" = set; then :
14845   enableval=$enable_alloc_checks;
14846 fi
14847
14848 # Check whether --enable-alloc-lite was given.
14849 if test "${enable_alloc_lite+set}" = set; then :
14850   enableval=$enable_alloc_lite;
14851 fi
14852
14853 # Check whether --enable-alloc-nonregional was given.
14854 if test "${enable_alloc_nonregional+set}" = set; then :
14855   enableval=$enable_alloc_nonregional;
14856 fi
14857
14858 if test x_$enable_alloc_nonregional = x_yes; then
14859
14860 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
14861
14862 fi
14863 if test x_$enable_alloc_checks = x_yes; then
14864
14865 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
14866
14867 else
14868         if test x_$enable_alloc_lite = x_yes; then
14869
14870 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
14871
14872         else
14873
14874         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14875 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14876         if test "$cross_compiling" = yes; then :
14877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
14878 $as_echo "no (crosscompile)" >&6; }
14879         case " $LIBOBJS " in
14880   *" malloc.$ac_objext "* ) ;;
14881   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14882  ;;
14883 esac
14884
14885
14886 cat >>confdefs.h <<_ACEOF
14887 #define malloc rpl_malloc_unbound
14888 _ACEOF
14889
14890 else
14891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892 /* end confdefs.h.  */
14893 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
14894 #include <stdlib.h>
14895 #else
14896 char *malloc ();
14897 #endif
14898
14899 int
14900 main ()
14901 {
14902  if(malloc(0) != 0) return 1;
14903   ;
14904   return 0;
14905 }
14906
14907 _ACEOF
14908 if ac_fn_c_try_run "$LINENO"; then :
14909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14910 $as_echo "no" >&6; }
14911         case " $LIBOBJS " in
14912   *" malloc.$ac_objext "* ) ;;
14913   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14914  ;;
14915 esac
14916
14917
14918 cat >>confdefs.h <<_ACEOF
14919 #define malloc rpl_malloc_unbound
14920 _ACEOF
14921
14922 else
14923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14924 $as_echo "yes" >&6; }
14925
14926 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
14927
14928 fi
14929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14930   conftest.$ac_objext conftest.beam conftest.$ac_ext
14931 fi
14932
14933
14934         fi
14935 fi
14936
14937 # check windows threads (we use them, not pthreads, on windows).
14938 if test "$on_mingw" = "yes"; then
14939 # check windows threads
14940         for ac_header in windows.h
14941 do :
14942   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
14943 "
14944 if test "x$ac_cv_header_windows_h" = xyes; then :
14945   cat >>confdefs.h <<_ACEOF
14946 #define HAVE_WINDOWS_H 1
14947 _ACEOF
14948
14949 fi
14950
14951 done
14952
14953         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
14954 $as_echo_n "checking for CreateThread... " >&6; }
14955         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h.  */
14957
14958 #ifdef HAVE_WINDOWS_H
14959 #include <windows.h>
14960 #endif
14961
14962 int
14963 main ()
14964 {
14965
14966         HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
14967
14968   ;
14969   return 0;
14970 }
14971 _ACEOF
14972 if ac_fn_c_try_compile "$LINENO"; then :
14973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14974 $as_echo "yes" >&6; }
14975
14976 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
14977
14978
14979 else
14980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14981 $as_echo "no" >&6; }
14982
14983 fi
14984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14985
14986 else
14987 # not on mingw, check thread libraries.
14988
14989 # check for thread library.
14990 # check this first, so that the pthread lib does not get linked in via
14991 # libssl or libpython, and thus distorts the tests, and we end up using
14992 # the non-threadsafe C libraries.
14993
14994 # Check whether --with-pthreads was given.
14995 if test "${with_pthreads+set}" = set; then :
14996   withval=$with_pthreads;
14997 else
14998    withval="yes"
14999 fi
15000
15001 ub_have_pthreads=no
15002 if test x_$withval != x_no; then
15003
15004
15005
15006 ac_ext=c
15007 ac_cpp='$CPP $CPPFLAGS'
15008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15011
15012 acx_pthread_ok=no
15013
15014 # We used to check for pthread.h first, but this fails if pthread.h
15015 # requires special compiler flags (e.g. on True64 or Sequent).
15016 # It gets checked for in the link test anyway.
15017
15018 # First of all, check if the user has set any of the PTHREAD_LIBS,
15019 # etcetera environment variables, and if threads linking works using
15020 # them:
15021 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15022         save_CFLAGS="$CFLAGS"
15023         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15024         save_LIBS="$LIBS"
15025         LIBS="$PTHREAD_LIBS $LIBS"
15026         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15027 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15028         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h.  */
15030
15031 /* Override any GCC internal prototype to avoid an error.
15032    Use char because int might match the return type of a GCC
15033    builtin and then its argument prototype would still apply.  */
15034 #ifdef __cplusplus
15035 extern "C"
15036 #endif
15037 char pthread_join ();
15038 int
15039 main ()
15040 {
15041 return pthread_join ();
15042   ;
15043   return 0;
15044 }
15045 _ACEOF
15046 if ac_fn_c_try_link "$LINENO"; then :
15047   acx_pthread_ok=yes
15048 fi
15049 rm -f core conftest.err conftest.$ac_objext \
15050     conftest$ac_exeext conftest.$ac_ext
15051         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15052 $as_echo "$acx_pthread_ok" >&6; }
15053         if test x"$acx_pthread_ok" = xno; then
15054                 PTHREAD_LIBS=""
15055                 PTHREAD_CFLAGS=""
15056         fi
15057         LIBS="$save_LIBS"
15058         CFLAGS="$save_CFLAGS"
15059 fi
15060
15061 # We must check for the threads library under a number of different
15062 # names; the ordering is very important because some systems
15063 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15064 # libraries is broken (non-POSIX).
15065
15066 # Create a list of thread flags to try.  Items starting with a "-" are
15067 # C compiler flags, and other items are library names, except for "none"
15068 # which indicates that we try without any flags at all, and "pthread-config"
15069 # which is a program returning the flags for the Pth emulation library.
15070
15071 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15072
15073 # The ordering *is* (sometimes) important.  Some notes on the
15074 # individual items follow:
15075
15076 # pthreads: AIX (must check this before -lpthread)
15077 # none: in case threads are in libc; should be tried before -Kthread and
15078 #       other compiler flags to prevent continual compiler warnings
15079 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15080 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15081 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15082 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15083 # -pthreads: Solaris/gcc
15084 # -mthreads: Mingw32/gcc, Lynx/gcc
15085 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15086 #      doesn't hurt to check since this sometimes defines pthreads too;
15087 #      also defines -D_REENTRANT)
15088 #      ... -mt is also the pthreads flag for HP/aCC
15089 # pthread: Linux, etcetera
15090 # --thread-safe: KAI C++
15091 # pthread-config: use pthread-config program (for GNU Pth library)
15092
15093 case "${host_cpu}-${host_os}" in
15094         *solaris*)
15095
15096         # On Solaris (at least, for some versions), libc contains stubbed
15097         # (non-functional) versions of the pthreads routines, so link-based
15098         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15099         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15100         # a function called by this macro, so we could check for that, but
15101         # who knows whether they'll stub that too in a future libc.)  So,
15102         # we'll just look for -pthreads and -lpthread first:
15103
15104         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15105         ;;
15106 esac
15107
15108 if test x"$acx_pthread_ok" = xno; then
15109 for flag in $acx_pthread_flags; do
15110
15111         case $flag in
15112                 none)
15113                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15114 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15115                 ;;
15116
15117                 -*)
15118                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15119 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15120                 PTHREAD_CFLAGS="$flag"
15121                 ;;
15122
15123                 pthread-config)
15124                 # Extract the first word of "pthread-config", so it can be a program name with args.
15125 set dummy pthread-config; ac_word=$2
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15127 $as_echo_n "checking for $ac_word... " >&6; }
15128 if ${ac_cv_prog_acx_pthread_config+:} false; then :
15129   $as_echo_n "(cached) " >&6
15130 else
15131   if test -n "$acx_pthread_config"; then
15132   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15133 else
15134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15135 for as_dir in $PATH
15136 do
15137   IFS=$as_save_IFS
15138   test -z "$as_dir" && as_dir=.
15139     for ac_exec_ext in '' $ac_executable_extensions; do
15140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15141     ac_cv_prog_acx_pthread_config="yes"
15142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15143     break 2
15144   fi
15145 done
15146   done
15147 IFS=$as_save_IFS
15148
15149   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15150 fi
15151 fi
15152 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15153 if test -n "$acx_pthread_config"; then
15154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15155 $as_echo "$acx_pthread_config" >&6; }
15156 else
15157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15158 $as_echo "no" >&6; }
15159 fi
15160
15161
15162                 if test x"$acx_pthread_config" = xno; then continue; fi
15163                 PTHREAD_CFLAGS="`pthread-config --cflags`"
15164                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15165                 ;;
15166
15167                 *)
15168                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15169 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15170                 PTHREAD_LIBS="-l$flag"
15171                 ;;
15172         esac
15173
15174         save_LIBS="$LIBS"
15175         save_CFLAGS="$CFLAGS"
15176         LIBS="$PTHREAD_LIBS $LIBS"
15177         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15178
15179         # Check for various functions.  We must include pthread.h,
15180         # since some functions may be macros.  (On the Sequent, we
15181         # need a special flag -Kthread to make this header compile.)
15182         # We check for pthread_join because it is in -lpthread on IRIX
15183         # while pthread_create is in libc.  We check for pthread_attr_init
15184         # due to DEC craziness with -lpthreads.  We check for
15185         # pthread_cleanup_push because it is one of the few pthread
15186         # functions on Solaris that doesn't have a non-functional libc stub.
15187         # We try pthread_create on general principles.
15188         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189 /* end confdefs.h.  */
15190 #include <pthread.h>
15191 int
15192 main ()
15193 {
15194 pthread_t th; pthread_join(th, 0);
15195                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
15196                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15197   ;
15198   return 0;
15199 }
15200 _ACEOF
15201 if ac_fn_c_try_link "$LINENO"; then :
15202   acx_pthread_ok=yes
15203 fi
15204 rm -f core conftest.err conftest.$ac_objext \
15205     conftest$ac_exeext conftest.$ac_ext
15206
15207         LIBS="$save_LIBS"
15208         CFLAGS="$save_CFLAGS"
15209
15210         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15211 $as_echo "$acx_pthread_ok" >&6; }
15212         if test "x$acx_pthread_ok" = xyes; then
15213                 break;
15214         fi
15215
15216         PTHREAD_LIBS=""
15217         PTHREAD_CFLAGS=""
15218 done
15219 fi
15220
15221 # Various other checks:
15222 if test "x$acx_pthread_ok" = xyes; then
15223         save_LIBS="$LIBS"
15224         LIBS="$PTHREAD_LIBS $LIBS"
15225         save_CFLAGS="$CFLAGS"
15226         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15227
15228         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15229         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15230 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15231         attr_name=unknown
15232         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15233             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15234 /* end confdefs.h.  */
15235 #include <pthread.h>
15236 int
15237 main ()
15238 {
15239 int attr=$attr; return attr;
15240   ;
15241   return 0;
15242 }
15243 _ACEOF
15244 if ac_fn_c_try_link "$LINENO"; then :
15245   attr_name=$attr; break
15246 fi
15247 rm -f core conftest.err conftest.$ac_objext \
15248     conftest$ac_exeext conftest.$ac_ext
15249         done
15250         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15251 $as_echo "$attr_name" >&6; }
15252         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15253
15254 cat >>confdefs.h <<_ACEOF
15255 #define PTHREAD_CREATE_JOINABLE $attr_name
15256 _ACEOF
15257
15258         fi
15259
15260         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15261 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15262         flag=no
15263         case "${host_cpu}-${host_os}" in
15264             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15265             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15266         esac
15267         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15268 $as_echo "${flag}" >&6; }
15269         if test "x$flag" != xno; then
15270             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15271         fi
15272
15273         LIBS="$save_LIBS"
15274         CFLAGS="$save_CFLAGS"
15275
15276         # More AIX lossage: must compile with xlc_r or cc_r
15277         if test x"$GCC" != xyes; then
15278           for ac_prog in xlc_r cc_r
15279 do
15280   # Extract the first word of "$ac_prog", so it can be a program name with args.
15281 set dummy $ac_prog; ac_word=$2
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15283 $as_echo_n "checking for $ac_word... " >&6; }
15284 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15285   $as_echo_n "(cached) " >&6
15286 else
15287   if test -n "$PTHREAD_CC"; then
15288   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15289 else
15290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15291 for as_dir in $PATH
15292 do
15293   IFS=$as_save_IFS
15294   test -z "$as_dir" && as_dir=.
15295     for ac_exec_ext in '' $ac_executable_extensions; do
15296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15297     ac_cv_prog_PTHREAD_CC="$ac_prog"
15298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15299     break 2
15300   fi
15301 done
15302   done
15303 IFS=$as_save_IFS
15304
15305 fi
15306 fi
15307 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15308 if test -n "$PTHREAD_CC"; then
15309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15310 $as_echo "$PTHREAD_CC" >&6; }
15311 else
15312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15313 $as_echo "no" >&6; }
15314 fi
15315
15316
15317   test -n "$PTHREAD_CC" && break
15318 done
15319 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15320
15321         else
15322           PTHREAD_CC=$CC
15323         fi
15324 else
15325         PTHREAD_CC="$CC"
15326 fi
15327
15328
15329
15330
15331
15332 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15333 if test x"$acx_pthread_ok" = xyes; then
15334
15335
15336 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15337
15338                 LIBS="$PTHREAD_LIBS $LIBS"
15339                 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15340                 CC="$PTHREAD_CC"
15341                 ub_have_pthreads=yes
15342                 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
15343 "
15344 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
15345
15346 cat >>confdefs.h <<_ACEOF
15347 #define HAVE_PTHREAD_SPINLOCK_T 1
15348 _ACEOF
15349
15350
15351 fi
15352 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15353 "
15354 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15355
15356 cat >>confdefs.h <<_ACEOF
15357 #define HAVE_PTHREAD_RWLOCK_T 1
15358 _ACEOF
15359
15360
15361 fi
15362
15363
15364         :
15365 else
15366         acx_pthread_ok=no
15367
15368 fi
15369 ac_ext=c
15370 ac_cpp='$CPP $CPPFLAGS'
15371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15374
15375
15376 fi
15377
15378 # check solaris thread library
15379
15380 # Check whether --with-solaris-threads was given.
15381 if test "${with_solaris_threads+set}" = set; then :
15382   withval=$with_solaris_threads;
15383 else
15384    withval="no"
15385 fi
15386
15387 ub_have_sol_threads=no
15388 if test x_$withval != x_no; then
15389         if test x_$ub_have_pthreads != x_no; then
15390             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
15391 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
15392         else
15393         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
15394 $as_echo_n "checking for library containing thr_create... " >&6; }
15395 if ${ac_cv_search_thr_create+:} false; then :
15396   $as_echo_n "(cached) " >&6
15397 else
15398   ac_func_search_save_LIBS=$LIBS
15399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15400 /* end confdefs.h.  */
15401
15402 /* Override any GCC internal prototype to avoid an error.
15403    Use char because int might match the return type of a GCC
15404    builtin and then its argument prototype would still apply.  */
15405 #ifdef __cplusplus
15406 extern "C"
15407 #endif
15408 char thr_create ();
15409 int
15410 main ()
15411 {
15412 return thr_create ();
15413   ;
15414   return 0;
15415 }
15416 _ACEOF
15417 for ac_lib in '' thread; do
15418   if test -z "$ac_lib"; then
15419     ac_res="none required"
15420   else
15421     ac_res=-l$ac_lib
15422     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15423   fi
15424   if ac_fn_c_try_link "$LINENO"; then :
15425   ac_cv_search_thr_create=$ac_res
15426 fi
15427 rm -f core conftest.err conftest.$ac_objext \
15428     conftest$ac_exeext
15429   if ${ac_cv_search_thr_create+:} false; then :
15430   break
15431 fi
15432 done
15433 if ${ac_cv_search_thr_create+:} false; then :
15434
15435 else
15436   ac_cv_search_thr_create=no
15437 fi
15438 rm conftest.$ac_ext
15439 LIBS=$ac_func_search_save_LIBS
15440 fi
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
15442 $as_echo "$ac_cv_search_thr_create" >&6; }
15443 ac_res=$ac_cv_search_thr_create
15444 if test "$ac_res" != no; then :
15445   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15446
15447
15448 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
15449
15450
15451
15452
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
15454 $as_echo_n "checking whether $CC supports -mt... " >&6; }
15455 cache=`echo mt | sed 'y%.=/+-%___p_%'`
15456 if eval \${cv_prog_cc_flag_$cache+:} false; then :
15457   $as_echo_n "(cached) " >&6
15458 else
15459
15460 echo 'void f(){}' >conftest.c
15461 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
15462 eval "cv_prog_cc_flag_$cache=yes"
15463 else
15464 eval "cv_prog_cc_flag_$cache=no"
15465 fi
15466 rm -f conftest conftest.o conftest.c
15467
15468 fi
15469
15470 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15472 $as_echo "yes" >&6; }
15473 :
15474 CFLAGS="$CFLAGS -mt"
15475 else
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15477 $as_echo "no" >&6; }
15478 :
15479 CFLAGS="$CFLAGS -D_REENTRANT"
15480 fi
15481
15482                 ub_have_sol_threads=yes
15483
15484 else
15485
15486                 as_fn_error $? "no solaris threads found." "$LINENO" 5
15487
15488 fi
15489
15490         fi
15491 fi
15492
15493 fi # end of non-mingw check of thread libraries
15494
15495 # Check for PyUnbound
15496
15497 # Check whether --with-pyunbound was given.
15498 if test "${with_pyunbound+set}" = set; then :
15499   withval=$with_pyunbound;
15500 else
15501    withval="no"
15502 fi
15503
15504
15505 ub_test_python=no
15506 ub_with_pyunbound=no
15507 if test x_$withval != x_no; then
15508    ub_with_pyunbound=yes
15509    ub_test_python=yes
15510 fi
15511
15512 # Check for Python module
15513
15514 # Check whether --with-pythonmodule was given.
15515 if test "${with_pythonmodule+set}" = set; then :
15516   withval=$with_pythonmodule;
15517 else
15518    withval="no"
15519 fi
15520
15521
15522 ub_with_pythonmod=no
15523 if test x_$withval != x_no; then
15524    ub_with_pythonmod=yes
15525    ub_test_python=yes
15526 fi
15527
15528 # Check for Python & SWIG only on PyUnbound or PyModule
15529 if test x_$ub_test_python != x_no; then
15530
15531    # Check for Python
15532    ub_have_python=no
15533    ac_save_LIBS="$LIBS"
15534         #
15535         # Allow the use of a (user set) custom python version
15536         #
15537
15538
15539         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
15540 set dummy python$PYTHON_VERSION; ac_word=$2
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15542 $as_echo_n "checking for $ac_word... " >&6; }
15543 if ${ac_cv_path_PYTHON+:} false; then :
15544   $as_echo_n "(cached) " >&6
15545 else
15546   case $PYTHON in
15547   [\\/]* | ?:[\\/]*)
15548   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15549   ;;
15550   *)
15551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15552 for as_dir in $PATH
15553 do
15554   IFS=$as_save_IFS
15555   test -z "$as_dir" && as_dir=.
15556     for ac_exec_ext in '' $ac_executable_extensions; do
15557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15558     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15560     break 2
15561   fi
15562 done
15563   done
15564 IFS=$as_save_IFS
15565
15566   ;;
15567 esac
15568 fi
15569 PYTHON=$ac_cv_path_PYTHON
15570 if test -n "$PYTHON"; then
15571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15572 $as_echo "$PYTHON" >&6; }
15573 else
15574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15575 $as_echo "no" >&6; }
15576 fi
15577
15578
15579         if test -z "$PYTHON"; then
15580            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
15581            PYTHON_VERSION=""
15582         fi
15583
15584         if test -z "$PYTHON_VERSION"; then
15585                 PYTHON_VERSION=`$PYTHON -c "import sys, string; \
15586                         print string.split(sys.version)[0]"`
15587         fi
15588
15589         #
15590         # Check for a version of Python >= 2.1.0
15591         #
15592         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
15593 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
15594         ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15595                 ver = string.split(sys.version)[0]; \
15596                 print ver >= '2.1.0'"`
15597         if test "$ac_supports_python_ver" != "True"; then
15598                 if test -z "$PYTHON_NOVERSIONCHECK"; then
15599                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15600 $as_echo "no" >&6; }
15601                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15603 as_fn_error $? "
15604 This version of the AC_PYTHON_DEVEL macro
15605 doesn't work properly with versions of Python before
15606 2.1.0. You may need to re-run configure, setting the
15607 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
15608 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
15609 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
15610 to something else than an empty string.
15611
15612 See \`config.log' for more details" "$LINENO" 5; }
15613                 else
15614                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
15615 $as_echo "skip at user request" >&6; }
15616                 fi
15617         else
15618                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15619 $as_echo "yes" >&6; }
15620         fi
15621
15622         #
15623         # if the macro parameter ``version'' is set, honour it
15624         #
15625         if test -n ""; then
15626                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
15627 $as_echo_n "checking for a version of Python ... " >&6; }
15628                 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15629                         ver = string.split(sys.version)[0]; \
15630                         print ver "`
15631                 if test "$ac_supports_python_ver" = "True"; then
15632                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15633 $as_echo "yes" >&6; }
15634                 else
15635                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15636 $as_echo "no" >&6; }
15637                         as_fn_error $? "this package requires Python .
15638 If you have it installed, but it isn't the default Python
15639 interpreter in your system path, please pass the PYTHON_VERSION
15640 variable to configure. See \`\`configure --help'' for reference.
15641 " "$LINENO" 5
15642                         PYTHON_VERSION=""
15643                 fi
15644         fi
15645
15646         #
15647         # Check if you have distutils, else fail
15648         #
15649         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
15650 $as_echo_n "checking for the distutils Python package... " >&6; }
15651         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
15652         if test -z "$ac_distutils_result"; then
15653                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15654 $as_echo "yes" >&6; }
15655         else
15656                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15657 $as_echo "no" >&6; }
15658                 as_fn_error $? "cannot import Python module \"distutils\".
15659 Please check your Python installation. The error was:
15660 $ac_distutils_result" "$LINENO" 5
15661                 PYTHON_VERSION=""
15662         fi
15663
15664         #
15665         # Check for Python include path
15666         #
15667         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
15668 $as_echo_n "checking for Python include path... " >&6; }
15669         if test -z "$PYTHON_CPPFLAGS"; then
15670                 python_path=`$PYTHON -c "import distutils.sysconfig; \
15671                         print distutils.sysconfig.get_python_inc();"`
15672                 if test -n "${python_path}"; then
15673                         python_path="-I$python_path"
15674                 fi
15675                 PYTHON_CPPFLAGS=$python_path
15676         fi
15677         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
15678 $as_echo "$PYTHON_CPPFLAGS" >&6; }
15679
15680
15681         #
15682         # Check for Python library path
15683         #
15684         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
15685 $as_echo_n "checking for Python library path... " >&6; }
15686         if test -z "$PYTHON_LDFLAGS"; then
15687                 # (makes two attempts to ensure we've got a version number
15688                 # from the interpreter)
15689                 py_version=`$PYTHON -c "from distutils.sysconfig import *; \
15690                         from string import join; \
15691                         print join(get_config_vars('VERSION'))"`
15692                 if test "$py_version" = "None"; then
15693                         if test -n "$PYTHON_VERSION"; then
15694                                 py_version=$PYTHON_VERSION
15695                         else
15696                                 py_version=`$PYTHON -c "import sys; \
15697                                         print sys.version[:3]"`
15698                         fi
15699                 fi
15700
15701                 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
15702                         from string import join; \
15703                         print '-L' + get_python_lib(0,1), \
15704                         '-L' + os.path.dirname(get_python_lib(0,1)), \
15705                         '-lpython';"`$py_version
15706         fi
15707         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
15708 $as_echo "$PYTHON_LDFLAGS" >&6; }
15709
15710
15711         #
15712         # Check for site packages
15713         #
15714         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
15715 $as_echo_n "checking for Python site-packages path... " >&6; }
15716         if test -z "$PYTHON_SITE_PKG"; then
15717                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
15718                         print distutils.sysconfig.get_python_lib(1,0);"`
15719         fi
15720         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
15721 $as_echo "$PYTHON_SITE_PKG" >&6; }
15722
15723
15724         #
15725         # libraries which must be linked in when embedding
15726         #
15727         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
15728 $as_echo_n "checking python extra libraries... " >&6; }
15729         if test -z "$PYTHON_EXTRA_LIBS"; then
15730            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
15731                 conf = distutils.sysconfig.get_config_var; \
15732                 print conf('LOCALMODLIBS'), conf('LIBS')"`
15733         fi
15734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
15735 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
15736
15737
15738         #
15739         # linking flags needed when embedding
15740         #
15741         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
15742 $as_echo_n "checking python extra linking flags... " >&6; }
15743         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
15744                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
15745                         conf = distutils.sysconfig.get_config_var; \
15746                         print conf('LINKFORSHARED')"`
15747         fi
15748         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
15749 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
15750
15751
15752         #
15753         # final check to see if everything compiles alright
15754         #
15755         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
15756 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
15757         ac_ext=c
15758 ac_cpp='$CPP $CPPFLAGS'
15759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15762
15763         # save current global flags
15764         ac_save_LIBS="$LIBS"
15765         ac_save_CPPFLAGS="$CPPFLAGS"
15766
15767         LIBS="$LIBS $PYTHON_LDFLAGS"
15768         CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
15769         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15770 /* end confdefs.h.  */
15771
15772                 #include <Python.h>
15773
15774 int
15775 main ()
15776 {
15777
15778                 Py_Initialize();
15779
15780   ;
15781   return 0;
15782 }
15783 _ACEOF
15784 if ac_fn_c_try_link "$LINENO"; then :
15785   pythonexists=yes
15786 else
15787   pythonexists=no
15788 fi
15789 rm -f core conftest.err conftest.$ac_objext \
15790     conftest$ac_exeext conftest.$ac_ext
15791
15792         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
15793 $as_echo "$pythonexists" >&6; }
15794
15795         if test ! "$pythonexists" = "yes"; then
15796            as_fn_error $? "
15797   Could not link test program to Python. Maybe the main Python library has been
15798   installed in some non-standard library path. If so, pass it to configure,
15799   via the LDFLAGS environment variable.
15800   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
15801   ============================================================================
15802    ERROR!
15803    You probably have to install the development version of the Python package
15804    for your distribution.  The exact name of this package varies among them.
15805   ============================================================================
15806            " "$LINENO" 5
15807           PYTHON_VERSION=""
15808         fi
15809         ac_ext=c
15810 ac_cpp='$CPP $CPPFLAGS'
15811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15814
15815         # turn back to default flags
15816         CPPFLAGS="$ac_save_CPPFLAGS"
15817         LIBS="$ac_save_LIBS"
15818
15819         #
15820         # all done!
15821         #
15822
15823    if test ! -z "$PYTHON_VERSION"; then
15824         if test `$PYTHON -c "print '$PYTHON_VERSION' >= '2.4.0'"` = "False"; then
15825                 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
15826         fi
15827
15828       # Have Python
15829
15830 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
15831
15832       LIBS="$PYTHON_LDFLAGS $LIBS"
15833       CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
15834       ub_have_python=yes
15835
15836       # Check for SWIG
15837       ub_have_swig=no
15838
15839         # Extract the first word of "swig", so it can be a program name with args.
15840 set dummy swig; ac_word=$2
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15842 $as_echo_n "checking for $ac_word... " >&6; }
15843 if ${ac_cv_path_SWIG+:} false; then :
15844   $as_echo_n "(cached) " >&6
15845 else
15846   case $SWIG in
15847   [\\/]* | ?:[\\/]*)
15848   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
15849   ;;
15850   *)
15851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15852 for as_dir in $PATH
15853 do
15854   IFS=$as_save_IFS
15855   test -z "$as_dir" && as_dir=.
15856     for ac_exec_ext in '' $ac_executable_extensions; do
15857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15858     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
15859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15860     break 2
15861   fi
15862 done
15863   done
15864 IFS=$as_save_IFS
15865
15866   ;;
15867 esac
15868 fi
15869 SWIG=$ac_cv_path_SWIG
15870 if test -n "$SWIG"; then
15871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
15872 $as_echo "$SWIG" >&6; }
15873 else
15874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15875 $as_echo "no" >&6; }
15876 fi
15877
15878
15879         if test -z "$SWIG" ; then
15880                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
15881 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
15882                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
15883         elif test -n "" ; then
15884                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
15885 $as_echo_n "checking for SWIG version... " >&6; }
15886                 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'`
15887                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
15888 $as_echo "$swig_version" >&6; }
15889                 if test -n "$swig_version" ; then
15890                         # Calculate the required version number components
15891                         required=
15892                         required_major=`echo $required | sed 's/[^0-9].*//'`
15893                         if test -z "$required_major" ; then
15894                                 required_major=0
15895                         fi
15896                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15897                         required_minor=`echo $required | sed 's/[^0-9].*//'`
15898                         if test -z "$required_minor" ; then
15899                                 required_minor=0
15900                         fi
15901                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15902                         required_patch=`echo $required | sed 's/[^0-9].*//'`
15903                         if test -z "$required_patch" ; then
15904                                 required_patch=0
15905                         fi
15906                         # Calculate the available version number components
15907                         available=$swig_version
15908                         available_major=`echo $available | sed 's/[^0-9].*//'`
15909                         if test -z "$available_major" ; then
15910                                 available_major=0
15911                         fi
15912                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15913                         available_minor=`echo $available | sed 's/[^0-9].*//'`
15914                         if test -z "$available_minor" ; then
15915                                 available_minor=0
15916                         fi
15917                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15918                         available_patch=`echo $available | sed 's/[^0-9].*//'`
15919                         if test -z "$available_patch" ; then
15920                                 available_patch=0
15921                         fi
15922                         if test $available_major -ne $required_major \
15923                                 -o $available_minor -ne $required_minor \
15924                                 -o $available_patch -lt $required_patch ; then
15925                                 { $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
15926 $as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
15927                                 SWIG='echo "Error: SWIG version >=  is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
15928                         else
15929                                 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
15930 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
15931                                 SWIG_LIB=`$SWIG -swiglib`
15932                                 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
15933 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
15934                         fi
15935                 else
15936                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
15937 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
15938                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
15939                 fi
15940         fi
15941
15942
15943       { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
15944 $as_echo_n "checking SWIG... " >&6; }
15945       if test ! -x "$SWIG"; then
15946          as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
15947       else
15948
15949 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
15950
15951          swig="$SWIG"
15952
15953          { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
15954 $as_echo "present" >&6; }
15955
15956          # If have Python & SWIG
15957          # Declare PythonMod
15958          if test x_$ub_with_pythonmod != x_no; then
15959
15960 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
15961
15962             WITH_PYTHONMODULE=yes
15963
15964             PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
15965
15966             PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
15967
15968             PYTHONMOD_INSTALL=pythonmod-install
15969
15970             PYTHONMOD_UNINSTALL=pythonmod-uninstall
15971
15972          fi
15973
15974          # Declare PyUnbound
15975          if test x_$ub_with_pyunbound != x_no; then
15976
15977 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
15978
15979             WITH_PYUNBOUND=yes
15980
15981             PYUNBOUND_OBJ="libunbound_wrap.lo"
15982
15983             PYUNBOUND_TARGET="_unbound.la"
15984
15985             PYUNBOUND_INSTALL=pyunbound-install
15986
15987             PYUNBOUND_UNINSTALL=pyunbound-uninstall
15988
15989          fi
15990       fi
15991    else
15992       { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
15993 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
15994       ub_with_pyunbound=no
15995       ub_with_pythonmod=no
15996    fi
15997 fi
15998
15999 if test "`uname`" = "NetBSD"; then
16000         NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
16001
16002 fi
16003 CONFIG_DATE=`date +%Y%m%d`
16004
16005
16006 # Checks for libraries.
16007
16008 # libnss
16009 USE_NSS="no"
16010
16011 # Check whether --with-nss was given.
16012 if test "${with_nss+set}" = set; then :
16013   withval=$with_nss;
16014         USE_NSS="yes"
16015
16016 $as_echo "#define HAVE_NSS 1" >>confdefs.h
16017
16018         if test "$withval" != "" -a "$withval" != "yes"; then
16019                 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
16020                 LDFLAGS="$LDFLAGS -L$withval/lib"
16021
16022         if test "x$enable_rpath" = xyes; then
16023                 if echo "$withval/lib" | grep "^/" >/dev/null; then
16024                         RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
16025                 fi
16026         fi
16027
16028                 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
16029         else
16030                 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
16031                 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
16032         fi
16033         LIBS="$LIBS -lnss3 -lnspr4"
16034
16035
16036 fi
16037
16038
16039 # openssl
16040 if test $USE_NSS = "no"; then
16041
16042
16043 # Check whether --with-ssl was given.
16044 if test "${with_ssl+set}" = set; then :
16045   withval=$with_ssl;
16046
16047 else
16048
16049             withval="yes"
16050
16051 fi
16052
16053     if test x_$withval = x_no; then
16054         as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
16055     fi
16056
16057     withval=$withval
16058     if test x_$withval != x_no; then
16059         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
16060 $as_echo_n "checking for SSL... " >&6; }
16061         if test x_$withval = x_ -o x_$withval = x_yes; then
16062             withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
16063         fi
16064         for dir in $withval; do
16065             ssldir="$dir"
16066             if test -f "$dir/include/openssl/ssl.h"; then
16067                 found_ssl="yes"
16068
16069 cat >>confdefs.h <<_ACEOF
16070 #define HAVE_SSL /**/
16071 _ACEOF
16072
16073                                 if test "$ssldir" != "/usr"; then
16074                         CPPFLAGS="$CPPFLAGS -I$ssldir/include"
16075                         LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
16076                 fi
16077                 break;
16078             fi
16079         done
16080         if test x_$found_ssl != x_yes; then
16081             as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
16082         else
16083             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
16084 $as_echo "found in $ssldir" >&6; }
16085             HAVE_SSL=yes
16086                         if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
16087                 LDFLAGS="$LDFLAGS -L$ssldir/lib"
16088                 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
16089
16090         if test "x$enable_rpath" = xyes; then
16091                 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
16092                         RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
16093                 fi
16094         fi
16095
16096             fi
16097
16098             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
16099 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
16100             LIBS="$LIBS -lcrypto"
16101             LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
16102             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103 /* end confdefs.h.  */
16104
16105 int
16106 main ()
16107 {
16108
16109                 int HMAC_CTX_init(void);
16110                 (void)HMAC_CTX_init();
16111
16112   ;
16113   return 0;
16114 }
16115 _ACEOF
16116 if ac_fn_c_try_link "$LINENO"; then :
16117
16118                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16119 $as_echo "yes" >&6; }
16120
16121 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16122
16123
16124 else
16125
16126                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16127 $as_echo "no" >&6; }
16128                 # check if -lwsock32 or -lgdi32 are needed.
16129                 BAKLIBS="$LIBS"
16130                 BAKSSLLIBS="$LIBSSL_LIBS"
16131                 LIBS="$LIBS -lgdi32"
16132                 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
16133                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
16134 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
16135                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16136 /* end confdefs.h.  */
16137
16138 int
16139 main ()
16140 {
16141
16142                     int HMAC_CTX_init(void);
16143                     (void)HMAC_CTX_init();
16144
16145   ;
16146   return 0;
16147 }
16148 _ACEOF
16149 if ac_fn_c_try_link "$LINENO"; then :
16150
16151
16152 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16153
16154                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16155 $as_echo "yes" >&6; }
16156
16157 else
16158
16159                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16160 $as_echo "no" >&6; }
16161                     LIBS="$BAKLIBS"
16162                     LIBSSL_LIBS="$BAKSSLLIBS"
16163                     LIBS="$LIBS -ldl"
16164                     LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16165                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
16166 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
16167                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h.  */
16169
16170 int
16171 main ()
16172 {
16173
16174                         int HMAC_CTX_init(void);
16175                         (void)HMAC_CTX_init();
16176
16177   ;
16178   return 0;
16179 }
16180 _ACEOF
16181 if ac_fn_c_try_link "$LINENO"; then :
16182
16183
16184 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16185
16186                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16187 $as_echo "yes" >&6; }
16188
16189 else
16190
16191                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16192 $as_echo "no" >&6; }
16193                     as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
16194
16195 fi
16196 rm -f core conftest.err conftest.$ac_objext \
16197     conftest$ac_exeext conftest.$ac_ext
16198
16199 fi
16200 rm -f core conftest.err conftest.$ac_objext \
16201     conftest$ac_exeext conftest.$ac_ext
16202
16203 fi
16204 rm -f core conftest.err conftest.$ac_objext \
16205     conftest$ac_exeext conftest.$ac_ext
16206         fi
16207
16208
16209         # openssl engine functionality needs dlopen().
16210         BAKLIBS="$LIBS"
16211         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16212 $as_echo_n "checking for library containing dlopen... " >&6; }
16213 if ${ac_cv_search_dlopen+:} false; then :
16214   $as_echo_n "(cached) " >&6
16215 else
16216   ac_func_search_save_LIBS=$LIBS
16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218 /* end confdefs.h.  */
16219
16220 /* Override any GCC internal prototype to avoid an error.
16221    Use char because int might match the return type of a GCC
16222    builtin and then its argument prototype would still apply.  */
16223 #ifdef __cplusplus
16224 extern "C"
16225 #endif
16226 char dlopen ();
16227 int
16228 main ()
16229 {
16230 return dlopen ();
16231   ;
16232   return 0;
16233 }
16234 _ACEOF
16235 for ac_lib in '' dl; do
16236   if test -z "$ac_lib"; then
16237     ac_res="none required"
16238   else
16239     ac_res=-l$ac_lib
16240     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16241   fi
16242   if ac_fn_c_try_link "$LINENO"; then :
16243   ac_cv_search_dlopen=$ac_res
16244 fi
16245 rm -f core conftest.err conftest.$ac_objext \
16246     conftest$ac_exeext
16247   if ${ac_cv_search_dlopen+:} false; then :
16248   break
16249 fi
16250 done
16251 if ${ac_cv_search_dlopen+:} false; then :
16252
16253 else
16254   ac_cv_search_dlopen=no
16255 fi
16256 rm conftest.$ac_ext
16257 LIBS=$ac_func_search_save_LIBS
16258 fi
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16260 $as_echo "$ac_cv_search_dlopen" >&6; }
16261 ac_res=$ac_cv_search_dlopen
16262 if test "$ac_res" != no; then :
16263   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16264
16265 fi
16266
16267         if test "$LIBS" != "$BAKLIBS"; then
16268                 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16269         fi
16270     fi
16271 for ac_header in openssl/ssl.h
16272 do :
16273   ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
16274 "
16275 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
16276   cat >>confdefs.h <<_ACEOF
16277 #define HAVE_OPENSSL_SSL_H 1
16278 _ACEOF
16279
16280 fi
16281
16282 done
16283
16284 for ac_header in openssl/err.h
16285 do :
16286   ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
16287 "
16288 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
16289   cat >>confdefs.h <<_ACEOF
16290 #define HAVE_OPENSSL_ERR_H 1
16291 _ACEOF
16292
16293 fi
16294
16295 done
16296
16297 for ac_header in openssl/rand.h
16298 do :
16299   ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
16300 "
16301 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
16302   cat >>confdefs.h <<_ACEOF
16303 #define HAVE_OPENSSL_RAND_H 1
16304 _ACEOF
16305
16306 fi
16307
16308 done
16309
16310
16311
16312
16313 # check if libssl needs libdl
16314 BAKLIBS="$LIBS"
16315 LIBS="-lssl $LIBS"
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
16317 $as_echo_n "checking if libssl needs libdl... " >&6; }
16318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16319 /* end confdefs.h.  */
16320
16321 /* Override any GCC internal prototype to avoid an error.
16322    Use char because int might match the return type of a GCC
16323    builtin and then its argument prototype would still apply.  */
16324 #ifdef __cplusplus
16325 extern "C"
16326 #endif
16327 char SSL_CTX_new ();
16328 int
16329 main ()
16330 {
16331 return SSL_CTX_new ();
16332   ;
16333   return 0;
16334 }
16335 _ACEOF
16336 if ac_fn_c_try_link "$LINENO"; then :
16337
16338         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16339 $as_echo "no" >&6; }
16340         LIBS="$BAKLIBS"
16341
16342 else
16343
16344         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16345 $as_echo "yes" >&6; }
16346         LIBS="$BAKLIBS"
16347         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16348 $as_echo_n "checking for library containing dlopen... " >&6; }
16349 if ${ac_cv_search_dlopen+:} false; then :
16350   $as_echo_n "(cached) " >&6
16351 else
16352   ac_func_search_save_LIBS=$LIBS
16353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354 /* end confdefs.h.  */
16355
16356 /* Override any GCC internal prototype to avoid an error.
16357    Use char because int might match the return type of a GCC
16358    builtin and then its argument prototype would still apply.  */
16359 #ifdef __cplusplus
16360 extern "C"
16361 #endif
16362 char dlopen ();
16363 int
16364 main ()
16365 {
16366 return dlopen ();
16367   ;
16368   return 0;
16369 }
16370 _ACEOF
16371 for ac_lib in '' dl; do
16372   if test -z "$ac_lib"; then
16373     ac_res="none required"
16374   else
16375     ac_res=-l$ac_lib
16376     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16377   fi
16378   if ac_fn_c_try_link "$LINENO"; then :
16379   ac_cv_search_dlopen=$ac_res
16380 fi
16381 rm -f core conftest.err conftest.$ac_objext \
16382     conftest$ac_exeext
16383   if ${ac_cv_search_dlopen+:} false; then :
16384   break
16385 fi
16386 done
16387 if ${ac_cv_search_dlopen+:} false; then :
16388
16389 else
16390   ac_cv_search_dlopen=no
16391 fi
16392 rm conftest.$ac_ext
16393 LIBS=$ac_func_search_save_LIBS
16394 fi
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16396 $as_echo "$ac_cv_search_dlopen" >&6; }
16397 ac_res=$ac_cv_search_dlopen
16398 if test "$ac_res" != no; then :
16399   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16400
16401 fi
16402
16403
16404 fi
16405 rm -f core conftest.err conftest.$ac_objext \
16406     conftest$ac_exeext conftest.$ac_ext
16407 for ac_header in openssl/conf.h
16408 do :
16409   ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default
16410 "
16411 if test "x$ac_cv_header_openssl_conf_h" = xyes; then :
16412   cat >>confdefs.h <<_ACEOF
16413 #define HAVE_OPENSSL_CONF_H 1
16414 _ACEOF
16415
16416 fi
16417
16418 done
16419
16420 for ac_header in openssl/engine.h
16421 do :
16422   ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default
16423 "
16424 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
16425   cat >>confdefs.h <<_ACEOF
16426 #define HAVE_OPENSSL_ENGINE_H 1
16427 _ACEOF
16428
16429 fi
16430
16431 done
16432
16433 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode
16434 do :
16435   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16436 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16437 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16438   cat >>confdefs.h <<_ACEOF
16439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16440 _ACEOF
16441
16442 fi
16443 done
16444
16445 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
16446 $ac_includes_default
16447 #ifdef HAVE_OPENSSL_ERR_H
16448 #include <openssl/err.h>
16449 #endif
16450
16451 #ifdef HAVE_OPENSSL_RAND_H
16452 #include <openssl/rand.h>
16453 #endif
16454
16455 #ifdef HAVE_OPENSSL_CONF_H
16456 #include <openssl/conf.h>
16457 #endif
16458
16459 #ifdef HAVE_OPENSSL_ENGINE_H
16460 #include <openssl/engine.h>
16461 #endif
16462 #include <openssl/ssl.h>
16463 #include <openssl/evp.h>
16464
16465 "
16466 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
16467   ac_have_decl=1
16468 else
16469   ac_have_decl=0
16470 fi
16471
16472 cat >>confdefs.h <<_ACEOF
16473 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
16474 _ACEOF
16475 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
16476 $ac_includes_default
16477 #ifdef HAVE_OPENSSL_ERR_H
16478 #include <openssl/err.h>
16479 #endif
16480
16481 #ifdef HAVE_OPENSSL_RAND_H
16482 #include <openssl/rand.h>
16483 #endif
16484
16485 #ifdef HAVE_OPENSSL_CONF_H
16486 #include <openssl/conf.h>
16487 #endif
16488
16489 #ifdef HAVE_OPENSSL_ENGINE_H
16490 #include <openssl/engine.h>
16491 #endif
16492 #include <openssl/ssl.h>
16493 #include <openssl/evp.h>
16494
16495 "
16496 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
16497   ac_have_decl=1
16498 else
16499   ac_have_decl=0
16500 fi
16501
16502 cat >>confdefs.h <<_ACEOF
16503 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
16504 _ACEOF
16505
16506 fi
16507
16508
16509 # Check whether --enable-sha2 was given.
16510 if test "${enable_sha2+set}" = set; then :
16511   enableval=$enable_sha2;
16512 fi
16513
16514 case "$enable_sha2" in
16515         no)
16516         ;;
16517         yes|*)
16518
16519 $as_echo "#define USE_SHA2 1" >>confdefs.h
16520
16521         ;;
16522 esac
16523
16524 # check wether gost also works
16525
16526 # Check whether --enable-gost was given.
16527 if test "${enable_gost+set}" = set; then :
16528   enableval=$enable_gost;
16529 fi
16530
16531 use_gost="no"
16532 if test $USE_NSS = "no"; then
16533 case "$enable_gost" in
16534         no)
16535         ;;
16536         *)
16537         ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
16538 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
16539   :
16540 else
16541   as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
16542 fi
16543
16544         ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
16545 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
16546
16547 else
16548   as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
16549 fi
16550
16551
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
16553 $as_echo_n "checking if GOST works... " >&6; }
16554 if test c${cross_compiling} = cno; then
16555 BAKCFLAGS="$CFLAGS"
16556 if test -n "$ssldir"; then
16557         CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
16558 fi
16559 if test "$cross_compiling" = yes; then :
16560   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16562 as_fn_error $? "cannot run test program while cross compiling
16563 See \`config.log' for more details" "$LINENO" 5; }
16564 else
16565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16566 /* end confdefs.h.  */
16567
16568 #include <string.h>
16569 #include <openssl/ssl.h>
16570 #include <openssl/evp.h>
16571 #include <openssl/engine.h>
16572 #include <openssl/conf.h>
16573 /* routine to load gost from ldns */
16574 int load_gost_id(void)
16575 {
16576         static int gost_id = 0;
16577         const EVP_PKEY_ASN1_METHOD* meth;
16578         ENGINE* e;
16579
16580         if(gost_id) return gost_id;
16581
16582         /* see if configuration loaded gost implementation from other engine*/
16583         meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
16584         if(meth) {
16585                 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16586                 return gost_id;
16587         }
16588
16589         /* see if engine can be loaded already */
16590         e = ENGINE_by_id("gost");
16591         if(!e) {
16592                 /* load it ourself, in case statically linked */
16593                 ENGINE_load_builtin_engines();
16594                 ENGINE_load_dynamic();
16595                 e = ENGINE_by_id("gost");
16596         }
16597         if(!e) {
16598                 /* no gost engine in openssl */
16599                 return 0;
16600         }
16601         if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
16602                 ENGINE_finish(e);
16603                 ENGINE_free(e);
16604                 return 0;
16605         }
16606
16607         meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
16608         if(!meth) {
16609                 /* algo not found */
16610                 ENGINE_finish(e);
16611                 ENGINE_free(e);
16612                 return 0;
16613         }
16614         EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16615         return gost_id;
16616 }
16617 int main(void) {
16618         EVP_MD_CTX* ctx;
16619         const EVP_MD* md;
16620         unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
16621         const char* str = "Hello world";
16622         const unsigned char check[] = {
16623                 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
16624                 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
16625                 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
16626                 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
16627         };
16628         OPENSSL_config(NULL);
16629         (void)load_gost_id();
16630         md = EVP_get_digestbyname("md_gost94");
16631         if(!md) return 1;
16632         memset(digest, 0, sizeof(digest));
16633         ctx = EVP_MD_CTX_create();
16634         if(!ctx) return 2;
16635         if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
16636         if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
16637         if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
16638         /* uncomment to see the hash calculated.
16639                 {int i;
16640                 for(i=0; i<32; i++)
16641                         printf(" %2.2x", (int)digest[i]);
16642                 printf("\n");}
16643         */
16644         if(memcmp(digest, check, sizeof(check)) != 0)
16645                 return 6;
16646         return 0;
16647 }
16648
16649 _ACEOF
16650 if ac_fn_c_try_run "$LINENO"; then :
16651   eval "ac_cv_c_gost_works=yes"
16652 else
16653   eval "ac_cv_c_gost_works=no"
16654 fi
16655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16656   conftest.$ac_objext conftest.beam conftest.$ac_ext
16657 fi
16658
16659 CFLAGS="$BAKCFLAGS"
16660 else
16661 eval "ac_cv_c_gost_works=maybe"
16662 fi
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
16664 $as_echo "$ac_cv_c_gost_works" >&6; }
16665
16666         if test "$ac_cv_c_gost_works" != no; then
16667                 use_gost="yes"
16668
16669 $as_echo "#define USE_GOST 1" >>confdefs.h
16670
16671         fi
16672         ;;
16673 esac
16674 fi
16675 # Check whether --enable-ecdsa was given.
16676 if test "${enable_ecdsa+set}" = set; then :
16677   enableval=$enable_ecdsa;
16678 fi
16679
16680 use_ecdsa="no"
16681 case "$enable_ecdsa" in
16682     no)
16683       ;;
16684     *)
16685       if test $USE_NSS = "no"; then
16686               ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
16687 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
16688
16689 else
16690   as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16691 fi
16692
16693               ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
16694 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
16695
16696 else
16697   as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16698 fi
16699
16700               ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
16701 #include <openssl/evp.h>
16702
16703 "
16704 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
16705   ac_have_decl=1
16706 else
16707   ac_have_decl=0
16708 fi
16709
16710 cat >>confdefs.h <<_ACEOF
16711 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
16712 _ACEOF
16713 if test $ac_have_decl = 1; then :
16714
16715 else
16716   as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16717 fi
16718 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
16719 #include <openssl/evp.h>
16720
16721 "
16722 if test "x$ac_cv_have_decl_NID_secp384r1" = 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_NID_SECP384R1 $ac_have_decl
16730 _ACEOF
16731 if test $ac_have_decl = 1; then :
16732
16733 else
16734   as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16735 fi
16736
16737               # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
16738               { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
16739 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
16740               if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
16741                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16742 $as_echo "no" >&6; }
16743
16744 cat >>confdefs.h <<_ACEOF
16745 #define USE_ECDSA_EVP_WORKAROUND 1
16746 _ACEOF
16747
16748               else
16749                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16750 $as_echo "yes" >&6; }
16751               fi
16752       fi
16753       # we now know we have ECDSA and the required curves.
16754
16755 cat >>confdefs.h <<_ACEOF
16756 #define USE_ECDSA 1
16757 _ACEOF
16758
16759       use_ecdsa="yes"
16760       ;;
16761 esac
16762
16763 # check for libevent
16764
16765 # Check whether --with-libevent was given.
16766 if test "${with_libevent+set}" = set; then :
16767   withval=$with_libevent;
16768 else
16769    withval="no"
16770 fi
16771
16772 if test x_$withval = x_yes -o x_$withval != x_no; then
16773         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
16774 $as_echo_n "checking for libevent... " >&6; }
16775         if test x_$withval = x_ -o x_$withval = x_yes; then
16776             withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
16777         fi
16778         for dir in $withval; do
16779             thedir="$dir"
16780             if test -f "$dir/include/event.h"; then
16781                 found_libevent="yes"
16782                                 if test "$thedir" != "/usr"; then
16783                     CPPFLAGS="$CPPFLAGS -I$thedir/include"
16784                 fi
16785                 break;
16786             fi
16787         done
16788         if test x_$found_libevent != x_yes; then
16789                 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
16790                         # libevent source directory
16791                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
16792 $as_echo "found in $thedir" >&6; }
16793                         CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
16794                         BAK_LDFLAGS_SET="1"
16795                         BAK_LDFLAGS="$LDFLAGS"
16796                         # remove evdns from linking
16797                         mkdir build >/dev/null 2>&1
16798                         mkdir build/libevent >/dev/null 2>&1
16799                         mkdir build/libevent/.libs >/dev/null 2>&1
16800                         ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
16801                         ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
16802                         ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
16803                         cp $ev_files_o build/libevent
16804                         cp $ev_files_lo build/libevent
16805                         cp $ev_files_libso build/libevent/.libs
16806                         LATE_LDFLAGS="build/libevent/*.lo -lm"
16807                         LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
16808                 else
16809                         as_fn_error $? "Cannot find the libevent library in $withval
16810 You can restart ./configure --with-libevent=no to use a builtin alternative.
16811 Please note that this alternative is not as capable as libevent when using
16812 large outgoing port ranges.  " "$LINENO" 5
16813                 fi
16814         else
16815             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
16816 $as_echo "found in $thedir" >&6; }
16817                     if test "$thedir" != "/usr" -a "$thedir" != ""; then
16818                 LDFLAGS="$LDFLAGS -L$thedir/lib"
16819
16820         if test "x$enable_rpath" = xyes; then
16821                 if echo "$thedir/lib" | grep "^/" >/dev/null; then
16822                         RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
16823                 fi
16824         fi
16825
16826             fi
16827         fi
16828         # check for library used by libevent after 1.3c
16829         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
16830 $as_echo_n "checking for library containing clock_gettime... " >&6; }
16831 if ${ac_cv_search_clock_gettime+:} false; then :
16832   $as_echo_n "(cached) " >&6
16833 else
16834   ac_func_search_save_LIBS=$LIBS
16835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16836 /* end confdefs.h.  */
16837
16838 /* Override any GCC internal prototype to avoid an error.
16839    Use char because int might match the return type of a GCC
16840    builtin and then its argument prototype would still apply.  */
16841 #ifdef __cplusplus
16842 extern "C"
16843 #endif
16844 char clock_gettime ();
16845 int
16846 main ()
16847 {
16848 return clock_gettime ();
16849   ;
16850   return 0;
16851 }
16852 _ACEOF
16853 for ac_lib in '' rt; do
16854   if test -z "$ac_lib"; then
16855     ac_res="none required"
16856   else
16857     ac_res=-l$ac_lib
16858     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16859   fi
16860   if ac_fn_c_try_link "$LINENO"; then :
16861   ac_cv_search_clock_gettime=$ac_res
16862 fi
16863 rm -f core conftest.err conftest.$ac_objext \
16864     conftest$ac_exeext
16865   if ${ac_cv_search_clock_gettime+:} false; then :
16866   break
16867 fi
16868 done
16869 if ${ac_cv_search_clock_gettime+:} false; then :
16870
16871 else
16872   ac_cv_search_clock_gettime=no
16873 fi
16874 rm conftest.$ac_ext
16875 LIBS=$ac_func_search_save_LIBS
16876 fi
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
16878 $as_echo "$ac_cv_search_clock_gettime" >&6; }
16879 ac_res=$ac_cv_search_clock_gettime
16880 if test "$ac_res" != no; then :
16881   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16882
16883 fi
16884
16885
16886         # is the event.h header libev or libevent?
16887         for ac_header in event.h
16888 do :
16889   ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
16890 "
16891 if test "x$ac_cv_header_event_h" = xyes; then :
16892   cat >>confdefs.h <<_ACEOF
16893 #define HAVE_EVENT_H 1
16894 _ACEOF
16895
16896 fi
16897
16898 done
16899
16900         ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
16901 #include <event.h>
16902
16903 "
16904 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
16905
16906                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
16907 $as_echo_n "checking for library containing event_set... " >&6; }
16908 if ${ac_cv_search_event_set+:} false; then :
16909   $as_echo_n "(cached) " >&6
16910 else
16911   ac_func_search_save_LIBS=$LIBS
16912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16913 /* end confdefs.h.  */
16914
16915 /* Override any GCC internal prototype to avoid an error.
16916    Use char because int might match the return type of a GCC
16917    builtin and then its argument prototype would still apply.  */
16918 #ifdef __cplusplus
16919 extern "C"
16920 #endif
16921 char event_set ();
16922 int
16923 main ()
16924 {
16925 return event_set ();
16926   ;
16927   return 0;
16928 }
16929 _ACEOF
16930 for ac_lib in '' ev; do
16931   if test -z "$ac_lib"; then
16932     ac_res="none required"
16933   else
16934     ac_res=-l$ac_lib
16935     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16936   fi
16937   if ac_fn_c_try_link "$LINENO"; then :
16938   ac_cv_search_event_set=$ac_res
16939 fi
16940 rm -f core conftest.err conftest.$ac_objext \
16941     conftest$ac_exeext
16942   if ${ac_cv_search_event_set+:} false; then :
16943   break
16944 fi
16945 done
16946 if ${ac_cv_search_event_set+:} false; then :
16947
16948 else
16949   ac_cv_search_event_set=no
16950 fi
16951 rm conftest.$ac_ext
16952 LIBS=$ac_func_search_save_LIBS
16953 fi
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
16955 $as_echo "$ac_cv_search_event_set" >&6; }
16956 ac_res=$ac_cv_search_event_set
16957 if test "$ac_res" != no; then :
16958   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16959
16960 fi
16961
16962
16963 else
16964
16965                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
16966 $as_echo_n "checking for library containing event_set... " >&6; }
16967 if ${ac_cv_search_event_set+:} false; then :
16968   $as_echo_n "(cached) " >&6
16969 else
16970   ac_func_search_save_LIBS=$LIBS
16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972 /* end confdefs.h.  */
16973
16974 /* Override any GCC internal prototype to avoid an error.
16975    Use char because int might match the return type of a GCC
16976    builtin and then its argument prototype would still apply.  */
16977 #ifdef __cplusplus
16978 extern "C"
16979 #endif
16980 char event_set ();
16981 int
16982 main ()
16983 {
16984 return event_set ();
16985   ;
16986   return 0;
16987 }
16988 _ACEOF
16989 for ac_lib in '' event; do
16990   if test -z "$ac_lib"; then
16991     ac_res="none required"
16992   else
16993     ac_res=-l$ac_lib
16994     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16995   fi
16996   if ac_fn_c_try_link "$LINENO"; then :
16997   ac_cv_search_event_set=$ac_res
16998 fi
16999 rm -f core conftest.err conftest.$ac_objext \
17000     conftest$ac_exeext
17001   if ${ac_cv_search_event_set+:} false; then :
17002   break
17003 fi
17004 done
17005 if ${ac_cv_search_event_set+:} false; then :
17006
17007 else
17008   ac_cv_search_event_set=no
17009 fi
17010 rm conftest.$ac_ext
17011 LIBS=$ac_func_search_save_LIBS
17012 fi
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17014 $as_echo "$ac_cv_search_event_set" >&6; }
17015 ac_res=$ac_cv_search_event_set
17016 if test "$ac_res" != no; then :
17017   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17018
17019 fi
17020
17021
17022 fi
17023
17024         for ac_func in event_base_free
17025 do :
17026   ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
17027 if test "x$ac_cv_func_event_base_free" = xyes; then :
17028   cat >>confdefs.h <<_ACEOF
17029 #define HAVE_EVENT_BASE_FREE 1
17030 _ACEOF
17031
17032 fi
17033 done
17034  # only in libevent 1.2 and later
17035         for ac_func in event_base_once
17036 do :
17037   ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
17038 if test "x$ac_cv_func_event_base_once" = xyes; then :
17039   cat >>confdefs.h <<_ACEOF
17040 #define HAVE_EVENT_BASE_ONCE 1
17041 _ACEOF
17042
17043 fi
17044 done
17045  # only in libevent 1.4.1 and later
17046         for ac_func in event_base_new
17047 do :
17048   ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
17049 if test "x$ac_cv_func_event_base_new" = xyes; then :
17050   cat >>confdefs.h <<_ACEOF
17051 #define HAVE_EVENT_BASE_NEW 1
17052 _ACEOF
17053
17054 fi
17055 done
17056  # only in libevent 1.4.1 and later
17057         for ac_func in event_base_get_method
17058 do :
17059   ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
17060 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
17061   cat >>confdefs.h <<_ACEOF
17062 #define HAVE_EVENT_BASE_GET_METHOD 1
17063 _ACEOF
17064
17065 fi
17066 done
17067  # only in libevent 1.4.3 and later
17068         for ac_func in ev_loop
17069 do :
17070   ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
17071 if test "x$ac_cv_func_ev_loop" = xyes; then :
17072   cat >>confdefs.h <<_ACEOF
17073 #define HAVE_EV_LOOP 1
17074 _ACEOF
17075
17076 fi
17077 done
17078  # only in libev. (tested on 3.51)
17079         for ac_func in ev_default_loop
17080 do :
17081   ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
17082 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
17083   cat >>confdefs.h <<_ACEOF
17084 #define HAVE_EV_DEFAULT_LOOP 1
17085 _ACEOF
17086
17087 fi
17088 done
17089  # only in libev. (tested on 4.00)
17090         if test -n "$BAK_LDFLAGS_SET"; then
17091                 LDFLAGS="$BAK_LDFLAGS"
17092         fi
17093 else
17094
17095 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
17096
17097 fi
17098
17099 # check for libexpat
17100
17101 # Check whether --with-libexpat was given.
17102 if test "${with_libexpat+set}" = set; then :
17103   withval=$with_libexpat;
17104 else
17105    withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17106 fi
17107
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
17109 $as_echo_n "checking for libexpat... " >&6; }
17110 found_libexpat="no"
17111 for dir in $withval ; do
17112             if test -f "$dir/include/expat.h"; then
17113                 found_libexpat="yes"
17114                                 if test "$dir" != "/usr"; then
17115                     CPPFLAGS="$CPPFLAGS -I$dir/include"
17116                     LDFLAGS="$LDFLAGS -L$dir/lib"
17117                 fi
17118                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
17119 $as_echo "found in $dir" >&6; }
17120                 break;
17121             fi
17122 done
17123 if test x_$found_libexpat != x_yes; then
17124         as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
17125 fi
17126 for ac_header in expat.h
17127 do :
17128   ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
17129 "
17130 if test "x$ac_cv_header_expat_h" = xyes; then :
17131   cat >>confdefs.h <<_ACEOF
17132 #define HAVE_EXPAT_H 1
17133 _ACEOF
17134
17135 fi
17136
17137 done
17138
17139
17140 # set static linking if requested
17141
17142 staticexe=""
17143 # Check whether --enable-static-exe was given.
17144 if test "${enable_static_exe+set}" = set; then :
17145   enableval=$enable_static_exe;
17146 fi
17147
17148 if test x_$enable_static_exe = x_yes; then
17149         staticexe="-static"
17150         if test "$on_mingw" = yes; then
17151                 staticexe="-all-static"
17152                 # for static crosscompile, include gdi32 and zlib here.
17153                 if test "`uname`" = "Linux"; then
17154                         LIBS="$LIBS -lgdi32 -lz"
17155                 fi
17156         fi
17157 fi
17158
17159 # set lock checking if requested
17160 # Check whether --enable-lock_checks was given.
17161 if test "${enable_lock_checks+set}" = set; then :
17162   enableval=$enable_lock_checks;
17163 fi
17164
17165 if test x_$enable_lock_checks = x_yes; then
17166
17167 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
17168
17169         CHECKLOCK_OBJ="checklocks.lo"
17170
17171 fi
17172
17173
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
17175 $as_echo_n "checking for getaddrinfo... " >&6; }
17176 ac_cv_func_getaddrinfo=no
17177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17178 /* end confdefs.h.  */
17179
17180 #ifdef __cplusplus
17181 extern "C"
17182 {
17183 #endif
17184 char* getaddrinfo();
17185 char* (*f) () = getaddrinfo;
17186 #ifdef __cplusplus
17187 }
17188 #endif
17189 int main() {
17190         ;
17191         return 0;
17192 }
17193
17194 _ACEOF
17195 if ac_fn_c_try_link "$LINENO"; then :
17196   ac_cv_func_getaddrinfo="yes"
17197 if test "$ac_cv_header_windows_h" = "yes"; then
17198
17199 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17200
17201         USE_WINSOCK="1"
17202         LIBS="$LIBS -lws2_32"
17203 fi
17204
17205 else
17206   ORIGLIBS="$LIBS"
17207 LIBS="$LIBS -lws2_32"
17208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17209 /* end confdefs.h.  */
17210
17211 #ifdef HAVE_WS2TCPIP_H
17212 #include <ws2tcpip.h>
17213 #endif
17214
17215 int
17216 main ()
17217 {
17218
17219         (void)getaddrinfo(NULL, NULL, NULL, NULL);
17220
17221
17222   ;
17223   return 0;
17224 }
17225 _ACEOF
17226 if ac_fn_c_try_link "$LINENO"; then :
17227
17228 ac_cv_func_getaddrinfo="yes"
17229
17230 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17231
17232 USE_WINSOCK="1"
17233
17234 else
17235
17236 ac_cv_func_getaddrinfo="no"
17237 LIBS="$ORIGLIBS"
17238
17239 fi
17240 rm -f core conftest.err conftest.$ac_objext \
17241     conftest$ac_exeext conftest.$ac_ext
17242
17243 fi
17244 rm -f core conftest.err conftest.$ac_objext \
17245     conftest$ac_exeext conftest.$ac_ext
17246
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
17248 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
17249 if test $ac_cv_func_getaddrinfo = yes; then
17250
17251 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17252
17253 fi
17254
17255 if test "$USE_WINSOCK" = 1; then
17256
17257 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
17258
17259         for ac_header in iphlpapi.h
17260 do :
17261   ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
17262 #include <windows.h>
17263
17264 "
17265 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
17266   cat >>confdefs.h <<_ACEOF
17267 #define HAVE_IPHLPAPI_H 1
17268 _ACEOF
17269
17270 fi
17271
17272 done
17273
17274         if test -n "$ac_tool_prefix"; then
17275   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17276 set dummy ${ac_tool_prefix}windres; ac_word=$2
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17278 $as_echo_n "checking for $ac_word... " >&6; }
17279 if ${ac_cv_prog_WINDRES+:} false; then :
17280   $as_echo_n "(cached) " >&6
17281 else
17282   if test -n "$WINDRES"; then
17283   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17284 else
17285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17286 for as_dir in $PATH
17287 do
17288   IFS=$as_save_IFS
17289   test -z "$as_dir" && as_dir=.
17290     for ac_exec_ext in '' $ac_executable_extensions; do
17291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17292     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
17293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17294     break 2
17295   fi
17296 done
17297   done
17298 IFS=$as_save_IFS
17299
17300 fi
17301 fi
17302 WINDRES=$ac_cv_prog_WINDRES
17303 if test -n "$WINDRES"; then
17304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
17305 $as_echo "$WINDRES" >&6; }
17306 else
17307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17308 $as_echo "no" >&6; }
17309 fi
17310
17311
17312 fi
17313 if test -z "$ac_cv_prog_WINDRES"; then
17314   ac_ct_WINDRES=$WINDRES
17315   # Extract the first word of "windres", so it can be a program name with args.
17316 set dummy windres; ac_word=$2
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17318 $as_echo_n "checking for $ac_word... " >&6; }
17319 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
17320   $as_echo_n "(cached) " >&6
17321 else
17322   if test -n "$ac_ct_WINDRES"; then
17323   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17324 else
17325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17326 for as_dir in $PATH
17327 do
17328   IFS=$as_save_IFS
17329   test -z "$as_dir" && as_dir=.
17330     for ac_exec_ext in '' $ac_executable_extensions; do
17331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17332     ac_cv_prog_ac_ct_WINDRES="windres"
17333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17334     break 2
17335   fi
17336 done
17337   done
17338 IFS=$as_save_IFS
17339
17340 fi
17341 fi
17342 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17343 if test -n "$ac_ct_WINDRES"; then
17344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
17345 $as_echo "$ac_ct_WINDRES" >&6; }
17346 else
17347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17348 $as_echo "no" >&6; }
17349 fi
17350
17351   if test "x$ac_ct_WINDRES" = x; then
17352     WINDRES=""
17353   else
17354     case $cross_compiling:$ac_tool_warned in
17355 yes:)
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17358 ac_tool_warned=yes ;;
17359 esac
17360     WINDRES=$ac_ct_WINDRES
17361   fi
17362 else
17363   WINDRES="$ac_cv_prog_WINDRES"
17364 fi
17365
17366         LIBS="$LIBS -liphlpapi"
17367         WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
17368
17369         WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
17370
17371         WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
17372
17373         WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
17374
17375         WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
17376
17377         WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
17378
17379         WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
17380
17381         WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
17382
17383 fi
17384 if test $ac_cv_func_getaddrinfo = no; then
17385         case " $LIBOBJS " in
17386   *" fake-rfc2553.$ac_objext "* ) ;;
17387   *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
17388  ;;
17389 esac
17390
17391 fi
17392 # check after getaddrinfo for its libraries
17393
17394 # check ioctlsocket
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
17396 $as_echo_n "checking for ioctlsocket... " >&6; }
17397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17398 /* end confdefs.h.  */
17399
17400 #ifdef HAVE_WINSOCK2_H
17401 #include <winsock2.h>
17402 #endif
17403
17404 int
17405 main ()
17406 {
17407
17408         (void)ioctlsocket(0, 0, NULL);
17409
17410   ;
17411   return 0;
17412 }
17413 _ACEOF
17414 if ac_fn_c_try_link "$LINENO"; then :
17415
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17417 $as_echo "yes" >&6; }
17418
17419 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
17420
17421
17422 else
17423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17424 $as_echo "no" >&6; }
17425 fi
17426 rm -f core conftest.err conftest.$ac_objext \
17427     conftest$ac_exeext conftest.$ac_ext
17428
17429
17430 # see if daemon(3) exists, and if it is deprecated.
17431 for ac_func in daemon
17432 do :
17433   ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
17434 if test "x$ac_cv_func_daemon" = xyes; then :
17435   cat >>confdefs.h <<_ACEOF
17436 #define HAVE_DAEMON 1
17437 _ACEOF
17438
17439 fi
17440 done
17441
17442 if test $ac_cv_func_daemon = yes; then
17443
17444
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
17446 $as_echo_n "checking if daemon is deprecated... " >&6; }
17447 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
17448 if eval \${cv_cc_deprecated_$cache+:} false; then :
17449   $as_echo_n "(cached) " >&6
17450 else
17451
17452 echo '
17453 #include <stdlib.h>
17454 ' >conftest.c
17455 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
17456 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
17457 eval "cv_cc_deprecated_$cache=no"
17458 else
17459 eval "cv_cc_deprecated_$cache=yes"
17460 fi
17461 rm -f conftest conftest.o conftest.c
17462
17463 fi
17464
17465 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17467 $as_echo "yes" >&6; }
17468
17469 cat >>confdefs.h <<_ACEOF
17470 #define DEPRECATED_DAEMON 1
17471 _ACEOF
17472
17473 :
17474
17475 else
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17477 $as_echo "no" >&6; }
17478 :
17479
17480 fi
17481
17482 fi
17483
17484 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
17485 $ac_includes_default
17486 #if HAVE_SYS_PARAM_H
17487 #include <sys/param.h>
17488 #endif
17489
17490 #ifdef HAVE_SYS_SOCKET_H
17491 #include <sys/socket.h>
17492 #endif
17493
17494 #ifdef HAVE_SYS_UIO_H
17495 #include <sys/uio.h>
17496 #endif
17497
17498 #ifdef HAVE_NETINET_IN_H
17499 #include <netinet/in.h>
17500 #endif
17501
17502 #ifdef HAVE_ARPA_INET_H
17503 #include <arpa/inet.h>
17504 #endif
17505
17506 #ifdef HAVE_WINSOCK2_H
17507 #include <winsock2.h>
17508 #endif
17509
17510 #ifdef HAVE_WS2TCPIP_H
17511 #include <ws2tcpip.h>
17512 #endif
17513
17514 "
17515 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
17516
17517 cat >>confdefs.h <<_ACEOF
17518 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
17519 _ACEOF
17520
17521
17522 fi
17523
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
17525 $as_echo_n "checking for library containing setusercontext... " >&6; }
17526 if ${ac_cv_search_setusercontext+:} false; then :
17527   $as_echo_n "(cached) " >&6
17528 else
17529   ac_func_search_save_LIBS=$LIBS
17530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531 /* end confdefs.h.  */
17532
17533 /* Override any GCC internal prototype to avoid an error.
17534    Use char because int might match the return type of a GCC
17535    builtin and then its argument prototype would still apply.  */
17536 #ifdef __cplusplus
17537 extern "C"
17538 #endif
17539 char setusercontext ();
17540 int
17541 main ()
17542 {
17543 return setusercontext ();
17544   ;
17545   return 0;
17546 }
17547 _ACEOF
17548 for ac_lib in '' util; do
17549   if test -z "$ac_lib"; then
17550     ac_res="none required"
17551   else
17552     ac_res=-l$ac_lib
17553     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17554   fi
17555   if ac_fn_c_try_link "$LINENO"; then :
17556   ac_cv_search_setusercontext=$ac_res
17557 fi
17558 rm -f core conftest.err conftest.$ac_objext \
17559     conftest$ac_exeext
17560   if ${ac_cv_search_setusercontext+:} false; then :
17561   break
17562 fi
17563 done
17564 if ${ac_cv_search_setusercontext+:} false; then :
17565
17566 else
17567   ac_cv_search_setusercontext=no
17568 fi
17569 rm conftest.$ac_ext
17570 LIBS=$ac_func_search_save_LIBS
17571 fi
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
17573 $as_echo "$ac_cv_search_setusercontext" >&6; }
17574 ac_res=$ac_cv_search_setusercontext
17575 if test "$ac_res" != no; then :
17576   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17577
17578 fi
17579
17580 for ac_func in tzset sigprocmask fcntl getpwnam getrlimit setrlimit setsid sbrk chroot kill sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex
17581 do :
17582   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17583 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17584 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17585   cat >>confdefs.h <<_ACEOF
17586 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17587 _ACEOF
17588
17589 fi
17590 done
17591
17592 for ac_func in setresuid
17593 do :
17594   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
17595 if test "x$ac_cv_func_setresuid" = xyes; then :
17596   cat >>confdefs.h <<_ACEOF
17597 #define HAVE_SETRESUID 1
17598 _ACEOF
17599
17600 else
17601   for ac_func in setreuid
17602 do :
17603   ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
17604 if test "x$ac_cv_func_setreuid" = xyes; then :
17605   cat >>confdefs.h <<_ACEOF
17606 #define HAVE_SETREUID 1
17607 _ACEOF
17608
17609 fi
17610 done
17611
17612 fi
17613 done
17614
17615 for ac_func in setresgid
17616 do :
17617   ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
17618 if test "x$ac_cv_func_setresgid" = xyes; then :
17619   cat >>confdefs.h <<_ACEOF
17620 #define HAVE_SETRESGID 1
17621 _ACEOF
17622
17623 else
17624   for ac_func in setregid
17625 do :
17626   ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
17627 if test "x$ac_cv_func_setregid" = xyes; then :
17628   cat >>confdefs.h <<_ACEOF
17629 #define HAVE_SETREGID 1
17630 _ACEOF
17631
17632 fi
17633 done
17634
17635 fi
17636 done
17637
17638
17639 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
17640 if echo $build_os | grep darwin8 > /dev/null; then
17641
17642 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
17643
17644 fi
17645 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
17646 if test "x$ac_cv_func_inet_aton" = xyes; then :
17647   $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
17648
17649 else
17650   case " $LIBOBJS " in
17651   *" inet_aton.$ac_objext "* ) ;;
17652   *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
17653  ;;
17654 esac
17655
17656 fi
17657
17658
17659 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
17660 if test "x$ac_cv_func_inet_pton" = xyes; then :
17661   $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
17662
17663 else
17664   case " $LIBOBJS " in
17665   *" inet_pton.$ac_objext "* ) ;;
17666   *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
17667  ;;
17668 esac
17669
17670 fi
17671
17672
17673 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
17674 if test "x$ac_cv_func_inet_ntop" = xyes; then :
17675   $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
17676
17677 else
17678   case " $LIBOBJS " in
17679   *" inet_ntop.$ac_objext "* ) ;;
17680   *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
17681  ;;
17682 esac
17683
17684 fi
17685
17686
17687 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
17688 if test "x$ac_cv_func_snprintf" = xyes; then :
17689   $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
17690
17691 else
17692   case " $LIBOBJS " in
17693   *" snprintf.$ac_objext "* ) ;;
17694   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17695  ;;
17696 esac
17697
17698 fi
17699
17700
17701 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17702 if test "x$ac_cv_func_strlcpy" = xyes; then :
17703   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17704
17705 else
17706   case " $LIBOBJS " in
17707   *" strlcpy.$ac_objext "* ) ;;
17708   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17709  ;;
17710 esac
17711
17712 fi
17713
17714
17715 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
17716 if test "x$ac_cv_func_memmove" = xyes; then :
17717   $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
17718
17719 else
17720   case " $LIBOBJS " in
17721   *" memmove.$ac_objext "* ) ;;
17722   *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
17723  ;;
17724 esac
17725
17726 fi
17727
17728
17729 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
17730 if test "x$ac_cv_func_gmtime_r" = xyes; then :
17731   $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
17732
17733 else
17734   case " $LIBOBJS " in
17735   *" gmtime_r.$ac_objext "* ) ;;
17736   *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
17737  ;;
17738 esac
17739
17740 fi
17741
17742
17743 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
17744
17745 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
17746 if test "x$ac_cv_func_ctime_r" = xyes; then :
17747   $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
17748
17749 else
17750   case " $LIBOBJS " in
17751   *" ctime_r.$ac_objext "* ) ;;
17752   *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
17753  ;;
17754 esac
17755
17756 fi
17757
17758
17759
17760 # Check whether --enable-allsymbols was given.
17761 if test "${enable_allsymbols+set}" = set; then :
17762   enableval=$enable_allsymbols;
17763 fi
17764
17765 case "$enable_allsymbols" in
17766         yes)
17767         COMMON_OBJ_ALL_SYMBOLS=""
17768         UBSYMS=""
17769         EXTRALINK="-L. -L.libs -lunbound"
17770
17771 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
17772
17773         ;;
17774         no|*)
17775         COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
17776         UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
17777         EXTRALINK=""
17778         ;;
17779 esac
17780
17781
17782
17783 if test x_$enable_lock_checks = x_yes; then
17784         UBSYMS="-export-symbols clubsyms.def"
17785         cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
17786         echo lock_protect >> clubsyms.def
17787         echo lock_unprotect >> clubsyms.def
17788         echo lock_get_mem >> clubsyms.def
17789         echo checklock_start >> clubsyms.def
17790         echo checklock_stop >> clubsyms.def
17791         echo checklock_lock >> clubsyms.def
17792         echo checklock_unlock >> clubsyms.def
17793         echo checklock_init >> clubsyms.def
17794         echo checklock_thrcreate >> clubsyms.def
17795         echo checklock_thrjoin >> clubsyms.def
17796 fi
17797
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
17799 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
17800 # on openBSD, the implicit rule make $< work.
17801 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
17802 # gmake works.
17803 cat >conftest.make <<EOF
17804 all:    conftest.lo
17805
17806 conftest.lo foo.lo bla.lo:
17807         if test -f "\$<"; then touch \$@; fi
17808
17809 .SUFFIXES: .lo
17810 .c.lo:
17811         if test -f "\$<"; then touch \$@; fi
17812
17813 conftest.lo:        conftest.dir/conftest.c
17814 EOF
17815 mkdir conftest.dir
17816 touch conftest.dir/conftest.c
17817 rm -f conftest.lo conftest.c
17818 ${MAKE:-make} -f conftest.make >/dev/null
17819 rm -f conftest.make conftest.c conftest.dir/conftest.c
17820 rm -rf conftest.dir
17821 if test ! -f conftest.lo; then
17822         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17823 $as_echo "no" >&6; }
17824         SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
17825         SOURCEFILE='`cat .source`'
17826 else
17827         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17828 $as_echo "yes" >&6; }
17829         SOURCEDETERMINE=':'
17830         SOURCEFILE='$<'
17831 fi
17832 rm -f conftest.lo
17833
17834
17835
17836 # see if we want to build the library or everything
17837 ALLTARGET="alltargets"
17838
17839 # Check whether --with-libunbound-only was given.
17840 if test "${with_libunbound_only+set}" = set; then :
17841   withval=$with_libunbound_only;
17842         if test "$withval" = "yes"; then
17843                 ALLTARGET="lib"
17844         fi
17845
17846 fi
17847
17848
17849
17850 # check this after all other compilation checks, since the linking of the lib
17851 # may break checks after this.
17852
17853 # Check whether --with-ldns was given.
17854 if test "${with_ldns+set}" = set; then :
17855   withval=$with_ldns;
17856         if test "$withval" != "yes"; then
17857                 if test "$withval" != "/usr" -a "$withval" != ""; then
17858                         CPPFLAGS="-I$withval/include $CPPFLAGS"
17859                         LDFLAGS="-L$withval/lib $LDFLAGS"
17860
17861         if test "x$enable_rpath" = xyes; then
17862                 if echo "$withval/lib" | grep "^/" >/dev/null; then
17863                         RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17864                 fi
17865         fi
17866
17867                 fi
17868                 ldnsdir="$withval"
17869
17870         fi
17871
17872 fi
17873
17874
17875 # check if ldns is good enough
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns_rr_new in -lldns" >&5
17877 $as_echo_n "checking for ldns_rr_new in -lldns... " >&6; }
17878 if ${ac_cv_lib_ldns_ldns_rr_new+:} false; then :
17879   $as_echo_n "(cached) " >&6
17880 else
17881   ac_check_lib_save_LIBS=$LIBS
17882 LIBS="-lldns  $LIBS"
17883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17884 /* end confdefs.h.  */
17885
17886 /* Override any GCC internal prototype to avoid an error.
17887    Use char because int might match the return type of a GCC
17888    builtin and then its argument prototype would still apply.  */
17889 #ifdef __cplusplus
17890 extern "C"
17891 #endif
17892 char ldns_rr_new ();
17893 int
17894 main ()
17895 {
17896 return ldns_rr_new ();
17897   ;
17898   return 0;
17899 }
17900 _ACEOF
17901 if ac_fn_c_try_link "$LINENO"; then :
17902   ac_cv_lib_ldns_ldns_rr_new=yes
17903 else
17904   ac_cv_lib_ldns_ldns_rr_new=no
17905 fi
17906 rm -f core conftest.err conftest.$ac_objext \
17907     conftest$ac_exeext conftest.$ac_ext
17908 LIBS=$ac_check_lib_save_LIBS
17909 fi
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldns_ldns_rr_new" >&5
17911 $as_echo "$ac_cv_lib_ldns_ldns_rr_new" >&6; }
17912 if test "x$ac_cv_lib_ldns_ldns_rr_new" = xyes; then :
17913   cat >>confdefs.h <<_ACEOF
17914 #define HAVE_LIBLDNS 1
17915 _ACEOF
17916
17917   LIBS="-lldns $LIBS"
17918
17919 else
17920
17921         as_fn_error $? "No ldns library found, install the ldns library into system lib dir or use --with-ldns=path to other location.  The --with-ldns can point to the make-dir of ldns.  Install the package ldns or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5
17922
17923 fi
17924
17925 ac_fn_c_check_func "$LINENO" "ldns_buffer_copy" "ac_cv_func_ldns_buffer_copy"
17926 if test "x$ac_cv_func_ldns_buffer_copy" = xyes; then :
17927
17928 fi
17929
17930 if test $USE_NSS = "no"; then
17931     ac_fn_c_check_func "$LINENO" "ldns_key_buf2rsa_raw" "ac_cv_func_ldns_key_buf2rsa_raw"
17932 if test "x$ac_cv_func_ldns_key_buf2rsa_raw" = xyes; then :
17933
17934 fi
17935
17936 else
17937         ac_cv_func_ldns_key_buf2rsa_raw="yes"
17938 fi
17939 ac_fn_c_check_func "$LINENO" "ldns_get_random" "ac_cv_func_ldns_get_random"
17940 if test "x$ac_cv_func_ldns_get_random" = xyes; then :
17941
17942 fi
17943
17944 ac_fn_c_check_func "$LINENO" "ldns_b32_ntop_extended_hex" "ac_cv_func_ldns_b32_ntop_extended_hex"
17945 if test "x$ac_cv_func_ldns_b32_ntop_extended_hex" = xyes; then :
17946
17947 fi
17948
17949 if test x$use_gost = xyes -a x$USE_NSS = xno; then
17950     ac_fn_c_check_func "$LINENO" "ldns_key_EVP_load_gost_id" "ac_cv_func_ldns_key_EVP_load_gost_id"
17951 if test "x$ac_cv_func_ldns_key_EVP_load_gost_id" = xyes; then :
17952
17953 fi
17954
17955     for ac_func in ldns_key_EVP_unload_gost
17956 do :
17957   ac_fn_c_check_func "$LINENO" "ldns_key_EVP_unload_gost" "ac_cv_func_ldns_key_EVP_unload_gost"
17958 if test "x$ac_cv_func_ldns_key_EVP_unload_gost" = xyes; then :
17959   cat >>confdefs.h <<_ACEOF
17960 #define HAVE_LDNS_KEY_EVP_UNLOAD_GOST 1
17961 _ACEOF
17962
17963 fi
17964 done
17965
17966 else
17967         ac_cv_func_ldns_key_EVP_load_gost_id="yes"
17968 fi
17969 if test x$use_ecdsa = xyes; then
17970     ac_fn_c_check_decl "$LINENO" "LDNS_ECDSAP384SHA384" "ac_cv_have_decl_LDNS_ECDSAP384SHA384" "
17971 $ac_includes_default
17972 #ifdef HAVE_SYS_SOCKET_H
17973 #  include <sys/socket.h>
17974 #endif
17975 #ifdef HAVE_WS2TCPIP_H
17976 #  include <ws2tcpip.h>
17977 #endif
17978 #include <ldns/ldns.h>
17979
17980 "
17981 if test "x$ac_cv_have_decl_LDNS_ECDSAP384SHA384" = xyes; then :
17982
17983 fi
17984
17985 else
17986     ac_cv_have_decl_LDNS_ECDSAP384SHA384="yes"
17987 fi
17988 for ac_header in ldns/ldns.h
17989 do :
17990   ac_fn_c_check_header_compile "$LINENO" "ldns/ldns.h" "ac_cv_header_ldns_ldns_h" "$ac_includes_default
17991 #ifdef HAVE_SYS_SOCKET_H
17992 #include <sys/socket.h>
17993 #endif
17994
17995 #ifdef HAVE_NETINET_IN_H
17996 #include <netinet/in.h>
17997 #endif
17998
17999 #ifdef HAVE_ARPA_INET_H
18000 #include <arpa/inet.h>
18001 #endif
18002
18003 #ifdef HAVE_WINSOCK2_H
18004 #include <winsock2.h>
18005 #endif
18006
18007 #ifdef HAVE_WS2TCPIP_H
18008 #include <ws2tcpip.h>
18009 #endif
18010
18011 "
18012 if test "x$ac_cv_header_ldns_ldns_h" = xyes; then :
18013   cat >>confdefs.h <<_ACEOF
18014 #define HAVE_LDNS_LDNS_H 1
18015 _ACEOF
18016
18017 else
18018
18019         as_fn_error $? "No ldns include file found, install the ldns library development files.  Install package ldns-dev or ldns-devel or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5
18020
18021 fi
18022
18023 done
18024
18025 if test $ac_cv_func_ldns_buffer_copy = yes \
18026     -a $ac_cv_func_ldns_key_buf2rsa_raw = yes \
18027     -a $ac_cv_func_ldns_get_random = yes \
18028     -a $ac_cv_header_ldns_ldns_h = yes \
18029     -a $ac_cv_func_ldns_b32_ntop_extended_hex = yes \
18030     -a $ac_cv_func_ldns_key_EVP_load_gost_id = yes \
18031     -a $ac_cv_have_decl_LDNS_ECDSAP384SHA384 = yes; then
18032         :
18033 else
18034     as_fn_error $? "ldns library is not recent, update the ldns library, install it into system lib dir or use --with-ldns=path to other location.  The --with-ldns can point to the make-dir of ldns.  Package libldns or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5
18035 fi
18036
18037
18038   { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
18039 $as_echo "$as_me: Stripping extension flags..." >&6;}
18040
18041   if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
18042     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
18043
18044 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
18045
18046   fi
18047
18048
18049   if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
18050     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
18051
18052 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
18053
18054   fi
18055
18056
18057   if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
18058     CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
18059
18060 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
18061
18062   fi
18063
18064
18065   if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
18066     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
18067
18068 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
18069
18070   fi
18071
18072
18073   if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
18074     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
18075
18076 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
18077
18078   fi
18079
18080
18081   if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
18082     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
18083
18084 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
18085
18086   fi
18087
18088
18089   if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
18090     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
18091
18092 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
18093
18094   fi
18095
18096
18097   if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
18098     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
18099
18100 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
18101
18102   fi
18103
18104
18105 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
18106
18107
18108 cat >>confdefs.h <<_ACEOF
18109 #define MAXSYSLOGMSGLEN 10240
18110 _ACEOF
18111
18112
18113
18114
18115 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 smallapp/unbound-control-setup.sh"
18116
18117 ac_config_headers="$ac_config_headers config.h"
18118
18119 cat >confcache <<\_ACEOF
18120 # This file is a shell script that caches the results of configure
18121 # tests run on this system so they can be shared between configure
18122 # scripts and configure runs, see configure's option --config-cache.
18123 # It is not useful on other systems.  If it contains results you don't
18124 # want to keep, you may remove or edit it.
18125 #
18126 # config.status only pays attention to the cache file if you give it
18127 # the --recheck option to rerun configure.
18128 #
18129 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18130 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18131 # following values.
18132
18133 _ACEOF
18134
18135 # The following way of writing the cache mishandles newlines in values,
18136 # but we know of no workaround that is simple, portable, and efficient.
18137 # So, we kill variables containing newlines.
18138 # Ultrix sh set writes to stderr and can't be redirected directly,
18139 # and sets the high bit in the cache file unless we assign to the vars.
18140 (
18141   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18142     eval ac_val=\$$ac_var
18143     case $ac_val in #(
18144     *${as_nl}*)
18145       case $ac_var in #(
18146       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18147 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18148       esac
18149       case $ac_var in #(
18150       _ | IFS | as_nl) ;; #(
18151       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18152       *) { eval $ac_var=; unset $ac_var;} ;;
18153       esac ;;
18154     esac
18155   done
18156
18157   (set) 2>&1 |
18158     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18159     *${as_nl}ac_space=\ *)
18160       # `set' does not quote correctly, so add quotes: double-quote
18161       # substitution turns \\\\ into \\, and sed turns \\ into \.
18162       sed -n \
18163         "s/'/'\\\\''/g;
18164           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18165       ;; #(
18166     *)
18167       # `set' quotes correctly as required by POSIX, so do not add quotes.
18168       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18169       ;;
18170     esac |
18171     sort
18172 ) |
18173   sed '
18174      /^ac_cv_env_/b end
18175      t clear
18176      :clear
18177      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18178      t end
18179      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18180      :end' >>confcache
18181 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18182   if test -w "$cache_file"; then
18183     if test "x$cache_file" != "x/dev/null"; then
18184       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18185 $as_echo "$as_me: updating cache $cache_file" >&6;}
18186       if test ! -f "$cache_file" || test -h "$cache_file"; then
18187         cat confcache >"$cache_file"
18188       else
18189         case $cache_file in #(
18190         */* | ?:*)
18191           mv -f confcache "$cache_file"$$ &&
18192           mv -f "$cache_file"$$ "$cache_file" ;; #(
18193         *)
18194           mv -f confcache "$cache_file" ;;
18195         esac
18196       fi
18197     fi
18198   else
18199     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18200 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18201   fi
18202 fi
18203 rm -f confcache
18204
18205 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18206 # Let make expand exec_prefix.
18207 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18208
18209 DEFS=-DHAVE_CONFIG_H
18210
18211 ac_libobjs=
18212 ac_ltlibobjs=
18213 U=
18214 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18215   # 1. Remove the extension, and $U if already installed.
18216   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18217   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18218   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18219   #    will be set to the directory where LIBOBJS objects are built.
18220   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18221   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18222 done
18223 LIBOBJS=$ac_libobjs
18224
18225 LTLIBOBJS=$ac_ltlibobjs
18226
18227
18228
18229 : "${CONFIG_STATUS=./config.status}"
18230 ac_write_fail=0
18231 ac_clean_files_save=$ac_clean_files
18232 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18234 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18235 as_write_fail=0
18236 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18237 #! $SHELL
18238 # Generated by $as_me.
18239 # Run this file to recreate the current configuration.
18240 # Compiler output produced by configure, useful for debugging
18241 # configure, is in config.log if it exists.
18242
18243 debug=false
18244 ac_cs_recheck=false
18245 ac_cs_silent=false
18246
18247 SHELL=\${CONFIG_SHELL-$SHELL}
18248 export SHELL
18249 _ASEOF
18250 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18251 ## -------------------- ##
18252 ## M4sh Initialization. ##
18253 ## -------------------- ##
18254
18255 # Be more Bourne compatible
18256 DUALCASE=1; export DUALCASE # for MKS sh
18257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18258   emulate sh
18259   NULLCMD=:
18260   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18261   # is contrary to our usage.  Disable this feature.
18262   alias -g '${1+"$@"}'='"$@"'
18263   setopt NO_GLOB_SUBST
18264 else
18265   case `(set -o) 2>/dev/null` in #(
18266   *posix*) :
18267     set -o posix ;; #(
18268   *) :
18269      ;;
18270 esac
18271 fi
18272
18273
18274 as_nl='
18275 '
18276 export as_nl
18277 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18278 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18279 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18280 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18281 # Prefer a ksh shell builtin over an external printf program on Solaris,
18282 # but without wasting forks for bash or zsh.
18283 if test -z "$BASH_VERSION$ZSH_VERSION" \
18284     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18285   as_echo='print -r --'
18286   as_echo_n='print -rn --'
18287 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18288   as_echo='printf %s\n'
18289   as_echo_n='printf %s'
18290 else
18291   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18292     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18293     as_echo_n='/usr/ucb/echo -n'
18294   else
18295     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18296     as_echo_n_body='eval
18297       arg=$1;
18298       case $arg in #(
18299       *"$as_nl"*)
18300         expr "X$arg" : "X\\(.*\\)$as_nl";
18301         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18302       esac;
18303       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18304     '
18305     export as_echo_n_body
18306     as_echo_n='sh -c $as_echo_n_body as_echo'
18307   fi
18308   export as_echo_body
18309   as_echo='sh -c $as_echo_body as_echo'
18310 fi
18311
18312 # The user is always right.
18313 if test "${PATH_SEPARATOR+set}" != set; then
18314   PATH_SEPARATOR=:
18315   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18316     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18317       PATH_SEPARATOR=';'
18318   }
18319 fi
18320
18321
18322 # IFS
18323 # We need space, tab and new line, in precisely that order.  Quoting is
18324 # there to prevent editors from complaining about space-tab.
18325 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18326 # splitting by setting IFS to empty value.)
18327 IFS=" ""        $as_nl"
18328
18329 # Find who we are.  Look in the path if we contain no directory separator.
18330 as_myself=
18331 case $0 in #((
18332   *[\\/]* ) as_myself=$0 ;;
18333   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18334 for as_dir in $PATH
18335 do
18336   IFS=$as_save_IFS
18337   test -z "$as_dir" && as_dir=.
18338     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18339   done
18340 IFS=$as_save_IFS
18341
18342      ;;
18343 esac
18344 # We did not find ourselves, most probably we were run as `sh COMMAND'
18345 # in which case we are not to be found in the path.
18346 if test "x$as_myself" = x; then
18347   as_myself=$0
18348 fi
18349 if test ! -f "$as_myself"; then
18350   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18351   exit 1
18352 fi
18353
18354 # Unset variables that we do not need and which cause bugs (e.g. in
18355 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18356 # suppresses any "Segmentation fault" message there.  '((' could
18357 # trigger a bug in pdksh 5.2.14.
18358 for as_var in BASH_ENV ENV MAIL MAILPATH
18359 do eval test x\${$as_var+set} = xset \
18360   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18361 done
18362 PS1='$ '
18363 PS2='> '
18364 PS4='+ '
18365
18366 # NLS nuisances.
18367 LC_ALL=C
18368 export LC_ALL
18369 LANGUAGE=C
18370 export LANGUAGE
18371
18372 # CDPATH.
18373 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18374
18375
18376 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18377 # ----------------------------------------
18378 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18379 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18380 # script with STATUS, using 1 if that was 0.
18381 as_fn_error ()
18382 {
18383   as_status=$1; test $as_status -eq 0 && as_status=1
18384   if test "$4"; then
18385     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18386     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18387   fi
18388   $as_echo "$as_me: error: $2" >&2
18389   as_fn_exit $as_status
18390 } # as_fn_error
18391
18392
18393 # as_fn_set_status STATUS
18394 # -----------------------
18395 # Set $? to STATUS, without forking.
18396 as_fn_set_status ()
18397 {
18398   return $1
18399 } # as_fn_set_status
18400
18401 # as_fn_exit STATUS
18402 # -----------------
18403 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18404 as_fn_exit ()
18405 {
18406   set +e
18407   as_fn_set_status $1
18408   exit $1
18409 } # as_fn_exit
18410
18411 # as_fn_unset VAR
18412 # ---------------
18413 # Portably unset VAR.
18414 as_fn_unset ()
18415 {
18416   { eval $1=; unset $1;}
18417 }
18418 as_unset=as_fn_unset
18419 # as_fn_append VAR VALUE
18420 # ----------------------
18421 # Append the text in VALUE to the end of the definition contained in VAR. Take
18422 # advantage of any shell optimizations that allow amortized linear growth over
18423 # repeated appends, instead of the typical quadratic growth present in naive
18424 # implementations.
18425 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18426   eval 'as_fn_append ()
18427   {
18428     eval $1+=\$2
18429   }'
18430 else
18431   as_fn_append ()
18432   {
18433     eval $1=\$$1\$2
18434   }
18435 fi # as_fn_append
18436
18437 # as_fn_arith ARG...
18438 # ------------------
18439 # Perform arithmetic evaluation on the ARGs, and store the result in the
18440 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18441 # must be portable across $(()) and expr.
18442 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18443   eval 'as_fn_arith ()
18444   {
18445     as_val=$(( $* ))
18446   }'
18447 else
18448   as_fn_arith ()
18449   {
18450     as_val=`expr "$@" || test $? -eq 1`
18451   }
18452 fi # as_fn_arith
18453
18454
18455 if expr a : '\(a\)' >/dev/null 2>&1 &&
18456    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18457   as_expr=expr
18458 else
18459   as_expr=false
18460 fi
18461
18462 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18463   as_basename=basename
18464 else
18465   as_basename=false
18466 fi
18467
18468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18469   as_dirname=dirname
18470 else
18471   as_dirname=false
18472 fi
18473
18474 as_me=`$as_basename -- "$0" ||
18475 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18476          X"$0" : 'X\(//\)$' \| \
18477          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18478 $as_echo X/"$0" |
18479     sed '/^.*\/\([^/][^/]*\)\/*$/{
18480             s//\1/
18481             q
18482           }
18483           /^X\/\(\/\/\)$/{
18484             s//\1/
18485             q
18486           }
18487           /^X\/\(\/\).*/{
18488             s//\1/
18489             q
18490           }
18491           s/.*/./; q'`
18492
18493 # Avoid depending upon Character Ranges.
18494 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18495 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18496 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18497 as_cr_digits='0123456789'
18498 as_cr_alnum=$as_cr_Letters$as_cr_digits
18499
18500 ECHO_C= ECHO_N= ECHO_T=
18501 case `echo -n x` in #(((((
18502 -n*)
18503   case `echo 'xy\c'` in
18504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18505   xy)  ECHO_C='\c';;
18506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18507        ECHO_T=' ';;
18508   esac;;
18509 *)
18510   ECHO_N='-n';;
18511 esac
18512
18513 rm -f conf$$ conf$$.exe conf$$.file
18514 if test -d conf$$.dir; then
18515   rm -f conf$$.dir/conf$$.file
18516 else
18517   rm -f conf$$.dir
18518   mkdir conf$$.dir 2>/dev/null
18519 fi
18520 if (echo >conf$$.file) 2>/dev/null; then
18521   if ln -s conf$$.file conf$$ 2>/dev/null; then
18522     as_ln_s='ln -s'
18523     # ... but there are two gotchas:
18524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18526     # In both cases, we have to default to `cp -pR'.
18527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18528       as_ln_s='cp -pR'
18529   elif ln conf$$.file conf$$ 2>/dev/null; then
18530     as_ln_s=ln
18531   else
18532     as_ln_s='cp -pR'
18533   fi
18534 else
18535   as_ln_s='cp -pR'
18536 fi
18537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18538 rmdir conf$$.dir 2>/dev/null
18539
18540
18541 # as_fn_mkdir_p
18542 # -------------
18543 # Create "$as_dir" as a directory, including parents if necessary.
18544 as_fn_mkdir_p ()
18545 {
18546
18547   case $as_dir in #(
18548   -*) as_dir=./$as_dir;;
18549   esac
18550   test -d "$as_dir" || eval $as_mkdir_p || {
18551     as_dirs=
18552     while :; do
18553       case $as_dir in #(
18554       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18555       *) as_qdir=$as_dir;;
18556       esac
18557       as_dirs="'$as_qdir' $as_dirs"
18558       as_dir=`$as_dirname -- "$as_dir" ||
18559 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18560          X"$as_dir" : 'X\(//\)[^/]' \| \
18561          X"$as_dir" : 'X\(//\)$' \| \
18562          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18563 $as_echo X"$as_dir" |
18564     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18565             s//\1/
18566             q
18567           }
18568           /^X\(\/\/\)[^/].*/{
18569             s//\1/
18570             q
18571           }
18572           /^X\(\/\/\)$/{
18573             s//\1/
18574             q
18575           }
18576           /^X\(\/\).*/{
18577             s//\1/
18578             q
18579           }
18580           s/.*/./; q'`
18581       test -d "$as_dir" && break
18582     done
18583     test -z "$as_dirs" || eval "mkdir $as_dirs"
18584   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18585
18586
18587 } # as_fn_mkdir_p
18588 if mkdir -p . 2>/dev/null; then
18589   as_mkdir_p='mkdir -p "$as_dir"'
18590 else
18591   test -d ./-p && rmdir ./-p
18592   as_mkdir_p=false
18593 fi
18594
18595
18596 # as_fn_executable_p FILE
18597 # -----------------------
18598 # Test if FILE is an executable regular file.
18599 as_fn_executable_p ()
18600 {
18601   test -f "$1" && test -x "$1"
18602 } # as_fn_executable_p
18603 as_test_x='test -x'
18604 as_executable_p=as_fn_executable_p
18605
18606 # Sed expression to map a string onto a valid CPP name.
18607 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18608
18609 # Sed expression to map a string onto a valid variable name.
18610 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18611
18612
18613 exec 6>&1
18614 ## ----------------------------------- ##
18615 ## Main body of $CONFIG_STATUS script. ##
18616 ## ----------------------------------- ##
18617 _ASEOF
18618 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18619
18620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18621 # Save the log message, to keep $0 and so on meaningful, and to
18622 # report actual input values of CONFIG_FILES etc. instead of their
18623 # values after options handling.
18624 ac_log="
18625 This file was extended by unbound $as_me 1.4.20, which was
18626 generated by GNU Autoconf 2.69.  Invocation command line was
18627
18628   CONFIG_FILES    = $CONFIG_FILES
18629   CONFIG_HEADERS  = $CONFIG_HEADERS
18630   CONFIG_LINKS    = $CONFIG_LINKS
18631   CONFIG_COMMANDS = $CONFIG_COMMANDS
18632   $ $0 $@
18633
18634 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18635 "
18636
18637 _ACEOF
18638
18639 case $ac_config_files in *"
18640 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18641 esac
18642
18643 case $ac_config_headers in *"
18644 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18645 esac
18646
18647
18648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18649 # Files that config.status was made for.
18650 config_files="$ac_config_files"
18651 config_headers="$ac_config_headers"
18652 config_commands="$ac_config_commands"
18653
18654 _ACEOF
18655
18656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18657 ac_cs_usage="\
18658 \`$as_me' instantiates files and other configuration actions
18659 from templates according to the current configuration.  Unless the files
18660 and actions are specified as TAGs, all are instantiated by default.
18661
18662 Usage: $0 [OPTION]... [TAG]...
18663
18664   -h, --help       print this help, then exit
18665   -V, --version    print version number and configuration settings, then exit
18666       --config     print configuration, then exit
18667   -q, --quiet, --silent
18668                    do not print progress messages
18669   -d, --debug      don't remove temporary files
18670       --recheck    update $as_me by reconfiguring in the same conditions
18671       --file=FILE[:TEMPLATE]
18672                    instantiate the configuration file FILE
18673       --header=FILE[:TEMPLATE]
18674                    instantiate the configuration header FILE
18675
18676 Configuration files:
18677 $config_files
18678
18679 Configuration headers:
18680 $config_headers
18681
18682 Configuration commands:
18683 $config_commands
18684
18685 Report bugs to <unbound-bugs@nlnetlabs.nl>."
18686
18687 _ACEOF
18688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18689 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18690 ac_cs_version="\\
18691 unbound config.status 1.4.20
18692 configured by $0, generated by GNU Autoconf 2.69,
18693   with options \\"\$ac_cs_config\\"
18694
18695 Copyright (C) 2012 Free Software Foundation, Inc.
18696 This config.status script is free software; the Free Software Foundation
18697 gives unlimited permission to copy, distribute and modify it."
18698
18699 ac_pwd='$ac_pwd'
18700 srcdir='$srcdir'
18701 AWK='$AWK'
18702 test -n "\$AWK" || AWK=awk
18703 _ACEOF
18704
18705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18706 # The default lists apply if the user does not specify any file.
18707 ac_need_defaults=:
18708 while test $# != 0
18709 do
18710   case $1 in
18711   --*=?*)
18712     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18713     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18714     ac_shift=:
18715     ;;
18716   --*=)
18717     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18718     ac_optarg=
18719     ac_shift=:
18720     ;;
18721   *)
18722     ac_option=$1
18723     ac_optarg=$2
18724     ac_shift=shift
18725     ;;
18726   esac
18727
18728   case $ac_option in
18729   # Handling of the options.
18730   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18731     ac_cs_recheck=: ;;
18732   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18733     $as_echo "$ac_cs_version"; exit ;;
18734   --config | --confi | --conf | --con | --co | --c )
18735     $as_echo "$ac_cs_config"; exit ;;
18736   --debug | --debu | --deb | --de | --d | -d )
18737     debug=: ;;
18738   --file | --fil | --fi | --f )
18739     $ac_shift
18740     case $ac_optarg in
18741     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18742     '') as_fn_error $? "missing file argument" ;;
18743     esac
18744     as_fn_append CONFIG_FILES " '$ac_optarg'"
18745     ac_need_defaults=false;;
18746   --header | --heade | --head | --hea )
18747     $ac_shift
18748     case $ac_optarg in
18749     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18750     esac
18751     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18752     ac_need_defaults=false;;
18753   --he | --h)
18754     # Conflict between --help and --header
18755     as_fn_error $? "ambiguous option: \`$1'
18756 Try \`$0 --help' for more information.";;
18757   --help | --hel | -h )
18758     $as_echo "$ac_cs_usage"; exit ;;
18759   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18760   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18761     ac_cs_silent=: ;;
18762
18763   # This is an error.
18764   -*) as_fn_error $? "unrecognized option: \`$1'
18765 Try \`$0 --help' for more information." ;;
18766
18767   *) as_fn_append ac_config_targets " $1"
18768      ac_need_defaults=false ;;
18769
18770   esac
18771   shift
18772 done
18773
18774 ac_configure_extra_args=
18775
18776 if $ac_cs_silent; then
18777   exec 6>/dev/null
18778   ac_configure_extra_args="$ac_configure_extra_args --silent"
18779 fi
18780
18781 _ACEOF
18782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18783 if \$ac_cs_recheck; then
18784   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18785   shift
18786   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18787   CONFIG_SHELL='$SHELL'
18788   export CONFIG_SHELL
18789   exec "\$@"
18790 fi
18791
18792 _ACEOF
18793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18794 exec 5>>config.log
18795 {
18796   echo
18797   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18798 ## Running $as_me. ##
18799 _ASBOX
18800   $as_echo "$ac_log"
18801 } >&5
18802
18803 _ACEOF
18804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18805 #
18806 # INIT-COMMANDS
18807 #
18808
18809
18810 # The HP-UX ksh and POSIX shell print the target directory to stdout
18811 # if CDPATH is set.
18812 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18813
18814 sed_quote_subst='$sed_quote_subst'
18815 double_quote_subst='$double_quote_subst'
18816 delay_variable_subst='$delay_variable_subst'
18817 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18818 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18819 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18820 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18821 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18822 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18823 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18824 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18825 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18826 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18827 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18828 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18829 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18830 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18831 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18832 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18833 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18834 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18835 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18836 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18837 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18838 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18839 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18840 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18841 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18842 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18843 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18844 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18845 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18846 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18847 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18848 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18849 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18850 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18851 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18852 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18853 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18854 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18855 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18856 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18857 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18858 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18859 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18860 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18861 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18862 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18863 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18864 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18865 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18866 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18867 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18868 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18869 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18870 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18871 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18872 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18873 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"`'
18874 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18875 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18876 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18877 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18878 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18879 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18880 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18881 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18882 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18883 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18884 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18885 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18886 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18887 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18888 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18889 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18890 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18891 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18892 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18893 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18894 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18895 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18896 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18897 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18898 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18899 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18900 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18901 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18902 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18903 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18904 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18905 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18906 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18907 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18908 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18909 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18910 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18911 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18912 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18913 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18914 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18915 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18916 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18917 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18918 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18919 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18920 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18921 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18922 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18923 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18924 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18925 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18926 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18927 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18928 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18929 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18930 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18931 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18932 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18933 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18934 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18935 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18936 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18937 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18938 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18939 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18940 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18941 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18942 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18943 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18944 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18945 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18946 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18947
18948 LTCC='$LTCC'
18949 LTCFLAGS='$LTCFLAGS'
18950 compiler='$compiler_DEFAULT'
18951
18952 # A function that is used when there is no print builtin or printf.
18953 func_fallback_echo ()
18954 {
18955   eval 'cat <<_LTECHO_EOF
18956 \$1
18957 _LTECHO_EOF'
18958 }
18959
18960 # Quote evaled strings.
18961 for var in SHELL \
18962 ECHO \
18963 PATH_SEPARATOR \
18964 SED \
18965 GREP \
18966 EGREP \
18967 FGREP \
18968 LD \
18969 NM \
18970 LN_S \
18971 lt_SP2NL \
18972 lt_NL2SP \
18973 reload_flag \
18974 OBJDUMP \
18975 deplibs_check_method \
18976 file_magic_cmd \
18977 file_magic_glob \
18978 want_nocaseglob \
18979 DLLTOOL \
18980 sharedlib_from_linklib_cmd \
18981 AR \
18982 AR_FLAGS \
18983 archiver_list_spec \
18984 STRIP \
18985 RANLIB \
18986 CC \
18987 CFLAGS \
18988 compiler \
18989 lt_cv_sys_global_symbol_pipe \
18990 lt_cv_sys_global_symbol_to_cdecl \
18991 lt_cv_sys_global_symbol_to_c_name_address \
18992 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18993 nm_file_list_spec \
18994 lt_prog_compiler_no_builtin_flag \
18995 lt_prog_compiler_pic \
18996 lt_prog_compiler_wl \
18997 lt_prog_compiler_static \
18998 lt_cv_prog_compiler_c_o \
18999 need_locks \
19000 MANIFEST_TOOL \
19001 DSYMUTIL \
19002 NMEDIT \
19003 LIPO \
19004 OTOOL \
19005 OTOOL64 \
19006 shrext_cmds \
19007 export_dynamic_flag_spec \
19008 whole_archive_flag_spec \
19009 compiler_needs_object \
19010 with_gnu_ld \
19011 allow_undefined_flag \
19012 no_undefined_flag \
19013 hardcode_libdir_flag_spec \
19014 hardcode_libdir_separator \
19015 exclude_expsyms \
19016 include_expsyms \
19017 file_list_spec \
19018 variables_saved_for_relink \
19019 libname_spec \
19020 library_names_spec \
19021 soname_spec \
19022 install_override_mode \
19023 finish_eval \
19024 old_striplib \
19025 striplib; do
19026     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19027     *[\\\\\\\`\\"\\\$]*)
19028       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19029       ;;
19030     *)
19031       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19032       ;;
19033     esac
19034 done
19035
19036 # Double-quote double-evaled strings.
19037 for var in reload_cmds \
19038 old_postinstall_cmds \
19039 old_postuninstall_cmds \
19040 old_archive_cmds \
19041 extract_expsyms_cmds \
19042 old_archive_from_new_cmds \
19043 old_archive_from_expsyms_cmds \
19044 archive_cmds \
19045 archive_expsym_cmds \
19046 module_cmds \
19047 module_expsym_cmds \
19048 export_symbols_cmds \
19049 prelink_cmds \
19050 postlink_cmds \
19051 postinstall_cmds \
19052 postuninstall_cmds \
19053 finish_cmds \
19054 sys_lib_search_path_spec \
19055 sys_lib_dlsearch_path_spec; do
19056     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19057     *[\\\\\\\`\\"\\\$]*)
19058       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19059       ;;
19060     *)
19061       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19062       ;;
19063     esac
19064 done
19065
19066 ac_aux_dir='$ac_aux_dir'
19067 xsi_shell='$xsi_shell'
19068 lt_shell_append='$lt_shell_append'
19069
19070 # See if we are running on zsh, and set the options which allow our
19071 # commands through without removal of \ escapes INIT.
19072 if test -n "\${ZSH_VERSION+set}" ; then
19073    setopt NO_GLOB_SUBST
19074 fi
19075
19076
19077     PACKAGE='$PACKAGE'
19078     VERSION='$VERSION'
19079     TIMESTAMP='$TIMESTAMP'
19080     RM='$RM'
19081     ofile='$ofile'
19082
19083
19084
19085
19086 _ACEOF
19087
19088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19089
19090 # Handling of arguments.
19091 for ac_config_target in $ac_config_targets
19092 do
19093   case $ac_config_target in
19094     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19095     "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
19096     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19097     "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
19098     "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
19099     "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
19100     "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
19101     "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
19102     "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
19103     "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
19104     "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
19105     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19106
19107   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19108   esac
19109 done
19110
19111
19112 # If the user did not use the arguments to specify the items to instantiate,
19113 # then the envvar interface is used.  Set only those that are not.
19114 # We use the long form for the default assignment because of an extremely
19115 # bizarre bug on SunOS 4.1.3.
19116 if $ac_need_defaults; then
19117   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19118   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19119   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19120 fi
19121
19122 # Have a temporary directory for convenience.  Make it in the build tree
19123 # simply because there is no reason against having it here, and in addition,
19124 # creating and moving files from /tmp can sometimes cause problems.
19125 # Hook for its removal unless debugging.
19126 # Note that there is a small window in which the directory will not be cleaned:
19127 # after its creation but before its name has been assigned to `$tmp'.
19128 $debug ||
19129 {
19130   tmp= ac_tmp=
19131   trap 'exit_status=$?
19132   : "${ac_tmp:=$tmp}"
19133   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19134 ' 0
19135   trap 'as_fn_exit 1' 1 2 13 15
19136 }
19137 # Create a (secure) tmp directory for tmp files.
19138
19139 {
19140   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19141   test -d "$tmp"
19142 }  ||
19143 {
19144   tmp=./conf$$-$RANDOM
19145   (umask 077 && mkdir "$tmp")
19146 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19147 ac_tmp=$tmp
19148
19149 # Set up the scripts for CONFIG_FILES section.
19150 # No need to generate them if there are no CONFIG_FILES.
19151 # This happens for instance with `./config.status config.h'.
19152 if test -n "$CONFIG_FILES"; then
19153
19154
19155 ac_cr=`echo X | tr X '\015'`
19156 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19157 # But we know of no other shell where ac_cr would be empty at this
19158 # point, so we can use a bashism as a fallback.
19159 if test "x$ac_cr" = x; then
19160   eval ac_cr=\$\'\\r\'
19161 fi
19162 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19163 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19164   ac_cs_awk_cr='\\r'
19165 else
19166   ac_cs_awk_cr=$ac_cr
19167 fi
19168
19169 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19170 _ACEOF
19171
19172
19173 {
19174   echo "cat >conf$$subs.awk <<_ACEOF" &&
19175   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19176   echo "_ACEOF"
19177 } >conf$$subs.sh ||
19178   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19179 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19180 ac_delim='%!_!# '
19181 for ac_last_try in false false false false false :; do
19182   . ./conf$$subs.sh ||
19183     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19184
19185   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19186   if test $ac_delim_n = $ac_delim_num; then
19187     break
19188   elif $ac_last_try; then
19189     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19190   else
19191     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19192   fi
19193 done
19194 rm -f conf$$subs.sh
19195
19196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19197 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19198 _ACEOF
19199 sed -n '
19200 h
19201 s/^/S["/; s/!.*/"]=/
19202 p
19203 g
19204 s/^[^!]*!//
19205 :repl
19206 t repl
19207 s/'"$ac_delim"'$//
19208 t delim
19209 :nl
19210 h
19211 s/\(.\{148\}\)..*/\1/
19212 t more1
19213 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19214 p
19215 n
19216 b repl
19217 :more1
19218 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19219 p
19220 g
19221 s/.\{148\}//
19222 t nl
19223 :delim
19224 h
19225 s/\(.\{148\}\)..*/\1/
19226 t more2
19227 s/["\\]/\\&/g; s/^/"/; s/$/"/
19228 p
19229 b
19230 :more2
19231 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19232 p
19233 g
19234 s/.\{148\}//
19235 t delim
19236 ' <conf$$subs.awk | sed '
19237 /^[^""]/{
19238   N
19239   s/\n//
19240 }
19241 ' >>$CONFIG_STATUS || ac_write_fail=1
19242 rm -f conf$$subs.awk
19243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19244 _ACAWK
19245 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19246   for (key in S) S_is_set[key] = 1
19247   FS = "\a"
19248
19249 }
19250 {
19251   line = $ 0
19252   nfields = split(line, field, "@")
19253   substed = 0
19254   len = length(field[1])
19255   for (i = 2; i < nfields; i++) {
19256     key = field[i]
19257     keylen = length(key)
19258     if (S_is_set[key]) {
19259       value = S[key]
19260       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19261       len += length(value) + length(field[++i])
19262       substed = 1
19263     } else
19264       len += 1 + keylen
19265   }
19266
19267   print line
19268 }
19269
19270 _ACAWK
19271 _ACEOF
19272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19273 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19274   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19275 else
19276   cat
19277 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19278   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19279 _ACEOF
19280
19281 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19282 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19283 # trailing colons and then remove the whole line if VPATH becomes empty
19284 # (actually we leave an empty line to preserve line numbers).
19285 if test "x$srcdir" = x.; then
19286   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19287 h
19288 s///
19289 s/^/:/
19290 s/[      ]*$/:/
19291 s/:\$(srcdir):/:/g
19292 s/:\${srcdir}:/:/g
19293 s/:@srcdir@:/:/g
19294 s/^:*//
19295 s/:*$//
19296 x
19297 s/\(=[   ]*\).*/\1/
19298 G
19299 s/\n//
19300 s/^[^=]*=[       ]*$//
19301 }'
19302 fi
19303
19304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19305 fi # test -n "$CONFIG_FILES"
19306
19307 # Set up the scripts for CONFIG_HEADERS section.
19308 # No need to generate them if there are no CONFIG_HEADERS.
19309 # This happens for instance with `./config.status Makefile'.
19310 if test -n "$CONFIG_HEADERS"; then
19311 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19312 BEGIN {
19313 _ACEOF
19314
19315 # Transform confdefs.h into an awk script `defines.awk', embedded as
19316 # here-document in config.status, that substitutes the proper values into
19317 # config.h.in to produce config.h.
19318
19319 # Create a delimiter string that does not exist in confdefs.h, to ease
19320 # handling of long lines.
19321 ac_delim='%!_!# '
19322 for ac_last_try in false false :; do
19323   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19324   if test -z "$ac_tt"; then
19325     break
19326   elif $ac_last_try; then
19327     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19328   else
19329     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19330   fi
19331 done
19332
19333 # For the awk script, D is an array of macro values keyed by name,
19334 # likewise P contains macro parameters if any.  Preserve backslash
19335 # newline sequences.
19336
19337 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19338 sed -n '
19339 s/.\{148\}/&'"$ac_delim"'/g
19340 t rset
19341 :rset
19342 s/^[     ]*#[    ]*define[       ][      ]*/ /
19343 t def
19344 d
19345 :def
19346 s/\\$//
19347 t bsnl
19348 s/["\\]/\\&/g
19349 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19350 D["\1"]=" \3"/p
19351 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19352 d
19353 :bsnl
19354 s/["\\]/\\&/g
19355 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19356 D["\1"]=" \3\\\\\\n"\\/p
19357 t cont
19358 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19359 t cont
19360 d
19361 :cont
19362 n
19363 s/.\{148\}/&'"$ac_delim"'/g
19364 t clear
19365 :clear
19366 s/\\$//
19367 t bsnlc
19368 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19369 d
19370 :bsnlc
19371 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19372 b cont
19373 ' <confdefs.h | sed '
19374 s/'"$ac_delim"'/"\\\
19375 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19376
19377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19378   for (key in D) D_is_set[key] = 1
19379   FS = "\a"
19380 }
19381 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19382   line = \$ 0
19383   split(line, arg, " ")
19384   if (arg[1] == "#") {
19385     defundef = arg[2]
19386     mac1 = arg[3]
19387   } else {
19388     defundef = substr(arg[1], 2)
19389     mac1 = arg[2]
19390   }
19391   split(mac1, mac2, "(") #)
19392   macro = mac2[1]
19393   prefix = substr(line, 1, index(line, defundef) - 1)
19394   if (D_is_set[macro]) {
19395     # Preserve the white space surrounding the "#".
19396     print prefix "define", macro P[macro] D[macro]
19397     next
19398   } else {
19399     # Replace #undef with comments.  This is necessary, for example,
19400     # in the case of _POSIX_SOURCE, which is predefined and required
19401     # on some systems where configure will not decide to define it.
19402     if (defundef == "undef") {
19403       print "/*", prefix defundef, macro, "*/"
19404       next
19405     }
19406   }
19407 }
19408 { print }
19409 _ACAWK
19410 _ACEOF
19411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19412   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19413 fi # test -n "$CONFIG_HEADERS"
19414
19415
19416 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19417 shift
19418 for ac_tag
19419 do
19420   case $ac_tag in
19421   :[FHLC]) ac_mode=$ac_tag; continue;;
19422   esac
19423   case $ac_mode$ac_tag in
19424   :[FHL]*:*);;
19425   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19426   :[FH]-) ac_tag=-:-;;
19427   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19428   esac
19429   ac_save_IFS=$IFS
19430   IFS=:
19431   set x $ac_tag
19432   IFS=$ac_save_IFS
19433   shift
19434   ac_file=$1
19435   shift
19436
19437   case $ac_mode in
19438   :L) ac_source=$1;;
19439   :[FH])
19440     ac_file_inputs=
19441     for ac_f
19442     do
19443       case $ac_f in
19444       -) ac_f="$ac_tmp/stdin";;
19445       *) # Look for the file first in the build tree, then in the source tree
19446          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19447          # because $ac_f cannot contain `:'.
19448          test -f "$ac_f" ||
19449            case $ac_f in
19450            [\\/$]*) false;;
19451            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19452            esac ||
19453            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19454       esac
19455       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19456       as_fn_append ac_file_inputs " '$ac_f'"
19457     done
19458
19459     # Let's still pretend it is `configure' which instantiates (i.e., don't
19460     # use $as_me), people would be surprised to read:
19461     #    /* config.h.  Generated by config.status.  */
19462     configure_input='Generated from '`
19463           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19464         `' by configure.'
19465     if test x"$ac_file" != x-; then
19466       configure_input="$ac_file.  $configure_input"
19467       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19468 $as_echo "$as_me: creating $ac_file" >&6;}
19469     fi
19470     # Neutralize special characters interpreted by sed in replacement strings.
19471     case $configure_input in #(
19472     *\&* | *\|* | *\\* )
19473        ac_sed_conf_input=`$as_echo "$configure_input" |
19474        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19475     *) ac_sed_conf_input=$configure_input;;
19476     esac
19477
19478     case $ac_tag in
19479     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19480       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19481     esac
19482     ;;
19483   esac
19484
19485   ac_dir=`$as_dirname -- "$ac_file" ||
19486 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19487          X"$ac_file" : 'X\(//\)[^/]' \| \
19488          X"$ac_file" : 'X\(//\)$' \| \
19489          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19490 $as_echo X"$ac_file" |
19491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19492             s//\1/
19493             q
19494           }
19495           /^X\(\/\/\)[^/].*/{
19496             s//\1/
19497             q
19498           }
19499           /^X\(\/\/\)$/{
19500             s//\1/
19501             q
19502           }
19503           /^X\(\/\).*/{
19504             s//\1/
19505             q
19506           }
19507           s/.*/./; q'`
19508   as_dir="$ac_dir"; as_fn_mkdir_p
19509   ac_builddir=.
19510
19511 case "$ac_dir" in
19512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19513 *)
19514   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19515   # A ".." for each directory in $ac_dir_suffix.
19516   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19517   case $ac_top_builddir_sub in
19518   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19519   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19520   esac ;;
19521 esac
19522 ac_abs_top_builddir=$ac_pwd
19523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19524 # for backward compatibility:
19525 ac_top_builddir=$ac_top_build_prefix
19526
19527 case $srcdir in
19528   .)  # We are building in place.
19529     ac_srcdir=.
19530     ac_top_srcdir=$ac_top_builddir_sub
19531     ac_abs_top_srcdir=$ac_pwd ;;
19532   [\\/]* | ?:[\\/]* )  # Absolute name.
19533     ac_srcdir=$srcdir$ac_dir_suffix;
19534     ac_top_srcdir=$srcdir
19535     ac_abs_top_srcdir=$srcdir ;;
19536   *) # Relative name.
19537     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19538     ac_top_srcdir=$ac_top_build_prefix$srcdir
19539     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19540 esac
19541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19542
19543
19544   case $ac_mode in
19545   :F)
19546   #
19547   # CONFIG_FILE
19548   #
19549
19550 _ACEOF
19551
19552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19553 # If the template does not know about datarootdir, expand it.
19554 # FIXME: This hack should be removed a few years after 2.60.
19555 ac_datarootdir_hack=; ac_datarootdir_seen=
19556 ac_sed_dataroot='
19557 /datarootdir/ {
19558   p
19559   q
19560 }
19561 /@datadir@/p
19562 /@docdir@/p
19563 /@infodir@/p
19564 /@localedir@/p
19565 /@mandir@/p'
19566 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19567 *datarootdir*) ac_datarootdir_seen=yes;;
19568 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19569   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19570 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19571 _ACEOF
19572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19573   ac_datarootdir_hack='
19574   s&@datadir@&$datadir&g
19575   s&@docdir@&$docdir&g
19576   s&@infodir@&$infodir&g
19577   s&@localedir@&$localedir&g
19578   s&@mandir@&$mandir&g
19579   s&\\\${datarootdir}&$datarootdir&g' ;;
19580 esac
19581 _ACEOF
19582
19583 # Neutralize VPATH when `$srcdir' = `.'.
19584 # Shell code in configure.ac might set extrasub.
19585 # FIXME: do we really want to maintain this feature?
19586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19587 ac_sed_extra="$ac_vpsub
19588 $extrasub
19589 _ACEOF
19590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19591 :t
19592 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19593 s|@configure_input@|$ac_sed_conf_input|;t t
19594 s&@top_builddir@&$ac_top_builddir_sub&;t t
19595 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19596 s&@srcdir@&$ac_srcdir&;t t
19597 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19598 s&@top_srcdir@&$ac_top_srcdir&;t t
19599 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19600 s&@builddir@&$ac_builddir&;t t
19601 s&@abs_builddir@&$ac_abs_builddir&;t t
19602 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19603 $ac_datarootdir_hack
19604 "
19605 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19606   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19607
19608 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19609   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19610   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19611       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19612   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19613 which seems to be undefined.  Please make sure it is defined" >&5
19614 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19615 which seems to be undefined.  Please make sure it is defined" >&2;}
19616
19617   rm -f "$ac_tmp/stdin"
19618   case $ac_file in
19619   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19620   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19621   esac \
19622   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19623  ;;
19624   :H)
19625   #
19626   # CONFIG_HEADER
19627   #
19628   if test x"$ac_file" != x-; then
19629     {
19630       $as_echo "/* $configure_input  */" \
19631       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19632     } >"$ac_tmp/config.h" \
19633       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19634     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19635       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19636 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19637     else
19638       rm -f "$ac_file"
19639       mv "$ac_tmp/config.h" "$ac_file" \
19640         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19641     fi
19642   else
19643     $as_echo "/* $configure_input  */" \
19644       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19645       || as_fn_error $? "could not create -" "$LINENO" 5
19646   fi
19647  ;;
19648
19649   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19650 $as_echo "$as_me: executing $ac_file commands" >&6;}
19651  ;;
19652   esac
19653
19654
19655   case $ac_file$ac_mode in
19656     "libtool":C)
19657
19658     # See if we are running on zsh, and set the options which allow our
19659     # commands through without removal of \ escapes.
19660     if test -n "${ZSH_VERSION+set}" ; then
19661       setopt NO_GLOB_SUBST
19662     fi
19663
19664     cfgfile="${ofile}T"
19665     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19666     $RM "$cfgfile"
19667
19668     cat <<_LT_EOF >> "$cfgfile"
19669 #! $SHELL
19670
19671 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19672 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19673 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19674 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19675 #
19676 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19677 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19678 #                 Foundation, Inc.
19679 #   Written by Gordon Matzigkeit, 1996
19680 #
19681 #   This file is part of GNU Libtool.
19682 #
19683 # GNU Libtool is free software; you can redistribute it and/or
19684 # modify it under the terms of the GNU General Public License as
19685 # published by the Free Software Foundation; either version 2 of
19686 # the License, or (at your option) any later version.
19687 #
19688 # As a special exception to the GNU General Public License,
19689 # if you distribute this file as part of a program or library that
19690 # is built using GNU Libtool, you may include this file under the
19691 # same distribution terms that you use for the rest of that program.
19692 #
19693 # GNU Libtool is distributed in the hope that it will be useful,
19694 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19695 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19696 # GNU General Public License for more details.
19697 #
19698 # You should have received a copy of the GNU General Public License
19699 # along with GNU Libtool; see the file COPYING.  If not, a copy
19700 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19701 # obtained by writing to the Free Software Foundation, Inc.,
19702 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19703
19704
19705 # The names of the tagged configurations supported by this script.
19706 available_tags=""
19707
19708 # ### BEGIN LIBTOOL CONFIG
19709
19710 # Which release of libtool.m4 was used?
19711 macro_version=$macro_version
19712 macro_revision=$macro_revision
19713
19714 # Whether or not to build shared libraries.
19715 build_libtool_libs=$enable_shared
19716
19717 # Whether or not to build static libraries.
19718 build_old_libs=$enable_static
19719
19720 # What type of objects to build.
19721 pic_mode=$pic_mode
19722
19723 # Whether or not to optimize for fast installation.
19724 fast_install=$enable_fast_install
19725
19726 # Shell to use when invoking shell scripts.
19727 SHELL=$lt_SHELL
19728
19729 # An echo program that protects backslashes.
19730 ECHO=$lt_ECHO
19731
19732 # The PATH separator for the build system.
19733 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19734
19735 # The host system.
19736 host_alias=$host_alias
19737 host=$host
19738 host_os=$host_os
19739
19740 # The build system.
19741 build_alias=$build_alias
19742 build=$build
19743 build_os=$build_os
19744
19745 # A sed program that does not truncate output.
19746 SED=$lt_SED
19747
19748 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19749 Xsed="\$SED -e 1s/^X//"
19750
19751 # A grep program that handles long lines.
19752 GREP=$lt_GREP
19753
19754 # An ERE matcher.
19755 EGREP=$lt_EGREP
19756
19757 # A literal string matcher.
19758 FGREP=$lt_FGREP
19759
19760 # A BSD- or MS-compatible name lister.
19761 NM=$lt_NM
19762
19763 # Whether we need soft or hard links.
19764 LN_S=$lt_LN_S
19765
19766 # What is the maximum length of a command?
19767 max_cmd_len=$max_cmd_len
19768
19769 # Object file suffix (normally "o").
19770 objext=$ac_objext
19771
19772 # Executable file suffix (normally "").
19773 exeext=$exeext
19774
19775 # whether the shell understands "unset".
19776 lt_unset=$lt_unset
19777
19778 # turn spaces into newlines.
19779 SP2NL=$lt_lt_SP2NL
19780
19781 # turn newlines into spaces.
19782 NL2SP=$lt_lt_NL2SP
19783
19784 # convert \$build file names to \$host format.
19785 to_host_file_cmd=$lt_cv_to_host_file_cmd
19786
19787 # convert \$build files to toolchain format.
19788 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19789
19790 # An object symbol dumper.
19791 OBJDUMP=$lt_OBJDUMP
19792
19793 # Method to check whether dependent libraries are shared objects.
19794 deplibs_check_method=$lt_deplibs_check_method
19795
19796 # Command to use when deplibs_check_method = "file_magic".
19797 file_magic_cmd=$lt_file_magic_cmd
19798
19799 # How to find potential files when deplibs_check_method = "file_magic".
19800 file_magic_glob=$lt_file_magic_glob
19801
19802 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19803 want_nocaseglob=$lt_want_nocaseglob
19804
19805 # DLL creation program.
19806 DLLTOOL=$lt_DLLTOOL
19807
19808 # Command to associate shared and link libraries.
19809 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19810
19811 # The archiver.
19812 AR=$lt_AR
19813
19814 # Flags to create an archive.
19815 AR_FLAGS=$lt_AR_FLAGS
19816
19817 # How to feed a file listing to the archiver.
19818 archiver_list_spec=$lt_archiver_list_spec
19819
19820 # A symbol stripping program.
19821 STRIP=$lt_STRIP
19822
19823 # Commands used to install an old-style archive.
19824 RANLIB=$lt_RANLIB
19825 old_postinstall_cmds=$lt_old_postinstall_cmds
19826 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19827
19828 # Whether to use a lock for old archive extraction.
19829 lock_old_archive_extraction=$lock_old_archive_extraction
19830
19831 # A C compiler.
19832 LTCC=$lt_CC
19833
19834 # LTCC compiler flags.
19835 LTCFLAGS=$lt_CFLAGS
19836
19837 # Take the output of nm and produce a listing of raw symbols and C names.
19838 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19839
19840 # Transform the output of nm in a proper C declaration.
19841 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19842
19843 # Transform the output of nm in a C name address pair.
19844 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19845
19846 # Transform the output of nm in a C name address pair when lib prefix is needed.
19847 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19848
19849 # Specify filename containing input files for \$NM.
19850 nm_file_list_spec=$lt_nm_file_list_spec
19851
19852 # The root where to search for dependent libraries,and in which our libraries should be installed.
19853 lt_sysroot=$lt_sysroot
19854
19855 # The name of the directory that contains temporary libtool files.
19856 objdir=$objdir
19857
19858 # Used to examine libraries when file_magic_cmd begins with "file".
19859 MAGIC_CMD=$MAGIC_CMD
19860
19861 # Must we lock files when doing compilation?
19862 need_locks=$lt_need_locks
19863
19864 # Manifest tool.
19865 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19866
19867 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19868 DSYMUTIL=$lt_DSYMUTIL
19869
19870 # Tool to change global to local symbols on Mac OS X.
19871 NMEDIT=$lt_NMEDIT
19872
19873 # Tool to manipulate fat objects and archives on Mac OS X.
19874 LIPO=$lt_LIPO
19875
19876 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19877 OTOOL=$lt_OTOOL
19878
19879 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19880 OTOOL64=$lt_OTOOL64
19881
19882 # Old archive suffix (normally "a").
19883 libext=$libext
19884
19885 # Shared library suffix (normally ".so").
19886 shrext_cmds=$lt_shrext_cmds
19887
19888 # The commands to extract the exported symbol list from a shared archive.
19889 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19890
19891 # Variables whose values should be saved in libtool wrapper scripts and
19892 # restored at link time.
19893 variables_saved_for_relink=$lt_variables_saved_for_relink
19894
19895 # Do we need the "lib" prefix for modules?
19896 need_lib_prefix=$need_lib_prefix
19897
19898 # Do we need a version for libraries?
19899 need_version=$need_version
19900
19901 # Library versioning type.
19902 version_type=$version_type
19903
19904 # Shared library runtime path variable.
19905 runpath_var=$runpath_var
19906
19907 # Shared library path variable.
19908 shlibpath_var=$shlibpath_var
19909
19910 # Is shlibpath searched before the hard-coded library search path?
19911 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19912
19913 # Format of library name prefix.
19914 libname_spec=$lt_libname_spec
19915
19916 # List of archive names.  First name is the real one, the rest are links.
19917 # The last name is the one that the linker finds with -lNAME
19918 library_names_spec=$lt_library_names_spec
19919
19920 # The coded name of the library, if different from the real name.
19921 soname_spec=$lt_soname_spec
19922
19923 # Permission mode override for installation of shared libraries.
19924 install_override_mode=$lt_install_override_mode
19925
19926 # Command to use after installation of a shared archive.
19927 postinstall_cmds=$lt_postinstall_cmds
19928
19929 # Command to use after uninstallation of a shared archive.
19930 postuninstall_cmds=$lt_postuninstall_cmds
19931
19932 # Commands used to finish a libtool library installation in a directory.
19933 finish_cmds=$lt_finish_cmds
19934
19935 # As "finish_cmds", except a single script fragment to be evaled but
19936 # not shown.
19937 finish_eval=$lt_finish_eval
19938
19939 # Whether we should hardcode library paths into libraries.
19940 hardcode_into_libs=$hardcode_into_libs
19941
19942 # Compile-time system search path for libraries.
19943 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19944
19945 # Run-time system search path for libraries.
19946 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19947
19948 # Whether dlopen is supported.
19949 dlopen_support=$enable_dlopen
19950
19951 # Whether dlopen of programs is supported.
19952 dlopen_self=$enable_dlopen_self
19953
19954 # Whether dlopen of statically linked programs is supported.
19955 dlopen_self_static=$enable_dlopen_self_static
19956
19957 # Commands to strip libraries.
19958 old_striplib=$lt_old_striplib
19959 striplib=$lt_striplib
19960
19961
19962 # The linker used to build libraries.
19963 LD=$lt_LD
19964
19965 # How to create reloadable object files.
19966 reload_flag=$lt_reload_flag
19967 reload_cmds=$lt_reload_cmds
19968
19969 # Commands used to build an old-style archive.
19970 old_archive_cmds=$lt_old_archive_cmds
19971
19972 # A language specific compiler.
19973 CC=$lt_compiler
19974
19975 # Is the compiler the GNU compiler?
19976 with_gcc=$GCC
19977
19978 # Compiler flag to turn off builtin functions.
19979 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19980
19981 # Additional compiler flags for building library objects.
19982 pic_flag=$lt_lt_prog_compiler_pic
19983
19984 # How to pass a linker flag through the compiler.
19985 wl=$lt_lt_prog_compiler_wl
19986
19987 # Compiler flag to prevent dynamic linking.
19988 link_static_flag=$lt_lt_prog_compiler_static
19989
19990 # Does compiler simultaneously support -c and -o options?
19991 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19992
19993 # Whether or not to add -lc for building shared libraries.
19994 build_libtool_need_lc=$archive_cmds_need_lc
19995
19996 # Whether or not to disallow shared libs when runtime libs are static.
19997 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19998
19999 # Compiler flag to allow reflexive dlopens.
20000 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20001
20002 # Compiler flag to generate shared objects directly from archives.
20003 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20004
20005 # Whether the compiler copes with passing no objects directly.
20006 compiler_needs_object=$lt_compiler_needs_object
20007
20008 # Create an old-style archive from a shared archive.
20009 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20010
20011 # Create a temporary old-style archive to link instead of a shared archive.
20012 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20013
20014 # Commands used to build a shared archive.
20015 archive_cmds=$lt_archive_cmds
20016 archive_expsym_cmds=$lt_archive_expsym_cmds
20017
20018 # Commands used to build a loadable module if different from building
20019 # a shared archive.
20020 module_cmds=$lt_module_cmds
20021 module_expsym_cmds=$lt_module_expsym_cmds
20022
20023 # Whether we are building with GNU ld or not.
20024 with_gnu_ld=$lt_with_gnu_ld
20025
20026 # Flag that allows shared libraries with undefined symbols to be built.
20027 allow_undefined_flag=$lt_allow_undefined_flag
20028
20029 # Flag that enforces no undefined symbols.
20030 no_undefined_flag=$lt_no_undefined_flag
20031
20032 # Flag to hardcode \$libdir into a binary during linking.
20033 # This must work even if \$libdir does not exist
20034 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20035
20036 # Whether we need a single "-rpath" flag with a separated argument.
20037 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20038
20039 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20040 # DIR into the resulting binary.
20041 hardcode_direct=$hardcode_direct
20042
20043 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20044 # DIR into the resulting binary and the resulting library dependency is
20045 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20046 # library is relocated.
20047 hardcode_direct_absolute=$hardcode_direct_absolute
20048
20049 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20050 # into the resulting binary.
20051 hardcode_minus_L=$hardcode_minus_L
20052
20053 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20054 # into the resulting binary.
20055 hardcode_shlibpath_var=$hardcode_shlibpath_var
20056
20057 # Set to "yes" if building a shared library automatically hardcodes DIR
20058 # into the library and all subsequent libraries and executables linked
20059 # against it.
20060 hardcode_automatic=$hardcode_automatic
20061
20062 # Set to yes if linker adds runtime paths of dependent libraries
20063 # to runtime path list.
20064 inherit_rpath=$inherit_rpath
20065
20066 # Whether libtool must link a program against all its dependency libraries.
20067 link_all_deplibs=$link_all_deplibs
20068
20069 # Set to "yes" if exported symbols are required.
20070 always_export_symbols=$always_export_symbols
20071
20072 # The commands to list exported symbols.
20073 export_symbols_cmds=$lt_export_symbols_cmds
20074
20075 # Symbols that should not be listed in the preloaded symbols.
20076 exclude_expsyms=$lt_exclude_expsyms
20077
20078 # Symbols that must always be exported.
20079 include_expsyms=$lt_include_expsyms
20080
20081 # Commands necessary for linking programs (against libraries) with templates.
20082 prelink_cmds=$lt_prelink_cmds
20083
20084 # Commands necessary for finishing linking programs.
20085 postlink_cmds=$lt_postlink_cmds
20086
20087 # Specify filename containing input files.
20088 file_list_spec=$lt_file_list_spec
20089
20090 # How to hardcode a shared library path into an executable.
20091 hardcode_action=$hardcode_action
20092
20093 # ### END LIBTOOL CONFIG
20094
20095 _LT_EOF
20096
20097   case $host_os in
20098   aix3*)
20099     cat <<\_LT_EOF >> "$cfgfile"
20100 # AIX sometimes has problems with the GCC collect2 program.  For some
20101 # reason, if we set the COLLECT_NAMES environment variable, the problems
20102 # vanish in a puff of smoke.
20103 if test "X${COLLECT_NAMES+set}" != Xset; then
20104   COLLECT_NAMES=
20105   export COLLECT_NAMES
20106 fi
20107 _LT_EOF
20108     ;;
20109   esac
20110
20111
20112 ltmain="$ac_aux_dir/ltmain.sh"
20113
20114
20115   # We use sed instead of cat because bash on DJGPP gets confused if
20116   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20117   # text mode, it properly converts lines to CR/LF.  This bash problem
20118   # is reportedly fixed, but why not run on old versions too?
20119   sed '$q' "$ltmain" >> "$cfgfile" \
20120      || (rm -f "$cfgfile"; exit 1)
20121
20122   if test x"$xsi_shell" = xyes; then
20123   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20124 func_dirname ()\
20125 {\
20126 \    case ${1} in\
20127 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20128 \      *  ) func_dirname_result="${3}" ;;\
20129 \    esac\
20130 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20131   && mv -f "$cfgfile.tmp" "$cfgfile" \
20132     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20133 test 0 -eq $? || _lt_function_replace_fail=:
20134
20135
20136   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20137 func_basename ()\
20138 {\
20139 \    func_basename_result="${1##*/}"\
20140 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20141   && mv -f "$cfgfile.tmp" "$cfgfile" \
20142     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20143 test 0 -eq $? || _lt_function_replace_fail=:
20144
20145
20146   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20147 func_dirname_and_basename ()\
20148 {\
20149 \    case ${1} in\
20150 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20151 \      *  ) func_dirname_result="${3}" ;;\
20152 \    esac\
20153 \    func_basename_result="${1##*/}"\
20154 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20155   && mv -f "$cfgfile.tmp" "$cfgfile" \
20156     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20157 test 0 -eq $? || _lt_function_replace_fail=:
20158
20159
20160   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20161 func_stripname ()\
20162 {\
20163 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20164 \    # positional parameters, so assign one to ordinary parameter first.\
20165 \    func_stripname_result=${3}\
20166 \    func_stripname_result=${func_stripname_result#"${1}"}\
20167 \    func_stripname_result=${func_stripname_result%"${2}"}\
20168 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20169   && mv -f "$cfgfile.tmp" "$cfgfile" \
20170     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20171 test 0 -eq $? || _lt_function_replace_fail=:
20172
20173
20174   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20175 func_split_long_opt ()\
20176 {\
20177 \    func_split_long_opt_name=${1%%=*}\
20178 \    func_split_long_opt_arg=${1#*=}\
20179 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20180   && mv -f "$cfgfile.tmp" "$cfgfile" \
20181     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20182 test 0 -eq $? || _lt_function_replace_fail=:
20183
20184
20185   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20186 func_split_short_opt ()\
20187 {\
20188 \    func_split_short_opt_arg=${1#??}\
20189 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20190 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20191   && mv -f "$cfgfile.tmp" "$cfgfile" \
20192     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20193 test 0 -eq $? || _lt_function_replace_fail=:
20194
20195
20196   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20197 func_lo2o ()\
20198 {\
20199 \    case ${1} in\
20200 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20201 \      *)    func_lo2o_result=${1} ;;\
20202 \    esac\
20203 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20204   && mv -f "$cfgfile.tmp" "$cfgfile" \
20205     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20206 test 0 -eq $? || _lt_function_replace_fail=:
20207
20208
20209   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20210 func_xform ()\
20211 {\
20212     func_xform_result=${1%.*}.lo\
20213 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20214   && mv -f "$cfgfile.tmp" "$cfgfile" \
20215     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20216 test 0 -eq $? || _lt_function_replace_fail=:
20217
20218
20219   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20220 func_arith ()\
20221 {\
20222     func_arith_result=$(( $* ))\
20223 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20224   && mv -f "$cfgfile.tmp" "$cfgfile" \
20225     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20226 test 0 -eq $? || _lt_function_replace_fail=:
20227
20228
20229   sed -e '/^func_len ()$/,/^} # func_len /c\
20230 func_len ()\
20231 {\
20232     func_len_result=${#1}\
20233 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20234   && mv -f "$cfgfile.tmp" "$cfgfile" \
20235     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20236 test 0 -eq $? || _lt_function_replace_fail=:
20237
20238 fi
20239
20240 if test x"$lt_shell_append" = xyes; then
20241   sed -e '/^func_append ()$/,/^} # func_append /c\
20242 func_append ()\
20243 {\
20244     eval "${1}+=\\${2}"\
20245 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20246   && mv -f "$cfgfile.tmp" "$cfgfile" \
20247     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20248 test 0 -eq $? || _lt_function_replace_fail=:
20249
20250
20251   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20252 func_append_quoted ()\
20253 {\
20254 \    func_quote_for_eval "${2}"\
20255 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20256 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20257   && mv -f "$cfgfile.tmp" "$cfgfile" \
20258     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20259 test 0 -eq $? || _lt_function_replace_fail=:
20260
20261
20262   # Save a `func_append' function call where possible by direct use of '+='
20263   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20264     && mv -f "$cfgfile.tmp" "$cfgfile" \
20265       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20266   test 0 -eq $? || _lt_function_replace_fail=:
20267 else
20268   # Save a `func_append' function call even when '+=' is not available
20269   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20270     && mv -f "$cfgfile.tmp" "$cfgfile" \
20271       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20272   test 0 -eq $? || _lt_function_replace_fail=:
20273 fi
20274
20275 if test x"$_lt_function_replace_fail" = x":"; then
20276   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20277 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20278 fi
20279
20280
20281    mv -f "$cfgfile" "$ofile" ||
20282     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20283   chmod +x "$ofile"
20284
20285  ;;
20286     "disable-rpath":C)
20287         sed < libtool > libtool-2 \
20288         's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
20289         mv libtool-2 libtool
20290         chmod 755 libtool
20291         libtool="./libtool"
20292          ;;
20293
20294   esac
20295 done # for ac_tag
20296
20297
20298 as_fn_exit 0
20299 _ACEOF
20300 ac_clean_files=$ac_clean_files_save
20301
20302 test $ac_write_fail = 0 ||
20303   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20304
20305
20306 # configure is writing to config.log, and then calls config.status.
20307 # config.status does its own redirection, appending to config.log.
20308 # Unfortunately, on DOS this fails, as config.log is still kept open
20309 # by configure, so config.status won't be able to write to it; its
20310 # output is simply discarded.  So we exec the FD to /dev/null,
20311 # effectively closing config.log, so it can be properly (re)opened and
20312 # appended to by config.status.  When coming back to configure, we
20313 # need to make the FD available again.
20314 if test "$no_create" != yes; then
20315   ac_cs_success=:
20316   ac_config_status_args=
20317   test "$silent" = yes &&
20318     ac_config_status_args="$ac_config_status_args --quiet"
20319   exec 5>/dev/null
20320   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20321   exec 5>>config.log
20322   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20323   # would make configure fail if this is the last instruction.
20324   $ac_cs_success || as_fn_exit 1
20325 fi
20326 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20327   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20328 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20329 fi
20330