]> git.saurik.com Git - apple/network_cmds.git/blob - unbound/configure
network_cmds-596.100.2.tar.gz
[apple/network_cmds.git] / unbound / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.5.1.
4 #
5 # Report bugs to <unbound-bugs@nlnetlabs.nl>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: unbound-bugs@nlnetlabs.nl about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='unbound'
592 PACKAGE_TARNAME='unbound'
593 PACKAGE_VERSION='1.5.1'
594 PACKAGE_STRING='unbound 1.5.1'
595 PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='LTLIBOBJS
635 date
636 version
637 INSTALLTARGET
638 ALLTARGET
639 SOURCEFILE
640 SOURCEDETERMINE
641 DNSTAP_OBJ
642 DNSTAP_SRC
643 opt_dnstap_socket_path
644 ENABLE_DNSTAP
645 PROTOC_C
646 UBSYMS
647 EXTRALINK
648 COMMON_OBJ_ALL_SYMBOLS
649 LIBOBJ_WITHOUT_CTIME
650 LIBOBJ_WITHOUT_CTIMEARC4
651 WIN_CHECKCONF_OBJ_LINK
652 WIN_CONTROL_OBJ_LINK
653 WIN_UBANCHOR_OBJ_LINK
654 WIN_HOST_OBJ_LINK
655 WIN_DAEMON_OBJ_LINK
656 WIN_DAEMON_OBJ
657 WIN_DAEMON_SRC
658 WINAPPS
659 WINDRES
660 CHECKLOCK_OBJ
661 staticexe
662 UNBOUND_EVENT_UNINSTALL
663 UNBOUND_EVENT_INSTALL
664 HAVE_SSL
665 CONFIG_DATE
666 NETBSD_LINTFLAGS
667 PYUNBOUND_UNINSTALL
668 PYUNBOUND_INSTALL
669 PYUNBOUND_TARGET
670 PYUNBOUND_OBJ
671 WITH_PYUNBOUND
672 PYTHONMOD_UNINSTALL
673 PYTHONMOD_INSTALL
674 PYTHONMOD_HEADER
675 PYTHONMOD_OBJ
676 WITH_PYTHONMODULE
677 swig
678 SWIG_LIB
679 SWIG
680 PYTHON_SITE_PKG
681 PYTHON_LDFLAGS
682 PYTHON_CPPFLAGS
683 PYTHON
684 PYTHON_VERSION
685 PTHREAD_CFLAGS
686 PTHREAD_LIBS
687 PTHREAD_CC
688 ax_pthread_config
689 RUNTIME_PATH
690 LIBOBJS
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
696 MANIFEST_TOOL
697 AWK
698 RANLIB
699 ac_ct_AR
700 DLLTOOL
701 OBJDUMP
702 LN_S
703 NM
704 ac_ct_DUMPBIN
705 DUMPBIN
706 LD
707 FGREP
708 SED
709 LIBTOOL
710 AR
711 host_os
712 host_vendor
713 host_cpu
714 host
715 build_os
716 build_vendor
717 build_cpu
718 build
719 libtool
720 STRIP
721 doxygen
722 YFLAGS
723 YACC
724 LEXLIB
725 LEX_OUTPUT_ROOT
726 LEX
727 debug_enabled
728 DEPFLAG
729 UNBOUND_USERNAME
730 UNBOUND_ROOTCERT_FILE
731 UNBOUND_ROOTKEY_FILE
732 UNBOUND_PIDFILE
733 UNBOUND_SHARE_DIR
734 UNBOUND_CHROOT_DIR
735 UNBOUND_RUN_DIR
736 ub_conf_file
737 EGREP
738 GREP
739 CPP
740 OBJEXT
741 EXEEXT
742 ac_ct_CC
743 CPPFLAGS
744 LDFLAGS
745 CFLAGS
746 CC
747 LIBUNBOUND_AGE
748 LIBUNBOUND_REVISION
749 LIBUNBOUND_CURRENT
750 UNBOUND_VERSION_MICRO
751 UNBOUND_VERSION_MINOR
752 UNBOUND_VERSION_MAJOR
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 with_conf_file
795 with_run_dir
796 with_chroot_dir
797 with_share_dir
798 with_pidfile
799 with_rootkey_file
800 with_rootcert_file
801 with_username
802 enable_checking
803 enable_debug
804 enable_flto
805 enable_shared
806 enable_static
807 with_pic
808 enable_fast_install
809 with_gnu_ld
810 with_sysroot
811 enable_libtool_lock
812 enable_rpath
813 enable_largefile
814 enable_alloc_checks
815 enable_alloc_lite
816 enable_alloc_nonregional
817 with_pthreads
818 with_solaris_threads
819 with_pyunbound
820 with_pythonmodule
821 with_nss
822 with_ssl
823 enable_sha2
824 enable_gost
825 enable_ecdsa
826 enable_event_api
827 with_libevent
828 with_libexpat
829 enable_static_exe
830 enable_lock_checks
831 enable_allsymbols
832 enable_dnstap
833 with_dnstap_socket_path
834 with_protobuf_c
835 with_libfstrm
836 with_libunbound_only
837 '
838 ac_precious_vars='build_alias
839 host_alias
840 target_alias
841 CC
842 CFLAGS
843 LDFLAGS
844 LIBS
845 CPPFLAGS
846 CPP
847 YACC
848 YFLAGS
849 PYTHON_VERSION'
850
851
852 # Initialize some variables set by options.
853 ac_init_help=
854 ac_init_version=false
855 ac_unrecognized_opts=
856 ac_unrecognized_sep=
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
859 cache_file=/dev/null
860 exec_prefix=NONE
861 no_create=
862 no_recursion=
863 prefix=NONE
864 program_prefix=NONE
865 program_suffix=NONE
866 program_transform_name=s,x,x,
867 silent=
868 site=
869 srcdir=
870 verbose=
871 x_includes=NONE
872 x_libraries=NONE
873
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir='${exec_prefix}/bin'
881 sbindir='${exec_prefix}/sbin'
882 libexecdir='${exec_prefix}/libexec'
883 datarootdir='${prefix}/share'
884 datadir='${datarootdir}'
885 sysconfdir='${prefix}/etc'
886 sharedstatedir='${prefix}/com'
887 localstatedir='${prefix}/var'
888 includedir='${prefix}/include'
889 oldincludedir='/usr/include'
890 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
891 infodir='${datarootdir}/info'
892 htmldir='${docdir}'
893 dvidir='${docdir}'
894 pdfdir='${docdir}'
895 psdir='${docdir}'
896 libdir='${exec_prefix}/lib'
897 localedir='${datarootdir}/locale'
898 mandir='${datarootdir}/man'
899
900 ac_prev=
901 ac_dashdash=
902 for ac_option
903 do
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\$ac_option
907 ac_prev=
908 continue
909 fi
910
911 case $ac_option in
912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913 *=) ac_optarg= ;;
914 *) ac_optarg=yes ;;
915 esac
916
917 # Accept the important Cygnus configure options, so we can diagnose typos.
918
919 case $ac_dashdash$ac_option in
920 --)
921 ac_dashdash=yes ;;
922
923 -bindir | --bindir | --bindi | --bind | --bin | --bi)
924 ac_prev=bindir ;;
925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
926 bindir=$ac_optarg ;;
927
928 -build | --build | --buil | --bui | --bu)
929 ac_prev=build_alias ;;
930 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
931 build_alias=$ac_optarg ;;
932
933 -cache-file | --cache-file | --cache-fil | --cache-fi \
934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
935 ac_prev=cache_file ;;
936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
938 cache_file=$ac_optarg ;;
939
940 --config-cache | -C)
941 cache_file=config.cache ;;
942
943 -datadir | --datadir | --datadi | --datad)
944 ac_prev=datadir ;;
945 -datadir=* | --datadir=* | --datadi=* | --datad=*)
946 datadir=$ac_optarg ;;
947
948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
949 | --dataroo | --dataro | --datar)
950 ac_prev=datarootdir ;;
951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
953 datarootdir=$ac_optarg ;;
954
955 -disable-* | --disable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error $? "invalid feature name: $ac_useropt"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
963 *"
964 "enable_$ac_useropt"
965 "*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=no ;;
970
971 -docdir | --docdir | --docdi | --doc | --do)
972 ac_prev=docdir ;;
973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
974 docdir=$ac_optarg ;;
975
976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
977 ac_prev=dvidir ;;
978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
979 dvidir=$ac_optarg ;;
980
981 -enable-* | --enable-*)
982 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985 as_fn_error $? "invalid feature name: $ac_useropt"
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
989 *"
990 "enable_$ac_useropt"
991 "*) ;;
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
994 esac
995 eval enable_$ac_useropt=\$ac_optarg ;;
996
997 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
998 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
999 | --exec | --exe | --ex)
1000 ac_prev=exec_prefix ;;
1001 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1002 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1003 | --exec=* | --exe=* | --ex=*)
1004 exec_prefix=$ac_optarg ;;
1005
1006 -gas | --gas | --ga | --g)
1007 # Obsolete; use --with-gas.
1008 with_gas=yes ;;
1009
1010 -help | --help | --hel | --he | -h)
1011 ac_init_help=long ;;
1012 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1013 ac_init_help=recursive ;;
1014 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1015 ac_init_help=short ;;
1016
1017 -host | --host | --hos | --ho)
1018 ac_prev=host_alias ;;
1019 -host=* | --host=* | --hos=* | --ho=*)
1020 host_alias=$ac_optarg ;;
1021
1022 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1023 ac_prev=htmldir ;;
1024 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1025 | --ht=*)
1026 htmldir=$ac_optarg ;;
1027
1028 -includedir | --includedir | --includedi | --included | --include \
1029 | --includ | --inclu | --incl | --inc)
1030 ac_prev=includedir ;;
1031 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1032 | --includ=* | --inclu=* | --incl=* | --inc=*)
1033 includedir=$ac_optarg ;;
1034
1035 -infodir | --infodir | --infodi | --infod | --info | --inf)
1036 ac_prev=infodir ;;
1037 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1038 infodir=$ac_optarg ;;
1039
1040 -libdir | --libdir | --libdi | --libd)
1041 ac_prev=libdir ;;
1042 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1043 libdir=$ac_optarg ;;
1044
1045 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1046 | --libexe | --libex | --libe)
1047 ac_prev=libexecdir ;;
1048 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1049 | --libexe=* | --libex=* | --libe=*)
1050 libexecdir=$ac_optarg ;;
1051
1052 -localedir | --localedir | --localedi | --localed | --locale)
1053 ac_prev=localedir ;;
1054 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1055 localedir=$ac_optarg ;;
1056
1057 -localstatedir | --localstatedir | --localstatedi | --localstated \
1058 | --localstate | --localstat | --localsta | --localst | --locals)
1059 ac_prev=localstatedir ;;
1060 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1061 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1062 localstatedir=$ac_optarg ;;
1063
1064 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1065 ac_prev=mandir ;;
1066 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1067 mandir=$ac_optarg ;;
1068
1069 -nfp | --nfp | --nf)
1070 # Obsolete; use --without-fp.
1071 with_fp=no ;;
1072
1073 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1074 | --no-cr | --no-c | -n)
1075 no_create=yes ;;
1076
1077 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1078 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1079 no_recursion=yes ;;
1080
1081 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1082 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1083 | --oldin | --oldi | --old | --ol | --o)
1084 ac_prev=oldincludedir ;;
1085 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1086 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1087 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1088 oldincludedir=$ac_optarg ;;
1089
1090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1091 ac_prev=prefix ;;
1092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1093 prefix=$ac_optarg ;;
1094
1095 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1096 | --program-pre | --program-pr | --program-p)
1097 ac_prev=program_prefix ;;
1098 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1099 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1100 program_prefix=$ac_optarg ;;
1101
1102 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1103 | --program-suf | --program-su | --program-s)
1104 ac_prev=program_suffix ;;
1105 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1106 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1107 program_suffix=$ac_optarg ;;
1108
1109 -program-transform-name | --program-transform-name \
1110 | --program-transform-nam | --program-transform-na \
1111 | --program-transform-n | --program-transform- \
1112 | --program-transform | --program-transfor \
1113 | --program-transfo | --program-transf \
1114 | --program-trans | --program-tran \
1115 | --progr-tra | --program-tr | --program-t)
1116 ac_prev=program_transform_name ;;
1117 -program-transform-name=* | --program-transform-name=* \
1118 | --program-transform-nam=* | --program-transform-na=* \
1119 | --program-transform-n=* | --program-transform-=* \
1120 | --program-transform=* | --program-transfor=* \
1121 | --program-transfo=* | --program-transf=* \
1122 | --program-trans=* | --program-tran=* \
1123 | --progr-tra=* | --program-tr=* | --program-t=*)
1124 program_transform_name=$ac_optarg ;;
1125
1126 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1127 ac_prev=pdfdir ;;
1128 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1129 pdfdir=$ac_optarg ;;
1130
1131 -psdir | --psdir | --psdi | --psd | --ps)
1132 ac_prev=psdir ;;
1133 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1134 psdir=$ac_optarg ;;
1135
1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137 | -silent | --silent | --silen | --sile | --sil)
1138 silent=yes ;;
1139
1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1141 ac_prev=sbindir ;;
1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1143 | --sbi=* | --sb=*)
1144 sbindir=$ac_optarg ;;
1145
1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148 | --sharedst | --shareds | --shared | --share | --shar \
1149 | --sha | --sh)
1150 ac_prev=sharedstatedir ;;
1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1154 | --sha=* | --sh=*)
1155 sharedstatedir=$ac_optarg ;;
1156
1157 -site | --site | --sit)
1158 ac_prev=site ;;
1159 -site=* | --site=* | --sit=*)
1160 site=$ac_optarg ;;
1161
1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1163 ac_prev=srcdir ;;
1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165 srcdir=$ac_optarg ;;
1166
1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168 | --syscon | --sysco | --sysc | --sys | --sy)
1169 ac_prev=sysconfdir ;;
1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172 sysconfdir=$ac_optarg ;;
1173
1174 -target | --target | --targe | --targ | --tar | --ta | --t)
1175 ac_prev=target_alias ;;
1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177 target_alias=$ac_optarg ;;
1178
1179 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1180 verbose=yes ;;
1181
1182 -version | --version | --versio | --versi | --vers | -V)
1183 ac_init_version=: ;;
1184
1185 -with-* | --with-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=\$ac_optarg ;;
1200
1201 -without-* | --without-*)
1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 as_fn_error $? "invalid package name: $ac_useropt"
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1209 *"
1210 "with_$ac_useropt"
1211 "*) ;;
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1214 esac
1215 eval with_$ac_useropt=no ;;
1216
1217 --x)
1218 # Obsolete; use --with-x.
1219 with_x=yes ;;
1220
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1227
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1234
1235 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1236 Try \`$0 --help' for more information"
1237 ;;
1238
1239 *=*)
1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names.
1242 case $ac_envvar in #(
1243 '' | [0-9]* | *[!_$as_cr_alnum]* )
1244 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1245 esac
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1248
1249 *)
1250 # FIXME: should be removed in autoconf 3.0.
1251 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1255 ;;
1256
1257 esac
1258 done
1259
1260 if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 as_fn_error $? "missing argument to $ac_option"
1263 fi
1264
1265 if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in
1267 no) ;;
1268 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1269 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 esac
1271 fi
1272
1273 # Check all directory arguments for consistency.
1274 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir
1278 do
1279 eval ac_val=\$$ac_var
1280 # Remove trailing slashes.
1281 case $ac_val in
1282 */ )
1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284 eval $ac_var=\$ac_val;;
1285 esac
1286 # Be sure to have absolute directory names.
1287 case $ac_val in
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290 esac
1291 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1292 done
1293
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1297 build=$build_alias
1298 host=$host_alias
1299 target=$target_alias
1300
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 elif test "x$build_alias" != "x$host_alias"; then
1306 cross_compiling=yes
1307 fi
1308 fi
1309
1310 ac_tool_prefix=
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313 test "$silent" = yes && exec 6>/dev/null
1314
1315
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 as_fn_error $? "working directory cannot be determined"
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 as_fn_error $? "pwd does not report name of working directory"
1322
1323
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$as_myself" ||
1329 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333 $as_echo X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)[^/].*/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\).*/{
1347 s//\1/
1348 q
1349 }
1350 s/.*/./; q'`
1351 srcdir=$ac_confdir
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 srcdir=..
1354 fi
1355 else
1356 ac_srcdir_defaulted=no
1357 fi
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1361 fi
1362 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 ac_abs_confdir=`(
1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1365 pwd)`
1366 # When building in place, set srcdir=.
1367 if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 srcdir=.
1369 fi
1370 # Remove unnecessary trailing slashes from srcdir.
1371 # Double slashes in file names in object file debugging info
1372 # mess up M-x gdb in Emacs.
1373 case $srcdir in
1374 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 esac
1376 for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 done
1382
1383 #
1384 # Report the --help message.
1385 #
1386 if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
1390 \`configure' configures unbound 1.5.1 to adapt to many kinds of systems.
1391
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE. See below for descriptions of some of the useful variables.
1396
1397 Defaults for the options are specified in brackets.
1398
1399 Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking ...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409
1410 Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1414 [PREFIX]
1415
1416 By default, \`make install' will install all the files in
1417 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419 for instance \`--prefix=\$HOME'.
1420
1421 For better control, use the options below.
1422
1423 Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1443 _ACEOF
1444
1445 cat <<\_ACEOF
1446
1447 System types:
1448 --build=BUILD configure for building on BUILD [guessed]
1449 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1450 _ACEOF
1451 fi
1452
1453 if test -n "$ac_init_help"; then
1454 case $ac_init_help in
1455 short | recursive ) echo "Configuration of unbound 1.5.1:";;
1456 esac
1457 cat <<\_ACEOF
1458
1459 Optional Features:
1460 --disable-option-checking ignore unrecognized --enable/--with options
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --enable-checking Enable warnings, asserts, makefile-dependencies
1464 --enable-debug same as enable-checking
1465 --disable-flto Disable link-time optimization (gcc specific option)
1466 --enable-shared[=PKGS] build shared libraries [default=yes]
1467 --enable-static[=PKGS] build static libraries [default=yes]
1468 --enable-fast-install[=PKGS]
1469 optimize for fast installation [default=yes]
1470 --disable-libtool-lock avoid locking (might break parallel builds)
1471 --disable-rpath disable hardcoded rpath (default=enabled)
1472 --disable-largefile omit support for large files
1473 --enable-alloc-checks enable to memory allocation statistics, for debug
1474 purposes
1475 --enable-alloc-lite enable for lightweight alloc assertions, for debug
1476 purposes
1477 --enable-alloc-nonregional
1478 enable nonregional allocs, slow but exposes regional
1479 allocations to other memory purifiers, for debug
1480 purposes
1481 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1482 --disable-gost Disable GOST support
1483 --disable-ecdsa Disable ECDSA support
1484 --enable-event-api Enable (experimental) libevent-based libunbound API
1485 installed to unbound-event.h
1486 --enable-static-exe enable to compile executables statically against
1487 (event) libs, for debug purposes
1488 --enable-lock-checks enable to check lock and unlock calls, for debug
1489 purposes
1490 --enable-allsymbols export all symbols from libunbound and link binaries
1491 to it, smaller install size but libunbound export
1492 table is polluted by internal symbols
1493 --enable-dnstap Enable dnstap support (requires fstrm, protobuf-c)
1494
1495 Optional Packages:
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-conf-file=path Pathname to the Unbound configuration file
1499 --with-run-dir=path set default directory to chdir to (by default dir
1500 part of cfg file)
1501 --with-chroot-dir=path set default directory to chroot to (by default same
1502 as run-dir)
1503 --with-share-dir=path set default directory with shared data (by default
1504 same as share/unbound)
1505 --with-pidfile=filename set default pathname to unbound pidfile (default
1506 run-dir/unbound.pid)
1507 --with-rootkey-file=filename
1508 set default pathname to root key file (default
1509 run-dir/root.key). This file is read and written.
1510 --with-rootcert-file=filename
1511 set default pathname to root update certificate file
1512 (default run-dir/icannbundle.pem). This file need
1513 not exist if you are content with the builtin.
1514 --with-username=user set default user that unbound changes to (default
1515 user is unbound)
1516 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1517 both]
1518 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1519 --with-sysroot=DIR Search for dependent libraries within DIR
1520 (or the compiler's sysroot if not specified).
1521 --with-pthreads use pthreads library, or --without-pthreads to
1522 disable threading support.
1523 --with-solaris-threads use solaris native thread library.
1524 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it.
1525 (default=no)
1526 --with-pythonmodule build Python module, or --without-pythonmodule to
1527 disable script engine. (default=no)
1528 --with-nss=path use libnss instead of openssl, installed at path.
1529 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1530 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1531 /usr)
1532 --with-libevent=pathname
1533 use libevent (will check /usr/local /opt/local
1534 /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1535 an explicit path). Slower, but allows use of large
1536 outgoing port ranges.
1537 --with-libexpat=path specify explicit path for libexpat.
1538 --with-dnstap-socket-path=pathname
1539 set default dnstap socket path
1540 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap
1541 --with-libfstrm=path Path where libfstrm is installed, for dnstap
1542 --with-libunbound-only do not build daemon and tool programs
1543
1544 Some influential environment variables:
1545 CC C compiler command
1546 CFLAGS C compiler flags
1547 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1548 nonstandard directory <lib dir>
1549 LIBS libraries to pass to the linker, e.g. -l<library>
1550 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1551 you have headers in a nonstandard directory <include dir>
1552 CPP C preprocessor
1553 YACC The `Yet Another Compiler Compiler' implementation to use.
1554 Defaults to the first program found out of: `bison -y', `byacc',
1555 `yacc'.
1556 YFLAGS The list of arguments that will be passed by default to $YACC.
1557 This script will default YFLAGS to the empty string to avoid a
1558 default value of `-d' given by some make applications.
1559 PYTHON_VERSION
1560 The installed Python version to use, for example '2.3'. This
1561 string will be appended to the Python interpreter canonical
1562 name.
1563
1564 Use these variables to override the choices made by `configure' or to help
1565 it to find libraries and programs with nonstandard names/locations.
1566
1567 Report bugs to <unbound-bugs@nlnetlabs.nl>.
1568 _ACEOF
1569 ac_status=$?
1570 fi
1571
1572 if test "$ac_init_help" = "recursive"; then
1573 # If there are subdirs, report their specific --help.
1574 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575 test -d "$ac_dir" ||
1576 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577 continue
1578 ac_builddir=.
1579
1580 case "$ac_dir" in
1581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *)
1583 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584 # A ".." for each directory in $ac_dir_suffix.
1585 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586 case $ac_top_builddir_sub in
1587 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1589 esac ;;
1590 esac
1591 ac_abs_top_builddir=$ac_pwd
1592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593 # for backward compatibility:
1594 ac_top_builddir=$ac_top_build_prefix
1595
1596 case $srcdir in
1597 .) # We are building in place.
1598 ac_srcdir=.
1599 ac_top_srcdir=$ac_top_builddir_sub
1600 ac_abs_top_srcdir=$ac_pwd ;;
1601 [\\/]* | ?:[\\/]* ) # Absolute name.
1602 ac_srcdir=$srcdir$ac_dir_suffix;
1603 ac_top_srcdir=$srcdir
1604 ac_abs_top_srcdir=$srcdir ;;
1605 *) # Relative name.
1606 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607 ac_top_srcdir=$ac_top_build_prefix$srcdir
1608 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609 esac
1610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611
1612 cd "$ac_dir" || { ac_status=$?; continue; }
1613 # Check for guested configure.
1614 if test -f "$ac_srcdir/configure.gnu"; then
1615 echo &&
1616 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617 elif test -f "$ac_srcdir/configure"; then
1618 echo &&
1619 $SHELL "$ac_srcdir/configure" --help=recursive
1620 else
1621 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622 fi || ac_status=$?
1623 cd "$ac_pwd" || { ac_status=$?; break; }
1624 done
1625 fi
1626
1627 test -n "$ac_init_help" && exit $ac_status
1628 if $ac_init_version; then
1629 cat <<\_ACEOF
1630 unbound configure 1.5.1
1631 generated by GNU Autoconf 2.69
1632
1633 Copyright (C) 2012 Free Software Foundation, Inc.
1634 This configure script is free software; the Free Software Foundation
1635 gives unlimited permission to copy, distribute and modify it.
1636 _ACEOF
1637 exit
1638 fi
1639
1640 ## ------------------------ ##
1641 ## Autoconf initialization. ##
1642 ## ------------------------ ##
1643
1644 # ac_fn_c_try_compile LINENO
1645 # --------------------------
1646 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_c_try_compile ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 rm -f conftest.$ac_objext
1651 if { { ac_try="$ac_compile"
1652 case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_compile") 2>conftest.err
1659 ac_status=$?
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1664 fi
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && {
1667 test -z "$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 } && test -s conftest.$ac_objext; then :
1670 ac_retval=0
1671 else
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675 ac_retval=1
1676 fi
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 as_fn_set_status $ac_retval
1679
1680 } # ac_fn_c_try_compile
1681
1682 # ac_fn_c_try_cpp LINENO
1683 # ----------------------
1684 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_cpp ()
1686 {
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 if { { ac_try="$ac_cpp conftest.$ac_ext"
1689 case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } > conftest.i && {
1704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 }; then :
1707 ac_retval=0
1708 else
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=1
1713 fi
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_cpp
1718
1719 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1720 # -------------------------------------------------------
1721 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1722 # the include files in INCLUDES and setting the cache variable VAR
1723 # accordingly.
1724 ac_fn_c_check_header_mongrel ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if eval \${$3+:} false; then :
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1732 fi
1733 eval ac_res=\$$3
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1736 else
1737 # Is the header compilable?
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1739 $as_echo_n "checking $2 usability... " >&6; }
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1742 $4
1743 #include <$2>
1744 _ACEOF
1745 if ac_fn_c_try_compile "$LINENO"; then :
1746 ac_header_compiler=yes
1747 else
1748 ac_header_compiler=no
1749 fi
1750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1752 $as_echo "$ac_header_compiler" >&6; }
1753
1754 # Is the header present?
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1756 $as_echo_n "checking $2 presence... " >&6; }
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1759 #include <$2>
1760 _ACEOF
1761 if ac_fn_c_try_cpp "$LINENO"; then :
1762 ac_header_preproc=yes
1763 else
1764 ac_header_preproc=no
1765 fi
1766 rm -f conftest.err conftest.i conftest.$ac_ext
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1768 $as_echo "$ac_header_preproc" >&6; }
1769
1770 # So? What about this header?
1771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1772 yes:no: )
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1774 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1776 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1777 ;;
1778 no:yes:* )
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1780 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1782 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1784 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1786 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1788 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1789 ( $as_echo "## ---------------------------------------- ##
1790 ## Report this to unbound-bugs@nlnetlabs.nl ##
1791 ## ---------------------------------------- ##"
1792 ) | sed "s/^/$as_me: WARNING: /" >&2
1793 ;;
1794 esac
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if eval \${$3+:} false; then :
1798 $as_echo_n "(cached) " >&6
1799 else
1800 eval "$3=\$ac_header_compiler"
1801 fi
1802 eval ac_res=\$$3
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805 fi
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807
1808 } # ac_fn_c_check_header_mongrel
1809
1810 # ac_fn_c_try_run LINENO
1811 # ----------------------
1812 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1813 # that executables *can* be run.
1814 ac_fn_c_try_run ()
1815 {
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 if { { ac_try="$ac_link"
1818 case "(($ac_try" in
1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1821 esac
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_link") 2>&5
1825 ac_status=$?
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1828 { { case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_try") 2>&5
1835 ac_status=$?
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; }; }; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: program exited with status $ac_status" >&5
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1843
1844 ac_retval=$ac_status
1845 fi
1846 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 as_fn_set_status $ac_retval
1849
1850 } # ac_fn_c_try_run
1851
1852 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1853 # -------------------------------------------------------
1854 # Tests whether HEADER exists and can be compiled using the include files in
1855 # INCLUDES, setting the cache variable VAR accordingly.
1856 ac_fn_c_check_header_compile ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval \${$3+:} false; then :
1862 $as_echo_n "(cached) " >&6
1863 else
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1866 $4
1867 #include <$2>
1868 _ACEOF
1869 if ac_fn_c_try_compile "$LINENO"; then :
1870 eval "$3=yes"
1871 else
1872 eval "$3=no"
1873 fi
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 fi
1876 eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880
1881 } # ac_fn_c_check_header_compile
1882
1883 # ac_fn_c_try_link LINENO
1884 # -----------------------
1885 # Try to link conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_c_try_link ()
1887 {
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext conftest$ac_exeext
1890 if { { ac_try="$ac_link"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_link") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1903 fi
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest$ac_exeext && {
1909 test "$cross_compiling" = yes ||
1910 test -x conftest$ac_exeext
1911 }; then :
1912 ac_retval=0
1913 else
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1916
1917 ac_retval=1
1918 fi
1919 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1920 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1921 # interfere with the next link command; also delete a directory that is
1922 # left behind by Apple's compiler. We do this before executing the actions.
1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 as_fn_set_status $ac_retval
1926
1927 } # ac_fn_c_try_link
1928
1929 # ac_fn_c_check_func LINENO FUNC VAR
1930 # ----------------------------------
1931 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1932 ac_fn_c_check_func ()
1933 {
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1939 else
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1944 #define $2 innocuous_$2
1945
1946 /* System header to define __stub macros and hopefully few prototypes,
1947 which can conflict with char $2 (); below.
1948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1949 <limits.h> exists even on freestanding compilers. */
1950
1951 #ifdef __STDC__
1952 # include <limits.h>
1953 #else
1954 # include <assert.h>
1955 #endif
1956
1957 #undef $2
1958
1959 /* Override any GCC internal prototype to avoid an error.
1960 Use char because int might match the return type of a GCC
1961 builtin and then its argument prototype would still apply. */
1962 #ifdef __cplusplus
1963 extern "C"
1964 #endif
1965 char $2 ();
1966 /* The GNU C library defines this for functions which it implements
1967 to always fail with ENOSYS. Some functions are actually named
1968 something starting with __ and the normal name is an alias. */
1969 #if defined __stub_$2 || defined __stub___$2
1970 choke me
1971 #endif
1972
1973 int
1974 main ()
1975 {
1976 return $2 ();
1977 ;
1978 return 0;
1979 }
1980 _ACEOF
1981 if ac_fn_c_try_link "$LINENO"; then :
1982 eval "$3=yes"
1983 else
1984 eval "$3=no"
1985 fi
1986 rm -f core conftest.err conftest.$ac_objext \
1987 conftest$ac_exeext conftest.$ac_ext
1988 fi
1989 eval ac_res=\$$3
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993
1994 } # ac_fn_c_check_func
1995
1996 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1997 # -------------------------------------------
1998 # Tests whether TYPE exists after having included INCLUDES, setting cache
1999 # variable VAR accordingly.
2000 ac_fn_c_check_type ()
2001 {
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2004 $as_echo_n "checking for $2... " >&6; }
2005 if eval \${$3+:} false; then :
2006 $as_echo_n "(cached) " >&6
2007 else
2008 eval "$3=no"
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2011 $4
2012 int
2013 main ()
2014 {
2015 if (sizeof ($2))
2016 return 0;
2017 ;
2018 return 0;
2019 }
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2024 $4
2025 int
2026 main ()
2027 {
2028 if (sizeof (($2)))
2029 return 0;
2030 ;
2031 return 0;
2032 }
2033 _ACEOF
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035
2036 else
2037 eval "$3=yes"
2038 fi
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 fi
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 fi
2043 eval ac_res=\$$3
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047
2048 } # ac_fn_c_check_type
2049
2050 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2051 # --------------------------------------------
2052 # Tries to find the compile-time value of EXPR in a program that includes
2053 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2054 # computed
2055 ac_fn_c_compute_int ()
2056 {
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 if test "$cross_compiling" = yes; then
2059 # Depending upon the size, compute the lo and hi bounds.
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2062 $4
2063 int
2064 main ()
2065 {
2066 static int test_array [1 - 2 * !(($2) >= 0)];
2067 test_array [0] = 0;
2068 return test_array [0];
2069
2070 ;
2071 return 0;
2072 }
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075 ac_lo=0 ac_mid=0
2076 while :; do
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2079 $4
2080 int
2081 main ()
2082 {
2083 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2084 test_array [0] = 0;
2085 return test_array [0];
2086
2087 ;
2088 return 0;
2089 }
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092 ac_hi=$ac_mid; break
2093 else
2094 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2095 if test $ac_lo -le $ac_mid; then
2096 ac_lo= ac_hi=
2097 break
2098 fi
2099 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2100 fi
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 done
2103 else
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2106 $4
2107 int
2108 main ()
2109 {
2110 static int test_array [1 - 2 * !(($2) < 0)];
2111 test_array [0] = 0;
2112 return test_array [0];
2113
2114 ;
2115 return 0;
2116 }
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119 ac_hi=-1 ac_mid=-1
2120 while :; do
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2123 $4
2124 int
2125 main ()
2126 {
2127 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2128 test_array [0] = 0;
2129 return test_array [0];
2130
2131 ;
2132 return 0;
2133 }
2134 _ACEOF
2135 if ac_fn_c_try_compile "$LINENO"; then :
2136 ac_lo=$ac_mid; break
2137 else
2138 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2139 if test $ac_mid -le $ac_hi; then
2140 ac_lo= ac_hi=
2141 break
2142 fi
2143 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 done
2147 else
2148 ac_lo= ac_hi=
2149 fi
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 fi
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 # Binary search between lo and hi bounds.
2154 while test "x$ac_lo" != "x$ac_hi"; do
2155 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2158 $4
2159 int
2160 main ()
2161 {
2162 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2163 test_array [0] = 0;
2164 return test_array [0];
2165
2166 ;
2167 return 0;
2168 }
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171 ac_hi=$ac_mid
2172 else
2173 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2174 fi
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 done
2177 case $ac_lo in #((
2178 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2179 '') ac_retval=1 ;;
2180 esac
2181 else
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2184 $4
2185 static long int longval () { return $2; }
2186 static unsigned long int ulongval () { return $2; }
2187 #include <stdio.h>
2188 #include <stdlib.h>
2189 int
2190 main ()
2191 {
2192
2193 FILE *f = fopen ("conftest.val", "w");
2194 if (! f)
2195 return 1;
2196 if (($2) < 0)
2197 {
2198 long int i = longval ();
2199 if (i != ($2))
2200 return 1;
2201 fprintf (f, "%ld", i);
2202 }
2203 else
2204 {
2205 unsigned long int i = ulongval ();
2206 if (i != ($2))
2207 return 1;
2208 fprintf (f, "%lu", i);
2209 }
2210 /* Do not output a trailing newline, as this causes \r\n confusion
2211 on some platforms. */
2212 return ferror (f) || fclose (f) != 0;
2213
2214 ;
2215 return 0;
2216 }
2217 _ACEOF
2218 if ac_fn_c_try_run "$LINENO"; then :
2219 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2220 else
2221 ac_retval=1
2222 fi
2223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2224 conftest.$ac_objext conftest.beam conftest.$ac_ext
2225 rm -f conftest.val
2226
2227 fi
2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229 as_fn_set_status $ac_retval
2230
2231 } # ac_fn_c_compute_int
2232
2233 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2234 # ---------------------------------------------
2235 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2236 # accordingly.
2237 ac_fn_c_check_decl ()
2238 {
2239 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240 as_decl_name=`echo $2|sed 's/ *(.*//'`
2241 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2243 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2244 if eval \${$3+:} false; then :
2245 $as_echo_n "(cached) " >&6
2246 else
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2249 $4
2250 int
2251 main ()
2252 {
2253 #ifndef $as_decl_name
2254 #ifdef __cplusplus
2255 (void) $as_decl_use;
2256 #else
2257 (void) $as_decl_name;
2258 #endif
2259 #endif
2260
2261 ;
2262 return 0;
2263 }
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266 eval "$3=yes"
2267 else
2268 eval "$3=no"
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 fi
2272 eval ac_res=\$$3
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276
2277 } # ac_fn_c_check_decl
2278
2279 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2280 # ----------------------------------------------------
2281 # Tries to find if the field MEMBER exists in type AGGR, after including
2282 # INCLUDES, setting cache variable VAR accordingly.
2283 ac_fn_c_check_member ()
2284 {
2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2287 $as_echo_n "checking for $2.$3... " >&6; }
2288 if eval \${$4+:} false; then :
2289 $as_echo_n "(cached) " >&6
2290 else
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2293 $5
2294 int
2295 main ()
2296 {
2297 static $2 ac_aggr;
2298 if (ac_aggr.$3)
2299 return 0;
2300 ;
2301 return 0;
2302 }
2303 _ACEOF
2304 if ac_fn_c_try_compile "$LINENO"; then :
2305 eval "$4=yes"
2306 else
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 $5
2310 int
2311 main ()
2312 {
2313 static $2 ac_aggr;
2314 if (sizeof ac_aggr.$3)
2315 return 0;
2316 ;
2317 return 0;
2318 }
2319 _ACEOF
2320 if ac_fn_c_try_compile "$LINENO"; then :
2321 eval "$4=yes"
2322 else
2323 eval "$4=no"
2324 fi
2325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326 fi
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328 fi
2329 eval ac_res=\$$4
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2331 $as_echo "$ac_res" >&6; }
2332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2333
2334 } # ac_fn_c_check_member
2335 cat >config.log <<_ACEOF
2336 This file contains any messages produced by compilers while
2337 running configure, to aid debugging if configure makes a mistake.
2338
2339 It was created by unbound $as_me 1.5.1, which was
2340 generated by GNU Autoconf 2.69. Invocation command line was
2341
2342 $ $0 $@
2343
2344 _ACEOF
2345 exec 5>>config.log
2346 {
2347 cat <<_ASUNAME
2348 ## --------- ##
2349 ## Platform. ##
2350 ## --------- ##
2351
2352 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2353 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2354 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2355 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2356 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2357
2358 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2359 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2360
2361 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2362 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2363 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2364 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2365 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2366 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2367 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2368
2369 _ASUNAME
2370
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2373 do
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
2376 $as_echo "PATH: $as_dir"
2377 done
2378 IFS=$as_save_IFS
2379
2380 } >&5
2381
2382 cat >&5 <<_ACEOF
2383
2384
2385 ## ----------- ##
2386 ## Core tests. ##
2387 ## ----------- ##
2388
2389 _ACEOF
2390
2391
2392 # Keep a trace of the command line.
2393 # Strip out --no-create and --no-recursion so they do not pile up.
2394 # Strip out --silent because we don't want to record it for future runs.
2395 # Also quote any args containing shell meta-characters.
2396 # Make two passes to allow for proper duplicate-argument suppression.
2397 ac_configure_args=
2398 ac_configure_args0=
2399 ac_configure_args1=
2400 ac_must_keep_next=false
2401 for ac_pass in 1 2
2402 do
2403 for ac_arg
2404 do
2405 case $ac_arg in
2406 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2407 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2408 | -silent | --silent | --silen | --sile | --sil)
2409 continue ;;
2410 *\'*)
2411 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2412 esac
2413 case $ac_pass in
2414 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2415 2)
2416 as_fn_append ac_configure_args1 " '$ac_arg'"
2417 if test $ac_must_keep_next = true; then
2418 ac_must_keep_next=false # Got value, back to normal.
2419 else
2420 case $ac_arg in
2421 *=* | --config-cache | -C | -disable-* | --disable-* \
2422 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2423 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2424 | -with-* | --with-* | -without-* | --without-* | --x)
2425 case "$ac_configure_args0 " in
2426 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2427 esac
2428 ;;
2429 -* ) ac_must_keep_next=true ;;
2430 esac
2431 fi
2432 as_fn_append ac_configure_args " '$ac_arg'"
2433 ;;
2434 esac
2435 done
2436 done
2437 { ac_configure_args0=; unset ac_configure_args0;}
2438 { ac_configure_args1=; unset ac_configure_args1;}
2439
2440 # When interrupted or exit'd, cleanup temporary files, and complete
2441 # config.log. We remove comments because anyway the quotes in there
2442 # would cause problems or look ugly.
2443 # WARNING: Use '\'' to represent an apostrophe within the trap.
2444 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2445 trap 'exit_status=$?
2446 # Save into config.log some information that might help in debugging.
2447 {
2448 echo
2449
2450 $as_echo "## ---------------- ##
2451 ## Cache variables. ##
2452 ## ---------------- ##"
2453 echo
2454 # The following way of writing the cache mishandles newlines in values,
2455 (
2456 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2457 eval ac_val=\$$ac_var
2458 case $ac_val in #(
2459 *${as_nl}*)
2460 case $ac_var in #(
2461 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2462 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2463 esac
2464 case $ac_var in #(
2465 _ | IFS | as_nl) ;; #(
2466 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2467 *) { eval $ac_var=; unset $ac_var;} ;;
2468 esac ;;
2469 esac
2470 done
2471 (set) 2>&1 |
2472 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2473 *${as_nl}ac_space=\ *)
2474 sed -n \
2475 "s/'\''/'\''\\\\'\'''\''/g;
2476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2477 ;; #(
2478 *)
2479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2480 ;;
2481 esac |
2482 sort
2483 )
2484 echo
2485
2486 $as_echo "## ----------------- ##
2487 ## Output variables. ##
2488 ## ----------------- ##"
2489 echo
2490 for ac_var in $ac_subst_vars
2491 do
2492 eval ac_val=\$$ac_var
2493 case $ac_val in
2494 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2495 esac
2496 $as_echo "$ac_var='\''$ac_val'\''"
2497 done | sort
2498 echo
2499
2500 if test -n "$ac_subst_files"; then
2501 $as_echo "## ------------------- ##
2502 ## File substitutions. ##
2503 ## ------------------- ##"
2504 echo
2505 for ac_var in $ac_subst_files
2506 do
2507 eval ac_val=\$$ac_var
2508 case $ac_val in
2509 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2510 esac
2511 $as_echo "$ac_var='\''$ac_val'\''"
2512 done | sort
2513 echo
2514 fi
2515
2516 if test -s confdefs.h; then
2517 $as_echo "## ----------- ##
2518 ## confdefs.h. ##
2519 ## ----------- ##"
2520 echo
2521 cat confdefs.h
2522 echo
2523 fi
2524 test "$ac_signal" != 0 &&
2525 $as_echo "$as_me: caught signal $ac_signal"
2526 $as_echo "$as_me: exit $exit_status"
2527 } >&5
2528 rm -f core *.core core.conftest.* &&
2529 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2530 exit $exit_status
2531 ' 0
2532 for ac_signal in 1 2 13 15; do
2533 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2534 done
2535 ac_signal=0
2536
2537 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2538 rm -f -r conftest* confdefs.h
2539
2540 $as_echo "/* confdefs.h */" > confdefs.h
2541
2542 # Predefined preprocessor variables.
2543
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_NAME "$PACKAGE_NAME"
2546 _ACEOF
2547
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2550 _ACEOF
2551
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2554 _ACEOF
2555
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_STRING "$PACKAGE_STRING"
2558 _ACEOF
2559
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2562 _ACEOF
2563
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_URL "$PACKAGE_URL"
2566 _ACEOF
2567
2568
2569 # Let the site file select an alternate cache file if it wants to.
2570 # Prefer an explicitly selected file to automatically selected ones.
2571 ac_site_file1=NONE
2572 ac_site_file2=NONE
2573 if test -n "$CONFIG_SITE"; then
2574 # We do not want a PATH search for config.site.
2575 case $CONFIG_SITE in #((
2576 -*) ac_site_file1=./$CONFIG_SITE;;
2577 */*) ac_site_file1=$CONFIG_SITE;;
2578 *) ac_site_file1=./$CONFIG_SITE;;
2579 esac
2580 elif test "x$prefix" != xNONE; then
2581 ac_site_file1=$prefix/share/config.site
2582 ac_site_file2=$prefix/etc/config.site
2583 else
2584 ac_site_file1=$ac_default_prefix/share/config.site
2585 ac_site_file2=$ac_default_prefix/etc/config.site
2586 fi
2587 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2588 do
2589 test "x$ac_site_file" = xNONE && continue
2590 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2592 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2593 sed 's/^/| /' "$ac_site_file" >&5
2594 . "$ac_site_file" \
2595 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597 as_fn_error $? "failed to load site script $ac_site_file
2598 See \`config.log' for more details" "$LINENO" 5; }
2599 fi
2600 done
2601
2602 if test -r "$cache_file"; then
2603 # Some versions of bash will fail to source /dev/null (special files
2604 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2605 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2607 $as_echo "$as_me: loading cache $cache_file" >&6;}
2608 case $cache_file in
2609 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2610 *) . "./$cache_file";;
2611 esac
2612 fi
2613 else
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2615 $as_echo "$as_me: creating cache $cache_file" >&6;}
2616 >$cache_file
2617 fi
2618
2619 # Check that the precious variables saved in the cache have kept the same
2620 # value.
2621 ac_cache_corrupted=false
2622 for ac_var in $ac_precious_vars; do
2623 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2624 eval ac_new_set=\$ac_env_${ac_var}_set
2625 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2626 eval ac_new_val=\$ac_env_${ac_var}_value
2627 case $ac_old_set,$ac_new_set in
2628 set,)
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2630 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2631 ac_cache_corrupted=: ;;
2632 ,set)
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2634 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2635 ac_cache_corrupted=: ;;
2636 ,);;
2637 *)
2638 if test "x$ac_old_val" != "x$ac_new_val"; then
2639 # differences in whitespace do not lead to failure.
2640 ac_old_val_w=`echo x $ac_old_val`
2641 ac_new_val_w=`echo x $ac_new_val`
2642 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2644 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2645 ac_cache_corrupted=:
2646 else
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2648 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2649 eval $ac_var=\$ac_old_val
2650 fi
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2652 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2654 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2655 fi;;
2656 esac
2657 # Pass precious variables to config.status.
2658 if test "$ac_new_set" = set; then
2659 case $ac_new_val in
2660 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2661 *) ac_arg=$ac_var=$ac_new_val ;;
2662 esac
2663 case " $ac_configure_args " in
2664 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2665 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2666 esac
2667 fi
2668 done
2669 if $ac_cache_corrupted; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2673 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2674 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2675 fi
2676 ## -------------------- ##
2677 ## Main body of script. ##
2678 ## -------------------- ##
2679
2680 ac_ext=c
2681 ac_cpp='$CPP $CPPFLAGS'
2682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685
2686
2687 UNBOUND_VERSION_MAJOR=1
2688
2689 UNBOUND_VERSION_MINOR=5
2690
2691 UNBOUND_VERSION_MICRO=1
2692
2693
2694 LIBUNBOUND_CURRENT=5
2695 LIBUNBOUND_REVISION=3
2696 LIBUNBOUND_AGE=3
2697 # 1.0.0 had 0:12:0
2698 # 1.0.1 had 0:13:0
2699 # 1.0.2 had 0:14:0
2700 # 1.1.0 had 0:15:0
2701 # 1.1.1 had 0:16:0
2702 # 1.2.0 had 0:17:0
2703 # 1.2.1 had 0:18:0
2704 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
2705 # 1.3.1 had 1:1:0
2706 # 1.3.2 had 1:2:0
2707 # 1.3.3 had 1:3:0
2708 # 1.3.4 had 1:4:0
2709 # 1.4.0-snapshots had 1:5:0
2710 # 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus
2711 # 1.4.1 had 2:1:0
2712 # 1.4.2 had 2:2:0
2713 # 1.4.3 had 2:3:0
2714 # 1.4.4 had 2:4:0
2715 # 1.4.5 had 2:5:0
2716 # 1.4.6 had 2:6:0
2717 # 1.4.7 had 2:7:0
2718 # 1.4.8 had 2:8:0
2719 # 1.4.9 had 2:9:0
2720 # 1.4.10 had 2:10:0
2721 # 1.4.11 had 2:11:0
2722 # 1.4.12 had 2:12:0
2723 # 1.4.13 had 2:13:0
2724 # and 1.4.13p1 and 1.4.13.p2
2725 # 1.4.14 had 2:14:0
2726 # 1.4.15 had 3:0:1 # adds ub_version()
2727 # 1.4.16 had 3:1:1
2728 # 1.4.17 had 3:2:1
2729 # 1.4.18 had 3:3:1
2730 # 1.4.19 had 3:4:1
2731 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2732 # 1.4.21 had 4:1:2
2733 # 1.4.22 had 4:1:2
2734 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2735 # 1.5.1 had 5:4:3
2736
2737 # Current -- the number of the binary API that we're implementing
2738 # Revision -- which iteration of the implementation of the binary
2739 # API are we supplying?
2740 # Age -- How many previous binary API versions do we also
2741 # support?
2742 #
2743 # If we release a new version that does not change the binary API,
2744 # increment Revision.
2745 #
2746 # If we release a new version that changes the binary API, but does
2747 # not break programs compiled against the old binary API, increment
2748 # Current and Age. Set Revision to 0, since this is the first
2749 # implementation of the new API.
2750 #
2751 # Otherwise, we're changing the binary API and breaking bakward
2752 # compatibility with old binaries. Increment Current. Set Age to 0,
2753 # since we're backward compatible with no previous APIs. Set Revision
2754 # to 0 too.
2755
2756
2757
2758
2759 CFLAGS="$CFLAGS"
2760 ac_ext=c
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765 if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2767 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if ${ac_cv_prog_CC+:} false; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 if test -n "$CC"; then
2774 ac_cv_prog_CC="$CC" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2786 fi
2787 done
2788 done
2789 IFS=$as_save_IFS
2790
2791 fi
2792 fi
2793 CC=$ac_cv_prog_CC
2794 if test -n "$CC"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2796 $as_echo "$CC" >&6; }
2797 else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2800 fi
2801
2802
2803 fi
2804 if test -z "$ac_cv_prog_CC"; then
2805 ac_ct_CC=$CC
2806 # Extract the first word of "gcc", so it can be a program name with args.
2807 set dummy gcc; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2811 $as_echo_n "(cached) " >&6
2812 else
2813 if test -n "$ac_ct_CC"; then
2814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_ac_ct_CC="gcc"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827 done
2828 done
2829 IFS=$as_save_IFS
2830
2831 fi
2832 fi
2833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2834 if test -n "$ac_ct_CC"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2836 $as_echo "$ac_ct_CC" >&6; }
2837 else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2840 fi
2841
2842 if test "x$ac_ct_CC" = x; then
2843 CC=""
2844 else
2845 case $cross_compiling:$ac_tool_warned in
2846 yes:)
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2849 ac_tool_warned=yes ;;
2850 esac
2851 CC=$ac_ct_CC
2852 fi
2853 else
2854 CC="$ac_cv_prog_CC"
2855 fi
2856
2857 if test -z "$CC"; then
2858 if test -n "$ac_tool_prefix"; then
2859 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2860 set dummy ${ac_tool_prefix}cc; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if ${ac_cv_prog_CC+:} false; then :
2864 $as_echo_n "(cached) " >&6
2865 else
2866 if test -n "$CC"; then
2867 ac_cv_prog_CC="$CC" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_CC="${ac_tool_prefix}cc"
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880 done
2881 done
2882 IFS=$as_save_IFS
2883
2884 fi
2885 fi
2886 CC=$ac_cv_prog_CC
2887 if test -n "$CC"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2889 $as_echo "$CC" >&6; }
2890 else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2893 fi
2894
2895
2896 fi
2897 fi
2898 if test -z "$CC"; then
2899 # Extract the first word of "cc", so it can be a program name with args.
2900 set dummy cc; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if ${ac_cv_prog_CC+:} false; then :
2904 $as_echo_n "(cached) " >&6
2905 else
2906 if test -n "$CC"; then
2907 ac_cv_prog_CC="$CC" # Let the user override the test.
2908 else
2909 ac_prog_rejected=no
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2912 do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2917 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2918 ac_prog_rejected=yes
2919 continue
2920 fi
2921 ac_cv_prog_CC="cc"
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 break 2
2924 fi
2925 done
2926 done
2927 IFS=$as_save_IFS
2928
2929 if test $ac_prog_rejected = yes; then
2930 # We found a bogon in the path, so make sure we never use it.
2931 set dummy $ac_cv_prog_CC
2932 shift
2933 if test $# != 0; then
2934 # We chose a different compiler from the bogus one.
2935 # However, it has the same basename, so the bogon will be chosen
2936 # first if we set CC to just the basename; use the full file name.
2937 shift
2938 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2939 fi
2940 fi
2941 fi
2942 fi
2943 CC=$ac_cv_prog_CC
2944 if test -n "$CC"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2946 $as_echo "$CC" >&6; }
2947 else
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 $as_echo "no" >&6; }
2950 fi
2951
2952
2953 fi
2954 if test -z "$CC"; then
2955 if test -n "$ac_tool_prefix"; then
2956 for ac_prog in cl.exe
2957 do
2958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if ${ac_cv_prog_CC+:} false; then :
2963 $as_echo_n "(cached) " >&6
2964 else
2965 if test -n "$CC"; then
2966 ac_cv_prog_CC="$CC" # Let the user override the test.
2967 else
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH
2970 do
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2975 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 break 2
2978 fi
2979 done
2980 done
2981 IFS=$as_save_IFS
2982
2983 fi
2984 fi
2985 CC=$ac_cv_prog_CC
2986 if test -n "$CC"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2988 $as_echo "$CC" >&6; }
2989 else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2992 fi
2993
2994
2995 test -n "$CC" && break
2996 done
2997 fi
2998 if test -z "$CC"; then
2999 ac_ct_CC=$CC
3000 for ac_prog in cl.exe
3001 do
3002 # Extract the first word of "$ac_prog", so it can be a program name with args.
3003 set dummy $ac_prog; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 if test -n "$ac_ct_CC"; then
3010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_ac_ct_CC="$ac_prog"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 break 2
3022 fi
3023 done
3024 done
3025 IFS=$as_save_IFS
3026
3027 fi
3028 fi
3029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3030 if test -n "$ac_ct_CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3032 $as_echo "$ac_ct_CC" >&6; }
3033 else
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3036 fi
3037
3038
3039 test -n "$ac_ct_CC" && break
3040 done
3041
3042 if test "x$ac_ct_CC" = x; then
3043 CC=""
3044 else
3045 case $cross_compiling:$ac_tool_warned in
3046 yes:)
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3049 ac_tool_warned=yes ;;
3050 esac
3051 CC=$ac_ct_CC
3052 fi
3053 fi
3054
3055 fi
3056
3057
3058 test -z "$CC" && { { $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 $? "no acceptable C compiler found in \$PATH
3061 See \`config.log' for more details" "$LINENO" 5; }
3062
3063 # Provide some information about the compiler.
3064 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3065 set X $ac_compile
3066 ac_compiler=$2
3067 for ac_option in --version -v -V -qversion; do
3068 { { ac_try="$ac_compiler $ac_option >&5"
3069 case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 $as_echo "$ac_try_echo"; } >&5
3075 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3076 ac_status=$?
3077 if test -s conftest.err; then
3078 sed '10a\
3079 ... rest of stderr output deleted ...
3080 10q' conftest.err >conftest.er1
3081 cat conftest.er1 >&5
3082 fi
3083 rm -f conftest.er1 conftest.err
3084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085 test $ac_status = 0; }
3086 done
3087
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089 /* end confdefs.h. */
3090
3091 int
3092 main ()
3093 {
3094
3095 ;
3096 return 0;
3097 }
3098 _ACEOF
3099 ac_clean_files_save=$ac_clean_files
3100 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3101 # Try to create an executable without -o first, disregard a.out.
3102 # It will help us diagnose broken compilers, and finding out an intuition
3103 # of exeext.
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3105 $as_echo_n "checking whether the C compiler works... " >&6; }
3106 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3107
3108 # The possible output files:
3109 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3110
3111 ac_rmfiles=
3112 for ac_file in $ac_files
3113 do
3114 case $ac_file in
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3116 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3117 esac
3118 done
3119 rm -f $ac_rmfiles
3120
3121 if { { ac_try="$ac_link_default"
3122 case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125 esac
3126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 $as_echo "$ac_try_echo"; } >&5
3128 (eval "$ac_link_default") 2>&5
3129 ac_status=$?
3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131 test $ac_status = 0; }; then :
3132 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3133 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3134 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3135 # so that the user can short-circuit this test for compilers unknown to
3136 # Autoconf.
3137 for ac_file in $ac_files ''
3138 do
3139 test -f "$ac_file" || continue
3140 case $ac_file in
3141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3142 ;;
3143 [ab].out )
3144 # We found the default executable, but exeext='' is most
3145 # certainly right.
3146 break;;
3147 *.* )
3148 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3149 then :; else
3150 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151 fi
3152 # We set ac_cv_exeext here because the later test for it is not
3153 # safe: cross compilers may not add the suffix if given an `-o'
3154 # argument, so we may need to know it at that point already.
3155 # Even if this section looks crufty: it has the advantage of
3156 # actually working.
3157 break;;
3158 * )
3159 break;;
3160 esac
3161 done
3162 test "$ac_cv_exeext" = no && ac_cv_exeext=
3163
3164 else
3165 ac_file=''
3166 fi
3167 if test -z "$ac_file"; then :
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169 $as_echo "no" >&6; }
3170 $as_echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175 as_fn_error 77 "C compiler cannot create executables
3176 See \`config.log' for more details" "$LINENO" 5; }
3177 else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3179 $as_echo "yes" >&6; }
3180 fi
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3182 $as_echo_n "checking for C compiler default output file name... " >&6; }
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3184 $as_echo "$ac_file" >&6; }
3185 ac_exeext=$ac_cv_exeext
3186
3187 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3188 ac_clean_files=$ac_clean_files_save
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3190 $as_echo_n "checking for suffix of executables... " >&6; }
3191 if { { ac_try="$ac_link"
3192 case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195 esac
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 $as_echo "$ac_try_echo"; } >&5
3198 (eval "$ac_link") 2>&5
3199 ac_status=$?
3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }; then :
3202 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3203 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3204 # work properly (i.e., refer to `conftest.exe'), while it won't with
3205 # `rm'.
3206 for ac_file in conftest.exe conftest conftest.*; do
3207 test -f "$ac_file" || continue
3208 case $ac_file in
3209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3210 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3211 break;;
3212 * ) break;;
3213 esac
3214 done
3215 else
3216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3219 See \`config.log' for more details" "$LINENO" 5; }
3220 fi
3221 rm -f conftest conftest$ac_cv_exeext
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3223 $as_echo "$ac_cv_exeext" >&6; }
3224
3225 rm -f conftest.$ac_ext
3226 EXEEXT=$ac_cv_exeext
3227 ac_exeext=$EXEEXT
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3230 #include <stdio.h>
3231 int
3232 main ()
3233 {
3234 FILE *f = fopen ("conftest.out", "w");
3235 return ferror (f) || fclose (f) != 0;
3236
3237 ;
3238 return 0;
3239 }
3240 _ACEOF
3241 ac_clean_files="$ac_clean_files conftest.out"
3242 # Check that the compiler produces executables we can run. If not, either
3243 # the compiler is broken, or we cross compile.
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3245 $as_echo_n "checking whether we are cross compiling... " >&6; }
3246 if test "$cross_compiling" != yes; then
3247 { { ac_try="$ac_link"
3248 case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254 (eval "$ac_link") 2>&5
3255 ac_status=$?
3256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257 test $ac_status = 0; }
3258 if { ac_try='./conftest$ac_cv_exeext'
3259 { { case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_try") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; }; then
3269 cross_compiling=no
3270 else
3271 if test "$cross_compiling" = maybe; then
3272 cross_compiling=yes
3273 else
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error $? "cannot run C compiled programs.
3277 If you meant to cross compile, use \`--host'.
3278 See \`config.log' for more details" "$LINENO" 5; }
3279 fi
3280 fi
3281 fi
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3283 $as_echo "$cross_compiling" >&6; }
3284
3285 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3286 ac_clean_files=$ac_clean_files_save
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3288 $as_echo_n "checking for suffix of object files... " >&6; }
3289 if ${ac_cv_objext+:} false; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3294
3295 int
3296 main ()
3297 {
3298
3299 ;
3300 return 0;
3301 }
3302 _ACEOF
3303 rm -f conftest.o conftest.obj
3304 if { { ac_try="$ac_compile"
3305 case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_compile") 2>&5
3312 ac_status=$?
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }; then :
3315 for ac_file in conftest.o conftest.obj conftest.*; do
3316 test -f "$ac_file" || continue;
3317 case $ac_file in
3318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3320 break;;
3321 esac
3322 done
3323 else
3324 $as_echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329 as_fn_error $? "cannot compute suffix of object files: cannot compile
3330 See \`config.log' for more details" "$LINENO" 5; }
3331 fi
3332 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3333 fi
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3335 $as_echo "$ac_cv_objext" >&6; }
3336 OBJEXT=$ac_cv_objext
3337 ac_objext=$OBJEXT
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3339 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3340 if ${ac_cv_c_compiler_gnu+:} false; then :
3341 $as_echo_n "(cached) " >&6
3342 else
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3345
3346 int
3347 main ()
3348 {
3349 #ifndef __GNUC__
3350 choke me
3351 #endif
3352
3353 ;
3354 return 0;
3355 }
3356 _ACEOF
3357 if ac_fn_c_try_compile "$LINENO"; then :
3358 ac_compiler_gnu=yes
3359 else
3360 ac_compiler_gnu=no
3361 fi
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3364
3365 fi
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3367 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3368 if test $ac_compiler_gnu = yes; then
3369 GCC=yes
3370 else
3371 GCC=
3372 fi
3373 ac_test_CFLAGS=${CFLAGS+set}
3374 ac_save_CFLAGS=$CFLAGS
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3376 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3377 if ${ac_cv_prog_cc_g+:} false; then :
3378 $as_echo_n "(cached) " >&6
3379 else
3380 ac_save_c_werror_flag=$ac_c_werror_flag
3381 ac_c_werror_flag=yes
3382 ac_cv_prog_cc_g=no
3383 CFLAGS="-g"
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3386
3387 int
3388 main ()
3389 {
3390
3391 ;
3392 return 0;
3393 }
3394 _ACEOF
3395 if ac_fn_c_try_compile "$LINENO"; then :
3396 ac_cv_prog_cc_g=yes
3397 else
3398 CFLAGS=""
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3401
3402 int
3403 main ()
3404 {
3405
3406 ;
3407 return 0;
3408 }
3409 _ACEOF
3410 if ac_fn_c_try_compile "$LINENO"; then :
3411
3412 else
3413 ac_c_werror_flag=$ac_save_c_werror_flag
3414 CFLAGS="-g"
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3417
3418 int
3419 main ()
3420 {
3421
3422 ;
3423 return 0;
3424 }
3425 _ACEOF
3426 if ac_fn_c_try_compile "$LINENO"; then :
3427 ac_cv_prog_cc_g=yes
3428 fi
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 fi
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 fi
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 ac_c_werror_flag=$ac_save_c_werror_flag
3435 fi
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3437 $as_echo "$ac_cv_prog_cc_g" >&6; }
3438 if test "$ac_test_CFLAGS" = set; then
3439 CFLAGS=$ac_save_CFLAGS
3440 elif test $ac_cv_prog_cc_g = yes; then
3441 if test "$GCC" = yes; then
3442 CFLAGS="-g -O2"
3443 else
3444 CFLAGS="-g"
3445 fi
3446 else
3447 if test "$GCC" = yes; then
3448 CFLAGS="-O2"
3449 else
3450 CFLAGS=
3451 fi
3452 fi
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3454 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3455 if ${ac_cv_prog_cc_c89+:} false; then :
3456 $as_echo_n "(cached) " >&6
3457 else
3458 ac_cv_prog_cc_c89=no
3459 ac_save_CC=$CC
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3462 #include <stdarg.h>
3463 #include <stdio.h>
3464 struct stat;
3465 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3466 struct buf { int x; };
3467 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3468 static char *e (p, i)
3469 char **p;
3470 int i;
3471 {
3472 return p[i];
3473 }
3474 static char *f (char * (*g) (char **, int), char **p, ...)
3475 {
3476 char *s;
3477 va_list v;
3478 va_start (v,p);
3479 s = g (p, va_arg (v,int));
3480 va_end (v);
3481 return s;
3482 }
3483
3484 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3485 function prototypes and stuff, but not '\xHH' hex character constants.
3486 These don't provoke an error unfortunately, instead are silently treated
3487 as 'x'. The following induces an error, until -std is added to get
3488 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3489 array size at least. It's necessary to write '\x00'==0 to get something
3490 that's true only with -std. */
3491 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3492
3493 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3494 inside strings and character constants. */
3495 #define FOO(x) 'x'
3496 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3497
3498 int test (int i, double x);
3499 struct s1 {int (*f) (int a);};
3500 struct s2 {int (*f) (double a);};
3501 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3502 int argc;
3503 char **argv;
3504 int
3505 main ()
3506 {
3507 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3508 ;
3509 return 0;
3510 }
3511 _ACEOF
3512 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3513 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3514 do
3515 CC="$ac_save_CC $ac_arg"
3516 if ac_fn_c_try_compile "$LINENO"; then :
3517 ac_cv_prog_cc_c89=$ac_arg
3518 fi
3519 rm -f core conftest.err conftest.$ac_objext
3520 test "x$ac_cv_prog_cc_c89" != "xno" && break
3521 done
3522 rm -f conftest.$ac_ext
3523 CC=$ac_save_CC
3524
3525 fi
3526 # AC_CACHE_VAL
3527 case "x$ac_cv_prog_cc_c89" in
3528 x)
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3530 $as_echo "none needed" >&6; } ;;
3531 xno)
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3533 $as_echo "unsupported" >&6; } ;;
3534 *)
3535 CC="$CC $ac_cv_prog_cc_c89"
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3537 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3538 esac
3539 if test "x$ac_cv_prog_cc_c89" != xno; then :
3540
3541 fi
3542
3543 ac_ext=c
3544 ac_cpp='$CPP $CPPFLAGS'
3545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548
3549
3550 ac_ext=c
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3556 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3557 # On Suns, sometimes $CPP names a directory.
3558 if test -n "$CPP" && test -d "$CPP"; then
3559 CPP=
3560 fi
3561 if test -z "$CPP"; then
3562 if ${ac_cv_prog_CPP+:} false; then :
3563 $as_echo_n "(cached) " >&6
3564 else
3565 # Double quotes because CPP needs to be expanded
3566 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3567 do
3568 ac_preproc_ok=false
3569 for ac_c_preproc_warn_flag in '' yes
3570 do
3571 # Use a header file that comes with gcc, so configuring glibc
3572 # with a fresh cross-compiler works.
3573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574 # <limits.h> exists even on freestanding compilers.
3575 # On the NeXT, cc -E runs the code through the compiler's parser,
3576 # not just through cpp. "Syntax error" is here to catch this case.
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3579 #ifdef __STDC__
3580 # include <limits.h>
3581 #else
3582 # include <assert.h>
3583 #endif
3584 Syntax error
3585 _ACEOF
3586 if ac_fn_c_try_cpp "$LINENO"; then :
3587
3588 else
3589 # Broken: fails on valid input.
3590 continue
3591 fi
3592 rm -f conftest.err conftest.i conftest.$ac_ext
3593
3594 # OK, works on sane cases. Now check whether nonexistent headers
3595 # can be detected and how.
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3598 #include <ac_nonexistent.h>
3599 _ACEOF
3600 if ac_fn_c_try_cpp "$LINENO"; then :
3601 # Broken: success on invalid input.
3602 continue
3603 else
3604 # Passes both tests.
3605 ac_preproc_ok=:
3606 break
3607 fi
3608 rm -f conftest.err conftest.i conftest.$ac_ext
3609
3610 done
3611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3612 rm -f conftest.i conftest.err conftest.$ac_ext
3613 if $ac_preproc_ok; then :
3614 break
3615 fi
3616
3617 done
3618 ac_cv_prog_CPP=$CPP
3619
3620 fi
3621 CPP=$ac_cv_prog_CPP
3622 else
3623 ac_cv_prog_CPP=$CPP
3624 fi
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3626 $as_echo "$CPP" >&6; }
3627 ac_preproc_ok=false
3628 for ac_c_preproc_warn_flag in '' yes
3629 do
3630 # Use a header file that comes with gcc, so configuring glibc
3631 # with a fresh cross-compiler works.
3632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3633 # <limits.h> exists even on freestanding compilers.
3634 # On the NeXT, cc -E runs the code through the compiler's parser,
3635 # not just through cpp. "Syntax error" is here to catch this case.
3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h. */
3638 #ifdef __STDC__
3639 # include <limits.h>
3640 #else
3641 # include <assert.h>
3642 #endif
3643 Syntax error
3644 _ACEOF
3645 if ac_fn_c_try_cpp "$LINENO"; then :
3646
3647 else
3648 # Broken: fails on valid input.
3649 continue
3650 fi
3651 rm -f conftest.err conftest.i conftest.$ac_ext
3652
3653 # OK, works on sane cases. Now check whether nonexistent headers
3654 # can be detected and how.
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3657 #include <ac_nonexistent.h>
3658 _ACEOF
3659 if ac_fn_c_try_cpp "$LINENO"; then :
3660 # Broken: success on invalid input.
3661 continue
3662 else
3663 # Passes both tests.
3664 ac_preproc_ok=:
3665 break
3666 fi
3667 rm -f conftest.err conftest.i conftest.$ac_ext
3668
3669 done
3670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3671 rm -f conftest.i conftest.err conftest.$ac_ext
3672 if $ac_preproc_ok; then :
3673
3674 else
3675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3677 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3678 See \`config.log' for more details" "$LINENO" 5; }
3679 fi
3680
3681 ac_ext=c
3682 ac_cpp='$CPP $CPPFLAGS'
3683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686
3687
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3689 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3690 if ${ac_cv_path_GREP+:} false; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 if test -z "$GREP"; then
3694 ac_path_GREP_found=false
3695 # Loop through the user's path and test for each of PROGNAME-LIST
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3698 do
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 for ac_prog in grep ggrep; do
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3704 as_fn_executable_p "$ac_path_GREP" || continue
3705 # Check for GNU ac_path_GREP and select it if it is found.
3706 # Check for GNU $ac_path_GREP
3707 case `"$ac_path_GREP" --version 2>&1` in
3708 *GNU*)
3709 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3710 *)
3711 ac_count=0
3712 $as_echo_n 0123456789 >"conftest.in"
3713 while :
3714 do
3715 cat "conftest.in" "conftest.in" >"conftest.tmp"
3716 mv "conftest.tmp" "conftest.in"
3717 cp "conftest.in" "conftest.nl"
3718 $as_echo 'GREP' >> "conftest.nl"
3719 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3721 as_fn_arith $ac_count + 1 && ac_count=$as_val
3722 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3723 # Best one so far, save it but keep looking for a better one
3724 ac_cv_path_GREP="$ac_path_GREP"
3725 ac_path_GREP_max=$ac_count
3726 fi
3727 # 10*(2^10) chars as input seems more than enough
3728 test $ac_count -gt 10 && break
3729 done
3730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3731 esac
3732
3733 $ac_path_GREP_found && break 3
3734 done
3735 done
3736 done
3737 IFS=$as_save_IFS
3738 if test -z "$ac_cv_path_GREP"; then
3739 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3740 fi
3741 else
3742 ac_cv_path_GREP=$GREP
3743 fi
3744
3745 fi
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3747 $as_echo "$ac_cv_path_GREP" >&6; }
3748 GREP="$ac_cv_path_GREP"
3749
3750
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3752 $as_echo_n "checking for egrep... " >&6; }
3753 if ${ac_cv_path_EGREP+:} false; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3757 then ac_cv_path_EGREP="$GREP -E"
3758 else
3759 if test -z "$EGREP"; then
3760 ac_path_EGREP_found=false
3761 # Loop through the user's path and test for each of PROGNAME-LIST
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3764 do
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_prog in egrep; do
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3770 as_fn_executable_p "$ac_path_EGREP" || continue
3771 # Check for GNU ac_path_EGREP and select it if it is found.
3772 # Check for GNU $ac_path_EGREP
3773 case `"$ac_path_EGREP" --version 2>&1` in
3774 *GNU*)
3775 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3776 *)
3777 ac_count=0
3778 $as_echo_n 0123456789 >"conftest.in"
3779 while :
3780 do
3781 cat "conftest.in" "conftest.in" >"conftest.tmp"
3782 mv "conftest.tmp" "conftest.in"
3783 cp "conftest.in" "conftest.nl"
3784 $as_echo 'EGREP' >> "conftest.nl"
3785 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3787 as_fn_arith $ac_count + 1 && ac_count=$as_val
3788 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3789 # Best one so far, save it but keep looking for a better one
3790 ac_cv_path_EGREP="$ac_path_EGREP"
3791 ac_path_EGREP_max=$ac_count
3792 fi
3793 # 10*(2^10) chars as input seems more than enough
3794 test $ac_count -gt 10 && break
3795 done
3796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3797 esac
3798
3799 $ac_path_EGREP_found && break 3
3800 done
3801 done
3802 done
3803 IFS=$as_save_IFS
3804 if test -z "$ac_cv_path_EGREP"; then
3805 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3806 fi
3807 else
3808 ac_cv_path_EGREP=$EGREP
3809 fi
3810
3811 fi
3812 fi
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3814 $as_echo "$ac_cv_path_EGREP" >&6; }
3815 EGREP="$ac_cv_path_EGREP"
3816
3817
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3819 $as_echo_n "checking for ANSI C header files... " >&6; }
3820 if ${ac_cv_header_stdc+:} false; then :
3821 $as_echo_n "(cached) " >&6
3822 else
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3825 #include <stdlib.h>
3826 #include <stdarg.h>
3827 #include <string.h>
3828 #include <float.h>
3829
3830 int
3831 main ()
3832 {
3833
3834 ;
3835 return 0;
3836 }
3837 _ACEOF
3838 if ac_fn_c_try_compile "$LINENO"; then :
3839 ac_cv_header_stdc=yes
3840 else
3841 ac_cv_header_stdc=no
3842 fi
3843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844
3845 if test $ac_cv_header_stdc = yes; then
3846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3849 #include <string.h>
3850
3851 _ACEOF
3852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3853 $EGREP "memchr" >/dev/null 2>&1; then :
3854
3855 else
3856 ac_cv_header_stdc=no
3857 fi
3858 rm -f conftest*
3859
3860 fi
3861
3862 if test $ac_cv_header_stdc = yes; then
3863 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3866 #include <stdlib.h>
3867
3868 _ACEOF
3869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3870 $EGREP "free" >/dev/null 2>&1; then :
3871
3872 else
3873 ac_cv_header_stdc=no
3874 fi
3875 rm -f conftest*
3876
3877 fi
3878
3879 if test $ac_cv_header_stdc = yes; then
3880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3881 if test "$cross_compiling" = yes; then :
3882 :
3883 else
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886 #include <ctype.h>
3887 #include <stdlib.h>
3888 #if ((' ' & 0x0FF) == 0x020)
3889 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3890 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3891 #else
3892 # define ISLOWER(c) \
3893 (('a' <= (c) && (c) <= 'i') \
3894 || ('j' <= (c) && (c) <= 'r') \
3895 || ('s' <= (c) && (c) <= 'z'))
3896 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3897 #endif
3898
3899 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3900 int
3901 main ()
3902 {
3903 int i;
3904 for (i = 0; i < 256; i++)
3905 if (XOR (islower (i), ISLOWER (i))
3906 || toupper (i) != TOUPPER (i))
3907 return 2;
3908 return 0;
3909 }
3910 _ACEOF
3911 if ac_fn_c_try_run "$LINENO"; then :
3912
3913 else
3914 ac_cv_header_stdc=no
3915 fi
3916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3917 conftest.$ac_objext conftest.beam conftest.$ac_ext
3918 fi
3919
3920 fi
3921 fi
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3923 $as_echo "$ac_cv_header_stdc" >&6; }
3924 if test $ac_cv_header_stdc = yes; then
3925
3926 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3927
3928 fi
3929
3930 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3931 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3932 inttypes.h stdint.h unistd.h
3933 do :
3934 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3935 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3936 "
3937 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3938 cat >>confdefs.h <<_ACEOF
3939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3940 _ACEOF
3941
3942 fi
3943
3944 done
3945
3946
3947
3948 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3949 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3950 MINIX=yes
3951 else
3952 MINIX=
3953 fi
3954
3955
3956 if test "$MINIX" = yes; then
3957
3958 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3959
3960
3961 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3962
3963
3964 $as_echo "#define _MINIX 1" >>confdefs.h
3965
3966 fi
3967
3968
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3970 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3971 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3972 $as_echo_n "(cached) " >&6
3973 else
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3976
3977 # define __EXTENSIONS__ 1
3978 $ac_includes_default
3979 int
3980 main ()
3981 {
3982
3983 ;
3984 return 0;
3985 }
3986 _ACEOF
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988 ac_cv_safe_to_define___extensions__=yes
3989 else
3990 ac_cv_safe_to_define___extensions__=no
3991 fi
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 fi
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3995 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3996 test $ac_cv_safe_to_define___extensions__ = yes &&
3997 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3998
3999 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4000
4001 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4002
4003 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4004
4005 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4006
4007
4008
4009 if test "$ac_cv_header_minix_config_h" = "yes"; then
4010
4011 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4012
4013 fi
4014
4015 case "$prefix" in
4016 NONE)
4017 prefix="/usr/local"
4018 ;;
4019 esac
4020
4021 # are we on MinGW?
4022 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4023 else
4024 if echo $target | grep mingw32 >/dev/null; then on_mingw="yes"
4025 else on_mingw="no"; fi
4026 fi
4027
4028 #
4029 # Determine configuration file
4030 # the eval is to evaluate shell expansion twice
4031 if test $on_mingw = "no"; then
4032 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4033 else
4034 ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4035 fi
4036
4037 # Check whether --with-conf_file was given.
4038 if test "${with_conf_file+set}" = set; then :
4039 withval=$with_conf_file; ub_conf_file="$withval"
4040 fi
4041
4042
4043 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4044
4045
4046 cat >>confdefs.h <<_ACEOF
4047 #define CONFIGFILE "$hdr_config"
4048 _ACEOF
4049
4050
4051 # Determine run, chroot directory and pidfile locations
4052
4053 # Check whether --with-run-dir was given.
4054 if test "${with_run_dir+set}" = set; then :
4055 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4056 else
4057 if test $on_mingw = no; then
4058 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4059 else
4060 UNBOUND_RUN_DIR=""
4061 fi
4062
4063 fi
4064
4065
4066 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4067
4068
4069 cat >>confdefs.h <<_ACEOF
4070 #define RUN_DIR "$hdr_run"
4071 _ACEOF
4072
4073
4074
4075 # Check whether --with-chroot-dir was given.
4076 if test "${with_chroot_dir+set}" = set; then :
4077 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4078 else
4079 if test $on_mingw = no; then
4080 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4081 else
4082 UNBOUND_CHROOT_DIR=""
4083 fi
4084
4085 fi
4086
4087
4088 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4089
4090
4091 cat >>confdefs.h <<_ACEOF
4092 #define CHROOT_DIR "$hdr_chroot"
4093 _ACEOF
4094
4095
4096
4097 # Check whether --with-share-dir was given.
4098 if test "${with_share_dir+set}" = set; then :
4099 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4100 else
4101 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4102 fi
4103
4104
4105
4106 cat >>confdefs.h <<_ACEOF
4107 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4108 _ACEOF
4109
4110
4111
4112 # Check whether --with-pidfile was given.
4113 if test "${with_pidfile+set}" = set; then :
4114 withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4115 else
4116 if test $on_mingw = no; then
4117 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4118 else
4119 UNBOUND_PIDFILE=""
4120 fi
4121
4122 fi
4123
4124
4125 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4126
4127
4128 cat >>confdefs.h <<_ACEOF
4129 #define PIDFILE "$hdr_pid"
4130 _ACEOF
4131
4132
4133
4134 # Check whether --with-rootkey-file was given.
4135 if test "${with_rootkey_file+set}" = set; then :
4136 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4137 else
4138 if test $on_mingw = no; then
4139 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4140 else
4141 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4142 fi
4143
4144 fi
4145
4146
4147 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4148
4149
4150 cat >>confdefs.h <<_ACEOF
4151 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4152 _ACEOF
4153
4154
4155
4156 # Check whether --with-rootcert-file was given.
4157 if test "${with_rootcert_file+set}" = set; then :
4158 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4159 else
4160 if test $on_mingw = no; then
4161 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4162 else
4163 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4164 fi
4165
4166 fi
4167
4168
4169 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4170
4171
4172 cat >>confdefs.h <<_ACEOF
4173 #define ROOT_CERT_FILE "$hdr_rpem"
4174 _ACEOF
4175
4176
4177
4178 # Check whether --with-username was given.
4179 if test "${with_username+set}" = set; then :
4180 withval=$with_username; UNBOUND_USERNAME="$withval"
4181 else
4182 UNBOUND_USERNAME="unbound"
4183 fi
4184
4185
4186
4187 cat >>confdefs.h <<_ACEOF
4188 #define UB_USERNAME "$UNBOUND_USERNAME"
4189 _ACEOF
4190
4191
4192
4193 $as_echo "#define WINVER 0x0502" >>confdefs.h
4194
4195 wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\).*$/\1,\2,\3,\4/' -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9]*$/\1,\2,\3,0/' `
4196
4197
4198 cat >>confdefs.h <<_ACEOF
4199 #define RSRC_PACKAGE_VERSION $wnvs
4200 _ACEOF
4201
4202
4203 # Checks for typedefs, structures, and compiler characteristics.
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4205 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4206 if ${ac_cv_c_const+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4211
4212 int
4213 main ()
4214 {
4215
4216 #ifndef __cplusplus
4217 /* Ultrix mips cc rejects this sort of thing. */
4218 typedef int charset[2];
4219 const charset cs = { 0, 0 };
4220 /* SunOS 4.1.1 cc rejects this. */
4221 char const *const *pcpcc;
4222 char **ppc;
4223 /* NEC SVR4.0.2 mips cc rejects this. */
4224 struct point {int x, y;};
4225 static struct point const zero = {0,0};
4226 /* AIX XL C 1.02.0.0 rejects this.
4227 It does not let you subtract one const X* pointer from another in
4228 an arm of an if-expression whose if-part is not a constant
4229 expression */
4230 const char *g = "string";
4231 pcpcc = &g + (g ? g-g : 0);
4232 /* HPUX 7.0 cc rejects these. */
4233 ++pcpcc;
4234 ppc = (char**) pcpcc;
4235 pcpcc = (char const *const *) ppc;
4236 { /* SCO 3.2v4 cc rejects this sort of thing. */
4237 char tx;
4238 char *t = &tx;
4239 char const *s = 0 ? (char *) 0 : (char const *) 0;
4240
4241 *t++ = 0;
4242 if (s) return 0;
4243 }
4244 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4245 int x[] = {25, 17};
4246 const int *foo = &x[0];
4247 ++foo;
4248 }
4249 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4250 typedef const int *iptr;
4251 iptr p = 0;
4252 ++p;
4253 }
4254 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4255 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4256 struct s { int j; const int *ap[3]; } bx;
4257 struct s *b = &bx; b->j = 5;
4258 }
4259 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4260 const int foo = 10;
4261 if (!foo) return 0;
4262 }
4263 return !cs[0] && !zero.x;
4264 #endif
4265
4266 ;
4267 return 0;
4268 }
4269 _ACEOF
4270 if ac_fn_c_try_compile "$LINENO"; then :
4271 ac_cv_c_const=yes
4272 else
4273 ac_cv_c_const=no
4274 fi
4275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4276 fi
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4278 $as_echo "$ac_cv_c_const" >&6; }
4279 if test $ac_cv_c_const = no; then
4280
4281 $as_echo "#define const /**/" >>confdefs.h
4282
4283 fi
4284
4285 ac_ext=c
4286 ac_cpp='$CPP $CPPFLAGS'
4287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290
4291 # allow user to override the -g -O2 flags.
4292 if test "x$CFLAGS" = "x" ; then
4293
4294
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4296 $as_echo_n "checking whether $CC supports -g... " >&6; }
4297 cache=`echo g | sed 'y%.=/+-%___p_%'`
4298 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300 else
4301
4302 echo 'void f(void){}' >conftest.c
4303 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4304 eval "cv_prog_cc_flag_$cache=yes"
4305 else
4306 eval "cv_prog_cc_flag_$cache=no"
4307 fi
4308 rm -f conftest conftest.o conftest.c
4309
4310 fi
4311
4312 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4314 $as_echo "yes" >&6; }
4315 :
4316 CFLAGS="$CFLAGS -g"
4317 else
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4320 :
4321
4322 fi
4323
4324
4325
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4327 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4328 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4329 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4330 $as_echo_n "(cached) " >&6
4331 else
4332
4333 echo 'void f(void){}' >conftest.c
4334 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4335 eval "cv_prog_cc_flag_$cache=yes"
4336 else
4337 eval "cv_prog_cc_flag_$cache=no"
4338 fi
4339 rm -f conftest conftest.o conftest.c
4340
4341 fi
4342
4343 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4345 $as_echo "yes" >&6; }
4346 :
4347 CFLAGS="$CFLAGS -O2"
4348 else
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4351 :
4352
4353 fi
4354
4355 fi
4356 ac_ext=c
4357 ac_cpp='$CPP $CPPFLAGS'
4358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4361 if test -n "$ac_tool_prefix"; then
4362 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4363 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if ${ac_cv_prog_CC+:} false; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 if test -n "$CC"; then
4370 ac_cv_prog_CC="$CC" # Let the user override the test.
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4374 do
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4379 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4382 fi
4383 done
4384 done
4385 IFS=$as_save_IFS
4386
4387 fi
4388 fi
4389 CC=$ac_cv_prog_CC
4390 if test -n "$CC"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4392 $as_echo "$CC" >&6; }
4393 else
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4396 fi
4397
4398
4399 fi
4400 if test -z "$ac_cv_prog_CC"; then
4401 ac_ct_CC=$CC
4402 # Extract the first word of "gcc", so it can be a program name with args.
4403 set dummy gcc; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 if test -n "$ac_ct_CC"; then
4410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4414 do
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4419 ac_cv_prog_ac_ct_CC="gcc"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 break 2
4422 fi
4423 done
4424 done
4425 IFS=$as_save_IFS
4426
4427 fi
4428 fi
4429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4430 if test -n "$ac_ct_CC"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4432 $as_echo "$ac_ct_CC" >&6; }
4433 else
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4436 fi
4437
4438 if test "x$ac_ct_CC" = x; then
4439 CC=""
4440 else
4441 case $cross_compiling:$ac_tool_warned in
4442 yes:)
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4445 ac_tool_warned=yes ;;
4446 esac
4447 CC=$ac_ct_CC
4448 fi
4449 else
4450 CC="$ac_cv_prog_CC"
4451 fi
4452
4453 if test -z "$CC"; then
4454 if test -n "$ac_tool_prefix"; then
4455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4456 set dummy ${ac_tool_prefix}cc; ac_word=$2
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if ${ac_cv_prog_CC+:} false; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 if test -n "$CC"; then
4463 ac_cv_prog_CC="$CC" # Let the user override the test.
4464 else
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4467 do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472 ac_cv_prog_CC="${ac_tool_prefix}cc"
4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4475 fi
4476 done
4477 done
4478 IFS=$as_save_IFS
4479
4480 fi
4481 fi
4482 CC=$ac_cv_prog_CC
4483 if test -n "$CC"; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4485 $as_echo "$CC" >&6; }
4486 else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4489 fi
4490
4491
4492 fi
4493 fi
4494 if test -z "$CC"; then
4495 # Extract the first word of "cc", so it can be a program name with args.
4496 set dummy cc; ac_word=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if ${ac_cv_prog_CC+:} false; then :
4500 $as_echo_n "(cached) " >&6
4501 else
4502 if test -n "$CC"; then
4503 ac_cv_prog_CC="$CC" # Let the user override the test.
4504 else
4505 ac_prog_rejected=no
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4508 do
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4514 ac_prog_rejected=yes
4515 continue
4516 fi
4517 ac_cv_prog_CC="cc"
4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 break 2
4520 fi
4521 done
4522 done
4523 IFS=$as_save_IFS
4524
4525 if test $ac_prog_rejected = yes; then
4526 # We found a bogon in the path, so make sure we never use it.
4527 set dummy $ac_cv_prog_CC
4528 shift
4529 if test $# != 0; then
4530 # We chose a different compiler from the bogus one.
4531 # However, it has the same basename, so the bogon will be chosen
4532 # first if we set CC to just the basename; use the full file name.
4533 shift
4534 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4535 fi
4536 fi
4537 fi
4538 fi
4539 CC=$ac_cv_prog_CC
4540 if test -n "$CC"; then
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4542 $as_echo "$CC" >&6; }
4543 else
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4546 fi
4547
4548
4549 fi
4550 if test -z "$CC"; then
4551 if test -n "$ac_tool_prefix"; then
4552 for ac_prog in cl.exe
4553 do
4554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if ${ac_cv_prog_CC+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 if test -n "$CC"; then
4562 ac_cv_prog_CC="$CC" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4574 fi
4575 done
4576 done
4577 IFS=$as_save_IFS
4578
4579 fi
4580 fi
4581 CC=$ac_cv_prog_CC
4582 if test -n "$CC"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4584 $as_echo "$CC" >&6; }
4585 else
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4588 fi
4589
4590
4591 test -n "$CC" && break
4592 done
4593 fi
4594 if test -z "$CC"; then
4595 ac_ct_CC=$CC
4596 for ac_prog in cl.exe
4597 do
4598 # Extract the first word of "$ac_prog", so it can be a program name with args.
4599 set dummy $ac_prog; ac_word=$2
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4601 $as_echo_n "checking for $ac_word... " >&6; }
4602 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 if test -n "$ac_ct_CC"; then
4606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4610 do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615 ac_cv_prog_ac_ct_CC="$ac_prog"
4616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 break 2
4618 fi
4619 done
4620 done
4621 IFS=$as_save_IFS
4622
4623 fi
4624 fi
4625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4626 if test -n "$ac_ct_CC"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4628 $as_echo "$ac_ct_CC" >&6; }
4629 else
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4632 fi
4633
4634
4635 test -n "$ac_ct_CC" && break
4636 done
4637
4638 if test "x$ac_ct_CC" = x; then
4639 CC=""
4640 else
4641 case $cross_compiling:$ac_tool_warned in
4642 yes:)
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4645 ac_tool_warned=yes ;;
4646 esac
4647 CC=$ac_ct_CC
4648 fi
4649 fi
4650
4651 fi
4652
4653
4654 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4656 as_fn_error $? "no acceptable C compiler found in \$PATH
4657 See \`config.log' for more details" "$LINENO" 5; }
4658
4659 # Provide some information about the compiler.
4660 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4661 set X $ac_compile
4662 ac_compiler=$2
4663 for ac_option in --version -v -V -qversion; do
4664 { { ac_try="$ac_compiler $ac_option >&5"
4665 case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4668 esac
4669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4670 $as_echo "$ac_try_echo"; } >&5
4671 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4672 ac_status=$?
4673 if test -s conftest.err; then
4674 sed '10a\
4675 ... rest of stderr output deleted ...
4676 10q' conftest.err >conftest.er1
4677 cat conftest.er1 >&5
4678 fi
4679 rm -f conftest.er1 conftest.err
4680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4681 test $ac_status = 0; }
4682 done
4683
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4685 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4686 if ${ac_cv_c_compiler_gnu+:} false; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4691
4692 int
4693 main ()
4694 {
4695 #ifndef __GNUC__
4696 choke me
4697 #endif
4698
4699 ;
4700 return 0;
4701 }
4702 _ACEOF
4703 if ac_fn_c_try_compile "$LINENO"; then :
4704 ac_compiler_gnu=yes
4705 else
4706 ac_compiler_gnu=no
4707 fi
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4710
4711 fi
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4713 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4714 if test $ac_compiler_gnu = yes; then
4715 GCC=yes
4716 else
4717 GCC=
4718 fi
4719 ac_test_CFLAGS=${CFLAGS+set}
4720 ac_save_CFLAGS=$CFLAGS
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4722 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4723 if ${ac_cv_prog_cc_g+:} false; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 ac_save_c_werror_flag=$ac_c_werror_flag
4727 ac_c_werror_flag=yes
4728 ac_cv_prog_cc_g=no
4729 CFLAGS="-g"
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4732
4733 int
4734 main ()
4735 {
4736
4737 ;
4738 return 0;
4739 }
4740 _ACEOF
4741 if ac_fn_c_try_compile "$LINENO"; then :
4742 ac_cv_prog_cc_g=yes
4743 else
4744 CFLAGS=""
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4747
4748 int
4749 main ()
4750 {
4751
4752 ;
4753 return 0;
4754 }
4755 _ACEOF
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757
4758 else
4759 ac_c_werror_flag=$ac_save_c_werror_flag
4760 CFLAGS="-g"
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4763
4764 int
4765 main ()
4766 {
4767
4768 ;
4769 return 0;
4770 }
4771 _ACEOF
4772 if ac_fn_c_try_compile "$LINENO"; then :
4773 ac_cv_prog_cc_g=yes
4774 fi
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 fi
4777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778 fi
4779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780 ac_c_werror_flag=$ac_save_c_werror_flag
4781 fi
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4783 $as_echo "$ac_cv_prog_cc_g" >&6; }
4784 if test "$ac_test_CFLAGS" = set; then
4785 CFLAGS=$ac_save_CFLAGS
4786 elif test $ac_cv_prog_cc_g = yes; then
4787 if test "$GCC" = yes; then
4788 CFLAGS="-g -O2"
4789 else
4790 CFLAGS="-g"
4791 fi
4792 else
4793 if test "$GCC" = yes; then
4794 CFLAGS="-O2"
4795 else
4796 CFLAGS=
4797 fi
4798 fi
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4800 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4801 if ${ac_cv_prog_cc_c89+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 ac_cv_prog_cc_c89=no
4805 ac_save_CC=$CC
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4808 #include <stdarg.h>
4809 #include <stdio.h>
4810 struct stat;
4811 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4812 struct buf { int x; };
4813 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4814 static char *e (p, i)
4815 char **p;
4816 int i;
4817 {
4818 return p[i];
4819 }
4820 static char *f (char * (*g) (char **, int), char **p, ...)
4821 {
4822 char *s;
4823 va_list v;
4824 va_start (v,p);
4825 s = g (p, va_arg (v,int));
4826 va_end (v);
4827 return s;
4828 }
4829
4830 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4831 function prototypes and stuff, but not '\xHH' hex character constants.
4832 These don't provoke an error unfortunately, instead are silently treated
4833 as 'x'. The following induces an error, until -std is added to get
4834 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4835 array size at least. It's necessary to write '\x00'==0 to get something
4836 that's true only with -std. */
4837 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4838
4839 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4840 inside strings and character constants. */
4841 #define FOO(x) 'x'
4842 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4843
4844 int test (int i, double x);
4845 struct s1 {int (*f) (int a);};
4846 struct s2 {int (*f) (double a);};
4847 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4848 int argc;
4849 char **argv;
4850 int
4851 main ()
4852 {
4853 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4854 ;
4855 return 0;
4856 }
4857 _ACEOF
4858 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4859 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4860 do
4861 CC="$ac_save_CC $ac_arg"
4862 if ac_fn_c_try_compile "$LINENO"; then :
4863 ac_cv_prog_cc_c89=$ac_arg
4864 fi
4865 rm -f core conftest.err conftest.$ac_objext
4866 test "x$ac_cv_prog_cc_c89" != "xno" && break
4867 done
4868 rm -f conftest.$ac_ext
4869 CC=$ac_save_CC
4870
4871 fi
4872 # AC_CACHE_VAL
4873 case "x$ac_cv_prog_cc_c89" in
4874 x)
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4876 $as_echo "none needed" >&6; } ;;
4877 xno)
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4879 $as_echo "unsupported" >&6; } ;;
4880 *)
4881 CC="$CC $ac_cv_prog_cc_c89"
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4883 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4884 esac
4885 if test "x$ac_cv_prog_cc_c89" != xno; then :
4886
4887 fi
4888
4889 ac_ext=c
4890 ac_cpp='$CPP $CPPFLAGS'
4891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4894
4895
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4897 $as_echo_n "checking $CC dependency flag... " >&6; }
4898 echo 'void f(){}' >conftest.c
4899 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4900 DEPFLAG="-MM"
4901 else
4902 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4903 DEPFLAG="-xM1"
4904 else
4905 DEPFLAG="-MM" # dunno do something
4906 fi
4907 fi
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4909 $as_echo "$DEPFLAG" >&6; }
4910 rm -f conftest.c
4911
4912
4913
4914
4915
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4917 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
4918 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4919 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922
4923 echo 'void f(void){}' >conftest.c
4924 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4925 eval "cv_prog_cc_flag_$cache=yes"
4926 else
4927 eval "cv_prog_cc_flag_$cache=no"
4928 fi
4929 rm -f conftest conftest.o conftest.c
4930
4931 fi
4932
4933 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4935 $as_echo "yes" >&6; }
4936 :
4937 ERRFLAG="-Werror"
4938 else
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4941 :
4942 ERRFLAG="-errwarn"
4943 fi
4944
4945
4946
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4948 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
4949 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4950 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4951 $as_echo_n "(cached) " >&6
4952 else
4953
4954 echo 'void f(void){}' >conftest.c
4955 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4956 eval "cv_prog_cc_flag_$cache=yes"
4957 else
4958 eval "cv_prog_cc_flag_$cache=no"
4959 fi
4960 rm -f conftest conftest.o conftest.c
4961
4962 fi
4963
4964 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4966 $as_echo "yes" >&6; }
4967 :
4968 ERRFLAG="$ERRFLAG -Wall"
4969 else
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971 $as_echo "no" >&6; }
4972 :
4973 ERRFLAG="$ERRFLAG -errfmt"
4974 fi
4975
4976
4977
4978
4979
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
4981 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
4982 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
4983 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986
4987 echo 'void f(void){}' >conftest.c
4988 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
4989 eval "cv_prog_cc_flag_$cache=yes"
4990 else
4991 eval "cv_prog_cc_flag_$cache=no"
4992 fi
4993 rm -f conftest conftest.o conftest.c
4994
4995 fi
4996
4997 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4999 $as_echo "yes" >&6; }
5000 :
5001 C99FLAG="-std=c99"
5002 else
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5005 :
5006
5007 fi
5008
5009
5010
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5012 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
5013 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5014 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017
5018 echo 'void f(void){}' >conftest.c
5019 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5020 eval "cv_prog_cc_flag_$cache=yes"
5021 else
5022 eval "cv_prog_cc_flag_$cache=no"
5023 fi
5024 rm -f conftest conftest.o conftest.c
5025
5026 fi
5027
5028 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5030 $as_echo "yes" >&6; }
5031 :
5032 C99FLAG="-xc99"
5033 else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5036 :
5037
5038 fi
5039
5040
5041 for ac_header in getopt.h time.h
5042 do :
5043 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5044 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5045 "
5046 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5047 cat >>confdefs.h <<_ACEOF
5048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5049 _ACEOF
5050
5051 fi
5052
5053 done
5054
5055
5056
5057
5058
5059 { $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
5060 $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; }
5061 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`
5062 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065
5066 echo '
5067 #include "confdefs.h"
5068 #include <stdlib.h>
5069 #include <ctype.h>
5070 #include <sys/time.h>
5071 #ifdef HAVE_TIME_H
5072 #include <time.h>
5073 #endif
5074 #include <unistd.h>
5075 #include <netdb.h>
5076 #ifdef HAVE_GETOPT_H
5077 #include <getopt.h>
5078 #endif
5079
5080 int test() {
5081 int a;
5082 char **opts = NULL;
5083 struct timeval tv;
5084 char *t;
5085 time_t time = 0;
5086 char *buf = NULL;
5087 const char* str = NULL;
5088 struct msghdr msg;
5089 msg.msg_control = 0;
5090 t = ctime_r(&time, buf);
5091 tv.tv_usec = 10;
5092 srandom(32);
5093 a = getopt(2, opts, "a");
5094 a = isascii(32);
5095 str = gai_strerror(0);
5096 if(str && t && tv.tv_usec && msg.msg_control)
5097 a = 0;
5098 return a;
5099 }
5100 ' > conftest.c
5101 echo 'void f(){}' >>conftest.c
5102 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5103 eval "cv_prog_cc_flag_needed_$cache=no"
5104 else
5105
5106 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
5107 eval "cv_prog_cc_flag_needed_$cache=yes"
5108 else
5109 eval "cv_prog_cc_flag_needed_$cache=fail"
5110 #echo 'Test with flag fails too!'
5111 #cat conftest.c
5112 #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"
5113 #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`
5114 #exit 1
5115 fi
5116
5117 fi
5118 rm -f conftest conftest.c conftest.o
5119
5120 fi
5121
5122 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5124 $as_echo "yes" >&6; }
5125 :
5126 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"
5127 else
5128 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5131 #echo 'Test with flag is no!'
5132 #cat conftest.c
5133 #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"
5134 #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`
5135 #exit 1
5136 :
5137
5138 else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5140 $as_echo "failed" >&6; }
5141 :
5142
5143 fi
5144 fi
5145
5146
5147
5148
5149
5150 { $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
5151 $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; }
5152 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5153 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156
5157 echo '
5158 #include "confdefs.h"
5159 #include <stdlib.h>
5160 #include <ctype.h>
5161 #include <sys/time.h>
5162 #ifdef HAVE_TIME_H
5163 #include <time.h>
5164 #endif
5165 #include <unistd.h>
5166 #include <netdb.h>
5167 #ifdef HAVE_GETOPT_H
5168 #include <getopt.h>
5169 #endif
5170
5171 int test() {
5172 int a;
5173 char **opts = NULL;
5174 struct timeval tv;
5175 char *t;
5176 time_t time = 0;
5177 char *buf = NULL;
5178 const char* str = NULL;
5179 struct msghdr msg;
5180 msg.msg_control = 0;
5181 t = ctime_r(&time, buf);
5182 tv.tv_usec = 10;
5183 srandom(32);
5184 a = getopt(2, opts, "a");
5185 a = isascii(32);
5186 str = gai_strerror(0);
5187 if(str && t && tv.tv_usec && msg.msg_control)
5188 a = 0;
5189 return a;
5190 }
5191 ' > conftest.c
5192 echo 'void f(){}' >>conftest.c
5193 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5194 eval "cv_prog_cc_flag_needed_$cache=no"
5195 else
5196
5197 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
5198 eval "cv_prog_cc_flag_needed_$cache=yes"
5199 else
5200 eval "cv_prog_cc_flag_needed_$cache=fail"
5201 #echo 'Test with flag fails too!'
5202 #cat conftest.c
5203 #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"
5204 #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`
5205 #exit 1
5206 fi
5207
5208 fi
5209 rm -f conftest conftest.c conftest.o
5210
5211 fi
5212
5213 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5215 $as_echo "yes" >&6; }
5216 :
5217 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5218 else
5219 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5222 #echo 'Test with flag is no!'
5223 #cat conftest.c
5224 #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"
5225 #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`
5226 #exit 1
5227 :
5228
5229 else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5231 $as_echo "failed" >&6; }
5232 :
5233
5234 fi
5235 fi
5236
5237
5238
5239
5240
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5242 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5243 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5244 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247
5248 echo '
5249 #include <stdbool.h>
5250 #include <ctype.h>
5251 int test() {
5252 int a = 0;
5253 return a;
5254 }
5255 ' > conftest.c
5256 echo 'void f(){}' >>conftest.c
5257 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5258 eval "cv_prog_cc_flag_needed_$cache=no"
5259 else
5260
5261 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5262 eval "cv_prog_cc_flag_needed_$cache=yes"
5263 else
5264 eval "cv_prog_cc_flag_needed_$cache=fail"
5265 #echo 'Test with flag fails too!'
5266 #cat conftest.c
5267 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5268 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5269 #exit 1
5270 fi
5271
5272 fi
5273 rm -f conftest conftest.c conftest.o
5274
5275 fi
5276
5277 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5279 $as_echo "yes" >&6; }
5280 :
5281 CFLAGS="$CFLAGS $C99FLAG"
5282 else
5283 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5286 #echo 'Test with flag is no!'
5287 #cat conftest.c
5288 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5289 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5290 #exit 1
5291 :
5292
5293 else
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5295 $as_echo "failed" >&6; }
5296 :
5297
5298 fi
5299 fi
5300
5301
5302
5303
5304
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
5306 $as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
5307 cache=_D_BSD_SOURCE
5308 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311
5312 echo '
5313 #include <ctype.h>
5314
5315 int test() {
5316 int a;
5317 a = isascii(32);
5318 return a;
5319 }
5320 ' > conftest.c
5321 echo 'void f(){}' >>conftest.c
5322 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5323 eval "cv_prog_cc_flag_needed_$cache=no"
5324 else
5325
5326 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5327 eval "cv_prog_cc_flag_needed_$cache=yes"
5328 else
5329 eval "cv_prog_cc_flag_needed_$cache=fail"
5330 #echo 'Test with flag fails too!'
5331 #cat conftest.c
5332 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5333 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5334 #exit 1
5335 fi
5336
5337 fi
5338 rm -f conftest conftest.c conftest.o
5339
5340 fi
5341
5342 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5344 $as_echo "yes" >&6; }
5345 :
5346 CFLAGS="$CFLAGS -D_BSD_SOURCE"
5347 else
5348 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5351 #echo 'Test with flag is no!'
5352 #cat conftest.c
5353 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5354 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5355 #exit 1
5356 :
5357
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5360 $as_echo "failed" >&6; }
5361 :
5362
5363 fi
5364 fi
5365
5366
5367
5368
5369
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5371 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5372 cache=_D_GNU_SOURCE
5373 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5374 $as_echo_n "(cached) " >&6
5375 else
5376
5377 echo '
5378 #include <netinet/in.h>
5379
5380 int test() {
5381 struct in6_pktinfo inf;
5382 int a = (int)sizeof(inf);
5383 return a;
5384 }
5385 ' > conftest.c
5386 echo 'void f(){}' >>conftest.c
5387 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5388 eval "cv_prog_cc_flag_needed_$cache=no"
5389 else
5390
5391 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5392 eval "cv_prog_cc_flag_needed_$cache=yes"
5393 else
5394 eval "cv_prog_cc_flag_needed_$cache=fail"
5395 #echo 'Test with flag fails too!'
5396 #cat conftest.c
5397 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5398 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5399 #exit 1
5400 fi
5401
5402 fi
5403 rm -f conftest conftest.c conftest.o
5404
5405 fi
5406
5407 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5409 $as_echo "yes" >&6; }
5410 :
5411 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5412 else
5413 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5416 #echo 'Test with flag is no!'
5417 #cat conftest.c
5418 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5419 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5420 #exit 1
5421 :
5422
5423 else
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5425 $as_echo "failed" >&6; }
5426 :
5427
5428 fi
5429 fi
5430
5431
5432 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5433 # is not available at all. -D_FRSRESGID is to make this check unique.
5434 # otherwise we would get the previous cached result.
5435
5436
5437
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5439 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5440 cache=_D_GNU_SOURCE__D_FRSRESGID
5441 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444
5445 echo '
5446 #include <unistd.h>
5447
5448 int test() {
5449 int a = setresgid(0,0,0);
5450 a = setresuid(0,0,0);
5451 return a;
5452 }
5453 ' > conftest.c
5454 echo 'void f(){}' >>conftest.c
5455 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5456 eval "cv_prog_cc_flag_needed_$cache=no"
5457 else
5458
5459 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5460 eval "cv_prog_cc_flag_needed_$cache=yes"
5461 else
5462 eval "cv_prog_cc_flag_needed_$cache=fail"
5463 #echo 'Test with flag fails too!'
5464 #cat conftest.c
5465 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5466 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5467 #exit 1
5468 fi
5469
5470 fi
5471 rm -f conftest conftest.c conftest.o
5472
5473 fi
5474
5475 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5477 $as_echo "yes" >&6; }
5478 :
5479 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5480 else
5481 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5484 #echo 'Test with flag is no!'
5485 #cat conftest.c
5486 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5487 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5488 #exit 1
5489 :
5490
5491 else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5493 $as_echo "failed" >&6; }
5494 :
5495
5496 fi
5497 fi
5498
5499
5500
5501
5502
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5504 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5505 cache=_D_POSIX_C_SOURCE_200112
5506 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5509
5510 echo '
5511 #include "confdefs.h"
5512 #ifdef HAVE_TIME_H
5513 #include <time.h>
5514 #endif
5515 #include <netdb.h>
5516
5517 int test() {
5518 int a = 0;
5519 char *t;
5520 time_t time = 0;
5521 char *buf = NULL;
5522 const char* str = NULL;
5523 t = ctime_r(&time, buf);
5524 str = gai_strerror(0);
5525 if(t && str)
5526 a = 0;
5527 return a;
5528 }
5529 ' > conftest.c
5530 echo 'void f(){}' >>conftest.c
5531 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5532 eval "cv_prog_cc_flag_needed_$cache=no"
5533 else
5534
5535 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5536 eval "cv_prog_cc_flag_needed_$cache=yes"
5537 else
5538 eval "cv_prog_cc_flag_needed_$cache=fail"
5539 #echo 'Test with flag fails too!'
5540 #cat conftest.c
5541 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5542 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5543 #exit 1
5544 fi
5545
5546 fi
5547 rm -f conftest conftest.c conftest.o
5548
5549 fi
5550
5551 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5553 $as_echo "yes" >&6; }
5554 :
5555 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5556 else
5557 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5560 #echo 'Test with flag is no!'
5561 #cat conftest.c
5562 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5563 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5564 #exit 1
5565 :
5566
5567 else
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5569 $as_echo "failed" >&6; }
5570 :
5571
5572 fi
5573 fi
5574
5575
5576
5577
5578
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5580 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5581 cache=_D__EXTENSIONS__
5582 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585
5586 echo '
5587 #include "confdefs.h"
5588 #include <stdlib.h>
5589 #include <ctype.h>
5590 #include <sys/time.h>
5591 #ifdef HAVE_TIME_H
5592 #include <time.h>
5593 #endif
5594 #include <unistd.h>
5595 #ifdef HAVE_GETOPT_H
5596 #include <getopt.h>
5597 #endif
5598
5599 int test() {
5600 int a;
5601 char **opts = NULL;
5602 struct timeval tv;
5603 tv.tv_usec = 10;
5604 srandom(32);
5605 a = getopt(2, opts, "a");
5606 a = isascii(32);
5607 if(tv.tv_usec)
5608 a = 0;
5609 return a;
5610 }
5611 ' > conftest.c
5612 echo 'void f(){}' >>conftest.c
5613 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5614 eval "cv_prog_cc_flag_needed_$cache=no"
5615 else
5616
5617 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5618 eval "cv_prog_cc_flag_needed_$cache=yes"
5619 else
5620 eval "cv_prog_cc_flag_needed_$cache=fail"
5621 #echo 'Test with flag fails too!'
5622 #cat conftest.c
5623 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5624 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5625 #exit 1
5626 fi
5627
5628 fi
5629 rm -f conftest conftest.c conftest.o
5630
5631 fi
5632
5633 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5635 $as_echo "yes" >&6; }
5636 :
5637 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5638 else
5639 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5642 #echo 'Test with flag is no!'
5643 #cat conftest.c
5644 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5645 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5646 #exit 1
5647 :
5648
5649 else
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5651 $as_echo "failed" >&6; }
5652 :
5653
5654 fi
5655 fi
5656
5657
5658
5659
5660 # debug mode flags warnings
5661 # Check whether --enable-checking was given.
5662 if test "${enable_checking+set}" = set; then :
5663 enableval=$enable_checking;
5664 fi
5665
5666 # Check whether --enable-debug was given.
5667 if test "${enable_debug+set}" = set; then :
5668 enableval=$enable_debug;
5669 fi
5670
5671 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5672 else debug_enabled="$enable_checking"; fi
5673
5674 case "$debug_enabled" in
5675 yes)
5676
5677
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5679 $as_echo_n "checking whether $CC supports -W... " >&6; }
5680 cache=`echo W | sed 'y%.=/+-%___p_%'`
5681 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684
5685 echo 'void f(void){}' >conftest.c
5686 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5687 eval "cv_prog_cc_flag_$cache=yes"
5688 else
5689 eval "cv_prog_cc_flag_$cache=no"
5690 fi
5691 rm -f conftest conftest.o conftest.c
5692
5693 fi
5694
5695 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5697 $as_echo "yes" >&6; }
5698 :
5699 CFLAGS="$CFLAGS -W"
5700 else
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5703 :
5704
5705 fi
5706
5707
5708
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5710 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5711 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5712 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715
5716 echo 'void f(void){}' >conftest.c
5717 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5718 eval "cv_prog_cc_flag_$cache=yes"
5719 else
5720 eval "cv_prog_cc_flag_$cache=no"
5721 fi
5722 rm -f conftest conftest.o conftest.c
5723
5724 fi
5725
5726 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5728 $as_echo "yes" >&6; }
5729 :
5730 CFLAGS="$CFLAGS -Wall"
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 :
5735
5736 fi
5737
5738
5739
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5741 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5742 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5743 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746
5747 echo 'void f(void){}' >conftest.c
5748 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5749 eval "cv_prog_cc_flag_$cache=yes"
5750 else
5751 eval "cv_prog_cc_flag_$cache=no"
5752 fi
5753 rm -f conftest conftest.o conftest.c
5754
5755 fi
5756
5757 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759 $as_echo "yes" >&6; }
5760 :
5761 CFLAGS="$CFLAGS -Wextra"
5762 else
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764 $as_echo "no" >&6; }
5765 :
5766
5767 fi
5768
5769
5770
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5772 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5773 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5774 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5775 $as_echo_n "(cached) " >&6
5776 else
5777
5778 echo 'void f(void){}' >conftest.c
5779 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5780 eval "cv_prog_cc_flag_$cache=yes"
5781 else
5782 eval "cv_prog_cc_flag_$cache=no"
5783 fi
5784 rm -f conftest conftest.o conftest.c
5785
5786 fi
5787
5788 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5790 $as_echo "yes" >&6; }
5791 :
5792 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5793 else
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5796 :
5797
5798 fi
5799
5800
5801 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5802
5803 ;;
5804 no|*)
5805 # nothing to do.
5806 ;;
5807 esac
5808
5809 # Check whether --enable-flto was given.
5810 if test "${enable_flto+set}" = set; then :
5811 enableval=$enable_flto;
5812 fi
5813
5814 if test "x$enable_flto" != "xno"; then :
5815
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5817 $as_echo_n "checking if $CC supports -flto... " >&6; }
5818 BAKCFLAGS="$CFLAGS"
5819 CFLAGS="$CFLAGS -flto"
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822
5823 int
5824 main ()
5825 {
5826
5827 ;
5828 return 0;
5829 }
5830 _ACEOF
5831 if ac_fn_c_try_link "$LINENO"; then :
5832
5833 if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5834 CFLAGS="$BAKCFLAGS"
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5837 else
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5839 $as_echo "yes" >&6; }
5840 fi
5841 rm -f conftest conftest.c conftest.o
5842
5843 else
5844 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5846 fi
5847 rm -f core conftest.err conftest.$ac_objext \
5848 conftest$ac_exeext conftest.$ac_ext
5849
5850 fi
5851
5852
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5854 $as_echo_n "checking for inline... " >&6; }
5855 if ${ac_cv_c_inline+:} false; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 ac_cv_c_inline=no
5859 for ac_kw in inline __inline__ __inline; do
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5862 #ifndef __cplusplus
5863 typedef int foo_t;
5864 static $ac_kw foo_t static_foo () {return 0; }
5865 $ac_kw foo_t foo () {return 0; }
5866 #endif
5867
5868 _ACEOF
5869 if ac_fn_c_try_compile "$LINENO"; then :
5870 ac_cv_c_inline=$ac_kw
5871 fi
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873 test "$ac_cv_c_inline" != no && break
5874 done
5875
5876 fi
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5878 $as_echo "$ac_cv_c_inline" >&6; }
5879
5880 case $ac_cv_c_inline in
5881 inline | yes) ;;
5882 *)
5883 case $ac_cv_c_inline in
5884 no) ac_val=;;
5885 *) ac_val=$ac_cv_c_inline;;
5886 esac
5887 cat >>confdefs.h <<_ACEOF
5888 #ifndef __cplusplus
5889 #define inline $ac_val
5890 #endif
5891 _ACEOF
5892 ;;
5893 esac
5894
5895
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
5897 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
5898 if ${ac_cv_c_format_attribute+:} false; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 ac_cv_c_format_attribute=no
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5904 #include <stdio.h>
5905 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5906 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5907
5908 int
5909 main ()
5910 {
5911
5912 f ("%s", "str");
5913
5914 ;
5915 return 0;
5916 }
5917 _ACEOF
5918 if ac_fn_c_try_compile "$LINENO"; then :
5919 ac_cv_c_format_attribute="yes"
5920 else
5921 ac_cv_c_format_attribute="no"
5922 fi
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924
5925 fi
5926
5927
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
5929 $as_echo "$ac_cv_c_format_attribute" >&6; }
5930 if test $ac_cv_c_format_attribute = yes; then
5931
5932 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
5933
5934 fi
5935
5936
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
5938 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
5939 if ${ac_cv_c_unused_attribute+:} false; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 ac_cv_c_unused_attribute=no
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5945 #include <stdio.h>
5946 void f (char *u __attribute__((unused)));
5947
5948 int
5949 main ()
5950 {
5951
5952 f ("x");
5953
5954 ;
5955 return 0;
5956 }
5957 _ACEOF
5958 if ac_fn_c_try_compile "$LINENO"; then :
5959 ac_cv_c_unused_attribute="yes"
5960 else
5961 ac_cv_c_unused_attribute="no"
5962 fi
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964
5965 fi
5966
5967
5968
5969
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
5971 $as_echo "$ac_cv_c_unused_attribute" >&6; }
5972 if test $ac_cv_c_unused_attribute = yes; then
5973
5974 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
5975
5976 fi
5977
5978
5979 if test "$srcdir" != "."; then
5980 CPPFLAGS="$CPPFLAGS -I$srcdir"
5981 fi
5982
5983
5984
5985 for ac_prog in flex lex
5986 do
5987 # Extract the first word of "$ac_prog", so it can be a program name with args.
5988 set dummy $ac_prog; ac_word=$2
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990 $as_echo_n "checking for $ac_word... " >&6; }
5991 if ${ac_cv_prog_LEX+:} false; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 if test -n "$LEX"; then
5995 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5996 else
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 for as_dir in $PATH
5999 do
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6004 ac_cv_prog_LEX="$ac_prog"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 break 2
6007 fi
6008 done
6009 done
6010 IFS=$as_save_IFS
6011
6012 fi
6013 fi
6014 LEX=$ac_cv_prog_LEX
6015 if test -n "$LEX"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6017 $as_echo "$LEX" >&6; }
6018 else
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6021 fi
6022
6023
6024 test -n "$LEX" && break
6025 done
6026 test -n "$LEX" || LEX=":"
6027
6028 if test "x$LEX" != "x:"; then
6029 cat >conftest.l <<_ACEOF
6030 %%
6031 a { ECHO; }
6032 b { REJECT; }
6033 c { yymore (); }
6034 d { yyless (1); }
6035 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6036 yyless ((input () != 0)); }
6037 f { unput (yytext[0]); }
6038 . { BEGIN INITIAL; }
6039 %%
6040 #ifdef YYTEXT_POINTER
6041 extern char *yytext;
6042 #endif
6043 int
6044 main (void)
6045 {
6046 return ! yylex () + ! yywrap ();
6047 }
6048 _ACEOF
6049 { { ac_try="$LEX conftest.l"
6050 case "(($ac_try" in
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6053 esac
6054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6055 $as_echo "$ac_try_echo"; } >&5
6056 (eval "$LEX conftest.l") 2>&5
6057 ac_status=$?
6058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6059 test $ac_status = 0; }
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6061 $as_echo_n "checking lex output file root... " >&6; }
6062 if ${ac_cv_prog_lex_root+:} false; then :
6063 $as_echo_n "(cached) " >&6
6064 else
6065
6066 if test -f lex.yy.c; then
6067 ac_cv_prog_lex_root=lex.yy
6068 elif test -f lexyy.c; then
6069 ac_cv_prog_lex_root=lexyy
6070 else
6071 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6072 fi
6073 fi
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6075 $as_echo "$ac_cv_prog_lex_root" >&6; }
6076 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6077
6078 if test -z "${LEXLIB+set}"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6080 $as_echo_n "checking lex library... " >&6; }
6081 if ${ac_cv_lib_lex+:} false; then :
6082 $as_echo_n "(cached) " >&6
6083 else
6084
6085 ac_save_LIBS=$LIBS
6086 ac_cv_lib_lex='none needed'
6087 for ac_lib in '' -lfl -ll; do
6088 LIBS="$ac_lib $ac_save_LIBS"
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 `cat $LEX_OUTPUT_ROOT.c`
6092 _ACEOF
6093 if ac_fn_c_try_link "$LINENO"; then :
6094 ac_cv_lib_lex=$ac_lib
6095 fi
6096 rm -f core conftest.err conftest.$ac_objext \
6097 conftest$ac_exeext conftest.$ac_ext
6098 test "$ac_cv_lib_lex" != 'none needed' && break
6099 done
6100 LIBS=$ac_save_LIBS
6101
6102 fi
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6104 $as_echo "$ac_cv_lib_lex" >&6; }
6105 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6106 fi
6107
6108
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6110 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6111 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6112 $as_echo_n "(cached) " >&6
6113 else
6114 # POSIX says lex can declare yytext either as a pointer or an array; the
6115 # default is implementation-dependent. Figure out which it is, since
6116 # not all implementations provide the %pointer and %array declarations.
6117 ac_cv_prog_lex_yytext_pointer=no
6118 ac_save_LIBS=$LIBS
6119 LIBS="$LEXLIB $ac_save_LIBS"
6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h. */
6122
6123 #define YYTEXT_POINTER 1
6124 `cat $LEX_OUTPUT_ROOT.c`
6125 _ACEOF
6126 if ac_fn_c_try_link "$LINENO"; then :
6127 ac_cv_prog_lex_yytext_pointer=yes
6128 fi
6129 rm -f core conftest.err conftest.$ac_objext \
6130 conftest$ac_exeext conftest.$ac_ext
6131 LIBS=$ac_save_LIBS
6132
6133 fi
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6135 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6136 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6137
6138 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6139
6140 fi
6141 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6142
6143 fi
6144
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6146 $as_echo_n "checking for yylex_destroy... " >&6; }
6147 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6148
6149 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6150
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6152 $as_echo "yes" >&6; }
6153 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }; fi
6155
6156 for ac_prog in 'bison -y' byacc
6157 do
6158 # Extract the first word of "$ac_prog", so it can be a program name with args.
6159 set dummy $ac_prog; ac_word=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if ${ac_cv_prog_YACC+:} false; then :
6163 $as_echo_n "(cached) " >&6
6164 else
6165 if test -n "$YACC"; then
6166 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6167 else
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6170 do
6171 IFS=$as_save_IFS
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6175 ac_cv_prog_YACC="$ac_prog"
6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 break 2
6178 fi
6179 done
6180 done
6181 IFS=$as_save_IFS
6182
6183 fi
6184 fi
6185 YACC=$ac_cv_prog_YACC
6186 if test -n "$YACC"; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6188 $as_echo "$YACC" >&6; }
6189 else
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 $as_echo "no" >&6; }
6192 fi
6193
6194
6195 test -n "$YACC" && break
6196 done
6197 test -n "$YACC" || YACC="yacc"
6198
6199 # Extract the first word of "doxygen", so it can be a program name with args.
6200 set dummy doxygen; ac_word=$2
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 $as_echo_n "checking for $ac_word... " >&6; }
6203 if ${ac_cv_prog_doxygen+:} false; then :
6204 $as_echo_n "(cached) " >&6
6205 else
6206 if test -n "$doxygen"; then
6207 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6208 else
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 for as_dir in $PATH
6211 do
6212 IFS=$as_save_IFS
6213 test -z "$as_dir" && as_dir=.
6214 for ac_exec_ext in '' $ac_executable_extensions; do
6215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6216 ac_cv_prog_doxygen="doxygen"
6217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218 break 2
6219 fi
6220 done
6221 done
6222 IFS=$as_save_IFS
6223
6224 fi
6225 fi
6226 doxygen=$ac_cv_prog_doxygen
6227 if test -n "$doxygen"; then
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6229 $as_echo "$doxygen" >&6; }
6230 else
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232 $as_echo "no" >&6; }
6233 fi
6234
6235
6236 if test -n "$ac_tool_prefix"; then
6237 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6238 set dummy ${ac_tool_prefix}strip; ac_word=$2
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 $as_echo_n "checking for $ac_word... " >&6; }
6241 if ${ac_cv_prog_STRIP+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 if test -n "$STRIP"; then
6245 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6246 else
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6249 do
6250 IFS=$as_save_IFS
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 break 2
6257 fi
6258 done
6259 done
6260 IFS=$as_save_IFS
6261
6262 fi
6263 fi
6264 STRIP=$ac_cv_prog_STRIP
6265 if test -n "$STRIP"; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6267 $as_echo "$STRIP" >&6; }
6268 else
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 $as_echo "no" >&6; }
6271 fi
6272
6273
6274 fi
6275 if test -z "$ac_cv_prog_STRIP"; then
6276 ac_ct_STRIP=$STRIP
6277 # Extract the first word of "strip", so it can be a program name with args.
6278 set dummy strip; ac_word=$2
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280 $as_echo_n "checking for $ac_word... " >&6; }
6281 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6282 $as_echo_n "(cached) " >&6
6283 else
6284 if test -n "$ac_ct_STRIP"; then
6285 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6289 do
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294 ac_cv_prog_ac_ct_STRIP="strip"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
6297 fi
6298 done
6299 done
6300 IFS=$as_save_IFS
6301
6302 fi
6303 fi
6304 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6305 if test -n "$ac_ct_STRIP"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6307 $as_echo "$ac_ct_STRIP" >&6; }
6308 else
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6311 fi
6312
6313 if test "x$ac_ct_STRIP" = x; then
6314 STRIP=""
6315 else
6316 case $cross_compiling:$ac_tool_warned in
6317 yes:)
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6320 ac_tool_warned=yes ;;
6321 esac
6322 STRIP=$ac_ct_STRIP
6323 fi
6324 else
6325 STRIP="$ac_cv_prog_STRIP"
6326 fi
6327
6328 ac_aux_dir=
6329 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6330 if test -f "$ac_dir/install-sh"; then
6331 ac_aux_dir=$ac_dir
6332 ac_install_sh="$ac_aux_dir/install-sh -c"
6333 break
6334 elif test -f "$ac_dir/install.sh"; then
6335 ac_aux_dir=$ac_dir
6336 ac_install_sh="$ac_aux_dir/install.sh -c"
6337 break
6338 elif test -f "$ac_dir/shtool"; then
6339 ac_aux_dir=$ac_dir
6340 ac_install_sh="$ac_aux_dir/shtool install -c"
6341 break
6342 fi
6343 done
6344 if test -z "$ac_aux_dir"; then
6345 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6346 fi
6347
6348 # These three variables are undocumented and unsupported,
6349 # and are intended to be withdrawn in a future Autoconf release.
6350 # They can cause serious problems if a builder's source tree is in a directory
6351 # whose full name contains unusual characters.
6352 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6353 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6354 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6355
6356
6357 # Make sure we can run config.sub.
6358 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6359 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6360
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6362 $as_echo_n "checking build system type... " >&6; }
6363 if ${ac_cv_build+:} false; then :
6364 $as_echo_n "(cached) " >&6
6365 else
6366 ac_build_alias=$build_alias
6367 test "x$ac_build_alias" = x &&
6368 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6369 test "x$ac_build_alias" = x &&
6370 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6371 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6372 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6373
6374 fi
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6376 $as_echo "$ac_cv_build" >&6; }
6377 case $ac_cv_build in
6378 *-*-*) ;;
6379 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6380 esac
6381 build=$ac_cv_build
6382 ac_save_IFS=$IFS; IFS='-'
6383 set x $ac_cv_build
6384 shift
6385 build_cpu=$1
6386 build_vendor=$2
6387 shift; shift
6388 # Remember, the first character of IFS is used to create $*,
6389 # except with old shells:
6390 build_os=$*
6391 IFS=$ac_save_IFS
6392 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6393
6394
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6396 $as_echo_n "checking host system type... " >&6; }
6397 if ${ac_cv_host+:} false; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 if test "x$host_alias" = x; then
6401 ac_cv_host=$ac_cv_build
6402 else
6403 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6404 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6405 fi
6406
6407 fi
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6409 $as_echo "$ac_cv_host" >&6; }
6410 case $ac_cv_host in
6411 *-*-*) ;;
6412 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6413 esac
6414 host=$ac_cv_host
6415 ac_save_IFS=$IFS; IFS='-'
6416 set x $ac_cv_host
6417 shift
6418 host_cpu=$1
6419 host_vendor=$2
6420 shift; shift
6421 # Remember, the first character of IFS is used to create $*,
6422 # except with old shells:
6423 host_os=$*
6424 IFS=$ac_save_IFS
6425 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6426
6427
6428
6429 # skip these tests, we do not need them.
6430
6431
6432
6433
6434
6435
6436
6437
6438 # always use ./libtool unless override from commandline (libtool=mylibtool)
6439 if test -z "$libtool"; then
6440 libtool="./libtool"
6441 fi
6442
6443 # avoid libtool max commandline length test on systems that fork slowly.
6444
6445 if echo "$host_os" | grep "sunos4" >/dev/null; then
6446 lt_cv_sys_max_cmd_len=32750;
6447 fi
6448 if test -n "$ac_tool_prefix"; then
6449 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6450 set dummy ${ac_tool_prefix}ar; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if ${ac_cv_path_AR+:} false; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 case $AR in
6457 [\\/]* | ?:[\\/]*)
6458 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6459 ;;
6460 *)
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 for as_dir in $PATH
6463 do
6464 IFS=$as_save_IFS
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6468 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 break 2
6471 fi
6472 done
6473 done
6474 IFS=$as_save_IFS
6475
6476 ;;
6477 esac
6478 fi
6479 AR=$ac_cv_path_AR
6480 if test -n "$AR"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6482 $as_echo "$AR" >&6; }
6483 else
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6486 fi
6487
6488
6489 fi
6490 if test -z "$ac_cv_path_AR"; then
6491 ac_pt_AR=$AR
6492 # Extract the first word of "ar", so it can be a program name with args.
6493 set dummy ar; ac_word=$2
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if ${ac_cv_path_ac_pt_AR+:} false; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 case $ac_pt_AR in
6500 [\\/]* | ?:[\\/]*)
6501 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6502 ;;
6503 *)
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507 IFS=$as_save_IFS
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6511 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 break 2
6514 fi
6515 done
6516 done
6517 IFS=$as_save_IFS
6518
6519 ;;
6520 esac
6521 fi
6522 ac_pt_AR=$ac_cv_path_ac_pt_AR
6523 if test -n "$ac_pt_AR"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6525 $as_echo "$ac_pt_AR" >&6; }
6526 else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6529 fi
6530
6531 if test "x$ac_pt_AR" = x; then
6532 AR="false"
6533 else
6534 case $cross_compiling:$ac_tool_warned in
6535 yes:)
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6538 ac_tool_warned=yes ;;
6539 esac
6540 AR=$ac_pt_AR
6541 fi
6542 else
6543 AR="$ac_cv_path_AR"
6544 fi
6545
6546 if test $AR = false; then
6547 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6548 fi
6549
6550 case `pwd` in
6551 *\ * | *\ *)
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6553 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6554 esac
6555
6556
6557
6558 macro_version='2.4.2'
6559 macro_revision='1.3337'
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573 ltmain="$ac_aux_dir/ltmain.sh"
6574
6575 # Backslashify metacharacters that are still active within
6576 # double-quoted strings.
6577 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6578
6579 # Same as above, but do not quote variable references.
6580 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6581
6582 # Sed substitution to delay expansion of an escaped shell variable in a
6583 # double_quote_subst'ed string.
6584 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6585
6586 # Sed substitution to delay expansion of an escaped single quote.
6587 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6588
6589 # Sed substitution to avoid accidental globbing in evaled expressions
6590 no_glob_subst='s/\*/\\\*/g'
6591
6592 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6593 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6594 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6595
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6597 $as_echo_n "checking how to print strings... " >&6; }
6598 # Test print first, because it will be a builtin if present.
6599 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6600 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6601 ECHO='print -r --'
6602 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6603 ECHO='printf %s\n'
6604 else
6605 # Use this function as a fallback that always works.
6606 func_fallback_echo ()
6607 {
6608 eval 'cat <<_LTECHO_EOF
6609 $1
6610 _LTECHO_EOF'
6611 }
6612 ECHO='func_fallback_echo'
6613 fi
6614
6615 # func_echo_all arg...
6616 # Invoke $ECHO with all args, space-separated.
6617 func_echo_all ()
6618 {
6619 $ECHO ""
6620 }
6621
6622 case "$ECHO" in
6623 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6624 $as_echo "printf" >&6; } ;;
6625 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6626 $as_echo "print -r" >&6; } ;;
6627 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6628 $as_echo "cat" >&6; } ;;
6629 esac
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6645 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6646 if ${ac_cv_path_SED+:} false; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6649 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6650 for ac_i in 1 2 3 4 5 6 7; do
6651 ac_script="$ac_script$as_nl$ac_script"
6652 done
6653 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6654 { ac_script=; unset ac_script;}
6655 if test -z "$SED"; then
6656 ac_path_SED_found=false
6657 # Loop through the user's path and test for each of PROGNAME-LIST
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6660 do
6661 IFS=$as_save_IFS
6662 test -z "$as_dir" && as_dir=.
6663 for ac_prog in sed gsed; do
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6666 as_fn_executable_p "$ac_path_SED" || continue
6667 # Check for GNU ac_path_SED and select it if it is found.
6668 # Check for GNU $ac_path_SED
6669 case `"$ac_path_SED" --version 2>&1` in
6670 *GNU*)
6671 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6672 *)
6673 ac_count=0
6674 $as_echo_n 0123456789 >"conftest.in"
6675 while :
6676 do
6677 cat "conftest.in" "conftest.in" >"conftest.tmp"
6678 mv "conftest.tmp" "conftest.in"
6679 cp "conftest.in" "conftest.nl"
6680 $as_echo '' >> "conftest.nl"
6681 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6683 as_fn_arith $ac_count + 1 && ac_count=$as_val
6684 if test $ac_count -gt ${ac_path_SED_max-0}; then
6685 # Best one so far, save it but keep looking for a better one
6686 ac_cv_path_SED="$ac_path_SED"
6687 ac_path_SED_max=$ac_count
6688 fi
6689 # 10*(2^10) chars as input seems more than enough
6690 test $ac_count -gt 10 && break
6691 done
6692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6693 esac
6694
6695 $ac_path_SED_found && break 3
6696 done
6697 done
6698 done
6699 IFS=$as_save_IFS
6700 if test -z "$ac_cv_path_SED"; then
6701 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6702 fi
6703 else
6704 ac_cv_path_SED=$SED
6705 fi
6706
6707 fi
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6709 $as_echo "$ac_cv_path_SED" >&6; }
6710 SED="$ac_cv_path_SED"
6711 rm -f conftest.sed
6712
6713 test -z "$SED" && SED=sed
6714 Xsed="$SED -e 1s/^X//"
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6727 $as_echo_n "checking for fgrep... " >&6; }
6728 if ${ac_cv_path_FGREP+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6732 then ac_cv_path_FGREP="$GREP -F"
6733 else
6734 if test -z "$FGREP"; then
6735 ac_path_FGREP_found=false
6736 # Loop through the user's path and test for each of PROGNAME-LIST
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6739 do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_prog in fgrep; do
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6745 as_fn_executable_p "$ac_path_FGREP" || continue
6746 # Check for GNU ac_path_FGREP and select it if it is found.
6747 # Check for GNU $ac_path_FGREP
6748 case `"$ac_path_FGREP" --version 2>&1` in
6749 *GNU*)
6750 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6751 *)
6752 ac_count=0
6753 $as_echo_n 0123456789 >"conftest.in"
6754 while :
6755 do
6756 cat "conftest.in" "conftest.in" >"conftest.tmp"
6757 mv "conftest.tmp" "conftest.in"
6758 cp "conftest.in" "conftest.nl"
6759 $as_echo 'FGREP' >> "conftest.nl"
6760 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6761 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6762 as_fn_arith $ac_count + 1 && ac_count=$as_val
6763 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6764 # Best one so far, save it but keep looking for a better one
6765 ac_cv_path_FGREP="$ac_path_FGREP"
6766 ac_path_FGREP_max=$ac_count
6767 fi
6768 # 10*(2^10) chars as input seems more than enough
6769 test $ac_count -gt 10 && break
6770 done
6771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6772 esac
6773
6774 $ac_path_FGREP_found && break 3
6775 done
6776 done
6777 done
6778 IFS=$as_save_IFS
6779 if test -z "$ac_cv_path_FGREP"; then
6780 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6781 fi
6782 else
6783 ac_cv_path_FGREP=$FGREP
6784 fi
6785
6786 fi
6787 fi
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6789 $as_echo "$ac_cv_path_FGREP" >&6; }
6790 FGREP="$ac_cv_path_FGREP"
6791
6792
6793 test -z "$GREP" && GREP=grep
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813 # Check whether --with-gnu-ld was given.
6814 if test "${with_gnu_ld+set}" = set; then :
6815 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6816 else
6817 with_gnu_ld=no
6818 fi
6819
6820 ac_prog=ld
6821 if test "$GCC" = yes; then
6822 # Check if gcc -print-prog-name=ld gives a path.
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6824 $as_echo_n "checking for ld used by $CC... " >&6; }
6825 case $host in
6826 *-*-mingw*)
6827 # gcc leaves a trailing carriage return which upsets mingw
6828 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6829 *)
6830 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6831 esac
6832 case $ac_prog in
6833 # Accept absolute paths.
6834 [\\/]* | ?:[\\/]*)
6835 re_direlt='/[^/][^/]*/\.\./'
6836 # Canonicalize the pathname of ld
6837 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6838 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6839 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6840 done
6841 test -z "$LD" && LD="$ac_prog"
6842 ;;
6843 "")
6844 # If it fails, then pretend we aren't using GCC.
6845 ac_prog=ld
6846 ;;
6847 *)
6848 # If it is relative, then search for the first ld in PATH.
6849 with_gnu_ld=unknown
6850 ;;
6851 esac
6852 elif test "$with_gnu_ld" = yes; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6854 $as_echo_n "checking for GNU ld... " >&6; }
6855 else
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6857 $as_echo_n "checking for non-GNU ld... " >&6; }
6858 fi
6859 if ${lt_cv_path_LD+:} false; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 if test -z "$LD"; then
6863 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6864 for ac_dir in $PATH; do
6865 IFS="$lt_save_ifs"
6866 test -z "$ac_dir" && ac_dir=.
6867 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6868 lt_cv_path_LD="$ac_dir/$ac_prog"
6869 # Check to see if the program is GNU ld. I'd rather use --version,
6870 # but apparently some variants of GNU ld only accept -v.
6871 # Break only if it was the GNU/non-GNU ld that we prefer.
6872 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6873 *GNU* | *'with BFD'*)
6874 test "$with_gnu_ld" != no && break
6875 ;;
6876 *)
6877 test "$with_gnu_ld" != yes && break
6878 ;;
6879 esac
6880 fi
6881 done
6882 IFS="$lt_save_ifs"
6883 else
6884 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6885 fi
6886 fi
6887
6888 LD="$lt_cv_path_LD"
6889 if test -n "$LD"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6891 $as_echo "$LD" >&6; }
6892 else
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6895 fi
6896 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6898 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6899 if ${lt_cv_prog_gnu_ld+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6903 case `$LD -v 2>&1 </dev/null` in
6904 *GNU* | *'with BFD'*)
6905 lt_cv_prog_gnu_ld=yes
6906 ;;
6907 *)
6908 lt_cv_prog_gnu_ld=no
6909 ;;
6910 esac
6911 fi
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6913 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6914 with_gnu_ld=$lt_cv_prog_gnu_ld
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6925 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6926 if ${lt_cv_path_NM+:} false; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 if test -n "$NM"; then
6930 # Let the user override the test.
6931 lt_cv_path_NM="$NM"
6932 else
6933 lt_nm_to_check="${ac_tool_prefix}nm"
6934 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6935 lt_nm_to_check="$lt_nm_to_check nm"
6936 fi
6937 for lt_tmp_nm in $lt_nm_to_check; do
6938 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6939 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6940 IFS="$lt_save_ifs"
6941 test -z "$ac_dir" && ac_dir=.
6942 tmp_nm="$ac_dir/$lt_tmp_nm"
6943 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6944 # Check to see if the nm accepts a BSD-compat flag.
6945 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6946 # nm: unknown option "B" ignored
6947 # Tru64's nm complains that /dev/null is an invalid object file
6948 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6949 */dev/null* | *'Invalid file or object type'*)
6950 lt_cv_path_NM="$tmp_nm -B"
6951 break
6952 ;;
6953 *)
6954 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6955 */dev/null*)
6956 lt_cv_path_NM="$tmp_nm -p"
6957 break
6958 ;;
6959 *)
6960 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6961 continue # so that we can try to find one that supports BSD flags
6962 ;;
6963 esac
6964 ;;
6965 esac
6966 fi
6967 done
6968 IFS="$lt_save_ifs"
6969 done
6970 : ${lt_cv_path_NM=no}
6971 fi
6972 fi
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6974 $as_echo "$lt_cv_path_NM" >&6; }
6975 if test "$lt_cv_path_NM" != "no"; then
6976 NM="$lt_cv_path_NM"
6977 else
6978 # Didn't find any BSD compatible name lister, look for dumpbin.
6979 if test -n "$DUMPBIN"; then :
6980 # Let the user override the test.
6981 else
6982 if test -n "$ac_tool_prefix"; then
6983 for ac_prog in dumpbin "link -dump"
6984 do
6985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988 $as_echo_n "checking for $ac_word... " >&6; }
6989 if ${ac_cv_prog_DUMPBIN+:} false; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 if test -n "$DUMPBIN"; then
6993 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6994 else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 break 2
7005 fi
7006 done
7007 done
7008 IFS=$as_save_IFS
7009
7010 fi
7011 fi
7012 DUMPBIN=$ac_cv_prog_DUMPBIN
7013 if test -n "$DUMPBIN"; then
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7015 $as_echo "$DUMPBIN" >&6; }
7016 else
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 $as_echo "no" >&6; }
7019 fi
7020
7021
7022 test -n "$DUMPBIN" && break
7023 done
7024 fi
7025 if test -z "$DUMPBIN"; then
7026 ac_ct_DUMPBIN=$DUMPBIN
7027 for ac_prog in dumpbin "link -dump"
7028 do
7029 # Extract the first word of "$ac_prog", so it can be a program name with args.
7030 set dummy $ac_prog; ac_word=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 if test -n "$ac_ct_DUMPBIN"; then
7037 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7046 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 break 2
7049 fi
7050 done
7051 done
7052 IFS=$as_save_IFS
7053
7054 fi
7055 fi
7056 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7057 if test -n "$ac_ct_DUMPBIN"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7059 $as_echo "$ac_ct_DUMPBIN" >&6; }
7060 else
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7063 fi
7064
7065
7066 test -n "$ac_ct_DUMPBIN" && break
7067 done
7068
7069 if test "x$ac_ct_DUMPBIN" = x; then
7070 DUMPBIN=":"
7071 else
7072 case $cross_compiling:$ac_tool_warned in
7073 yes:)
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7076 ac_tool_warned=yes ;;
7077 esac
7078 DUMPBIN=$ac_ct_DUMPBIN
7079 fi
7080 fi
7081
7082 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7083 *COFF*)
7084 DUMPBIN="$DUMPBIN -symbols"
7085 ;;
7086 *)
7087 DUMPBIN=:
7088 ;;
7089 esac
7090 fi
7091
7092 if test "$DUMPBIN" != ":"; then
7093 NM="$DUMPBIN"
7094 fi
7095 fi
7096 test -z "$NM" && NM=nm
7097
7098
7099
7100
7101
7102
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7104 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7105 if ${lt_cv_nm_interface+:} false; then :
7106 $as_echo_n "(cached) " >&6
7107 else
7108 lt_cv_nm_interface="BSD nm"
7109 echo "int some_variable = 0;" > conftest.$ac_ext
7110 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7111 (eval "$ac_compile" 2>conftest.err)
7112 cat conftest.err >&5
7113 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7114 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7115 cat conftest.err >&5
7116 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7117 cat conftest.out >&5
7118 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7119 lt_cv_nm_interface="MS dumpbin"
7120 fi
7121 rm -f conftest*
7122 fi
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7124 $as_echo "$lt_cv_nm_interface" >&6; }
7125
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7127 $as_echo_n "checking whether ln -s works... " >&6; }
7128 LN_S=$as_ln_s
7129 if test "$LN_S" = "ln -s"; then
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7131 $as_echo "yes" >&6; }
7132 else
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7134 $as_echo "no, using $LN_S" >&6; }
7135 fi
7136
7137 # find the maximum length of command line arguments
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7139 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7140 if ${lt_cv_sys_max_cmd_len+:} false; then :
7141 $as_echo_n "(cached) " >&6
7142 else
7143 i=0
7144 teststring="ABCD"
7145
7146 case $build_os in
7147 msdosdjgpp*)
7148 # On DJGPP, this test can blow up pretty badly due to problems in libc
7149 # (any single argument exceeding 2000 bytes causes a buffer overrun
7150 # during glob expansion). Even if it were fixed, the result of this
7151 # check would be larger than it should be.
7152 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7153 ;;
7154
7155 gnu*)
7156 # Under GNU Hurd, this test is not required because there is
7157 # no limit to the length of command line arguments.
7158 # Libtool will interpret -1 as no limit whatsoever
7159 lt_cv_sys_max_cmd_len=-1;
7160 ;;
7161
7162 cygwin* | mingw* | cegcc*)
7163 # On Win9x/ME, this test blows up -- it succeeds, but takes
7164 # about 5 minutes as the teststring grows exponentially.
7165 # Worse, since 9x/ME are not pre-emptively multitasking,
7166 # you end up with a "frozen" computer, even though with patience
7167 # the test eventually succeeds (with a max line length of 256k).
7168 # Instead, let's just punt: use the minimum linelength reported by
7169 # all of the supported platforms: 8192 (on NT/2K/XP).
7170 lt_cv_sys_max_cmd_len=8192;
7171 ;;
7172
7173 mint*)
7174 # On MiNT this can take a long time and run out of memory.
7175 lt_cv_sys_max_cmd_len=8192;
7176 ;;
7177
7178 amigaos*)
7179 # On AmigaOS with pdksh, this test takes hours, literally.
7180 # So we just punt and use a minimum line length of 8192.
7181 lt_cv_sys_max_cmd_len=8192;
7182 ;;
7183
7184 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7185 # This has been around since 386BSD, at least. Likely further.
7186 if test -x /sbin/sysctl; then
7187 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7188 elif test -x /usr/sbin/sysctl; then
7189 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7190 else
7191 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7192 fi
7193 # And add a safety zone
7194 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7195 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7196 ;;
7197
7198 interix*)
7199 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7200 lt_cv_sys_max_cmd_len=196608
7201 ;;
7202
7203 os2*)
7204 # The test takes a long time on OS/2.
7205 lt_cv_sys_max_cmd_len=8192
7206 ;;
7207
7208 osf*)
7209 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7210 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7211 # nice to cause kernel panics so lets avoid the loop below.
7212 # First set a reasonable default.
7213 lt_cv_sys_max_cmd_len=16384
7214 #
7215 if test -x /sbin/sysconfig; then
7216 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7217 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7218 esac
7219 fi
7220 ;;
7221 sco3.2v5*)
7222 lt_cv_sys_max_cmd_len=102400
7223 ;;
7224 sysv5* | sco5v6* | sysv4.2uw2*)
7225 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7226 if test -n "$kargmax"; then
7227 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7228 else
7229 lt_cv_sys_max_cmd_len=32768
7230 fi
7231 ;;
7232 *)
7233 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7234 if test -n "$lt_cv_sys_max_cmd_len"; then
7235 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7237 else
7238 # Make teststring a little bigger before we do anything with it.
7239 # a 1K string should be a reasonable start.
7240 for i in 1 2 3 4 5 6 7 8 ; do
7241 teststring=$teststring$teststring
7242 done
7243 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7244 # If test is not a shell built-in, we'll probably end up computing a
7245 # maximum length that is only half of the actual maximum length, but
7246 # we can't tell.
7247 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7248 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7249 test $i != 17 # 1/2 MB should be enough
7250 do
7251 i=`expr $i + 1`
7252 teststring=$teststring$teststring
7253 done
7254 # Only check the string length outside the loop.
7255 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7256 teststring=
7257 # Add a significant safety factor because C++ compilers can tack on
7258 # massive amounts of additional arguments before passing them to the
7259 # linker. It appears as though 1/2 is a usable value.
7260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7261 fi
7262 ;;
7263 esac
7264
7265 fi
7266
7267 if test -n $lt_cv_sys_max_cmd_len ; then
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7269 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7270 else
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7272 $as_echo "none" >&6; }
7273 fi
7274 max_cmd_len=$lt_cv_sys_max_cmd_len
7275
7276
7277
7278
7279
7280
7281 : ${CP="cp -f"}
7282 : ${MV="mv -f"}
7283 : ${RM="rm -f"}
7284
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7286 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7287 # Try some XSI features
7288 xsi_shell=no
7289 ( _lt_dummy="a/b/c"
7290 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7291 = c,a/b,b/c, \
7292 && eval 'test $(( 1 + 1 )) -eq 2 \
7293 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7294 && xsi_shell=yes
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7296 $as_echo "$xsi_shell" >&6; }
7297
7298
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7300 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7301 lt_shell_append=no
7302 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7303 >/dev/null 2>&1 \
7304 && lt_shell_append=yes
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7306 $as_echo "$lt_shell_append" >&6; }
7307
7308
7309 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7310 lt_unset=unset
7311 else
7312 lt_unset=false
7313 fi
7314
7315
7316
7317
7318
7319 # test EBCDIC or ASCII
7320 case `echo X|tr X '\101'` in
7321 A) # ASCII based system
7322 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7323 lt_SP2NL='tr \040 \012'
7324 lt_NL2SP='tr \015\012 \040\040'
7325 ;;
7326 *) # EBCDIC based system
7327 lt_SP2NL='tr \100 \n'
7328 lt_NL2SP='tr \r\n \100\100'
7329 ;;
7330 esac
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7341 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7342 if ${lt_cv_to_host_file_cmd+:} false; then :
7343 $as_echo_n "(cached) " >&6
7344 else
7345 case $host in
7346 *-*-mingw* )
7347 case $build in
7348 *-*-mingw* ) # actually msys
7349 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7350 ;;
7351 *-*-cygwin* )
7352 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7353 ;;
7354 * ) # otherwise, assume *nix
7355 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7356 ;;
7357 esac
7358 ;;
7359 *-*-cygwin* )
7360 case $build in
7361 *-*-mingw* ) # actually msys
7362 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7363 ;;
7364 *-*-cygwin* )
7365 lt_cv_to_host_file_cmd=func_convert_file_noop
7366 ;;
7367 * ) # otherwise, assume *nix
7368 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7369 ;;
7370 esac
7371 ;;
7372 * ) # unhandled hosts (and "normal" native builds)
7373 lt_cv_to_host_file_cmd=func_convert_file_noop
7374 ;;
7375 esac
7376
7377 fi
7378
7379 to_host_file_cmd=$lt_cv_to_host_file_cmd
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7381 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7382
7383
7384
7385
7386
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7388 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7389 if ${lt_cv_to_tool_file_cmd+:} false; then :
7390 $as_echo_n "(cached) " >&6
7391 else
7392 #assume ordinary cross tools, or native build.
7393 lt_cv_to_tool_file_cmd=func_convert_file_noop
7394 case $host in
7395 *-*-mingw* )
7396 case $build in
7397 *-*-mingw* ) # actually msys
7398 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7399 ;;
7400 esac
7401 ;;
7402 esac
7403
7404 fi
7405
7406 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7408 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7409
7410
7411
7412
7413
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7415 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7416 if ${lt_cv_ld_reload_flag+:} false; then :
7417 $as_echo_n "(cached) " >&6
7418 else
7419 lt_cv_ld_reload_flag='-r'
7420 fi
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7422 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7423 reload_flag=$lt_cv_ld_reload_flag
7424 case $reload_flag in
7425 "" | " "*) ;;
7426 *) reload_flag=" $reload_flag" ;;
7427 esac
7428 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7429 case $host_os in
7430 cygwin* | mingw* | pw32* | cegcc*)
7431 if test "$GCC" != yes; then
7432 reload_cmds=false
7433 fi
7434 ;;
7435 darwin*)
7436 if test "$GCC" = yes; then
7437 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7438 else
7439 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7440 fi
7441 ;;
7442 esac
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452 if test -n "$ac_tool_prefix"; then
7453 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7454 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456 $as_echo_n "checking for $ac_word... " >&6; }
7457 if ${ac_cv_prog_OBJDUMP+:} false; then :
7458 $as_echo_n "(cached) " >&6
7459 else
7460 if test -n "$OBJDUMP"; then
7461 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7462 else
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466 IFS=$as_save_IFS
7467 test -z "$as_dir" && as_dir=.
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7470 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 break 2
7473 fi
7474 done
7475 done
7476 IFS=$as_save_IFS
7477
7478 fi
7479 fi
7480 OBJDUMP=$ac_cv_prog_OBJDUMP
7481 if test -n "$OBJDUMP"; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7483 $as_echo "$OBJDUMP" >&6; }
7484 else
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7487 fi
7488
7489
7490 fi
7491 if test -z "$ac_cv_prog_OBJDUMP"; then
7492 ac_ct_OBJDUMP=$OBJDUMP
7493 # Extract the first word of "objdump", so it can be a program name with args.
7494 set dummy objdump; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7498 $as_echo_n "(cached) " >&6
7499 else
7500 if test -n "$ac_ct_OBJDUMP"; then
7501 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 break 2
7513 fi
7514 done
7515 done
7516 IFS=$as_save_IFS
7517
7518 fi
7519 fi
7520 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7521 if test -n "$ac_ct_OBJDUMP"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7523 $as_echo "$ac_ct_OBJDUMP" >&6; }
7524 else
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7528
7529 if test "x$ac_ct_OBJDUMP" = x; then
7530 OBJDUMP="false"
7531 else
7532 case $cross_compiling:$ac_tool_warned in
7533 yes:)
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7536 ac_tool_warned=yes ;;
7537 esac
7538 OBJDUMP=$ac_ct_OBJDUMP
7539 fi
7540 else
7541 OBJDUMP="$ac_cv_prog_OBJDUMP"
7542 fi
7543
7544 test -z "$OBJDUMP" && OBJDUMP=objdump
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7555 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7556 if ${lt_cv_deplibs_check_method+:} false; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 lt_cv_file_magic_cmd='$MAGIC_CMD'
7560 lt_cv_file_magic_test_file=
7561 lt_cv_deplibs_check_method='unknown'
7562 # Need to set the preceding variable on all platforms that support
7563 # interlibrary dependencies.
7564 # 'none' -- dependencies not supported.
7565 # `unknown' -- same as none, but documents that we really don't know.
7566 # 'pass_all' -- all dependencies passed with no checks.
7567 # 'test_compile' -- check by making test program.
7568 # 'file_magic [[regex]]' -- check by looking for files in library path
7569 # which responds to the $file_magic_cmd with a given extended regex.
7570 # If you have `file' or equivalent on your system and you're not sure
7571 # whether `pass_all' will *always* work, you probably want this one.
7572
7573 case $host_os in
7574 aix[4-9]*)
7575 lt_cv_deplibs_check_method=pass_all
7576 ;;
7577
7578 beos*)
7579 lt_cv_deplibs_check_method=pass_all
7580 ;;
7581
7582 bsdi[45]*)
7583 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7584 lt_cv_file_magic_cmd='/usr/bin/file -L'
7585 lt_cv_file_magic_test_file=/shlib/libc.so
7586 ;;
7587
7588 cygwin*)
7589 # func_win32_libid is a shell function defined in ltmain.sh
7590 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7591 lt_cv_file_magic_cmd='func_win32_libid'
7592 ;;
7593
7594 mingw* | pw32*)
7595 # Base MSYS/MinGW do not provide the 'file' command needed by
7596 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7597 # unless we find 'file', for example because we are cross-compiling.
7598 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7599 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7600 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7601 lt_cv_file_magic_cmd='func_win32_libid'
7602 else
7603 # Keep this pattern in sync with the one in func_win32_libid.
7604 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7605 lt_cv_file_magic_cmd='$OBJDUMP -f'
7606 fi
7607 ;;
7608
7609 cegcc*)
7610 # use the weaker test based on 'objdump'. See mingw*.
7611 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7612 lt_cv_file_magic_cmd='$OBJDUMP -f'
7613 ;;
7614
7615 darwin* | rhapsody*)
7616 lt_cv_deplibs_check_method=pass_all
7617 ;;
7618
7619 freebsd* | dragonfly*)
7620 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7621 case $host_cpu in
7622 i*86 )
7623 # Not sure whether the presence of OpenBSD here was a mistake.
7624 # Let's accept both of them until this is cleared up.
7625 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7626 lt_cv_file_magic_cmd=/usr/bin/file
7627 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7628 ;;
7629 esac
7630 else
7631 lt_cv_deplibs_check_method=pass_all
7632 fi
7633 ;;
7634
7635 gnu*)
7636 lt_cv_deplibs_check_method=pass_all
7637 ;;
7638
7639 haiku*)
7640 lt_cv_deplibs_check_method=pass_all
7641 ;;
7642
7643 hpux10.20* | hpux11*)
7644 lt_cv_file_magic_cmd=/usr/bin/file
7645 case $host_cpu in
7646 ia64*)
7647 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7648 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7649 ;;
7650 hppa*64*)
7651 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]'
7652 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7653 ;;
7654 *)
7655 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7656 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7657 ;;
7658 esac
7659 ;;
7660
7661 interix[3-9]*)
7662 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7664 ;;
7665
7666 irix5* | irix6* | nonstopux*)
7667 case $LD in
7668 *-32|*"-32 ") libmagic=32-bit;;
7669 *-n32|*"-n32 ") libmagic=N32;;
7670 *-64|*"-64 ") libmagic=64-bit;;
7671 *) libmagic=never-match;;
7672 esac
7673 lt_cv_deplibs_check_method=pass_all
7674 ;;
7675
7676 # This must be glibc/ELF.
7677 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7678 lt_cv_deplibs_check_method=pass_all
7679 ;;
7680
7681 netbsd*)
7682 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7684 else
7685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7686 fi
7687 ;;
7688
7689 newos6*)
7690 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7691 lt_cv_file_magic_cmd=/usr/bin/file
7692 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7693 ;;
7694
7695 *nto* | *qnx*)
7696 lt_cv_deplibs_check_method=pass_all
7697 ;;
7698
7699 openbsd*)
7700 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7702 else
7703 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7704 fi
7705 ;;
7706
7707 osf3* | osf4* | osf5*)
7708 lt_cv_deplibs_check_method=pass_all
7709 ;;
7710
7711 rdos*)
7712 lt_cv_deplibs_check_method=pass_all
7713 ;;
7714
7715 solaris*)
7716 lt_cv_deplibs_check_method=pass_all
7717 ;;
7718
7719 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7720 lt_cv_deplibs_check_method=pass_all
7721 ;;
7722
7723 sysv4 | sysv4.3*)
7724 case $host_vendor in
7725 motorola)
7726 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]'
7727 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7728 ;;
7729 ncr)
7730 lt_cv_deplibs_check_method=pass_all
7731 ;;
7732 sequent)
7733 lt_cv_file_magic_cmd='/bin/file'
7734 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7735 ;;
7736 sni)
7737 lt_cv_file_magic_cmd='/bin/file'
7738 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7739 lt_cv_file_magic_test_file=/lib/libc.so
7740 ;;
7741 siemens)
7742 lt_cv_deplibs_check_method=pass_all
7743 ;;
7744 pc)
7745 lt_cv_deplibs_check_method=pass_all
7746 ;;
7747 esac
7748 ;;
7749
7750 tpf*)
7751 lt_cv_deplibs_check_method=pass_all
7752 ;;
7753 esac
7754
7755 fi
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7757 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7758
7759 file_magic_glob=
7760 want_nocaseglob=no
7761 if test "$build" = "$host"; then
7762 case $host_os in
7763 mingw* | pw32*)
7764 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7765 want_nocaseglob=yes
7766 else
7767 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7768 fi
7769 ;;
7770 esac
7771 fi
7772
7773 file_magic_cmd=$lt_cv_file_magic_cmd
7774 deplibs_check_method=$lt_cv_deplibs_check_method
7775 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798 if test -n "$ac_tool_prefix"; then
7799 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7800 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802 $as_echo_n "checking for $ac_word... " >&6; }
7803 if ${ac_cv_prog_DLLTOOL+:} false; then :
7804 $as_echo_n "(cached) " >&6
7805 else
7806 if test -n "$DLLTOOL"; then
7807 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7808 else
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH
7811 do
7812 IFS=$as_save_IFS
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7816 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 break 2
7819 fi
7820 done
7821 done
7822 IFS=$as_save_IFS
7823
7824 fi
7825 fi
7826 DLLTOOL=$ac_cv_prog_DLLTOOL
7827 if test -n "$DLLTOOL"; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7829 $as_echo "$DLLTOOL" >&6; }
7830 else
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7833 fi
7834
7835
7836 fi
7837 if test -z "$ac_cv_prog_DLLTOOL"; then
7838 ac_ct_DLLTOOL=$DLLTOOL
7839 # Extract the first word of "dlltool", so it can be a program name with args.
7840 set dummy dlltool; ac_word=$2
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842 $as_echo_n "checking for $ac_word... " >&6; }
7843 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7844 $as_echo_n "(cached) " >&6
7845 else
7846 if test -n "$ac_ct_DLLTOOL"; then
7847 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7848 else
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 for as_dir in $PATH
7851 do
7852 IFS=$as_save_IFS
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7856 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 break 2
7859 fi
7860 done
7861 done
7862 IFS=$as_save_IFS
7863
7864 fi
7865 fi
7866 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7867 if test -n "$ac_ct_DLLTOOL"; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7869 $as_echo "$ac_ct_DLLTOOL" >&6; }
7870 else
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7873 fi
7874
7875 if test "x$ac_ct_DLLTOOL" = x; then
7876 DLLTOOL="false"
7877 else
7878 case $cross_compiling:$ac_tool_warned in
7879 yes:)
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7882 ac_tool_warned=yes ;;
7883 esac
7884 DLLTOOL=$ac_ct_DLLTOOL
7885 fi
7886 else
7887 DLLTOOL="$ac_cv_prog_DLLTOOL"
7888 fi
7889
7890 test -z "$DLLTOOL" && DLLTOOL=dlltool
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7902 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7903 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 lt_cv_sharedlib_from_linklib_cmd='unknown'
7907
7908 case $host_os in
7909 cygwin* | mingw* | pw32* | cegcc*)
7910 # two different shell functions defined in ltmain.sh
7911 # decide which to use based on capabilities of $DLLTOOL
7912 case `$DLLTOOL --help 2>&1` in
7913 *--identify-strict*)
7914 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7915 ;;
7916 *)
7917 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7918 ;;
7919 esac
7920 ;;
7921 *)
7922 # fallback: assume linklib IS sharedlib
7923 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7924 ;;
7925 esac
7926
7927 fi
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7929 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7930 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7931 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7932
7933
7934
7935
7936
7937
7938
7939 if test -n "$ac_tool_prefix"; then
7940 for ac_prog in ar
7941 do
7942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if ${ac_cv_prog_AR+:} false; then :
7947 $as_echo_n "(cached) " >&6
7948 else
7949 if test -n "$AR"; then
7950 ac_cv_prog_AR="$AR" # Let the user override the test.
7951 else
7952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 for as_dir in $PATH
7954 do
7955 IFS=$as_save_IFS
7956 test -z "$as_dir" && as_dir=.
7957 for ac_exec_ext in '' $ac_executable_extensions; do
7958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7959 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 break 2
7962 fi
7963 done
7964 done
7965 IFS=$as_save_IFS
7966
7967 fi
7968 fi
7969 AR=$ac_cv_prog_AR
7970 if test -n "$AR"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7972 $as_echo "$AR" >&6; }
7973 else
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7976 fi
7977
7978
7979 test -n "$AR" && break
7980 done
7981 fi
7982 if test -z "$AR"; then
7983 ac_ct_AR=$AR
7984 for ac_prog in ar
7985 do
7986 # Extract the first word of "$ac_prog", so it can be a program name with args.
7987 set dummy $ac_prog; ac_word=$2
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989 $as_echo_n "checking for $ac_word... " >&6; }
7990 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993 if test -n "$ac_ct_AR"; then
7994 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7995 else
7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 for as_dir in $PATH
7998 do
7999 IFS=$as_save_IFS
8000 test -z "$as_dir" && as_dir=.
8001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8003 ac_cv_prog_ac_ct_AR="$ac_prog"
8004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 break 2
8006 fi
8007 done
8008 done
8009 IFS=$as_save_IFS
8010
8011 fi
8012 fi
8013 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8014 if test -n "$ac_ct_AR"; then
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8016 $as_echo "$ac_ct_AR" >&6; }
8017 else
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019 $as_echo "no" >&6; }
8020 fi
8021
8022
8023 test -n "$ac_ct_AR" && break
8024 done
8025
8026 if test "x$ac_ct_AR" = x; then
8027 AR="false"
8028 else
8029 case $cross_compiling:$ac_tool_warned in
8030 yes:)
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8033 ac_tool_warned=yes ;;
8034 esac
8035 AR=$ac_ct_AR
8036 fi
8037 fi
8038
8039 : ${AR=ar}
8040 : ${AR_FLAGS=cru}
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8053 $as_echo_n "checking for archiver @FILE support... " >&6; }
8054 if ${lt_cv_ar_at_file+:} false; then :
8055 $as_echo_n "(cached) " >&6
8056 else
8057 lt_cv_ar_at_file=no
8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8060
8061 int
8062 main ()
8063 {
8064
8065 ;
8066 return 0;
8067 }
8068 _ACEOF
8069 if ac_fn_c_try_compile "$LINENO"; then :
8070 echo conftest.$ac_objext > conftest.lst
8071 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8073 (eval $lt_ar_try) 2>&5
8074 ac_status=$?
8075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8076 test $ac_status = 0; }
8077 if test "$ac_status" -eq 0; then
8078 # Ensure the archiver fails upon bogus file names.
8079 rm -f conftest.$ac_objext libconftest.a
8080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8081 (eval $lt_ar_try) 2>&5
8082 ac_status=$?
8083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8084 test $ac_status = 0; }
8085 if test "$ac_status" -ne 0; then
8086 lt_cv_ar_at_file=@
8087 fi
8088 fi
8089 rm -f conftest.* libconftest.a
8090
8091 fi
8092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8093
8094 fi
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8096 $as_echo "$lt_cv_ar_at_file" >&6; }
8097
8098 if test "x$lt_cv_ar_at_file" = xno; then
8099 archiver_list_spec=
8100 else
8101 archiver_list_spec=$lt_cv_ar_at_file
8102 fi
8103
8104
8105
8106
8107
8108
8109
8110 if test -n "$ac_tool_prefix"; then
8111 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8112 set dummy ${ac_tool_prefix}strip; ac_word=$2
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 $as_echo_n "checking for $ac_word... " >&6; }
8115 if ${ac_cv_prog_STRIP+:} false; then :
8116 $as_echo_n "(cached) " >&6
8117 else
8118 if test -n "$STRIP"; then
8119 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8123 do
8124 IFS=$as_save_IFS
8125 test -z "$as_dir" && as_dir=.
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8128 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130 break 2
8131 fi
8132 done
8133 done
8134 IFS=$as_save_IFS
8135
8136 fi
8137 fi
8138 STRIP=$ac_cv_prog_STRIP
8139 if test -n "$STRIP"; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8141 $as_echo "$STRIP" >&6; }
8142 else
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8145 fi
8146
8147
8148 fi
8149 if test -z "$ac_cv_prog_STRIP"; then
8150 ac_ct_STRIP=$STRIP
8151 # Extract the first word of "strip", so it can be a program name with args.
8152 set dummy strip; ac_word=$2
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 $as_echo_n "checking for $ac_word... " >&6; }
8155 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8156 $as_echo_n "(cached) " >&6
8157 else
8158 if test -n "$ac_ct_STRIP"; then
8159 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8160 else
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 for as_dir in $PATH
8163 do
8164 IFS=$as_save_IFS
8165 test -z "$as_dir" && as_dir=.
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8168 ac_cv_prog_ac_ct_STRIP="strip"
8169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170 break 2
8171 fi
8172 done
8173 done
8174 IFS=$as_save_IFS
8175
8176 fi
8177 fi
8178 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8179 if test -n "$ac_ct_STRIP"; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8181 $as_echo "$ac_ct_STRIP" >&6; }
8182 else
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8185 fi
8186
8187 if test "x$ac_ct_STRIP" = x; then
8188 STRIP=":"
8189 else
8190 case $cross_compiling:$ac_tool_warned in
8191 yes:)
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8194 ac_tool_warned=yes ;;
8195 esac
8196 STRIP=$ac_ct_STRIP
8197 fi
8198 else
8199 STRIP="$ac_cv_prog_STRIP"
8200 fi
8201
8202 test -z "$STRIP" && STRIP=:
8203
8204
8205
8206
8207
8208
8209 if test -n "$ac_tool_prefix"; then
8210 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8211 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 $as_echo_n "checking for $ac_word... " >&6; }
8214 if ${ac_cv_prog_RANLIB+:} false; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 if test -n "$RANLIB"; then
8218 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8219 else
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH
8222 do
8223 IFS=$as_save_IFS
8224 test -z "$as_dir" && as_dir=.
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8227 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 break 2
8230 fi
8231 done
8232 done
8233 IFS=$as_save_IFS
8234
8235 fi
8236 fi
8237 RANLIB=$ac_cv_prog_RANLIB
8238 if test -n "$RANLIB"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8240 $as_echo "$RANLIB" >&6; }
8241 else
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }
8244 fi
8245
8246
8247 fi
8248 if test -z "$ac_cv_prog_RANLIB"; then
8249 ac_ct_RANLIB=$RANLIB
8250 # Extract the first word of "ranlib", so it can be a program name with args.
8251 set dummy ranlib; ac_word=$2
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253 $as_echo_n "checking for $ac_word... " >&6; }
8254 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8257 if test -n "$ac_ct_RANLIB"; then
8258 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8259 else
8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 for as_dir in $PATH
8262 do
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8267 ac_cv_prog_ac_ct_RANLIB="ranlib"
8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 break 2
8270 fi
8271 done
8272 done
8273 IFS=$as_save_IFS
8274
8275 fi
8276 fi
8277 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8278 if test -n "$ac_ct_RANLIB"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8280 $as_echo "$ac_ct_RANLIB" >&6; }
8281 else
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 $as_echo "no" >&6; }
8284 fi
8285
8286 if test "x$ac_ct_RANLIB" = x; then
8287 RANLIB=":"
8288 else
8289 case $cross_compiling:$ac_tool_warned in
8290 yes:)
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8293 ac_tool_warned=yes ;;
8294 esac
8295 RANLIB=$ac_ct_RANLIB
8296 fi
8297 else
8298 RANLIB="$ac_cv_prog_RANLIB"
8299 fi
8300
8301 test -z "$RANLIB" && RANLIB=:
8302
8303
8304
8305
8306
8307
8308 # Determine commands to create old-style static archives.
8309 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8310 old_postinstall_cmds='chmod 644 $oldlib'
8311 old_postuninstall_cmds=
8312
8313 if test -n "$RANLIB"; then
8314 case $host_os in
8315 openbsd*)
8316 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8317 ;;
8318 *)
8319 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8320 ;;
8321 esac
8322 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8323 fi
8324
8325 case $host_os in
8326 darwin*)
8327 lock_old_archive_extraction=yes ;;
8328 *)
8329 lock_old_archive_extraction=no ;;
8330 esac
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352 for ac_prog in gawk mawk nawk awk
8353 do
8354 # Extract the first word of "$ac_prog", so it can be a program name with args.
8355 set dummy $ac_prog; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if ${ac_cv_prog_AWK+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 if test -n "$AWK"; then
8362 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8366 do
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8371 ac_cv_prog_AWK="$ac_prog"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8374 fi
8375 done
8376 done
8377 IFS=$as_save_IFS
8378
8379 fi
8380 fi
8381 AWK=$ac_cv_prog_AWK
8382 if test -n "$AWK"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8384 $as_echo "$AWK" >&6; }
8385 else
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8388 fi
8389
8390
8391 test -n "$AWK" && break
8392 done
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412 # If no C compiler was specified, use CC.
8413 LTCC=${LTCC-"$CC"}
8414
8415 # If no C compiler flags were specified, use CFLAGS.
8416 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8417
8418 # Allow CC to be a program name with arguments.
8419 compiler=$CC
8420
8421
8422 # Check for command to grab the raw symbol name followed by C symbol from nm.
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8424 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8425 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428
8429 # These are sane defaults that work on at least a few old systems.
8430 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8431
8432 # Character class describing NM global symbol codes.
8433 symcode='[BCDEGRST]'
8434
8435 # Regexp to match symbols that can be accessed directly from C.
8436 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8437
8438 # Define system-specific variables.
8439 case $host_os in
8440 aix*)
8441 symcode='[BCDT]'
8442 ;;
8443 cygwin* | mingw* | pw32* | cegcc*)
8444 symcode='[ABCDGISTW]'
8445 ;;
8446 hpux*)
8447 if test "$host_cpu" = ia64; then
8448 symcode='[ABCDEGRST]'
8449 fi
8450 ;;
8451 irix* | nonstopux*)
8452 symcode='[BCDEGRST]'
8453 ;;
8454 osf*)
8455 symcode='[BCDEGQRST]'
8456 ;;
8457 solaris*)
8458 symcode='[BDRT]'
8459 ;;
8460 sco3.2v5*)
8461 symcode='[DT]'
8462 ;;
8463 sysv4.2uw2*)
8464 symcode='[DT]'
8465 ;;
8466 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8467 symcode='[ABDT]'
8468 ;;
8469 sysv4)
8470 symcode='[DFNSTU]'
8471 ;;
8472 esac
8473
8474 # If we're using GNU nm, then use its standard symbol codes.
8475 case `$NM -V 2>&1` in
8476 *GNU* | *'with BFD'*)
8477 symcode='[ABCDGIRSTW]' ;;
8478 esac
8479
8480 # Transform an extracted symbol line into a proper C declaration.
8481 # Some systems (esp. on ia64) link data and code symbols differently,
8482 # so use this general approach.
8483 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8484
8485 # Transform an extracted symbol line into symbol name and symbol address
8486 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8487 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'"
8488
8489 # Handle CRLF in mingw tool chain
8490 opt_cr=
8491 case $build_os in
8492 mingw*)
8493 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8494 ;;
8495 esac
8496
8497 # Try without a prefix underscore, then with it.
8498 for ac_symprfx in "" "_"; do
8499
8500 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8501 symxfrm="\\1 $ac_symprfx\\2 \\2"
8502
8503 # Write the raw and C identifiers.
8504 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8505 # Fake it for dumpbin and say T for any non-static function
8506 # and D for any global variable.
8507 # Also find C++ and __fastcall symbols from MSVC++,
8508 # which start with @ or ?.
8509 lt_cv_sys_global_symbol_pipe="$AWK '"\
8510 " {last_section=section; section=\$ 3};"\
8511 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8512 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8513 " \$ 0!~/External *\|/{next};"\
8514 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8515 " {if(hide[section]) next};"\
8516 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8517 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8518 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8519 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8520 " ' prfx=^$ac_symprfx"
8521 else
8522 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8523 fi
8524 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8525
8526 # Check to see that the pipe works correctly.
8527 pipe_works=no
8528
8529 rm -f conftest*
8530 cat > conftest.$ac_ext <<_LT_EOF
8531 #ifdef __cplusplus
8532 extern "C" {
8533 #endif
8534 char nm_test_var;
8535 void nm_test_func(void);
8536 void nm_test_func(void){}
8537 #ifdef __cplusplus
8538 }
8539 #endif
8540 int main(){nm_test_var='a';nm_test_func();return(0);}
8541 _LT_EOF
8542
8543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8544 (eval $ac_compile) 2>&5
8545 ac_status=$?
8546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8547 test $ac_status = 0; }; then
8548 # Now try to grab the symbols.
8549 nlist=conftest.nm
8550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8551 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8552 ac_status=$?
8553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8554 test $ac_status = 0; } && test -s "$nlist"; then
8555 # Try sorting and uniquifying the output.
8556 if sort "$nlist" | uniq > "$nlist"T; then
8557 mv -f "$nlist"T "$nlist"
8558 else
8559 rm -f "$nlist"T
8560 fi
8561
8562 # Make sure that we snagged all the symbols we need.
8563 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8564 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8565 cat <<_LT_EOF > conftest.$ac_ext
8566 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8567 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8568 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8569 relocations are performed -- see ld's documentation on pseudo-relocs. */
8570 # define LT_DLSYM_CONST
8571 #elif defined(__osf__)
8572 /* This system does not cope well with relocations in const data. */
8573 # define LT_DLSYM_CONST
8574 #else
8575 # define LT_DLSYM_CONST const
8576 #endif
8577
8578 #ifdef __cplusplus
8579 extern "C" {
8580 #endif
8581
8582 _LT_EOF
8583 # Now generate the symbol file.
8584 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8585
8586 cat <<_LT_EOF >> conftest.$ac_ext
8587
8588 /* The mapping between symbol names and symbols. */
8589 LT_DLSYM_CONST struct {
8590 const char *name;
8591 void *address;
8592 }
8593 lt__PROGRAM__LTX_preloaded_symbols[] =
8594 {
8595 { "@PROGRAM@", (void *) 0 },
8596 _LT_EOF
8597 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8598 cat <<\_LT_EOF >> conftest.$ac_ext
8599 {0, (void *) 0}
8600 };
8601
8602 /* This works around a problem in FreeBSD linker */
8603 #ifdef FREEBSD_WORKAROUND
8604 static const void *lt_preloaded_setup() {
8605 return lt__PROGRAM__LTX_preloaded_symbols;
8606 }
8607 #endif
8608
8609 #ifdef __cplusplus
8610 }
8611 #endif
8612 _LT_EOF
8613 # Now try linking the two files.
8614 mv conftest.$ac_objext conftstm.$ac_objext
8615 lt_globsym_save_LIBS=$LIBS
8616 lt_globsym_save_CFLAGS=$CFLAGS
8617 LIBS="conftstm.$ac_objext"
8618 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8620 (eval $ac_link) 2>&5
8621 ac_status=$?
8622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8623 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8624 pipe_works=yes
8625 fi
8626 LIBS=$lt_globsym_save_LIBS
8627 CFLAGS=$lt_globsym_save_CFLAGS
8628 else
8629 echo "cannot find nm_test_func in $nlist" >&5
8630 fi
8631 else
8632 echo "cannot find nm_test_var in $nlist" >&5
8633 fi
8634 else
8635 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8636 fi
8637 else
8638 echo "$progname: failed program was:" >&5
8639 cat conftest.$ac_ext >&5
8640 fi
8641 rm -rf conftest* conftst*
8642
8643 # Do not use the global_symbol_pipe unless it works.
8644 if test "$pipe_works" = yes; then
8645 break
8646 else
8647 lt_cv_sys_global_symbol_pipe=
8648 fi
8649 done
8650
8651 fi
8652
8653 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8654 lt_cv_sys_global_symbol_to_cdecl=
8655 fi
8656 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8658 $as_echo "failed" >&6; }
8659 else
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8661 $as_echo "ok" >&6; }
8662 fi
8663
8664 # Response file support.
8665 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8666 nm_file_list_spec='@'
8667 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8668 nm_file_list_spec='@'
8669 fi
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8698 $as_echo_n "checking for sysroot... " >&6; }
8699
8700 # Check whether --with-sysroot was given.
8701 if test "${with_sysroot+set}" = set; then :
8702 withval=$with_sysroot;
8703 else
8704 with_sysroot=no
8705 fi
8706
8707
8708 lt_sysroot=
8709 case ${with_sysroot} in #(
8710 yes)
8711 if test "$GCC" = yes; then
8712 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8713 fi
8714 ;; #(
8715 /*)
8716 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8717 ;; #(
8718 no|'')
8719 ;; #(
8720 *)
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8722 $as_echo "${with_sysroot}" >&6; }
8723 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8724 ;;
8725 esac
8726
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8728 $as_echo "${lt_sysroot:-no}" >&6; }
8729
8730
8731
8732
8733
8734 # Check whether --enable-libtool-lock was given.
8735 if test "${enable_libtool_lock+set}" = set; then :
8736 enableval=$enable_libtool_lock;
8737 fi
8738
8739 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8740
8741 # Some flags need to be propagated to the compiler or linker for good
8742 # libtool support.
8743 case $host in
8744 ia64-*-hpux*)
8745 # Find out which ABI we are using.
8746 echo 'int i;' > conftest.$ac_ext
8747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8748 (eval $ac_compile) 2>&5
8749 ac_status=$?
8750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8751 test $ac_status = 0; }; then
8752 case `/usr/bin/file conftest.$ac_objext` in
8753 *ELF-32*)
8754 HPUX_IA64_MODE="32"
8755 ;;
8756 *ELF-64*)
8757 HPUX_IA64_MODE="64"
8758 ;;
8759 esac
8760 fi
8761 rm -rf conftest*
8762 ;;
8763 *-*-irix6*)
8764 # Find out which ABI we are using.
8765 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8767 (eval $ac_compile) 2>&5
8768 ac_status=$?
8769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8770 test $ac_status = 0; }; then
8771 if test "$lt_cv_prog_gnu_ld" = yes; then
8772 case `/usr/bin/file conftest.$ac_objext` in
8773 *32-bit*)
8774 LD="${LD-ld} -melf32bsmip"
8775 ;;
8776 *N32*)
8777 LD="${LD-ld} -melf32bmipn32"
8778 ;;
8779 *64-bit*)
8780 LD="${LD-ld} -melf64bmip"
8781 ;;
8782 esac
8783 else
8784 case `/usr/bin/file conftest.$ac_objext` in
8785 *32-bit*)
8786 LD="${LD-ld} -32"
8787 ;;
8788 *N32*)
8789 LD="${LD-ld} -n32"
8790 ;;
8791 *64-bit*)
8792 LD="${LD-ld} -64"
8793 ;;
8794 esac
8795 fi
8796 fi
8797 rm -rf conftest*
8798 ;;
8799
8800 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8801 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8802 # Find out which ABI we are using.
8803 echo 'int i;' > conftest.$ac_ext
8804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8805 (eval $ac_compile) 2>&5
8806 ac_status=$?
8807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8808 test $ac_status = 0; }; then
8809 case `/usr/bin/file conftest.o` in
8810 *32-bit*)
8811 case $host in
8812 x86_64-*kfreebsd*-gnu)
8813 LD="${LD-ld} -m elf_i386_fbsd"
8814 ;;
8815 x86_64-*linux*)
8816 LD="${LD-ld} -m elf_i386"
8817 ;;
8818 powerpc64le-*linux*)
8819 LD="${LD-ld} -m elf32lppclinux"
8820 ;;
8821 powerpc64-*linux*)
8822 LD="${LD-ld} -m elf32ppclinux"
8823 ;;
8824 s390x-*linux*)
8825 LD="${LD-ld} -m elf_s390"
8826 ;;
8827 sparc64-*linux*)
8828 LD="${LD-ld} -m elf32_sparc"
8829 ;;
8830 esac
8831 ;;
8832 *64-bit*)
8833 case $host in
8834 x86_64-*kfreebsd*-gnu)
8835 LD="${LD-ld} -m elf_x86_64_fbsd"
8836 ;;
8837 x86_64-*linux*)
8838 LD="${LD-ld} -m elf_x86_64"
8839 ;;
8840 powerpcle-*linux*)
8841 LD="${LD-ld} -m elf64lppc"
8842 ;;
8843 powerpc-*linux*)
8844 LD="${LD-ld} -m elf64ppc"
8845 ;;
8846 s390*-*linux*|s390*-*tpf*)
8847 LD="${LD-ld} -m elf64_s390"
8848 ;;
8849 sparc*-*linux*)
8850 LD="${LD-ld} -m elf64_sparc"
8851 ;;
8852 esac
8853 ;;
8854 esac
8855 fi
8856 rm -rf conftest*
8857 ;;
8858
8859 *-*-sco3.2v5*)
8860 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8861 SAVE_CFLAGS="$CFLAGS"
8862 CFLAGS="$CFLAGS -belf"
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8864 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8865 if ${lt_cv_cc_needs_belf+:} false; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 ac_ext=c
8869 ac_cpp='$CPP $CPPFLAGS'
8870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8873
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8876
8877 int
8878 main ()
8879 {
8880
8881 ;
8882 return 0;
8883 }
8884 _ACEOF
8885 if ac_fn_c_try_link "$LINENO"; then :
8886 lt_cv_cc_needs_belf=yes
8887 else
8888 lt_cv_cc_needs_belf=no
8889 fi
8890 rm -f core conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
8892 ac_ext=c
8893 ac_cpp='$CPP $CPPFLAGS'
8894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8897
8898 fi
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8900 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8901 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8902 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8903 CFLAGS="$SAVE_CFLAGS"
8904 fi
8905 ;;
8906 *-*solaris*)
8907 # Find out which ABI we are using.
8908 echo 'int i;' > conftest.$ac_ext
8909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8910 (eval $ac_compile) 2>&5
8911 ac_status=$?
8912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8913 test $ac_status = 0; }; then
8914 case `/usr/bin/file conftest.o` in
8915 *64-bit*)
8916 case $lt_cv_prog_gnu_ld in
8917 yes*)
8918 case $host in
8919 i?86-*-solaris*)
8920 LD="${LD-ld} -m elf_x86_64"
8921 ;;
8922 sparc*-*-solaris*)
8923 LD="${LD-ld} -m elf64_sparc"
8924 ;;
8925 esac
8926 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8927 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8928 LD="${LD-ld}_sol2"
8929 fi
8930 ;;
8931 *)
8932 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8933 LD="${LD-ld} -64"
8934 fi
8935 ;;
8936 esac
8937 ;;
8938 esac
8939 fi
8940 rm -rf conftest*
8941 ;;
8942 esac
8943
8944 need_locks="$enable_libtool_lock"
8945
8946 if test -n "$ac_tool_prefix"; then
8947 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8948 set dummy ${ac_tool_prefix}mt; ac_word=$2
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8950 $as_echo_n "checking for $ac_word... " >&6; }
8951 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8952 $as_echo_n "(cached) " >&6
8953 else
8954 if test -n "$MANIFEST_TOOL"; then
8955 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8956 else
8957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958 for as_dir in $PATH
8959 do
8960 IFS=$as_save_IFS
8961 test -z "$as_dir" && as_dir=.
8962 for ac_exec_ext in '' $ac_executable_extensions; do
8963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8964 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8966 break 2
8967 fi
8968 done
8969 done
8970 IFS=$as_save_IFS
8971
8972 fi
8973 fi
8974 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8975 if test -n "$MANIFEST_TOOL"; then
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8977 $as_echo "$MANIFEST_TOOL" >&6; }
8978 else
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980 $as_echo "no" >&6; }
8981 fi
8982
8983
8984 fi
8985 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8986 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8987 # Extract the first word of "mt", so it can be a program name with args.
8988 set dummy mt; ac_word=$2
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990 $as_echo_n "checking for $ac_word... " >&6; }
8991 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8992 $as_echo_n "(cached) " >&6
8993 else
8994 if test -n "$ac_ct_MANIFEST_TOOL"; then
8995 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8996 else
8997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998 for as_dir in $PATH
8999 do
9000 IFS=$as_save_IFS
9001 test -z "$as_dir" && as_dir=.
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9004 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9006 break 2
9007 fi
9008 done
9009 done
9010 IFS=$as_save_IFS
9011
9012 fi
9013 fi
9014 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9015 if test -n "$ac_ct_MANIFEST_TOOL"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9017 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9018 else
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 $as_echo "no" >&6; }
9021 fi
9022
9023 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9024 MANIFEST_TOOL=":"
9025 else
9026 case $cross_compiling:$ac_tool_warned in
9027 yes:)
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9030 ac_tool_warned=yes ;;
9031 esac
9032 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9033 fi
9034 else
9035 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9036 fi
9037
9038 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9040 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9041 if ${lt_cv_path_mainfest_tool+:} false; then :
9042 $as_echo_n "(cached) " >&6
9043 else
9044 lt_cv_path_mainfest_tool=no
9045 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9046 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9047 cat conftest.err >&5
9048 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9049 lt_cv_path_mainfest_tool=yes
9050 fi
9051 rm -f conftest*
9052 fi
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9054 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9055 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9056 MANIFEST_TOOL=:
9057 fi
9058
9059
9060
9061
9062
9063
9064 case $host_os in
9065 rhapsody* | darwin*)
9066 if test -n "$ac_tool_prefix"; then
9067 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9068 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 if test -n "$DSYMUTIL"; then
9075 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9076 else
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078 for as_dir in $PATH
9079 do
9080 IFS=$as_save_IFS
9081 test -z "$as_dir" && as_dir=.
9082 for ac_exec_ext in '' $ac_executable_extensions; do
9083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9084 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9086 break 2
9087 fi
9088 done
9089 done
9090 IFS=$as_save_IFS
9091
9092 fi
9093 fi
9094 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9095 if test -n "$DSYMUTIL"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9097 $as_echo "$DSYMUTIL" >&6; }
9098 else
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9101 fi
9102
9103
9104 fi
9105 if test -z "$ac_cv_prog_DSYMUTIL"; then
9106 ac_ct_DSYMUTIL=$DSYMUTIL
9107 # Extract the first word of "dsymutil", so it can be a program name with args.
9108 set dummy dsymutil; ac_word=$2
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110 $as_echo_n "checking for $ac_word... " >&6; }
9111 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 if test -n "$ac_ct_DSYMUTIL"; then
9115 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9116 else
9117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9118 for as_dir in $PATH
9119 do
9120 IFS=$as_save_IFS
9121 test -z "$as_dir" && as_dir=.
9122 for ac_exec_ext in '' $ac_executable_extensions; do
9123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9124 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9126 break 2
9127 fi
9128 done
9129 done
9130 IFS=$as_save_IFS
9131
9132 fi
9133 fi
9134 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9135 if test -n "$ac_ct_DSYMUTIL"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9137 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9138 else
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9141 fi
9142
9143 if test "x$ac_ct_DSYMUTIL" = x; then
9144 DSYMUTIL=":"
9145 else
9146 case $cross_compiling:$ac_tool_warned in
9147 yes:)
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9150 ac_tool_warned=yes ;;
9151 esac
9152 DSYMUTIL=$ac_ct_DSYMUTIL
9153 fi
9154 else
9155 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9156 fi
9157
9158 if test -n "$ac_tool_prefix"; then
9159 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9160 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9162 $as_echo_n "checking for $ac_word... " >&6; }
9163 if ${ac_cv_prog_NMEDIT+:} false; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 if test -n "$NMEDIT"; then
9167 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9168 else
9169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170 for as_dir in $PATH
9171 do
9172 IFS=$as_save_IFS
9173 test -z "$as_dir" && as_dir=.
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9176 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9178 break 2
9179 fi
9180 done
9181 done
9182 IFS=$as_save_IFS
9183
9184 fi
9185 fi
9186 NMEDIT=$ac_cv_prog_NMEDIT
9187 if test -n "$NMEDIT"; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9189 $as_echo "$NMEDIT" >&6; }
9190 else
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192 $as_echo "no" >&6; }
9193 fi
9194
9195
9196 fi
9197 if test -z "$ac_cv_prog_NMEDIT"; then
9198 ac_ct_NMEDIT=$NMEDIT
9199 # Extract the first word of "nmedit", so it can be a program name with args.
9200 set dummy nmedit; ac_word=$2
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9202 $as_echo_n "checking for $ac_word... " >&6; }
9203 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9204 $as_echo_n "(cached) " >&6
9205 else
9206 if test -n "$ac_ct_NMEDIT"; then
9207 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9208 else
9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210 for as_dir in $PATH
9211 do
9212 IFS=$as_save_IFS
9213 test -z "$as_dir" && as_dir=.
9214 for ac_exec_ext in '' $ac_executable_extensions; do
9215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9216 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9218 break 2
9219 fi
9220 done
9221 done
9222 IFS=$as_save_IFS
9223
9224 fi
9225 fi
9226 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9227 if test -n "$ac_ct_NMEDIT"; then
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9229 $as_echo "$ac_ct_NMEDIT" >&6; }
9230 else
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9232 $as_echo "no" >&6; }
9233 fi
9234
9235 if test "x$ac_ct_NMEDIT" = x; then
9236 NMEDIT=":"
9237 else
9238 case $cross_compiling:$ac_tool_warned in
9239 yes:)
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9242 ac_tool_warned=yes ;;
9243 esac
9244 NMEDIT=$ac_ct_NMEDIT
9245 fi
9246 else
9247 NMEDIT="$ac_cv_prog_NMEDIT"
9248 fi
9249
9250 if test -n "$ac_tool_prefix"; then
9251 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9252 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9254 $as_echo_n "checking for $ac_word... " >&6; }
9255 if ${ac_cv_prog_LIPO+:} false; then :
9256 $as_echo_n "(cached) " >&6
9257 else
9258 if test -n "$LIPO"; then
9259 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9260 else
9261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262 for as_dir in $PATH
9263 do
9264 IFS=$as_save_IFS
9265 test -z "$as_dir" && as_dir=.
9266 for ac_exec_ext in '' $ac_executable_extensions; do
9267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9268 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9270 break 2
9271 fi
9272 done
9273 done
9274 IFS=$as_save_IFS
9275
9276 fi
9277 fi
9278 LIPO=$ac_cv_prog_LIPO
9279 if test -n "$LIPO"; then
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9281 $as_echo "$LIPO" >&6; }
9282 else
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284 $as_echo "no" >&6; }
9285 fi
9286
9287
9288 fi
9289 if test -z "$ac_cv_prog_LIPO"; then
9290 ac_ct_LIPO=$LIPO
9291 # Extract the first word of "lipo", so it can be a program name with args.
9292 set dummy lipo; ac_word=$2
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9294 $as_echo_n "checking for $ac_word... " >&6; }
9295 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9296 $as_echo_n "(cached) " >&6
9297 else
9298 if test -n "$ac_ct_LIPO"; then
9299 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9300 else
9301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302 for as_dir in $PATH
9303 do
9304 IFS=$as_save_IFS
9305 test -z "$as_dir" && as_dir=.
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9308 ac_cv_prog_ac_ct_LIPO="lipo"
9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9310 break 2
9311 fi
9312 done
9313 done
9314 IFS=$as_save_IFS
9315
9316 fi
9317 fi
9318 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9319 if test -n "$ac_ct_LIPO"; then
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9321 $as_echo "$ac_ct_LIPO" >&6; }
9322 else
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9324 $as_echo "no" >&6; }
9325 fi
9326
9327 if test "x$ac_ct_LIPO" = x; then
9328 LIPO=":"
9329 else
9330 case $cross_compiling:$ac_tool_warned in
9331 yes:)
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9334 ac_tool_warned=yes ;;
9335 esac
9336 LIPO=$ac_ct_LIPO
9337 fi
9338 else
9339 LIPO="$ac_cv_prog_LIPO"
9340 fi
9341
9342 if test -n "$ac_tool_prefix"; then
9343 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9344 set dummy ${ac_tool_prefix}otool; ac_word=$2
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346 $as_echo_n "checking for $ac_word... " >&6; }
9347 if ${ac_cv_prog_OTOOL+:} false; then :
9348 $as_echo_n "(cached) " >&6
9349 else
9350 if test -n "$OTOOL"; then
9351 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9352 else
9353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9354 for as_dir in $PATH
9355 do
9356 IFS=$as_save_IFS
9357 test -z "$as_dir" && as_dir=.
9358 for ac_exec_ext in '' $ac_executable_extensions; do
9359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9360 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9362 break 2
9363 fi
9364 done
9365 done
9366 IFS=$as_save_IFS
9367
9368 fi
9369 fi
9370 OTOOL=$ac_cv_prog_OTOOL
9371 if test -n "$OTOOL"; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9373 $as_echo "$OTOOL" >&6; }
9374 else
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376 $as_echo "no" >&6; }
9377 fi
9378
9379
9380 fi
9381 if test -z "$ac_cv_prog_OTOOL"; then
9382 ac_ct_OTOOL=$OTOOL
9383 # Extract the first word of "otool", so it can be a program name with args.
9384 set dummy otool; ac_word=$2
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9386 $as_echo_n "checking for $ac_word... " >&6; }
9387 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9388 $as_echo_n "(cached) " >&6
9389 else
9390 if test -n "$ac_ct_OTOOL"; then
9391 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9392 else
9393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9394 for as_dir in $PATH
9395 do
9396 IFS=$as_save_IFS
9397 test -z "$as_dir" && as_dir=.
9398 for ac_exec_ext in '' $ac_executable_extensions; do
9399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9400 ac_cv_prog_ac_ct_OTOOL="otool"
9401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9402 break 2
9403 fi
9404 done
9405 done
9406 IFS=$as_save_IFS
9407
9408 fi
9409 fi
9410 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9411 if test -n "$ac_ct_OTOOL"; then
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9413 $as_echo "$ac_ct_OTOOL" >&6; }
9414 else
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416 $as_echo "no" >&6; }
9417 fi
9418
9419 if test "x$ac_ct_OTOOL" = x; then
9420 OTOOL=":"
9421 else
9422 case $cross_compiling:$ac_tool_warned in
9423 yes:)
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9426 ac_tool_warned=yes ;;
9427 esac
9428 OTOOL=$ac_ct_OTOOL
9429 fi
9430 else
9431 OTOOL="$ac_cv_prog_OTOOL"
9432 fi
9433
9434 if test -n "$ac_tool_prefix"; then
9435 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9436 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9438 $as_echo_n "checking for $ac_word... " >&6; }
9439 if ${ac_cv_prog_OTOOL64+:} false; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 if test -n "$OTOOL64"; then
9443 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9444 else
9445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9446 for as_dir in $PATH
9447 do
9448 IFS=$as_save_IFS
9449 test -z "$as_dir" && as_dir=.
9450 for ac_exec_ext in '' $ac_executable_extensions; do
9451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9452 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9454 break 2
9455 fi
9456 done
9457 done
9458 IFS=$as_save_IFS
9459
9460 fi
9461 fi
9462 OTOOL64=$ac_cv_prog_OTOOL64
9463 if test -n "$OTOOL64"; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9465 $as_echo "$OTOOL64" >&6; }
9466 else
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9468 $as_echo "no" >&6; }
9469 fi
9470
9471
9472 fi
9473 if test -z "$ac_cv_prog_OTOOL64"; then
9474 ac_ct_OTOOL64=$OTOOL64
9475 # Extract the first word of "otool64", so it can be a program name with args.
9476 set dummy otool64; ac_word=$2
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9478 $as_echo_n "checking for $ac_word... " >&6; }
9479 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9480 $as_echo_n "(cached) " >&6
9481 else
9482 if test -n "$ac_ct_OTOOL64"; then
9483 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9484 else
9485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9486 for as_dir in $PATH
9487 do
9488 IFS=$as_save_IFS
9489 test -z "$as_dir" && as_dir=.
9490 for ac_exec_ext in '' $ac_executable_extensions; do
9491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9492 ac_cv_prog_ac_ct_OTOOL64="otool64"
9493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9494 break 2
9495 fi
9496 done
9497 done
9498 IFS=$as_save_IFS
9499
9500 fi
9501 fi
9502 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9503 if test -n "$ac_ct_OTOOL64"; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9505 $as_echo "$ac_ct_OTOOL64" >&6; }
9506 else
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9508 $as_echo "no" >&6; }
9509 fi
9510
9511 if test "x$ac_ct_OTOOL64" = x; then
9512 OTOOL64=":"
9513 else
9514 case $cross_compiling:$ac_tool_warned in
9515 yes:)
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9518 ac_tool_warned=yes ;;
9519 esac
9520 OTOOL64=$ac_ct_OTOOL64
9521 fi
9522 else
9523 OTOOL64="$ac_cv_prog_OTOOL64"
9524 fi
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9553 $as_echo_n "checking for -single_module linker flag... " >&6; }
9554 if ${lt_cv_apple_cc_single_mod+:} false; then :
9555 $as_echo_n "(cached) " >&6
9556 else
9557 lt_cv_apple_cc_single_mod=no
9558 if test -z "${LT_MULTI_MODULE}"; then
9559 # By default we will add the -single_module flag. You can override
9560 # by either setting the environment variable LT_MULTI_MODULE
9561 # non-empty at configure time, or by adding -multi_module to the
9562 # link flags.
9563 rm -rf libconftest.dylib*
9564 echo "int foo(void){return 1;}" > conftest.c
9565 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9566 -dynamiclib -Wl,-single_module conftest.c" >&5
9567 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9568 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9569 _lt_result=$?
9570 # If there is a non-empty error log, and "single_module"
9571 # appears in it, assume the flag caused a linker warning
9572 if test -s conftest.err && $GREP single_module conftest.err; then
9573 cat conftest.err >&5
9574 # Otherwise, if the output was created with a 0 exit code from
9575 # the compiler, it worked.
9576 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9577 lt_cv_apple_cc_single_mod=yes
9578 else
9579 cat conftest.err >&5
9580 fi
9581 rm -rf libconftest.dylib*
9582 rm -f conftest.*
9583 fi
9584 fi
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9586 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9587
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9589 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9590 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9591 $as_echo_n "(cached) " >&6
9592 else
9593 lt_cv_ld_exported_symbols_list=no
9594 save_LDFLAGS=$LDFLAGS
9595 echo "_main" > conftest.sym
9596 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9599
9600 int
9601 main ()
9602 {
9603
9604 ;
9605 return 0;
9606 }
9607 _ACEOF
9608 if ac_fn_c_try_link "$LINENO"; then :
9609 lt_cv_ld_exported_symbols_list=yes
9610 else
9611 lt_cv_ld_exported_symbols_list=no
9612 fi
9613 rm -f core conftest.err conftest.$ac_objext \
9614 conftest$ac_exeext conftest.$ac_ext
9615 LDFLAGS="$save_LDFLAGS"
9616
9617 fi
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9619 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9620
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9622 $as_echo_n "checking for -force_load linker flag... " >&6; }
9623 if ${lt_cv_ld_force_load+:} false; then :
9624 $as_echo_n "(cached) " >&6
9625 else
9626 lt_cv_ld_force_load=no
9627 cat > conftest.c << _LT_EOF
9628 int forced_loaded() { return 2;}
9629 _LT_EOF
9630 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9631 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9632 echo "$AR cru libconftest.a conftest.o" >&5
9633 $AR cru libconftest.a conftest.o 2>&5
9634 echo "$RANLIB libconftest.a" >&5
9635 $RANLIB libconftest.a 2>&5
9636 cat > conftest.c << _LT_EOF
9637 int main() { return 0;}
9638 _LT_EOF
9639 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9640 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9641 _lt_result=$?
9642 if test -s conftest.err && $GREP force_load conftest.err; then
9643 cat conftest.err >&5
9644 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9645 lt_cv_ld_force_load=yes
9646 else
9647 cat conftest.err >&5
9648 fi
9649 rm -f conftest.err libconftest.a conftest conftest.c
9650 rm -rf conftest.dSYM
9651
9652 fi
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9654 $as_echo "$lt_cv_ld_force_load" >&6; }
9655 case $host_os in
9656 rhapsody* | darwin1.[012])
9657 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9658 darwin1.*)
9659 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9660 darwin*) # darwin 5.x on
9661 # if running on 10.5 or later, the deployment target defaults
9662 # to the OS version, if on x86, and 10.4, the deployment
9663 # target defaults to 10.4. Don't you love it?
9664 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9665 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9666 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9667 10.[012]*)
9668 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9669 10.*)
9670 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9671 esac
9672 ;;
9673 esac
9674 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9675 _lt_dar_single_mod='$single_module'
9676 fi
9677 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9678 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9679 else
9680 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9681 fi
9682 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9683 _lt_dsymutil='~$DSYMUTIL $lib || :'
9684 else
9685 _lt_dsymutil=
9686 fi
9687 ;;
9688 esac
9689
9690 for ac_header in dlfcn.h
9691 do :
9692 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9693 "
9694 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9695 cat >>confdefs.h <<_ACEOF
9696 #define HAVE_DLFCN_H 1
9697 _ACEOF
9698
9699 fi
9700
9701 done
9702
9703
9704
9705
9706
9707
9708
9709 # Set options
9710
9711
9712
9713 enable_dlopen=no
9714
9715
9716 enable_win32_dll=no
9717
9718
9719 # Check whether --enable-shared was given.
9720 if test "${enable_shared+set}" = set; then :
9721 enableval=$enable_shared; p=${PACKAGE-default}
9722 case $enableval in
9723 yes) enable_shared=yes ;;
9724 no) enable_shared=no ;;
9725 *)
9726 enable_shared=no
9727 # Look at the argument we got. We use all the common list separators.
9728 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9729 for pkg in $enableval; do
9730 IFS="$lt_save_ifs"
9731 if test "X$pkg" = "X$p"; then
9732 enable_shared=yes
9733 fi
9734 done
9735 IFS="$lt_save_ifs"
9736 ;;
9737 esac
9738 else
9739 enable_shared=yes
9740 fi
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750 # Check whether --enable-static was given.
9751 if test "${enable_static+set}" = set; then :
9752 enableval=$enable_static; p=${PACKAGE-default}
9753 case $enableval in
9754 yes) enable_static=yes ;;
9755 no) enable_static=no ;;
9756 *)
9757 enable_static=no
9758 # Look at the argument we got. We use all the common list separators.
9759 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9760 for pkg in $enableval; do
9761 IFS="$lt_save_ifs"
9762 if test "X$pkg" = "X$p"; then
9763 enable_static=yes
9764 fi
9765 done
9766 IFS="$lt_save_ifs"
9767 ;;
9768 esac
9769 else
9770 enable_static=yes
9771 fi
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782 # Check whether --with-pic was given.
9783 if test "${with_pic+set}" = set; then :
9784 withval=$with_pic; lt_p=${PACKAGE-default}
9785 case $withval in
9786 yes|no) pic_mode=$withval ;;
9787 *)
9788 pic_mode=default
9789 # Look at the argument we got. We use all the common list separators.
9790 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9791 for lt_pkg in $withval; do
9792 IFS="$lt_save_ifs"
9793 if test "X$lt_pkg" = "X$lt_p"; then
9794 pic_mode=yes
9795 fi
9796 done
9797 IFS="$lt_save_ifs"
9798 ;;
9799 esac
9800 else
9801 pic_mode=default
9802 fi
9803
9804
9805 test -z "$pic_mode" && pic_mode=default
9806
9807
9808
9809
9810
9811
9812
9813 # Check whether --enable-fast-install was given.
9814 if test "${enable_fast_install+set}" = set; then :
9815 enableval=$enable_fast_install; p=${PACKAGE-default}
9816 case $enableval in
9817 yes) enable_fast_install=yes ;;
9818 no) enable_fast_install=no ;;
9819 *)
9820 enable_fast_install=no
9821 # Look at the argument we got. We use all the common list separators.
9822 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9823 for pkg in $enableval; do
9824 IFS="$lt_save_ifs"
9825 if test "X$pkg" = "X$p"; then
9826 enable_fast_install=yes
9827 fi
9828 done
9829 IFS="$lt_save_ifs"
9830 ;;
9831 esac
9832 else
9833 enable_fast_install=yes
9834 fi
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846 # This can be used to rebuild libtool when needed
9847 LIBTOOL_DEPS="$ltmain"
9848
9849 # Always use our own libtool.
9850 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881 test -z "$LN_S" && LN_S="ln -s"
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896 if test -n "${ZSH_VERSION+set}" ; then
9897 setopt NO_GLOB_SUBST
9898 fi
9899
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9901 $as_echo_n "checking for objdir... " >&6; }
9902 if ${lt_cv_objdir+:} false; then :
9903 $as_echo_n "(cached) " >&6
9904 else
9905 rm -f .libs 2>/dev/null
9906 mkdir .libs 2>/dev/null
9907 if test -d .libs; then
9908 lt_cv_objdir=.libs
9909 else
9910 # MS-DOS does not allow filenames that begin with a dot.
9911 lt_cv_objdir=_libs
9912 fi
9913 rmdir .libs 2>/dev/null
9914 fi
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9916 $as_echo "$lt_cv_objdir" >&6; }
9917 objdir=$lt_cv_objdir
9918
9919
9920
9921
9922
9923 cat >>confdefs.h <<_ACEOF
9924 #define LT_OBJDIR "$lt_cv_objdir/"
9925 _ACEOF
9926
9927
9928
9929
9930 case $host_os in
9931 aix3*)
9932 # AIX sometimes has problems with the GCC collect2 program. For some
9933 # reason, if we set the COLLECT_NAMES environment variable, the problems
9934 # vanish in a puff of smoke.
9935 if test "X${COLLECT_NAMES+set}" != Xset; then
9936 COLLECT_NAMES=
9937 export COLLECT_NAMES
9938 fi
9939 ;;
9940 esac
9941
9942 # Global variables:
9943 ofile=libtool
9944 can_build_shared=yes
9945
9946 # All known linkers require a `.a' archive for static linking (except MSVC,
9947 # which needs '.lib').
9948 libext=a
9949
9950 with_gnu_ld="$lt_cv_prog_gnu_ld"
9951
9952 old_CC="$CC"
9953 old_CFLAGS="$CFLAGS"
9954
9955 # Set sane defaults for various variables
9956 test -z "$CC" && CC=cc
9957 test -z "$LTCC" && LTCC=$CC
9958 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9959 test -z "$LD" && LD=ld
9960 test -z "$ac_objext" && ac_objext=o
9961
9962 for cc_temp in $compiler""; do
9963 case $cc_temp in
9964 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9965 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9966 \-*) ;;
9967 *) break;;
9968 esac
9969 done
9970 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9971
9972
9973 # Only perform the check for file, if the check method requires it
9974 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9975 case $deplibs_check_method in
9976 file_magic*)
9977 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9979 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9980 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9981 $as_echo_n "(cached) " >&6
9982 else
9983 case $MAGIC_CMD in
9984 [\\/*] | ?:[\\/]*)
9985 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9986 ;;
9987 *)
9988 lt_save_MAGIC_CMD="$MAGIC_CMD"
9989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9990 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9991 for ac_dir in $ac_dummy; do
9992 IFS="$lt_save_ifs"
9993 test -z "$ac_dir" && ac_dir=.
9994 if test -f $ac_dir/${ac_tool_prefix}file; then
9995 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9996 if test -n "$file_magic_test_file"; then
9997 case $deplibs_check_method in
9998 "file_magic "*)
9999 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10000 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10001 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10002 $EGREP "$file_magic_regex" > /dev/null; then
10003 :
10004 else
10005 cat <<_LT_EOF 1>&2
10006
10007 *** Warning: the command libtool uses to detect shared libraries,
10008 *** $file_magic_cmd, produces output that libtool cannot recognize.
10009 *** The result is that libtool may fail to recognize shared libraries
10010 *** as such. This will affect the creation of libtool libraries that
10011 *** depend on shared libraries, but programs linked with such libtool
10012 *** libraries will work regardless of this problem. Nevertheless, you
10013 *** may want to report the problem to your system manager and/or to
10014 *** bug-libtool@gnu.org
10015
10016 _LT_EOF
10017 fi ;;
10018 esac
10019 fi
10020 break
10021 fi
10022 done
10023 IFS="$lt_save_ifs"
10024 MAGIC_CMD="$lt_save_MAGIC_CMD"
10025 ;;
10026 esac
10027 fi
10028
10029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10030 if test -n "$MAGIC_CMD"; then
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10032 $as_echo "$MAGIC_CMD" >&6; }
10033 else
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035 $as_echo "no" >&6; }
10036 fi
10037
10038
10039
10040
10041
10042 if test -z "$lt_cv_path_MAGIC_CMD"; then
10043 if test -n "$ac_tool_prefix"; then
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10045 $as_echo_n "checking for file... " >&6; }
10046 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10047 $as_echo_n "(cached) " >&6
10048 else
10049 case $MAGIC_CMD in
10050 [\\/*] | ?:[\\/]*)
10051 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10052 ;;
10053 *)
10054 lt_save_MAGIC_CMD="$MAGIC_CMD"
10055 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10056 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10057 for ac_dir in $ac_dummy; do
10058 IFS="$lt_save_ifs"
10059 test -z "$ac_dir" && ac_dir=.
10060 if test -f $ac_dir/file; then
10061 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10062 if test -n "$file_magic_test_file"; then
10063 case $deplibs_check_method in
10064 "file_magic "*)
10065 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10066 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10067 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10068 $EGREP "$file_magic_regex" > /dev/null; then
10069 :
10070 else
10071 cat <<_LT_EOF 1>&2
10072
10073 *** Warning: the command libtool uses to detect shared libraries,
10074 *** $file_magic_cmd, produces output that libtool cannot recognize.
10075 *** The result is that libtool may fail to recognize shared libraries
10076 *** as such. This will affect the creation of libtool libraries that
10077 *** depend on shared libraries, but programs linked with such libtool
10078 *** libraries will work regardless of this problem. Nevertheless, you
10079 *** may want to report the problem to your system manager and/or to
10080 *** bug-libtool@gnu.org
10081
10082 _LT_EOF
10083 fi ;;
10084 esac
10085 fi
10086 break
10087 fi
10088 done
10089 IFS="$lt_save_ifs"
10090 MAGIC_CMD="$lt_save_MAGIC_CMD"
10091 ;;
10092 esac
10093 fi
10094
10095 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10096 if test -n "$MAGIC_CMD"; then
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10098 $as_echo "$MAGIC_CMD" >&6; }
10099 else
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10101 $as_echo "no" >&6; }
10102 fi
10103
10104
10105 else
10106 MAGIC_CMD=:
10107 fi
10108 fi
10109
10110 fi
10111 ;;
10112 esac
10113
10114 # Use C for the default configuration in the libtool script
10115
10116 lt_save_CC="$CC"
10117 ac_ext=c
10118 ac_cpp='$CPP $CPPFLAGS'
10119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10122
10123
10124 # Source file extension for C test sources.
10125 ac_ext=c
10126
10127 # Object file extension for compiled C test sources.
10128 objext=o
10129 objext=$objext
10130
10131 # Code to be used in simple compile tests
10132 lt_simple_compile_test_code="int some_variable = 0;"
10133
10134 # Code to be used in simple link tests
10135 lt_simple_link_test_code='int main(){return(0);}'
10136
10137
10138
10139
10140
10141
10142
10143 # If no C compiler was specified, use CC.
10144 LTCC=${LTCC-"$CC"}
10145
10146 # If no C compiler flags were specified, use CFLAGS.
10147 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10148
10149 # Allow CC to be a program name with arguments.
10150 compiler=$CC
10151
10152 # Save the default compiler, since it gets overwritten when the other
10153 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10154 compiler_DEFAULT=$CC
10155
10156 # save warnings/boilerplate of simple test code
10157 ac_outfile=conftest.$ac_objext
10158 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10159 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10160 _lt_compiler_boilerplate=`cat conftest.err`
10161 $RM conftest*
10162
10163 ac_outfile=conftest.$ac_objext
10164 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10165 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10166 _lt_linker_boilerplate=`cat conftest.err`
10167 $RM -r conftest*
10168
10169
10170 if test -n "$compiler"; then
10171
10172 lt_prog_compiler_no_builtin_flag=
10173
10174 if test "$GCC" = yes; then
10175 case $cc_basename in
10176 nvcc*)
10177 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10178 *)
10179 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10180 esac
10181
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10183 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10184 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10185 $as_echo_n "(cached) " >&6
10186 else
10187 lt_cv_prog_compiler_rtti_exceptions=no
10188 ac_outfile=conftest.$ac_objext
10189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10190 lt_compiler_flag="-fno-rtti -fno-exceptions"
10191 # Insert the option either (1) after the last *FLAGS variable, or
10192 # (2) before a word containing "conftest.", or (3) at the end.
10193 # Note that $ac_compile itself does not contain backslashes and begins
10194 # with a dollar sign (not a hyphen), so the echo should work correctly.
10195 # The option is referenced via a variable to avoid confusing sed.
10196 lt_compile=`echo "$ac_compile" | $SED \
10197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10199 -e 's:$: $lt_compiler_flag:'`
10200 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10201 (eval "$lt_compile" 2>conftest.err)
10202 ac_status=$?
10203 cat conftest.err >&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 if (exit $ac_status) && test -s "$ac_outfile"; then
10206 # The compiler can only warn and ignore the option if not recognized
10207 # So say no if there are warnings other than the usual output.
10208 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10210 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10211 lt_cv_prog_compiler_rtti_exceptions=yes
10212 fi
10213 fi
10214 $RM conftest*
10215
10216 fi
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10218 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10219
10220 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10221 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10222 else
10223 :
10224 fi
10225
10226 fi
10227
10228
10229
10230
10231
10232
10233 lt_prog_compiler_wl=
10234 lt_prog_compiler_pic=
10235 lt_prog_compiler_static=
10236
10237
10238 if test "$GCC" = yes; then
10239 lt_prog_compiler_wl='-Wl,'
10240 lt_prog_compiler_static='-static'
10241
10242 case $host_os in
10243 aix*)
10244 # All AIX code is PIC.
10245 if test "$host_cpu" = ia64; then
10246 # AIX 5 now supports IA64 processor
10247 lt_prog_compiler_static='-Bstatic'
10248 fi
10249 ;;
10250
10251 amigaos*)
10252 case $host_cpu in
10253 powerpc)
10254 # see comment about AmigaOS4 .so support
10255 lt_prog_compiler_pic='-fPIC'
10256 ;;
10257 m68k)
10258 # FIXME: we need at least 68020 code to build shared libraries, but
10259 # adding the `-m68020' flag to GCC prevents building anything better,
10260 # like `-m68040'.
10261 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10262 ;;
10263 esac
10264 ;;
10265
10266 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10267 # PIC is the default for these OSes.
10268 ;;
10269
10270 mingw* | cygwin* | pw32* | os2* | cegcc*)
10271 # This hack is so that the source file can tell whether it is being
10272 # built for inclusion in a dll (and should export symbols for example).
10273 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10274 # (--disable-auto-import) libraries
10275 lt_prog_compiler_pic='-DDLL_EXPORT'
10276 ;;
10277
10278 darwin* | rhapsody*)
10279 # PIC is the default on this platform
10280 # Common symbols not allowed in MH_DYLIB files
10281 lt_prog_compiler_pic='-fno-common'
10282 ;;
10283
10284 haiku*)
10285 # PIC is the default for Haiku.
10286 # The "-static" flag exists, but is broken.
10287 lt_prog_compiler_static=
10288 ;;
10289
10290 hpux*)
10291 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10292 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10293 # sets the default TLS model and affects inlining.
10294 case $host_cpu in
10295 hppa*64*)
10296 # +Z the default
10297 ;;
10298 *)
10299 lt_prog_compiler_pic='-fPIC'
10300 ;;
10301 esac
10302 ;;
10303
10304 interix[3-9]*)
10305 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10306 # Instead, we relocate shared libraries at runtime.
10307 ;;
10308
10309 msdosdjgpp*)
10310 # Just because we use GCC doesn't mean we suddenly get shared libraries
10311 # on systems that don't support them.
10312 lt_prog_compiler_can_build_shared=no
10313 enable_shared=no
10314 ;;
10315
10316 *nto* | *qnx*)
10317 # QNX uses GNU C++, but need to define -shared option too, otherwise
10318 # it will coredump.
10319 lt_prog_compiler_pic='-fPIC -shared'
10320 ;;
10321
10322 sysv4*MP*)
10323 if test -d /usr/nec; then
10324 lt_prog_compiler_pic=-Kconform_pic
10325 fi
10326 ;;
10327
10328 *)
10329 lt_prog_compiler_pic='-fPIC'
10330 ;;
10331 esac
10332
10333 case $cc_basename in
10334 nvcc*) # Cuda Compiler Driver 2.2
10335 lt_prog_compiler_wl='-Xlinker '
10336 if test -n "$lt_prog_compiler_pic"; then
10337 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10338 fi
10339 ;;
10340 esac
10341 else
10342 # PORTME Check for flag to pass linker flags through the system compiler.
10343 case $host_os in
10344 aix*)
10345 lt_prog_compiler_wl='-Wl,'
10346 if test "$host_cpu" = ia64; then
10347 # AIX 5 now supports IA64 processor
10348 lt_prog_compiler_static='-Bstatic'
10349 else
10350 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10351 fi
10352 ;;
10353
10354 mingw* | cygwin* | pw32* | os2* | cegcc*)
10355 # This hack is so that the source file can tell whether it is being
10356 # built for inclusion in a dll (and should export symbols for example).
10357 lt_prog_compiler_pic='-DDLL_EXPORT'
10358 ;;
10359
10360 hpux9* | hpux10* | hpux11*)
10361 lt_prog_compiler_wl='-Wl,'
10362 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10363 # not for PA HP-UX.
10364 case $host_cpu in
10365 hppa*64*|ia64*)
10366 # +Z the default
10367 ;;
10368 *)
10369 lt_prog_compiler_pic='+Z'
10370 ;;
10371 esac
10372 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10373 lt_prog_compiler_static='${wl}-a ${wl}archive'
10374 ;;
10375
10376 irix5* | irix6* | nonstopux*)
10377 lt_prog_compiler_wl='-Wl,'
10378 # PIC (with -KPIC) is the default.
10379 lt_prog_compiler_static='-non_shared'
10380 ;;
10381
10382 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10383 case $cc_basename in
10384 # old Intel for x86_64 which still supported -KPIC.
10385 ecc*)
10386 lt_prog_compiler_wl='-Wl,'
10387 lt_prog_compiler_pic='-KPIC'
10388 lt_prog_compiler_static='-static'
10389 ;;
10390 # icc used to be incompatible with GCC.
10391 # ICC 10 doesn't accept -KPIC any more.
10392 icc* | ifort*)
10393 lt_prog_compiler_wl='-Wl,'
10394 lt_prog_compiler_pic='-fPIC'
10395 lt_prog_compiler_static='-static'
10396 ;;
10397 # Lahey Fortran 8.1.
10398 lf95*)
10399 lt_prog_compiler_wl='-Wl,'
10400 lt_prog_compiler_pic='--shared'
10401 lt_prog_compiler_static='--static'
10402 ;;
10403 nagfor*)
10404 # NAG Fortran compiler
10405 lt_prog_compiler_wl='-Wl,-Wl,,'
10406 lt_prog_compiler_pic='-PIC'
10407 lt_prog_compiler_static='-Bstatic'
10408 ;;
10409 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10410 # Portland Group compilers (*not* the Pentium gcc compiler,
10411 # which looks to be a dead project)
10412 lt_prog_compiler_wl='-Wl,'
10413 lt_prog_compiler_pic='-fpic'
10414 lt_prog_compiler_static='-Bstatic'
10415 ;;
10416 ccc*)
10417 lt_prog_compiler_wl='-Wl,'
10418 # All Alpha code is PIC.
10419 lt_prog_compiler_static='-non_shared'
10420 ;;
10421 xl* | bgxl* | bgf* | mpixl*)
10422 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10423 lt_prog_compiler_wl='-Wl,'
10424 lt_prog_compiler_pic='-qpic'
10425 lt_prog_compiler_static='-qstaticlink'
10426 ;;
10427 *)
10428 case `$CC -V 2>&1 | sed 5q` in
10429 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10430 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10431 lt_prog_compiler_pic='-KPIC'
10432 lt_prog_compiler_static='-Bstatic'
10433 lt_prog_compiler_wl=''
10434 ;;
10435 *Sun\ F* | *Sun*Fortran*)
10436 lt_prog_compiler_pic='-KPIC'
10437 lt_prog_compiler_static='-Bstatic'
10438 lt_prog_compiler_wl='-Qoption ld '
10439 ;;
10440 *Sun\ C*)
10441 # Sun C 5.9
10442 lt_prog_compiler_pic='-KPIC'
10443 lt_prog_compiler_static='-Bstatic'
10444 lt_prog_compiler_wl='-Wl,'
10445 ;;
10446 *Intel*\ [CF]*Compiler*)
10447 lt_prog_compiler_wl='-Wl,'
10448 lt_prog_compiler_pic='-fPIC'
10449 lt_prog_compiler_static='-static'
10450 ;;
10451 *Portland\ Group*)
10452 lt_prog_compiler_wl='-Wl,'
10453 lt_prog_compiler_pic='-fpic'
10454 lt_prog_compiler_static='-Bstatic'
10455 ;;
10456 esac
10457 ;;
10458 esac
10459 ;;
10460
10461 newsos6)
10462 lt_prog_compiler_pic='-KPIC'
10463 lt_prog_compiler_static='-Bstatic'
10464 ;;
10465
10466 *nto* | *qnx*)
10467 # QNX uses GNU C++, but need to define -shared option too, otherwise
10468 # it will coredump.
10469 lt_prog_compiler_pic='-fPIC -shared'
10470 ;;
10471
10472 osf3* | osf4* | osf5*)
10473 lt_prog_compiler_wl='-Wl,'
10474 # All OSF/1 code is PIC.
10475 lt_prog_compiler_static='-non_shared'
10476 ;;
10477
10478 rdos*)
10479 lt_prog_compiler_static='-non_shared'
10480 ;;
10481
10482 solaris*)
10483 lt_prog_compiler_pic='-KPIC'
10484 lt_prog_compiler_static='-Bstatic'
10485 case $cc_basename in
10486 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10487 lt_prog_compiler_wl='-Qoption ld ';;
10488 *)
10489 lt_prog_compiler_wl='-Wl,';;
10490 esac
10491 ;;
10492
10493 sunos4*)
10494 lt_prog_compiler_wl='-Qoption ld '
10495 lt_prog_compiler_pic='-PIC'
10496 lt_prog_compiler_static='-Bstatic'
10497 ;;
10498
10499 sysv4 | sysv4.2uw2* | sysv4.3*)
10500 lt_prog_compiler_wl='-Wl,'
10501 lt_prog_compiler_pic='-KPIC'
10502 lt_prog_compiler_static='-Bstatic'
10503 ;;
10504
10505 sysv4*MP*)
10506 if test -d /usr/nec ;then
10507 lt_prog_compiler_pic='-Kconform_pic'
10508 lt_prog_compiler_static='-Bstatic'
10509 fi
10510 ;;
10511
10512 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10513 lt_prog_compiler_wl='-Wl,'
10514 lt_prog_compiler_pic='-KPIC'
10515 lt_prog_compiler_static='-Bstatic'
10516 ;;
10517
10518 unicos*)
10519 lt_prog_compiler_wl='-Wl,'
10520 lt_prog_compiler_can_build_shared=no
10521 ;;
10522
10523 uts4*)
10524 lt_prog_compiler_pic='-pic'
10525 lt_prog_compiler_static='-Bstatic'
10526 ;;
10527
10528 *)
10529 lt_prog_compiler_can_build_shared=no
10530 ;;
10531 esac
10532 fi
10533
10534 case $host_os in
10535 # For platforms which do not support PIC, -DPIC is meaningless:
10536 *djgpp*)
10537 lt_prog_compiler_pic=
10538 ;;
10539 *)
10540 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10541 ;;
10542 esac
10543
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10545 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10546 if ${lt_cv_prog_compiler_pic+:} false; then :
10547 $as_echo_n "(cached) " >&6
10548 else
10549 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10550 fi
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10552 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10553 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10554
10555 #
10556 # Check to make sure the PIC flag actually works.
10557 #
10558 if test -n "$lt_prog_compiler_pic"; then
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10560 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10561 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10562 $as_echo_n "(cached) " >&6
10563 else
10564 lt_cv_prog_compiler_pic_works=no
10565 ac_outfile=conftest.$ac_objext
10566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10567 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10568 # Insert the option either (1) after the last *FLAGS variable, or
10569 # (2) before a word containing "conftest.", or (3) at the end.
10570 # Note that $ac_compile itself does not contain backslashes and begins
10571 # with a dollar sign (not a hyphen), so the echo should work correctly.
10572 # The option is referenced via a variable to avoid confusing sed.
10573 lt_compile=`echo "$ac_compile" | $SED \
10574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10576 -e 's:$: $lt_compiler_flag:'`
10577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10578 (eval "$lt_compile" 2>conftest.err)
10579 ac_status=$?
10580 cat conftest.err >&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 if (exit $ac_status) && test -s "$ac_outfile"; then
10583 # The compiler can only warn and ignore the option if not recognized
10584 # So say no if there are warnings other than the usual output.
10585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10587 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10588 lt_cv_prog_compiler_pic_works=yes
10589 fi
10590 fi
10591 $RM conftest*
10592
10593 fi
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10595 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10596
10597 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10598 case $lt_prog_compiler_pic in
10599 "" | " "*) ;;
10600 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10601 esac
10602 else
10603 lt_prog_compiler_pic=
10604 lt_prog_compiler_can_build_shared=no
10605 fi
10606
10607 fi
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619 #
10620 # Check to make sure the static flag actually works.
10621 #
10622 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10624 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10625 if ${lt_cv_prog_compiler_static_works+:} false; then :
10626 $as_echo_n "(cached) " >&6
10627 else
10628 lt_cv_prog_compiler_static_works=no
10629 save_LDFLAGS="$LDFLAGS"
10630 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10631 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10632 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10633 # The linker can only warn and ignore the option if not recognized
10634 # So say no if there are warnings
10635 if test -s conftest.err; then
10636 # Append any errors to the config.log.
10637 cat conftest.err 1>&5
10638 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10640 if diff conftest.exp conftest.er2 >/dev/null; then
10641 lt_cv_prog_compiler_static_works=yes
10642 fi
10643 else
10644 lt_cv_prog_compiler_static_works=yes
10645 fi
10646 fi
10647 $RM -r conftest*
10648 LDFLAGS="$save_LDFLAGS"
10649
10650 fi
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10652 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10653
10654 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10655 :
10656 else
10657 lt_prog_compiler_static=
10658 fi
10659
10660
10661
10662
10663
10664
10665
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10667 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10668 if ${lt_cv_prog_compiler_c_o+:} false; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10671 lt_cv_prog_compiler_c_o=no
10672 $RM -r conftest 2>/dev/null
10673 mkdir conftest
10674 cd conftest
10675 mkdir out
10676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10677
10678 lt_compiler_flag="-o out/conftest2.$ac_objext"
10679 # Insert the option either (1) after the last *FLAGS variable, or
10680 # (2) before a word containing "conftest.", or (3) at the end.
10681 # Note that $ac_compile itself does not contain backslashes and begins
10682 # with a dollar sign (not a hyphen), so the echo should work correctly.
10683 lt_compile=`echo "$ac_compile" | $SED \
10684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10686 -e 's:$: $lt_compiler_flag:'`
10687 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10688 (eval "$lt_compile" 2>out/conftest.err)
10689 ac_status=$?
10690 cat out/conftest.err >&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10693 then
10694 # The compiler can only warn and ignore the option if not recognized
10695 # So say no if there are warnings
10696 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10697 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10698 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10699 lt_cv_prog_compiler_c_o=yes
10700 fi
10701 fi
10702 chmod u+w . 2>&5
10703 $RM conftest*
10704 # SGI C++ compiler will create directory out/ii_files/ for
10705 # template instantiation
10706 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10707 $RM out/* && rmdir out
10708 cd ..
10709 $RM -r conftest
10710 $RM conftest*
10711
10712 fi
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10714 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10715
10716
10717
10718
10719
10720
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10722 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10723 if ${lt_cv_prog_compiler_c_o+:} false; then :
10724 $as_echo_n "(cached) " >&6
10725 else
10726 lt_cv_prog_compiler_c_o=no
10727 $RM -r conftest 2>/dev/null
10728 mkdir conftest
10729 cd conftest
10730 mkdir out
10731 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10732
10733 lt_compiler_flag="-o out/conftest2.$ac_objext"
10734 # Insert the option either (1) after the last *FLAGS variable, or
10735 # (2) before a word containing "conftest.", or (3) at the end.
10736 # Note that $ac_compile itself does not contain backslashes and begins
10737 # with a dollar sign (not a hyphen), so the echo should work correctly.
10738 lt_compile=`echo "$ac_compile" | $SED \
10739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10741 -e 's:$: $lt_compiler_flag:'`
10742 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10743 (eval "$lt_compile" 2>out/conftest.err)
10744 ac_status=$?
10745 cat out/conftest.err >&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10748 then
10749 # The compiler can only warn and ignore the option if not recognized
10750 # So say no if there are warnings
10751 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10752 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10753 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10754 lt_cv_prog_compiler_c_o=yes
10755 fi
10756 fi
10757 chmod u+w . 2>&5
10758 $RM conftest*
10759 # SGI C++ compiler will create directory out/ii_files/ for
10760 # template instantiation
10761 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10762 $RM out/* && rmdir out
10763 cd ..
10764 $RM -r conftest
10765 $RM conftest*
10766
10767 fi
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10769 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10770
10771
10772
10773
10774 hard_links="nottested"
10775 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10776 # do not overwrite the value of need_locks provided by the user
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10778 $as_echo_n "checking if we can lock with hard links... " >&6; }
10779 hard_links=yes
10780 $RM conftest*
10781 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10782 touch conftest.a
10783 ln conftest.a conftest.b 2>&5 || hard_links=no
10784 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10786 $as_echo "$hard_links" >&6; }
10787 if test "$hard_links" = no; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10789 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10790 need_locks=warn
10791 fi
10792 else
10793 need_locks=no
10794 fi
10795
10796
10797
10798
10799
10800
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10802 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10803
10804 runpath_var=
10805 allow_undefined_flag=
10806 always_export_symbols=no
10807 archive_cmds=
10808 archive_expsym_cmds=
10809 compiler_needs_object=no
10810 enable_shared_with_static_runtimes=no
10811 export_dynamic_flag_spec=
10812 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10813 hardcode_automatic=no
10814 hardcode_direct=no
10815 hardcode_direct_absolute=no
10816 hardcode_libdir_flag_spec=
10817 hardcode_libdir_separator=
10818 hardcode_minus_L=no
10819 hardcode_shlibpath_var=unsupported
10820 inherit_rpath=no
10821 link_all_deplibs=unknown
10822 module_cmds=
10823 module_expsym_cmds=
10824 old_archive_from_new_cmds=
10825 old_archive_from_expsyms_cmds=
10826 thread_safe_flag_spec=
10827 whole_archive_flag_spec=
10828 # include_expsyms should be a list of space-separated symbols to be *always*
10829 # included in the symbol list
10830 include_expsyms=
10831 # exclude_expsyms can be an extended regexp of symbols to exclude
10832 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10833 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10834 # as well as any symbol that contains `d'.
10835 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10836 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10837 # platforms (ab)use it in PIC code, but their linkers get confused if
10838 # the symbol is explicitly referenced. Since portable code cannot
10839 # rely on this symbol name, it's probably fine to never include it in
10840 # preloaded symbol tables.
10841 # Exclude shared library initialization/finalization symbols.
10842 extract_expsyms_cmds=
10843
10844 case $host_os in
10845 cygwin* | mingw* | pw32* | cegcc*)
10846 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10847 # When not using gcc, we currently assume that we are using
10848 # Microsoft Visual C++.
10849 if test "$GCC" != yes; then
10850 with_gnu_ld=no
10851 fi
10852 ;;
10853 interix*)
10854 # we just hope/assume this is gcc and not c89 (= MSVC++)
10855 with_gnu_ld=yes
10856 ;;
10857 openbsd*)
10858 with_gnu_ld=no
10859 ;;
10860 esac
10861
10862 ld_shlibs=yes
10863
10864 # On some targets, GNU ld is compatible enough with the native linker
10865 # that we're better off using the native interface for both.
10866 lt_use_gnu_ld_interface=no
10867 if test "$with_gnu_ld" = yes; then
10868 case $host_os in
10869 aix*)
10870 # The AIX port of GNU ld has always aspired to compatibility
10871 # with the native linker. However, as the warning in the GNU ld
10872 # block says, versions before 2.19.5* couldn't really create working
10873 # shared libraries, regardless of the interface used.
10874 case `$LD -v 2>&1` in
10875 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10876 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10877 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10878 *)
10879 lt_use_gnu_ld_interface=yes
10880 ;;
10881 esac
10882 ;;
10883 *)
10884 lt_use_gnu_ld_interface=yes
10885 ;;
10886 esac
10887 fi
10888
10889 if test "$lt_use_gnu_ld_interface" = yes; then
10890 # If archive_cmds runs LD, not CC, wlarc should be empty
10891 wlarc='${wl}'
10892
10893 # Set some defaults for GNU ld with shared library support. These
10894 # are reset later if shared libraries are not supported. Putting them
10895 # here allows them to be overridden if necessary.
10896 runpath_var=LD_RUN_PATH
10897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10898 export_dynamic_flag_spec='${wl}--export-dynamic'
10899 # ancient GNU ld didn't support --whole-archive et. al.
10900 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10901 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10902 else
10903 whole_archive_flag_spec=
10904 fi
10905 supports_anon_versioning=no
10906 case `$LD -v 2>&1` in
10907 *GNU\ gold*) supports_anon_versioning=yes ;;
10908 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10909 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10910 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10911 *\ 2.11.*) ;; # other 2.11 versions
10912 *) supports_anon_versioning=yes ;;
10913 esac
10914
10915 # See if GNU ld supports shared libraries.
10916 case $host_os in
10917 aix[3-9]*)
10918 # On AIX/PPC, the GNU linker is very broken
10919 if test "$host_cpu" != ia64; then
10920 ld_shlibs=no
10921 cat <<_LT_EOF 1>&2
10922
10923 *** Warning: the GNU linker, at least up to release 2.19, is reported
10924 *** to be unable to reliably create shared libraries on AIX.
10925 *** Therefore, libtool is disabling shared libraries support. If you
10926 *** really care for shared libraries, you may want to install binutils
10927 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10928 *** You will then need to restart the configuration process.
10929
10930 _LT_EOF
10931 fi
10932 ;;
10933
10934 amigaos*)
10935 case $host_cpu in
10936 powerpc)
10937 # see comment about AmigaOS4 .so support
10938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10939 archive_expsym_cmds=''
10940 ;;
10941 m68k)
10942 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)'
10943 hardcode_libdir_flag_spec='-L$libdir'
10944 hardcode_minus_L=yes
10945 ;;
10946 esac
10947 ;;
10948
10949 beos*)
10950 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10951 allow_undefined_flag=unsupported
10952 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10953 # support --undefined. This deserves some investigation. FIXME
10954 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10955 else
10956 ld_shlibs=no
10957 fi
10958 ;;
10959
10960 cygwin* | mingw* | pw32* | cegcc*)
10961 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10962 # as there is no search path for DLLs.
10963 hardcode_libdir_flag_spec='-L$libdir'
10964 export_dynamic_flag_spec='${wl}--export-all-symbols'
10965 allow_undefined_flag=unsupported
10966 always_export_symbols=no
10967 enable_shared_with_static_runtimes=yes
10968 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'
10969 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10970
10971 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10973 # If the export-symbols file already is a .def file (1st line
10974 # is EXPORTS), use it as is; otherwise, prepend...
10975 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10976 cp $export_symbols $output_objdir/$soname.def;
10977 else
10978 echo EXPORTS > $output_objdir/$soname.def;
10979 cat $export_symbols >> $output_objdir/$soname.def;
10980 fi~
10981 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10982 else
10983 ld_shlibs=no
10984 fi
10985 ;;
10986
10987 haiku*)
10988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10989 link_all_deplibs=yes
10990 ;;
10991
10992 interix[3-9]*)
10993 hardcode_direct=no
10994 hardcode_shlibpath_var=no
10995 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10996 export_dynamic_flag_spec='${wl}-E'
10997 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10998 # Instead, shared libraries are loaded at an image base (0x10000000 by
10999 # default) and relocated if they conflict, which is a slow very memory
11000 # consuming and fragmenting process. To avoid this, we pick a random,
11001 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11002 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11003 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11004 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'
11005 ;;
11006
11007 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11008 tmp_diet=no
11009 if test "$host_os" = linux-dietlibc; then
11010 case $cc_basename in
11011 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11012 esac
11013 fi
11014 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11015 && test "$tmp_diet" = no
11016 then
11017 tmp_addflag=' $pic_flag'
11018 tmp_sharedflag='-shared'
11019 case $cc_basename,$host_cpu in
11020 pgcc*) # Portland Group C compiler
11021 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'
11022 tmp_addflag=' $pic_flag'
11023 ;;
11024 pgf77* | pgf90* | pgf95* | pgfortran*)
11025 # Portland Group f77 and f90 compilers
11026 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'
11027 tmp_addflag=' $pic_flag -Mnomain' ;;
11028 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11029 tmp_addflag=' -i_dynamic' ;;
11030 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11031 tmp_addflag=' -i_dynamic -nofor_main' ;;
11032 ifc* | ifort*) # Intel Fortran compiler
11033 tmp_addflag=' -nofor_main' ;;
11034 lf95*) # Lahey Fortran 8.1
11035 whole_archive_flag_spec=
11036 tmp_sharedflag='--shared' ;;
11037 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11038 tmp_sharedflag='-qmkshrobj'
11039 tmp_addflag= ;;
11040 nvcc*) # Cuda Compiler Driver 2.2
11041 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'
11042 compiler_needs_object=yes
11043 ;;
11044 esac
11045 case `$CC -V 2>&1 | sed 5q` in
11046 *Sun\ C*) # Sun C 5.9
11047 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'
11048 compiler_needs_object=yes
11049 tmp_sharedflag='-G' ;;
11050 *Sun\ F*) # Sun Fortran 8.3
11051 tmp_sharedflag='-G' ;;
11052 esac
11053 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11054
11055 if test "x$supports_anon_versioning" = xyes; then
11056 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11057 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11058 echo "local: *; };" >> $output_objdir/$libname.ver~
11059 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11060 fi
11061
11062 case $cc_basename in
11063 xlf* | bgf* | bgxlf* | mpixlf*)
11064 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11065 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11067 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11068 if test "x$supports_anon_versioning" = xyes; then
11069 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11070 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11071 echo "local: *; };" >> $output_objdir/$libname.ver~
11072 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11073 fi
11074 ;;
11075 esac
11076 else
11077 ld_shlibs=no
11078 fi
11079 ;;
11080
11081 netbsd*)
11082 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11083 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11084 wlarc=
11085 else
11086 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11087 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11088 fi
11089 ;;
11090
11091 solaris*)
11092 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11093 ld_shlibs=no
11094 cat <<_LT_EOF 1>&2
11095
11096 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11097 *** create shared libraries on Solaris systems. Therefore, libtool
11098 *** is disabling shared libraries support. We urge you to upgrade GNU
11099 *** binutils to release 2.9.1 or newer. Another option is to modify
11100 *** your PATH or compiler configuration so that the native linker is
11101 *** used, and then restart.
11102
11103 _LT_EOF
11104 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11105 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11106 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11107 else
11108 ld_shlibs=no
11109 fi
11110 ;;
11111
11112 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11113 case `$LD -v 2>&1` in
11114 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11115 ld_shlibs=no
11116 cat <<_LT_EOF 1>&2
11117
11118 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11119 *** reliably create shared libraries on SCO systems. Therefore, libtool
11120 *** is disabling shared libraries support. We urge you to upgrade GNU
11121 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11122 *** your PATH or compiler configuration so that the native linker is
11123 *** used, and then restart.
11124
11125 _LT_EOF
11126 ;;
11127 *)
11128 # For security reasons, it is highly recommended that you always
11129 # use absolute paths for naming shared libraries, and exclude the
11130 # DT_RUNPATH tag from executables and libraries. But doing so
11131 # requires that you compile everything twice, which is a pain.
11132 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11133 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11135 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11136 else
11137 ld_shlibs=no
11138 fi
11139 ;;
11140 esac
11141 ;;
11142
11143 sunos4*)
11144 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11145 wlarc=
11146 hardcode_direct=yes
11147 hardcode_shlibpath_var=no
11148 ;;
11149
11150 *)
11151 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11152 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11153 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11154 else
11155 ld_shlibs=no
11156 fi
11157 ;;
11158 esac
11159
11160 if test "$ld_shlibs" = no; then
11161 runpath_var=
11162 hardcode_libdir_flag_spec=
11163 export_dynamic_flag_spec=
11164 whole_archive_flag_spec=
11165 fi
11166 else
11167 # PORTME fill in a description of your system's linker (not GNU ld)
11168 case $host_os in
11169 aix3*)
11170 allow_undefined_flag=unsupported
11171 always_export_symbols=yes
11172 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'
11173 # Note: this linker hardcodes the directories in LIBPATH if there
11174 # are no directories specified by -L.
11175 hardcode_minus_L=yes
11176 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11177 # Neither direct hardcoding nor static linking is supported with a
11178 # broken collect2.
11179 hardcode_direct=unsupported
11180 fi
11181 ;;
11182
11183 aix[4-9]*)
11184 if test "$host_cpu" = ia64; then
11185 # On IA64, the linker does run time linking by default, so we don't
11186 # have to do anything special.
11187 aix_use_runtimelinking=no
11188 exp_sym_flag='-Bexport'
11189 no_entry_flag=""
11190 else
11191 # If we're using GNU nm, then we don't want the "-C" option.
11192 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11193 # Also, AIX nm treats weak defined symbols like other global
11194 # defined symbols, whereas GNU nm marks them as "W".
11195 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11196 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'
11197 else
11198 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'
11199 fi
11200 aix_use_runtimelinking=no
11201
11202 # Test if we are trying to use run time linking or normal
11203 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11204 # need to do runtime linking.
11205 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11206 for ld_flag in $LDFLAGS; do
11207 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11208 aix_use_runtimelinking=yes
11209 break
11210 fi
11211 done
11212 ;;
11213 esac
11214
11215 exp_sym_flag='-bexport'
11216 no_entry_flag='-bnoentry'
11217 fi
11218
11219 # When large executables or shared objects are built, AIX ld can
11220 # have problems creating the table of contents. If linking a library
11221 # or program results in "error TOC overflow" add -mminimal-toc to
11222 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11223 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11224
11225 archive_cmds=''
11226 hardcode_direct=yes
11227 hardcode_direct_absolute=yes
11228 hardcode_libdir_separator=':'
11229 link_all_deplibs=yes
11230 file_list_spec='${wl}-f,'
11231
11232 if test "$GCC" = yes; then
11233 case $host_os in aix4.[012]|aix4.[012].*)
11234 # We only want to do this on AIX 4.2 and lower, the check
11235 # below for broken collect2 doesn't work under 4.3+
11236 collect2name=`${CC} -print-prog-name=collect2`
11237 if test -f "$collect2name" &&
11238 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11239 then
11240 # We have reworked collect2
11241 :
11242 else
11243 # We have old collect2
11244 hardcode_direct=unsupported
11245 # It fails to find uninstalled libraries when the uninstalled
11246 # path is not listed in the libpath. Setting hardcode_minus_L
11247 # to unsupported forces relinking
11248 hardcode_minus_L=yes
11249 hardcode_libdir_flag_spec='-L$libdir'
11250 hardcode_libdir_separator=
11251 fi
11252 ;;
11253 esac
11254 shared_flag='-shared'
11255 if test "$aix_use_runtimelinking" = yes; then
11256 shared_flag="$shared_flag "'${wl}-G'
11257 fi
11258 else
11259 # not using gcc
11260 if test "$host_cpu" = ia64; then
11261 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11262 # chokes on -Wl,-G. The following line is correct:
11263 shared_flag='-G'
11264 else
11265 if test "$aix_use_runtimelinking" = yes; then
11266 shared_flag='${wl}-G'
11267 else
11268 shared_flag='${wl}-bM:SRE'
11269 fi
11270 fi
11271 fi
11272
11273 export_dynamic_flag_spec='${wl}-bexpall'
11274 # It seems that -bexpall does not export symbols beginning with
11275 # underscore (_), so it is better to generate a list of symbols to export.
11276 always_export_symbols=yes
11277 if test "$aix_use_runtimelinking" = yes; then
11278 # Warning - without using the other runtime loading flags (-brtl),
11279 # -berok will link without error, but may produce a broken library.
11280 allow_undefined_flag='-berok'
11281 # Determine the default libpath from the value encoded in an
11282 # empty executable.
11283 if test "${lt_cv_aix_libpath+set}" = set; then
11284 aix_libpath=$lt_cv_aix_libpath
11285 else
11286 if ${lt_cv_aix_libpath_+:} false; then :
11287 $as_echo_n "(cached) " >&6
11288 else
11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h. */
11291
11292 int
11293 main ()
11294 {
11295
11296 ;
11297 return 0;
11298 }
11299 _ACEOF
11300 if ac_fn_c_try_link "$LINENO"; then :
11301
11302 lt_aix_libpath_sed='
11303 /Import File Strings/,/^$/ {
11304 /^0/ {
11305 s/^0 *\([^ ]*\) *$/\1/
11306 p
11307 }
11308 }'
11309 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11310 # Check for a 64-bit object if we didn't find anything.
11311 if test -z "$lt_cv_aix_libpath_"; then
11312 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11313 fi
11314 fi
11315 rm -f core conftest.err conftest.$ac_objext \
11316 conftest$ac_exeext conftest.$ac_ext
11317 if test -z "$lt_cv_aix_libpath_"; then
11318 lt_cv_aix_libpath_="/usr/lib:/lib"
11319 fi
11320
11321 fi
11322
11323 aix_libpath=$lt_cv_aix_libpath_
11324 fi
11325
11326 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11327 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"
11328 else
11329 if test "$host_cpu" = ia64; then
11330 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11331 allow_undefined_flag="-z nodefs"
11332 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"
11333 else
11334 # Determine the default libpath from the value encoded in an
11335 # empty executable.
11336 if test "${lt_cv_aix_libpath+set}" = set; then
11337 aix_libpath=$lt_cv_aix_libpath
11338 else
11339 if ${lt_cv_aix_libpath_+:} false; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11344
11345 int
11346 main ()
11347 {
11348
11349 ;
11350 return 0;
11351 }
11352 _ACEOF
11353 if ac_fn_c_try_link "$LINENO"; then :
11354
11355 lt_aix_libpath_sed='
11356 /Import File Strings/,/^$/ {
11357 /^0/ {
11358 s/^0 *\([^ ]*\) *$/\1/
11359 p
11360 }
11361 }'
11362 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11363 # Check for a 64-bit object if we didn't find anything.
11364 if test -z "$lt_cv_aix_libpath_"; then
11365 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11366 fi
11367 fi
11368 rm -f core conftest.err conftest.$ac_objext \
11369 conftest$ac_exeext conftest.$ac_ext
11370 if test -z "$lt_cv_aix_libpath_"; then
11371 lt_cv_aix_libpath_="/usr/lib:/lib"
11372 fi
11373
11374 fi
11375
11376 aix_libpath=$lt_cv_aix_libpath_
11377 fi
11378
11379 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11380 # Warning - without using the other run time loading flags,
11381 # -berok will link without error, but may produce a broken library.
11382 no_undefined_flag=' ${wl}-bernotok'
11383 allow_undefined_flag=' ${wl}-berok'
11384 if test "$with_gnu_ld" = yes; then
11385 # We only use this code for GNU lds that support --whole-archive.
11386 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11387 else
11388 # Exported symbols can be pulled into shared objects from archives
11389 whole_archive_flag_spec='$convenience'
11390 fi
11391 archive_cmds_need_lc=yes
11392 # This is similar to how AIX traditionally builds its shared libraries.
11393 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'
11394 fi
11395 fi
11396 ;;
11397
11398 amigaos*)
11399 case $host_cpu in
11400 powerpc)
11401 # see comment about AmigaOS4 .so support
11402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11403 archive_expsym_cmds=''
11404 ;;
11405 m68k)
11406 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)'
11407 hardcode_libdir_flag_spec='-L$libdir'
11408 hardcode_minus_L=yes
11409 ;;
11410 esac
11411 ;;
11412
11413 bsdi[45]*)
11414 export_dynamic_flag_spec=-rdynamic
11415 ;;
11416
11417 cygwin* | mingw* | pw32* | cegcc*)
11418 # When not using gcc, we currently assume that we are using
11419 # Microsoft Visual C++.
11420 # hardcode_libdir_flag_spec is actually meaningless, as there is
11421 # no search path for DLLs.
11422 case $cc_basename in
11423 cl*)
11424 # Native MSVC
11425 hardcode_libdir_flag_spec=' '
11426 allow_undefined_flag=unsupported
11427 always_export_symbols=yes
11428 file_list_spec='@'
11429 # Tell ltmain to make .lib files, not .a files.
11430 libext=lib
11431 # Tell ltmain to make .dll files, not .so files.
11432 shrext_cmds=".dll"
11433 # FIXME: Setting linknames here is a bad hack.
11434 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11435 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11436 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11437 else
11438 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11439 fi~
11440 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11441 linknames='
11442 # The linker will not automatically build a static lib if we build a DLL.
11443 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11444 enable_shared_with_static_runtimes=yes
11445 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11446 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11447 # Don't use ranlib
11448 old_postinstall_cmds='chmod 644 $oldlib'
11449 postlink_cmds='lt_outputfile="@OUTPUT@"~
11450 lt_tool_outputfile="@TOOL_OUTPUT@"~
11451 case $lt_outputfile in
11452 *.exe|*.EXE) ;;
11453 *)
11454 lt_outputfile="$lt_outputfile.exe"
11455 lt_tool_outputfile="$lt_tool_outputfile.exe"
11456 ;;
11457 esac~
11458 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11459 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11460 $RM "$lt_outputfile.manifest";
11461 fi'
11462 ;;
11463 *)
11464 # Assume MSVC wrapper
11465 hardcode_libdir_flag_spec=' '
11466 allow_undefined_flag=unsupported
11467 # Tell ltmain to make .lib files, not .a files.
11468 libext=lib
11469 # Tell ltmain to make .dll files, not .so files.
11470 shrext_cmds=".dll"
11471 # FIXME: Setting linknames here is a bad hack.
11472 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11473 # The linker will automatically build a .lib file if we build a DLL.
11474 old_archive_from_new_cmds='true'
11475 # FIXME: Should let the user specify the lib program.
11476 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11477 enable_shared_with_static_runtimes=yes
11478 ;;
11479 esac
11480 ;;
11481
11482 darwin* | rhapsody*)
11483
11484
11485 archive_cmds_need_lc=no
11486 hardcode_direct=no
11487 hardcode_automatic=yes
11488 hardcode_shlibpath_var=unsupported
11489 if test "$lt_cv_ld_force_load" = "yes"; then
11490 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\"`'
11491
11492 else
11493 whole_archive_flag_spec=''
11494 fi
11495 link_all_deplibs=yes
11496 allow_undefined_flag="$_lt_dar_allow_undefined"
11497 case $cc_basename in
11498 ifort*) _lt_dar_can_shared=yes ;;
11499 *) _lt_dar_can_shared=$GCC ;;
11500 esac
11501 if test "$_lt_dar_can_shared" = "yes"; then
11502 output_verbose_link_cmd=func_echo_all
11503 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11504 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11505 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}"
11506 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}"
11507
11508 else
11509 ld_shlibs=no
11510 fi
11511
11512 ;;
11513
11514 dgux*)
11515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11516 hardcode_libdir_flag_spec='-L$libdir'
11517 hardcode_shlibpath_var=no
11518 ;;
11519
11520 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11521 # support. Future versions do this automatically, but an explicit c++rt0.o
11522 # does not break anything, and helps significantly (at the cost of a little
11523 # extra space).
11524 freebsd2.2*)
11525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11526 hardcode_libdir_flag_spec='-R$libdir'
11527 hardcode_direct=yes
11528 hardcode_shlibpath_var=no
11529 ;;
11530
11531 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11532 freebsd2.*)
11533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11534 hardcode_direct=yes
11535 hardcode_minus_L=yes
11536 hardcode_shlibpath_var=no
11537 ;;
11538
11539 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11540 freebsd* | dragonfly*)
11541 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11542 hardcode_libdir_flag_spec='-R$libdir'
11543 hardcode_direct=yes
11544 hardcode_shlibpath_var=no
11545 ;;
11546
11547 hpux9*)
11548 if test "$GCC" = yes; then
11549 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'
11550 else
11551 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'
11552 fi
11553 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11554 hardcode_libdir_separator=:
11555 hardcode_direct=yes
11556
11557 # hardcode_minus_L: Not really in the search PATH,
11558 # but as the default location of the library.
11559 hardcode_minus_L=yes
11560 export_dynamic_flag_spec='${wl}-E'
11561 ;;
11562
11563 hpux10*)
11564 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11565 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11566 else
11567 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11568 fi
11569 if test "$with_gnu_ld" = no; then
11570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11571 hardcode_libdir_separator=:
11572 hardcode_direct=yes
11573 hardcode_direct_absolute=yes
11574 export_dynamic_flag_spec='${wl}-E'
11575 # hardcode_minus_L: Not really in the search PATH,
11576 # but as the default location of the library.
11577 hardcode_minus_L=yes
11578 fi
11579 ;;
11580
11581 hpux11*)
11582 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11583 case $host_cpu in
11584 hppa*64*)
11585 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11586 ;;
11587 ia64*)
11588 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11589 ;;
11590 *)
11591 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11592 ;;
11593 esac
11594 else
11595 case $host_cpu in
11596 hppa*64*)
11597 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11598 ;;
11599 ia64*)
11600 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11601 ;;
11602 *)
11603
11604 # Older versions of the 11.00 compiler do not understand -b yet
11605 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11607 $as_echo_n "checking if $CC understands -b... " >&6; }
11608 if ${lt_cv_prog_compiler__b+:} false; then :
11609 $as_echo_n "(cached) " >&6
11610 else
11611 lt_cv_prog_compiler__b=no
11612 save_LDFLAGS="$LDFLAGS"
11613 LDFLAGS="$LDFLAGS -b"
11614 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11615 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11616 # The linker can only warn and ignore the option if not recognized
11617 # So say no if there are warnings
11618 if test -s conftest.err; then
11619 # Append any errors to the config.log.
11620 cat conftest.err 1>&5
11621 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11623 if diff conftest.exp conftest.er2 >/dev/null; then
11624 lt_cv_prog_compiler__b=yes
11625 fi
11626 else
11627 lt_cv_prog_compiler__b=yes
11628 fi
11629 fi
11630 $RM -r conftest*
11631 LDFLAGS="$save_LDFLAGS"
11632
11633 fi
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11635 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11636
11637 if test x"$lt_cv_prog_compiler__b" = xyes; then
11638 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11639 else
11640 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11641 fi
11642
11643 ;;
11644 esac
11645 fi
11646 if test "$with_gnu_ld" = no; then
11647 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11648 hardcode_libdir_separator=:
11649
11650 case $host_cpu in
11651 hppa*64*|ia64*)
11652 hardcode_direct=no
11653 hardcode_shlibpath_var=no
11654 ;;
11655 *)
11656 hardcode_direct=yes
11657 hardcode_direct_absolute=yes
11658 export_dynamic_flag_spec='${wl}-E'
11659
11660 # hardcode_minus_L: Not really in the search PATH,
11661 # but as the default location of the library.
11662 hardcode_minus_L=yes
11663 ;;
11664 esac
11665 fi
11666 ;;
11667
11668 irix5* | irix6* | nonstopux*)
11669 if test "$GCC" = yes; then
11670 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'
11671 # Try to use the -exported_symbol ld option, if it does not
11672 # work, assume that -exports_file does not work either and
11673 # implicitly export all symbols.
11674 # This should be the same for all languages, so no per-tag cache variable.
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11676 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11677 if ${lt_cv_irix_exported_symbol+:} false; then :
11678 $as_echo_n "(cached) " >&6
11679 else
11680 save_LDFLAGS="$LDFLAGS"
11681 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11684 int foo (void) { return 0; }
11685 _ACEOF
11686 if ac_fn_c_try_link "$LINENO"; then :
11687 lt_cv_irix_exported_symbol=yes
11688 else
11689 lt_cv_irix_exported_symbol=no
11690 fi
11691 rm -f core conftest.err conftest.$ac_objext \
11692 conftest$ac_exeext conftest.$ac_ext
11693 LDFLAGS="$save_LDFLAGS"
11694 fi
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11696 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11697 if test "$lt_cv_irix_exported_symbol" = yes; then
11698 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'
11699 fi
11700 else
11701 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'
11702 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'
11703 fi
11704 archive_cmds_need_lc='no'
11705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11706 hardcode_libdir_separator=:
11707 inherit_rpath=yes
11708 link_all_deplibs=yes
11709 ;;
11710
11711 netbsd*)
11712 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11713 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11714 else
11715 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11716 fi
11717 hardcode_libdir_flag_spec='-R$libdir'
11718 hardcode_direct=yes
11719 hardcode_shlibpath_var=no
11720 ;;
11721
11722 newsos6)
11723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11724 hardcode_direct=yes
11725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11726 hardcode_libdir_separator=:
11727 hardcode_shlibpath_var=no
11728 ;;
11729
11730 *nto* | *qnx*)
11731 ;;
11732
11733 openbsd*)
11734 if test -f /usr/libexec/ld.so; then
11735 hardcode_direct=yes
11736 hardcode_shlibpath_var=no
11737 hardcode_direct_absolute=yes
11738 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11740 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11741 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11742 export_dynamic_flag_spec='${wl}-E'
11743 else
11744 case $host_os in
11745 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11746 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11747 hardcode_libdir_flag_spec='-R$libdir'
11748 ;;
11749 *)
11750 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11751 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11752 ;;
11753 esac
11754 fi
11755 else
11756 ld_shlibs=no
11757 fi
11758 ;;
11759
11760 os2*)
11761 hardcode_libdir_flag_spec='-L$libdir'
11762 hardcode_minus_L=yes
11763 allow_undefined_flag=unsupported
11764 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'
11765 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11766 ;;
11767
11768 osf3*)
11769 if test "$GCC" = yes; then
11770 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11771 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'
11772 else
11773 allow_undefined_flag=' -expect_unresolved \*'
11774 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'
11775 fi
11776 archive_cmds_need_lc='no'
11777 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11778 hardcode_libdir_separator=:
11779 ;;
11780
11781 osf4* | osf5*) # as osf3* with the addition of -msym flag
11782 if test "$GCC" = yes; then
11783 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11784 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'
11785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11786 else
11787 allow_undefined_flag=' -expect_unresolved \*'
11788 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'
11789 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~
11790 $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'
11791
11792 # Both c and cxx compiler support -rpath directly
11793 hardcode_libdir_flag_spec='-rpath $libdir'
11794 fi
11795 archive_cmds_need_lc='no'
11796 hardcode_libdir_separator=:
11797 ;;
11798
11799 solaris*)
11800 no_undefined_flag=' -z defs'
11801 if test "$GCC" = yes; then
11802 wlarc='${wl}'
11803 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11804 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11805 $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'
11806 else
11807 case `$CC -V 2>&1` in
11808 *"Compilers 5.0"*)
11809 wlarc=''
11810 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11811 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11812 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11813 ;;
11814 *)
11815 wlarc='${wl}'
11816 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11817 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11818 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11819 ;;
11820 esac
11821 fi
11822 hardcode_libdir_flag_spec='-R$libdir'
11823 hardcode_shlibpath_var=no
11824 case $host_os in
11825 solaris2.[0-5] | solaris2.[0-5].*) ;;
11826 *)
11827 # The compiler driver will combine and reorder linker options,
11828 # but understands `-z linker_flag'. GCC discards it without `$wl',
11829 # but is careful enough not to reorder.
11830 # Supported since Solaris 2.6 (maybe 2.5.1?)
11831 if test "$GCC" = yes; then
11832 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11833 else
11834 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11835 fi
11836 ;;
11837 esac
11838 link_all_deplibs=yes
11839 ;;
11840
11841 sunos4*)
11842 if test "x$host_vendor" = xsequent; then
11843 # Use $CC to link under sequent, because it throws in some extra .o
11844 # files that make .init and .fini sections work.
11845 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11846 else
11847 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11848 fi
11849 hardcode_libdir_flag_spec='-L$libdir'
11850 hardcode_direct=yes
11851 hardcode_minus_L=yes
11852 hardcode_shlibpath_var=no
11853 ;;
11854
11855 sysv4)
11856 case $host_vendor in
11857 sni)
11858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11859 hardcode_direct=yes # is this really true???
11860 ;;
11861 siemens)
11862 ## LD is ld it makes a PLAMLIB
11863 ## CC just makes a GrossModule.
11864 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11865 reload_cmds='$CC -r -o $output$reload_objs'
11866 hardcode_direct=no
11867 ;;
11868 motorola)
11869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11870 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11871 ;;
11872 esac
11873 runpath_var='LD_RUN_PATH'
11874 hardcode_shlibpath_var=no
11875 ;;
11876
11877 sysv4.3*)
11878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11879 hardcode_shlibpath_var=no
11880 export_dynamic_flag_spec='-Bexport'
11881 ;;
11882
11883 sysv4*MP*)
11884 if test -d /usr/nec; then
11885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11886 hardcode_shlibpath_var=no
11887 runpath_var=LD_RUN_PATH
11888 hardcode_runpath_var=yes
11889 ld_shlibs=yes
11890 fi
11891 ;;
11892
11893 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11894 no_undefined_flag='${wl}-z,text'
11895 archive_cmds_need_lc=no
11896 hardcode_shlibpath_var=no
11897 runpath_var='LD_RUN_PATH'
11898
11899 if test "$GCC" = yes; then
11900 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11901 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11902 else
11903 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11904 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11905 fi
11906 ;;
11907
11908 sysv5* | sco3.2v5* | sco5v6*)
11909 # Note: We can NOT use -z defs as we might desire, because we do not
11910 # link with -lc, and that would cause any symbols used from libc to
11911 # always be unresolved, which means just about no library would
11912 # ever link correctly. If we're not using GNU ld we use -z text
11913 # though, which does catch some bad symbols but isn't as heavy-handed
11914 # as -z defs.
11915 no_undefined_flag='${wl}-z,text'
11916 allow_undefined_flag='${wl}-z,nodefs'
11917 archive_cmds_need_lc=no
11918 hardcode_shlibpath_var=no
11919 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11920 hardcode_libdir_separator=':'
11921 link_all_deplibs=yes
11922 export_dynamic_flag_spec='${wl}-Bexport'
11923 runpath_var='LD_RUN_PATH'
11924
11925 if test "$GCC" = yes; then
11926 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11927 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11928 else
11929 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11930 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11931 fi
11932 ;;
11933
11934 uts4*)
11935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11936 hardcode_libdir_flag_spec='-L$libdir'
11937 hardcode_shlibpath_var=no
11938 ;;
11939
11940 *)
11941 ld_shlibs=no
11942 ;;
11943 esac
11944
11945 if test x$host_vendor = xsni; then
11946 case $host in
11947 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11948 export_dynamic_flag_spec='${wl}-Blargedynsym'
11949 ;;
11950 esac
11951 fi
11952 fi
11953
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11955 $as_echo "$ld_shlibs" >&6; }
11956 test "$ld_shlibs" = no && can_build_shared=no
11957
11958 with_gnu_ld=$with_gnu_ld
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974 #
11975 # Do we need to explicitly link libc?
11976 #
11977 case "x$archive_cmds_need_lc" in
11978 x|xyes)
11979 # Assume -lc should be added
11980 archive_cmds_need_lc=yes
11981
11982 if test "$enable_shared" = yes && test "$GCC" = yes; then
11983 case $archive_cmds in
11984 *'~'*)
11985 # FIXME: we may have to deal with multi-command sequences.
11986 ;;
11987 '$CC '*)
11988 # Test whether the compiler implicitly links with -lc since on some
11989 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11990 # to ld, don't add -lc before -lgcc.
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11992 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11993 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11994 $as_echo_n "(cached) " >&6
11995 else
11996 $RM conftest*
11997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11998
11999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12000 (eval $ac_compile) 2>&5
12001 ac_status=$?
12002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12003 test $ac_status = 0; } 2>conftest.err; then
12004 soname=conftest
12005 lib=conftest
12006 libobjs=conftest.$ac_objext
12007 deplibs=
12008 wl=$lt_prog_compiler_wl
12009 pic_flag=$lt_prog_compiler_pic
12010 compiler_flags=-v
12011 linker_flags=-v
12012 verstring=
12013 output_objdir=.
12014 libname=conftest
12015 lt_save_allow_undefined_flag=$allow_undefined_flag
12016 allow_undefined_flag=
12017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12018 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12019 ac_status=$?
12020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12021 test $ac_status = 0; }
12022 then
12023 lt_cv_archive_cmds_need_lc=no
12024 else
12025 lt_cv_archive_cmds_need_lc=yes
12026 fi
12027 allow_undefined_flag=$lt_save_allow_undefined_flag
12028 else
12029 cat conftest.err 1>&5
12030 fi
12031 $RM conftest*
12032
12033 fi
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12035 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12036 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12037 ;;
12038 esac
12039 fi
12040 ;;
12041 esac
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12195 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12196
12197 if test "$GCC" = yes; then
12198 case $host_os in
12199 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12200 *) lt_awk_arg="/^libraries:/" ;;
12201 esac
12202 case $host_os in
12203 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12204 *) lt_sed_strip_eq="s,=/,/,g" ;;
12205 esac
12206 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12207 case $lt_search_path_spec in
12208 *\;*)
12209 # if the path contains ";" then we assume it to be the separator
12210 # otherwise default to the standard path separator (i.e. ":") - it is
12211 # assumed that no part of a normal pathname contains ";" but that should
12212 # okay in the real world where ";" in dirpaths is itself problematic.
12213 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12214 ;;
12215 *)
12216 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12217 ;;
12218 esac
12219 # Ok, now we have the path, separated by spaces, we can step through it
12220 # and add multilib dir if necessary.
12221 lt_tmp_lt_search_path_spec=
12222 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12223 for lt_sys_path in $lt_search_path_spec; do
12224 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12225 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12226 else
12227 test -d "$lt_sys_path" && \
12228 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12229 fi
12230 done
12231 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12232 BEGIN {RS=" "; FS="/|\n";} {
12233 lt_foo="";
12234 lt_count=0;
12235 for (lt_i = NF; lt_i > 0; lt_i--) {
12236 if ($lt_i != "" && $lt_i != ".") {
12237 if ($lt_i == "..") {
12238 lt_count++;
12239 } else {
12240 if (lt_count == 0) {
12241 lt_foo="/" $lt_i lt_foo;
12242 } else {
12243 lt_count--;
12244 }
12245 }
12246 }
12247 }
12248 if (lt_foo != "") { lt_freq[lt_foo]++; }
12249 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12250 }'`
12251 # AWK program above erroneously prepends '/' to C:/dos/paths
12252 # for these hosts.
12253 case $host_os in
12254 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12255 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12256 esac
12257 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12258 else
12259 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12260 fi
12261 library_names_spec=
12262 libname_spec='lib$name'
12263 soname_spec=
12264 shrext_cmds=".so"
12265 postinstall_cmds=
12266 postuninstall_cmds=
12267 finish_cmds=
12268 finish_eval=
12269 shlibpath_var=
12270 shlibpath_overrides_runpath=unknown
12271 version_type=none
12272 dynamic_linker="$host_os ld.so"
12273 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12274 need_lib_prefix=unknown
12275 hardcode_into_libs=no
12276
12277 # when you set need_version to no, make sure it does not cause -set_version
12278 # flags to be left without arguments
12279 need_version=unknown
12280
12281 case $host_os in
12282 aix3*)
12283 version_type=linux # correct to gnu/linux during the next big refactor
12284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12285 shlibpath_var=LIBPATH
12286
12287 # AIX 3 has no versioning support, so we append a major version to the name.
12288 soname_spec='${libname}${release}${shared_ext}$major'
12289 ;;
12290
12291 aix[4-9]*)
12292 version_type=linux # correct to gnu/linux during the next big refactor
12293 need_lib_prefix=no
12294 need_version=no
12295 hardcode_into_libs=yes
12296 if test "$host_cpu" = ia64; then
12297 # AIX 5 supports IA64
12298 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12299 shlibpath_var=LD_LIBRARY_PATH
12300 else
12301 # With GCC up to 2.95.x, collect2 would create an import file
12302 # for dependence libraries. The import file would start with
12303 # the line `#! .'. This would cause the generated library to
12304 # depend on `.', always an invalid library. This was fixed in
12305 # development snapshots of GCC prior to 3.0.
12306 case $host_os in
12307 aix4 | aix4.[01] | aix4.[01].*)
12308 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12309 echo ' yes '
12310 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12311 :
12312 else
12313 can_build_shared=no
12314 fi
12315 ;;
12316 esac
12317 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12318 # soname into executable. Probably we can add versioning support to
12319 # collect2, so additional links can be useful in future.
12320 if test "$aix_use_runtimelinking" = yes; then
12321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12322 # instead of lib<name>.a to let people know that these are not
12323 # typical AIX shared libraries.
12324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12325 else
12326 # We preserve .a as extension for shared libraries through AIX4.2
12327 # and later when we are not doing run time linking.
12328 library_names_spec='${libname}${release}.a $libname.a'
12329 soname_spec='${libname}${release}${shared_ext}$major'
12330 fi
12331 shlibpath_var=LIBPATH
12332 fi
12333 ;;
12334
12335 amigaos*)
12336 case $host_cpu in
12337 powerpc)
12338 # Since July 2007 AmigaOS4 officially supports .so libraries.
12339 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12341 ;;
12342 m68k)
12343 library_names_spec='$libname.ixlibrary $libname.a'
12344 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12345 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'
12346 ;;
12347 esac
12348 ;;
12349
12350 beos*)
12351 library_names_spec='${libname}${shared_ext}'
12352 dynamic_linker="$host_os ld.so"
12353 shlibpath_var=LIBRARY_PATH
12354 ;;
12355
12356 bsdi[45]*)
12357 version_type=linux # correct to gnu/linux during the next big refactor
12358 need_version=no
12359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12360 soname_spec='${libname}${release}${shared_ext}$major'
12361 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12362 shlibpath_var=LD_LIBRARY_PATH
12363 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12364 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12365 # the default ld.so.conf also contains /usr/contrib/lib and
12366 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12367 # libtool to hard-code these into programs
12368 ;;
12369
12370 cygwin* | mingw* | pw32* | cegcc*)
12371 version_type=windows
12372 shrext_cmds=".dll"
12373 need_version=no
12374 need_lib_prefix=no
12375
12376 case $GCC,$cc_basename in
12377 yes,*)
12378 # gcc
12379 library_names_spec='$libname.dll.a'
12380 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12381 postinstall_cmds='base_file=`basename \${file}`~
12382 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12383 dldir=$destdir/`dirname \$dlpath`~
12384 test -d \$dldir || mkdir -p \$dldir~
12385 $install_prog $dir/$dlname \$dldir/$dlname~
12386 chmod a+x \$dldir/$dlname~
12387 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12388 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12389 fi'
12390 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12391 dlpath=$dir/\$dldll~
12392 $RM \$dlpath'
12393 shlibpath_overrides_runpath=yes
12394
12395 case $host_os in
12396 cygwin*)
12397 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12398 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12399
12400 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12401 ;;
12402 mingw* | cegcc*)
12403 # MinGW DLLs use traditional 'lib' prefix
12404 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12405 ;;
12406 pw32*)
12407 # pw32 DLLs use 'pw' prefix rather than 'lib'
12408 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12409 ;;
12410 esac
12411 dynamic_linker='Win32 ld.exe'
12412 ;;
12413
12414 *,cl*)
12415 # Native MSVC
12416 libname_spec='$name'
12417 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12418 library_names_spec='${libname}.dll.lib'
12419
12420 case $build_os in
12421 mingw*)
12422 sys_lib_search_path_spec=
12423 lt_save_ifs=$IFS
12424 IFS=';'
12425 for lt_path in $LIB
12426 do
12427 IFS=$lt_save_ifs
12428 # Let DOS variable expansion print the short 8.3 style file name.
12429 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12430 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12431 done
12432 IFS=$lt_save_ifs
12433 # Convert to MSYS style.
12434 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12435 ;;
12436 cygwin*)
12437 # Convert to unix form, then to dos form, then back to unix form
12438 # but this time dos style (no spaces!) so that the unix form looks
12439 # like /cygdrive/c/PROGRA~1:/cygdr...
12440 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12441 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12442 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12443 ;;
12444 *)
12445 sys_lib_search_path_spec="$LIB"
12446 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12447 # It is most probably a Windows format PATH.
12448 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12449 else
12450 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12451 fi
12452 # FIXME: find the short name or the path components, as spaces are
12453 # common. (e.g. "Program Files" -> "PROGRA~1")
12454 ;;
12455 esac
12456
12457 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12458 postinstall_cmds='base_file=`basename \${file}`~
12459 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12460 dldir=$destdir/`dirname \$dlpath`~
12461 test -d \$dldir || mkdir -p \$dldir~
12462 $install_prog $dir/$dlname \$dldir/$dlname'
12463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12464 dlpath=$dir/\$dldll~
12465 $RM \$dlpath'
12466 shlibpath_overrides_runpath=yes
12467 dynamic_linker='Win32 link.exe'
12468 ;;
12469
12470 *)
12471 # Assume MSVC wrapper
12472 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12473 dynamic_linker='Win32 ld.exe'
12474 ;;
12475 esac
12476 # FIXME: first we should search . and the directory the executable is in
12477 shlibpath_var=PATH
12478 ;;
12479
12480 darwin* | rhapsody*)
12481 dynamic_linker="$host_os dyld"
12482 version_type=darwin
12483 need_lib_prefix=no
12484 need_version=no
12485 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12486 soname_spec='${libname}${release}${major}$shared_ext'
12487 shlibpath_overrides_runpath=yes
12488 shlibpath_var=DYLD_LIBRARY_PATH
12489 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12490
12491 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12492 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12493 ;;
12494
12495 dgux*)
12496 version_type=linux # correct to gnu/linux during the next big refactor
12497 need_lib_prefix=no
12498 need_version=no
12499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12500 soname_spec='${libname}${release}${shared_ext}$major'
12501 shlibpath_var=LD_LIBRARY_PATH
12502 ;;
12503
12504 freebsd* | dragonfly*)
12505 # DragonFly does not have aout. When/if they implement a new
12506 # versioning mechanism, adjust this.
12507 if test -x /usr/bin/objformat; then
12508 objformat=`/usr/bin/objformat`
12509 else
12510 case $host_os in
12511 freebsd[23].*) objformat=aout ;;
12512 *) objformat=elf ;;
12513 esac
12514 fi
12515 version_type=freebsd-$objformat
12516 case $version_type in
12517 freebsd-elf*)
12518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12519 need_version=no
12520 need_lib_prefix=no
12521 ;;
12522 freebsd-*)
12523 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12524 need_version=yes
12525 ;;
12526 esac
12527 shlibpath_var=LD_LIBRARY_PATH
12528 case $host_os in
12529 freebsd2.*)
12530 shlibpath_overrides_runpath=yes
12531 ;;
12532 freebsd3.[01]* | freebsdelf3.[01]*)
12533 shlibpath_overrides_runpath=yes
12534 hardcode_into_libs=yes
12535 ;;
12536 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12537 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12538 shlibpath_overrides_runpath=no
12539 hardcode_into_libs=yes
12540 ;;
12541 *) # from 4.6 on, and DragonFly
12542 shlibpath_overrides_runpath=yes
12543 hardcode_into_libs=yes
12544 ;;
12545 esac
12546 ;;
12547
12548 gnu*)
12549 version_type=linux # correct to gnu/linux during the next big refactor
12550 need_lib_prefix=no
12551 need_version=no
12552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12553 soname_spec='${libname}${release}${shared_ext}$major'
12554 shlibpath_var=LD_LIBRARY_PATH
12555 shlibpath_overrides_runpath=no
12556 hardcode_into_libs=yes
12557 ;;
12558
12559 haiku*)
12560 version_type=linux # correct to gnu/linux during the next big refactor
12561 need_lib_prefix=no
12562 need_version=no
12563 dynamic_linker="$host_os runtime_loader"
12564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12565 soname_spec='${libname}${release}${shared_ext}$major'
12566 shlibpath_var=LIBRARY_PATH
12567 shlibpath_overrides_runpath=yes
12568 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12569 hardcode_into_libs=yes
12570 ;;
12571
12572 hpux9* | hpux10* | hpux11*)
12573 # Give a soname corresponding to the major version so that dld.sl refuses to
12574 # link against other versions.
12575 version_type=sunos
12576 need_lib_prefix=no
12577 need_version=no
12578 case $host_cpu in
12579 ia64*)
12580 shrext_cmds='.so'
12581 hardcode_into_libs=yes
12582 dynamic_linker="$host_os dld.so"
12583 shlibpath_var=LD_LIBRARY_PATH
12584 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12586 soname_spec='${libname}${release}${shared_ext}$major'
12587 if test "X$HPUX_IA64_MODE" = X32; then
12588 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12589 else
12590 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12591 fi
12592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12593 ;;
12594 hppa*64*)
12595 shrext_cmds='.sl'
12596 hardcode_into_libs=yes
12597 dynamic_linker="$host_os dld.sl"
12598 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12601 soname_spec='${libname}${release}${shared_ext}$major'
12602 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12604 ;;
12605 *)
12606 shrext_cmds='.sl'
12607 dynamic_linker="$host_os dld.sl"
12608 shlibpath_var=SHLIB_PATH
12609 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12611 soname_spec='${libname}${release}${shared_ext}$major'
12612 ;;
12613 esac
12614 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12615 postinstall_cmds='chmod 555 $lib'
12616 # or fails outright, so override atomically:
12617 install_override_mode=555
12618 ;;
12619
12620 interix[3-9]*)
12621 version_type=linux # correct to gnu/linux during the next big refactor
12622 need_lib_prefix=no
12623 need_version=no
12624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12625 soname_spec='${libname}${release}${shared_ext}$major'
12626 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12627 shlibpath_var=LD_LIBRARY_PATH
12628 shlibpath_overrides_runpath=no
12629 hardcode_into_libs=yes
12630 ;;
12631
12632 irix5* | irix6* | nonstopux*)
12633 case $host_os in
12634 nonstopux*) version_type=nonstopux ;;
12635 *)
12636 if test "$lt_cv_prog_gnu_ld" = yes; then
12637 version_type=linux # correct to gnu/linux during the next big refactor
12638 else
12639 version_type=irix
12640 fi ;;
12641 esac
12642 need_lib_prefix=no
12643 need_version=no
12644 soname_spec='${libname}${release}${shared_ext}$major'
12645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12646 case $host_os in
12647 irix5* | nonstopux*)
12648 libsuff= shlibsuff=
12649 ;;
12650 *)
12651 case $LD in # libtool.m4 will add one of these switches to LD
12652 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12653 libsuff= shlibsuff= libmagic=32-bit;;
12654 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12655 libsuff=32 shlibsuff=N32 libmagic=N32;;
12656 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12657 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12658 *) libsuff= shlibsuff= libmagic=never-match;;
12659 esac
12660 ;;
12661 esac
12662 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12663 shlibpath_overrides_runpath=no
12664 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12665 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12666 hardcode_into_libs=yes
12667 ;;
12668
12669 # No shared lib support for Linux oldld, aout, or coff.
12670 linux*oldld* | linux*aout* | linux*coff*)
12671 dynamic_linker=no
12672 ;;
12673
12674 # This must be glibc/ELF.
12675 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12676 version_type=linux # correct to gnu/linux during the next big refactor
12677 need_lib_prefix=no
12678 need_version=no
12679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12680 soname_spec='${libname}${release}${shared_ext}$major'
12681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12682 shlibpath_var=LD_LIBRARY_PATH
12683 shlibpath_overrides_runpath=no
12684
12685 # Some binutils ld are patched to set DT_RUNPATH
12686 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12687 $as_echo_n "(cached) " >&6
12688 else
12689 lt_cv_shlibpath_overrides_runpath=no
12690 save_LDFLAGS=$LDFLAGS
12691 save_libdir=$libdir
12692 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12693 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12695 /* end confdefs.h. */
12696
12697 int
12698 main ()
12699 {
12700
12701 ;
12702 return 0;
12703 }
12704 _ACEOF
12705 if ac_fn_c_try_link "$LINENO"; then :
12706 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12707 lt_cv_shlibpath_overrides_runpath=yes
12708 fi
12709 fi
12710 rm -f core conftest.err conftest.$ac_objext \
12711 conftest$ac_exeext conftest.$ac_ext
12712 LDFLAGS=$save_LDFLAGS
12713 libdir=$save_libdir
12714
12715 fi
12716
12717 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12718
12719 # This implies no fast_install, which is unacceptable.
12720 # Some rework will be needed to allow for fast_install
12721 # before this can be enabled.
12722 hardcode_into_libs=yes
12723
12724 # Add ABI-specific directories to the system library path.
12725 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12726
12727 # Append ld.so.conf contents to the search path
12728 if test -f /etc/ld.so.conf; then
12729 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' ' '`
12730 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12731
12732 fi
12733
12734 # We used to test for /lib/ld.so.1 and disable shared libraries on
12735 # powerpc, because MkLinux only supported shared libraries with the
12736 # GNU dynamic linker. Since this was broken with cross compilers,
12737 # most powerpc-linux boxes support dynamic linking these days and
12738 # people can always --disable-shared, the test was removed, and we
12739 # assume the GNU/Linux dynamic linker is in use.
12740 dynamic_linker='GNU/Linux ld.so'
12741 ;;
12742
12743 netbsd*)
12744 version_type=sunos
12745 need_lib_prefix=no
12746 need_version=no
12747 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12750 dynamic_linker='NetBSD (a.out) ld.so'
12751 else
12752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12753 soname_spec='${libname}${release}${shared_ext}$major'
12754 dynamic_linker='NetBSD ld.elf_so'
12755 fi
12756 shlibpath_var=LD_LIBRARY_PATH
12757 shlibpath_overrides_runpath=yes
12758 hardcode_into_libs=yes
12759 ;;
12760
12761 newsos6)
12762 version_type=linux # correct to gnu/linux during the next big refactor
12763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12764 shlibpath_var=LD_LIBRARY_PATH
12765 shlibpath_overrides_runpath=yes
12766 ;;
12767
12768 *nto* | *qnx*)
12769 version_type=qnx
12770 need_lib_prefix=no
12771 need_version=no
12772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12773 soname_spec='${libname}${release}${shared_ext}$major'
12774 shlibpath_var=LD_LIBRARY_PATH
12775 shlibpath_overrides_runpath=no
12776 hardcode_into_libs=yes
12777 dynamic_linker='ldqnx.so'
12778 ;;
12779
12780 openbsd*)
12781 version_type=sunos
12782 sys_lib_dlsearch_path_spec="/usr/lib"
12783 need_lib_prefix=no
12784 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12785 case $host_os in
12786 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12787 *) need_version=no ;;
12788 esac
12789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12791 shlibpath_var=LD_LIBRARY_PATH
12792 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12793 case $host_os in
12794 openbsd2.[89] | openbsd2.[89].*)
12795 shlibpath_overrides_runpath=no
12796 ;;
12797 *)
12798 shlibpath_overrides_runpath=yes
12799 ;;
12800 esac
12801 else
12802 shlibpath_overrides_runpath=yes
12803 fi
12804 ;;
12805
12806 os2*)
12807 libname_spec='$name'
12808 shrext_cmds=".dll"
12809 need_lib_prefix=no
12810 library_names_spec='$libname${shared_ext} $libname.a'
12811 dynamic_linker='OS/2 ld.exe'
12812 shlibpath_var=LIBPATH
12813 ;;
12814
12815 osf3* | osf4* | osf5*)
12816 version_type=osf
12817 need_lib_prefix=no
12818 need_version=no
12819 soname_spec='${libname}${release}${shared_ext}$major'
12820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12821 shlibpath_var=LD_LIBRARY_PATH
12822 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12823 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12824 ;;
12825
12826 rdos*)
12827 dynamic_linker=no
12828 ;;
12829
12830 solaris*)
12831 version_type=linux # correct to gnu/linux during the next big refactor
12832 need_lib_prefix=no
12833 need_version=no
12834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12835 soname_spec='${libname}${release}${shared_ext}$major'
12836 shlibpath_var=LD_LIBRARY_PATH
12837 shlibpath_overrides_runpath=yes
12838 hardcode_into_libs=yes
12839 # ldd complains unless libraries are executable
12840 postinstall_cmds='chmod +x $lib'
12841 ;;
12842
12843 sunos4*)
12844 version_type=sunos
12845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12846 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12847 shlibpath_var=LD_LIBRARY_PATH
12848 shlibpath_overrides_runpath=yes
12849 if test "$with_gnu_ld" = yes; then
12850 need_lib_prefix=no
12851 fi
12852 need_version=yes
12853 ;;
12854
12855 sysv4 | sysv4.3*)
12856 version_type=linux # correct to gnu/linux during the next big refactor
12857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12858 soname_spec='${libname}${release}${shared_ext}$major'
12859 shlibpath_var=LD_LIBRARY_PATH
12860 case $host_vendor in
12861 sni)
12862 shlibpath_overrides_runpath=no
12863 need_lib_prefix=no
12864 runpath_var=LD_RUN_PATH
12865 ;;
12866 siemens)
12867 need_lib_prefix=no
12868 ;;
12869 motorola)
12870 need_lib_prefix=no
12871 need_version=no
12872 shlibpath_overrides_runpath=no
12873 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12874 ;;
12875 esac
12876 ;;
12877
12878 sysv4*MP*)
12879 if test -d /usr/nec ;then
12880 version_type=linux # correct to gnu/linux during the next big refactor
12881 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12882 soname_spec='$libname${shared_ext}.$major'
12883 shlibpath_var=LD_LIBRARY_PATH
12884 fi
12885 ;;
12886
12887 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12888 version_type=freebsd-elf
12889 need_lib_prefix=no
12890 need_version=no
12891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12892 soname_spec='${libname}${release}${shared_ext}$major'
12893 shlibpath_var=LD_LIBRARY_PATH
12894 shlibpath_overrides_runpath=yes
12895 hardcode_into_libs=yes
12896 if test "$with_gnu_ld" = yes; then
12897 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12898 else
12899 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12900 case $host_os in
12901 sco3.2v5*)
12902 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12903 ;;
12904 esac
12905 fi
12906 sys_lib_dlsearch_path_spec='/usr/lib'
12907 ;;
12908
12909 tpf*)
12910 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12911 version_type=linux # correct to gnu/linux during the next big refactor
12912 need_lib_prefix=no
12913 need_version=no
12914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12915 shlibpath_var=LD_LIBRARY_PATH
12916 shlibpath_overrides_runpath=no
12917 hardcode_into_libs=yes
12918 ;;
12919
12920 uts4*)
12921 version_type=linux # correct to gnu/linux during the next big refactor
12922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12923 soname_spec='${libname}${release}${shared_ext}$major'
12924 shlibpath_var=LD_LIBRARY_PATH
12925 ;;
12926
12927 *)
12928 dynamic_linker=no
12929 ;;
12930 esac
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12932 $as_echo "$dynamic_linker" >&6; }
12933 test "$dynamic_linker" = no && can_build_shared=no
12934
12935 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12936 if test "$GCC" = yes; then
12937 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12938 fi
12939
12940 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12941 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12942 fi
12943 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12944 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12945 fi
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13039 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13040 hardcode_action=
13041 if test -n "$hardcode_libdir_flag_spec" ||
13042 test -n "$runpath_var" ||
13043 test "X$hardcode_automatic" = "Xyes" ; then
13044
13045 # We can hardcode non-existent directories.
13046 if test "$hardcode_direct" != no &&
13047 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13048 # have to relink, otherwise we might link with an installed library
13049 # when we should be linking with a yet-to-be-installed one
13050 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13051 test "$hardcode_minus_L" != no; then
13052 # Linking always hardcodes the temporary library directory.
13053 hardcode_action=relink
13054 else
13055 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13056 hardcode_action=immediate
13057 fi
13058 else
13059 # We cannot hardcode anything, or else we can only hardcode existing
13060 # directories.
13061 hardcode_action=unsupported
13062 fi
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13064 $as_echo "$hardcode_action" >&6; }
13065
13066 if test "$hardcode_action" = relink ||
13067 test "$inherit_rpath" = yes; then
13068 # Fast installation is not supported
13069 enable_fast_install=no
13070 elif test "$shlibpath_overrides_runpath" = yes ||
13071 test "$enable_shared" = no; then
13072 # Fast installation is not necessary
13073 enable_fast_install=needless
13074 fi
13075
13076
13077
13078
13079
13080
13081 if test "x$enable_dlopen" != xyes; then
13082 enable_dlopen=unknown
13083 enable_dlopen_self=unknown
13084 enable_dlopen_self_static=unknown
13085 else
13086 lt_cv_dlopen=no
13087 lt_cv_dlopen_libs=
13088
13089 case $host_os in
13090 beos*)
13091 lt_cv_dlopen="load_add_on"
13092 lt_cv_dlopen_libs=
13093 lt_cv_dlopen_self=yes
13094 ;;
13095
13096 mingw* | pw32* | cegcc*)
13097 lt_cv_dlopen="LoadLibrary"
13098 lt_cv_dlopen_libs=
13099 ;;
13100
13101 cygwin*)
13102 lt_cv_dlopen="dlopen"
13103 lt_cv_dlopen_libs=
13104 ;;
13105
13106 darwin*)
13107 # if libdl is installed we need to link against it
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13109 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13110 if ${ac_cv_lib_dl_dlopen+:} false; then :
13111 $as_echo_n "(cached) " >&6
13112 else
13113 ac_check_lib_save_LIBS=$LIBS
13114 LIBS="-ldl $LIBS"
13115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h. */
13117
13118 /* Override any GCC internal prototype to avoid an error.
13119 Use char because int might match the return type of a GCC
13120 builtin and then its argument prototype would still apply. */
13121 #ifdef __cplusplus
13122 extern "C"
13123 #endif
13124 char dlopen ();
13125 int
13126 main ()
13127 {
13128 return dlopen ();
13129 ;
13130 return 0;
13131 }
13132 _ACEOF
13133 if ac_fn_c_try_link "$LINENO"; then :
13134 ac_cv_lib_dl_dlopen=yes
13135 else
13136 ac_cv_lib_dl_dlopen=no
13137 fi
13138 rm -f core conftest.err conftest.$ac_objext \
13139 conftest$ac_exeext conftest.$ac_ext
13140 LIBS=$ac_check_lib_save_LIBS
13141 fi
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13143 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13144 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13145 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13146 else
13147
13148 lt_cv_dlopen="dyld"
13149 lt_cv_dlopen_libs=
13150 lt_cv_dlopen_self=yes
13151
13152 fi
13153
13154 ;;
13155
13156 *)
13157 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13158 if test "x$ac_cv_func_shl_load" = xyes; then :
13159 lt_cv_dlopen="shl_load"
13160 else
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13162 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13163 if ${ac_cv_lib_dld_shl_load+:} false; then :
13164 $as_echo_n "(cached) " >&6
13165 else
13166 ac_check_lib_save_LIBS=$LIBS
13167 LIBS="-ldld $LIBS"
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13170
13171 /* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
13174 #ifdef __cplusplus
13175 extern "C"
13176 #endif
13177 char shl_load ();
13178 int
13179 main ()
13180 {
13181 return shl_load ();
13182 ;
13183 return 0;
13184 }
13185 _ACEOF
13186 if ac_fn_c_try_link "$LINENO"; then :
13187 ac_cv_lib_dld_shl_load=yes
13188 else
13189 ac_cv_lib_dld_shl_load=no
13190 fi
13191 rm -f core conftest.err conftest.$ac_objext \
13192 conftest$ac_exeext conftest.$ac_ext
13193 LIBS=$ac_check_lib_save_LIBS
13194 fi
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13196 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13197 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13198 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13199 else
13200 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13201 if test "x$ac_cv_func_dlopen" = xyes; then :
13202 lt_cv_dlopen="dlopen"
13203 else
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13205 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13206 if ${ac_cv_lib_dl_dlopen+:} false; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 ac_check_lib_save_LIBS=$LIBS
13210 LIBS="-ldl $LIBS"
13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h. */
13213
13214 /* Override any GCC internal prototype to avoid an error.
13215 Use char because int might match the return type of a GCC
13216 builtin and then its argument prototype would still apply. */
13217 #ifdef __cplusplus
13218 extern "C"
13219 #endif
13220 char dlopen ();
13221 int
13222 main ()
13223 {
13224 return dlopen ();
13225 ;
13226 return 0;
13227 }
13228 _ACEOF
13229 if ac_fn_c_try_link "$LINENO"; then :
13230 ac_cv_lib_dl_dlopen=yes
13231 else
13232 ac_cv_lib_dl_dlopen=no
13233 fi
13234 rm -f core conftest.err conftest.$ac_objext \
13235 conftest$ac_exeext conftest.$ac_ext
13236 LIBS=$ac_check_lib_save_LIBS
13237 fi
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13239 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13240 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13241 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13242 else
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13244 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13245 if ${ac_cv_lib_svld_dlopen+:} false; then :
13246 $as_echo_n "(cached) " >&6
13247 else
13248 ac_check_lib_save_LIBS=$LIBS
13249 LIBS="-lsvld $LIBS"
13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13252
13253 /* Override any GCC internal prototype to avoid an error.
13254 Use char because int might match the return type of a GCC
13255 builtin and then its argument prototype would still apply. */
13256 #ifdef __cplusplus
13257 extern "C"
13258 #endif
13259 char dlopen ();
13260 int
13261 main ()
13262 {
13263 return dlopen ();
13264 ;
13265 return 0;
13266 }
13267 _ACEOF
13268 if ac_fn_c_try_link "$LINENO"; then :
13269 ac_cv_lib_svld_dlopen=yes
13270 else
13271 ac_cv_lib_svld_dlopen=no
13272 fi
13273 rm -f core conftest.err conftest.$ac_objext \
13274 conftest$ac_exeext conftest.$ac_ext
13275 LIBS=$ac_check_lib_save_LIBS
13276 fi
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13278 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13279 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13280 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13281 else
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13283 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13284 if ${ac_cv_lib_dld_dld_link+:} false; then :
13285 $as_echo_n "(cached) " >&6
13286 else
13287 ac_check_lib_save_LIBS=$LIBS
13288 LIBS="-ldld $LIBS"
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h. */
13291
13292 /* Override any GCC internal prototype to avoid an error.
13293 Use char because int might match the return type of a GCC
13294 builtin and then its argument prototype would still apply. */
13295 #ifdef __cplusplus
13296 extern "C"
13297 #endif
13298 char dld_link ();
13299 int
13300 main ()
13301 {
13302 return dld_link ();
13303 ;
13304 return 0;
13305 }
13306 _ACEOF
13307 if ac_fn_c_try_link "$LINENO"; then :
13308 ac_cv_lib_dld_dld_link=yes
13309 else
13310 ac_cv_lib_dld_dld_link=no
13311 fi
13312 rm -f core conftest.err conftest.$ac_objext \
13313 conftest$ac_exeext conftest.$ac_ext
13314 LIBS=$ac_check_lib_save_LIBS
13315 fi
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13317 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13318 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13319 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13320 fi
13321
13322
13323 fi
13324
13325
13326 fi
13327
13328
13329 fi
13330
13331
13332 fi
13333
13334
13335 fi
13336
13337 ;;
13338 esac
13339
13340 if test "x$lt_cv_dlopen" != xno; then
13341 enable_dlopen=yes
13342 else
13343 enable_dlopen=no
13344 fi
13345
13346 case $lt_cv_dlopen in
13347 dlopen)
13348 save_CPPFLAGS="$CPPFLAGS"
13349 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13350
13351 save_LDFLAGS="$LDFLAGS"
13352 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13353
13354 save_LIBS="$LIBS"
13355 LIBS="$lt_cv_dlopen_libs $LIBS"
13356
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13358 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13359 if ${lt_cv_dlopen_self+:} false; then :
13360 $as_echo_n "(cached) " >&6
13361 else
13362 if test "$cross_compiling" = yes; then :
13363 lt_cv_dlopen_self=cross
13364 else
13365 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13366 lt_status=$lt_dlunknown
13367 cat > conftest.$ac_ext <<_LT_EOF
13368 #line $LINENO "configure"
13369 #include "confdefs.h"
13370
13371 #if HAVE_DLFCN_H
13372 #include <dlfcn.h>
13373 #endif
13374
13375 #include <stdio.h>
13376
13377 #ifdef RTLD_GLOBAL
13378 # define LT_DLGLOBAL RTLD_GLOBAL
13379 #else
13380 # ifdef DL_GLOBAL
13381 # define LT_DLGLOBAL DL_GLOBAL
13382 # else
13383 # define LT_DLGLOBAL 0
13384 # endif
13385 #endif
13386
13387 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13388 find out it does not work in some platform. */
13389 #ifndef LT_DLLAZY_OR_NOW
13390 # ifdef RTLD_LAZY
13391 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13392 # else
13393 # ifdef DL_LAZY
13394 # define LT_DLLAZY_OR_NOW DL_LAZY
13395 # else
13396 # ifdef RTLD_NOW
13397 # define LT_DLLAZY_OR_NOW RTLD_NOW
13398 # else
13399 # ifdef DL_NOW
13400 # define LT_DLLAZY_OR_NOW DL_NOW
13401 # else
13402 # define LT_DLLAZY_OR_NOW 0
13403 # endif
13404 # endif
13405 # endif
13406 # endif
13407 #endif
13408
13409 /* When -fvisbility=hidden is used, assume the code has been annotated
13410 correspondingly for the symbols needed. */
13411 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13412 int fnord () __attribute__((visibility("default")));
13413 #endif
13414
13415 int fnord () { return 42; }
13416 int main ()
13417 {
13418 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13419 int status = $lt_dlunknown;
13420
13421 if (self)
13422 {
13423 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13424 else
13425 {
13426 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13427 else puts (dlerror ());
13428 }
13429 /* dlclose (self); */
13430 }
13431 else
13432 puts (dlerror ());
13433
13434 return status;
13435 }
13436 _LT_EOF
13437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13438 (eval $ac_link) 2>&5
13439 ac_status=$?
13440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13441 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13442 (./conftest; exit; ) >&5 2>/dev/null
13443 lt_status=$?
13444 case x$lt_status in
13445 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13446 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13447 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13448 esac
13449 else :
13450 # compilation failed
13451 lt_cv_dlopen_self=no
13452 fi
13453 fi
13454 rm -fr conftest*
13455
13456
13457 fi
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13459 $as_echo "$lt_cv_dlopen_self" >&6; }
13460
13461 if test "x$lt_cv_dlopen_self" = xyes; then
13462 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13464 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13465 if ${lt_cv_dlopen_self_static+:} false; then :
13466 $as_echo_n "(cached) " >&6
13467 else
13468 if test "$cross_compiling" = yes; then :
13469 lt_cv_dlopen_self_static=cross
13470 else
13471 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13472 lt_status=$lt_dlunknown
13473 cat > conftest.$ac_ext <<_LT_EOF
13474 #line $LINENO "configure"
13475 #include "confdefs.h"
13476
13477 #if HAVE_DLFCN_H
13478 #include <dlfcn.h>
13479 #endif
13480
13481 #include <stdio.h>
13482
13483 #ifdef RTLD_GLOBAL
13484 # define LT_DLGLOBAL RTLD_GLOBAL
13485 #else
13486 # ifdef DL_GLOBAL
13487 # define LT_DLGLOBAL DL_GLOBAL
13488 # else
13489 # define LT_DLGLOBAL 0
13490 # endif
13491 #endif
13492
13493 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13494 find out it does not work in some platform. */
13495 #ifndef LT_DLLAZY_OR_NOW
13496 # ifdef RTLD_LAZY
13497 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13498 # else
13499 # ifdef DL_LAZY
13500 # define LT_DLLAZY_OR_NOW DL_LAZY
13501 # else
13502 # ifdef RTLD_NOW
13503 # define LT_DLLAZY_OR_NOW RTLD_NOW
13504 # else
13505 # ifdef DL_NOW
13506 # define LT_DLLAZY_OR_NOW DL_NOW
13507 # else
13508 # define LT_DLLAZY_OR_NOW 0
13509 # endif
13510 # endif
13511 # endif
13512 # endif
13513 #endif
13514
13515 /* When -fvisbility=hidden is used, assume the code has been annotated
13516 correspondingly for the symbols needed. */
13517 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13518 int fnord () __attribute__((visibility("default")));
13519 #endif
13520
13521 int fnord () { return 42; }
13522 int main ()
13523 {
13524 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13525 int status = $lt_dlunknown;
13526
13527 if (self)
13528 {
13529 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13530 else
13531 {
13532 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13533 else puts (dlerror ());
13534 }
13535 /* dlclose (self); */
13536 }
13537 else
13538 puts (dlerror ());
13539
13540 return status;
13541 }
13542 _LT_EOF
13543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13544 (eval $ac_link) 2>&5
13545 ac_status=$?
13546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13547 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13548 (./conftest; exit; ) >&5 2>/dev/null
13549 lt_status=$?
13550 case x$lt_status in
13551 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13552 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13553 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13554 esac
13555 else :
13556 # compilation failed
13557 lt_cv_dlopen_self_static=no
13558 fi
13559 fi
13560 rm -fr conftest*
13561
13562
13563 fi
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13565 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13566 fi
13567
13568 CPPFLAGS="$save_CPPFLAGS"
13569 LDFLAGS="$save_LDFLAGS"
13570 LIBS="$save_LIBS"
13571 ;;
13572 esac
13573
13574 case $lt_cv_dlopen_self in
13575 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13576 *) enable_dlopen_self=unknown ;;
13577 esac
13578
13579 case $lt_cv_dlopen_self_static in
13580 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13581 *) enable_dlopen_self_static=unknown ;;
13582 esac
13583 fi
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601 striplib=
13602 old_striplib=
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13604 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13605 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13606 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13607 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13609 $as_echo "yes" >&6; }
13610 else
13611 # FIXME - insert some real tests, host_os isn't really good enough
13612 case $host_os in
13613 darwin*)
13614 if test -n "$STRIP" ; then
13615 striplib="$STRIP -x"
13616 old_striplib="$STRIP -S"
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13618 $as_echo "yes" >&6; }
13619 else
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13621 $as_echo "no" >&6; }
13622 fi
13623 ;;
13624 *)
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626 $as_echo "no" >&6; }
13627 ;;
13628 esac
13629 fi
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642 # Report which library types will actually be built
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13644 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13646 $as_echo "$can_build_shared" >&6; }
13647
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13649 $as_echo_n "checking whether to build shared libraries... " >&6; }
13650 test "$can_build_shared" = "no" && enable_shared=no
13651
13652 # On AIX, shared libraries and static libraries use the same namespace, and
13653 # are all built from PIC.
13654 case $host_os in
13655 aix3*)
13656 test "$enable_shared" = yes && enable_static=no
13657 if test -n "$RANLIB"; then
13658 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13659 postinstall_cmds='$RANLIB $lib'
13660 fi
13661 ;;
13662
13663 aix[4-9]*)
13664 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13665 test "$enable_shared" = yes && enable_static=no
13666 fi
13667 ;;
13668 esac
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13670 $as_echo "$enable_shared" >&6; }
13671
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13673 $as_echo_n "checking whether to build static libraries... " >&6; }
13674 # Make sure either enable_shared or enable_static is yes.
13675 test "$enable_shared" = yes || enable_static=yes
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13677 $as_echo "$enable_static" >&6; }
13678
13679
13680
13681
13682 fi
13683 ac_ext=c
13684 ac_cpp='$CPP $CPPFLAGS'
13685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13688
13689 CC="$lt_save_CC"
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705 ac_config_commands="$ac_config_commands libtool"
13706
13707
13708
13709
13710 # Only expand once:
13711
13712
13713
13714
13715 # Checks for header files.
13716 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 endian.h
13717 do :
13718 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13719 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13720 "
13721 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13722 cat >>confdefs.h <<_ACEOF
13723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13724 _ACEOF
13725
13726 fi
13727
13728 done
13729
13730
13731 # check for types.
13732 # Using own tests for int64* because autoconf builtin only give 32bit.
13733 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
13734 if test "x$ac_cv_type_int8_t" = xyes; then :
13735
13736 else
13737
13738 cat >>confdefs.h <<_ACEOF
13739 #define int8_t signed char
13740 _ACEOF
13741
13742 fi
13743
13744 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13745 if test "x$ac_cv_type_int16_t" = xyes; then :
13746
13747 else
13748
13749 cat >>confdefs.h <<_ACEOF
13750 #define int16_t short
13751 _ACEOF
13752
13753 fi
13754
13755 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13756 if test "x$ac_cv_type_int32_t" = xyes; then :
13757
13758 else
13759
13760 cat >>confdefs.h <<_ACEOF
13761 #define int32_t int
13762 _ACEOF
13763
13764 fi
13765
13766 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13767 if test "x$ac_cv_type_int64_t" = xyes; then :
13768
13769 else
13770
13771 cat >>confdefs.h <<_ACEOF
13772 #define int64_t long long
13773 _ACEOF
13774
13775 fi
13776
13777 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
13778 if test "x$ac_cv_type_uint8_t" = xyes; then :
13779
13780 else
13781
13782 cat >>confdefs.h <<_ACEOF
13783 #define uint8_t unsigned char
13784 _ACEOF
13785
13786 fi
13787
13788 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13789 if test "x$ac_cv_type_uint16_t" = xyes; then :
13790
13791 else
13792
13793 cat >>confdefs.h <<_ACEOF
13794 #define uint16_t unsigned short
13795 _ACEOF
13796
13797 fi
13798
13799 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13800 if test "x$ac_cv_type_uint32_t" = xyes; then :
13801
13802 else
13803
13804 cat >>confdefs.h <<_ACEOF
13805 #define uint32_t unsigned int
13806 _ACEOF
13807
13808 fi
13809
13810 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13811 if test "x$ac_cv_type_uint64_t" = xyes; then :
13812
13813 else
13814
13815 cat >>confdefs.h <<_ACEOF
13816 #define uint64_t unsigned long long
13817 _ACEOF
13818
13819 fi
13820
13821 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13822 if test "x$ac_cv_type_size_t" = xyes; then :
13823
13824 else
13825
13826 cat >>confdefs.h <<_ACEOF
13827 #define size_t unsigned int
13828 _ACEOF
13829
13830 fi
13831
13832 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13833 if test "x$ac_cv_type_ssize_t" = xyes; then :
13834
13835 else
13836
13837 cat >>confdefs.h <<_ACEOF
13838 #define ssize_t int
13839 _ACEOF
13840
13841 fi
13842
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13844 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13845 if ${ac_cv_type_uid_t+:} false; then :
13846 $as_echo_n "(cached) " >&6
13847 else
13848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h. */
13850 #include <sys/types.h>
13851
13852 _ACEOF
13853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13854 $EGREP "uid_t" >/dev/null 2>&1; then :
13855 ac_cv_type_uid_t=yes
13856 else
13857 ac_cv_type_uid_t=no
13858 fi
13859 rm -f conftest*
13860
13861 fi
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13863 $as_echo "$ac_cv_type_uid_t" >&6; }
13864 if test $ac_cv_type_uid_t = no; then
13865
13866 $as_echo "#define uid_t int" >>confdefs.h
13867
13868
13869 $as_echo "#define gid_t int" >>confdefs.h
13870
13871 fi
13872
13873 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13874 if test "x$ac_cv_type_pid_t" = xyes; then :
13875
13876 else
13877
13878 cat >>confdefs.h <<_ACEOF
13879 #define pid_t int
13880 _ACEOF
13881
13882 fi
13883
13884 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13885 if test "x$ac_cv_type_off_t" = xyes; then :
13886
13887 else
13888
13889 cat >>confdefs.h <<_ACEOF
13890 #define off_t long int
13891 _ACEOF
13892
13893 fi
13894
13895 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
13896 $ac_includes_default
13897 #ifdef HAVE_WINSOCK2_H
13898 # include <winsock2.h>
13899 #endif
13900
13901 "
13902 if test "x$ac_cv_type_u_char" = xyes; then :
13903
13904 else
13905
13906 $as_echo "#define u_char unsigned char" >>confdefs.h
13907
13908 fi
13909
13910 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
13911 $ac_includes_default
13912 #ifdef HAVE_SYS_RESOURCE_H
13913 # include <sys/resource.h>
13914 #endif
13915
13916 "
13917 if test "x$ac_cv_type_rlim_t" = xyes; then :
13918
13919 else
13920
13921 $as_echo "#define rlim_t unsigned long" >>confdefs.h
13922
13923 fi
13924
13925
13926 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13927 $ac_includes_default
13928 #ifdef HAVE_SYS_SOCKET_H
13929 # include <sys/socket.h>
13930 #endif
13931 #ifdef HAVE_WS2TCPIP_H
13932 # include <ws2tcpip.h>
13933 #endif
13934
13935 "
13936 if test "x$ac_cv_type_socklen_t" = xyes; then :
13937
13938 else
13939
13940 $as_echo "#define socklen_t int" >>confdefs.h
13941
13942 fi
13943
13944 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
13945 $ac_includes_default
13946 #ifdef HAVE_SYS_TYPES_H
13947 # include <sys/types.h>
13948 #endif
13949 #ifdef HAVE_NETINET_IN_H
13950 # include <netinet/in.h>
13951 #endif
13952
13953 "
13954 if test "x$ac_cv_type_in_addr_t" = xyes; then :
13955
13956 else
13957
13958 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
13959
13960 fi
13961
13962 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
13963 $ac_includes_default
13964 #ifdef HAVE_SYS_TYPES_H
13965 # include <sys/types.h>
13966 #endif
13967 #ifdef HAVE_NETINET_IN_H
13968 # include <netinet/in.h>
13969 #endif
13970
13971 "
13972 if test "x$ac_cv_type_in_port_t" = xyes; then :
13973
13974 else
13975
13976 $as_echo "#define in_port_t uint16_t" >>confdefs.h
13977
13978 fi
13979
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
13981 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
13982 if test "$cross_compiling" = yes; then :
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
13984 $as_echo "cross-compile no" >&6; }
13985
13986 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
13987
13988 case " $LIBOBJS " in
13989 *" memcmp.$ac_objext "* ) ;;
13990 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13991 ;;
13992 esac
13993
13994
13995 else
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
13998
13999 #include <stdio.h>
14000 #include <stdlib.h>
14001 #include <string.h>
14002 int main(void)
14003 {
14004 char a = 255, b = 0;
14005 if(memcmp(&a, &b, 1) < 0)
14006 return 1;
14007 return 0;
14008 }
14009
14010 _ACEOF
14011 if ac_fn_c_try_run "$LINENO"; then :
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14013 $as_echo "yes" >&6; }
14014 else
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14016 $as_echo "no" >&6; }
14017
14018 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14019
14020 case " $LIBOBJS " in
14021 *" memcmp.$ac_objext "* ) ;;
14022 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14023 ;;
14024 esac
14025
14026
14027 fi
14028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14029 conftest.$ac_objext conftest.beam conftest.$ac_ext
14030 fi
14031
14032
14033 # The cast to long int works around a bug in the HP C Compiler
14034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14036 # This bug is HP SR number 8606223364.
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14038 $as_echo_n "checking size of time_t... " >&6; }
14039 if ${ac_cv_sizeof_time_t+:} false; then :
14040 $as_echo_n "(cached) " >&6
14041 else
14042 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
14043 $ac_includes_default
14044 #ifdef TIME_WITH_SYS_TIME
14045 # include <sys/time.h>
14046 # include <time.h>
14047 #else
14048 # ifdef HAVE_SYS_TIME_H
14049 # include <sys/time.h>
14050 # else
14051 # include <time.h>
14052 # endif
14053 #endif
14054
14055 "; then :
14056
14057 else
14058 if test "$ac_cv_type_time_t" = yes; then
14059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14061 as_fn_error 77 "cannot compute sizeof (time_t)
14062 See \`config.log' for more details" "$LINENO" 5; }
14063 else
14064 ac_cv_sizeof_time_t=0
14065 fi
14066 fi
14067
14068 fi
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14070 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14071
14072
14073
14074 cat >>confdefs.h <<_ACEOF
14075 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14076 _ACEOF
14077
14078
14079
14080 # add option to disable the evil rpath
14081
14082 # Check whether --enable-rpath was given.
14083 if test "${enable_rpath+set}" = set; then :
14084 enableval=$enable_rpath; enable_rpath=$enableval
14085 else
14086 enable_rpath=yes
14087 fi
14088
14089 if test "x$enable_rpath" = xno; then
14090 ac_config_commands="$ac_config_commands disable-rpath"
14091
14092 fi
14093
14094
14095
14096 # check to see if libraries are needed for these functions.
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14098 $as_echo_n "checking for library containing inet_pton... " >&6; }
14099 if ${ac_cv_search_inet_pton+:} false; then :
14100 $as_echo_n "(cached) " >&6
14101 else
14102 ac_func_search_save_LIBS=$LIBS
14103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14104 /* end confdefs.h. */
14105
14106 /* Override any GCC internal prototype to avoid an error.
14107 Use char because int might match the return type of a GCC
14108 builtin and then its argument prototype would still apply. */
14109 #ifdef __cplusplus
14110 extern "C"
14111 #endif
14112 char inet_pton ();
14113 int
14114 main ()
14115 {
14116 return inet_pton ();
14117 ;
14118 return 0;
14119 }
14120 _ACEOF
14121 for ac_lib in '' nsl; do
14122 if test -z "$ac_lib"; then
14123 ac_res="none required"
14124 else
14125 ac_res=-l$ac_lib
14126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14127 fi
14128 if ac_fn_c_try_link "$LINENO"; then :
14129 ac_cv_search_inet_pton=$ac_res
14130 fi
14131 rm -f core conftest.err conftest.$ac_objext \
14132 conftest$ac_exeext
14133 if ${ac_cv_search_inet_pton+:} false; then :
14134 break
14135 fi
14136 done
14137 if ${ac_cv_search_inet_pton+:} false; then :
14138
14139 else
14140 ac_cv_search_inet_pton=no
14141 fi
14142 rm conftest.$ac_ext
14143 LIBS=$ac_func_search_save_LIBS
14144 fi
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14146 $as_echo "$ac_cv_search_inet_pton" >&6; }
14147 ac_res=$ac_cv_search_inet_pton
14148 if test "$ac_res" != no; then :
14149 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14150
14151 fi
14152
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14154 $as_echo_n "checking for library containing socket... " >&6; }
14155 if ${ac_cv_search_socket+:} false; then :
14156 $as_echo_n "(cached) " >&6
14157 else
14158 ac_func_search_save_LIBS=$LIBS
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14161
14162 /* Override any GCC internal prototype to avoid an error.
14163 Use char because int might match the return type of a GCC
14164 builtin and then its argument prototype would still apply. */
14165 #ifdef __cplusplus
14166 extern "C"
14167 #endif
14168 char socket ();
14169 int
14170 main ()
14171 {
14172 return socket ();
14173 ;
14174 return 0;
14175 }
14176 _ACEOF
14177 for ac_lib in '' socket; do
14178 if test -z "$ac_lib"; then
14179 ac_res="none required"
14180 else
14181 ac_res=-l$ac_lib
14182 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14183 fi
14184 if ac_fn_c_try_link "$LINENO"; then :
14185 ac_cv_search_socket=$ac_res
14186 fi
14187 rm -f core conftest.err conftest.$ac_objext \
14188 conftest$ac_exeext
14189 if ${ac_cv_search_socket+:} false; then :
14190 break
14191 fi
14192 done
14193 if ${ac_cv_search_socket+:} false; then :
14194
14195 else
14196 ac_cv_search_socket=no
14197 fi
14198 rm conftest.$ac_ext
14199 LIBS=$ac_func_search_save_LIBS
14200 fi
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14202 $as_echo "$ac_cv_search_socket" >&6; }
14203 ac_res=$ac_cv_search_socket
14204 if test "$ac_res" != no; then :
14205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14206
14207 fi
14208
14209
14210 # check wether strptime also works
14211
14212 # check some functions of the OS before linking libs (while still runnable).
14213 for ac_header in unistd.h
14214 do :
14215 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14216 if test "x$ac_cv_header_unistd_h" = xyes; then :
14217 cat >>confdefs.h <<_ACEOF
14218 #define HAVE_UNISTD_H 1
14219 _ACEOF
14220
14221 fi
14222
14223 done
14224
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14226 $as_echo_n "checking for working chown... " >&6; }
14227 if ${ac_cv_func_chown_works+:} false; then :
14228 $as_echo_n "(cached) " >&6
14229 else
14230 if test "$cross_compiling" = yes; then :
14231 ac_cv_func_chown_works=no
14232 else
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14235 $ac_includes_default
14236 #include <fcntl.h>
14237
14238 int
14239 main ()
14240 {
14241 char *f = "conftest.chown";
14242 struct stat before, after;
14243
14244 if (creat (f, 0600) < 0)
14245 return 1;
14246 if (stat (f, &before) < 0)
14247 return 1;
14248 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14249 return 1;
14250 if (stat (f, &after) < 0)
14251 return 1;
14252 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
14253
14254 ;
14255 return 0;
14256 }
14257 _ACEOF
14258 if ac_fn_c_try_run "$LINENO"; then :
14259 ac_cv_func_chown_works=yes
14260 else
14261 ac_cv_func_chown_works=no
14262 fi
14263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14264 conftest.$ac_objext conftest.beam conftest.$ac_ext
14265 fi
14266
14267 rm -f conftest.chown
14268
14269 fi
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
14271 $as_echo "$ac_cv_func_chown_works" >&6; }
14272 if test $ac_cv_func_chown_works = yes; then
14273
14274 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
14275
14276 fi
14277
14278 for ac_header in vfork.h
14279 do :
14280 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14281 if test "x$ac_cv_header_vfork_h" = xyes; then :
14282 cat >>confdefs.h <<_ACEOF
14283 #define HAVE_VFORK_H 1
14284 _ACEOF
14285
14286 fi
14287
14288 done
14289
14290 for ac_func in fork vfork
14291 do :
14292 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14293 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14294 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14295 cat >>confdefs.h <<_ACEOF
14296 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14297 _ACEOF
14298
14299 fi
14300 done
14301
14302 if test "x$ac_cv_func_fork" = xyes; then
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14304 $as_echo_n "checking for working fork... " >&6; }
14305 if ${ac_cv_func_fork_works+:} false; then :
14306 $as_echo_n "(cached) " >&6
14307 else
14308 if test "$cross_compiling" = yes; then :
14309 ac_cv_func_fork_works=cross
14310 else
14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312 /* end confdefs.h. */
14313 $ac_includes_default
14314 int
14315 main ()
14316 {
14317
14318 /* By Ruediger Kuhlmann. */
14319 return fork () < 0;
14320
14321 ;
14322 return 0;
14323 }
14324 _ACEOF
14325 if ac_fn_c_try_run "$LINENO"; then :
14326 ac_cv_func_fork_works=yes
14327 else
14328 ac_cv_func_fork_works=no
14329 fi
14330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14331 conftest.$ac_objext conftest.beam conftest.$ac_ext
14332 fi
14333
14334 fi
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14336 $as_echo "$ac_cv_func_fork_works" >&6; }
14337
14338 else
14339 ac_cv_func_fork_works=$ac_cv_func_fork
14340 fi
14341 if test "x$ac_cv_func_fork_works" = xcross; then
14342 case $host in
14343 *-*-amigaos* | *-*-msdosdjgpp*)
14344 # Override, as these systems have only a dummy fork() stub
14345 ac_cv_func_fork_works=no
14346 ;;
14347 *)
14348 ac_cv_func_fork_works=yes
14349 ;;
14350 esac
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14352 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14353 fi
14354 ac_cv_func_vfork_works=$ac_cv_func_vfork
14355 if test "x$ac_cv_func_vfork" = xyes; then
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14357 $as_echo_n "checking for working vfork... " >&6; }
14358 if ${ac_cv_func_vfork_works+:} false; then :
14359 $as_echo_n "(cached) " >&6
14360 else
14361 if test "$cross_compiling" = yes; then :
14362 ac_cv_func_vfork_works=cross
14363 else
14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h. */
14366 /* Thanks to Paul Eggert for this test. */
14367 $ac_includes_default
14368 #include <sys/wait.h>
14369 #ifdef HAVE_VFORK_H
14370 # include <vfork.h>
14371 #endif
14372 /* On some sparc systems, changes by the child to local and incoming
14373 argument registers are propagated back to the parent. The compiler
14374 is told about this with #include <vfork.h>, but some compilers
14375 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14376 static variable whose address is put into a register that is
14377 clobbered by the vfork. */
14378 static void
14379 #ifdef __cplusplus
14380 sparc_address_test (int arg)
14381 # else
14382 sparc_address_test (arg) int arg;
14383 #endif
14384 {
14385 static pid_t child;
14386 if (!child) {
14387 child = vfork ();
14388 if (child < 0) {
14389 perror ("vfork");
14390 _exit(2);
14391 }
14392 if (!child) {
14393 arg = getpid();
14394 write(-1, "", 0);
14395 _exit (arg);
14396 }
14397 }
14398 }
14399
14400 int
14401 main ()
14402 {
14403 pid_t parent = getpid ();
14404 pid_t child;
14405
14406 sparc_address_test (0);
14407
14408 child = vfork ();
14409
14410 if (child == 0) {
14411 /* Here is another test for sparc vfork register problems. This
14412 test uses lots of local variables, at least as many local
14413 variables as main has allocated so far including compiler
14414 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14415 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14416 reuse the register of parent for one of the local variables,
14417 since it will think that parent can't possibly be used any more
14418 in this routine. Assigning to the local variable will thus
14419 munge parent in the parent process. */
14420 pid_t
14421 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14422 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14423 /* Convince the compiler that p..p7 are live; otherwise, it might
14424 use the same hardware register for all 8 local variables. */
14425 if (p != p1 || p != p2 || p != p3 || p != p4
14426 || p != p5 || p != p6 || p != p7)
14427 _exit(1);
14428
14429 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14430 from child file descriptors. If the child closes a descriptor
14431 before it execs or exits, this munges the parent's descriptor
14432 as well. Test for this by closing stdout in the child. */
14433 _exit(close(fileno(stdout)) != 0);
14434 } else {
14435 int status;
14436 struct stat st;
14437
14438 while (wait(&status) != child)
14439 ;
14440 return (
14441 /* Was there some problem with vforking? */
14442 child < 0
14443
14444 /* Did the child fail? (This shouldn't happen.) */
14445 || status
14446
14447 /* Did the vfork/compiler bug occur? */
14448 || parent != getpid()
14449
14450 /* Did the file descriptor bug occur? */
14451 || fstat(fileno(stdout), &st) != 0
14452 );
14453 }
14454 }
14455 _ACEOF
14456 if ac_fn_c_try_run "$LINENO"; then :
14457 ac_cv_func_vfork_works=yes
14458 else
14459 ac_cv_func_vfork_works=no
14460 fi
14461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14462 conftest.$ac_objext conftest.beam conftest.$ac_ext
14463 fi
14464
14465 fi
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14467 $as_echo "$ac_cv_func_vfork_works" >&6; }
14468
14469 fi;
14470 if test "x$ac_cv_func_fork_works" = xcross; then
14471 ac_cv_func_vfork_works=$ac_cv_func_vfork
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14473 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14474 fi
14475
14476 if test "x$ac_cv_func_vfork_works" = xyes; then
14477
14478 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14479
14480 else
14481
14482 $as_echo "#define vfork fork" >>confdefs.h
14483
14484 fi
14485 if test "x$ac_cv_func_fork_works" = xyes; then
14486
14487 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14488
14489 fi
14490
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14492 $as_echo_n "checking return type of signal handlers... " >&6; }
14493 if ${ac_cv_type_signal+:} false; then :
14494 $as_echo_n "(cached) " >&6
14495 else
14496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14498 #include <sys/types.h>
14499 #include <signal.h>
14500
14501 int
14502 main ()
14503 {
14504 return *(signal (0, 0)) (0) == 1;
14505 ;
14506 return 0;
14507 }
14508 _ACEOF
14509 if ac_fn_c_try_compile "$LINENO"; then :
14510 ac_cv_type_signal=int
14511 else
14512 ac_cv_type_signal=void
14513 fi
14514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14515 fi
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14517 $as_echo "$ac_cv_type_signal" >&6; }
14518
14519 cat >>confdefs.h <<_ACEOF
14520 #define RETSIGTYPE $ac_cv_type_signal
14521 _ACEOF
14522
14523
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14525 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14526 if ${ac_cv_sys_largefile_source+:} false; then :
14527 $as_echo_n "(cached) " >&6
14528 else
14529 while :; do
14530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h. */
14532 #include <sys/types.h> /* for off_t */
14533 #include <stdio.h>
14534 int
14535 main ()
14536 {
14537 int (*fp) (FILE *, off_t, int) = fseeko;
14538 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14539 ;
14540 return 0;
14541 }
14542 _ACEOF
14543 if ac_fn_c_try_link "$LINENO"; then :
14544 ac_cv_sys_largefile_source=no; break
14545 fi
14546 rm -f core conftest.err conftest.$ac_objext \
14547 conftest$ac_exeext conftest.$ac_ext
14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h. */
14550 #define _LARGEFILE_SOURCE 1
14551 #include <sys/types.h> /* for off_t */
14552 #include <stdio.h>
14553 int
14554 main ()
14555 {
14556 int (*fp) (FILE *, off_t, int) = fseeko;
14557 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14558 ;
14559 return 0;
14560 }
14561 _ACEOF
14562 if ac_fn_c_try_link "$LINENO"; then :
14563 ac_cv_sys_largefile_source=1; break
14564 fi
14565 rm -f core conftest.err conftest.$ac_objext \
14566 conftest$ac_exeext conftest.$ac_ext
14567 ac_cv_sys_largefile_source=unknown
14568 break
14569 done
14570 fi
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14572 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14573 case $ac_cv_sys_largefile_source in #(
14574 no | unknown) ;;
14575 *)
14576 cat >>confdefs.h <<_ACEOF
14577 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14578 _ACEOF
14579 ;;
14580 esac
14581 rm -rf conftest*
14582
14583 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14584 # in glibc 2.1.3, but that breaks too many other things.
14585 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14586 if test $ac_cv_sys_largefile_source != unknown; then
14587
14588 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14589
14590 fi
14591
14592
14593 # Check whether --enable-largefile was given.
14594 if test "${enable_largefile+set}" = set; then :
14595 enableval=$enable_largefile;
14596 fi
14597
14598 if test "$enable_largefile" != no; then
14599
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14601 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14602 if ${ac_cv_sys_largefile_CC+:} false; then :
14603 $as_echo_n "(cached) " >&6
14604 else
14605 ac_cv_sys_largefile_CC=no
14606 if test "$GCC" != yes; then
14607 ac_save_CC=$CC
14608 while :; do
14609 # IRIX 6.2 and later do not support large files by default,
14610 # so use the C compiler's -n32 option if that helps.
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14613 #include <sys/types.h>
14614 /* Check that off_t can represent 2**63 - 1 correctly.
14615 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14616 since some C++ compilers masquerading as C compilers
14617 incorrectly reject 9223372036854775807. */
14618 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14619 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14620 && LARGE_OFF_T % 2147483647 == 1)
14621 ? 1 : -1];
14622 int
14623 main ()
14624 {
14625
14626 ;
14627 return 0;
14628 }
14629 _ACEOF
14630 if ac_fn_c_try_compile "$LINENO"; then :
14631 break
14632 fi
14633 rm -f core conftest.err conftest.$ac_objext
14634 CC="$CC -n32"
14635 if ac_fn_c_try_compile "$LINENO"; then :
14636 ac_cv_sys_largefile_CC=' -n32'; break
14637 fi
14638 rm -f core conftest.err conftest.$ac_objext
14639 break
14640 done
14641 CC=$ac_save_CC
14642 rm -f conftest.$ac_ext
14643 fi
14644 fi
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14646 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14647 if test "$ac_cv_sys_largefile_CC" != no; then
14648 CC=$CC$ac_cv_sys_largefile_CC
14649 fi
14650
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14652 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14653 if ${ac_cv_sys_file_offset_bits+:} false; then :
14654 $as_echo_n "(cached) " >&6
14655 else
14656 while :; do
14657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14658 /* end confdefs.h. */
14659 #include <sys/types.h>
14660 /* Check that off_t can represent 2**63 - 1 correctly.
14661 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14662 since some C++ compilers masquerading as C compilers
14663 incorrectly reject 9223372036854775807. */
14664 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14666 && LARGE_OFF_T % 2147483647 == 1)
14667 ? 1 : -1];
14668 int
14669 main ()
14670 {
14671
14672 ;
14673 return 0;
14674 }
14675 _ACEOF
14676 if ac_fn_c_try_compile "$LINENO"; then :
14677 ac_cv_sys_file_offset_bits=no; break
14678 fi
14679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14682 #define _FILE_OFFSET_BITS 64
14683 #include <sys/types.h>
14684 /* Check that off_t can represent 2**63 - 1 correctly.
14685 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14686 since some C++ compilers masquerading as C compilers
14687 incorrectly reject 9223372036854775807. */
14688 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14689 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14690 && LARGE_OFF_T % 2147483647 == 1)
14691 ? 1 : -1];
14692 int
14693 main ()
14694 {
14695
14696 ;
14697 return 0;
14698 }
14699 _ACEOF
14700 if ac_fn_c_try_compile "$LINENO"; then :
14701 ac_cv_sys_file_offset_bits=64; break
14702 fi
14703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14704 ac_cv_sys_file_offset_bits=unknown
14705 break
14706 done
14707 fi
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14709 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14710 case $ac_cv_sys_file_offset_bits in #(
14711 no | unknown) ;;
14712 *)
14713 cat >>confdefs.h <<_ACEOF
14714 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14715 _ACEOF
14716 ;;
14717 esac
14718 rm -rf conftest*
14719 if test $ac_cv_sys_file_offset_bits = unknown; then
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14721 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14722 if ${ac_cv_sys_large_files+:} false; then :
14723 $as_echo_n "(cached) " >&6
14724 else
14725 while :; do
14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h. */
14728 #include <sys/types.h>
14729 /* Check that off_t can represent 2**63 - 1 correctly.
14730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14731 since some C++ compilers masquerading as C compilers
14732 incorrectly reject 9223372036854775807. */
14733 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14735 && LARGE_OFF_T % 2147483647 == 1)
14736 ? 1 : -1];
14737 int
14738 main ()
14739 {
14740
14741 ;
14742 return 0;
14743 }
14744 _ACEOF
14745 if ac_fn_c_try_compile "$LINENO"; then :
14746 ac_cv_sys_large_files=no; break
14747 fi
14748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14750 /* end confdefs.h. */
14751 #define _LARGE_FILES 1
14752 #include <sys/types.h>
14753 /* Check that off_t can represent 2**63 - 1 correctly.
14754 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14755 since some C++ compilers masquerading as C compilers
14756 incorrectly reject 9223372036854775807. */
14757 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14759 && LARGE_OFF_T % 2147483647 == 1)
14760 ? 1 : -1];
14761 int
14762 main ()
14763 {
14764
14765 ;
14766 return 0;
14767 }
14768 _ACEOF
14769 if ac_fn_c_try_compile "$LINENO"; then :
14770 ac_cv_sys_large_files=1; break
14771 fi
14772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14773 ac_cv_sys_large_files=unknown
14774 break
14775 done
14776 fi
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14778 $as_echo "$ac_cv_sys_large_files" >&6; }
14779 case $ac_cv_sys_large_files in #(
14780 no | unknown) ;;
14781 *)
14782 cat >>confdefs.h <<_ACEOF
14783 #define _LARGE_FILES $ac_cv_sys_large_files
14784 _ACEOF
14785 ;;
14786 esac
14787 rm -rf conftest*
14788 fi
14789
14790
14791 fi
14792
14793
14794
14795
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
14797 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
14798 cache=_D_LARGEFILE_SOURCE_1
14799 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
14800 $as_echo_n "(cached) " >&6
14801 else
14802
14803 echo '
14804 #include <stdio.h>
14805 int test() {
14806 int a = fseeko(stdin, 0, 0);
14807 return a;
14808 }
14809 ' > conftest.c
14810 echo 'void f(){}' >>conftest.c
14811 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14812 eval "cv_prog_cc_flag_needed_$cache=no"
14813 else
14814
14815 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
14816 eval "cv_prog_cc_flag_needed_$cache=yes"
14817 else
14818 eval "cv_prog_cc_flag_needed_$cache=fail"
14819 #echo 'Test with flag fails too!'
14820 #cat conftest.c
14821 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14822 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14823 #exit 1
14824 fi
14825
14826 fi
14827 rm -f conftest conftest.c conftest.o
14828
14829 fi
14830
14831 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14833 $as_echo "yes" >&6; }
14834 :
14835 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
14836 else
14837 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14839 $as_echo "no" >&6; }
14840 #echo 'Test with flag is no!'
14841 #cat conftest.c
14842 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14843 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14844 #exit 1
14845 :
14846
14847 else
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14849 $as_echo "failed" >&6; }
14850 :
14851
14852 fi
14853 fi
14854
14855
14856
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
14858 $as_echo_n "checking if nonblocking sockets work... " >&6; }
14859 if echo $target | grep mingw32 >/dev/null; then
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
14861 $as_echo "no (windows)" >&6; }
14862
14863 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14864
14865 else
14866 if test "$cross_compiling" = yes; then :
14867
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
14869 $as_echo "crosscompile(yes)" >&6; }
14870
14871 else
14872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873 /* end confdefs.h. */
14874
14875
14876 #include <stdio.h>
14877 #include <string.h>
14878 #include <stdlib.h>
14879 #include <fcntl.h>
14880 #include <errno.h>
14881 #ifdef HAVE_SYS_TYPES_H
14882 #include <sys/types.h>
14883 #endif
14884 #ifdef HAVE_SYS_SOCKET_H
14885 #include <sys/socket.h>
14886 #endif
14887 #ifdef HAVE_NETINET_IN_H
14888 #include <netinet/in.h>
14889 #endif
14890 #ifdef HAVE_ARPA_INET_H
14891 #include <arpa/inet.h>
14892 #endif
14893 #ifdef HAVE_UNISTD_H
14894 #include <unistd.h>
14895 #endif
14896 #ifdef HAVE_TIME_H
14897 #include <time.h>
14898 #endif
14899
14900 int main(void)
14901 {
14902 int port;
14903 int sfd, cfd;
14904 int num = 10;
14905 int i, p;
14906 struct sockaddr_in a;
14907 /* test if select and nonblocking reads work well together */
14908 /* open port.
14909 fork child to send 10 messages.
14910 select to read.
14911 then try to nonblocking read the 10 messages
14912 then, nonblocking read must give EAGAIN
14913 */
14914
14915 port = 12345 + (time(0)%32);
14916 sfd = socket(PF_INET, SOCK_DGRAM, 0);
14917 if(sfd == -1) {
14918 perror("socket");
14919 return 1;
14920 }
14921 memset(&a, 0, sizeof(a));
14922 a.sin_family = AF_INET;
14923 a.sin_port = htons(port);
14924 a.sin_addr.s_addr = inet_addr("127.0.0.1");
14925 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14926 perror("bind");
14927 return 1;
14928 }
14929 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
14930 perror("fcntl");
14931 return 1;
14932 }
14933
14934 cfd = socket(PF_INET, SOCK_DGRAM, 0);
14935 if(cfd == -1) {
14936 perror("client socket");
14937 return 1;
14938 }
14939 a.sin_port = 0;
14940 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14941 perror("client bind");
14942 return 1;
14943 }
14944 a.sin_port = htons(port);
14945
14946 /* no handler, causes exit in 10 seconds */
14947 alarm(10);
14948
14949 /* send and receive on the socket */
14950 if((p=fork()) == 0) {
14951 for(i=0; i<num; i++) {
14952 if(sendto(cfd, &i, sizeof(i), 0,
14953 (struct sockaddr*)&a, sizeof(a)) < 0) {
14954 perror("sendto");
14955 return 1;
14956 }
14957 }
14958 } else {
14959 /* parent */
14960 fd_set rset;
14961 int x;
14962 if(p == -1) {
14963 perror("fork");
14964 return 1;
14965 }
14966 FD_ZERO(&rset);
14967 FD_SET(sfd, &rset);
14968 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
14969 perror("select");
14970 return 1;
14971 }
14972 i = 0;
14973 while(i < num) {
14974 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
14975 if(errno == EAGAIN)
14976 continue;
14977 perror("recv");
14978 return 1;
14979 }
14980 i++;
14981 }
14982 /* now we want to get EAGAIN: nonblocking goodness */
14983 errno = 0;
14984 recv(sfd, &x, sizeof(x), 0);
14985 if(errno != EAGAIN) {
14986 perror("trying to recv again");
14987 return 1;
14988 }
14989 /* EAGAIN encountered */
14990 }
14991
14992 close(sfd);
14993 close(cfd);
14994 return 0;
14995 }
14996
14997 _ACEOF
14998 if ac_fn_c_try_run "$LINENO"; then :
14999
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15001 $as_echo "yes" >&6; }
15002
15003 else
15004
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15006 $as_echo "no" >&6; }
15007
15008 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15009
15010
15011 fi
15012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15013 conftest.$ac_objext conftest.beam conftest.$ac_ext
15014 fi
15015
15016 fi
15017
15018
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
15020 $as_echo_n "checking whether mkdir has one arg... " >&6; }
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15023
15024 #include <stdio.h>
15025 #include <unistd.h>
15026 #ifdef HAVE_WINSOCK2_H
15027 #include <winsock2.h>
15028 #endif
15029 #ifdef HAVE_SYS_STAT_H
15030 #include <sys/stat.h>
15031 #endif
15032
15033 int
15034 main ()
15035 {
15036
15037 (void)mkdir("directory");
15038
15039 ;
15040 return 0;
15041 }
15042 _ACEOF
15043 if ac_fn_c_try_compile "$LINENO"; then :
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15045 $as_echo "yes" >&6; }
15046
15047 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
15048
15049
15050 else
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15052 $as_echo "no" >&6; }
15053
15054 fi
15055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056
15057 for ac_func in strptime
15058 do :
15059 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
15060 if test "x$ac_cv_func_strptime" = xyes; then :
15061 cat >>confdefs.h <<_ACEOF
15062 #define HAVE_STRPTIME 1
15063 _ACEOF
15064
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
15066 $as_echo_n "checking whether strptime works... " >&6; }
15067 if test c${cross_compiling} = cno; then
15068 if test "$cross_compiling" = yes; then :
15069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15071 as_fn_error $? "cannot run test program while cross compiling
15072 See \`config.log' for more details" "$LINENO" 5; }
15073 else
15074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15075 /* end confdefs.h. */
15076
15077 #define _XOPEN_SOURCE 600
15078 #include <time.h>
15079 int main(void) { struct tm tm; char *res;
15080 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);
15081 if (!res) return 2;
15082 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
15083 if (!res) return 1; return 0; }
15084
15085 _ACEOF
15086 if ac_fn_c_try_run "$LINENO"; then :
15087 eval "ac_cv_c_strptime_works=yes"
15088 else
15089 eval "ac_cv_c_strptime_works=no"
15090 fi
15091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15092 conftest.$ac_objext conftest.beam conftest.$ac_ext
15093 fi
15094
15095 else
15096 eval "ac_cv_c_strptime_works=maybe"
15097 fi
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
15099 $as_echo "$ac_cv_c_strptime_works" >&6; }
15100 if test $ac_cv_c_strptime_works = no; then
15101 case " $LIBOBJS " in
15102 *" strptime.$ac_objext "* ) ;;
15103 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15104 ;;
15105 esac
15106
15107 else
15108
15109 cat >>confdefs.h <<_ACEOF
15110 #define STRPTIME_WORKS 1
15111 _ACEOF
15112
15113 fi
15114
15115 else
15116 case " $LIBOBJS " in
15117 *" strptime.$ac_objext "* ) ;;
15118 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15119 ;;
15120 esac
15121
15122 fi
15123 done
15124
15125
15126 # set memory allocation checking if requested
15127 # Check whether --enable-alloc-checks was given.
15128 if test "${enable_alloc_checks+set}" = set; then :
15129 enableval=$enable_alloc_checks;
15130 fi
15131
15132 # Check whether --enable-alloc-lite was given.
15133 if test "${enable_alloc_lite+set}" = set; then :
15134 enableval=$enable_alloc_lite;
15135 fi
15136
15137 # Check whether --enable-alloc-nonregional was given.
15138 if test "${enable_alloc_nonregional+set}" = set; then :
15139 enableval=$enable_alloc_nonregional;
15140 fi
15141
15142 if test x_$enable_alloc_nonregional = x_yes; then
15143
15144 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
15145
15146 fi
15147 if test x_$enable_alloc_checks = x_yes; then
15148
15149 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
15150
15151 else
15152 if test x_$enable_alloc_lite = x_yes; then
15153
15154 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
15155
15156 else
15157
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15159 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15160 if test "$cross_compiling" = yes; then :
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
15162 $as_echo "no (crosscompile)" >&6; }
15163 case " $LIBOBJS " in
15164 *" malloc.$ac_objext "* ) ;;
15165 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15166 ;;
15167 esac
15168
15169
15170 cat >>confdefs.h <<_ACEOF
15171 #define malloc rpl_malloc_unbound
15172 _ACEOF
15173
15174 else
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15177 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15178 #include <stdlib.h>
15179 #else
15180 char *malloc ();
15181 #endif
15182
15183 int
15184 main ()
15185 {
15186 if(malloc(0) != 0) return 1;
15187 ;
15188 return 0;
15189 }
15190
15191 _ACEOF
15192 if ac_fn_c_try_run "$LINENO"; then :
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15194 $as_echo "no" >&6; }
15195 case " $LIBOBJS " in
15196 *" malloc.$ac_objext "* ) ;;
15197 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15198 ;;
15199 esac
15200
15201
15202 cat >>confdefs.h <<_ACEOF
15203 #define malloc rpl_malloc_unbound
15204 _ACEOF
15205
15206 else
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15208 $as_echo "yes" >&6; }
15209
15210 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15211
15212 fi
15213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15214 conftest.$ac_objext conftest.beam conftest.$ac_ext
15215 fi
15216
15217
15218 fi
15219 fi
15220
15221 # check windows threads (we use them, not pthreads, on windows).
15222 if test "$on_mingw" = "yes"; then
15223 # check windows threads
15224 for ac_header in windows.h
15225 do :
15226 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15227 "
15228 if test "x$ac_cv_header_windows_h" = xyes; then :
15229 cat >>confdefs.h <<_ACEOF
15230 #define HAVE_WINDOWS_H 1
15231 _ACEOF
15232
15233 fi
15234
15235 done
15236
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
15238 $as_echo_n "checking for CreateThread... " >&6; }
15239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240 /* end confdefs.h. */
15241
15242 #ifdef HAVE_WINDOWS_H
15243 #include <windows.h>
15244 #endif
15245
15246 int
15247 main ()
15248 {
15249
15250 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
15251
15252 ;
15253 return 0;
15254 }
15255 _ACEOF
15256 if ac_fn_c_try_compile "$LINENO"; then :
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15258 $as_echo "yes" >&6; }
15259
15260 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
15261
15262
15263 else
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15265 $as_echo "no" >&6; }
15266
15267 fi
15268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15269
15270 else
15271 # not on mingw, check thread libraries.
15272
15273 # check for thread library.
15274 # check this first, so that the pthread lib does not get linked in via
15275 # libssl or libpython, and thus distorts the tests, and we end up using
15276 # the non-threadsafe C libraries.
15277
15278 # Check whether --with-pthreads was given.
15279 if test "${with_pthreads+set}" = set; then :
15280 withval=$with_pthreads;
15281 else
15282 withval="yes"
15283 fi
15284
15285 ub_have_pthreads=no
15286 if test x_$withval != x_no; then
15287
15288
15289 ac_ext=c
15290 ac_cpp='$CPP $CPPFLAGS'
15291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15294
15295 ax_pthread_ok=no
15296
15297 # We used to check for pthread.h first, but this fails if pthread.h
15298 # requires special compiler flags (e.g. on True64 or Sequent).
15299 # It gets checked for in the link test anyway.
15300
15301 # First of all, check if the user has set any of the PTHREAD_LIBS,
15302 # etcetera environment variables, and if threads linking works using
15303 # them:
15304 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15305 save_CFLAGS="$CFLAGS"
15306 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15307 save_LIBS="$LIBS"
15308 LIBS="$PTHREAD_LIBS $LIBS"
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15310 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15313
15314 /* Override any GCC internal prototype to avoid an error.
15315 Use char because int might match the return type of a GCC
15316 builtin and then its argument prototype would still apply. */
15317 #ifdef __cplusplus
15318 extern "C"
15319 #endif
15320 char pthread_join ();
15321 int
15322 main ()
15323 {
15324 return pthread_join ();
15325 ;
15326 return 0;
15327 }
15328 _ACEOF
15329 if ac_fn_c_try_link "$LINENO"; then :
15330 ax_pthread_ok=yes
15331 fi
15332 rm -f core conftest.err conftest.$ac_objext \
15333 conftest$ac_exeext conftest.$ac_ext
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15335 $as_echo "$ax_pthread_ok" >&6; }
15336 if test x"$ax_pthread_ok" = xno; then
15337 PTHREAD_LIBS=""
15338 PTHREAD_CFLAGS=""
15339 fi
15340 LIBS="$save_LIBS"
15341 CFLAGS="$save_CFLAGS"
15342 fi
15343
15344 # We must check for the threads library under a number of different
15345 # names; the ordering is very important because some systems
15346 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15347 # libraries is broken (non-POSIX).
15348
15349 # Create a list of thread flags to try. Items starting with a "-" are
15350 # C compiler flags, and other items are library names, except for "none"
15351 # which indicates that we try without any flags at all, and "pthread-config"
15352 # which is a program returning the flags for the Pth emulation library.
15353
15354 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15355
15356 # The ordering *is* (sometimes) important. Some notes on the
15357 # individual items follow:
15358
15359 # pthreads: AIX (must check this before -lpthread)
15360 # none: in case threads are in libc; should be tried before -Kthread and
15361 # other compiler flags to prevent continual compiler warnings
15362 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15363 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15364 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15365 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15366 # -pthreads: Solaris/gcc
15367 # -mthreads: Mingw32/gcc, Lynx/gcc
15368 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15369 # doesn't hurt to check since this sometimes defines pthreads too;
15370 # also defines -D_REENTRANT)
15371 # ... -mt is also the pthreads flag for HP/aCC
15372 # pthread: Linux, etcetera
15373 # --thread-safe: KAI C++
15374 # pthread-config: use pthread-config program (for GNU Pth library)
15375
15376 case ${host_os} in
15377 solaris*)
15378
15379 # On Solaris (at least, for some versions), libc contains stubbed
15380 # (non-functional) versions of the pthreads routines, so link-based
15381 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15382 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15383 # a function called by this macro, so we could check for that, but
15384 # who knows whether they'll stub that too in a future libc.) So,
15385 # we'll just look for -pthreads and -lpthread first:
15386
15387 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
15388 ;;
15389
15390 darwin*)
15391 ax_pthread_flags="-pthread $ax_pthread_flags"
15392 ;;
15393 esac
15394
15395 if test x"$ax_pthread_ok" = xno; then
15396 for flag in $ax_pthread_flags; do
15397
15398 case $flag in
15399 none)
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15401 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15402 ;;
15403
15404 -*)
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15406 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15407 PTHREAD_CFLAGS="$flag"
15408 ;;
15409
15410 pthread-config)
15411 # Extract the first word of "pthread-config", so it can be a program name with args.
15412 set dummy pthread-config; ac_word=$2
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15414 $as_echo_n "checking for $ac_word... " >&6; }
15415 if ${ac_cv_prog_ax_pthread_config+:} false; then :
15416 $as_echo_n "(cached) " >&6
15417 else
15418 if test -n "$ax_pthread_config"; then
15419 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15420 else
15421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15422 for as_dir in $PATH
15423 do
15424 IFS=$as_save_IFS
15425 test -z "$as_dir" && as_dir=.
15426 for ac_exec_ext in '' $ac_executable_extensions; do
15427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15428 ac_cv_prog_ax_pthread_config="yes"
15429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15430 break 2
15431 fi
15432 done
15433 done
15434 IFS=$as_save_IFS
15435
15436 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15437 fi
15438 fi
15439 ax_pthread_config=$ac_cv_prog_ax_pthread_config
15440 if test -n "$ax_pthread_config"; then
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15442 $as_echo "$ax_pthread_config" >&6; }
15443 else
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15445 $as_echo "no" >&6; }
15446 fi
15447
15448
15449 if test x"$ax_pthread_config" = xno; then continue; fi
15450 PTHREAD_CFLAGS="`pthread-config --cflags`"
15451 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15452 ;;
15453
15454 *)
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15456 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15457 PTHREAD_LIBS="-l$flag"
15458 ;;
15459 esac
15460
15461 save_LIBS="$LIBS"
15462 save_CFLAGS="$CFLAGS"
15463 LIBS="$PTHREAD_LIBS $LIBS"
15464 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15465
15466 # Check for various functions. We must include pthread.h,
15467 # since some functions may be macros. (On the Sequent, we
15468 # need a special flag -Kthread to make this header compile.)
15469 # We check for pthread_join because it is in -lpthread on IRIX
15470 # while pthread_create is in libc. We check for pthread_attr_init
15471 # due to DEC craziness with -lpthreads. We check for
15472 # pthread_cleanup_push because it is one of the few pthread
15473 # functions on Solaris that doesn't have a non-functional libc stub.
15474 # We try pthread_create on general principles.
15475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15476 /* end confdefs.h. */
15477 #include <pthread.h>
15478 static void routine(void *a) { *((int*)a) = 0; }
15479 static void *start_routine(void *a) { return a; }
15480 int
15481 main ()
15482 {
15483 pthread_t th; pthread_attr_t attr;
15484 pthread_create(&th, 0, start_routine, 0);
15485 pthread_join(th, 0);
15486 pthread_attr_init(&attr);
15487 pthread_cleanup_push(routine, 0);
15488 pthread_cleanup_pop(0) /* ; */
15489 ;
15490 return 0;
15491 }
15492 _ACEOF
15493 if ac_fn_c_try_link "$LINENO"; then :
15494 ax_pthread_ok=yes
15495 fi
15496 rm -f core conftest.err conftest.$ac_objext \
15497 conftest$ac_exeext conftest.$ac_ext
15498
15499 LIBS="$save_LIBS"
15500 CFLAGS="$save_CFLAGS"
15501
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15503 $as_echo "$ax_pthread_ok" >&6; }
15504 if test "x$ax_pthread_ok" = xyes; then
15505 break;
15506 fi
15507
15508 PTHREAD_LIBS=""
15509 PTHREAD_CFLAGS=""
15510 done
15511 fi
15512
15513 # Various other checks:
15514 if test "x$ax_pthread_ok" = xyes; then
15515 save_LIBS="$LIBS"
15516 LIBS="$PTHREAD_LIBS $LIBS"
15517 save_CFLAGS="$CFLAGS"
15518 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15519
15520 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15522 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15523 attr_name=unknown
15524 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15526 /* end confdefs.h. */
15527 #include <pthread.h>
15528 int
15529 main ()
15530 {
15531 int attr = $attr; return attr /* ; */
15532 ;
15533 return 0;
15534 }
15535 _ACEOF
15536 if ac_fn_c_try_link "$LINENO"; then :
15537 attr_name=$attr; break
15538 fi
15539 rm -f core conftest.err conftest.$ac_objext \
15540 conftest$ac_exeext conftest.$ac_ext
15541 done
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15543 $as_echo "$attr_name" >&6; }
15544 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15545
15546 cat >>confdefs.h <<_ACEOF
15547 #define PTHREAD_CREATE_JOINABLE $attr_name
15548 _ACEOF
15549
15550 fi
15551
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15553 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15554 flag=no
15555 case ${host_os} in
15556 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
15557 osf* | hpux*) flag="-D_REENTRANT";;
15558 solaris*)
15559 if test "$GCC" = "yes"; then
15560 flag="-D_REENTRANT"
15561 else
15562 flag="-mt -D_REENTRANT"
15563 fi
15564 ;;
15565 esac
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15567 $as_echo "${flag}" >&6; }
15568 if test "x$flag" != xno; then
15569 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15570 fi
15571
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15573 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15574 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
15575 $as_echo_n "(cached) " >&6
15576 else
15577
15578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579 /* end confdefs.h. */
15580
15581 #include <pthread.h>
15582 int
15583 main ()
15584 {
15585 int i = PTHREAD_PRIO_INHERIT;
15586 ;
15587 return 0;
15588 }
15589 _ACEOF
15590 if ac_fn_c_try_link "$LINENO"; then :
15591 ax_cv_PTHREAD_PRIO_INHERIT=yes
15592 else
15593 ax_cv_PTHREAD_PRIO_INHERIT=no
15594 fi
15595 rm -f core conftest.err conftest.$ac_objext \
15596 conftest$ac_exeext conftest.$ac_ext
15597
15598 fi
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15600 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15601 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
15602
15603 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15604
15605 fi
15606
15607 LIBS="$save_LIBS"
15608 CFLAGS="$save_CFLAGS"
15609
15610 # More AIX lossage: compile with *_r variant
15611 if test "x$GCC" != xyes; then
15612 case $host_os in
15613 aix*)
15614 case "x/$CC" in #(
15615 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
15616 #handle absolute path differently from PATH based program lookup
15617 case "x$CC" in #(
15618 x/*) :
15619 if as_fn_executable_p ${CC}_r; then :
15620 PTHREAD_CC="${CC}_r"
15621 fi ;; #(
15622 *) :
15623 for ac_prog in ${CC}_r
15624 do
15625 # Extract the first word of "$ac_prog", so it can be a program name with args.
15626 set dummy $ac_prog; ac_word=$2
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15628 $as_echo_n "checking for $ac_word... " >&6; }
15629 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15630 $as_echo_n "(cached) " >&6
15631 else
15632 if test -n "$PTHREAD_CC"; then
15633 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15634 else
15635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15636 for as_dir in $PATH
15637 do
15638 IFS=$as_save_IFS
15639 test -z "$as_dir" && as_dir=.
15640 for ac_exec_ext in '' $ac_executable_extensions; do
15641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15642 ac_cv_prog_PTHREAD_CC="$ac_prog"
15643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15644 break 2
15645 fi
15646 done
15647 done
15648 IFS=$as_save_IFS
15649
15650 fi
15651 fi
15652 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15653 if test -n "$PTHREAD_CC"; then
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15655 $as_echo "$PTHREAD_CC" >&6; }
15656 else
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15658 $as_echo "no" >&6; }
15659 fi
15660
15661
15662 test -n "$PTHREAD_CC" && break
15663 done
15664 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15665 ;;
15666 esac ;; #(
15667 *) :
15668 ;;
15669 esac
15670 ;;
15671 esac
15672 fi
15673 fi
15674
15675 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15676
15677
15678
15679
15680
15681 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15682 if test x"$ax_pthread_ok" = xyes; then
15683
15684
15685 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15686
15687 LIBS="$PTHREAD_LIBS $LIBS"
15688 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15689 CC="$PTHREAD_CC"
15690 ub_have_pthreads=yes
15691 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
15692 "
15693 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
15694
15695 cat >>confdefs.h <<_ACEOF
15696 #define HAVE_PTHREAD_SPINLOCK_T 1
15697 _ACEOF
15698
15699
15700 fi
15701 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15702 "
15703 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15704
15705 cat >>confdefs.h <<_ACEOF
15706 #define HAVE_PTHREAD_RWLOCK_T 1
15707 _ACEOF
15708
15709
15710 fi
15711
15712
15713 :
15714 else
15715 ax_pthread_ok=no
15716
15717 fi
15718 ac_ext=c
15719 ac_cpp='$CPP $CPPFLAGS'
15720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15723
15724
15725 fi
15726
15727 # check solaris thread library
15728
15729 # Check whether --with-solaris-threads was given.
15730 if test "${with_solaris_threads+set}" = set; then :
15731 withval=$with_solaris_threads;
15732 else
15733 withval="no"
15734 fi
15735
15736 ub_have_sol_threads=no
15737 if test x_$withval != x_no; then
15738 if test x_$ub_have_pthreads != x_no; then
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
15740 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
15741 else
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
15743 $as_echo_n "checking for library containing thr_create... " >&6; }
15744 if ${ac_cv_search_thr_create+:} false; then :
15745 $as_echo_n "(cached) " >&6
15746 else
15747 ac_func_search_save_LIBS=$LIBS
15748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749 /* end confdefs.h. */
15750
15751 /* Override any GCC internal prototype to avoid an error.
15752 Use char because int might match the return type of a GCC
15753 builtin and then its argument prototype would still apply. */
15754 #ifdef __cplusplus
15755 extern "C"
15756 #endif
15757 char thr_create ();
15758 int
15759 main ()
15760 {
15761 return thr_create ();
15762 ;
15763 return 0;
15764 }
15765 _ACEOF
15766 for ac_lib in '' thread; do
15767 if test -z "$ac_lib"; then
15768 ac_res="none required"
15769 else
15770 ac_res=-l$ac_lib
15771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15772 fi
15773 if ac_fn_c_try_link "$LINENO"; then :
15774 ac_cv_search_thr_create=$ac_res
15775 fi
15776 rm -f core conftest.err conftest.$ac_objext \
15777 conftest$ac_exeext
15778 if ${ac_cv_search_thr_create+:} false; then :
15779 break
15780 fi
15781 done
15782 if ${ac_cv_search_thr_create+:} false; then :
15783
15784 else
15785 ac_cv_search_thr_create=no
15786 fi
15787 rm conftest.$ac_ext
15788 LIBS=$ac_func_search_save_LIBS
15789 fi
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
15791 $as_echo "$ac_cv_search_thr_create" >&6; }
15792 ac_res=$ac_cv_search_thr_create
15793 if test "$ac_res" != no; then :
15794 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15795
15796
15797 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
15798
15799
15800
15801
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
15803 $as_echo_n "checking whether $CC supports -mt... " >&6; }
15804 cache=`echo mt | sed 'y%.=/+-%___p_%'`
15805 if eval \${cv_prog_cc_flag_$cache+:} false; then :
15806 $as_echo_n "(cached) " >&6
15807 else
15808
15809 echo 'void f(void){}' >conftest.c
15810 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
15811 eval "cv_prog_cc_flag_$cache=yes"
15812 else
15813 eval "cv_prog_cc_flag_$cache=no"
15814 fi
15815 rm -f conftest conftest.o conftest.c
15816
15817 fi
15818
15819 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15821 $as_echo "yes" >&6; }
15822 :
15823 CFLAGS="$CFLAGS -mt"
15824 else
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15826 $as_echo "no" >&6; }
15827 :
15828 CFLAGS="$CFLAGS -D_REENTRANT"
15829 fi
15830
15831 ub_have_sol_threads=yes
15832
15833 else
15834
15835 as_fn_error $? "no solaris threads found." "$LINENO" 5
15836
15837 fi
15838
15839 fi
15840 fi
15841
15842 fi # end of non-mingw check of thread libraries
15843
15844 # Check for PyUnbound
15845
15846 # Check whether --with-pyunbound was given.
15847 if test "${with_pyunbound+set}" = set; then :
15848 withval=$with_pyunbound;
15849 else
15850 withval="no"
15851 fi
15852
15853
15854 ub_test_python=no
15855 ub_with_pyunbound=no
15856 if test x_$withval != x_no; then
15857 ub_with_pyunbound=yes
15858 ub_test_python=yes
15859 fi
15860
15861 # Check for Python module
15862
15863 # Check whether --with-pythonmodule was given.
15864 if test "${with_pythonmodule+set}" = set; then :
15865 withval=$with_pythonmodule;
15866 else
15867 withval="no"
15868 fi
15869
15870
15871 ub_with_pythonmod=no
15872 if test x_$withval != x_no; then
15873 ub_with_pythonmod=yes
15874 ub_test_python=yes
15875 fi
15876
15877 # Check for Python & SWIG only on PyUnbound or PyModule
15878 if test x_$ub_test_python != x_no; then
15879
15880 # Check for Python
15881 ub_have_python=no
15882 ac_save_LIBS="$LIBS"
15883 #
15884 # Allow the use of a (user set) custom python version
15885 #
15886
15887
15888 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
15889 set dummy python$PYTHON_VERSION; ac_word=$2
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15891 $as_echo_n "checking for $ac_word... " >&6; }
15892 if ${ac_cv_path_PYTHON+:} false; then :
15893 $as_echo_n "(cached) " >&6
15894 else
15895 case $PYTHON in
15896 [\\/]* | ?:[\\/]*)
15897 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15898 ;;
15899 *)
15900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15901 for as_dir in $PATH
15902 do
15903 IFS=$as_save_IFS
15904 test -z "$as_dir" && as_dir=.
15905 for ac_exec_ext in '' $ac_executable_extensions; do
15906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15907 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15909 break 2
15910 fi
15911 done
15912 done
15913 IFS=$as_save_IFS
15914
15915 ;;
15916 esac
15917 fi
15918 PYTHON=$ac_cv_path_PYTHON
15919 if test -n "$PYTHON"; then
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15921 $as_echo "$PYTHON" >&6; }
15922 else
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15924 $as_echo "no" >&6; }
15925 fi
15926
15927
15928 if test -z "$PYTHON"; then
15929 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
15930 PYTHON_VERSION=""
15931 fi
15932
15933 if test -z "$PYTHON_VERSION"; then
15934 PYTHON_VERSION=`$PYTHON -c "import sys; \
15935 print(sys.version.split()[0])"`
15936 fi
15937
15938 #
15939 # Check if you have distutils, else fail
15940 #
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
15942 $as_echo_n "checking for the distutils Python package... " >&6; }
15943 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
15944 if test -z "$ac_distutils_result"; then
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15946 $as_echo "yes" >&6; }
15947 else
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15949 $as_echo "no" >&6; }
15950 as_fn_error $? "cannot import Python module \"distutils\".
15951 Please check your Python installation. The error was:
15952 $ac_distutils_result" "$LINENO" 5
15953 PYTHON_VERSION=""
15954 fi
15955
15956 #
15957 # Check for Python include path
15958 #
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
15960 $as_echo_n "checking for Python include path... " >&6; }
15961 if test -z "$PYTHON_CPPFLAGS"; then
15962 python_path=`$PYTHON -c "import distutils.sysconfig; \
15963 print(distutils.sysconfig.get_python_inc());"`
15964 if test -n "${python_path}"; then
15965 python_path="-I$python_path"
15966 fi
15967 PYTHON_CPPFLAGS=$python_path
15968 fi
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
15970 $as_echo "$PYTHON_CPPFLAGS" >&6; }
15971
15972
15973 #
15974 # Check for Python library path
15975 #
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
15977 $as_echo_n "checking for Python library path... " >&6; }
15978 if test -z "$PYTHON_LDFLAGS"; then
15979 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
15980 print(get_config_var('BLDLIBRARY'));"`
15981 fi
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
15983 $as_echo "$PYTHON_LDFLAGS" >&6; }
15984
15985
15986 #
15987 # Check for site packages
15988 #
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
15990 $as_echo_n "checking for Python site-packages path... " >&6; }
15991 if test -z "$PYTHON_SITE_PKG"; then
15992 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
15993 print(distutils.sysconfig.get_python_lib(1,0));"`
15994 fi
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
15996 $as_echo "$PYTHON_SITE_PKG" >&6; }
15997
15998
15999 #
16000 # final check to see if everything compiles alright
16001 #
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16003 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
16004 ac_ext=c
16005 ac_cpp='$CPP $CPPFLAGS'
16006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16009
16010 # save current global flags
16011 ac_save_LIBS="$LIBS"
16012 ac_save_CPPFLAGS="$CPPFLAGS"
16013
16014 LIBS="$LIBS $PYTHON_LDFLAGS"
16015 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16017 /* end confdefs.h. */
16018
16019 #include <Python.h>
16020
16021 int
16022 main ()
16023 {
16024
16025 Py_Initialize();
16026
16027 ;
16028 return 0;
16029 }
16030 _ACEOF
16031 if ac_fn_c_try_link "$LINENO"; then :
16032 pythonexists=yes
16033 else
16034 pythonexists=no
16035 fi
16036 rm -f core conftest.err conftest.$ac_objext \
16037 conftest$ac_exeext conftest.$ac_ext
16038
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16040 $as_echo "$pythonexists" >&6; }
16041
16042 if test ! "$pythonexists" = "yes"; then
16043 as_fn_error $? "
16044 Could not link test program to Python. Maybe the main Python library has been
16045 installed in some non-standard library path. If so, pass it to configure,
16046 via the LDFLAGS environment variable.
16047 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
16048 ============================================================================
16049 ERROR!
16050 You probably have to install the development version of the Python package
16051 for your distribution. The exact name of this package varies among them.
16052 ============================================================================
16053 " "$LINENO" 5
16054 PYTHON_VERSION=""
16055 fi
16056 ac_ext=c
16057 ac_cpp='$CPP $CPPFLAGS'
16058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16061
16062 # turn back to default flags
16063 CPPFLAGS="$ac_save_CPPFLAGS"
16064 LIBS="$ac_save_LIBS"
16065
16066 #
16067 # all done!
16068 #
16069
16070 if test ! -z "$PYTHON_VERSION"; then
16071 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
16072 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
16073 fi
16074
16075 # Have Python
16076
16077 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
16078
16079 LIBS="$PYTHON_LDFLAGS $LIBS"
16080 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16081 ub_have_python=yes
16082
16083 # Check for SWIG
16084 ub_have_swig=no
16085
16086 # Extract the first word of "swig", so it can be a program name with args.
16087 set dummy swig; ac_word=$2
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16089 $as_echo_n "checking for $ac_word... " >&6; }
16090 if ${ac_cv_path_SWIG+:} false; then :
16091 $as_echo_n "(cached) " >&6
16092 else
16093 case $SWIG in
16094 [\\/]* | ?:[\\/]*)
16095 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
16096 ;;
16097 *)
16098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16099 for as_dir in $PATH
16100 do
16101 IFS=$as_save_IFS
16102 test -z "$as_dir" && as_dir=.
16103 for ac_exec_ext in '' $ac_executable_extensions; do
16104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16105 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
16106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16107 break 2
16108 fi
16109 done
16110 done
16111 IFS=$as_save_IFS
16112
16113 ;;
16114 esac
16115 fi
16116 SWIG=$ac_cv_path_SWIG
16117 if test -n "$SWIG"; then
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
16119 $as_echo "$SWIG" >&6; }
16120 else
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16122 $as_echo "no" >&6; }
16123 fi
16124
16125
16126 if test -z "$SWIG" ; then
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
16128 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
16129 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
16130 elif test -n "" ; then
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
16132 $as_echo_n "checking for SWIG version... " >&6; }
16133 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'`
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
16135 $as_echo "$swig_version" >&6; }
16136 if test -n "$swig_version" ; then
16137 # Calculate the required version number components
16138 required=
16139 required_major=`echo $required | sed 's/[^0-9].*//'`
16140 if test -z "$required_major" ; then
16141 required_major=0
16142 fi
16143 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16144 required_minor=`echo $required | sed 's/[^0-9].*//'`
16145 if test -z "$required_minor" ; then
16146 required_minor=0
16147 fi
16148 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16149 required_patch=`echo $required | sed 's/[^0-9].*//'`
16150 if test -z "$required_patch" ; then
16151 required_patch=0
16152 fi
16153 # Calculate the available version number components
16154 available=$swig_version
16155 available_major=`echo $available | sed 's/[^0-9].*//'`
16156 if test -z "$available_major" ; then
16157 available_major=0
16158 fi
16159 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16160 available_minor=`echo $available | sed 's/[^0-9].*//'`
16161 if test -z "$available_minor" ; then
16162 available_minor=0
16163 fi
16164 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16165 available_patch=`echo $available | sed 's/[^0-9].*//'`
16166 if test -z "$available_patch" ; then
16167 available_patch=0
16168 fi
16169 if test $available_major -ne $required_major \
16170 -o $available_minor -ne $required_minor \
16171 -o $available_patch -lt $required_patch ; then
16172 { $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
16173 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
16174 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
16175 else
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
16177 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
16178 SWIG_LIB=`$SWIG -swiglib`
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
16180 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
16181 fi
16182 else
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
16184 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
16185 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
16186 fi
16187 fi
16188
16189
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
16191 $as_echo_n "checking SWIG... " >&6; }
16192 if test ! -x "$SWIG"; then
16193 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
16194 else
16195
16196 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
16197
16198 swig="$SWIG"
16199
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
16201 $as_echo "present" >&6; }
16202
16203 # If have Python & SWIG
16204 # Declare PythonMod
16205 if test x_$ub_with_pythonmod != x_no; then
16206
16207 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
16208
16209 WITH_PYTHONMODULE=yes
16210
16211 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
16212
16213 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
16214
16215 PYTHONMOD_INSTALL=pythonmod-install
16216
16217 PYTHONMOD_UNINSTALL=pythonmod-uninstall
16218
16219 fi
16220
16221 # Declare PyUnbound
16222 if test x_$ub_with_pyunbound != x_no; then
16223
16224 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
16225
16226 WITH_PYUNBOUND=yes
16227
16228 PYUNBOUND_OBJ="libunbound_wrap.lo"
16229
16230 PYUNBOUND_TARGET="_unbound.la"
16231
16232 PYUNBOUND_INSTALL=pyunbound-install
16233
16234 PYUNBOUND_UNINSTALL=pyunbound-uninstall
16235
16236 fi
16237 fi
16238 else
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
16240 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
16241 ub_with_pyunbound=no
16242 ub_with_pythonmod=no
16243 fi
16244 fi
16245
16246 if test "`uname`" = "NetBSD"; then
16247 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
16248
16249 fi
16250 CONFIG_DATE=`date +%Y%m%d`
16251
16252
16253 # Checks for libraries.
16254
16255 # libnss
16256 USE_NSS="no"
16257
16258 # Check whether --with-nss was given.
16259 if test "${with_nss+set}" = set; then :
16260 withval=$with_nss;
16261 USE_NSS="yes"
16262
16263 $as_echo "#define HAVE_NSS 1" >>confdefs.h
16264
16265 if test "$withval" != "" -a "$withval" != "yes"; then
16266 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
16267 LDFLAGS="$LDFLAGS -L$withval/lib"
16268
16269 if test "x$enable_rpath" = xyes; then
16270 if echo "$withval/lib" | grep "^/" >/dev/null; then
16271 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
16272 fi
16273 fi
16274
16275 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
16276 else
16277 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
16278 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
16279 fi
16280 LIBS="$LIBS -lnss3 -lnspr4"
16281
16282
16283 fi
16284
16285
16286 # openssl
16287 if test $USE_NSS = "no"; then
16288
16289
16290 # Check whether --with-ssl was given.
16291 if test "${with_ssl+set}" = set; then :
16292 withval=$with_ssl;
16293
16294 else
16295
16296 withval="yes"
16297
16298 fi
16299
16300 if test x_$withval = x_no; then
16301 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
16302 fi
16303
16304 withval=$withval
16305 if test x_$withval != x_no; then
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
16307 $as_echo_n "checking for SSL... " >&6; }
16308 if test x_$withval = x_ -o x_$withval = x_yes; then
16309 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
16310 fi
16311 for dir in $withval; do
16312 ssldir="$dir"
16313 if test -f "$dir/include/openssl/ssl.h"; then
16314 found_ssl="yes"
16315
16316 cat >>confdefs.h <<_ACEOF
16317 #define HAVE_SSL /**/
16318 _ACEOF
16319
16320 if test "$ssldir" != "/usr"; then
16321 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
16322 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
16323 fi
16324 break;
16325 fi
16326 done
16327 if test x_$found_ssl != x_yes; then
16328 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
16329 else
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
16331 $as_echo "found in $ssldir" >&6; }
16332 HAVE_SSL=yes
16333 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
16334 LDFLAGS="$LDFLAGS -L$ssldir/lib"
16335 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
16336
16337 if test "x$enable_rpath" = xyes; then
16338 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
16339 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
16340 fi
16341 fi
16342
16343 fi
16344
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
16346 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
16347 LIBS="$LIBS -lcrypto"
16348 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
16349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350 /* end confdefs.h. */
16351
16352 int
16353 main ()
16354 {
16355
16356 int HMAC_CTX_init(void);
16357 (void)HMAC_CTX_init();
16358
16359 ;
16360 return 0;
16361 }
16362 _ACEOF
16363 if ac_fn_c_try_link "$LINENO"; then :
16364
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16366 $as_echo "yes" >&6; }
16367
16368 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16369
16370
16371 else
16372
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16374 $as_echo "no" >&6; }
16375 # check if -lwsock32 or -lgdi32 are needed.
16376 BAKLIBS="$LIBS"
16377 BAKSSLLIBS="$LIBSSL_LIBS"
16378 LIBS="$LIBS -lgdi32"
16379 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
16381 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
16382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383 /* end confdefs.h. */
16384
16385 int
16386 main ()
16387 {
16388
16389 int HMAC_CTX_init(void);
16390 (void)HMAC_CTX_init();
16391
16392 ;
16393 return 0;
16394 }
16395 _ACEOF
16396 if ac_fn_c_try_link "$LINENO"; then :
16397
16398
16399 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16400
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16402 $as_echo "yes" >&6; }
16403
16404 else
16405
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16407 $as_echo "no" >&6; }
16408 LIBS="$BAKLIBS"
16409 LIBSSL_LIBS="$BAKSSLLIBS"
16410 LIBS="$LIBS -ldl"
16411 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
16413 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16415 /* end confdefs.h. */
16416
16417 int
16418 main ()
16419 {
16420
16421 int HMAC_CTX_init(void);
16422 (void)HMAC_CTX_init();
16423
16424 ;
16425 return 0;
16426 }
16427 _ACEOF
16428 if ac_fn_c_try_link "$LINENO"; then :
16429
16430
16431 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16432
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16434 $as_echo "yes" >&6; }
16435
16436 else
16437
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16439 $as_echo "no" >&6; }
16440 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
16441
16442 fi
16443 rm -f core conftest.err conftest.$ac_objext \
16444 conftest$ac_exeext conftest.$ac_ext
16445
16446 fi
16447 rm -f core conftest.err conftest.$ac_objext \
16448 conftest$ac_exeext conftest.$ac_ext
16449
16450 fi
16451 rm -f core conftest.err conftest.$ac_objext \
16452 conftest$ac_exeext conftest.$ac_ext
16453 fi
16454
16455
16456 # openssl engine functionality needs dlopen().
16457 BAKLIBS="$LIBS"
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16459 $as_echo_n "checking for library containing dlopen... " >&6; }
16460 if ${ac_cv_search_dlopen+:} false; then :
16461 $as_echo_n "(cached) " >&6
16462 else
16463 ac_func_search_save_LIBS=$LIBS
16464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h. */
16466
16467 /* Override any GCC internal prototype to avoid an error.
16468 Use char because int might match the return type of a GCC
16469 builtin and then its argument prototype would still apply. */
16470 #ifdef __cplusplus
16471 extern "C"
16472 #endif
16473 char dlopen ();
16474 int
16475 main ()
16476 {
16477 return dlopen ();
16478 ;
16479 return 0;
16480 }
16481 _ACEOF
16482 for ac_lib in '' dl; do
16483 if test -z "$ac_lib"; then
16484 ac_res="none required"
16485 else
16486 ac_res=-l$ac_lib
16487 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16488 fi
16489 if ac_fn_c_try_link "$LINENO"; then :
16490 ac_cv_search_dlopen=$ac_res
16491 fi
16492 rm -f core conftest.err conftest.$ac_objext \
16493 conftest$ac_exeext
16494 if ${ac_cv_search_dlopen+:} false; then :
16495 break
16496 fi
16497 done
16498 if ${ac_cv_search_dlopen+:} false; then :
16499
16500 else
16501 ac_cv_search_dlopen=no
16502 fi
16503 rm conftest.$ac_ext
16504 LIBS=$ac_func_search_save_LIBS
16505 fi
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16507 $as_echo "$ac_cv_search_dlopen" >&6; }
16508 ac_res=$ac_cv_search_dlopen
16509 if test "$ac_res" != no; then :
16510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16511
16512 fi
16513
16514 if test "$LIBS" != "$BAKLIBS"; then
16515 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16516 fi
16517 fi
16518 for ac_header in openssl/ssl.h
16519 do :
16520 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
16521 "
16522 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
16523 cat >>confdefs.h <<_ACEOF
16524 #define HAVE_OPENSSL_SSL_H 1
16525 _ACEOF
16526
16527 fi
16528
16529 done
16530
16531 for ac_header in openssl/err.h
16532 do :
16533 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
16534 "
16535 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
16536 cat >>confdefs.h <<_ACEOF
16537 #define HAVE_OPENSSL_ERR_H 1
16538 _ACEOF
16539
16540 fi
16541
16542 done
16543
16544 for ac_header in openssl/rand.h
16545 do :
16546 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
16547 "
16548 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
16549 cat >>confdefs.h <<_ACEOF
16550 #define HAVE_OPENSSL_RAND_H 1
16551 _ACEOF
16552
16553 fi
16554
16555 done
16556
16557
16558
16559
16560 # check if libssl needs libdl
16561 BAKLIBS="$LIBS"
16562 LIBS="-lssl $LIBS"
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
16564 $as_echo_n "checking if libssl needs libdl... " >&6; }
16565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16566 /* end confdefs.h. */
16567
16568 /* Override any GCC internal prototype to avoid an error.
16569 Use char because int might match the return type of a GCC
16570 builtin and then its argument prototype would still apply. */
16571 #ifdef __cplusplus
16572 extern "C"
16573 #endif
16574 char SSL_CTX_new ();
16575 int
16576 main ()
16577 {
16578 return SSL_CTX_new ();
16579 ;
16580 return 0;
16581 }
16582 _ACEOF
16583 if ac_fn_c_try_link "$LINENO"; then :
16584
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16586 $as_echo "no" >&6; }
16587 LIBS="$BAKLIBS"
16588
16589 else
16590
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16592 $as_echo "yes" >&6; }
16593 LIBS="$BAKLIBS"
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16595 $as_echo_n "checking for library containing dlopen... " >&6; }
16596 if ${ac_cv_search_dlopen+:} false; then :
16597 $as_echo_n "(cached) " >&6
16598 else
16599 ac_func_search_save_LIBS=$LIBS
16600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601 /* end confdefs.h. */
16602
16603 /* Override any GCC internal prototype to avoid an error.
16604 Use char because int might match the return type of a GCC
16605 builtin and then its argument prototype would still apply. */
16606 #ifdef __cplusplus
16607 extern "C"
16608 #endif
16609 char dlopen ();
16610 int
16611 main ()
16612 {
16613 return dlopen ();
16614 ;
16615 return 0;
16616 }
16617 _ACEOF
16618 for ac_lib in '' dl; do
16619 if test -z "$ac_lib"; then
16620 ac_res="none required"
16621 else
16622 ac_res=-l$ac_lib
16623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16624 fi
16625 if ac_fn_c_try_link "$LINENO"; then :
16626 ac_cv_search_dlopen=$ac_res
16627 fi
16628 rm -f core conftest.err conftest.$ac_objext \
16629 conftest$ac_exeext
16630 if ${ac_cv_search_dlopen+:} false; then :
16631 break
16632 fi
16633 done
16634 if ${ac_cv_search_dlopen+:} false; then :
16635
16636 else
16637 ac_cv_search_dlopen=no
16638 fi
16639 rm conftest.$ac_ext
16640 LIBS=$ac_func_search_save_LIBS
16641 fi
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16643 $as_echo "$ac_cv_search_dlopen" >&6; }
16644 ac_res=$ac_cv_search_dlopen
16645 if test "$ac_res" != no; then :
16646 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16647
16648 fi
16649
16650
16651 fi
16652 rm -f core conftest.err conftest.$ac_objext \
16653 conftest$ac_exeext conftest.$ac_ext
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
16655 $as_echo_n "checking for LibreSSL... " >&6; }
16656 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16658 $as_echo "yes" >&6; }
16659
16660 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
16661
16662 # libressl provides these compat functions, but they may also be
16663 # declared by the OS in libc. See if they have been declared.
16664 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
16665 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
16666 ac_have_decl=1
16667 else
16668 ac_have_decl=0
16669 fi
16670
16671 cat >>confdefs.h <<_ACEOF
16672 #define HAVE_DECL_STRLCPY $ac_have_decl
16673 _ACEOF
16674 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
16675 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
16676 ac_have_decl=1
16677 else
16678 ac_have_decl=0
16679 fi
16680
16681 cat >>confdefs.h <<_ACEOF
16682 #define HAVE_DECL_STRLCAT $ac_have_decl
16683 _ACEOF
16684 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
16685 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
16686 ac_have_decl=1
16687 else
16688 ac_have_decl=0
16689 fi
16690
16691 cat >>confdefs.h <<_ACEOF
16692 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
16693 _ACEOF
16694 ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
16695 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
16696 ac_have_decl=1
16697 else
16698 ac_have_decl=0
16699 fi
16700
16701 cat >>confdefs.h <<_ACEOF
16702 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
16703 _ACEOF
16704
16705 else
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16707 $as_echo "no" >&6; }
16708 fi
16709 for ac_header in openssl/conf.h
16710 do :
16711 ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default
16712 "
16713 if test "x$ac_cv_header_openssl_conf_h" = xyes; then :
16714 cat >>confdefs.h <<_ACEOF
16715 #define HAVE_OPENSSL_CONF_H 1
16716 _ACEOF
16717
16718 fi
16719
16720 done
16721
16722 for ac_header in openssl/engine.h
16723 do :
16724 ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default
16725 "
16726 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
16727 cat >>confdefs.h <<_ACEOF
16728 #define HAVE_OPENSSL_ENGINE_H 1
16729 _ACEOF
16730
16731 fi
16732
16733 done
16734
16735 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode
16736 do :
16737 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16738 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16739 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16740 cat >>confdefs.h <<_ACEOF
16741 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16742 _ACEOF
16743
16744 fi
16745 done
16746
16747 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
16748 $ac_includes_default
16749 #ifdef HAVE_OPENSSL_ERR_H
16750 #include <openssl/err.h>
16751 #endif
16752
16753 #ifdef HAVE_OPENSSL_RAND_H
16754 #include <openssl/rand.h>
16755 #endif
16756
16757 #ifdef HAVE_OPENSSL_CONF_H
16758 #include <openssl/conf.h>
16759 #endif
16760
16761 #ifdef HAVE_OPENSSL_ENGINE_H
16762 #include <openssl/engine.h>
16763 #endif
16764 #include <openssl/ssl.h>
16765 #include <openssl/evp.h>
16766
16767 "
16768 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
16769 ac_have_decl=1
16770 else
16771 ac_have_decl=0
16772 fi
16773
16774 cat >>confdefs.h <<_ACEOF
16775 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
16776 _ACEOF
16777 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
16778 $ac_includes_default
16779 #ifdef HAVE_OPENSSL_ERR_H
16780 #include <openssl/err.h>
16781 #endif
16782
16783 #ifdef HAVE_OPENSSL_RAND_H
16784 #include <openssl/rand.h>
16785 #endif
16786
16787 #ifdef HAVE_OPENSSL_CONF_H
16788 #include <openssl/conf.h>
16789 #endif
16790
16791 #ifdef HAVE_OPENSSL_ENGINE_H
16792 #include <openssl/engine.h>
16793 #endif
16794 #include <openssl/ssl.h>
16795 #include <openssl/evp.h>
16796
16797 "
16798 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
16799 ac_have_decl=1
16800 else
16801 ac_have_decl=0
16802 fi
16803
16804 cat >>confdefs.h <<_ACEOF
16805 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
16806 _ACEOF
16807
16808 fi
16809
16810
16811 # Check whether --enable-sha2 was given.
16812 if test "${enable_sha2+set}" = set; then :
16813 enableval=$enable_sha2;
16814 fi
16815
16816 case "$enable_sha2" in
16817 no)
16818 ;;
16819 yes|*)
16820
16821 $as_echo "#define USE_SHA2 1" >>confdefs.h
16822
16823 ;;
16824 esac
16825
16826 # check wether gost also works
16827
16828 # Check whether --enable-gost was given.
16829 if test "${enable_gost+set}" = set; then :
16830 enableval=$enable_gost;
16831 fi
16832
16833 use_gost="no"
16834 if test $USE_NSS = "no"; then
16835 case "$enable_gost" in
16836 no)
16837 ;;
16838 *)
16839 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
16840 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
16841 :
16842 else
16843 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
16844 fi
16845
16846 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
16847 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
16848
16849 else
16850 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
16851 fi
16852
16853
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
16855 $as_echo_n "checking if GOST works... " >&6; }
16856 if test c${cross_compiling} = cno; then
16857 BAKCFLAGS="$CFLAGS"
16858 if test -n "$ssldir"; then
16859 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
16860 fi
16861 if test "$cross_compiling" = yes; then :
16862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16864 as_fn_error $? "cannot run test program while cross compiling
16865 See \`config.log' for more details" "$LINENO" 5; }
16866 else
16867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16868 /* end confdefs.h. */
16869
16870 #include <string.h>
16871 #include <openssl/ssl.h>
16872 #include <openssl/evp.h>
16873 #include <openssl/engine.h>
16874 #include <openssl/conf.h>
16875 /* routine to load gost (from sldns) */
16876 int load_gost_id(void)
16877 {
16878 static int gost_id = 0;
16879 const EVP_PKEY_ASN1_METHOD* meth;
16880 ENGINE* e;
16881
16882 if(gost_id) return gost_id;
16883
16884 /* see if configuration loaded gost implementation from other engine*/
16885 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
16886 if(meth) {
16887 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16888 return gost_id;
16889 }
16890
16891 /* see if engine can be loaded already */
16892 e = ENGINE_by_id("gost");
16893 if(!e) {
16894 /* load it ourself, in case statically linked */
16895 ENGINE_load_builtin_engines();
16896 ENGINE_load_dynamic();
16897 e = ENGINE_by_id("gost");
16898 }
16899 if(!e) {
16900 /* no gost engine in openssl */
16901 return 0;
16902 }
16903 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
16904 ENGINE_finish(e);
16905 ENGINE_free(e);
16906 return 0;
16907 }
16908
16909 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
16910 if(!meth) {
16911 /* algo not found */
16912 ENGINE_finish(e);
16913 ENGINE_free(e);
16914 return 0;
16915 }
16916 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16917 return gost_id;
16918 }
16919 int main(void) {
16920 EVP_MD_CTX* ctx;
16921 const EVP_MD* md;
16922 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
16923 const char* str = "Hello world";
16924 const unsigned char check[] = {
16925 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
16926 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
16927 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
16928 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
16929 };
16930 OPENSSL_config(NULL);
16931 (void)load_gost_id();
16932 md = EVP_get_digestbyname("md_gost94");
16933 if(!md) return 1;
16934 memset(digest, 0, sizeof(digest));
16935 ctx = EVP_MD_CTX_create();
16936 if(!ctx) return 2;
16937 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
16938 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
16939 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
16940 /* uncomment to see the hash calculated.
16941 {int i;
16942 for(i=0; i<32; i++)
16943 printf(" %2.2x", (int)digest[i]);
16944 printf("\n");}
16945 */
16946 if(memcmp(digest, check, sizeof(check)) != 0)
16947 return 6;
16948 return 0;
16949 }
16950
16951 _ACEOF
16952 if ac_fn_c_try_run "$LINENO"; then :
16953 eval "ac_cv_c_gost_works=yes"
16954 else
16955 eval "ac_cv_c_gost_works=no"
16956 fi
16957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16958 conftest.$ac_objext conftest.beam conftest.$ac_ext
16959 fi
16960
16961 CFLAGS="$BAKCFLAGS"
16962 else
16963 eval "ac_cv_c_gost_works=maybe"
16964 fi
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
16966 $as_echo "$ac_cv_c_gost_works" >&6; }
16967
16968 if test "$ac_cv_c_gost_works" != no; then
16969 use_gost="yes"
16970
16971 $as_echo "#define USE_GOST 1" >>confdefs.h
16972
16973 fi
16974 ;;
16975 esac
16976 fi
16977 # Check whether --enable-ecdsa was given.
16978 if test "${enable_ecdsa+set}" = set; then :
16979 enableval=$enable_ecdsa;
16980 fi
16981
16982 use_ecdsa="no"
16983 case "$enable_ecdsa" in
16984 no)
16985 ;;
16986 *)
16987 if test $USE_NSS = "no"; then
16988 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
16989 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
16990
16991 else
16992 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16993 fi
16994
16995 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
16996 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
16997
16998 else
16999 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17000 fi
17001
17002 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
17003 #include <openssl/evp.h>
17004
17005 "
17006 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
17007 ac_have_decl=1
17008 else
17009 ac_have_decl=0
17010 fi
17011
17012 cat >>confdefs.h <<_ACEOF
17013 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
17014 _ACEOF
17015 if test $ac_have_decl = 1; then :
17016
17017 else
17018 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17019 fi
17020 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
17021 #include <openssl/evp.h>
17022
17023 "
17024 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
17025 ac_have_decl=1
17026 else
17027 ac_have_decl=0
17028 fi
17029
17030 cat >>confdefs.h <<_ACEOF
17031 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
17032 _ACEOF
17033 if test $ac_have_decl = 1; then :
17034
17035 else
17036 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17037 fi
17038
17039 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
17041 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
17042 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
17043 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17045 $as_echo "no" >&6; }
17046
17047 cat >>confdefs.h <<_ACEOF
17048 #define USE_ECDSA_EVP_WORKAROUND 1
17049 _ACEOF
17050
17051 else
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17053 $as_echo "yes" >&6; }
17054 fi
17055 else
17056 # not OpenSSL, thus likely LibreSSL, which supports it
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17058 $as_echo "yes" >&6; }
17059 fi
17060 fi
17061 # we now know we have ECDSA and the required curves.
17062
17063 cat >>confdefs.h <<_ACEOF
17064 #define USE_ECDSA 1
17065 _ACEOF
17066
17067 use_ecdsa="yes"
17068 ;;
17069 esac
17070
17071 # Check whether --enable-event-api was given.
17072 if test "${enable_event_api+set}" = set; then :
17073 enableval=$enable_event_api;
17074 fi
17075
17076 use_unbound_event="no"
17077 case "$enable_event_api" in
17078 yes)
17079 use_unbound_event="yes"
17080 ;;
17081 *)
17082 ;;
17083 esac
17084
17085 # check for libevent
17086
17087 # Check whether --with-libevent was given.
17088 if test "${with_libevent+set}" = set; then :
17089 withval=$with_libevent;
17090 else
17091 withval="no"
17092 fi
17093
17094 if test x_$withval = x_yes -o x_$withval != x_no; then
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
17096 $as_echo_n "checking for libevent... " >&6; }
17097 if test x_$withval = x_ -o x_$withval = x_yes; then
17098 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17099 fi
17100 for dir in $withval; do
17101 thedir="$dir"
17102 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
17103 found_libevent="yes"
17104 if test "$thedir" != "/usr"; then
17105 CPPFLAGS="$CPPFLAGS -I$thedir/include"
17106 fi
17107 break;
17108 fi
17109 done
17110 if test x_$found_libevent != x_yes; then
17111 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
17112 # libevent source directory
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
17114 $as_echo "found in $thedir" >&6; }
17115 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
17116 BAK_LDFLAGS_SET="1"
17117 BAK_LDFLAGS="$LDFLAGS"
17118 # remove evdns from linking
17119 mkdir build >/dev/null 2>&1
17120 mkdir build/libevent >/dev/null 2>&1
17121 mkdir build/libevent/.libs >/dev/null 2>&1
17122 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
17123 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
17124 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
17125 cp $ev_files_o build/libevent
17126 cp $ev_files_lo build/libevent
17127 cp $ev_files_libso build/libevent/.libs
17128 LATE_LDFLAGS="build/libevent/*.lo -lm"
17129 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
17130 else
17131 as_fn_error $? "Cannot find the libevent library in $withval
17132 You can restart ./configure --with-libevent=no to use a builtin alternative.
17133 Please note that this alternative is not as capable as libevent when using
17134 large outgoing port ranges. " "$LINENO" 5
17135 fi
17136 else
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
17138 $as_echo "found in $thedir" >&6; }
17139 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
17140 LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
17141
17142 if test "x$enable_rpath" = xyes; then
17143 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
17144 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
17145 fi
17146 fi
17147
17148 else
17149 if test "$thedir" != "/usr" -a "$thedir" != ""; then
17150 LDFLAGS="$LDFLAGS -L$thedir/lib"
17151
17152 if test "x$enable_rpath" = xyes; then
17153 if echo "$thedir/lib" | grep "^/" >/dev/null; then
17154 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
17155 fi
17156 fi
17157
17158 fi
17159 fi
17160 fi
17161 # check for library used by libevent after 1.3c
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17163 $as_echo_n "checking for library containing clock_gettime... " >&6; }
17164 if ${ac_cv_search_clock_gettime+:} false; then :
17165 $as_echo_n "(cached) " >&6
17166 else
17167 ac_func_search_save_LIBS=$LIBS
17168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17169 /* end confdefs.h. */
17170
17171 /* Override any GCC internal prototype to avoid an error.
17172 Use char because int might match the return type of a GCC
17173 builtin and then its argument prototype would still apply. */
17174 #ifdef __cplusplus
17175 extern "C"
17176 #endif
17177 char clock_gettime ();
17178 int
17179 main ()
17180 {
17181 return clock_gettime ();
17182 ;
17183 return 0;
17184 }
17185 _ACEOF
17186 for ac_lib in '' rt; do
17187 if test -z "$ac_lib"; then
17188 ac_res="none required"
17189 else
17190 ac_res=-l$ac_lib
17191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17192 fi
17193 if ac_fn_c_try_link "$LINENO"; then :
17194 ac_cv_search_clock_gettime=$ac_res
17195 fi
17196 rm -f core conftest.err conftest.$ac_objext \
17197 conftest$ac_exeext
17198 if ${ac_cv_search_clock_gettime+:} false; then :
17199 break
17200 fi
17201 done
17202 if ${ac_cv_search_clock_gettime+:} false; then :
17203
17204 else
17205 ac_cv_search_clock_gettime=no
17206 fi
17207 rm conftest.$ac_ext
17208 LIBS=$ac_func_search_save_LIBS
17209 fi
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17211 $as_echo "$ac_cv_search_clock_gettime" >&6; }
17212 ac_res=$ac_cv_search_clock_gettime
17213 if test "$ac_res" != no; then :
17214 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17215
17216 fi
17217
17218
17219 # is the event.h header libev or libevent?
17220 for ac_header in event.h
17221 do :
17222 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
17223 "
17224 if test "x$ac_cv_header_event_h" = xyes; then :
17225 cat >>confdefs.h <<_ACEOF
17226 #define HAVE_EVENT_H 1
17227 _ACEOF
17228
17229 fi
17230
17231 done
17232
17233 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
17234 #include <event.h>
17235
17236 "
17237 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
17238
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17240 $as_echo_n "checking for library containing event_set... " >&6; }
17241 if ${ac_cv_search_event_set+:} false; then :
17242 $as_echo_n "(cached) " >&6
17243 else
17244 ac_func_search_save_LIBS=$LIBS
17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h. */
17247
17248 /* Override any GCC internal prototype to avoid an error.
17249 Use char because int might match the return type of a GCC
17250 builtin and then its argument prototype would still apply. */
17251 #ifdef __cplusplus
17252 extern "C"
17253 #endif
17254 char event_set ();
17255 int
17256 main ()
17257 {
17258 return event_set ();
17259 ;
17260 return 0;
17261 }
17262 _ACEOF
17263 for ac_lib in '' ev; do
17264 if test -z "$ac_lib"; then
17265 ac_res="none required"
17266 else
17267 ac_res=-l$ac_lib
17268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17269 fi
17270 if ac_fn_c_try_link "$LINENO"; then :
17271 ac_cv_search_event_set=$ac_res
17272 fi
17273 rm -f core conftest.err conftest.$ac_objext \
17274 conftest$ac_exeext
17275 if ${ac_cv_search_event_set+:} false; then :
17276 break
17277 fi
17278 done
17279 if ${ac_cv_search_event_set+:} false; then :
17280
17281 else
17282 ac_cv_search_event_set=no
17283 fi
17284 rm conftest.$ac_ext
17285 LIBS=$ac_func_search_save_LIBS
17286 fi
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17288 $as_echo "$ac_cv_search_event_set" >&6; }
17289 ac_res=$ac_cv_search_event_set
17290 if test "$ac_res" != no; then :
17291 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17292
17293 fi
17294
17295
17296 else
17297
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17299 $as_echo_n "checking for library containing event_set... " >&6; }
17300 if ${ac_cv_search_event_set+:} false; then :
17301 $as_echo_n "(cached) " >&6
17302 else
17303 ac_func_search_save_LIBS=$LIBS
17304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17305 /* end confdefs.h. */
17306
17307 /* Override any GCC internal prototype to avoid an error.
17308 Use char because int might match the return type of a GCC
17309 builtin and then its argument prototype would still apply. */
17310 #ifdef __cplusplus
17311 extern "C"
17312 #endif
17313 char event_set ();
17314 int
17315 main ()
17316 {
17317 return event_set ();
17318 ;
17319 return 0;
17320 }
17321 _ACEOF
17322 for ac_lib in '' event; do
17323 if test -z "$ac_lib"; then
17324 ac_res="none required"
17325 else
17326 ac_res=-l$ac_lib
17327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17328 fi
17329 if ac_fn_c_try_link "$LINENO"; then :
17330 ac_cv_search_event_set=$ac_res
17331 fi
17332 rm -f core conftest.err conftest.$ac_objext \
17333 conftest$ac_exeext
17334 if ${ac_cv_search_event_set+:} false; then :
17335 break
17336 fi
17337 done
17338 if ${ac_cv_search_event_set+:} false; then :
17339
17340 else
17341 ac_cv_search_event_set=no
17342 fi
17343 rm conftest.$ac_ext
17344 LIBS=$ac_func_search_save_LIBS
17345 fi
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17347 $as_echo "$ac_cv_search_event_set" >&6; }
17348 ac_res=$ac_cv_search_event_set
17349 if test "$ac_res" != no; then :
17350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17351
17352 fi
17353
17354
17355 fi
17356
17357 for ac_func in event_base_free
17358 do :
17359 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
17360 if test "x$ac_cv_func_event_base_free" = xyes; then :
17361 cat >>confdefs.h <<_ACEOF
17362 #define HAVE_EVENT_BASE_FREE 1
17363 _ACEOF
17364
17365 fi
17366 done
17367 # only in libevent 1.2 and later
17368 for ac_func in event_base_once
17369 do :
17370 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
17371 if test "x$ac_cv_func_event_base_once" = xyes; then :
17372 cat >>confdefs.h <<_ACEOF
17373 #define HAVE_EVENT_BASE_ONCE 1
17374 _ACEOF
17375
17376 fi
17377 done
17378 # only in libevent 1.4.1 and later
17379 for ac_func in event_base_new
17380 do :
17381 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
17382 if test "x$ac_cv_func_event_base_new" = xyes; then :
17383 cat >>confdefs.h <<_ACEOF
17384 #define HAVE_EVENT_BASE_NEW 1
17385 _ACEOF
17386
17387 fi
17388 done
17389 # only in libevent 1.4.1 and later
17390 for ac_func in event_base_get_method
17391 do :
17392 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
17393 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
17394 cat >>confdefs.h <<_ACEOF
17395 #define HAVE_EVENT_BASE_GET_METHOD 1
17396 _ACEOF
17397
17398 fi
17399 done
17400 # only in libevent 1.4.3 and later
17401 for ac_func in ev_loop
17402 do :
17403 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
17404 if test "x$ac_cv_func_ev_loop" = xyes; then :
17405 cat >>confdefs.h <<_ACEOF
17406 #define HAVE_EV_LOOP 1
17407 _ACEOF
17408
17409 fi
17410 done
17411 # only in libev. (tested on 3.51)
17412 for ac_func in ev_default_loop
17413 do :
17414 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
17415 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
17416 cat >>confdefs.h <<_ACEOF
17417 #define HAVE_EV_DEFAULT_LOOP 1
17418 _ACEOF
17419
17420 fi
17421 done
17422 # only in libev. (tested on 4.00)
17423 if test -n "$BAK_LDFLAGS_SET"; then
17424 LDFLAGS="$BAK_LDFLAGS"
17425 fi
17426 if test "$use_unbound_event" = "yes"; then
17427 UNBOUND_EVENT_INSTALL=unbound-event-install
17428
17429 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
17430
17431 fi
17432 else
17433
17434 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
17435
17436 fi
17437
17438 # check for libexpat
17439
17440 # Check whether --with-libexpat was given.
17441 if test "${with_libexpat+set}" = set; then :
17442 withval=$with_libexpat;
17443 else
17444 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17445 fi
17446
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
17448 $as_echo_n "checking for libexpat... " >&6; }
17449 found_libexpat="no"
17450 for dir in $withval ; do
17451 if test -f "$dir/include/expat.h"; then
17452 found_libexpat="yes"
17453 if test "$dir" != "/usr"; then
17454 CPPFLAGS="$CPPFLAGS -I$dir/include"
17455 LDFLAGS="$LDFLAGS -L$dir/lib"
17456 fi
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
17458 $as_echo "found in $dir" >&6; }
17459 break;
17460 fi
17461 done
17462 if test x_$found_libexpat != x_yes; then
17463 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
17464 fi
17465 for ac_header in expat.h
17466 do :
17467 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
17468 "
17469 if test "x$ac_cv_header_expat_h" = xyes; then :
17470 cat >>confdefs.h <<_ACEOF
17471 #define HAVE_EXPAT_H 1
17472 _ACEOF
17473
17474 fi
17475
17476 done
17477
17478
17479 # set static linking if requested
17480
17481 staticexe=""
17482 # Check whether --enable-static-exe was given.
17483 if test "${enable_static_exe+set}" = set; then :
17484 enableval=$enable_static_exe;
17485 fi
17486
17487 if test x_$enable_static_exe = x_yes; then
17488 staticexe="-static"
17489 if test "$on_mingw" = yes; then
17490 staticexe="-all-static"
17491 # for static crosscompile, include gdi32 and zlib here.
17492 if test "`uname`" = "Linux"; then
17493 LIBS="$LIBS -lgdi32 -lz"
17494 fi
17495 fi
17496 fi
17497
17498 # set lock checking if requested
17499 # Check whether --enable-lock_checks was given.
17500 if test "${enable_lock_checks+set}" = set; then :
17501 enableval=$enable_lock_checks;
17502 fi
17503
17504 if test x_$enable_lock_checks = x_yes; then
17505
17506 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
17507
17508 CHECKLOCK_OBJ="checklocks.lo"
17509
17510 fi
17511
17512
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
17514 $as_echo_n "checking for getaddrinfo... " >&6; }
17515 ac_cv_func_getaddrinfo=no
17516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17517 /* end confdefs.h. */
17518
17519 #ifdef __cplusplus
17520 extern "C"
17521 {
17522 #endif
17523 char* getaddrinfo();
17524 char* (*f) () = getaddrinfo;
17525 #ifdef __cplusplus
17526 }
17527 #endif
17528 int main() {
17529 ;
17530 return 0;
17531 }
17532
17533 _ACEOF
17534 if ac_fn_c_try_link "$LINENO"; then :
17535 ac_cv_func_getaddrinfo="yes"
17536 if test "$ac_cv_header_windows_h" = "yes"; then
17537
17538 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17539
17540 USE_WINSOCK="1"
17541 LIBS="$LIBS -lws2_32"
17542 fi
17543
17544 else
17545 ORIGLIBS="$LIBS"
17546 LIBS="$LIBS -lws2_32"
17547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17548 /* end confdefs.h. */
17549
17550 #ifdef HAVE_WS2TCPIP_H
17551 #include <ws2tcpip.h>
17552 #endif
17553
17554 int
17555 main ()
17556 {
17557
17558 (void)getaddrinfo(NULL, NULL, NULL, NULL);
17559
17560
17561 ;
17562 return 0;
17563 }
17564 _ACEOF
17565 if ac_fn_c_try_link "$LINENO"; then :
17566
17567 ac_cv_func_getaddrinfo="yes"
17568
17569 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17570
17571 USE_WINSOCK="1"
17572
17573 else
17574
17575 ac_cv_func_getaddrinfo="no"
17576 LIBS="$ORIGLIBS"
17577
17578 fi
17579 rm -f core conftest.err conftest.$ac_objext \
17580 conftest$ac_exeext conftest.$ac_ext
17581
17582 fi
17583 rm -f core conftest.err conftest.$ac_objext \
17584 conftest$ac_exeext conftest.$ac_ext
17585
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
17587 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
17588 if test $ac_cv_func_getaddrinfo = yes; then
17589
17590 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17591
17592 fi
17593
17594 if test "$USE_WINSOCK" = 1; then
17595
17596 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
17597
17598 for ac_header in iphlpapi.h
17599 do :
17600 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
17601 #include <windows.h>
17602
17603 "
17604 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
17605 cat >>confdefs.h <<_ACEOF
17606 #define HAVE_IPHLPAPI_H 1
17607 _ACEOF
17608
17609 fi
17610
17611 done
17612
17613 if test -n "$ac_tool_prefix"; then
17614 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17615 set dummy ${ac_tool_prefix}windres; ac_word=$2
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17617 $as_echo_n "checking for $ac_word... " >&6; }
17618 if ${ac_cv_prog_WINDRES+:} false; then :
17619 $as_echo_n "(cached) " >&6
17620 else
17621 if test -n "$WINDRES"; then
17622 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17623 else
17624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17625 for as_dir in $PATH
17626 do
17627 IFS=$as_save_IFS
17628 test -z "$as_dir" && as_dir=.
17629 for ac_exec_ext in '' $ac_executable_extensions; do
17630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17631 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
17632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17633 break 2
17634 fi
17635 done
17636 done
17637 IFS=$as_save_IFS
17638
17639 fi
17640 fi
17641 WINDRES=$ac_cv_prog_WINDRES
17642 if test -n "$WINDRES"; then
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
17644 $as_echo "$WINDRES" >&6; }
17645 else
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17647 $as_echo "no" >&6; }
17648 fi
17649
17650
17651 fi
17652 if test -z "$ac_cv_prog_WINDRES"; then
17653 ac_ct_WINDRES=$WINDRES
17654 # Extract the first word of "windres", so it can be a program name with args.
17655 set dummy windres; ac_word=$2
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17657 $as_echo_n "checking for $ac_word... " >&6; }
17658 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
17659 $as_echo_n "(cached) " >&6
17660 else
17661 if test -n "$ac_ct_WINDRES"; then
17662 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17663 else
17664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17665 for as_dir in $PATH
17666 do
17667 IFS=$as_save_IFS
17668 test -z "$as_dir" && as_dir=.
17669 for ac_exec_ext in '' $ac_executable_extensions; do
17670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17671 ac_cv_prog_ac_ct_WINDRES="windres"
17672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17673 break 2
17674 fi
17675 done
17676 done
17677 IFS=$as_save_IFS
17678
17679 fi
17680 fi
17681 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17682 if test -n "$ac_ct_WINDRES"; then
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
17684 $as_echo "$ac_ct_WINDRES" >&6; }
17685 else
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17687 $as_echo "no" >&6; }
17688 fi
17689
17690 if test "x$ac_ct_WINDRES" = x; then
17691 WINDRES=""
17692 else
17693 case $cross_compiling:$ac_tool_warned in
17694 yes:)
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17697 ac_tool_warned=yes ;;
17698 esac
17699 WINDRES=$ac_ct_WINDRES
17700 fi
17701 else
17702 WINDRES="$ac_cv_prog_WINDRES"
17703 fi
17704
17705 LIBS="$LIBS -liphlpapi"
17706 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
17707
17708 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
17709
17710 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
17711
17712 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
17713
17714 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
17715
17716 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
17717
17718 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
17719
17720 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
17721
17722 fi
17723 if test $ac_cv_func_getaddrinfo = no; then
17724 case " $LIBOBJS " in
17725 *" fake-rfc2553.$ac_objext "* ) ;;
17726 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
17727 ;;
17728 esac
17729
17730 fi
17731 # check after getaddrinfo for its libraries
17732
17733 # check ioctlsocket
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
17735 $as_echo_n "checking for ioctlsocket... " >&6; }
17736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17737 /* end confdefs.h. */
17738
17739 #ifdef HAVE_WINSOCK2_H
17740 #include <winsock2.h>
17741 #endif
17742
17743 int
17744 main ()
17745 {
17746
17747 (void)ioctlsocket(0, 0, NULL);
17748
17749 ;
17750 return 0;
17751 }
17752 _ACEOF
17753 if ac_fn_c_try_link "$LINENO"; then :
17754
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17756 $as_echo "yes" >&6; }
17757
17758 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
17759
17760
17761 else
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17763 $as_echo "no" >&6; }
17764 fi
17765 rm -f core conftest.err conftest.$ac_objext \
17766 conftest$ac_exeext conftest.$ac_ext
17767
17768
17769 # see if daemon(3) exists, and if it is deprecated.
17770 for ac_func in daemon
17771 do :
17772 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
17773 if test "x$ac_cv_func_daemon" = xyes; then :
17774 cat >>confdefs.h <<_ACEOF
17775 #define HAVE_DAEMON 1
17776 _ACEOF
17777
17778 fi
17779 done
17780
17781 if test $ac_cv_func_daemon = yes; then
17782
17783
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
17785 $as_echo_n "checking if daemon is deprecated... " >&6; }
17786 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
17787 if eval \${cv_cc_deprecated_$cache+:} false; then :
17788 $as_echo_n "(cached) " >&6
17789 else
17790
17791 echo '
17792 #include <stdlib.h>
17793 ' >conftest.c
17794 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
17795 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
17796 eval "cv_cc_deprecated_$cache=no"
17797 else
17798 eval "cv_cc_deprecated_$cache=yes"
17799 fi
17800 rm -f conftest conftest.o conftest.c
17801
17802 fi
17803
17804 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17806 $as_echo "yes" >&6; }
17807
17808 cat >>confdefs.h <<_ACEOF
17809 #define DEPRECATED_DAEMON 1
17810 _ACEOF
17811
17812 :
17813
17814 else
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17816 $as_echo "no" >&6; }
17817 :
17818
17819 fi
17820
17821 fi
17822
17823 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
17824 $ac_includes_default
17825 #if HAVE_SYS_PARAM_H
17826 #include <sys/param.h>
17827 #endif
17828
17829 #ifdef HAVE_SYS_SOCKET_H
17830 #include <sys/socket.h>
17831 #endif
17832
17833 #ifdef HAVE_SYS_UIO_H
17834 #include <sys/uio.h>
17835 #endif
17836
17837 #ifdef HAVE_NETINET_IN_H
17838 #include <netinet/in.h>
17839 #endif
17840
17841 #ifdef HAVE_ARPA_INET_H
17842 #include <arpa/inet.h>
17843 #endif
17844
17845 #ifdef HAVE_WINSOCK2_H
17846 #include <winsock2.h>
17847 #endif
17848
17849 #ifdef HAVE_WS2TCPIP_H
17850 #include <ws2tcpip.h>
17851 #endif
17852
17853 "
17854 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
17855
17856 cat >>confdefs.h <<_ACEOF
17857 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
17858 _ACEOF
17859
17860
17861 fi
17862
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
17864 $as_echo_n "checking for library containing setusercontext... " >&6; }
17865 if ${ac_cv_search_setusercontext+:} false; then :
17866 $as_echo_n "(cached) " >&6
17867 else
17868 ac_func_search_save_LIBS=$LIBS
17869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17870 /* end confdefs.h. */
17871
17872 /* Override any GCC internal prototype to avoid an error.
17873 Use char because int might match the return type of a GCC
17874 builtin and then its argument prototype would still apply. */
17875 #ifdef __cplusplus
17876 extern "C"
17877 #endif
17878 char setusercontext ();
17879 int
17880 main ()
17881 {
17882 return setusercontext ();
17883 ;
17884 return 0;
17885 }
17886 _ACEOF
17887 for ac_lib in '' util; do
17888 if test -z "$ac_lib"; then
17889 ac_res="none required"
17890 else
17891 ac_res=-l$ac_lib
17892 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17893 fi
17894 if ac_fn_c_try_link "$LINENO"; then :
17895 ac_cv_search_setusercontext=$ac_res
17896 fi
17897 rm -f core conftest.err conftest.$ac_objext \
17898 conftest$ac_exeext
17899 if ${ac_cv_search_setusercontext+:} false; then :
17900 break
17901 fi
17902 done
17903 if ${ac_cv_search_setusercontext+:} false; then :
17904
17905 else
17906 ac_cv_search_setusercontext=no
17907 fi
17908 rm conftest.$ac_ext
17909 LIBS=$ac_func_search_save_LIBS
17910 fi
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
17912 $as_echo "$ac_cv_search_setusercontext" >&6; }
17913 ac_res=$ac_cv_search_setusercontext
17914 if test "$ac_res" != no; then :
17915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17916
17917 fi
17918
17919 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 endservent endprotoent
17920 do :
17921 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17922 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17923 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17924 cat >>confdefs.h <<_ACEOF
17925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17926 _ACEOF
17927
17928 fi
17929 done
17930
17931 for ac_func in setresuid
17932 do :
17933 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
17934 if test "x$ac_cv_func_setresuid" = xyes; then :
17935 cat >>confdefs.h <<_ACEOF
17936 #define HAVE_SETRESUID 1
17937 _ACEOF
17938
17939 else
17940 for ac_func in setreuid
17941 do :
17942 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
17943 if test "x$ac_cv_func_setreuid" = xyes; then :
17944 cat >>confdefs.h <<_ACEOF
17945 #define HAVE_SETREUID 1
17946 _ACEOF
17947
17948 fi
17949 done
17950
17951 fi
17952 done
17953
17954 for ac_func in setresgid
17955 do :
17956 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
17957 if test "x$ac_cv_func_setresgid" = xyes; then :
17958 cat >>confdefs.h <<_ACEOF
17959 #define HAVE_SETRESGID 1
17960 _ACEOF
17961
17962 else
17963 for ac_func in setregid
17964 do :
17965 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
17966 if test "x$ac_cv_func_setregid" = xyes; then :
17967 cat >>confdefs.h <<_ACEOF
17968 #define HAVE_SETREGID 1
17969 _ACEOF
17970
17971 fi
17972 done
17973
17974 fi
17975 done
17976
17977
17978 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
17979 if echo $build_os | grep darwin8 > /dev/null; then
17980
17981 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
17982
17983 fi
17984 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
17985 if test "x$ac_cv_func_inet_aton" = xyes; then :
17986 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
17987
17988 else
17989 case " $LIBOBJS " in
17990 *" inet_aton.$ac_objext "* ) ;;
17991 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
17992 ;;
17993 esac
17994
17995 fi
17996
17997
17998 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
17999 if test "x$ac_cv_func_inet_pton" = xyes; then :
18000 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
18001
18002 else
18003 case " $LIBOBJS " in
18004 *" inet_pton.$ac_objext "* ) ;;
18005 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
18006 ;;
18007 esac
18008
18009 fi
18010
18011
18012 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
18013 if test "x$ac_cv_func_inet_ntop" = xyes; then :
18014 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
18015
18016 else
18017 case " $LIBOBJS " in
18018 *" inet_ntop.$ac_objext "* ) ;;
18019 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
18020 ;;
18021 esac
18022
18023 fi
18024
18025
18026 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
18027 if test "x$ac_cv_func_snprintf" = xyes; then :
18028 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
18029
18030 else
18031 case " $LIBOBJS " in
18032 *" snprintf.$ac_objext "* ) ;;
18033 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18034 ;;
18035 esac
18036
18037 fi
18038
18039
18040 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
18041 if test "x$ac_cv_func_strlcat" = xyes; then :
18042 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
18043
18044 else
18045 case " $LIBOBJS " in
18046 *" strlcat.$ac_objext "* ) ;;
18047 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
18048 ;;
18049 esac
18050
18051 fi
18052
18053
18054 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18055 if test "x$ac_cv_func_strlcpy" = xyes; then :
18056 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
18057
18058 else
18059 case " $LIBOBJS " in
18060 *" strlcpy.$ac_objext "* ) ;;
18061 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
18062 ;;
18063 esac
18064
18065 fi
18066
18067
18068 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
18069 if test "x$ac_cv_func_memmove" = xyes; then :
18070 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
18071
18072 else
18073 case " $LIBOBJS " in
18074 *" memmove.$ac_objext "* ) ;;
18075 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
18076 ;;
18077 esac
18078
18079 fi
18080
18081
18082 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
18083 if test "x$ac_cv_func_gmtime_r" = xyes; then :
18084 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
18085
18086 else
18087 case " $LIBOBJS " in
18088 *" gmtime_r.$ac_objext "* ) ;;
18089 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
18090 ;;
18091 esac
18092
18093 fi
18094
18095
18096 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
18097
18098 if test "$USE_NSS" = "no"; then
18099 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
18100 if test "x$ac_cv_func_arc4random" = xyes; then :
18101 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
18102
18103 else
18104 case " $LIBOBJS " in
18105 *" arc4random.$ac_objext "* ) ;;
18106 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
18107 ;;
18108 esac
18109
18110 fi
18111
18112
18113 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
18114 if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
18115 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
18116
18117 else
18118 case " $LIBOBJS " in
18119 *" arc4random_uniform.$ac_objext "* ) ;;
18120 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
18121 ;;
18122 esac
18123
18124 fi
18125
18126
18127 if test "$ac_cv_func_arc4random" = "no"; then
18128 case " $LIBOBJS " in
18129 *" explicit_bzero.$ac_objext "* ) ;;
18130 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
18131 ;;
18132 esac
18133
18134 case " $LIBOBJS " in
18135 *" arc4_lock.$ac_objext "* ) ;;
18136 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
18137 ;;
18138 esac
18139
18140 for ac_func in getentropy
18141 do :
18142 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
18143 if test "x$ac_cv_func_getentropy" = xyes; then :
18144 cat >>confdefs.h <<_ACEOF
18145 #define HAVE_GETENTROPY 1
18146 _ACEOF
18147
18148 else
18149
18150 if test "$USE_WINSOCK" = 1; then
18151 case " $LIBOBJS " in
18152 *" getentropy_win.$ac_objext "* ) ;;
18153 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
18154 ;;
18155 esac
18156
18157 else
18158 case `uname` in
18159 Darwin)
18160 case " $LIBOBJS " in
18161 *" getentropy_osx.$ac_objext "* ) ;;
18162 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
18163 ;;
18164 esac
18165
18166 ;;
18167 SunOS)
18168 case " $LIBOBJS " in
18169 *" getentropy_solaris.$ac_objext "* ) ;;
18170 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
18171 ;;
18172 esac
18173
18174 for ac_header in sys/sha2.h
18175 do :
18176 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
18177 "
18178 if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
18179 cat >>confdefs.h <<_ACEOF
18180 #define HAVE_SYS_SHA2_H 1
18181 _ACEOF
18182
18183 else
18184
18185 for ac_func in SHA512_Update
18186 do :
18187 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
18188 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
18189 cat >>confdefs.h <<_ACEOF
18190 #define HAVE_SHA512_UPDATE 1
18191 _ACEOF
18192
18193 else
18194
18195 case " $LIBOBJS " in
18196 *" sha512.$ac_objext "* ) ;;
18197 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
18198 ;;
18199 esac
18200
18201
18202 fi
18203 done
18204
18205
18206 fi
18207
18208 done
18209
18210 if test "$ac_cv_header_sys_sha2_h" = "yes"; then
18211 # this lib needed for sha2 on solaris
18212 LIBS="$LIBS -lmd"
18213 fi
18214 ;;
18215 Linux|*)
18216 case " $LIBOBJS " in
18217 *" getentropy_linux.$ac_objext "* ) ;;
18218 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
18219 ;;
18220 esac
18221
18222 for ac_func in SHA512_Update
18223 do :
18224 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
18225 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
18226 cat >>confdefs.h <<_ACEOF
18227 #define HAVE_SHA512_UPDATE 1
18228 _ACEOF
18229
18230 else
18231
18232
18233 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
18234
18235 case " $LIBOBJS " in
18236 *" sha512.$ac_objext "* ) ;;
18237 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
18238 ;;
18239 esac
18240
18241
18242 fi
18243 done
18244
18245 for ac_header in sys/sysctl.h
18246 do :
18247 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
18248 "
18249 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
18250 cat >>confdefs.h <<_ACEOF
18251 #define HAVE_SYS_SYSCTL_H 1
18252 _ACEOF
18253
18254 fi
18255
18256 done
18257
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18259 $as_echo_n "checking for library containing clock_gettime... " >&6; }
18260 if ${ac_cv_search_clock_gettime+:} false; then :
18261 $as_echo_n "(cached) " >&6
18262 else
18263 ac_func_search_save_LIBS=$LIBS
18264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h. */
18266
18267 /* Override any GCC internal prototype to avoid an error.
18268 Use char because int might match the return type of a GCC
18269 builtin and then its argument prototype would still apply. */
18270 #ifdef __cplusplus
18271 extern "C"
18272 #endif
18273 char clock_gettime ();
18274 int
18275 main ()
18276 {
18277 return clock_gettime ();
18278 ;
18279 return 0;
18280 }
18281 _ACEOF
18282 for ac_lib in '' rt; do
18283 if test -z "$ac_lib"; then
18284 ac_res="none required"
18285 else
18286 ac_res=-l$ac_lib
18287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18288 fi
18289 if ac_fn_c_try_link "$LINENO"; then :
18290 ac_cv_search_clock_gettime=$ac_res
18291 fi
18292 rm -f core conftest.err conftest.$ac_objext \
18293 conftest$ac_exeext
18294 if ${ac_cv_search_clock_gettime+:} false; then :
18295 break
18296 fi
18297 done
18298 if ${ac_cv_search_clock_gettime+:} false; then :
18299
18300 else
18301 ac_cv_search_clock_gettime=no
18302 fi
18303 rm conftest.$ac_ext
18304 LIBS=$ac_func_search_save_LIBS
18305 fi
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18307 $as_echo "$ac_cv_search_clock_gettime" >&6; }
18308 ac_res=$ac_cv_search_clock_gettime
18309 if test "$ac_res" != no; then :
18310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18311
18312 fi
18313
18314 ;;
18315 esac
18316 fi
18317
18318 fi
18319 done
18320
18321 fi
18322 fi
18323 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
18324
18325 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
18326 if test "x$ac_cv_func_ctime_r" = xyes; then :
18327 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
18328
18329 else
18330 case " $LIBOBJS " in
18331 *" ctime_r.$ac_objext "* ) ;;
18332 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
18333 ;;
18334 esac
18335
18336 fi
18337
18338
18339
18340 # Check whether --enable-allsymbols was given.
18341 if test "${enable_allsymbols+set}" = set; then :
18342 enableval=$enable_allsymbols;
18343 fi
18344
18345 case "$enable_allsymbols" in
18346 yes)
18347 COMMON_OBJ_ALL_SYMBOLS=""
18348 UBSYMS=""
18349 EXTRALINK="-L. -L.libs -lunbound"
18350
18351 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
18352
18353 ;;
18354 no|*)
18355 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
18356 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
18357 EXTRALINK=""
18358 ;;
18359 esac
18360
18361
18362
18363 if test x_$enable_lock_checks = x_yes; then
18364 UBSYMS="-export-symbols clubsyms.def"
18365 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
18366 echo lock_protect >> clubsyms.def
18367 echo lock_unprotect >> clubsyms.def
18368 echo lock_get_mem >> clubsyms.def
18369 echo checklock_start >> clubsyms.def
18370 echo checklock_stop >> clubsyms.def
18371 echo checklock_lock >> clubsyms.def
18372 echo checklock_unlock >> clubsyms.def
18373 echo checklock_init >> clubsyms.def
18374 echo checklock_thrcreate >> clubsyms.def
18375 echo checklock_thrjoin >> clubsyms.def
18376 fi
18377
18378 # check for dnstap if requested
18379
18380 # Check whether --enable-dnstap was given.
18381 if test "${enable_dnstap+set}" = set; then :
18382 enableval=$enable_dnstap; opt_dnstap=$enableval
18383 else
18384 opt_dnstap=no
18385 fi
18386
18387
18388
18389 # Check whether --with-dnstap-socket-path was given.
18390 if test "${with_dnstap_socket_path+set}" = set; then :
18391 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
18392 else
18393 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
18394 fi
18395
18396
18397 if test "x$opt_dnstap" != "xno"; then
18398 # Extract the first word of "protoc-c", so it can be a program name with args.
18399 set dummy protoc-c; ac_word=$2
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18401 $as_echo_n "checking for $ac_word... " >&6; }
18402 if ${ac_cv_path_PROTOC_C+:} false; then :
18403 $as_echo_n "(cached) " >&6
18404 else
18405 case $PROTOC_C in
18406 [\\/]* | ?:[\\/]*)
18407 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
18408 ;;
18409 *)
18410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18411 for as_dir in $PATH
18412 do
18413 IFS=$as_save_IFS
18414 test -z "$as_dir" && as_dir=.
18415 for ac_exec_ext in '' $ac_executable_extensions; do
18416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18417 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
18418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18419 break 2
18420 fi
18421 done
18422 done
18423 IFS=$as_save_IFS
18424
18425 ;;
18426 esac
18427 fi
18428 PROTOC_C=$ac_cv_path_PROTOC_C
18429 if test -n "$PROTOC_C"; then
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
18431 $as_echo "$PROTOC_C" >&6; }
18432 else
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18434 $as_echo "no" >&6; }
18435 fi
18436
18437
18438 if test -z "$PROTOC_C"; then
18439 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
18440 fi
18441
18442 # Check whether --with-protobuf-c was given.
18443 if test "${with_protobuf_c+set}" = set; then :
18444 withval=$with_protobuf_c;
18445 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
18446 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
18447 CFLAGS="$CFLAGS -I$withval/include/google"
18448 else
18449 CFLAGS="$CFLAGS -I$withval/include"
18450 fi
18451 LDFLAGS="$LDFLAGS -L$withval/lib"
18452
18453 else
18454
18455 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
18456 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
18457 CFLAGS="$CFLAGS -I/usr/include/google"
18458 else
18459 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
18460 CFLAGS="$CFLAGS -I/usr/local/include/google"
18461 LDFLAGS="$LDFLAGS -L/usr/local/lib"
18462 fi
18463 fi
18464
18465 fi
18466
18467
18468 # Check whether --with-libfstrm was given.
18469 if test "${with_libfstrm+set}" = set; then :
18470 withval=$with_libfstrm;
18471 CFLAGS="$CFLAGS -I$withval/include"
18472 LDFLAGS="$LDFLAGS -L$withval/lib"
18473
18474 fi
18475
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
18477 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
18478 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
18479 $as_echo_n "(cached) " >&6
18480 else
18481 ac_func_search_save_LIBS=$LIBS
18482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18483 /* end confdefs.h. */
18484
18485 /* Override any GCC internal prototype to avoid an error.
18486 Use char because int might match the return type of a GCC
18487 builtin and then its argument prototype would still apply. */
18488 #ifdef __cplusplus
18489 extern "C"
18490 #endif
18491 char fstrm_iothr_init ();
18492 int
18493 main ()
18494 {
18495 return fstrm_iothr_init ();
18496 ;
18497 return 0;
18498 }
18499 _ACEOF
18500 for ac_lib in '' fstrm; do
18501 if test -z "$ac_lib"; then
18502 ac_res="none required"
18503 else
18504 ac_res=-l$ac_lib
18505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18506 fi
18507 if ac_fn_c_try_link "$LINENO"; then :
18508 ac_cv_search_fstrm_iothr_init=$ac_res
18509 fi
18510 rm -f core conftest.err conftest.$ac_objext \
18511 conftest$ac_exeext
18512 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
18513 break
18514 fi
18515 done
18516 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
18517
18518 else
18519 ac_cv_search_fstrm_iothr_init=no
18520 fi
18521 rm conftest.$ac_ext
18522 LIBS=$ac_func_search_save_LIBS
18523 fi
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
18525 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
18526 ac_res=$ac_cv_search_fstrm_iothr_init
18527 if test "$ac_res" != no; then :
18528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18529
18530 else
18531 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
18532 fi
18533
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
18535 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
18536 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
18537 $as_echo_n "(cached) " >&6
18538 else
18539 ac_func_search_save_LIBS=$LIBS
18540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18541 /* end confdefs.h. */
18542
18543 /* Override any GCC internal prototype to avoid an error.
18544 Use char because int might match the return type of a GCC
18545 builtin and then its argument prototype would still apply. */
18546 #ifdef __cplusplus
18547 extern "C"
18548 #endif
18549 char protobuf_c_message_pack ();
18550 int
18551 main ()
18552 {
18553 return protobuf_c_message_pack ();
18554 ;
18555 return 0;
18556 }
18557 _ACEOF
18558 for ac_lib in '' protobuf-c; do
18559 if test -z "$ac_lib"; then
18560 ac_res="none required"
18561 else
18562 ac_res=-l$ac_lib
18563 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18564 fi
18565 if ac_fn_c_try_link "$LINENO"; then :
18566 ac_cv_search_protobuf_c_message_pack=$ac_res
18567 fi
18568 rm -f core conftest.err conftest.$ac_objext \
18569 conftest$ac_exeext
18570 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
18571 break
18572 fi
18573 done
18574 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
18575
18576 else
18577 ac_cv_search_protobuf_c_message_pack=no
18578 fi
18579 rm conftest.$ac_ext
18580 LIBS=$ac_func_search_save_LIBS
18581 fi
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
18583 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
18584 ac_res=$ac_cv_search_protobuf_c_message_pack
18585 if test "$ac_res" != no; then :
18586 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18587
18588 else
18589 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
18590 fi
18591
18592
18593
18594 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
18595
18596 ENABLE_DNSTAP=1
18597
18598
18599
18600 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
18601
18602
18603 cat >>confdefs.h <<_ACEOF
18604 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
18605 _ACEOF
18606
18607
18608 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c"
18609
18610 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo"
18611
18612
18613 else
18614
18615 ENABLE_DNSTAP=0
18616
18617
18618
18619 fi
18620
18621
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
18623 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
18624 # on openBSD, the implicit rule make $< work.
18625 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
18626 # gmake works.
18627 cat >conftest.make <<EOF
18628 all: conftest.lo
18629
18630 conftest.lo foo.lo bla.lo:
18631 if test -f "\$<"; then touch \$@; fi
18632
18633 .SUFFIXES: .lo
18634 .c.lo:
18635 if test -f "\$<"; then touch \$@; fi
18636
18637 conftest.lo: conftest.dir/conftest.c
18638 EOF
18639 mkdir conftest.dir
18640 touch conftest.dir/conftest.c
18641 rm -f conftest.lo conftest.c
18642 ${MAKE:-make} -f conftest.make >/dev/null
18643 rm -f conftest.make conftest.c conftest.dir/conftest.c
18644 rm -rf conftest.dir
18645 if test ! -f conftest.lo; then
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18647 $as_echo "no" >&6; }
18648 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
18649 SOURCEFILE='`cat .source`'
18650 else
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18652 $as_echo "yes" >&6; }
18653 SOURCEDETERMINE=':'
18654 SOURCEFILE='$<'
18655 fi
18656 rm -f conftest.lo
18657
18658
18659
18660 # see if we want to build the library or everything
18661 ALLTARGET="alltargets"
18662 INSTALLTARGET="install-all"
18663
18664 # Check whether --with-libunbound-only was given.
18665 if test "${with_libunbound_only+set}" = set; then :
18666 withval=$with_libunbound_only;
18667 if test "$withval" = "yes"; then
18668 ALLTARGET="lib"
18669 INSTALLTARGET="install-lib"
18670 fi
18671
18672 fi
18673
18674
18675
18676
18677
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
18679 $as_echo "$as_me: Stripping extension flags..." >&6;}
18680
18681 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
18682 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
18683
18684 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
18685
18686 fi
18687
18688
18689 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
18690 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
18691
18692 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
18693
18694 fi
18695
18696
18697 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
18698 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
18699
18700 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
18701
18702 fi
18703
18704
18705 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
18706 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
18707
18708 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
18709
18710 fi
18711
18712
18713 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
18714 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
18715
18716 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
18717
18718 fi
18719
18720
18721 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
18722 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
18723
18724 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
18725
18726 fi
18727
18728
18729 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
18730 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
18731
18732 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
18733
18734 fi
18735
18736
18737 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
18738 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
18739
18740 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
18741
18742 fi
18743
18744
18745 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
18746
18747
18748 cat >>confdefs.h <<_ACEOF
18749 #define MAXSYSLOGMSGLEN 10240
18750 _ACEOF
18751
18752
18753
18754
18755 version=1.5.1
18756
18757 date=`date +'%b %e, %Y'`
18758
18759
18760 ac_config_files="$ac_config_files Makefile doc/example.conf doc/libunbound.3 doc/unbound.8 doc/unbound-anchor.8 doc/unbound-checkconf.8 doc/unbound.conf.5 doc/unbound-control.8 doc/unbound-host.1 smallapp/unbound-control-setup.sh dnstap/dnstap_config.h"
18761
18762 ac_config_headers="$ac_config_headers config.h"
18763
18764 cat >confcache <<\_ACEOF
18765 # This file is a shell script that caches the results of configure
18766 # tests run on this system so they can be shared between configure
18767 # scripts and configure runs, see configure's option --config-cache.
18768 # It is not useful on other systems. If it contains results you don't
18769 # want to keep, you may remove or edit it.
18770 #
18771 # config.status only pays attention to the cache file if you give it
18772 # the --recheck option to rerun configure.
18773 #
18774 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18775 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18776 # following values.
18777
18778 _ACEOF
18779
18780 # The following way of writing the cache mishandles newlines in values,
18781 # but we know of no workaround that is simple, portable, and efficient.
18782 # So, we kill variables containing newlines.
18783 # Ultrix sh set writes to stderr and can't be redirected directly,
18784 # and sets the high bit in the cache file unless we assign to the vars.
18785 (
18786 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18787 eval ac_val=\$$ac_var
18788 case $ac_val in #(
18789 *${as_nl}*)
18790 case $ac_var in #(
18791 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18792 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18793 esac
18794 case $ac_var in #(
18795 _ | IFS | as_nl) ;; #(
18796 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18797 *) { eval $ac_var=; unset $ac_var;} ;;
18798 esac ;;
18799 esac
18800 done
18801
18802 (set) 2>&1 |
18803 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18804 *${as_nl}ac_space=\ *)
18805 # `set' does not quote correctly, so add quotes: double-quote
18806 # substitution turns \\\\ into \\, and sed turns \\ into \.
18807 sed -n \
18808 "s/'/'\\\\''/g;
18809 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18810 ;; #(
18811 *)
18812 # `set' quotes correctly as required by POSIX, so do not add quotes.
18813 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18814 ;;
18815 esac |
18816 sort
18817 ) |
18818 sed '
18819 /^ac_cv_env_/b end
18820 t clear
18821 :clear
18822 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18823 t end
18824 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18825 :end' >>confcache
18826 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18827 if test -w "$cache_file"; then
18828 if test "x$cache_file" != "x/dev/null"; then
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18830 $as_echo "$as_me: updating cache $cache_file" >&6;}
18831 if test ! -f "$cache_file" || test -h "$cache_file"; then
18832 cat confcache >"$cache_file"
18833 else
18834 case $cache_file in #(
18835 */* | ?:*)
18836 mv -f confcache "$cache_file"$$ &&
18837 mv -f "$cache_file"$$ "$cache_file" ;; #(
18838 *)
18839 mv -f confcache "$cache_file" ;;
18840 esac
18841 fi
18842 fi
18843 else
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18845 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18846 fi
18847 fi
18848 rm -f confcache
18849
18850 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18851 # Let make expand exec_prefix.
18852 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18853
18854 DEFS=-DHAVE_CONFIG_H
18855
18856 ac_libobjs=
18857 ac_ltlibobjs=
18858 U=
18859 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18860 # 1. Remove the extension, and $U if already installed.
18861 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18862 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18863 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18864 # will be set to the directory where LIBOBJS objects are built.
18865 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18866 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18867 done
18868 LIBOBJS=$ac_libobjs
18869
18870 LTLIBOBJS=$ac_ltlibobjs
18871
18872
18873
18874 : "${CONFIG_STATUS=./config.status}"
18875 ac_write_fail=0
18876 ac_clean_files_save=$ac_clean_files
18877 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18879 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18880 as_write_fail=0
18881 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18882 #! $SHELL
18883 # Generated by $as_me.
18884 # Run this file to recreate the current configuration.
18885 # Compiler output produced by configure, useful for debugging
18886 # configure, is in config.log if it exists.
18887
18888 debug=false
18889 ac_cs_recheck=false
18890 ac_cs_silent=false
18891
18892 SHELL=\${CONFIG_SHELL-$SHELL}
18893 export SHELL
18894 _ASEOF
18895 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18896 ## -------------------- ##
18897 ## M4sh Initialization. ##
18898 ## -------------------- ##
18899
18900 # Be more Bourne compatible
18901 DUALCASE=1; export DUALCASE # for MKS sh
18902 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18903 emulate sh
18904 NULLCMD=:
18905 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18906 # is contrary to our usage. Disable this feature.
18907 alias -g '${1+"$@"}'='"$@"'
18908 setopt NO_GLOB_SUBST
18909 else
18910 case `(set -o) 2>/dev/null` in #(
18911 *posix*) :
18912 set -o posix ;; #(
18913 *) :
18914 ;;
18915 esac
18916 fi
18917
18918
18919 as_nl='
18920 '
18921 export as_nl
18922 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18923 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18924 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18925 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18926 # Prefer a ksh shell builtin over an external printf program on Solaris,
18927 # but without wasting forks for bash or zsh.
18928 if test -z "$BASH_VERSION$ZSH_VERSION" \
18929 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18930 as_echo='print -r --'
18931 as_echo_n='print -rn --'
18932 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18933 as_echo='printf %s\n'
18934 as_echo_n='printf %s'
18935 else
18936 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18937 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18938 as_echo_n='/usr/ucb/echo -n'
18939 else
18940 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18941 as_echo_n_body='eval
18942 arg=$1;
18943 case $arg in #(
18944 *"$as_nl"*)
18945 expr "X$arg" : "X\\(.*\\)$as_nl";
18946 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18947 esac;
18948 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18949 '
18950 export as_echo_n_body
18951 as_echo_n='sh -c $as_echo_n_body as_echo'
18952 fi
18953 export as_echo_body
18954 as_echo='sh -c $as_echo_body as_echo'
18955 fi
18956
18957 # The user is always right.
18958 if test "${PATH_SEPARATOR+set}" != set; then
18959 PATH_SEPARATOR=:
18960 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18961 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18962 PATH_SEPARATOR=';'
18963 }
18964 fi
18965
18966
18967 # IFS
18968 # We need space, tab and new line, in precisely that order. Quoting is
18969 # there to prevent editors from complaining about space-tab.
18970 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18971 # splitting by setting IFS to empty value.)
18972 IFS=" "" $as_nl"
18973
18974 # Find who we are. Look in the path if we contain no directory separator.
18975 as_myself=
18976 case $0 in #((
18977 *[\\/]* ) as_myself=$0 ;;
18978 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18979 for as_dir in $PATH
18980 do
18981 IFS=$as_save_IFS
18982 test -z "$as_dir" && as_dir=.
18983 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18984 done
18985 IFS=$as_save_IFS
18986
18987 ;;
18988 esac
18989 # We did not find ourselves, most probably we were run as `sh COMMAND'
18990 # in which case we are not to be found in the path.
18991 if test "x$as_myself" = x; then
18992 as_myself=$0
18993 fi
18994 if test ! -f "$as_myself"; then
18995 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18996 exit 1
18997 fi
18998
18999 # Unset variables that we do not need and which cause bugs (e.g. in
19000 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19001 # suppresses any "Segmentation fault" message there. '((' could
19002 # trigger a bug in pdksh 5.2.14.
19003 for as_var in BASH_ENV ENV MAIL MAILPATH
19004 do eval test x\${$as_var+set} = xset \
19005 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19006 done
19007 PS1='$ '
19008 PS2='> '
19009 PS4='+ '
19010
19011 # NLS nuisances.
19012 LC_ALL=C
19013 export LC_ALL
19014 LANGUAGE=C
19015 export LANGUAGE
19016
19017 # CDPATH.
19018 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19019
19020
19021 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19022 # ----------------------------------------
19023 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19024 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19025 # script with STATUS, using 1 if that was 0.
19026 as_fn_error ()
19027 {
19028 as_status=$1; test $as_status -eq 0 && as_status=1
19029 if test "$4"; then
19030 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19031 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19032 fi
19033 $as_echo "$as_me: error: $2" >&2
19034 as_fn_exit $as_status
19035 } # as_fn_error
19036
19037
19038 # as_fn_set_status STATUS
19039 # -----------------------
19040 # Set $? to STATUS, without forking.
19041 as_fn_set_status ()
19042 {
19043 return $1
19044 } # as_fn_set_status
19045
19046 # as_fn_exit STATUS
19047 # -----------------
19048 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19049 as_fn_exit ()
19050 {
19051 set +e
19052 as_fn_set_status $1
19053 exit $1
19054 } # as_fn_exit
19055
19056 # as_fn_unset VAR
19057 # ---------------
19058 # Portably unset VAR.
19059 as_fn_unset ()
19060 {
19061 { eval $1=; unset $1;}
19062 }
19063 as_unset=as_fn_unset
19064 # as_fn_append VAR VALUE
19065 # ----------------------
19066 # Append the text in VALUE to the end of the definition contained in VAR. Take
19067 # advantage of any shell optimizations that allow amortized linear growth over
19068 # repeated appends, instead of the typical quadratic growth present in naive
19069 # implementations.
19070 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19071 eval 'as_fn_append ()
19072 {
19073 eval $1+=\$2
19074 }'
19075 else
19076 as_fn_append ()
19077 {
19078 eval $1=\$$1\$2
19079 }
19080 fi # as_fn_append
19081
19082 # as_fn_arith ARG...
19083 # ------------------
19084 # Perform arithmetic evaluation on the ARGs, and store the result in the
19085 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19086 # must be portable across $(()) and expr.
19087 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19088 eval 'as_fn_arith ()
19089 {
19090 as_val=$(( $* ))
19091 }'
19092 else
19093 as_fn_arith ()
19094 {
19095 as_val=`expr "$@" || test $? -eq 1`
19096 }
19097 fi # as_fn_arith
19098
19099
19100 if expr a : '\(a\)' >/dev/null 2>&1 &&
19101 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19102 as_expr=expr
19103 else
19104 as_expr=false
19105 fi
19106
19107 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19108 as_basename=basename
19109 else
19110 as_basename=false
19111 fi
19112
19113 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19114 as_dirname=dirname
19115 else
19116 as_dirname=false
19117 fi
19118
19119 as_me=`$as_basename -- "$0" ||
19120 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19121 X"$0" : 'X\(//\)$' \| \
19122 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19123 $as_echo X/"$0" |
19124 sed '/^.*\/\([^/][^/]*\)\/*$/{
19125 s//\1/
19126 q
19127 }
19128 /^X\/\(\/\/\)$/{
19129 s//\1/
19130 q
19131 }
19132 /^X\/\(\/\).*/{
19133 s//\1/
19134 q
19135 }
19136 s/.*/./; q'`
19137
19138 # Avoid depending upon Character Ranges.
19139 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19140 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19141 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19142 as_cr_digits='0123456789'
19143 as_cr_alnum=$as_cr_Letters$as_cr_digits
19144
19145 ECHO_C= ECHO_N= ECHO_T=
19146 case `echo -n x` in #(((((
19147 -n*)
19148 case `echo 'xy\c'` in
19149 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19150 xy) ECHO_C='\c';;
19151 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19152 ECHO_T=' ';;
19153 esac;;
19154 *)
19155 ECHO_N='-n';;
19156 esac
19157
19158 rm -f conf$$ conf$$.exe conf$$.file
19159 if test -d conf$$.dir; then
19160 rm -f conf$$.dir/conf$$.file
19161 else
19162 rm -f conf$$.dir
19163 mkdir conf$$.dir 2>/dev/null
19164 fi
19165 if (echo >conf$$.file) 2>/dev/null; then
19166 if ln -s conf$$.file conf$$ 2>/dev/null; then
19167 as_ln_s='ln -s'
19168 # ... but there are two gotchas:
19169 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19170 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19171 # In both cases, we have to default to `cp -pR'.
19172 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19173 as_ln_s='cp -pR'
19174 elif ln conf$$.file conf$$ 2>/dev/null; then
19175 as_ln_s=ln
19176 else
19177 as_ln_s='cp -pR'
19178 fi
19179 else
19180 as_ln_s='cp -pR'
19181 fi
19182 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19183 rmdir conf$$.dir 2>/dev/null
19184
19185
19186 # as_fn_mkdir_p
19187 # -------------
19188 # Create "$as_dir" as a directory, including parents if necessary.
19189 as_fn_mkdir_p ()
19190 {
19191
19192 case $as_dir in #(
19193 -*) as_dir=./$as_dir;;
19194 esac
19195 test -d "$as_dir" || eval $as_mkdir_p || {
19196 as_dirs=
19197 while :; do
19198 case $as_dir in #(
19199 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19200 *) as_qdir=$as_dir;;
19201 esac
19202 as_dirs="'$as_qdir' $as_dirs"
19203 as_dir=`$as_dirname -- "$as_dir" ||
19204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19205 X"$as_dir" : 'X\(//\)[^/]' \| \
19206 X"$as_dir" : 'X\(//\)$' \| \
19207 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19208 $as_echo X"$as_dir" |
19209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19210 s//\1/
19211 q
19212 }
19213 /^X\(\/\/\)[^/].*/{
19214 s//\1/
19215 q
19216 }
19217 /^X\(\/\/\)$/{
19218 s//\1/
19219 q
19220 }
19221 /^X\(\/\).*/{
19222 s//\1/
19223 q
19224 }
19225 s/.*/./; q'`
19226 test -d "$as_dir" && break
19227 done
19228 test -z "$as_dirs" || eval "mkdir $as_dirs"
19229 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19230
19231
19232 } # as_fn_mkdir_p
19233 if mkdir -p . 2>/dev/null; then
19234 as_mkdir_p='mkdir -p "$as_dir"'
19235 else
19236 test -d ./-p && rmdir ./-p
19237 as_mkdir_p=false
19238 fi
19239
19240
19241 # as_fn_executable_p FILE
19242 # -----------------------
19243 # Test if FILE is an executable regular file.
19244 as_fn_executable_p ()
19245 {
19246 test -f "$1" && test -x "$1"
19247 } # as_fn_executable_p
19248 as_test_x='test -x'
19249 as_executable_p=as_fn_executable_p
19250
19251 # Sed expression to map a string onto a valid CPP name.
19252 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19253
19254 # Sed expression to map a string onto a valid variable name.
19255 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19256
19257
19258 exec 6>&1
19259 ## ----------------------------------- ##
19260 ## Main body of $CONFIG_STATUS script. ##
19261 ## ----------------------------------- ##
19262 _ASEOF
19263 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19264
19265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19266 # Save the log message, to keep $0 and so on meaningful, and to
19267 # report actual input values of CONFIG_FILES etc. instead of their
19268 # values after options handling.
19269 ac_log="
19270 This file was extended by unbound $as_me 1.5.1, which was
19271 generated by GNU Autoconf 2.69. Invocation command line was
19272
19273 CONFIG_FILES = $CONFIG_FILES
19274 CONFIG_HEADERS = $CONFIG_HEADERS
19275 CONFIG_LINKS = $CONFIG_LINKS
19276 CONFIG_COMMANDS = $CONFIG_COMMANDS
19277 $ $0 $@
19278
19279 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19280 "
19281
19282 _ACEOF
19283
19284 case $ac_config_files in *"
19285 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19286 esac
19287
19288 case $ac_config_headers in *"
19289 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19290 esac
19291
19292
19293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19294 # Files that config.status was made for.
19295 config_files="$ac_config_files"
19296 config_headers="$ac_config_headers"
19297 config_commands="$ac_config_commands"
19298
19299 _ACEOF
19300
19301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19302 ac_cs_usage="\
19303 \`$as_me' instantiates files and other configuration actions
19304 from templates according to the current configuration. Unless the files
19305 and actions are specified as TAGs, all are instantiated by default.
19306
19307 Usage: $0 [OPTION]... [TAG]...
19308
19309 -h, --help print this help, then exit
19310 -V, --version print version number and configuration settings, then exit
19311 --config print configuration, then exit
19312 -q, --quiet, --silent
19313 do not print progress messages
19314 -d, --debug don't remove temporary files
19315 --recheck update $as_me by reconfiguring in the same conditions
19316 --file=FILE[:TEMPLATE]
19317 instantiate the configuration file FILE
19318 --header=FILE[:TEMPLATE]
19319 instantiate the configuration header FILE
19320
19321 Configuration files:
19322 $config_files
19323
19324 Configuration headers:
19325 $config_headers
19326
19327 Configuration commands:
19328 $config_commands
19329
19330 Report bugs to <unbound-bugs@nlnetlabs.nl>."
19331
19332 _ACEOF
19333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19334 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19335 ac_cs_version="\\
19336 unbound config.status 1.5.1
19337 configured by $0, generated by GNU Autoconf 2.69,
19338 with options \\"\$ac_cs_config\\"
19339
19340 Copyright (C) 2012 Free Software Foundation, Inc.
19341 This config.status script is free software; the Free Software Foundation
19342 gives unlimited permission to copy, distribute and modify it."
19343
19344 ac_pwd='$ac_pwd'
19345 srcdir='$srcdir'
19346 AWK='$AWK'
19347 test -n "\$AWK" || AWK=awk
19348 _ACEOF
19349
19350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19351 # The default lists apply if the user does not specify any file.
19352 ac_need_defaults=:
19353 while test $# != 0
19354 do
19355 case $1 in
19356 --*=?*)
19357 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19358 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19359 ac_shift=:
19360 ;;
19361 --*=)
19362 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19363 ac_optarg=
19364 ac_shift=:
19365 ;;
19366 *)
19367 ac_option=$1
19368 ac_optarg=$2
19369 ac_shift=shift
19370 ;;
19371 esac
19372
19373 case $ac_option in
19374 # Handling of the options.
19375 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19376 ac_cs_recheck=: ;;
19377 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19378 $as_echo "$ac_cs_version"; exit ;;
19379 --config | --confi | --conf | --con | --co | --c )
19380 $as_echo "$ac_cs_config"; exit ;;
19381 --debug | --debu | --deb | --de | --d | -d )
19382 debug=: ;;
19383 --file | --fil | --fi | --f )
19384 $ac_shift
19385 case $ac_optarg in
19386 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19387 '') as_fn_error $? "missing file argument" ;;
19388 esac
19389 as_fn_append CONFIG_FILES " '$ac_optarg'"
19390 ac_need_defaults=false;;
19391 --header | --heade | --head | --hea )
19392 $ac_shift
19393 case $ac_optarg in
19394 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19395 esac
19396 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19397 ac_need_defaults=false;;
19398 --he | --h)
19399 # Conflict between --help and --header
19400 as_fn_error $? "ambiguous option: \`$1'
19401 Try \`$0 --help' for more information.";;
19402 --help | --hel | -h )
19403 $as_echo "$ac_cs_usage"; exit ;;
19404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19405 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19406 ac_cs_silent=: ;;
19407
19408 # This is an error.
19409 -*) as_fn_error $? "unrecognized option: \`$1'
19410 Try \`$0 --help' for more information." ;;
19411
19412 *) as_fn_append ac_config_targets " $1"
19413 ac_need_defaults=false ;;
19414
19415 esac
19416 shift
19417 done
19418
19419 ac_configure_extra_args=
19420
19421 if $ac_cs_silent; then
19422 exec 6>/dev/null
19423 ac_configure_extra_args="$ac_configure_extra_args --silent"
19424 fi
19425
19426 _ACEOF
19427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19428 if \$ac_cs_recheck; then
19429 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19430 shift
19431 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19432 CONFIG_SHELL='$SHELL'
19433 export CONFIG_SHELL
19434 exec "\$@"
19435 fi
19436
19437 _ACEOF
19438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19439 exec 5>>config.log
19440 {
19441 echo
19442 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19443 ## Running $as_me. ##
19444 _ASBOX
19445 $as_echo "$ac_log"
19446 } >&5
19447
19448 _ACEOF
19449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19450 #
19451 # INIT-COMMANDS
19452 #
19453
19454
19455 # The HP-UX ksh and POSIX shell print the target directory to stdout
19456 # if CDPATH is set.
19457 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19458
19459 sed_quote_subst='$sed_quote_subst'
19460 double_quote_subst='$double_quote_subst'
19461 delay_variable_subst='$delay_variable_subst'
19462 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19463 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19464 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19465 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19466 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19467 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19468 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19469 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19470 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19471 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19472 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19473 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19474 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19475 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19476 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19477 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19478 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19479 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19480 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19481 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19482 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19483 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19484 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19485 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19486 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19487 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19488 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19489 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19490 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19491 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19492 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19493 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19494 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19495 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19496 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19497 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19498 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19499 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19500 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19501 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19502 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19503 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19504 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19505 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19506 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19507 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19508 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19509 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19510 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19511 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19512 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19513 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19514 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19515 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19516 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19517 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19518 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"`'
19519 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19520 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19521 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19522 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19523 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19524 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19525 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19526 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19527 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19528 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19529 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19530 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19531 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19532 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19533 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19534 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19535 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19536 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19537 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19538 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19539 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19540 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19541 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19542 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19543 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19544 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19545 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19546 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19547 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19548 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19549 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19550 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19551 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19552 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19553 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19554 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19555 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19556 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19557 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19558 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19559 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19560 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19561 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19562 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19563 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19564 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19565 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19566 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19567 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19568 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19569 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19570 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19571 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19572 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19573 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19574 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19575 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19576 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19577 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19578 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19579 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19580 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19581 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19582 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19583 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19584 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19585 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19586 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19587 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19588 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19589 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19590 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19591 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19592
19593 LTCC='$LTCC'
19594 LTCFLAGS='$LTCFLAGS'
19595 compiler='$compiler_DEFAULT'
19596
19597 # A function that is used when there is no print builtin or printf.
19598 func_fallback_echo ()
19599 {
19600 eval 'cat <<_LTECHO_EOF
19601 \$1
19602 _LTECHO_EOF'
19603 }
19604
19605 # Quote evaled strings.
19606 for var in SHELL \
19607 ECHO \
19608 PATH_SEPARATOR \
19609 SED \
19610 GREP \
19611 EGREP \
19612 FGREP \
19613 LD \
19614 NM \
19615 LN_S \
19616 lt_SP2NL \
19617 lt_NL2SP \
19618 reload_flag \
19619 OBJDUMP \
19620 deplibs_check_method \
19621 file_magic_cmd \
19622 file_magic_glob \
19623 want_nocaseglob \
19624 DLLTOOL \
19625 sharedlib_from_linklib_cmd \
19626 AR \
19627 AR_FLAGS \
19628 archiver_list_spec \
19629 STRIP \
19630 RANLIB \
19631 CC \
19632 CFLAGS \
19633 compiler \
19634 lt_cv_sys_global_symbol_pipe \
19635 lt_cv_sys_global_symbol_to_cdecl \
19636 lt_cv_sys_global_symbol_to_c_name_address \
19637 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19638 nm_file_list_spec \
19639 lt_prog_compiler_no_builtin_flag \
19640 lt_prog_compiler_pic \
19641 lt_prog_compiler_wl \
19642 lt_prog_compiler_static \
19643 lt_cv_prog_compiler_c_o \
19644 need_locks \
19645 MANIFEST_TOOL \
19646 DSYMUTIL \
19647 NMEDIT \
19648 LIPO \
19649 OTOOL \
19650 OTOOL64 \
19651 shrext_cmds \
19652 export_dynamic_flag_spec \
19653 whole_archive_flag_spec \
19654 compiler_needs_object \
19655 with_gnu_ld \
19656 allow_undefined_flag \
19657 no_undefined_flag \
19658 hardcode_libdir_flag_spec \
19659 hardcode_libdir_separator \
19660 exclude_expsyms \
19661 include_expsyms \
19662 file_list_spec \
19663 variables_saved_for_relink \
19664 libname_spec \
19665 library_names_spec \
19666 soname_spec \
19667 install_override_mode \
19668 finish_eval \
19669 old_striplib \
19670 striplib; do
19671 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19672 *[\\\\\\\`\\"\\\$]*)
19673 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19674 ;;
19675 *)
19676 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19677 ;;
19678 esac
19679 done
19680
19681 # Double-quote double-evaled strings.
19682 for var in reload_cmds \
19683 old_postinstall_cmds \
19684 old_postuninstall_cmds \
19685 old_archive_cmds \
19686 extract_expsyms_cmds \
19687 old_archive_from_new_cmds \
19688 old_archive_from_expsyms_cmds \
19689 archive_cmds \
19690 archive_expsym_cmds \
19691 module_cmds \
19692 module_expsym_cmds \
19693 export_symbols_cmds \
19694 prelink_cmds \
19695 postlink_cmds \
19696 postinstall_cmds \
19697 postuninstall_cmds \
19698 finish_cmds \
19699 sys_lib_search_path_spec \
19700 sys_lib_dlsearch_path_spec; do
19701 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19702 *[\\\\\\\`\\"\\\$]*)
19703 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19704 ;;
19705 *)
19706 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19707 ;;
19708 esac
19709 done
19710
19711 ac_aux_dir='$ac_aux_dir'
19712 xsi_shell='$xsi_shell'
19713 lt_shell_append='$lt_shell_append'
19714
19715 # See if we are running on zsh, and set the options which allow our
19716 # commands through without removal of \ escapes INIT.
19717 if test -n "\${ZSH_VERSION+set}" ; then
19718 setopt NO_GLOB_SUBST
19719 fi
19720
19721
19722 PACKAGE='$PACKAGE'
19723 VERSION='$VERSION'
19724 TIMESTAMP='$TIMESTAMP'
19725 RM='$RM'
19726 ofile='$ofile'
19727
19728
19729
19730
19731 _ACEOF
19732
19733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19734
19735 # Handling of arguments.
19736 for ac_config_target in $ac_config_targets
19737 do
19738 case $ac_config_target in
19739 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19740 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
19741 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19742 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
19743 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
19744 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
19745 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
19746 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
19747 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
19748 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
19749 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
19750 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
19751 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
19752 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19753
19754 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19755 esac
19756 done
19757
19758
19759 # If the user did not use the arguments to specify the items to instantiate,
19760 # then the envvar interface is used. Set only those that are not.
19761 # We use the long form for the default assignment because of an extremely
19762 # bizarre bug on SunOS 4.1.3.
19763 if $ac_need_defaults; then
19764 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19765 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19766 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19767 fi
19768
19769 # Have a temporary directory for convenience. Make it in the build tree
19770 # simply because there is no reason against having it here, and in addition,
19771 # creating and moving files from /tmp can sometimes cause problems.
19772 # Hook for its removal unless debugging.
19773 # Note that there is a small window in which the directory will not be cleaned:
19774 # after its creation but before its name has been assigned to `$tmp'.
19775 $debug ||
19776 {
19777 tmp= ac_tmp=
19778 trap 'exit_status=$?
19779 : "${ac_tmp:=$tmp}"
19780 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19781 ' 0
19782 trap 'as_fn_exit 1' 1 2 13 15
19783 }
19784 # Create a (secure) tmp directory for tmp files.
19785
19786 {
19787 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19788 test -d "$tmp"
19789 } ||
19790 {
19791 tmp=./conf$$-$RANDOM
19792 (umask 077 && mkdir "$tmp")
19793 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19794 ac_tmp=$tmp
19795
19796 # Set up the scripts for CONFIG_FILES section.
19797 # No need to generate them if there are no CONFIG_FILES.
19798 # This happens for instance with `./config.status config.h'.
19799 if test -n "$CONFIG_FILES"; then
19800
19801
19802 ac_cr=`echo X | tr X '\015'`
19803 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19804 # But we know of no other shell where ac_cr would be empty at this
19805 # point, so we can use a bashism as a fallback.
19806 if test "x$ac_cr" = x; then
19807 eval ac_cr=\$\'\\r\'
19808 fi
19809 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19810 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19811 ac_cs_awk_cr='\\r'
19812 else
19813 ac_cs_awk_cr=$ac_cr
19814 fi
19815
19816 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19817 _ACEOF
19818
19819
19820 {
19821 echo "cat >conf$$subs.awk <<_ACEOF" &&
19822 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19823 echo "_ACEOF"
19824 } >conf$$subs.sh ||
19825 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19826 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19827 ac_delim='%!_!# '
19828 for ac_last_try in false false false false false :; do
19829 . ./conf$$subs.sh ||
19830 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19831
19832 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19833 if test $ac_delim_n = $ac_delim_num; then
19834 break
19835 elif $ac_last_try; then
19836 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19837 else
19838 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19839 fi
19840 done
19841 rm -f conf$$subs.sh
19842
19843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19844 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19845 _ACEOF
19846 sed -n '
19847 h
19848 s/^/S["/; s/!.*/"]=/
19849 p
19850 g
19851 s/^[^!]*!//
19852 :repl
19853 t repl
19854 s/'"$ac_delim"'$//
19855 t delim
19856 :nl
19857 h
19858 s/\(.\{148\}\)..*/\1/
19859 t more1
19860 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19861 p
19862 n
19863 b repl
19864 :more1
19865 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19866 p
19867 g
19868 s/.\{148\}//
19869 t nl
19870 :delim
19871 h
19872 s/\(.\{148\}\)..*/\1/
19873 t more2
19874 s/["\\]/\\&/g; s/^/"/; s/$/"/
19875 p
19876 b
19877 :more2
19878 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19879 p
19880 g
19881 s/.\{148\}//
19882 t delim
19883 ' <conf$$subs.awk | sed '
19884 /^[^""]/{
19885 N
19886 s/\n//
19887 }
19888 ' >>$CONFIG_STATUS || ac_write_fail=1
19889 rm -f conf$$subs.awk
19890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19891 _ACAWK
19892 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19893 for (key in S) S_is_set[key] = 1
19894 FS = "\a"
19895
19896 }
19897 {
19898 line = $ 0
19899 nfields = split(line, field, "@")
19900 substed = 0
19901 len = length(field[1])
19902 for (i = 2; i < nfields; i++) {
19903 key = field[i]
19904 keylen = length(key)
19905 if (S_is_set[key]) {
19906 value = S[key]
19907 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19908 len += length(value) + length(field[++i])
19909 substed = 1
19910 } else
19911 len += 1 + keylen
19912 }
19913
19914 print line
19915 }
19916
19917 _ACAWK
19918 _ACEOF
19919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19920 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19921 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19922 else
19923 cat
19924 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19925 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19926 _ACEOF
19927
19928 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19929 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19930 # trailing colons and then remove the whole line if VPATH becomes empty
19931 # (actually we leave an empty line to preserve line numbers).
19932 if test "x$srcdir" = x.; then
19933 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19934 h
19935 s///
19936 s/^/:/
19937 s/[ ]*$/:/
19938 s/:\$(srcdir):/:/g
19939 s/:\${srcdir}:/:/g
19940 s/:@srcdir@:/:/g
19941 s/^:*//
19942 s/:*$//
19943 x
19944 s/\(=[ ]*\).*/\1/
19945 G
19946 s/\n//
19947 s/^[^=]*=[ ]*$//
19948 }'
19949 fi
19950
19951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19952 fi # test -n "$CONFIG_FILES"
19953
19954 # Set up the scripts for CONFIG_HEADERS section.
19955 # No need to generate them if there are no CONFIG_HEADERS.
19956 # This happens for instance with `./config.status Makefile'.
19957 if test -n "$CONFIG_HEADERS"; then
19958 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19959 BEGIN {
19960 _ACEOF
19961
19962 # Transform confdefs.h into an awk script `defines.awk', embedded as
19963 # here-document in config.status, that substitutes the proper values into
19964 # config.h.in to produce config.h.
19965
19966 # Create a delimiter string that does not exist in confdefs.h, to ease
19967 # handling of long lines.
19968 ac_delim='%!_!# '
19969 for ac_last_try in false false :; do
19970 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19971 if test -z "$ac_tt"; then
19972 break
19973 elif $ac_last_try; then
19974 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19975 else
19976 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19977 fi
19978 done
19979
19980 # For the awk script, D is an array of macro values keyed by name,
19981 # likewise P contains macro parameters if any. Preserve backslash
19982 # newline sequences.
19983
19984 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19985 sed -n '
19986 s/.\{148\}/&'"$ac_delim"'/g
19987 t rset
19988 :rset
19989 s/^[ ]*#[ ]*define[ ][ ]*/ /
19990 t def
19991 d
19992 :def
19993 s/\\$//
19994 t bsnl
19995 s/["\\]/\\&/g
19996 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19997 D["\1"]=" \3"/p
19998 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19999 d
20000 :bsnl
20001 s/["\\]/\\&/g
20002 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20003 D["\1"]=" \3\\\\\\n"\\/p
20004 t cont
20005 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20006 t cont
20007 d
20008 :cont
20009 n
20010 s/.\{148\}/&'"$ac_delim"'/g
20011 t clear
20012 :clear
20013 s/\\$//
20014 t bsnlc
20015 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20016 d
20017 :bsnlc
20018 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20019 b cont
20020 ' <confdefs.h | sed '
20021 s/'"$ac_delim"'/"\\\
20022 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20023
20024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20025 for (key in D) D_is_set[key] = 1
20026 FS = "\a"
20027 }
20028 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20029 line = \$ 0
20030 split(line, arg, " ")
20031 if (arg[1] == "#") {
20032 defundef = arg[2]
20033 mac1 = arg[3]
20034 } else {
20035 defundef = substr(arg[1], 2)
20036 mac1 = arg[2]
20037 }
20038 split(mac1, mac2, "(") #)
20039 macro = mac2[1]
20040 prefix = substr(line, 1, index(line, defundef) - 1)
20041 if (D_is_set[macro]) {
20042 # Preserve the white space surrounding the "#".
20043 print prefix "define", macro P[macro] D[macro]
20044 next
20045 } else {
20046 # Replace #undef with comments. This is necessary, for example,
20047 # in the case of _POSIX_SOURCE, which is predefined and required
20048 # on some systems where configure will not decide to define it.
20049 if (defundef == "undef") {
20050 print "/*", prefix defundef, macro, "*/"
20051 next
20052 }
20053 }
20054 }
20055 { print }
20056 _ACAWK
20057 _ACEOF
20058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20059 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20060 fi # test -n "$CONFIG_HEADERS"
20061
20062
20063 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20064 shift
20065 for ac_tag
20066 do
20067 case $ac_tag in
20068 :[FHLC]) ac_mode=$ac_tag; continue;;
20069 esac
20070 case $ac_mode$ac_tag in
20071 :[FHL]*:*);;
20072 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20073 :[FH]-) ac_tag=-:-;;
20074 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20075 esac
20076 ac_save_IFS=$IFS
20077 IFS=:
20078 set x $ac_tag
20079 IFS=$ac_save_IFS
20080 shift
20081 ac_file=$1
20082 shift
20083
20084 case $ac_mode in
20085 :L) ac_source=$1;;
20086 :[FH])
20087 ac_file_inputs=
20088 for ac_f
20089 do
20090 case $ac_f in
20091 -) ac_f="$ac_tmp/stdin";;
20092 *) # Look for the file first in the build tree, then in the source tree
20093 # (if the path is not absolute). The absolute path cannot be DOS-style,
20094 # because $ac_f cannot contain `:'.
20095 test -f "$ac_f" ||
20096 case $ac_f in
20097 [\\/$]*) false;;
20098 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20099 esac ||
20100 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20101 esac
20102 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20103 as_fn_append ac_file_inputs " '$ac_f'"
20104 done
20105
20106 # Let's still pretend it is `configure' which instantiates (i.e., don't
20107 # use $as_me), people would be surprised to read:
20108 # /* config.h. Generated by config.status. */
20109 configure_input='Generated from '`
20110 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20111 `' by configure.'
20112 if test x"$ac_file" != x-; then
20113 configure_input="$ac_file. $configure_input"
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20115 $as_echo "$as_me: creating $ac_file" >&6;}
20116 fi
20117 # Neutralize special characters interpreted by sed in replacement strings.
20118 case $configure_input in #(
20119 *\&* | *\|* | *\\* )
20120 ac_sed_conf_input=`$as_echo "$configure_input" |
20121 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20122 *) ac_sed_conf_input=$configure_input;;
20123 esac
20124
20125 case $ac_tag in
20126 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20128 esac
20129 ;;
20130 esac
20131
20132 ac_dir=`$as_dirname -- "$ac_file" ||
20133 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20134 X"$ac_file" : 'X\(//\)[^/]' \| \
20135 X"$ac_file" : 'X\(//\)$' \| \
20136 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20137 $as_echo X"$ac_file" |
20138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20139 s//\1/
20140 q
20141 }
20142 /^X\(\/\/\)[^/].*/{
20143 s//\1/
20144 q
20145 }
20146 /^X\(\/\/\)$/{
20147 s//\1/
20148 q
20149 }
20150 /^X\(\/\).*/{
20151 s//\1/
20152 q
20153 }
20154 s/.*/./; q'`
20155 as_dir="$ac_dir"; as_fn_mkdir_p
20156 ac_builddir=.
20157
20158 case "$ac_dir" in
20159 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20160 *)
20161 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20162 # A ".." for each directory in $ac_dir_suffix.
20163 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20164 case $ac_top_builddir_sub in
20165 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20166 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20167 esac ;;
20168 esac
20169 ac_abs_top_builddir=$ac_pwd
20170 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20171 # for backward compatibility:
20172 ac_top_builddir=$ac_top_build_prefix
20173
20174 case $srcdir in
20175 .) # We are building in place.
20176 ac_srcdir=.
20177 ac_top_srcdir=$ac_top_builddir_sub
20178 ac_abs_top_srcdir=$ac_pwd ;;
20179 [\\/]* | ?:[\\/]* ) # Absolute name.
20180 ac_srcdir=$srcdir$ac_dir_suffix;
20181 ac_top_srcdir=$srcdir
20182 ac_abs_top_srcdir=$srcdir ;;
20183 *) # Relative name.
20184 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20185 ac_top_srcdir=$ac_top_build_prefix$srcdir
20186 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20187 esac
20188 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20189
20190
20191 case $ac_mode in
20192 :F)
20193 #
20194 # CONFIG_FILE
20195 #
20196
20197 _ACEOF
20198
20199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20200 # If the template does not know about datarootdir, expand it.
20201 # FIXME: This hack should be removed a few years after 2.60.
20202 ac_datarootdir_hack=; ac_datarootdir_seen=
20203 ac_sed_dataroot='
20204 /datarootdir/ {
20205 p
20206 q
20207 }
20208 /@datadir@/p
20209 /@docdir@/p
20210 /@infodir@/p
20211 /@localedir@/p
20212 /@mandir@/p'
20213 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20214 *datarootdir*) ac_datarootdir_seen=yes;;
20215 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20217 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20218 _ACEOF
20219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20220 ac_datarootdir_hack='
20221 s&@datadir@&$datadir&g
20222 s&@docdir@&$docdir&g
20223 s&@infodir@&$infodir&g
20224 s&@localedir@&$localedir&g
20225 s&@mandir@&$mandir&g
20226 s&\\\${datarootdir}&$datarootdir&g' ;;
20227 esac
20228 _ACEOF
20229
20230 # Neutralize VPATH when `$srcdir' = `.'.
20231 # Shell code in configure.ac might set extrasub.
20232 # FIXME: do we really want to maintain this feature?
20233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20234 ac_sed_extra="$ac_vpsub
20235 $extrasub
20236 _ACEOF
20237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20238 :t
20239 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20240 s|@configure_input@|$ac_sed_conf_input|;t t
20241 s&@top_builddir@&$ac_top_builddir_sub&;t t
20242 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20243 s&@srcdir@&$ac_srcdir&;t t
20244 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20245 s&@top_srcdir@&$ac_top_srcdir&;t t
20246 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20247 s&@builddir@&$ac_builddir&;t t
20248 s&@abs_builddir@&$ac_abs_builddir&;t t
20249 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20250 $ac_datarootdir_hack
20251 "
20252 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20253 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20254
20255 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20256 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20257 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20258 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20260 which seems to be undefined. Please make sure it is defined" >&5
20261 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20262 which seems to be undefined. Please make sure it is defined" >&2;}
20263
20264 rm -f "$ac_tmp/stdin"
20265 case $ac_file in
20266 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20267 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20268 esac \
20269 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20270 ;;
20271 :H)
20272 #
20273 # CONFIG_HEADER
20274 #
20275 if test x"$ac_file" != x-; then
20276 {
20277 $as_echo "/* $configure_input */" \
20278 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20279 } >"$ac_tmp/config.h" \
20280 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20281 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20283 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20284 else
20285 rm -f "$ac_file"
20286 mv "$ac_tmp/config.h" "$ac_file" \
20287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20288 fi
20289 else
20290 $as_echo "/* $configure_input */" \
20291 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20292 || as_fn_error $? "could not create -" "$LINENO" 5
20293 fi
20294 ;;
20295
20296 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20297 $as_echo "$as_me: executing $ac_file commands" >&6;}
20298 ;;
20299 esac
20300
20301
20302 case $ac_file$ac_mode in
20303 "libtool":C)
20304
20305 # See if we are running on zsh, and set the options which allow our
20306 # commands through without removal of \ escapes.
20307 if test -n "${ZSH_VERSION+set}" ; then
20308 setopt NO_GLOB_SUBST
20309 fi
20310
20311 cfgfile="${ofile}T"
20312 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20313 $RM "$cfgfile"
20314
20315 cat <<_LT_EOF >> "$cfgfile"
20316 #! $SHELL
20317
20318 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20319 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20320 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20321 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20322 #
20323 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20324 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20325 # Foundation, Inc.
20326 # Written by Gordon Matzigkeit, 1996
20327 #
20328 # This file is part of GNU Libtool.
20329 #
20330 # GNU Libtool is free software; you can redistribute it and/or
20331 # modify it under the terms of the GNU General Public License as
20332 # published by the Free Software Foundation; either version 2 of
20333 # the License, or (at your option) any later version.
20334 #
20335 # As a special exception to the GNU General Public License,
20336 # if you distribute this file as part of a program or library that
20337 # is built using GNU Libtool, you may include this file under the
20338 # same distribution terms that you use for the rest of that program.
20339 #
20340 # GNU Libtool is distributed in the hope that it will be useful,
20341 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20342 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20343 # GNU General Public License for more details.
20344 #
20345 # You should have received a copy of the GNU General Public License
20346 # along with GNU Libtool; see the file COPYING. If not, a copy
20347 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20348 # obtained by writing to the Free Software Foundation, Inc.,
20349 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20350
20351
20352 # The names of the tagged configurations supported by this script.
20353 available_tags=""
20354
20355 # ### BEGIN LIBTOOL CONFIG
20356
20357 # Which release of libtool.m4 was used?
20358 macro_version=$macro_version
20359 macro_revision=$macro_revision
20360
20361 # Whether or not to build shared libraries.
20362 build_libtool_libs=$enable_shared
20363
20364 # Whether or not to build static libraries.
20365 build_old_libs=$enable_static
20366
20367 # What type of objects to build.
20368 pic_mode=$pic_mode
20369
20370 # Whether or not to optimize for fast installation.
20371 fast_install=$enable_fast_install
20372
20373 # Shell to use when invoking shell scripts.
20374 SHELL=$lt_SHELL
20375
20376 # An echo program that protects backslashes.
20377 ECHO=$lt_ECHO
20378
20379 # The PATH separator for the build system.
20380 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20381
20382 # The host system.
20383 host_alias=$host_alias
20384 host=$host
20385 host_os=$host_os
20386
20387 # The build system.
20388 build_alias=$build_alias
20389 build=$build
20390 build_os=$build_os
20391
20392 # A sed program that does not truncate output.
20393 SED=$lt_SED
20394
20395 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20396 Xsed="\$SED -e 1s/^X//"
20397
20398 # A grep program that handles long lines.
20399 GREP=$lt_GREP
20400
20401 # An ERE matcher.
20402 EGREP=$lt_EGREP
20403
20404 # A literal string matcher.
20405 FGREP=$lt_FGREP
20406
20407 # A BSD- or MS-compatible name lister.
20408 NM=$lt_NM
20409
20410 # Whether we need soft or hard links.
20411 LN_S=$lt_LN_S
20412
20413 # What is the maximum length of a command?
20414 max_cmd_len=$max_cmd_len
20415
20416 # Object file suffix (normally "o").
20417 objext=$ac_objext
20418
20419 # Executable file suffix (normally "").
20420 exeext=$exeext
20421
20422 # whether the shell understands "unset".
20423 lt_unset=$lt_unset
20424
20425 # turn spaces into newlines.
20426 SP2NL=$lt_lt_SP2NL
20427
20428 # turn newlines into spaces.
20429 NL2SP=$lt_lt_NL2SP
20430
20431 # convert \$build file names to \$host format.
20432 to_host_file_cmd=$lt_cv_to_host_file_cmd
20433
20434 # convert \$build files to toolchain format.
20435 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20436
20437 # An object symbol dumper.
20438 OBJDUMP=$lt_OBJDUMP
20439
20440 # Method to check whether dependent libraries are shared objects.
20441 deplibs_check_method=$lt_deplibs_check_method
20442
20443 # Command to use when deplibs_check_method = "file_magic".
20444 file_magic_cmd=$lt_file_magic_cmd
20445
20446 # How to find potential files when deplibs_check_method = "file_magic".
20447 file_magic_glob=$lt_file_magic_glob
20448
20449 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20450 want_nocaseglob=$lt_want_nocaseglob
20451
20452 # DLL creation program.
20453 DLLTOOL=$lt_DLLTOOL
20454
20455 # Command to associate shared and link libraries.
20456 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20457
20458 # The archiver.
20459 AR=$lt_AR
20460
20461 # Flags to create an archive.
20462 AR_FLAGS=$lt_AR_FLAGS
20463
20464 # How to feed a file listing to the archiver.
20465 archiver_list_spec=$lt_archiver_list_spec
20466
20467 # A symbol stripping program.
20468 STRIP=$lt_STRIP
20469
20470 # Commands used to install an old-style archive.
20471 RANLIB=$lt_RANLIB
20472 old_postinstall_cmds=$lt_old_postinstall_cmds
20473 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20474
20475 # Whether to use a lock for old archive extraction.
20476 lock_old_archive_extraction=$lock_old_archive_extraction
20477
20478 # A C compiler.
20479 LTCC=$lt_CC
20480
20481 # LTCC compiler flags.
20482 LTCFLAGS=$lt_CFLAGS
20483
20484 # Take the output of nm and produce a listing of raw symbols and C names.
20485 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20486
20487 # Transform the output of nm in a proper C declaration.
20488 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20489
20490 # Transform the output of nm in a C name address pair.
20491 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20492
20493 # Transform the output of nm in a C name address pair when lib prefix is needed.
20494 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20495
20496 # Specify filename containing input files for \$NM.
20497 nm_file_list_spec=$lt_nm_file_list_spec
20498
20499 # The root where to search for dependent libraries,and in which our libraries should be installed.
20500 lt_sysroot=$lt_sysroot
20501
20502 # The name of the directory that contains temporary libtool files.
20503 objdir=$objdir
20504
20505 # Used to examine libraries when file_magic_cmd begins with "file".
20506 MAGIC_CMD=$MAGIC_CMD
20507
20508 # Must we lock files when doing compilation?
20509 need_locks=$lt_need_locks
20510
20511 # Manifest tool.
20512 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20513
20514 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20515 DSYMUTIL=$lt_DSYMUTIL
20516
20517 # Tool to change global to local symbols on Mac OS X.
20518 NMEDIT=$lt_NMEDIT
20519
20520 # Tool to manipulate fat objects and archives on Mac OS X.
20521 LIPO=$lt_LIPO
20522
20523 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20524 OTOOL=$lt_OTOOL
20525
20526 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20527 OTOOL64=$lt_OTOOL64
20528
20529 # Old archive suffix (normally "a").
20530 libext=$libext
20531
20532 # Shared library suffix (normally ".so").
20533 shrext_cmds=$lt_shrext_cmds
20534
20535 # The commands to extract the exported symbol list from a shared archive.
20536 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20537
20538 # Variables whose values should be saved in libtool wrapper scripts and
20539 # restored at link time.
20540 variables_saved_for_relink=$lt_variables_saved_for_relink
20541
20542 # Do we need the "lib" prefix for modules?
20543 need_lib_prefix=$need_lib_prefix
20544
20545 # Do we need a version for libraries?
20546 need_version=$need_version
20547
20548 # Library versioning type.
20549 version_type=$version_type
20550
20551 # Shared library runtime path variable.
20552 runpath_var=$runpath_var
20553
20554 # Shared library path variable.
20555 shlibpath_var=$shlibpath_var
20556
20557 # Is shlibpath searched before the hard-coded library search path?
20558 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20559
20560 # Format of library name prefix.
20561 libname_spec=$lt_libname_spec
20562
20563 # List of archive names. First name is the real one, the rest are links.
20564 # The last name is the one that the linker finds with -lNAME
20565 library_names_spec=$lt_library_names_spec
20566
20567 # The coded name of the library, if different from the real name.
20568 soname_spec=$lt_soname_spec
20569
20570 # Permission mode override for installation of shared libraries.
20571 install_override_mode=$lt_install_override_mode
20572
20573 # Command to use after installation of a shared archive.
20574 postinstall_cmds=$lt_postinstall_cmds
20575
20576 # Command to use after uninstallation of a shared archive.
20577 postuninstall_cmds=$lt_postuninstall_cmds
20578
20579 # Commands used to finish a libtool library installation in a directory.
20580 finish_cmds=$lt_finish_cmds
20581
20582 # As "finish_cmds", except a single script fragment to be evaled but
20583 # not shown.
20584 finish_eval=$lt_finish_eval
20585
20586 # Whether we should hardcode library paths into libraries.
20587 hardcode_into_libs=$hardcode_into_libs
20588
20589 # Compile-time system search path for libraries.
20590 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20591
20592 # Run-time system search path for libraries.
20593 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20594
20595 # Whether dlopen is supported.
20596 dlopen_support=$enable_dlopen
20597
20598 # Whether dlopen of programs is supported.
20599 dlopen_self=$enable_dlopen_self
20600
20601 # Whether dlopen of statically linked programs is supported.
20602 dlopen_self_static=$enable_dlopen_self_static
20603
20604 # Commands to strip libraries.
20605 old_striplib=$lt_old_striplib
20606 striplib=$lt_striplib
20607
20608
20609 # The linker used to build libraries.
20610 LD=$lt_LD
20611
20612 # How to create reloadable object files.
20613 reload_flag=$lt_reload_flag
20614 reload_cmds=$lt_reload_cmds
20615
20616 # Commands used to build an old-style archive.
20617 old_archive_cmds=$lt_old_archive_cmds
20618
20619 # A language specific compiler.
20620 CC=$lt_compiler
20621
20622 # Is the compiler the GNU compiler?
20623 with_gcc=$GCC
20624
20625 # Compiler flag to turn off builtin functions.
20626 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20627
20628 # Additional compiler flags for building library objects.
20629 pic_flag=$lt_lt_prog_compiler_pic
20630
20631 # How to pass a linker flag through the compiler.
20632 wl=$lt_lt_prog_compiler_wl
20633
20634 # Compiler flag to prevent dynamic linking.
20635 link_static_flag=$lt_lt_prog_compiler_static
20636
20637 # Does compiler simultaneously support -c and -o options?
20638 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20639
20640 # Whether or not to add -lc for building shared libraries.
20641 build_libtool_need_lc=$archive_cmds_need_lc
20642
20643 # Whether or not to disallow shared libs when runtime libs are static.
20644 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20645
20646 # Compiler flag to allow reflexive dlopens.
20647 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20648
20649 # Compiler flag to generate shared objects directly from archives.
20650 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20651
20652 # Whether the compiler copes with passing no objects directly.
20653 compiler_needs_object=$lt_compiler_needs_object
20654
20655 # Create an old-style archive from a shared archive.
20656 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20657
20658 # Create a temporary old-style archive to link instead of a shared archive.
20659 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20660
20661 # Commands used to build a shared archive.
20662 archive_cmds=$lt_archive_cmds
20663 archive_expsym_cmds=$lt_archive_expsym_cmds
20664
20665 # Commands used to build a loadable module if different from building
20666 # a shared archive.
20667 module_cmds=$lt_module_cmds
20668 module_expsym_cmds=$lt_module_expsym_cmds
20669
20670 # Whether we are building with GNU ld or not.
20671 with_gnu_ld=$lt_with_gnu_ld
20672
20673 # Flag that allows shared libraries with undefined symbols to be built.
20674 allow_undefined_flag=$lt_allow_undefined_flag
20675
20676 # Flag that enforces no undefined symbols.
20677 no_undefined_flag=$lt_no_undefined_flag
20678
20679 # Flag to hardcode \$libdir into a binary during linking.
20680 # This must work even if \$libdir does not exist
20681 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20682
20683 # Whether we need a single "-rpath" flag with a separated argument.
20684 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20685
20686 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20687 # DIR into the resulting binary.
20688 hardcode_direct=$hardcode_direct
20689
20690 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20691 # DIR into the resulting binary and the resulting library dependency is
20692 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20693 # library is relocated.
20694 hardcode_direct_absolute=$hardcode_direct_absolute
20695
20696 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20697 # into the resulting binary.
20698 hardcode_minus_L=$hardcode_minus_L
20699
20700 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20701 # into the resulting binary.
20702 hardcode_shlibpath_var=$hardcode_shlibpath_var
20703
20704 # Set to "yes" if building a shared library automatically hardcodes DIR
20705 # into the library and all subsequent libraries and executables linked
20706 # against it.
20707 hardcode_automatic=$hardcode_automatic
20708
20709 # Set to yes if linker adds runtime paths of dependent libraries
20710 # to runtime path list.
20711 inherit_rpath=$inherit_rpath
20712
20713 # Whether libtool must link a program against all its dependency libraries.
20714 link_all_deplibs=$link_all_deplibs
20715
20716 # Set to "yes" if exported symbols are required.
20717 always_export_symbols=$always_export_symbols
20718
20719 # The commands to list exported symbols.
20720 export_symbols_cmds=$lt_export_symbols_cmds
20721
20722 # Symbols that should not be listed in the preloaded symbols.
20723 exclude_expsyms=$lt_exclude_expsyms
20724
20725 # Symbols that must always be exported.
20726 include_expsyms=$lt_include_expsyms
20727
20728 # Commands necessary for linking programs (against libraries) with templates.
20729 prelink_cmds=$lt_prelink_cmds
20730
20731 # Commands necessary for finishing linking programs.
20732 postlink_cmds=$lt_postlink_cmds
20733
20734 # Specify filename containing input files.
20735 file_list_spec=$lt_file_list_spec
20736
20737 # How to hardcode a shared library path into an executable.
20738 hardcode_action=$hardcode_action
20739
20740 # ### END LIBTOOL CONFIG
20741
20742 _LT_EOF
20743
20744 case $host_os in
20745 aix3*)
20746 cat <<\_LT_EOF >> "$cfgfile"
20747 # AIX sometimes has problems with the GCC collect2 program. For some
20748 # reason, if we set the COLLECT_NAMES environment variable, the problems
20749 # vanish in a puff of smoke.
20750 if test "X${COLLECT_NAMES+set}" != Xset; then
20751 COLLECT_NAMES=
20752 export COLLECT_NAMES
20753 fi
20754 _LT_EOF
20755 ;;
20756 esac
20757
20758
20759 ltmain="$ac_aux_dir/ltmain.sh"
20760
20761
20762 # We use sed instead of cat because bash on DJGPP gets confused if
20763 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20764 # text mode, it properly converts lines to CR/LF. This bash problem
20765 # is reportedly fixed, but why not run on old versions too?
20766 sed '$q' "$ltmain" >> "$cfgfile" \
20767 || (rm -f "$cfgfile"; exit 1)
20768
20769 if test x"$xsi_shell" = xyes; then
20770 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20771 func_dirname ()\
20772 {\
20773 \ case ${1} in\
20774 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20775 \ * ) func_dirname_result="${3}" ;;\
20776 \ esac\
20777 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20778 && mv -f "$cfgfile.tmp" "$cfgfile" \
20779 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20780 test 0 -eq $? || _lt_function_replace_fail=:
20781
20782
20783 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20784 func_basename ()\
20785 {\
20786 \ func_basename_result="${1##*/}"\
20787 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20788 && mv -f "$cfgfile.tmp" "$cfgfile" \
20789 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20790 test 0 -eq $? || _lt_function_replace_fail=:
20791
20792
20793 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20794 func_dirname_and_basename ()\
20795 {\
20796 \ case ${1} in\
20797 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20798 \ * ) func_dirname_result="${3}" ;;\
20799 \ esac\
20800 \ func_basename_result="${1##*/}"\
20801 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20802 && mv -f "$cfgfile.tmp" "$cfgfile" \
20803 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20804 test 0 -eq $? || _lt_function_replace_fail=:
20805
20806
20807 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20808 func_stripname ()\
20809 {\
20810 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20811 \ # positional parameters, so assign one to ordinary parameter first.\
20812 \ func_stripname_result=${3}\
20813 \ func_stripname_result=${func_stripname_result#"${1}"}\
20814 \ func_stripname_result=${func_stripname_result%"${2}"}\
20815 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20816 && mv -f "$cfgfile.tmp" "$cfgfile" \
20817 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20818 test 0 -eq $? || _lt_function_replace_fail=:
20819
20820
20821 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20822 func_split_long_opt ()\
20823 {\
20824 \ func_split_long_opt_name=${1%%=*}\
20825 \ func_split_long_opt_arg=${1#*=}\
20826 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20827 && mv -f "$cfgfile.tmp" "$cfgfile" \
20828 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20829 test 0 -eq $? || _lt_function_replace_fail=:
20830
20831
20832 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20833 func_split_short_opt ()\
20834 {\
20835 \ func_split_short_opt_arg=${1#??}\
20836 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20837 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20838 && mv -f "$cfgfile.tmp" "$cfgfile" \
20839 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20840 test 0 -eq $? || _lt_function_replace_fail=:
20841
20842
20843 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20844 func_lo2o ()\
20845 {\
20846 \ case ${1} in\
20847 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20848 \ *) func_lo2o_result=${1} ;;\
20849 \ esac\
20850 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20851 && mv -f "$cfgfile.tmp" "$cfgfile" \
20852 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20853 test 0 -eq $? || _lt_function_replace_fail=:
20854
20855
20856 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20857 func_xform ()\
20858 {\
20859 func_xform_result=${1%.*}.lo\
20860 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20861 && mv -f "$cfgfile.tmp" "$cfgfile" \
20862 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20863 test 0 -eq $? || _lt_function_replace_fail=:
20864
20865
20866 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20867 func_arith ()\
20868 {\
20869 func_arith_result=$(( $* ))\
20870 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20871 && mv -f "$cfgfile.tmp" "$cfgfile" \
20872 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20873 test 0 -eq $? || _lt_function_replace_fail=:
20874
20875
20876 sed -e '/^func_len ()$/,/^} # func_len /c\
20877 func_len ()\
20878 {\
20879 func_len_result=${#1}\
20880 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20881 && mv -f "$cfgfile.tmp" "$cfgfile" \
20882 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20883 test 0 -eq $? || _lt_function_replace_fail=:
20884
20885 fi
20886
20887 if test x"$lt_shell_append" = xyes; then
20888 sed -e '/^func_append ()$/,/^} # func_append /c\
20889 func_append ()\
20890 {\
20891 eval "${1}+=\\${2}"\
20892 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20893 && mv -f "$cfgfile.tmp" "$cfgfile" \
20894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20895 test 0 -eq $? || _lt_function_replace_fail=:
20896
20897
20898 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20899 func_append_quoted ()\
20900 {\
20901 \ func_quote_for_eval "${2}"\
20902 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20903 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20904 && mv -f "$cfgfile.tmp" "$cfgfile" \
20905 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20906 test 0 -eq $? || _lt_function_replace_fail=:
20907
20908
20909 # Save a `func_append' function call where possible by direct use of '+='
20910 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20911 && mv -f "$cfgfile.tmp" "$cfgfile" \
20912 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20913 test 0 -eq $? || _lt_function_replace_fail=:
20914 else
20915 # Save a `func_append' function call even when '+=' is not available
20916 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20917 && mv -f "$cfgfile.tmp" "$cfgfile" \
20918 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20919 test 0 -eq $? || _lt_function_replace_fail=:
20920 fi
20921
20922 if test x"$_lt_function_replace_fail" = x":"; then
20923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20924 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20925 fi
20926
20927
20928 mv -f "$cfgfile" "$ofile" ||
20929 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20930 chmod +x "$ofile"
20931
20932 ;;
20933 "disable-rpath":C)
20934 sed < libtool > libtool-2 \
20935 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
20936 mv libtool-2 libtool
20937 chmod 755 libtool
20938 libtool="./libtool"
20939 ;;
20940
20941 esac
20942 done # for ac_tag
20943
20944
20945 as_fn_exit 0
20946 _ACEOF
20947 ac_clean_files=$ac_clean_files_save
20948
20949 test $ac_write_fail = 0 ||
20950 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20951
20952
20953 # configure is writing to config.log, and then calls config.status.
20954 # config.status does its own redirection, appending to config.log.
20955 # Unfortunately, on DOS this fails, as config.log is still kept open
20956 # by configure, so config.status won't be able to write to it; its
20957 # output is simply discarded. So we exec the FD to /dev/null,
20958 # effectively closing config.log, so it can be properly (re)opened and
20959 # appended to by config.status. When coming back to configure, we
20960 # need to make the FD available again.
20961 if test "$no_create" != yes; then
20962 ac_cs_success=:
20963 ac_config_status_args=
20964 test "$silent" = yes &&
20965 ac_config_status_args="$ac_config_status_args --quiet"
20966 exec 5>/dev/null
20967 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20968 exec 5>>config.log
20969 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20970 # would make configure fail if this is the last instruction.
20971 $ac_cs_success || as_fn_exit 1
20972 fi
20973 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20975 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20976 fi
20977