libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / dnscrypt / configure
blob5aa5715cc7159ef6c6a2bcf6532592cb1fe53b50
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for dnscrypt-proxy 1.0.
5 # Report bugs to <https://github.com/opendns/dnscrypt-proxy/issues>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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 *) :
176 esac
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; }
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 :
192 else
193 exitcode=1; echo positional parameters were not saved.
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
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
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
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
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
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
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: https://github.com/opendns/dnscrypt-proxy/issues about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
283 exit 1
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
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
301 { eval $1=; unset $1;}
303 as_unset=as_fn_unset
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
310 return $1
311 } # as_fn_set_status
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 ()
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
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/
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
354 /^X\(\/\/\)$/{
355 s//\1/
358 /^X\(\/\).*/{
359 s//\1/
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"
369 } # as_fn_mkdir_p
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
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 ()
387 eval $1+=\$2
389 else
390 as_fn_append ()
392 eval $1=\$$1\$2
394 fi # as_fn_append
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 ()
404 as_val=$(( $* ))
406 else
407 as_fn_arith ()
409 as_val=`expr "$@" || test $? -eq 1`
411 fi # as_fn_arith
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 ()
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
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
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
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
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
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/
458 /^X\/\(\/\/\)$/{
459 s//\1/
462 /^X\/\(\/\).*/{
463 s//\1/
466 s/.*/./; q'`
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
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 '
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
489 :lineno
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; }
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
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;;
521 ECHO_N='-n';;
522 esac
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
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'
545 else
546 as_ln_s='cp -pR'
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
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
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
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'"
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'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
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`
579 # Initializations.
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=
590 # Identity of this package.
591 PACKAGE_NAME='dnscrypt-proxy'
592 PACKAGE_TARNAME='dnscrypt-proxy'
593 PACKAGE_VERSION='1.0'
594 PACKAGE_STRING='dnscrypt-proxy 1.0'
595 PACKAGE_BUGREPORT='https://github.com/opendns/dnscrypt-proxy/issues'
596 PACKAGE_URL=''
598 ac_unique_file="src/proxy/app.c"
599 enable_option_checking=no
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 PROBES_SOURCE
641 NACL_PATH
642 SAFECODE_HOME
643 DTRACE
644 SIXJACK
645 RONN
646 LIBTOOL_DEPS
647 OTOOL64
648 OTOOL
649 LIPO
650 NMEDIT
651 DSYMUTIL
652 MANIFEST_TOOL
653 RANLIB
654 ac_ct_AR
656 DLLTOOL
657 OBJDUMP
658 LN_S
660 ac_ct_DUMPBIN
661 DUMPBIN
663 FGREP
665 LIBTOOL
666 CWFLAGS
667 EGREP
668 GREP
670 am__fastdepCC_FALSE
671 am__fastdepCC_TRUE
672 CCDEPMODE
673 am__quote
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
683 ISODATE
684 am__nodep
685 AMDEPBACKSLASH
686 AMDEP_FALSE
687 AMDEP_TRUE
688 MAINT
689 MAINTAINER_MODE_FALSE
690 MAINTAINER_MODE_TRUE
691 am__untar
692 am__tar
693 AMTAR
694 am__leading_dot
695 SET_MAKE
697 mkdir_p
698 MKDIR_P
699 INSTALL_STRIP_PROGRAM
700 STRIP
701 install_sh
702 MAKEINFO
703 AUTOHEADER
704 AUTOMAKE
705 AUTOCONF
706 ACLOCAL
707 VERSION
708 PACKAGE
709 CYGPATH_W
710 am__isrc
711 INSTALL_DATA
712 INSTALL_SCRIPT
713 INSTALL_PROGRAM
714 host_os
715 host_vendor
716 host_cpu
717 host
718 build_os
719 build_vendor
720 build_cpu
721 build
722 subdirs
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_maintainer_mode
765 enable_dependency_tracking
766 enable_shared
767 enable_static
768 with_pic
769 enable_fast_install
770 with_gnu_ld
771 with_sysroot
772 enable_libtool_lock
773 enable_largefile
774 enable_assert
775 enable_blocking_random
776 enable_ssp
777 enable_debug
778 with_safecode
780 ac_precious_vars='build_alias
781 host_alias
782 target_alias
784 CFLAGS
785 LDFLAGS
786 LIBS
787 CPPFLAGS
789 CWFLAGS
790 RONN
791 SIXJACK
793 DTRACE
794 SAFECODE_HOME'
795 ac_subdirs_all='src/libevent'
797 # Initialize some variables set by options.
798 ac_init_help=
799 ac_init_version=false
800 ac_unrecognized_opts=
801 ac_unrecognized_sep=
802 # The variables have the same names as the options, with
803 # dashes changed to underlines.
804 cache_file=/dev/null
805 exec_prefix=NONE
806 no_create=
807 no_recursion=
808 prefix=NONE
809 program_prefix=NONE
810 program_suffix=NONE
811 program_transform_name=s,x,x,
812 silent=
813 site=
814 srcdir=
815 verbose=
816 x_includes=NONE
817 x_libraries=NONE
819 # Installation directory options.
820 # These are left unexpanded so users can "make install exec_prefix=/foo"
821 # and all the variables that are supposed to be based on exec_prefix
822 # by default will actually change.
823 # Use braces instead of parens because sh, perl, etc. also accept them.
824 # (The list follows the same order as the GNU Coding Standards.)
825 bindir='${exec_prefix}/bin'
826 sbindir='${exec_prefix}/sbin'
827 libexecdir='${exec_prefix}/libexec'
828 datarootdir='${prefix}/share'
829 datadir='${datarootdir}'
830 sysconfdir='${prefix}/etc'
831 sharedstatedir='${prefix}/com'
832 localstatedir='${prefix}/var'
833 includedir='${prefix}/include'
834 oldincludedir='/usr/include'
835 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
836 infodir='${datarootdir}/info'
837 htmldir='${docdir}'
838 dvidir='${docdir}'
839 pdfdir='${docdir}'
840 psdir='${docdir}'
841 libdir='${exec_prefix}/lib'
842 localedir='${datarootdir}/locale'
843 mandir='${datarootdir}/man'
845 ac_prev=
846 ac_dashdash=
847 for ac_option
849 # If the previous option needs an argument, assign it.
850 if test -n "$ac_prev"; then
851 eval $ac_prev=\$ac_option
852 ac_prev=
853 continue
856 case $ac_option in
857 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858 *=) ac_optarg= ;;
859 *) ac_optarg=yes ;;
860 esac
862 # Accept the important Cygnus configure options, so we can diagnose typos.
864 case $ac_dashdash$ac_option in
866 ac_dashdash=yes ;;
868 -bindir | --bindir | --bindi | --bind | --bin | --bi)
869 ac_prev=bindir ;;
870 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871 bindir=$ac_optarg ;;
873 -build | --build | --buil | --bui | --bu)
874 ac_prev=build_alias ;;
875 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876 build_alias=$ac_optarg ;;
878 -cache-file | --cache-file | --cache-fil | --cache-fi \
879 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880 ac_prev=cache_file ;;
881 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883 cache_file=$ac_optarg ;;
885 --config-cache | -C)
886 cache_file=config.cache ;;
888 -datadir | --datadir | --datadi | --datad)
889 ac_prev=datadir ;;
890 -datadir=* | --datadir=* | --datadi=* | --datad=*)
891 datadir=$ac_optarg ;;
893 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894 | --dataroo | --dataro | --datar)
895 ac_prev=datarootdir ;;
896 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898 datarootdir=$ac_optarg ;;
900 -disable-* | --disable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error $? "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
909 "enable_$ac_useropt"
910 "*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=no ;;
916 -docdir | --docdir | --docdi | --doc | --do)
917 ac_prev=docdir ;;
918 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919 docdir=$ac_optarg ;;
921 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922 ac_prev=dvidir ;;
923 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924 dvidir=$ac_optarg ;;
926 -enable-* | --enable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error $? "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=\$ac_optarg ;;
942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944 | --exec | --exe | --ex)
945 ac_prev=exec_prefix ;;
946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948 | --exec=* | --exe=* | --ex=*)
949 exec_prefix=$ac_optarg ;;
951 -gas | --gas | --ga | --g)
952 # Obsolete; use --with-gas.
953 with_gas=yes ;;
955 -help | --help | --hel | --he | -h)
956 ac_init_help=long ;;
957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958 ac_init_help=recursive ;;
959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960 ac_init_help=short ;;
962 -host | --host | --hos | --ho)
963 ac_prev=host_alias ;;
964 -host=* | --host=* | --hos=* | --ho=*)
965 host_alias=$ac_optarg ;;
967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968 ac_prev=htmldir ;;
969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970 | --ht=*)
971 htmldir=$ac_optarg ;;
973 -includedir | --includedir | --includedi | --included | --include \
974 | --includ | --inclu | --incl | --inc)
975 ac_prev=includedir ;;
976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977 | --includ=* | --inclu=* | --incl=* | --inc=*)
978 includedir=$ac_optarg ;;
980 -infodir | --infodir | --infodi | --infod | --info | --inf)
981 ac_prev=infodir ;;
982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983 infodir=$ac_optarg ;;
985 -libdir | --libdir | --libdi | --libd)
986 ac_prev=libdir ;;
987 -libdir=* | --libdir=* | --libdi=* | --libd=*)
988 libdir=$ac_optarg ;;
990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991 | --libexe | --libex | --libe)
992 ac_prev=libexecdir ;;
993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994 | --libexe=* | --libex=* | --libe=*)
995 libexecdir=$ac_optarg ;;
997 -localedir | --localedir | --localedi | --localed | --locale)
998 ac_prev=localedir ;;
999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000 localedir=$ac_optarg ;;
1002 -localstatedir | --localstatedir | --localstatedi | --localstated \
1003 | --localstate | --localstat | --localsta | --localst | --locals)
1004 ac_prev=localstatedir ;;
1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1007 localstatedir=$ac_optarg ;;
1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010 ac_prev=mandir ;;
1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012 mandir=$ac_optarg ;;
1014 -nfp | --nfp | --nf)
1015 # Obsolete; use --without-fp.
1016 with_fp=no ;;
1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019 | --no-cr | --no-c | -n)
1020 no_create=yes ;;
1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024 no_recursion=yes ;;
1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028 | --oldin | --oldi | --old | --ol | --o)
1029 ac_prev=oldincludedir ;;
1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033 oldincludedir=$ac_optarg ;;
1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036 ac_prev=prefix ;;
1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038 prefix=$ac_optarg ;;
1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041 | --program-pre | --program-pr | --program-p)
1042 ac_prev=program_prefix ;;
1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045 program_prefix=$ac_optarg ;;
1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048 | --program-suf | --program-su | --program-s)
1049 ac_prev=program_suffix ;;
1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052 program_suffix=$ac_optarg ;;
1054 -program-transform-name | --program-transform-name \
1055 | --program-transform-nam | --program-transform-na \
1056 | --program-transform-n | --program-transform- \
1057 | --program-transform | --program-transfor \
1058 | --program-transfo | --program-transf \
1059 | --program-trans | --program-tran \
1060 | --progr-tra | --program-tr | --program-t)
1061 ac_prev=program_transform_name ;;
1062 -program-transform-name=* | --program-transform-name=* \
1063 | --program-transform-nam=* | --program-transform-na=* \
1064 | --program-transform-n=* | --program-transform-=* \
1065 | --program-transform=* | --program-transfor=* \
1066 | --program-transfo=* | --program-transf=* \
1067 | --program-trans=* | --program-tran=* \
1068 | --progr-tra=* | --program-tr=* | --program-t=*)
1069 program_transform_name=$ac_optarg ;;
1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072 ac_prev=pdfdir ;;
1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074 pdfdir=$ac_optarg ;;
1076 -psdir | --psdir | --psdi | --psd | --ps)
1077 ac_prev=psdir ;;
1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079 psdir=$ac_optarg ;;
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 silent=yes ;;
1085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086 ac_prev=sbindir ;;
1087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088 | --sbi=* | --sb=*)
1089 sbindir=$ac_optarg ;;
1091 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093 | --sharedst | --shareds | --shared | --share | --shar \
1094 | --sha | --sh)
1095 ac_prev=sharedstatedir ;;
1096 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099 | --sha=* | --sh=*)
1100 sharedstatedir=$ac_optarg ;;
1102 -site | --site | --sit)
1103 ac_prev=site ;;
1104 -site=* | --site=* | --sit=*)
1105 site=$ac_optarg ;;
1107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108 ac_prev=srcdir ;;
1109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110 srcdir=$ac_optarg ;;
1112 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113 | --syscon | --sysco | --sysc | --sys | --sy)
1114 ac_prev=sysconfdir ;;
1115 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117 sysconfdir=$ac_optarg ;;
1119 -target | --target | --targe | --targ | --tar | --ta | --t)
1120 ac_prev=target_alias ;;
1121 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122 target_alias=$ac_optarg ;;
1124 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125 verbose=yes ;;
1127 -version | --version | --versio | --versi | --vers | -V)
1128 ac_init_version=: ;;
1130 -with-* | --with-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error $? "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1139 "with_$ac_useropt"
1140 "*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=\$ac_optarg ;;
1146 -without-* | --without-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error $? "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1155 "with_$ac_useropt"
1156 "*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=no ;;
1162 --x)
1163 # Obsolete; use --with-x.
1164 with_x=yes ;;
1166 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167 | --x-incl | --x-inc | --x-in | --x-i)
1168 ac_prev=x_includes ;;
1169 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171 x_includes=$ac_optarg ;;
1173 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175 ac_prev=x_libraries ;;
1176 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178 x_libraries=$ac_optarg ;;
1180 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1181 Try \`$0 --help' for more information"
1184 *=*)
1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
1187 case $ac_envvar in #(
1188 '' | [0-9]* | *[!_$as_cr_alnum]* )
1189 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1190 esac
1191 eval $ac_envvar=\$ac_optarg
1192 export $ac_envvar ;;
1195 # FIXME: should be removed in autoconf 3.0.
1196 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1202 esac
1203 done
1205 if test -n "$ac_prev"; then
1206 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207 as_fn_error $? "missing argument to $ac_option"
1210 if test -n "$ac_unrecognized_opts"; then
1211 case $enable_option_checking in
1212 no) ;;
1213 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1214 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215 esac
1218 # Check all directory arguments for consistency.
1219 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220 datadir sysconfdir sharedstatedir localstatedir includedir \
1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222 libdir localedir mandir
1224 eval ac_val=\$$ac_var
1225 # Remove trailing slashes.
1226 case $ac_val in
1227 */ )
1228 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229 eval $ac_var=\$ac_val;;
1230 esac
1231 # Be sure to have absolute directory names.
1232 case $ac_val in
1233 [\\/$]* | ?:[\\/]* ) continue;;
1234 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235 esac
1236 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1237 done
1239 # There might be people who depend on the old broken behavior: `$host'
1240 # used to hold the argument of --host etc.
1241 # FIXME: To remove some day.
1242 build=$build_alias
1243 host=$host_alias
1244 target=$target_alias
1246 # FIXME: To remove some day.
1247 if test "x$host_alias" != x; then
1248 if test "x$build_alias" = x; then
1249 cross_compiling=maybe
1250 elif test "x$build_alias" != "x$host_alias"; then
1251 cross_compiling=yes
1255 ac_tool_prefix=
1256 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258 test "$silent" = yes && exec 6>/dev/null
1261 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262 ac_ls_di=`ls -di .` &&
1263 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264 as_fn_error $? "working directory cannot be determined"
1265 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266 as_fn_error $? "pwd does not report name of working directory"
1269 # Find the source files, if location was not specified.
1270 if test -z "$srcdir"; then
1271 ac_srcdir_defaulted=yes
1272 # Try the directory containing this script, then the parent directory.
1273 ac_confdir=`$as_dirname -- "$as_myself" ||
1274 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275 X"$as_myself" : 'X\(//\)[^/]' \| \
1276 X"$as_myself" : 'X\(//\)$' \| \
1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278 $as_echo X"$as_myself" |
1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280 s//\1/
1283 /^X\(\/\/\)[^/].*/{
1284 s//\1/
1287 /^X\(\/\/\)$/{
1288 s//\1/
1291 /^X\(\/\).*/{
1292 s//\1/
1295 s/.*/./; q'`
1296 srcdir=$ac_confdir
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 srcdir=..
1300 else
1301 ac_srcdir_defaulted=no
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 ac_abs_confdir=`(
1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310 pwd)`
1311 # When building in place, set srcdir=.
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
1313 srcdir=.
1315 # Remove unnecessary trailing slashes from srcdir.
1316 # Double slashes in file names in object file debugging info
1317 # mess up M-x gdb in Emacs.
1318 case $srcdir in
1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 esac
1321 for ac_var in $ac_precious_vars; do
1322 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_env_${ac_var}_value=\$${ac_var}
1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 done
1329 # Report the --help message.
1331 if test "$ac_init_help" = "long"; then
1332 # Omit some internal or obsolete options to make the list less imposing.
1333 # This message is too long to be a string in the A/UX 3.1 sh.
1334 cat <<_ACEOF
1335 \`configure' configures dnscrypt-proxy 1.0 to adapt to many kinds of systems.
1337 Usage: $0 [OPTION]... [VAR=VALUE]...
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340 VAR=VALUE. See below for descriptions of some of the useful variables.
1342 Defaults for the options are specified in brackets.
1344 Configuration:
1345 -h, --help display this help and exit
1346 --help=short display options specific to this package
1347 --help=recursive display the short help of all the included packages
1348 -V, --version display version information and exit
1349 -q, --quiet, --silent do not print \`checking ...' messages
1350 --cache-file=FILE cache test results in FILE [disabled]
1351 -C, --config-cache alias for \`--cache-file=config.cache'
1352 -n, --no-create do not create output files
1353 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355 Installation directories:
1356 --prefix=PREFIX install architecture-independent files in PREFIX
1357 [$ac_default_prefix]
1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1359 [PREFIX]
1361 By default, \`make install' will install all the files in
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364 for instance \`--prefix=\$HOME'.
1366 For better control, use the options below.
1368 Fine tuning of the installation directories:
1369 --bindir=DIR user executables [EPREFIX/bin]
1370 --sbindir=DIR system admin executables [EPREFIX/sbin]
1371 --libexecdir=DIR program executables [EPREFIX/libexec]
1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375 --libdir=DIR object code libraries [EPREFIX/lib]
1376 --includedir=DIR C header files [PREFIX/include]
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380 --infodir=DIR info documentation [DATAROOTDIR/info]
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382 --mandir=DIR man documentation [DATAROOTDIR/man]
1383 --docdir=DIR documentation root [DATAROOTDIR/doc/dnscrypt-proxy]
1384 --htmldir=DIR html documentation [DOCDIR]
1385 --dvidir=DIR dvi documentation [DOCDIR]
1386 --pdfdir=DIR pdf documentation [DOCDIR]
1387 --psdir=DIR ps documentation [DOCDIR]
1388 _ACEOF
1390 cat <<\_ACEOF
1392 Program names:
1393 --program-prefix=PREFIX prepend PREFIX to installed program names
1394 --program-suffix=SUFFIX append SUFFIX to installed program names
1395 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1397 System types:
1398 --build=BUILD configure for building on BUILD [guessed]
1399 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1400 _ACEOF
1403 if test -n "$ac_init_help"; then
1404 case $ac_init_help in
1405 short | recursive ) echo "Configuration of dnscrypt-proxy 1.0:";;
1406 esac
1407 cat <<\_ACEOF
1409 Optional Features:
1410 --disable-option-checking ignore unrecognized --enable/--with options
1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1413 --enable-maintainer-mode
1414 enable make rules and dependencies not useful (and
1415 sometimes confusing) to the casual installer
1416 --enable-dependency-tracking
1417 do not reject slow dependency extractors
1418 --disable-dependency-tracking
1419 speeds up one-time build
1420 --enable-shared[=PKGS] build shared libraries [default=yes]
1421 --enable-static[=PKGS] build static libraries [default=yes]
1422 --enable-fast-install[=PKGS]
1423 optimize for fast installation [default=yes]
1424 --disable-libtool-lock avoid locking (might break parallel builds)
1425 --disable-largefile omit support for large files
1426 --disable-assert turn off assertions
1427 --enable-blocking-random
1428 Use /dev/random instead of /dev/urandom
1429 --disable-ssp Don't compile with -fstack-protector
1430 --enable-debug For maintainers only - please do not use
1432 Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1436 both]
1437 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1438 --with-sysroot=DIR Search for dependent libraries within DIR
1439 (or the compiler's sysroot if not specified).
1440 --with-safecode For maintainers only - please do not use
1442 Some influential environment variables:
1443 CC C compiler command
1444 CFLAGS C compiler flags
1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1446 nonstandard directory <lib dir>
1447 LIBS libraries to pass to the linker, e.g. -l<library>
1448 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1449 you have headers in a nonstandard directory <include dir>
1450 CPP C preprocessor
1451 CWFLAGS define to compilation flags for generating extra warnings
1452 RONN path to the ronn text processor
1453 SIXJACK path to 6jack
1454 AR path to the ar utility
1455 DTRACE path to dtrace if you have it
1456 SAFECODE_HOME
1457 set to the safecode base directory
1459 Use these variables to override the choices made by `configure' or to help
1460 it to find libraries and programs with nonstandard names/locations.
1462 Report bugs to <https://github.com/opendns/dnscrypt-proxy/issues>.
1463 _ACEOF
1464 ac_status=$?
1467 if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470 test -d "$ac_dir" ||
1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1472 continue
1473 ac_builddir=.
1475 case "$ac_dir" in
1476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1479 # A ".." for each directory in $ac_dir_suffix.
1480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481 case $ac_top_builddir_sub in
1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484 esac ;;
1485 esac
1486 ac_abs_top_builddir=$ac_pwd
1487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488 # for backward compatibility:
1489 ac_top_builddir=$ac_top_build_prefix
1491 case $srcdir in
1492 .) # We are building in place.
1493 ac_srcdir=.
1494 ac_top_srcdir=$ac_top_builddir_sub
1495 ac_abs_top_srcdir=$ac_pwd ;;
1496 [\\/]* | ?:[\\/]* ) # Absolute name.
1497 ac_srcdir=$srcdir$ac_dir_suffix;
1498 ac_top_srcdir=$srcdir
1499 ac_abs_top_srcdir=$srcdir ;;
1500 *) # Relative name.
1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502 ac_top_srcdir=$ac_top_build_prefix$srcdir
1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1504 esac
1505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507 cd "$ac_dir" || { ac_status=$?; continue; }
1508 # Check for guested configure.
1509 if test -f "$ac_srcdir/configure.gnu"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512 elif test -f "$ac_srcdir/configure"; then
1513 echo &&
1514 $SHELL "$ac_srcdir/configure" --help=recursive
1515 else
1516 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517 fi || ac_status=$?
1518 cd "$ac_pwd" || { ac_status=$?; break; }
1519 done
1522 test -n "$ac_init_help" && exit $ac_status
1523 if $ac_init_version; then
1524 cat <<\_ACEOF
1525 dnscrypt-proxy configure 1.0
1526 generated by GNU Autoconf 2.69
1528 Copyright (C) 2012 Free Software Foundation, Inc.
1529 This configure script is free software; the Free Software Foundation
1530 gives unlimited permission to copy, distribute and modify it.
1531 _ACEOF
1532 exit
1535 ## ------------------------ ##
1536 ## Autoconf initialization. ##
1537 ## ------------------------ ##
1539 # ac_fn_c_try_compile LINENO
1540 # --------------------------
1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_c_try_compile ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 rm -f conftest.$ac_objext
1546 if { { ac_try="$ac_compile"
1547 case "(($ac_try" in
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1550 esac
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_compile") 2>conftest.err
1554 ac_status=$?
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && {
1562 test -z "$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1564 } && test -s conftest.$ac_objext; then :
1565 ac_retval=0
1566 else
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1570 ac_retval=1
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 as_fn_set_status $ac_retval
1575 } # ac_fn_c_try_compile
1577 # ac_fn_c_try_cpp LINENO
1578 # ----------------------
1579 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_cpp ()
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if { { ac_try="$ac_cpp conftest.$ac_ext"
1584 case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } > conftest.i && {
1599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 }; then :
1602 ac_retval=0
1603 else
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1607 ac_retval=1
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
1612 } # ac_fn_c_try_cpp
1614 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1615 # -------------------------------------------------------
1616 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1617 # the include files in INCLUDES and setting the cache variable VAR
1618 # accordingly.
1619 ac_fn_c_check_header_mongrel ()
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if eval \${$3+:} false; then :
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624 $as_echo_n "checking for $2... " >&6; }
1625 if eval \${$3+:} false; then :
1626 $as_echo_n "(cached) " >&6
1628 eval ac_res=\$$3
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1630 $as_echo "$ac_res" >&6; }
1631 else
1632 # Is the header compilable?
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1634 $as_echo_n "checking $2 usability... " >&6; }
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1638 #include <$2>
1639 _ACEOF
1640 if ac_fn_c_try_compile "$LINENO"; then :
1641 ac_header_compiler=yes
1642 else
1643 ac_header_compiler=no
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1647 $as_echo "$ac_header_compiler" >&6; }
1649 # Is the header present?
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1651 $as_echo_n "checking $2 presence... " >&6; }
1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653 /* end confdefs.h. */
1654 #include <$2>
1655 _ACEOF
1656 if ac_fn_c_try_cpp "$LINENO"; then :
1657 ac_header_preproc=yes
1658 else
1659 ac_header_preproc=no
1661 rm -f conftest.err conftest.i conftest.$ac_ext
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1663 $as_echo "$ac_header_preproc" >&6; }
1665 # So? What about this header?
1666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1667 yes:no: )
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1669 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1673 no:yes:* )
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1675 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1677 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1679 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1681 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1683 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1684 ( $as_echo "## --------------------------------------------------------------- ##
1685 ## Report this to https://github.com/opendns/dnscrypt-proxy/issues ##
1686 ## --------------------------------------------------------------- ##"
1687 ) | sed "s/^/$as_me: WARNING: /" >&2
1689 esac
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if eval \${$3+:} false; then :
1693 $as_echo_n "(cached) " >&6
1694 else
1695 eval "$3=\$ac_header_compiler"
1697 eval ac_res=\$$3
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699 $as_echo "$ac_res" >&6; }
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 } # ac_fn_c_check_header_mongrel
1705 # ac_fn_c_try_run LINENO
1706 # ----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1708 # that executables *can* be run.
1709 ac_fn_c_try_run ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_link"
1713 case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1723 { { case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_try") 2>&5
1730 ac_status=$?
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; }; }; then :
1733 ac_retval=0
1734 else
1735 $as_echo "$as_me: program exited with status $ac_status" >&5
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1739 ac_retval=$ac_status
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1745 } # ac_fn_c_try_run
1747 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1748 # -------------------------------------------------------
1749 # Tests whether HEADER exists and can be compiled using the include files in
1750 # INCLUDES, setting the cache variable VAR accordingly.
1751 ac_fn_c_check_header_compile ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1758 else
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1762 #include <$2>
1763 _ACEOF
1764 if ac_fn_c_try_compile "$LINENO"; then :
1765 eval "$3=yes"
1766 else
1767 eval "$3=no"
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771 eval ac_res=\$$3
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 } # ac_fn_c_check_header_compile
1778 # ac_fn_c_try_link LINENO
1779 # -----------------------
1780 # Try to link conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_c_try_link ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 rm -f conftest.$ac_objext conftest$ac_exeext
1785 if { { ac_try="$ac_link"
1786 case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_link") 2>conftest.err
1793 ac_status=$?
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && {
1801 test -z "$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 } && test -s conftest$ac_exeext && {
1804 test "$cross_compiling" = yes ||
1805 test -x conftest$ac_exeext
1806 }; then :
1807 ac_retval=0
1808 else
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1812 ac_retval=1
1814 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1815 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1816 # interfere with the next link command; also delete a directory that is
1817 # left behind by Apple's compiler. We do this before executing the actions.
1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 as_fn_set_status $ac_retval
1822 } # ac_fn_c_try_link
1824 # ac_fn_c_check_func LINENO FUNC VAR
1825 # ----------------------------------
1826 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1827 ac_fn_c_check_func ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if eval \${$3+:} false; then :
1833 $as_echo_n "(cached) " >&6
1834 else
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1837 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1839 #define $2 innocuous_$2
1841 /* System header to define __stub macros and hopefully few prototypes,
1842 which can conflict with char $2 (); below.
1843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1844 <limits.h> exists even on freestanding compilers. */
1846 #ifdef __STDC__
1847 # include <limits.h>
1848 #else
1849 # include <assert.h>
1850 #endif
1852 #undef $2
1854 /* Override any GCC internal prototype to avoid an error.
1855 Use char because int might match the return type of a GCC
1856 builtin and then its argument prototype would still apply. */
1857 #ifdef __cplusplus
1858 extern "C"
1859 #endif
1860 char $2 ();
1861 /* The GNU C library defines this for functions which it implements
1862 to always fail with ENOSYS. Some functions are actually named
1863 something starting with __ and the normal name is an alias. */
1864 #if defined __stub_$2 || defined __stub___$2
1865 choke me
1866 #endif
1869 main ()
1871 return $2 ();
1873 return 0;
1875 _ACEOF
1876 if ac_fn_c_try_link "$LINENO"; then :
1877 eval "$3=yes"
1878 else
1879 eval "$3=no"
1881 rm -f core conftest.err conftest.$ac_objext \
1882 conftest$ac_exeext conftest.$ac_ext
1884 eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 } # ac_fn_c_check_func
1891 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1892 # -------------------------------------------
1893 # Tests whether TYPE exists after having included INCLUDES, setting cache
1894 # variable VAR accordingly.
1895 ac_fn_c_check_type ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if eval \${$3+:} false; then :
1901 $as_echo_n "(cached) " >&6
1902 else
1903 eval "$3=no"
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1908 main ()
1910 if (sizeof ($2))
1911 return 0;
1913 return 0;
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1921 main ()
1923 if (sizeof (($2)))
1924 return 0;
1926 return 0;
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1931 else
1932 eval "$3=yes"
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 } # ac_fn_c_check_type
1944 cat >config.log <<_ACEOF
1945 This file contains any messages produced by compilers while
1946 running configure, to aid debugging if configure makes a mistake.
1948 It was created by dnscrypt-proxy $as_me 1.0, which was
1949 generated by GNU Autoconf 2.69. Invocation command line was
1951 $ $0 $@
1953 _ACEOF
1954 exec 5>>config.log
1956 cat <<_ASUNAME
1957 ## --------- ##
1958 ## Platform. ##
1959 ## --------- ##
1961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1973 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1978 _ASUNAME
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
1985 $as_echo "PATH: $as_dir"
1986 done
1987 IFS=$as_save_IFS
1989 } >&5
1991 cat >&5 <<_ACEOF
1994 ## ----------- ##
1995 ## Core tests. ##
1996 ## ----------- ##
1998 _ACEOF
2001 # Keep a trace of the command line.
2002 # Strip out --no-create and --no-recursion so they do not pile up.
2003 # Strip out --silent because we don't want to record it for future runs.
2004 # Also quote any args containing shell meta-characters.
2005 # Make two passes to allow for proper duplicate-argument suppression.
2006 ac_configure_args=
2007 ac_configure_args0=
2008 ac_configure_args1=
2009 ac_must_keep_next=false
2010 for ac_pass in 1 2
2012 for ac_arg
2014 case $ac_arg in
2015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2017 | -silent | --silent | --silen | --sile | --sil)
2018 continue ;;
2019 *\'*)
2020 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2021 esac
2022 case $ac_pass in
2023 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2025 as_fn_append ac_configure_args1 " '$ac_arg'"
2026 if test $ac_must_keep_next = true; then
2027 ac_must_keep_next=false # Got value, back to normal.
2028 else
2029 case $ac_arg in
2030 *=* | --config-cache | -C | -disable-* | --disable-* \
2031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2033 | -with-* | --with-* | -without-* | --without-* | --x)
2034 case "$ac_configure_args0 " in
2035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2036 esac
2038 -* ) ac_must_keep_next=true ;;
2039 esac
2041 as_fn_append ac_configure_args " '$ac_arg'"
2043 esac
2044 done
2045 done
2046 { ac_configure_args0=; unset ac_configure_args0;}
2047 { ac_configure_args1=; unset ac_configure_args1;}
2049 # When interrupted or exit'd, cleanup temporary files, and complete
2050 # config.log. We remove comments because anyway the quotes in there
2051 # would cause problems or look ugly.
2052 # WARNING: Use '\'' to represent an apostrophe within the trap.
2053 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2054 trap 'exit_status=$?
2055 # Save into config.log some information that might help in debugging.
2057 echo
2059 $as_echo "## ---------------- ##
2060 ## Cache variables. ##
2061 ## ---------------- ##"
2062 echo
2063 # The following way of writing the cache mishandles newlines in values,
2065 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2066 eval ac_val=\$$ac_var
2067 case $ac_val in #(
2068 *${as_nl}*)
2069 case $ac_var in #(
2070 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2071 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2072 esac
2073 case $ac_var in #(
2074 _ | IFS | as_nl) ;; #(
2075 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2076 *) { eval $ac_var=; unset $ac_var;} ;;
2077 esac ;;
2078 esac
2079 done
2080 (set) 2>&1 |
2081 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2082 *${as_nl}ac_space=\ *)
2083 sed -n \
2084 "s/'\''/'\''\\\\'\'''\''/g;
2085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2086 ;; #(
2088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2090 esac |
2091 sort
2093 echo
2095 $as_echo "## ----------------- ##
2096 ## Output variables. ##
2097 ## ----------------- ##"
2098 echo
2099 for ac_var in $ac_subst_vars
2101 eval ac_val=\$$ac_var
2102 case $ac_val in
2103 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104 esac
2105 $as_echo "$ac_var='\''$ac_val'\''"
2106 done | sort
2107 echo
2109 if test -n "$ac_subst_files"; then
2110 $as_echo "## ------------------- ##
2111 ## File substitutions. ##
2112 ## ------------------- ##"
2113 echo
2114 for ac_var in $ac_subst_files
2116 eval ac_val=\$$ac_var
2117 case $ac_val in
2118 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119 esac
2120 $as_echo "$ac_var='\''$ac_val'\''"
2121 done | sort
2122 echo
2125 if test -s confdefs.h; then
2126 $as_echo "## ----------- ##
2127 ## confdefs.h. ##
2128 ## ----------- ##"
2129 echo
2130 cat confdefs.h
2131 echo
2133 test "$ac_signal" != 0 &&
2134 $as_echo "$as_me: caught signal $ac_signal"
2135 $as_echo "$as_me: exit $exit_status"
2136 } >&5
2137 rm -f core *.core core.conftest.* &&
2138 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2139 exit $exit_status
2141 for ac_signal in 1 2 13 15; do
2142 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2143 done
2144 ac_signal=0
2146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2147 rm -f -r conftest* confdefs.h
2149 $as_echo "/* confdefs.h */" > confdefs.h
2151 # Predefined preprocessor variables.
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_NAME "$PACKAGE_NAME"
2155 _ACEOF
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2159 _ACEOF
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2163 _ACEOF
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_STRING "$PACKAGE_STRING"
2167 _ACEOF
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2171 _ACEOF
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_URL "$PACKAGE_URL"
2175 _ACEOF
2178 # Let the site file select an alternate cache file if it wants to.
2179 # Prefer an explicitly selected file to automatically selected ones.
2180 ac_site_file1=NONE
2181 ac_site_file2=NONE
2182 if test -n "$CONFIG_SITE"; then
2183 # We do not want a PATH search for config.site.
2184 case $CONFIG_SITE in #((
2185 -*) ac_site_file1=./$CONFIG_SITE;;
2186 */*) ac_site_file1=$CONFIG_SITE;;
2187 *) ac_site_file1=./$CONFIG_SITE;;
2188 esac
2189 elif test "x$prefix" != xNONE; then
2190 ac_site_file1=$prefix/share/config.site
2191 ac_site_file2=$prefix/etc/config.site
2192 else
2193 ac_site_file1=$ac_default_prefix/share/config.site
2194 ac_site_file2=$ac_default_prefix/etc/config.site
2196 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2198 test "x$ac_site_file" = xNONE && continue
2199 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2201 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2202 sed 's/^/| /' "$ac_site_file" >&5
2203 . "$ac_site_file" \
2204 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206 as_fn_error $? "failed to load site script $ac_site_file
2207 See \`config.log' for more details" "$LINENO" 5; }
2209 done
2211 if test -r "$cache_file"; then
2212 # Some versions of bash will fail to source /dev/null (special files
2213 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2214 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2216 $as_echo "$as_me: loading cache $cache_file" >&6;}
2217 case $cache_file in
2218 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2219 *) . "./$cache_file";;
2220 esac
2222 else
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2224 $as_echo "$as_me: creating cache $cache_file" >&6;}
2225 >$cache_file
2228 # Check that the precious variables saved in the cache have kept the same
2229 # value.
2230 ac_cache_corrupted=false
2231 for ac_var in $ac_precious_vars; do
2232 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2233 eval ac_new_set=\$ac_env_${ac_var}_set
2234 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2235 eval ac_new_val=\$ac_env_${ac_var}_value
2236 case $ac_old_set,$ac_new_set in
2237 set,)
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2239 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2240 ac_cache_corrupted=: ;;
2241 ,set)
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2243 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2244 ac_cache_corrupted=: ;;
2245 ,);;
2247 if test "x$ac_old_val" != "x$ac_new_val"; then
2248 # differences in whitespace do not lead to failure.
2249 ac_old_val_w=`echo x $ac_old_val`
2250 ac_new_val_w=`echo x $ac_new_val`
2251 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2253 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2254 ac_cache_corrupted=:
2255 else
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2257 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2258 eval $ac_var=\$ac_old_val
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2261 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2263 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2264 fi;;
2265 esac
2266 # Pass precious variables to config.status.
2267 if test "$ac_new_set" = set; then
2268 case $ac_new_val in
2269 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2270 *) ac_arg=$ac_var=$ac_new_val ;;
2271 esac
2272 case " $ac_configure_args " in
2273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2274 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2275 esac
2277 done
2278 if $ac_cache_corrupted; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2282 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2283 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2285 ## -------------------- ##
2286 ## Main body of script. ##
2287 ## -------------------- ##
2289 ac_ext=c
2290 ac_cpp='$CPP $CPPFLAGS'
2291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298 ac_config_headers="$ac_config_headers config.h"
2300 ac_aux_dir=
2301 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2302 if test -f "$ac_dir/install-sh"; then
2303 ac_aux_dir=$ac_dir
2304 ac_install_sh="$ac_aux_dir/install-sh -c"
2305 break
2306 elif test -f "$ac_dir/install.sh"; then
2307 ac_aux_dir=$ac_dir
2308 ac_install_sh="$ac_aux_dir/install.sh -c"
2309 break
2310 elif test -f "$ac_dir/shtool"; then
2311 ac_aux_dir=$ac_dir
2312 ac_install_sh="$ac_aux_dir/shtool install -c"
2313 break
2315 done
2316 if test -z "$ac_aux_dir"; then
2317 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2320 # These three variables are undocumented and unsupported,
2321 # and are intended to be withdrawn in a future Autoconf release.
2322 # They can cause serious problems if a builder's source tree is in a directory
2323 # whose full name contains unusual characters.
2324 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2325 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2326 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2331 subdirs="$subdirs src/libevent"
2333 # Make sure we can run config.sub.
2334 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2335 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2338 $as_echo_n "checking build system type... " >&6; }
2339 if ${ac_cv_build+:} false; then :
2340 $as_echo_n "(cached) " >&6
2341 else
2342 ac_build_alias=$build_alias
2343 test "x$ac_build_alias" = x &&
2344 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2345 test "x$ac_build_alias" = x &&
2346 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2347 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2348 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2352 $as_echo "$ac_cv_build" >&6; }
2353 case $ac_cv_build in
2354 *-*-*) ;;
2355 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2356 esac
2357 build=$ac_cv_build
2358 ac_save_IFS=$IFS; IFS='-'
2359 set x $ac_cv_build
2360 shift
2361 build_cpu=$1
2362 build_vendor=$2
2363 shift; shift
2364 # Remember, the first character of IFS is used to create $*,
2365 # except with old shells:
2366 build_os=$*
2367 IFS=$ac_save_IFS
2368 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2372 $as_echo_n "checking host system type... " >&6; }
2373 if ${ac_cv_host+:} false; then :
2374 $as_echo_n "(cached) " >&6
2375 else
2376 if test "x$host_alias" = x; then
2377 ac_cv_host=$ac_cv_build
2378 else
2379 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2380 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2385 $as_echo "$ac_cv_host" >&6; }
2386 case $ac_cv_host in
2387 *-*-*) ;;
2388 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2389 esac
2390 host=$ac_cv_host
2391 ac_save_IFS=$IFS; IFS='-'
2392 set x $ac_cv_host
2393 shift
2394 host_cpu=$1
2395 host_vendor=$2
2396 shift; shift
2397 # Remember, the first character of IFS is used to create $*,
2398 # except with old shells:
2399 host_os=$*
2400 IFS=$ac_save_IFS
2401 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2404 am__api_version='1.12'
2406 # Find a good install program. We prefer a C program (faster),
2407 # so one script is as good as another. But avoid the broken or
2408 # incompatible versions:
2409 # SysV /etc/install, /usr/sbin/install
2410 # SunOS /usr/etc/install
2411 # IRIX /sbin/install
2412 # AIX /bin/install
2413 # AmigaOS /C/install, which installs bootblocks on floppy discs
2414 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2415 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2416 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2417 # OS/2's system install, which has a completely different semantic
2418 # ./install, which can be erroneously created by make from ./install.sh.
2419 # Reject install programs that cannot install multiple files.
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2421 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2422 if test -z "$INSTALL"; then
2423 if ${ac_cv_path_install+:} false; then :
2424 $as_echo_n "(cached) " >&6
2425 else
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 for as_dir in $PATH
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 # Account for people who put trailing slashes in PATH elements.
2432 case $as_dir/ in #((
2433 ./ | .// | /[cC]/* | \
2434 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2435 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2436 /usr/ucb/* ) ;;
2438 # OSF1 and SCO ODT 3.0 have their own names for install.
2439 # Don't use installbsd from OSF since it installs stuff as root
2440 # by default.
2441 for ac_prog in ginstall scoinst install; do
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2444 if test $ac_prog = install &&
2445 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2446 # AIX install. It has an incompatible calling convention.
2448 elif test $ac_prog = install &&
2449 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2450 # program-specific install script used by HP pwplus--don't use.
2452 else
2453 rm -rf conftest.one conftest.two conftest.dir
2454 echo one > conftest.one
2455 echo two > conftest.two
2456 mkdir conftest.dir
2457 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2458 test -s conftest.one && test -s conftest.two &&
2459 test -s conftest.dir/conftest.one &&
2460 test -s conftest.dir/conftest.two
2461 then
2462 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2463 break 3
2467 done
2468 done
2470 esac
2472 done
2473 IFS=$as_save_IFS
2475 rm -rf conftest.one conftest.two conftest.dir
2478 if test "${ac_cv_path_install+set}" = set; then
2479 INSTALL=$ac_cv_path_install
2480 else
2481 # As a last resort, use the slow shell script. Don't cache a
2482 # value for INSTALL within a source directory, because that will
2483 # break other packages using the cache if that directory is
2484 # removed, or if the value is a relative name.
2485 INSTALL=$ac_install_sh
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2489 $as_echo "$INSTALL" >&6; }
2491 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2492 # It thinks the first close brace ends the variable substitution.
2493 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2495 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2497 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2500 $as_echo_n "checking whether build environment is sane... " >&6; }
2501 # Reject unsafe characters in $srcdir or the absolute working directory
2502 # name. Accept space and tab only in the latter.
2503 am_lf='
2505 case `pwd` in
2506 *[\\\"\#\$\&\'\`$am_lf]*)
2507 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2508 esac
2509 case $srcdir in
2510 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2511 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2512 esac
2514 # Do 'set' in a subshell so we don't clobber the current shell's
2515 # arguments. Must try -L first in case configure is actually a
2516 # symlink; some systems play weird games with the mod time of symlinks
2517 # (eg FreeBSD returns the mod time of the symlink's containing
2518 # directory).
2519 if (
2520 am_has_slept=no
2521 for am_try in 1 2; do
2522 echo "timestamp, slept: $am_has_slept" > conftest.file
2523 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2524 if test "$*" = "X"; then
2525 # -L didn't work.
2526 set X `ls -t "$srcdir/configure" conftest.file`
2528 if test "$*" != "X $srcdir/configure conftest.file" \
2529 && test "$*" != "X conftest.file $srcdir/configure"; then
2531 # If neither matched, then we have a broken ls. This can happen
2532 # if, for instance, CONFIG_SHELL is bash and it inherits a
2533 # broken ls alias from the environment. This has actually
2534 # happened. Such a system could not be considered "sane".
2535 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2536 alias in your environment" "$LINENO" 5
2538 if test "$2" = conftest.file || test $am_try -eq 2; then
2539 break
2541 # Just in case.
2542 sleep 1
2543 am_has_slept=yes
2544 done
2545 test "$2" = conftest.file
2547 then
2548 # Ok.
2550 else
2551 as_fn_error $? "newly created file is older than distributed files!
2552 Check your system clock" "$LINENO" 5
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2555 $as_echo "yes" >&6; }
2556 # If we didn't sleep, we still need to ensure time stamps of config.status and
2557 # generated files are strictly newer.
2558 am_sleep_pid=
2559 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2560 ( sleep 1 ) &
2561 am_sleep_pid=$!
2564 rm -f conftest.file
2566 test "$program_prefix" != NONE &&
2567 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2568 # Use a double $ so make ignores it.
2569 test "$program_suffix" != NONE &&
2570 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2571 # Double any \ or $.
2572 # By default was `s,x,x', remove it if useless.
2573 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2574 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2576 # expand $ac_aux_dir to an absolute path
2577 am_aux_dir=`cd $ac_aux_dir && pwd`
2579 if test x"${MISSING+set}" != xset; then
2580 case $am_aux_dir in
2581 *\ * | *\ *)
2582 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2584 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2585 esac
2587 # Use eval to expand $SHELL
2588 if eval "$MISSING --run true"; then
2589 am_missing_run="$MISSING --run "
2590 else
2591 am_missing_run=
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2593 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2596 if test x"${install_sh}" != xset; then
2597 case $am_aux_dir in
2598 *\ * | *\ *)
2599 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2601 install_sh="\${SHELL} $am_aux_dir/install-sh"
2602 esac
2605 # Installed binaries are usually stripped using 'strip' when the user
2606 # run "make install-strip". However 'strip' might not be the right
2607 # tool to use in cross-compilation environments, therefore Automake
2608 # will honor the 'STRIP' environment variable to overrule this program.
2609 if test "$cross_compiling" != no; then
2610 if test -n "$ac_tool_prefix"; then
2611 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2612 set dummy ${ac_tool_prefix}strip; ac_word=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if ${ac_cv_prog_STRIP+:} false; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 if test -n "$STRIP"; then
2619 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 break 2
2632 done
2633 done
2634 IFS=$as_save_IFS
2638 STRIP=$ac_cv_prog_STRIP
2639 if test -n "$STRIP"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2641 $as_echo "$STRIP" >&6; }
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2649 if test -z "$ac_cv_prog_STRIP"; then
2650 ac_ct_STRIP=$STRIP
2651 # Extract the first word of "strip", so it can be a program name with args.
2652 set dummy strip; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 if test -n "$ac_ct_STRIP"; then
2659 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_ac_ct_STRIP="strip"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2672 done
2673 done
2674 IFS=$as_save_IFS
2678 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2679 if test -n "$ac_ct_STRIP"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2681 $as_echo "$ac_ct_STRIP" >&6; }
2682 else
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2687 if test "x$ac_ct_STRIP" = x; then
2688 STRIP=":"
2689 else
2690 case $cross_compiling:$ac_tool_warned in
2691 yes:)
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2694 ac_tool_warned=yes ;;
2695 esac
2696 STRIP=$ac_ct_STRIP
2698 else
2699 STRIP="$ac_cv_prog_STRIP"
2703 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2706 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2707 if test -z "$MKDIR_P"; then
2708 if ${ac_cv_path_mkdir+:} false; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_prog in mkdir gmkdir; do
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2719 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2720 'mkdir (GNU coreutils) '* | \
2721 'mkdir (coreutils) '* | \
2722 'mkdir (fileutils) '4.1*)
2723 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2724 break 3;;
2725 esac
2726 done
2727 done
2728 done
2729 IFS=$as_save_IFS
2733 test -d ./--version && rmdir ./--version
2734 if test "${ac_cv_path_mkdir+set}" = set; then
2735 MKDIR_P="$ac_cv_path_mkdir -p"
2736 else
2737 # As a last resort, use the slow shell script. Don't cache a
2738 # value for MKDIR_P within a source directory, because that will
2739 # break other packages using the cache if that directory is
2740 # removed, or if the value is a relative name.
2741 MKDIR_P="$ac_install_sh -d"
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2745 $as_echo "$MKDIR_P" >&6; }
2747 mkdir_p="$MKDIR_P"
2748 case $mkdir_p in
2749 [\\/$]* | ?:[\\/]*) ;;
2750 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2751 esac
2753 for ac_prog in gawk mawk nawk awk
2755 # Extract the first word of "$ac_prog", so it can be a program name with args.
2756 set dummy $ac_prog; ac_word=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if ${ac_cv_prog_AWK+:} false; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 if test -n "$AWK"; then
2763 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2764 else
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772 ac_cv_prog_AWK="$ac_prog"
2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 break 2
2776 done
2777 done
2778 IFS=$as_save_IFS
2782 AWK=$ac_cv_prog_AWK
2783 if test -n "$AWK"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2785 $as_echo "$AWK" >&6; }
2786 else
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2792 test -n "$AWK" && break
2793 done
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2796 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2797 set x ${MAKE-make}
2798 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2799 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2800 $as_echo_n "(cached) " >&6
2801 else
2802 cat >conftest.make <<\_ACEOF
2803 SHELL = /bin/sh
2804 all:
2805 @echo '@@@%%%=$(MAKE)=@@@%%%'
2806 _ACEOF
2807 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2808 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2809 *@@@%%%=?*=@@@%%%*)
2810 eval ac_cv_prog_make_${ac_make}_set=yes;;
2812 eval ac_cv_prog_make_${ac_make}_set=no;;
2813 esac
2814 rm -f conftest.make
2816 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2818 $as_echo "yes" >&6; }
2819 SET_MAKE=
2820 else
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2823 SET_MAKE="MAKE=${MAKE-make}"
2826 rm -rf .tst 2>/dev/null
2827 mkdir .tst 2>/dev/null
2828 if test -d .tst; then
2829 am__leading_dot=.
2830 else
2831 am__leading_dot=_
2833 rmdir .tst 2>/dev/null
2835 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2836 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2837 # is not polluted with repeated "-I."
2838 am__isrc=' -I$(srcdir)'
2839 # test to see if srcdir already configured
2840 if test -f $srcdir/config.status; then
2841 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2845 # test whether we have cygpath
2846 if test -z "$CYGPATH_W"; then
2847 if (cygpath --version) >/dev/null 2>/dev/null; then
2848 CYGPATH_W='cygpath -w'
2849 else
2850 CYGPATH_W=echo
2855 # Define the identity of the package.
2856 PACKAGE='dnscrypt-proxy'
2857 VERSION='1.0'
2860 cat >>confdefs.h <<_ACEOF
2861 #define PACKAGE "$PACKAGE"
2862 _ACEOF
2865 cat >>confdefs.h <<_ACEOF
2866 #define VERSION "$VERSION"
2867 _ACEOF
2869 # Some tools Automake needs.
2871 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2874 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2877 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2880 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2883 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2885 # We need awk for the "check" target. The system "awk" is bad on
2886 # some platforms.
2887 # Always define AMTAR for backward compatibility. Yes, it's still used
2888 # in the wild :-( We should find a proper way to deprecate it ...
2889 AMTAR='$${TAR-tar}'
2891 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2899 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2900 # Check whether --enable-maintainer-mode was given.
2901 if test "${enable_maintainer_mode+set}" = set; then :
2902 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2903 else
2904 USE_MAINTAINER_MODE=no
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2908 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2909 if test $USE_MAINTAINER_MODE = yes; then
2910 MAINTAINER_MODE_TRUE=
2911 MAINTAINER_MODE_FALSE='#'
2912 else
2913 MAINTAINER_MODE_TRUE='#'
2914 MAINTAINER_MODE_FALSE=
2917 MAINT=$MAINTAINER_MODE_TRUE
2920 # Check whether --enable-dependency-tracking was given.
2921 if test "${enable_dependency_tracking+set}" = set; then :
2922 enableval=$enable_dependency_tracking;
2925 if test "x$enable_dependency_tracking" != xno; then
2926 am_depcomp="$ac_aux_dir/depcomp"
2927 AMDEPBACKSLASH='\'
2928 am__nodep='_no'
2930 if test "x$enable_dependency_tracking" != xno; then
2931 AMDEP_TRUE=
2932 AMDEP_FALSE='#'
2933 else
2934 AMDEP_TRUE='#'
2935 AMDEP_FALSE=
2941 ISODATE=`date +%Y-%m-%d`
2944 LX_CFLAGS=${CFLAGS-NONE}
2945 DEPDIR="${am__leading_dot}deps"
2947 ac_config_commands="$ac_config_commands depfiles"
2950 am_make=${MAKE-make}
2951 cat > confinc << 'END'
2952 am__doit:
2953 @echo this is the am__doit target
2954 .PHONY: am__doit
2956 # If we don't find an include directive, just comment out the code.
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2958 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2959 am__include="#"
2960 am__quote=
2961 _am_result=none
2962 # First try GNU make style include.
2963 echo "include confinc" > confmf
2964 # Ignore all kinds of additional output from 'make'.
2965 case `$am_make -s -f confmf 2> /dev/null` in #(
2966 *the\ am__doit\ target*)
2967 am__include=include
2968 am__quote=
2969 _am_result=GNU
2971 esac
2972 # Now try BSD make style include.
2973 if test "$am__include" = "#"; then
2974 echo '.include "confinc"' > confmf
2975 case `$am_make -s -f confmf 2> /dev/null` in #(
2976 *the\ am__doit\ target*)
2977 am__include=.include
2978 am__quote="\""
2979 _am_result=BSD
2981 esac
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2986 $as_echo "$_am_result" >&6; }
2987 rm -f confinc confmf
2989 ac_ext=c
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994 if test -n "$ac_tool_prefix"; then
2995 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2996 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_CC+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if test -n "$CC"; then
3003 ac_cv_prog_CC="$CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3016 done
3017 done
3018 IFS=$as_save_IFS
3022 CC=$ac_cv_prog_CC
3023 if test -n "$CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025 $as_echo "$CC" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3033 if test -z "$ac_cv_prog_CC"; then
3034 ac_ct_CC=$CC
3035 # Extract the first word of "gcc", so it can be a program name with args.
3036 set dummy gcc; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3040 $as_echo_n "(cached) " >&6
3041 else
3042 if test -n "$ac_ct_CC"; then
3043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052 ac_cv_prog_ac_ct_CC="gcc"
3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 break 2
3056 done
3057 done
3058 IFS=$as_save_IFS
3062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3063 if test -n "$ac_ct_CC"; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3065 $as_echo "$ac_ct_CC" >&6; }
3066 else
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3071 if test "x$ac_ct_CC" = x; then
3072 CC=""
3073 else
3074 case $cross_compiling:$ac_tool_warned in
3075 yes:)
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3078 ac_tool_warned=yes ;;
3079 esac
3080 CC=$ac_ct_CC
3082 else
3083 CC="$ac_cv_prog_CC"
3086 if test -z "$CC"; then
3087 if test -n "$ac_tool_prefix"; then
3088 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3089 set dummy ${ac_tool_prefix}cc; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_CC+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test -n "$CC"; then
3096 ac_cv_prog_CC="$CC" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105 ac_cv_prog_CC="${ac_tool_prefix}cc"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3109 done
3110 done
3111 IFS=$as_save_IFS
3115 CC=$ac_cv_prog_CC
3116 if test -n "$CC"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3118 $as_echo "$CC" >&6; }
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3127 if test -z "$CC"; then
3128 # Extract the first word of "cc", so it can be a program name with args.
3129 set dummy cc; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_CC+:} false; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 if test -n "$CC"; then
3136 ac_cv_prog_CC="$CC" # Let the user override the test.
3137 else
3138 ac_prog_rejected=no
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3142 IFS=$as_save_IFS
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3147 ac_prog_rejected=yes
3148 continue
3150 ac_cv_prog_CC="cc"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 break 2
3154 done
3155 done
3156 IFS=$as_save_IFS
3158 if test $ac_prog_rejected = yes; then
3159 # We found a bogon in the path, so make sure we never use it.
3160 set dummy $ac_cv_prog_CC
3161 shift
3162 if test $# != 0; then
3163 # We chose a different compiler from the bogus one.
3164 # However, it has the same basename, so the bogon will be chosen
3165 # first if we set CC to just the basename; use the full file name.
3166 shift
3167 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3172 CC=$ac_cv_prog_CC
3173 if test -n "$CC"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3175 $as_echo "$CC" >&6; }
3176 else
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3183 if test -z "$CC"; then
3184 if test -n "$ac_tool_prefix"; then
3185 for ac_prog in cl.exe
3187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3188 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if ${ac_cv_prog_CC+:} false; then :
3192 $as_echo_n "(cached) " >&6
3193 else
3194 if test -n "$CC"; then
3195 ac_cv_prog_CC="$CC" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3208 done
3209 done
3210 IFS=$as_save_IFS
3214 CC=$ac_cv_prog_CC
3215 if test -n "$CC"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3217 $as_echo "$CC" >&6; }
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3224 test -n "$CC" && break
3225 done
3227 if test -z "$CC"; then
3228 ac_ct_CC=$CC
3229 for ac_prog in cl.exe
3231 # Extract the first word of "$ac_prog", so it can be a program name with args.
3232 set dummy $ac_prog; ac_word=$2
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3236 $as_echo_n "(cached) " >&6
3237 else
3238 if test -n "$ac_ct_CC"; then
3239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3240 else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248 ac_cv_prog_ac_ct_CC="$ac_prog"
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 break 2
3252 done
3253 done
3254 IFS=$as_save_IFS
3258 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3259 if test -n "$ac_ct_CC"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3261 $as_echo "$ac_ct_CC" >&6; }
3262 else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3268 test -n "$ac_ct_CC" && break
3269 done
3271 if test "x$ac_ct_CC" = x; then
3272 CC=""
3273 else
3274 case $cross_compiling:$ac_tool_warned in
3275 yes:)
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3278 ac_tool_warned=yes ;;
3279 esac
3280 CC=$ac_ct_CC
3287 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 as_fn_error $? "no acceptable C compiler found in \$PATH
3290 See \`config.log' for more details" "$LINENO" 5; }
3292 # Provide some information about the compiler.
3293 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3294 set X $ac_compile
3295 ac_compiler=$2
3296 for ac_option in --version -v -V -qversion; do
3297 { { ac_try="$ac_compiler $ac_option >&5"
3298 case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301 esac
3302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303 $as_echo "$ac_try_echo"; } >&5
3304 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3305 ac_status=$?
3306 if test -s conftest.err; then
3307 sed '10a\
3308 ... rest of stderr output deleted ...
3309 10q' conftest.err >conftest.er1
3310 cat conftest.er1 >&5
3312 rm -f conftest.er1 conftest.err
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }
3315 done
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h. */
3321 main ()
3325 return 0;
3327 _ACEOF
3328 ac_clean_files_save=$ac_clean_files
3329 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3330 # Try to create an executable without -o first, disregard a.out.
3331 # It will help us diagnose broken compilers, and finding out an intuition
3332 # of exeext.
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3334 $as_echo_n "checking whether the C compiler works... " >&6; }
3335 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3337 # The possible output files:
3338 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3340 ac_rmfiles=
3341 for ac_file in $ac_files
3343 case $ac_file in
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3345 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3346 esac
3347 done
3348 rm -f $ac_rmfiles
3350 if { { ac_try="$ac_link_default"
3351 case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_link_default") 2>&5
3358 ac_status=$?
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }; then :
3361 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3362 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3363 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3364 # so that the user can short-circuit this test for compilers unknown to
3365 # Autoconf.
3366 for ac_file in $ac_files ''
3368 test -f "$ac_file" || continue
3369 case $ac_file in
3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3372 [ab].out )
3373 # We found the default executable, but exeext='' is most
3374 # certainly right.
3375 break;;
3376 *.* )
3377 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3378 then :; else
3379 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3381 # We set ac_cv_exeext here because the later test for it is not
3382 # safe: cross compilers may not add the suffix if given an `-o'
3383 # argument, so we may need to know it at that point already.
3384 # Even if this section looks crufty: it has the advantage of
3385 # actually working.
3386 break;;
3388 break;;
3389 esac
3390 done
3391 test "$ac_cv_exeext" = no && ac_cv_exeext=
3393 else
3394 ac_file=''
3396 if test -z "$ac_file"; then :
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3399 $as_echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 as_fn_error 77 "C compiler cannot create executables
3405 See \`config.log' for more details" "$LINENO" 5; }
3406 else
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3408 $as_echo "yes" >&6; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3411 $as_echo_n "checking for C compiler default output file name... " >&6; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3413 $as_echo "$ac_file" >&6; }
3414 ac_exeext=$ac_cv_exeext
3416 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3417 ac_clean_files=$ac_clean_files_save
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3419 $as_echo_n "checking for suffix of executables... " >&6; }
3420 if { { ac_try="$ac_link"
3421 case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424 esac
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_link") 2>&5
3428 ac_status=$?
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }; then :
3431 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3432 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3433 # work properly (i.e., refer to `conftest.exe'), while it won't with
3434 # `rm'.
3435 for ac_file in conftest.exe conftest conftest.*; do
3436 test -f "$ac_file" || continue
3437 case $ac_file in
3438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3439 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3440 break;;
3441 * ) break;;
3442 esac
3443 done
3444 else
3445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3448 See \`config.log' for more details" "$LINENO" 5; }
3450 rm -f conftest conftest$ac_cv_exeext
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3452 $as_echo "$ac_cv_exeext" >&6; }
3454 rm -f conftest.$ac_ext
3455 EXEEXT=$ac_cv_exeext
3456 ac_exeext=$EXEEXT
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3459 #include <stdio.h>
3461 main ()
3463 FILE *f = fopen ("conftest.out", "w");
3464 return ferror (f) || fclose (f) != 0;
3467 return 0;
3469 _ACEOF
3470 ac_clean_files="$ac_clean_files conftest.out"
3471 # Check that the compiler produces executables we can run. If not, either
3472 # the compiler is broken, or we cross compile.
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3474 $as_echo_n "checking whether we are cross compiling... " >&6; }
3475 if test "$cross_compiling" != yes; then
3476 { { ac_try="$ac_link"
3477 case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482 $as_echo "$ac_try_echo"; } >&5
3483 (eval "$ac_link") 2>&5
3484 ac_status=$?
3485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486 test $ac_status = 0; }
3487 if { ac_try='./conftest$ac_cv_exeext'
3488 { { case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491 esac
3492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493 $as_echo "$ac_try_echo"; } >&5
3494 (eval "$ac_try") 2>&5
3495 ac_status=$?
3496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497 test $ac_status = 0; }; }; then
3498 cross_compiling=no
3499 else
3500 if test "$cross_compiling" = maybe; then
3501 cross_compiling=yes
3502 else
3503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505 as_fn_error $? "cannot run C compiled programs.
3506 If you meant to cross compile, use \`--host'.
3507 See \`config.log' for more details" "$LINENO" 5; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3512 $as_echo "$cross_compiling" >&6; }
3514 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3515 ac_clean_files=$ac_clean_files_save
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3517 $as_echo_n "checking for suffix of object files... " >&6; }
3518 if ${ac_cv_objext+:} false; then :
3519 $as_echo_n "(cached) " >&6
3520 else
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3525 main ()
3529 return 0;
3531 _ACEOF
3532 rm -f conftest.o conftest.obj
3533 if { { ac_try="$ac_compile"
3534 case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537 esac
3538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539 $as_echo "$ac_try_echo"; } >&5
3540 (eval "$ac_compile") 2>&5
3541 ac_status=$?
3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543 test $ac_status = 0; }; then :
3544 for ac_file in conftest.o conftest.obj conftest.*; do
3545 test -f "$ac_file" || continue;
3546 case $ac_file in
3547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3548 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3549 break;;
3550 esac
3551 done
3552 else
3553 $as_echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error $? "cannot compute suffix of object files: cannot compile
3559 See \`config.log' for more details" "$LINENO" 5; }
3561 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3564 $as_echo "$ac_cv_objext" >&6; }
3565 OBJEXT=$ac_cv_objext
3566 ac_objext=$OBJEXT
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3568 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3569 if ${ac_cv_c_compiler_gnu+:} false; then :
3570 $as_echo_n "(cached) " >&6
3571 else
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3576 main ()
3578 #ifndef __GNUC__
3579 choke me
3580 #endif
3583 return 0;
3585 _ACEOF
3586 if ac_fn_c_try_compile "$LINENO"; then :
3587 ac_compiler_gnu=yes
3588 else
3589 ac_compiler_gnu=no
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3596 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3597 if test $ac_compiler_gnu = yes; then
3598 GCC=yes
3599 else
3600 GCC=
3602 ac_test_CFLAGS=${CFLAGS+set}
3603 ac_save_CFLAGS=$CFLAGS
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3605 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3606 if ${ac_cv_prog_cc_g+:} false; then :
3607 $as_echo_n "(cached) " >&6
3608 else
3609 ac_save_c_werror_flag=$ac_c_werror_flag
3610 ac_c_werror_flag=yes
3611 ac_cv_prog_cc_g=no
3612 CFLAGS="-g"
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3617 main ()
3621 return 0;
3623 _ACEOF
3624 if ac_fn_c_try_compile "$LINENO"; then :
3625 ac_cv_prog_cc_g=yes
3626 else
3627 CFLAGS=""
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3632 main ()
3636 return 0;
3638 _ACEOF
3639 if ac_fn_c_try_compile "$LINENO"; then :
3641 else
3642 ac_c_werror_flag=$ac_save_c_werror_flag
3643 CFLAGS="-g"
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3648 main ()
3652 return 0;
3654 _ACEOF
3655 if ac_fn_c_try_compile "$LINENO"; then :
3656 ac_cv_prog_cc_g=yes
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663 ac_c_werror_flag=$ac_save_c_werror_flag
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3666 $as_echo "$ac_cv_prog_cc_g" >&6; }
3667 if test "$ac_test_CFLAGS" = set; then
3668 CFLAGS=$ac_save_CFLAGS
3669 elif test $ac_cv_prog_cc_g = yes; then
3670 if test "$GCC" = yes; then
3671 CFLAGS="-g -O2"
3672 else
3673 CFLAGS="-g"
3675 else
3676 if test "$GCC" = yes; then
3677 CFLAGS="-O2"
3678 else
3679 CFLAGS=
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3683 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3684 if ${ac_cv_prog_cc_c89+:} false; then :
3685 $as_echo_n "(cached) " >&6
3686 else
3687 ac_cv_prog_cc_c89=no
3688 ac_save_CC=$CC
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3691 #include <stdarg.h>
3692 #include <stdio.h>
3693 struct stat;
3694 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3695 struct buf { int x; };
3696 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3697 static char *e (p, i)
3698 char **p;
3699 int i;
3701 return p[i];
3703 static char *f (char * (*g) (char **, int), char **p, ...)
3705 char *s;
3706 va_list v;
3707 va_start (v,p);
3708 s = g (p, va_arg (v,int));
3709 va_end (v);
3710 return s;
3713 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3714 function prototypes and stuff, but not '\xHH' hex character constants.
3715 These don't provoke an error unfortunately, instead are silently treated
3716 as 'x'. The following induces an error, until -std is added to get
3717 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3718 array size at least. It's necessary to write '\x00'==0 to get something
3719 that's true only with -std. */
3720 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3722 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3723 inside strings and character constants. */
3724 #define FOO(x) 'x'
3725 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3727 int test (int i, double x);
3728 struct s1 {int (*f) (int a);};
3729 struct s2 {int (*f) (double a);};
3730 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3731 int argc;
3732 char **argv;
3734 main ()
3736 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3738 return 0;
3740 _ACEOF
3741 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3742 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3744 CC="$ac_save_CC $ac_arg"
3745 if ac_fn_c_try_compile "$LINENO"; then :
3746 ac_cv_prog_cc_c89=$ac_arg
3748 rm -f core conftest.err conftest.$ac_objext
3749 test "x$ac_cv_prog_cc_c89" != "xno" && break
3750 done
3751 rm -f conftest.$ac_ext
3752 CC=$ac_save_CC
3755 # AC_CACHE_VAL
3756 case "x$ac_cv_prog_cc_c89" in
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3759 $as_echo "none needed" >&6; } ;;
3760 xno)
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3762 $as_echo "unsupported" >&6; } ;;
3764 CC="$CC $ac_cv_prog_cc_c89"
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3766 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3767 esac
3768 if test "x$ac_cv_prog_cc_c89" != xno; then :
3772 ac_ext=c
3773 ac_cpp='$CPP $CPPFLAGS'
3774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778 depcc="$CC" am_compiler_list=
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3781 $as_echo_n "checking dependency style of $depcc... " >&6; }
3782 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3783 $as_echo_n "(cached) " >&6
3784 else
3785 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3786 # We make a subdir and do the tests there. Otherwise we can end up
3787 # making bogus files that we don't know about and never remove. For
3788 # instance it was reported that on HP-UX the gcc test will end up
3789 # making a dummy file named 'D' -- because '-MD' means "put the output
3790 # in D".
3791 rm -rf conftest.dir
3792 mkdir conftest.dir
3793 # Copy depcomp to subdir because otherwise we won't find it if we're
3794 # using a relative directory.
3795 cp "$am_depcomp" conftest.dir
3796 cd conftest.dir
3797 # We will build objects and dependencies in a subdirectory because
3798 # it helps to detect inapplicable dependency modes. For instance
3799 # both Tru64's cc and ICC support -MD to output dependencies as a
3800 # side effect of compilation, but ICC will put the dependencies in
3801 # the current directory while Tru64 will put them in the object
3802 # directory.
3803 mkdir sub
3805 am_cv_CC_dependencies_compiler_type=none
3806 if test "$am_compiler_list" = ""; then
3807 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3809 am__universal=false
3810 case " $depcc " in #(
3811 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3812 esac
3814 for depmode in $am_compiler_list; do
3815 # Setup a source with many dependencies, because some compilers
3816 # like to wrap large dependency lists on column 80 (with \), and
3817 # we should not choose a depcomp mode which is confused by this.
3819 # We need to recreate these files for each test, as the compiler may
3820 # overwrite some of them when testing with obscure command lines.
3821 # This happens at least with the AIX C compiler.
3822 : > sub/conftest.c
3823 for i in 1 2 3 4 5 6; do
3824 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3825 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3826 # Solaris 10 /bin/sh.
3827 echo '/* dummy */' > sub/conftst$i.h
3828 done
3829 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3831 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3832 # mode. It turns out that the SunPro C++ compiler does not properly
3833 # handle '-M -o', and we need to detect this. Also, some Intel
3834 # versions had trouble with output in subdirs.
3835 am__obj=sub/conftest.${OBJEXT-o}
3836 am__minus_obj="-o $am__obj"
3837 case $depmode in
3838 gcc)
3839 # This depmode causes a compiler race in universal mode.
3840 test "$am__universal" = false || continue
3842 nosideeffect)
3843 # After this tag, mechanisms are not by side-effect, so they'll
3844 # only be used when explicitly requested.
3845 if test "x$enable_dependency_tracking" = xyes; then
3846 continue
3847 else
3848 break
3851 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3852 # This compiler won't grok '-c -o', but also, the minuso test has
3853 # not run yet. These depmodes are late enough in the game, and
3854 # so weak that their functioning should not be impacted.
3855 am__obj=conftest.${OBJEXT-o}
3856 am__minus_obj=
3858 none) break ;;
3859 esac
3860 if depmode=$depmode \
3861 source=sub/conftest.c object=$am__obj \
3862 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3863 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3864 >/dev/null 2>conftest.err &&
3865 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3866 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3867 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3868 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3869 # icc doesn't choke on unknown options, it will just issue warnings
3870 # or remarks (even with -Werror). So we grep stderr for any message
3871 # that says an option was ignored or not supported.
3872 # When given -MP, icc 7.0 and 7.1 complain thusly:
3873 # icc: Command line warning: ignoring option '-M'; no argument required
3874 # The diagnosis changed in icc 8.0:
3875 # icc: Command line remark: option '-MP' not supported
3876 if (grep 'ignoring option' conftest.err ||
3877 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3878 am_cv_CC_dependencies_compiler_type=$depmode
3879 break
3882 done
3884 cd ..
3885 rm -rf conftest.dir
3886 else
3887 am_cv_CC_dependencies_compiler_type=none
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3892 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3893 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3896 test "x$enable_dependency_tracking" != xno \
3897 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3898 am__fastdepCC_TRUE=
3899 am__fastdepCC_FALSE='#'
3900 else
3901 am__fastdepCC_TRUE='#'
3902 am__fastdepCC_FALSE=
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3907 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3908 if ${ac_cv_prog_cc_c99+:} false; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 ac_cv_prog_cc_c99=no
3912 ac_save_CC=$CC
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915 #include <stdarg.h>
3916 #include <stdbool.h>
3917 #include <stdlib.h>
3918 #include <wchar.h>
3919 #include <stdio.h>
3921 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3922 #define debug(...) fprintf (stderr, __VA_ARGS__)
3923 #define showlist(...) puts (#__VA_ARGS__)
3924 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3925 static void
3926 test_varargs_macros (void)
3928 int x = 1234;
3929 int y = 5678;
3930 debug ("Flag");
3931 debug ("X = %d\n", x);
3932 showlist (The first, second, and third items.);
3933 report (x>y, "x is %d but y is %d", x, y);
3936 // Check long long types.
3937 #define BIG64 18446744073709551615ull
3938 #define BIG32 4294967295ul
3939 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3940 #if !BIG_OK
3941 your preprocessor is broken;
3942 #endif
3943 #if BIG_OK
3944 #else
3945 your preprocessor is broken;
3946 #endif
3947 static long long int bignum = -9223372036854775807LL;
3948 static unsigned long long int ubignum = BIG64;
3950 struct incomplete_array
3952 int datasize;
3953 double data[];
3956 struct named_init {
3957 int number;
3958 const wchar_t *name;
3959 double average;
3962 typedef const char *ccp;
3964 static inline int
3965 test_restrict (ccp restrict text)
3967 // See if C++-style comments work.
3968 // Iterate through items via the restricted pointer.
3969 // Also check for declarations in for loops.
3970 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3971 continue;
3972 return 0;
3975 // Check varargs and va_copy.
3976 static void
3977 test_varargs (const char *format, ...)
3979 va_list args;
3980 va_start (args, format);
3981 va_list args_copy;
3982 va_copy (args_copy, args);
3984 const char *str;
3985 int number;
3986 float fnumber;
3988 while (*format)
3990 switch (*format++)
3992 case 's': // string
3993 str = va_arg (args_copy, const char *);
3994 break;
3995 case 'd': // int
3996 number = va_arg (args_copy, int);
3997 break;
3998 case 'f': // float
3999 fnumber = va_arg (args_copy, double);
4000 break;
4001 default:
4002 break;
4005 va_end (args_copy);
4006 va_end (args);
4010 main ()
4013 // Check bool.
4014 _Bool success = false;
4016 // Check restrict.
4017 if (test_restrict ("String literal") == 0)
4018 success = true;
4019 char *restrict newvar = "Another string";
4021 // Check varargs.
4022 test_varargs ("s, d' f .", "string", 65, 34.234);
4023 test_varargs_macros ();
4025 // Check flexible array members.
4026 struct incomplete_array *ia =
4027 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4028 ia->datasize = 10;
4029 for (int i = 0; i < ia->datasize; ++i)
4030 ia->data[i] = i * 1.234;
4032 // Check named initializers.
4033 struct named_init ni = {
4034 .number = 34,
4035 .name = L"Test wide string",
4036 .average = 543.34343,
4039 ni.number = 58;
4041 int dynamic_array[ni.number];
4042 dynamic_array[ni.number - 1] = 543;
4044 // work around unused variable warnings
4045 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4046 || dynamic_array[ni.number - 1] != 543);
4049 return 0;
4051 _ACEOF
4052 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4054 CC="$ac_save_CC $ac_arg"
4055 if ac_fn_c_try_compile "$LINENO"; then :
4056 ac_cv_prog_cc_c99=$ac_arg
4058 rm -f core conftest.err conftest.$ac_objext
4059 test "x$ac_cv_prog_cc_c99" != "xno" && break
4060 done
4061 rm -f conftest.$ac_ext
4062 CC=$ac_save_CC
4065 # AC_CACHE_VAL
4066 case "x$ac_cv_prog_cc_c99" in
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4069 $as_echo "none needed" >&6; } ;;
4070 xno)
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4072 $as_echo "unsupported" >&6; } ;;
4074 CC="$CC $ac_cv_prog_cc_c99"
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4076 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4077 esac
4078 if test "x$ac_cv_prog_cc_c99" != xno; then :
4084 ac_ext=c
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4090 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4091 # On Suns, sometimes $CPP names a directory.
4092 if test -n "$CPP" && test -d "$CPP"; then
4093 CPP=
4095 if test -z "$CPP"; then
4096 if ${ac_cv_prog_CPP+:} false; then :
4097 $as_echo_n "(cached) " >&6
4098 else
4099 # Double quotes because CPP needs to be expanded
4100 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4102 ac_preproc_ok=false
4103 for ac_c_preproc_warn_flag in '' yes
4105 # Use a header file that comes with gcc, so configuring glibc
4106 # with a fresh cross-compiler works.
4107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4108 # <limits.h> exists even on freestanding compilers.
4109 # On the NeXT, cc -E runs the code through the compiler's parser,
4110 # not just through cpp. "Syntax error" is here to catch this case.
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113 #ifdef __STDC__
4114 # include <limits.h>
4115 #else
4116 # include <assert.h>
4117 #endif
4118 Syntax error
4119 _ACEOF
4120 if ac_fn_c_try_cpp "$LINENO"; then :
4122 else
4123 # Broken: fails on valid input.
4124 continue
4126 rm -f conftest.err conftest.i conftest.$ac_ext
4128 # OK, works on sane cases. Now check whether nonexistent headers
4129 # can be detected and how.
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4132 #include <ac_nonexistent.h>
4133 _ACEOF
4134 if ac_fn_c_try_cpp "$LINENO"; then :
4135 # Broken: success on invalid input.
4136 continue
4137 else
4138 # Passes both tests.
4139 ac_preproc_ok=:
4140 break
4142 rm -f conftest.err conftest.i conftest.$ac_ext
4144 done
4145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4146 rm -f conftest.i conftest.err conftest.$ac_ext
4147 if $ac_preproc_ok; then :
4148 break
4151 done
4152 ac_cv_prog_CPP=$CPP
4155 CPP=$ac_cv_prog_CPP
4156 else
4157 ac_cv_prog_CPP=$CPP
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4160 $as_echo "$CPP" >&6; }
4161 ac_preproc_ok=false
4162 for ac_c_preproc_warn_flag in '' yes
4164 # Use a header file that comes with gcc, so configuring glibc
4165 # with a fresh cross-compiler works.
4166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4167 # <limits.h> exists even on freestanding compilers.
4168 # On the NeXT, cc -E runs the code through the compiler's parser,
4169 # not just through cpp. "Syntax error" is here to catch this case.
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172 #ifdef __STDC__
4173 # include <limits.h>
4174 #else
4175 # include <assert.h>
4176 #endif
4177 Syntax error
4178 _ACEOF
4179 if ac_fn_c_try_cpp "$LINENO"; then :
4181 else
4182 # Broken: fails on valid input.
4183 continue
4185 rm -f conftest.err conftest.i conftest.$ac_ext
4187 # OK, works on sane cases. Now check whether nonexistent headers
4188 # can be detected and how.
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 #include <ac_nonexistent.h>
4192 _ACEOF
4193 if ac_fn_c_try_cpp "$LINENO"; then :
4194 # Broken: success on invalid input.
4195 continue
4196 else
4197 # Passes both tests.
4198 ac_preproc_ok=:
4199 break
4201 rm -f conftest.err conftest.i conftest.$ac_ext
4203 done
4204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4205 rm -f conftest.i conftest.err conftest.$ac_ext
4206 if $ac_preproc_ok; then :
4208 else
4209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4211 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4212 See \`config.log' for more details" "$LINENO" 5; }
4215 ac_ext=c
4216 ac_cpp='$CPP $CPPFLAGS'
4217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4223 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4224 if ${ac_cv_path_GREP+:} false; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 if test -z "$GREP"; then
4228 ac_path_GREP_found=false
4229 # Loop through the user's path and test for each of PROGNAME-LIST
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_prog in grep ggrep; do
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4238 as_fn_executable_p "$ac_path_GREP" || continue
4239 # Check for GNU ac_path_GREP and select it if it is found.
4240 # Check for GNU $ac_path_GREP
4241 case `"$ac_path_GREP" --version 2>&1` in
4242 *GNU*)
4243 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4245 ac_count=0
4246 $as_echo_n 0123456789 >"conftest.in"
4247 while :
4249 cat "conftest.in" "conftest.in" >"conftest.tmp"
4250 mv "conftest.tmp" "conftest.in"
4251 cp "conftest.in" "conftest.nl"
4252 $as_echo 'GREP' >> "conftest.nl"
4253 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4255 as_fn_arith $ac_count + 1 && ac_count=$as_val
4256 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4257 # Best one so far, save it but keep looking for a better one
4258 ac_cv_path_GREP="$ac_path_GREP"
4259 ac_path_GREP_max=$ac_count
4261 # 10*(2^10) chars as input seems more than enough
4262 test $ac_count -gt 10 && break
4263 done
4264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4265 esac
4267 $ac_path_GREP_found && break 3
4268 done
4269 done
4270 done
4271 IFS=$as_save_IFS
4272 if test -z "$ac_cv_path_GREP"; then
4273 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4275 else
4276 ac_cv_path_GREP=$GREP
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4281 $as_echo "$ac_cv_path_GREP" >&6; }
4282 GREP="$ac_cv_path_GREP"
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4286 $as_echo_n "checking for egrep... " >&6; }
4287 if ${ac_cv_path_EGREP+:} false; then :
4288 $as_echo_n "(cached) " >&6
4289 else
4290 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4291 then ac_cv_path_EGREP="$GREP -E"
4292 else
4293 if test -z "$EGREP"; then
4294 ac_path_EGREP_found=false
4295 # Loop through the user's path and test for each of PROGNAME-LIST
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_prog in egrep; do
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4304 as_fn_executable_p "$ac_path_EGREP" || continue
4305 # Check for GNU ac_path_EGREP and select it if it is found.
4306 # Check for GNU $ac_path_EGREP
4307 case `"$ac_path_EGREP" --version 2>&1` in
4308 *GNU*)
4309 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4311 ac_count=0
4312 $as_echo_n 0123456789 >"conftest.in"
4313 while :
4315 cat "conftest.in" "conftest.in" >"conftest.tmp"
4316 mv "conftest.tmp" "conftest.in"
4317 cp "conftest.in" "conftest.nl"
4318 $as_echo 'EGREP' >> "conftest.nl"
4319 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4321 as_fn_arith $ac_count + 1 && ac_count=$as_val
4322 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4323 # Best one so far, save it but keep looking for a better one
4324 ac_cv_path_EGREP="$ac_path_EGREP"
4325 ac_path_EGREP_max=$ac_count
4327 # 10*(2^10) chars as input seems more than enough
4328 test $ac_count -gt 10 && break
4329 done
4330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4331 esac
4333 $ac_path_EGREP_found && break 3
4334 done
4335 done
4336 done
4337 IFS=$as_save_IFS
4338 if test -z "$ac_cv_path_EGREP"; then
4339 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4341 else
4342 ac_cv_path_EGREP=$EGREP
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4348 $as_echo "$ac_cv_path_EGREP" >&6; }
4349 EGREP="$ac_cv_path_EGREP"
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4353 $as_echo_n "checking for ANSI C header files... " >&6; }
4354 if ${ac_cv_header_stdc+:} false; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h. */
4359 #include <stdlib.h>
4360 #include <stdarg.h>
4361 #include <string.h>
4362 #include <float.h>
4365 main ()
4369 return 0;
4371 _ACEOF
4372 if ac_fn_c_try_compile "$LINENO"; then :
4373 ac_cv_header_stdc=yes
4374 else
4375 ac_cv_header_stdc=no
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 if test $ac_cv_header_stdc = yes; then
4380 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4383 #include <string.h>
4385 _ACEOF
4386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4387 $EGREP "memchr" >/dev/null 2>&1; then :
4389 else
4390 ac_cv_header_stdc=no
4392 rm -f conftest*
4396 if test $ac_cv_header_stdc = yes; then
4397 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4400 #include <stdlib.h>
4402 _ACEOF
4403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4404 $EGREP "free" >/dev/null 2>&1; then :
4406 else
4407 ac_cv_header_stdc=no
4409 rm -f conftest*
4413 if test $ac_cv_header_stdc = yes; then
4414 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4415 if test "$cross_compiling" = yes; then :
4417 else
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420 #include <ctype.h>
4421 #include <stdlib.h>
4422 #if ((' ' & 0x0FF) == 0x020)
4423 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4424 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4425 #else
4426 # define ISLOWER(c) \
4427 (('a' <= (c) && (c) <= 'i') \
4428 || ('j' <= (c) && (c) <= 'r') \
4429 || ('s' <= (c) && (c) <= 'z'))
4430 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4431 #endif
4433 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4435 main ()
4437 int i;
4438 for (i = 0; i < 256; i++)
4439 if (XOR (islower (i), ISLOWER (i))
4440 || toupper (i) != TOUPPER (i))
4441 return 2;
4442 return 0;
4444 _ACEOF
4445 if ac_fn_c_try_run "$LINENO"; then :
4447 else
4448 ac_cv_header_stdc=no
4450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4451 conftest.$ac_objext conftest.beam conftest.$ac_ext
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4457 $as_echo "$ac_cv_header_stdc" >&6; }
4458 if test $ac_cv_header_stdc = yes; then
4460 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4464 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4465 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4466 inttypes.h stdint.h unistd.h
4467 do :
4468 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4469 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4471 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4472 cat >>confdefs.h <<_ACEOF
4473 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4474 _ACEOF
4478 done
4482 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4483 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4484 MINIX=yes
4485 else
4486 MINIX=
4490 if test "$MINIX" = yes; then
4492 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4495 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4498 $as_echo "#define _MINIX 1" >>confdefs.h
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4504 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4505 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4511 # define __EXTENSIONS__ 1
4512 $ac_includes_default
4514 main ()
4518 return 0;
4520 _ACEOF
4521 if ac_fn_c_try_compile "$LINENO"; then :
4522 ac_cv_safe_to_define___extensions__=yes
4523 else
4524 ac_cv_safe_to_define___extensions__=no
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4529 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4530 test $ac_cv_safe_to_define___extensions__ = yes &&
4531 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4533 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4535 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4537 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4539 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4542 CPPFLAGS="$CPPFLAGS -D_XPG4_2=1 -D_GNU_SOURCE=1"
4543 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
4545 if test "$cross_compiling" != no; then :
4547 $as_echo "#define CROSS_COMPILING /**/" >>confdefs.h
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIC" >&5
4553 $as_echo_n "checking whether C compiler accepts -fPIC... " >&6; }
4554 if ${ax_cv_check_cflags___fPIC+:} false; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4558 ax_check_save_flags=$CFLAGS
4559 CFLAGS="$CFLAGS -fPIC"
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h. */
4562 #include <stdio.h>
4564 main ()
4566 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
4568 return 0;
4570 _ACEOF
4571 if ac_fn_c_try_compile "$LINENO"; then :
4572 ax_cv_check_cflags___fPIC=yes
4573 else
4574 ax_cv_check_cflags___fPIC=no
4576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577 CFLAGS=$ax_check_save_flags
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIC" >&5
4580 $as_echo "$ax_cv_check_cflags___fPIC" >&6; }
4581 if test x"$ax_cv_check_cflags___fPIC" = xyes; then :
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIC" >&5
4584 $as_echo_n "checking whether the linker accepts -fPIC... " >&6; }
4585 if ${ax_cv_check_ldflags___fPIC+:} false; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4589 ax_check_save_flags=$LDFLAGS
4590 LDFLAGS="$LDFLAGS -fPIC"
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #include <stdio.h>
4595 main ()
4597 char x[42U];if (fgets(x,1000,stdin)) puts(x)
4599 return 0;
4601 _ACEOF
4602 if ac_fn_c_try_link "$LINENO"; then :
4603 ax_cv_check_ldflags___fPIC=yes
4604 else
4605 ax_cv_check_ldflags___fPIC=no
4607 rm -f core conftest.err conftest.$ac_objext \
4608 conftest$ac_exeext conftest.$ac_ext
4609 LDFLAGS=$ax_check_save_flags
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fPIC" >&5
4612 $as_echo "$ax_cv_check_ldflags___fPIC" >&6; }
4613 if test x"$ax_cv_check_ldflags___fPIC" = xyes; then :
4614 CFLAGS="$CFLAGS -fPIC"
4616 else
4621 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
4626 $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
4627 if ${ax_cv_check_cflags___fPIE+:} false; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4631 ax_check_save_flags=$CFLAGS
4632 CFLAGS="$CFLAGS -fPIE"
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4635 #include <stdio.h>
4637 main ()
4639 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
4641 return 0;
4643 _ACEOF
4644 if ac_fn_c_try_compile "$LINENO"; then :
4645 ax_cv_check_cflags___fPIE=yes
4646 else
4647 ax_cv_check_cflags___fPIE=no
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 CFLAGS=$ax_check_save_flags
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
4653 $as_echo "$ax_cv_check_cflags___fPIE" >&6; }
4654 if test x"$ax_cv_check_cflags___fPIE" = xyes; then :
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE" >&5
4657 $as_echo_n "checking whether the linker accepts -fPIE... " >&6; }
4658 if ${ax_cv_check_ldflags___fPIE+:} false; then :
4659 $as_echo_n "(cached) " >&6
4660 else
4662 ax_check_save_flags=$LDFLAGS
4663 LDFLAGS="$LDFLAGS -fPIE"
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666 #include <stdio.h>
4668 main ()
4670 char x[42U];if (fgets(x,1000,stdin)) puts(x)
4672 return 0;
4674 _ACEOF
4675 if ac_fn_c_try_link "$LINENO"; then :
4676 ax_cv_check_ldflags___fPIE=yes
4677 else
4678 ax_cv_check_ldflags___fPIE=no
4680 rm -f core conftest.err conftest.$ac_objext \
4681 conftest$ac_exeext conftest.$ac_ext
4682 LDFLAGS=$ax_check_save_flags
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fPIE" >&5
4685 $as_echo "$ax_cv_check_ldflags___fPIE" >&6; }
4686 if test x"$ax_cv_check_ldflags___fPIE" = xyes; then :
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
4688 $as_echo_n "checking whether the linker accepts -pie... " >&6; }
4689 if ${ax_cv_check_ldflags___pie+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4693 ax_check_save_flags=$LDFLAGS
4694 LDFLAGS="$LDFLAGS -pie"
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 #include <stdio.h>
4699 main ()
4701 char x[42U];if (fgets(x,1000,stdin)) puts(x)
4703 return 0;
4705 _ACEOF
4706 if ac_fn_c_try_link "$LINENO"; then :
4707 ax_cv_check_ldflags___pie=yes
4708 else
4709 ax_cv_check_ldflags___pie=no
4711 rm -f core conftest.err conftest.$ac_objext \
4712 conftest$ac_exeext conftest.$ac_ext
4713 LDFLAGS=$ax_check_save_flags
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
4716 $as_echo "$ax_cv_check_ldflags___pie" >&6; }
4717 if test x"$ax_cv_check_ldflags___pie" = xyes; then :
4718 CFLAGS="$CFLAGS -fPIE"
4719 LDFLAGS="$LDFLAGS -pie"
4720 else
4725 else
4730 else
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fcatch-undefined-c99-behavior" >&5
4736 $as_echo_n "checking whether C compiler accepts -fcatch-undefined-c99-behavior... " >&6; }
4737 if ${ax_cv_check_cflags___fcatch_undefined_c99_behavior+:} false; then :
4738 $as_echo_n "(cached) " >&6
4739 else
4741 ax_check_save_flags=$CFLAGS
4742 CFLAGS="$CFLAGS -fcatch-undefined-c99-behavior"
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 #include <stdio.h>
4747 main ()
4749 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
4751 return 0;
4753 _ACEOF
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755 ax_cv_check_cflags___fcatch_undefined_c99_behavior=yes
4756 else
4757 ax_cv_check_cflags___fcatch_undefined_c99_behavior=no
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 CFLAGS=$ax_check_save_flags
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fcatch_undefined_c99_behavior" >&5
4763 $as_echo "$ax_cv_check_cflags___fcatch_undefined_c99_behavior" >&6; }
4764 if test x"$ax_cv_check_cflags___fcatch_undefined_c99_behavior" = xyes; then :
4765 CFLAGS="$CFLAGS -fcatch-undefined-c99-behavior"
4766 else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fwrapv" >&5
4768 $as_echo_n "checking whether C compiler accepts -fwrapv... " >&6; }
4769 if ${ax_cv_check_cflags___fwrapv+:} false; then :
4770 $as_echo_n "(cached) " >&6
4771 else
4773 ax_check_save_flags=$CFLAGS
4774 CFLAGS="$CFLAGS -fwrapv"
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4777 #include <stdio.h>
4779 main ()
4781 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
4783 return 0;
4785 _ACEOF
4786 if ac_fn_c_try_compile "$LINENO"; then :
4787 ax_cv_check_cflags___fwrapv=yes
4788 else
4789 ax_cv_check_cflags___fwrapv=no
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 CFLAGS=$ax_check_save_flags
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fwrapv" >&5
4795 $as_echo "$ax_cv_check_cflags___fwrapv" >&6; }
4796 if test x"$ax_cv_check_cflags___fwrapv" = xyes; then :
4797 CFLAGS="$CFLAGS -fwrapv"
4798 else
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
4806 $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
4807 if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4811 ax_check_save_flags=$CFLAGS
4812 CFLAGS="$CFLAGS -fno-strict-aliasing"
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4815 #include <stdio.h>
4817 main ()
4819 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
4821 return 0;
4823 _ACEOF
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825 ax_cv_check_cflags___fno_strict_aliasing=yes
4826 else
4827 ax_cv_check_cflags___fno_strict_aliasing=no
4829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4830 CFLAGS=$ax_check_save_flags
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
4833 $as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
4834 if test x"$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
4835 CFLAGS="$CFLAGS -fno-strict-aliasing"
4836 else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
4841 $as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
4842 if ${ax_cv_check_cflags___fno_strict_overflow+:} false; then :
4843 $as_echo_n "(cached) " >&6
4844 else
4846 ax_check_save_flags=$CFLAGS
4847 CFLAGS="$CFLAGS -fno-strict-overflow"
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4850 #include <stdio.h>
4852 main ()
4854 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
4856 return 0;
4858 _ACEOF
4859 if ac_fn_c_try_compile "$LINENO"; then :
4860 ax_cv_check_cflags___fno_strict_overflow=yes
4861 else
4862 ax_cv_check_cflags___fno_strict_overflow=no
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 CFLAGS=$ax_check_save_flags
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_overflow" >&5
4868 $as_echo "$ax_cv_check_cflags___fno_strict_overflow" >&6; }
4869 if test x"$ax_cv_check_cflags___fno_strict_overflow" = xyes; then :
4870 CFLAGS="$CFLAGS -fno-strict-overflow"
4871 else
4876 case $host_os in
4877 cygwin* | mingw* | pw32* | cegcc*)
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--dynamicbase" >&5
4879 $as_echo_n "checking whether the linker accepts -Wl,--dynamicbase... " >&6; }
4880 if ${ax_cv_check_ldflags___Wl___dynamicbase+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4884 ax_check_save_flags=$LDFLAGS
4885 LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4888 #include <stdio.h>
4890 main ()
4892 char x[42U];if (fgets(x,1000,stdin)) puts(x)
4894 return 0;
4896 _ACEOF
4897 if ac_fn_c_try_link "$LINENO"; then :
4898 ax_cv_check_ldflags___Wl___dynamicbase=yes
4899 else
4900 ax_cv_check_ldflags___Wl___dynamicbase=no
4902 rm -f core conftest.err conftest.$ac_objext \
4903 conftest$ac_exeext conftest.$ac_ext
4904 LDFLAGS=$ax_check_save_flags
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___dynamicbase" >&5
4907 $as_echo "$ax_cv_check_ldflags___Wl___dynamicbase" >&6; }
4908 if test x"$ax_cv_check_ldflags___Wl___dynamicbase" = xyes; then :
4909 LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
4910 else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--nxcompat" >&5
4915 $as_echo_n "checking whether the linker accepts -Wl,--nxcompat... " >&6; }
4916 if ${ax_cv_check_ldflags___Wl___nxcompat+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4920 ax_check_save_flags=$LDFLAGS
4921 LDFLAGS="$LDFLAGS -Wl,--nxcompat"
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924 #include <stdio.h>
4926 main ()
4928 char x[42U];if (fgets(x,1000,stdin)) puts(x)
4930 return 0;
4932 _ACEOF
4933 if ac_fn_c_try_link "$LINENO"; then :
4934 ax_cv_check_ldflags___Wl___nxcompat=yes
4935 else
4936 ax_cv_check_ldflags___Wl___nxcompat=no
4938 rm -f core conftest.err conftest.$ac_objext \
4939 conftest$ac_exeext conftest.$ac_ext
4940 LDFLAGS=$ax_check_save_flags
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___nxcompat" >&5
4943 $as_echo "$ax_cv_check_ldflags___Wl___nxcompat" >&6; }
4944 if test x"$ax_cv_check_ldflags___Wl___nxcompat" = xyes; then :
4945 LDFLAGS="$LDFLAGS -Wl,--nxcompat"
4946 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
4951 $as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
4952 if ${ax_cv_check_cflags___fstack_protector_all+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4956 ax_check_save_flags=$CFLAGS
4957 CFLAGS="$CFLAGS"
4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h. */
4960 #include <stdio.h>
4962 main ()
4964 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
4966 return 0;
4968 _ACEOF
4969 if ac_fn_c_try_compile "$LINENO"; then :
4970 ax_cv_check_cflags___fstack_protector_all=yes
4971 else
4972 ax_cv_check_cflags___fstack_protector_all=no
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 CFLAGS=$ax_check_save_flags
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector_all" >&5
4978 $as_echo "$ax_cv_check_cflags___fstack_protector_all" >&6; }
4979 if test x"$ax_cv_check_cflags___fstack_protector_all" = xyes; then :
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-all" >&5
4982 $as_echo_n "checking whether the linker accepts -fstack-protector-all... " >&6; }
4983 if ${ax_cv_check_ldflags___fstack_protector_all+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4987 ax_check_save_flags=$LDFLAGS
4988 LDFLAGS="$LDFLAGS"
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4991 #include <stdio.h>
4993 main ()
4995 char x[42U];if (fgets(x,1000,stdin)) puts(x)
4997 return 0;
4999 _ACEOF
5000 if ac_fn_c_try_link "$LINENO"; then :
5001 ax_cv_check_ldflags___fstack_protector_all=yes
5002 else
5003 ax_cv_check_ldflags___fstack_protector_all=no
5005 rm -f core conftest.err conftest.$ac_objext \
5006 conftest$ac_exeext conftest.$ac_ext
5007 LDFLAGS=$ax_check_save_flags
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector_all" >&5
5010 $as_echo "$ax_cv_check_ldflags___fstack_protector_all" >&6; }
5011 if test x"$ax_cv_check_ldflags___fstack_protector_all" = xyes; then :
5012 CFLAGS="$CFLAGS"
5014 else
5019 else
5024 dragonfly*)
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5
5026 $as_echo_n "checking whether C compiler accepts -fstack-protector... " >&6; }
5027 if ${ax_cv_check_cflags___fstack_protector+:} false; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5031 ax_check_save_flags=$CFLAGS
5032 CFLAGS="$CFLAGS -fstack-protector"
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5035 #include <stdio.h>
5037 main ()
5039 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5041 return 0;
5043 _ACEOF
5044 if ac_fn_c_try_compile "$LINENO"; then :
5045 ax_cv_check_cflags___fstack_protector=yes
5046 else
5047 ax_cv_check_cflags___fstack_protector=no
5049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 CFLAGS=$ax_check_save_flags
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
5053 $as_echo "$ax_cv_check_cflags___fstack_protector" >&6; }
5054 if test x"$ax_cv_check_cflags___fstack_protector" = xyes; then :
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
5057 $as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; }
5058 if ${ax_cv_check_ldflags___fstack_protector+:} false; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5062 ax_check_save_flags=$LDFLAGS
5063 LDFLAGS="$LDFLAGS -fstack-protector"
5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h. */
5066 #include <stdio.h>
5068 main ()
5070 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5072 return 0;
5074 _ACEOF
5075 if ac_fn_c_try_link "$LINENO"; then :
5076 ax_cv_check_ldflags___fstack_protector=yes
5077 else
5078 ax_cv_check_ldflags___fstack_protector=no
5080 rm -f core conftest.err conftest.$ac_objext \
5081 conftest$ac_exeext conftest.$ac_ext
5082 LDFLAGS=$ax_check_save_flags
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
5085 $as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; }
5086 if test x"$ax_cv_check_ldflags___fstack_protector" = xyes; then :
5087 CFLAGS="$CFLAGS -fstack-protector"
5089 else
5094 else
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
5101 $as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
5102 if ${ax_cv_check_cflags___fstack_protector_all+:} false; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5106 ax_check_save_flags=$CFLAGS
5107 CFLAGS="$CFLAGS"
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5110 #include <stdio.h>
5112 main ()
5114 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5116 return 0;
5118 _ACEOF
5119 if ac_fn_c_try_compile "$LINENO"; then :
5120 ax_cv_check_cflags___fstack_protector_all=yes
5121 else
5122 ax_cv_check_cflags___fstack_protector_all=no
5124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125 CFLAGS=$ax_check_save_flags
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector_all" >&5
5128 $as_echo "$ax_cv_check_cflags___fstack_protector_all" >&6; }
5129 if test x"$ax_cv_check_cflags___fstack_protector_all" = xyes; then :
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-all" >&5
5132 $as_echo_n "checking whether the linker accepts -fstack-protector-all... " >&6; }
5133 if ${ax_cv_check_ldflags___fstack_protector_all+:} false; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5137 ax_check_save_flags=$LDFLAGS
5138 LDFLAGS="$LDFLAGS"
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5141 #include <stdio.h>
5143 main ()
5145 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5147 return 0;
5149 _ACEOF
5150 if ac_fn_c_try_link "$LINENO"; then :
5151 ax_cv_check_ldflags___fstack_protector_all=yes
5152 else
5153 ax_cv_check_ldflags___fstack_protector_all=no
5155 rm -f core conftest.err conftest.$ac_objext \
5156 conftest$ac_exeext conftest.$ac_ext
5157 LDFLAGS=$ax_check_save_flags
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector_all" >&5
5160 $as_echo "$ax_cv_check_ldflags___fstack_protector_all" >&6; }
5161 if test x"$ax_cv_check_ldflags___fstack_protector_all" = xyes; then :
5162 CFLAGS="$CFLAGS"
5164 else
5169 else
5174 esac
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wbounded" >&5
5177 $as_echo_n "checking whether C compiler accepts -Wbounded... " >&6; }
5178 if ${ax_cv_check_cflags___Wbounded+:} false; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5182 ax_check_save_flags=$CFLAGS
5183 CFLAGS="$CFLAGS -Wbounded"
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186 #include <stdio.h>
5188 main ()
5190 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5192 return 0;
5194 _ACEOF
5195 if ac_fn_c_try_compile "$LINENO"; then :
5196 ax_cv_check_cflags___Wbounded=yes
5197 else
5198 ax_cv_check_cflags___Wbounded=no
5200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5201 CFLAGS=$ax_check_save_flags
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wbounded" >&5
5204 $as_echo "$ax_cv_check_cflags___Wbounded" >&6; }
5205 if test x"$ax_cv_check_cflags___Wbounded" = xyes; then :
5206 CFLAGS="$CFLAGS -Wbounded"
5207 else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winit-self" >&5
5212 $as_echo_n "checking whether C compiler accepts -Winit-self... " >&6; }
5213 if ${ax_cv_check_cflags___Winit_self+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5217 ax_check_save_flags=$CFLAGS
5218 CFLAGS="$CFLAGS -Winit-self"
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5221 #include <stdio.h>
5223 main ()
5225 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5227 return 0;
5229 _ACEOF
5230 if ac_fn_c_try_compile "$LINENO"; then :
5231 ax_cv_check_cflags___Winit_self=yes
5232 else
5233 ax_cv_check_cflags___Winit_self=no
5235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236 CFLAGS=$ax_check_save_flags
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Winit_self" >&5
5239 $as_echo "$ax_cv_check_cflags___Winit_self" >&6; }
5240 if test x"$ax_cv_check_cflags___Winit_self" = xyes; then :
5241 CFLAGS="$CFLAGS -Winit-self"
5242 else
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wwrite-strings" >&5
5247 $as_echo_n "checking whether C compiler accepts -Wwrite-strings... " >&6; }
5248 if ${ax_cv_check_cflags___Wwrite_strings+:} false; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5252 ax_check_save_flags=$CFLAGS
5253 CFLAGS="$CFLAGS -Wwrite-strings"
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5256 #include <stdio.h>
5258 main ()
5260 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5262 return 0;
5264 _ACEOF
5265 if ac_fn_c_try_compile "$LINENO"; then :
5266 ax_cv_check_cflags___Wwrite_strings=yes
5267 else
5268 ax_cv_check_cflags___Wwrite_strings=no
5270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271 CFLAGS=$ax_check_save_flags
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wwrite_strings" >&5
5274 $as_echo "$ax_cv_check_cflags___Wwrite_strings" >&6; }
5275 if test x"$ax_cv_check_cflags___Wwrite_strings" = xyes; then :
5276 CFLAGS="$CFLAGS -Wwrite-strings"
5277 else
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdiv-by-zero" >&5
5282 $as_echo_n "checking whether C compiler accepts -Wdiv-by-zero... " >&6; }
5283 if ${ax_cv_check_cflags___Wdiv_by_zero+:} false; then :
5284 $as_echo_n "(cached) " >&6
5285 else
5287 ax_check_save_flags=$CFLAGS
5288 CFLAGS="$CFLAGS -Wdiv-by-zero"
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5291 #include <stdio.h>
5293 main ()
5295 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5297 return 0;
5299 _ACEOF
5300 if ac_fn_c_try_compile "$LINENO"; then :
5301 ax_cv_check_cflags___Wdiv_by_zero=yes
5302 else
5303 ax_cv_check_cflags___Wdiv_by_zero=no
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 CFLAGS=$ax_check_save_flags
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdiv_by_zero" >&5
5309 $as_echo "$ax_cv_check_cflags___Wdiv_by_zero" >&6; }
5310 if test x"$ax_cv_check_cflags___Wdiv_by_zero" = xyes; then :
5311 CFLAGS="$CFLAGS -Wdiv-by-zero"
5312 else
5319 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wall" | $as_tr_sh`
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wall" >&5
5321 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wall... " >&6; }
5322 if eval \${$as_CACHEVAR+:} false; then :
5323 $as_echo_n "(cached) " >&6
5324 else
5326 ax_check_save_flags=$CFLAGS
5327 CFLAGS="$CFLAGS $CWFLAGS -Wall"
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5330 #include <stdio.h>
5332 main ()
5334 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5336 return 0;
5338 _ACEOF
5339 if ac_fn_c_try_compile "$LINENO"; then :
5340 eval "$as_CACHEVAR=yes"
5341 else
5342 eval "$as_CACHEVAR=no"
5344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5345 CFLAGS=$ax_check_save_flags
5347 eval ac_res=\$$as_CACHEVAR
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5349 $as_echo "$ac_res" >&6; }
5350 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5351 CWFLAGS="$CWFLAGS -Wall"
5352 else
5356 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wextra" | $as_tr_sh`
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wextra" >&5
5358 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wextra... " >&6; }
5359 if eval \${$as_CACHEVAR+:} false; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5363 ax_check_save_flags=$CFLAGS
5364 CFLAGS="$CFLAGS $CWFLAGS -Wextra"
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5367 #include <stdio.h>
5369 main ()
5371 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5373 return 0;
5375 _ACEOF
5376 if ac_fn_c_try_compile "$LINENO"; then :
5377 eval "$as_CACHEVAR=yes"
5378 else
5379 eval "$as_CACHEVAR=no"
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382 CFLAGS=$ax_check_save_flags
5384 eval ac_res=\$$as_CACHEVAR
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5386 $as_echo "$ac_res" >&6; }
5387 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5388 CWFLAGS="$CWFLAGS -Wextra"
5389 else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
5395 $as_echo_n "checking for clang... " >&6; }
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5400 main ()
5403 #ifndef __clang__
5404 be sad
5405 #endif
5408 return 0;
5410 _ACEOF
5411 if ac_fn_c_try_compile "$LINENO"; then :
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5413 $as_echo "yes" >&6; }
5414 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-warning-option" | $as_tr_sh`
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option" >&5
5416 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option... " >&6; }
5417 if eval \${$as_CACHEVAR+:} false; then :
5418 $as_echo_n "(cached) " >&6
5419 else
5421 ax_check_save_flags=$CFLAGS
5422 CFLAGS="$CFLAGS $CWFLAGS -Wno-unknown-warning-option"
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 #include <stdio.h>
5427 main ()
5429 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5431 return 0;
5433 _ACEOF
5434 if ac_fn_c_try_compile "$LINENO"; then :
5435 eval "$as_CACHEVAR=yes"
5436 else
5437 eval "$as_CACHEVAR=no"
5439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 CFLAGS=$ax_check_save_flags
5442 eval ac_res=\$$as_CACHEVAR
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5444 $as_echo "$ac_res" >&6; }
5445 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5446 CWFLAGS="$CWFLAGS -Wno-unknown-warning-option"
5447 else
5451 else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wbad-function-cast" | $as_tr_sh`
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wbad-function-cast" >&5
5460 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wbad-function-cast... " >&6; }
5461 if eval \${$as_CACHEVAR+:} false; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5465 ax_check_save_flags=$CFLAGS
5466 CFLAGS="$CFLAGS $CWFLAGS -Wbad-function-cast"
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 #include <stdio.h>
5471 main ()
5473 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5475 return 0;
5477 _ACEOF
5478 if ac_fn_c_try_compile "$LINENO"; then :
5479 eval "$as_CACHEVAR=yes"
5480 else
5481 eval "$as_CACHEVAR=no"
5483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484 CFLAGS=$ax_check_save_flags
5486 eval ac_res=\$$as_CACHEVAR
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5488 $as_echo "$ac_res" >&6; }
5489 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5490 CWFLAGS="$CWFLAGS -Wbad-function-cast"
5491 else
5495 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-align" | $as_tr_sh`
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-align" >&5
5497 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-align... " >&6; }
5498 if eval \${$as_CACHEVAR+:} false; then :
5499 $as_echo_n "(cached) " >&6
5500 else
5502 ax_check_save_flags=$CFLAGS
5503 CFLAGS="$CFLAGS $CWFLAGS -Wcast-align"
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5506 #include <stdio.h>
5508 main ()
5510 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5512 return 0;
5514 _ACEOF
5515 if ac_fn_c_try_compile "$LINENO"; then :
5516 eval "$as_CACHEVAR=yes"
5517 else
5518 eval "$as_CACHEVAR=no"
5520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 CFLAGS=$ax_check_save_flags
5523 eval ac_res=\$$as_CACHEVAR
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5525 $as_echo "$ac_res" >&6; }
5526 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5527 CWFLAGS="$CWFLAGS -Wcast-align"
5528 else
5532 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-qual" | $as_tr_sh`
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-qual" >&5
5534 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-qual... " >&6; }
5535 if eval \${$as_CACHEVAR+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5539 ax_check_save_flags=$CFLAGS
5540 CFLAGS="$CFLAGS $CWFLAGS -Wcast-qual"
5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h. */
5543 #include <stdio.h>
5545 main ()
5547 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5549 return 0;
5551 _ACEOF
5552 if ac_fn_c_try_compile "$LINENO"; then :
5553 eval "$as_CACHEVAR=yes"
5554 else
5555 eval "$as_CACHEVAR=no"
5557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558 CFLAGS=$ax_check_save_flags
5560 eval ac_res=\$$as_CACHEVAR
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5562 $as_echo "$ac_res" >&6; }
5563 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5564 CWFLAGS="$CWFLAGS -Wcast-qual"
5565 else
5569 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wchar-subscripts" | $as_tr_sh`
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wchar-subscripts" >&5
5571 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wchar-subscripts... " >&6; }
5572 if eval \${$as_CACHEVAR+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5576 ax_check_save_flags=$CFLAGS
5577 CFLAGS="$CFLAGS $CWFLAGS -Wchar-subscripts"
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5580 #include <stdio.h>
5582 main ()
5584 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5586 return 0;
5588 _ACEOF
5589 if ac_fn_c_try_compile "$LINENO"; then :
5590 eval "$as_CACHEVAR=yes"
5591 else
5592 eval "$as_CACHEVAR=no"
5594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5595 CFLAGS=$ax_check_save_flags
5597 eval ac_res=\$$as_CACHEVAR
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5599 $as_echo "$ac_res" >&6; }
5600 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5601 CWFLAGS="$CWFLAGS -Wchar-subscripts"
5602 else
5606 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcomment" | $as_tr_sh`
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcomment" >&5
5608 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcomment... " >&6; }
5609 if eval \${$as_CACHEVAR+:} false; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5613 ax_check_save_flags=$CFLAGS
5614 CFLAGS="$CFLAGS $CWFLAGS -Wcomment"
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 #include <stdio.h>
5619 main ()
5621 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5623 return 0;
5625 _ACEOF
5626 if ac_fn_c_try_compile "$LINENO"; then :
5627 eval "$as_CACHEVAR=yes"
5628 else
5629 eval "$as_CACHEVAR=no"
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 CFLAGS=$ax_check_save_flags
5634 eval ac_res=\$$as_CACHEVAR
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5636 $as_echo "$ac_res" >&6; }
5637 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5638 CWFLAGS="$CWFLAGS -Wcomment"
5639 else
5643 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wfloat-equal" | $as_tr_sh`
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wfloat-equal" >&5
5645 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wfloat-equal... " >&6; }
5646 if eval \${$as_CACHEVAR+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5650 ax_check_save_flags=$CFLAGS
5651 CFLAGS="$CFLAGS $CWFLAGS -Wfloat-equal"
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 #include <stdio.h>
5656 main ()
5658 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5660 return 0;
5662 _ACEOF
5663 if ac_fn_c_try_compile "$LINENO"; then :
5664 eval "$as_CACHEVAR=yes"
5665 else
5666 eval "$as_CACHEVAR=no"
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669 CFLAGS=$ax_check_save_flags
5671 eval ac_res=\$$as_CACHEVAR
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5673 $as_echo "$ac_res" >&6; }
5674 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5675 CWFLAGS="$CWFLAGS -Wfloat-equal"
5676 else
5680 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wformat=2" | $as_tr_sh`
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wformat=2" >&5
5682 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wformat=2... " >&6; }
5683 if eval \${$as_CACHEVAR+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5687 ax_check_save_flags=$CFLAGS
5688 CFLAGS="$CFLAGS $CWFLAGS -Wformat=2"
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 #include <stdio.h>
5693 main ()
5695 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5697 return 0;
5699 _ACEOF
5700 if ac_fn_c_try_compile "$LINENO"; then :
5701 eval "$as_CACHEVAR=yes"
5702 else
5703 eval "$as_CACHEVAR=no"
5705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706 CFLAGS=$ax_check_save_flags
5708 eval ac_res=\$$as_CACHEVAR
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5710 $as_echo "$ac_res" >&6; }
5711 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5712 CWFLAGS="$CWFLAGS -Wformat=2"
5713 else
5717 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wimplicit" | $as_tr_sh`
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wimplicit" >&5
5719 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wimplicit... " >&6; }
5720 if eval \${$as_CACHEVAR+:} false; then :
5721 $as_echo_n "(cached) " >&6
5722 else
5724 ax_check_save_flags=$CFLAGS
5725 CFLAGS="$CFLAGS $CWFLAGS -Wimplicit"
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5728 #include <stdio.h>
5730 main ()
5732 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5734 return 0;
5736 _ACEOF
5737 if ac_fn_c_try_compile "$LINENO"; then :
5738 eval "$as_CACHEVAR=yes"
5739 else
5740 eval "$as_CACHEVAR=no"
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 CFLAGS=$ax_check_save_flags
5745 eval ac_res=\$$as_CACHEVAR
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5747 $as_echo "$ac_res" >&6; }
5748 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5749 CWFLAGS="$CWFLAGS -Wimplicit"
5750 else
5754 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-declarations" | $as_tr_sh`
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-declarations" >&5
5756 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-declarations... " >&6; }
5757 if eval \${$as_CACHEVAR+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5761 ax_check_save_flags=$CFLAGS
5762 CFLAGS="$CFLAGS $CWFLAGS -Wmissing-declarations"
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 #include <stdio.h>
5767 main ()
5769 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5771 return 0;
5773 _ACEOF
5774 if ac_fn_c_try_compile "$LINENO"; then :
5775 eval "$as_CACHEVAR=yes"
5776 else
5777 eval "$as_CACHEVAR=no"
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780 CFLAGS=$ax_check_save_flags
5782 eval ac_res=\$$as_CACHEVAR
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5784 $as_echo "$ac_res" >&6; }
5785 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5786 CWFLAGS="$CWFLAGS -Wmissing-declarations"
5787 else
5791 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-prototypes" | $as_tr_sh`
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes" >&5
5793 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes... " >&6; }
5794 if eval \${$as_CACHEVAR+:} false; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5798 ax_check_save_flags=$CFLAGS
5799 CFLAGS="$CFLAGS $CWFLAGS -Wmissing-prototypes"
5800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h. */
5802 #include <stdio.h>
5804 main ()
5806 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5808 return 0;
5810 _ACEOF
5811 if ac_fn_c_try_compile "$LINENO"; then :
5812 eval "$as_CACHEVAR=yes"
5813 else
5814 eval "$as_CACHEVAR=no"
5816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817 CFLAGS=$ax_check_save_flags
5819 eval ac_res=\$$as_CACHEVAR
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5821 $as_echo "$ac_res" >&6; }
5822 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5823 CWFLAGS="$CWFLAGS -Wmissing-prototypes"
5824 else
5828 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnormalized=id" | $as_tr_sh`
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnormalized=id" >&5
5830 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnormalized=id... " >&6; }
5831 if eval \${$as_CACHEVAR+:} false; then :
5832 $as_echo_n "(cached) " >&6
5833 else
5835 ax_check_save_flags=$CFLAGS
5836 CFLAGS="$CFLAGS $CWFLAGS -Wnormalized=id"
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5839 #include <stdio.h>
5841 main ()
5843 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5845 return 0;
5847 _ACEOF
5848 if ac_fn_c_try_compile "$LINENO"; then :
5849 eval "$as_CACHEVAR=yes"
5850 else
5851 eval "$as_CACHEVAR=no"
5853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5854 CFLAGS=$ax_check_save_flags
5856 eval ac_res=\$$as_CACHEVAR
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5858 $as_echo "$ac_res" >&6; }
5859 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5860 CWFLAGS="$CWFLAGS -Wnormalized=id"
5861 else
5865 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Woverride-init" | $as_tr_sh`
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Woverride-init" >&5
5867 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Woverride-init... " >&6; }
5868 if eval \${$as_CACHEVAR+:} false; then :
5869 $as_echo_n "(cached) " >&6
5870 else
5872 ax_check_save_flags=$CFLAGS
5873 CFLAGS="$CFLAGS $CWFLAGS -Woverride-init"
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5876 #include <stdio.h>
5878 main ()
5880 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5882 return 0;
5884 _ACEOF
5885 if ac_fn_c_try_compile "$LINENO"; then :
5886 eval "$as_CACHEVAR=yes"
5887 else
5888 eval "$as_CACHEVAR=no"
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 CFLAGS=$ax_check_save_flags
5893 eval ac_res=\$$as_CACHEVAR
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5895 $as_echo "$ac_res" >&6; }
5896 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5897 CWFLAGS="$CWFLAGS -Woverride-init"
5898 else
5902 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wparentheses" | $as_tr_sh`
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wparentheses" >&5
5904 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wparentheses... " >&6; }
5905 if eval \${$as_CACHEVAR+:} false; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5909 ax_check_save_flags=$CFLAGS
5910 CFLAGS="$CFLAGS $CWFLAGS -Wparentheses"
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5913 #include <stdio.h>
5915 main ()
5917 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5919 return 0;
5921 _ACEOF
5922 if ac_fn_c_try_compile "$LINENO"; then :
5923 eval "$as_CACHEVAR=yes"
5924 else
5925 eval "$as_CACHEVAR=no"
5927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5928 CFLAGS=$ax_check_save_flags
5930 eval ac_res=\$$as_CACHEVAR
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5932 $as_echo "$ac_res" >&6; }
5933 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5934 CWFLAGS="$CWFLAGS -Wparentheses"
5935 else
5939 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wpointer-arith" | $as_tr_sh`
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wpointer-arith" >&5
5941 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wpointer-arith... " >&6; }
5942 if eval \${$as_CACHEVAR+:} false; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5946 ax_check_save_flags=$CFLAGS
5947 CFLAGS="$CFLAGS $CWFLAGS -Wpointer-arith"
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5950 #include <stdio.h>
5952 main ()
5954 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5956 return 0;
5958 _ACEOF
5959 if ac_fn_c_try_compile "$LINENO"; then :
5960 eval "$as_CACHEVAR=yes"
5961 else
5962 eval "$as_CACHEVAR=no"
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 CFLAGS=$ax_check_save_flags
5967 eval ac_res=\$$as_CACHEVAR
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5969 $as_echo "$ac_res" >&6; }
5970 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5971 CWFLAGS="$CWFLAGS -Wpointer-arith"
5972 else
5976 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wredundant-decls" | $as_tr_sh`
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wredundant-decls" >&5
5978 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wredundant-decls... " >&6; }
5979 if eval \${$as_CACHEVAR+:} false; then :
5980 $as_echo_n "(cached) " >&6
5981 else
5983 ax_check_save_flags=$CFLAGS
5984 CFLAGS="$CFLAGS $CWFLAGS -Wredundant-decls"
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5987 #include <stdio.h>
5989 main ()
5991 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5993 return 0;
5995 _ACEOF
5996 if ac_fn_c_try_compile "$LINENO"; then :
5997 eval "$as_CACHEVAR=yes"
5998 else
5999 eval "$as_CACHEVAR=no"
6001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002 CFLAGS=$ax_check_save_flags
6004 eval ac_res=\$$as_CACHEVAR
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6006 $as_echo "$ac_res" >&6; }
6007 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6008 CWFLAGS="$CWFLAGS -Wredundant-decls"
6009 else
6013 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wstrict-prototypes" | $as_tr_sh`
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes" >&5
6015 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes... " >&6; }
6016 if eval \${$as_CACHEVAR+:} false; then :
6017 $as_echo_n "(cached) " >&6
6018 else
6020 ax_check_save_flags=$CFLAGS
6021 CFLAGS="$CFLAGS $CWFLAGS -Wstrict-prototypes"
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6024 #include <stdio.h>
6026 main ()
6028 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6030 return 0;
6032 _ACEOF
6033 if ac_fn_c_try_compile "$LINENO"; then :
6034 eval "$as_CACHEVAR=yes"
6035 else
6036 eval "$as_CACHEVAR=no"
6038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6039 CFLAGS=$ax_check_save_flags
6041 eval ac_res=\$$as_CACHEVAR
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6043 $as_echo "$ac_res" >&6; }
6044 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6045 CWFLAGS="$CWFLAGS -Wstrict-prototypes"
6046 else
6050 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wswitch-enum" | $as_tr_sh`
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wswitch-enum" >&5
6052 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wswitch-enum... " >&6; }
6053 if eval \${$as_CACHEVAR+:} false; then :
6054 $as_echo_n "(cached) " >&6
6055 else
6057 ax_check_save_flags=$CFLAGS
6058 CFLAGS="$CFLAGS $CWFLAGS -Wswitch-enum"
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6061 #include <stdio.h>
6063 main ()
6065 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6067 return 0;
6069 _ACEOF
6070 if ac_fn_c_try_compile "$LINENO"; then :
6071 eval "$as_CACHEVAR=yes"
6072 else
6073 eval "$as_CACHEVAR=no"
6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 CFLAGS=$ax_check_save_flags
6078 eval ac_res=\$$as_CACHEVAR
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6080 $as_echo "$ac_res" >&6; }
6081 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6082 CWFLAGS="$CWFLAGS -Wswitch-enum"
6083 else
6087 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wvariable-decl" | $as_tr_sh`
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wvariable-decl" >&5
6089 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wvariable-decl... " >&6; }
6090 if eval \${$as_CACHEVAR+:} false; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6094 ax_check_save_flags=$CFLAGS
6095 CFLAGS="$CFLAGS $CWFLAGS -Wvariable-decl"
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h. */
6098 #include <stdio.h>
6100 main ()
6102 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6104 return 0;
6106 _ACEOF
6107 if ac_fn_c_try_compile "$LINENO"; then :
6108 eval "$as_CACHEVAR=yes"
6109 else
6110 eval "$as_CACHEVAR=no"
6112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113 CFLAGS=$ax_check_save_flags
6115 eval ac_res=\$$as_CACHEVAR
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6117 $as_echo "$ac_res" >&6; }
6118 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6119 CWFLAGS="$CWFLAGS -Wvariable-decl"
6120 else
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
6126 $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
6127 if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6131 ax_check_save_flags=$LDFLAGS
6132 LDFLAGS="$LDFLAGS -Wl,-z,relro"
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6135 #include <stdio.h>
6137 main ()
6139 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6141 return 0;
6143 _ACEOF
6144 if ac_fn_c_try_link "$LINENO"; then :
6145 ax_cv_check_ldflags___Wl__z_relro=yes
6146 else
6147 ax_cv_check_ldflags___Wl__z_relro=no
6149 rm -f core conftest.err conftest.$ac_objext \
6150 conftest$ac_exeext conftest.$ac_ext
6151 LDFLAGS=$ax_check_save_flags
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
6154 $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
6155 if test x"$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
6156 LDFLAGS="$LDFLAGS -Wl,-z,relro"
6157 else
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
6162 $as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
6163 if ${ax_cv_check_ldflags___Wl__z_now+:} false; then :
6164 $as_echo_n "(cached) " >&6
6165 else
6167 ax_check_save_flags=$LDFLAGS
6168 LDFLAGS="$LDFLAGS -Wl,-z,now"
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6171 #include <stdio.h>
6173 main ()
6175 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6177 return 0;
6179 _ACEOF
6180 if ac_fn_c_try_link "$LINENO"; then :
6181 ax_cv_check_ldflags___Wl__z_now=yes
6182 else
6183 ax_cv_check_ldflags___Wl__z_now=no
6185 rm -f core conftest.err conftest.$ac_objext \
6186 conftest$ac_exeext conftest.$ac_ext
6187 LDFLAGS=$ax_check_save_flags
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
6190 $as_echo "$ax_cv_check_ldflags___Wl__z_now" >&6; }
6191 if test x"$ax_cv_check_ldflags___Wl__z_now" = xyes; then :
6192 LDFLAGS="$LDFLAGS -Wl,-z,now"
6193 else
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5
6198 $as_echo_n "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; }
6199 if ${ax_cv_check_ldflags___Wl__z_noexecstack+:} false; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6203 ax_check_save_flags=$LDFLAGS
6204 LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6207 #include <stdio.h>
6209 main ()
6211 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6213 return 0;
6215 _ACEOF
6216 if ac_fn_c_try_link "$LINENO"; then :
6217 ax_cv_check_ldflags___Wl__z_noexecstack=yes
6218 else
6219 ax_cv_check_ldflags___Wl__z_noexecstack=no
6221 rm -f core conftest.err conftest.$ac_objext \
6222 conftest$ac_exeext conftest.$ac_ext
6223 LDFLAGS=$ax_check_save_flags
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
6226 $as_echo "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
6227 if test x"$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes; then :
6228 LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
6229 else
6234 case `pwd` in
6235 *\ * | *\ *)
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6237 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6238 esac
6242 macro_version='2.4.2'
6243 macro_revision='1.3337'
6257 ltmain="$ac_aux_dir/ltmain.sh"
6259 # Backslashify metacharacters that are still active within
6260 # double-quoted strings.
6261 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6263 # Same as above, but do not quote variable references.
6264 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6266 # Sed substitution to delay expansion of an escaped shell variable in a
6267 # double_quote_subst'ed string.
6268 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6270 # Sed substitution to delay expansion of an escaped single quote.
6271 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6273 # Sed substitution to avoid accidental globbing in evaled expressions
6274 no_glob_subst='s/\*/\\\*/g'
6276 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6277 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6278 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6281 $as_echo_n "checking how to print strings... " >&6; }
6282 # Test print first, because it will be a builtin if present.
6283 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6284 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6285 ECHO='print -r --'
6286 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6287 ECHO='printf %s\n'
6288 else
6289 # Use this function as a fallback that always works.
6290 func_fallback_echo ()
6292 eval 'cat <<_LTECHO_EOF
6294 _LTECHO_EOF'
6296 ECHO='func_fallback_echo'
6299 # func_echo_all arg...
6300 # Invoke $ECHO with all args, space-separated.
6301 func_echo_all ()
6303 $ECHO ""
6306 case "$ECHO" in
6307 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6308 $as_echo "printf" >&6; } ;;
6309 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6310 $as_echo "print -r" >&6; } ;;
6311 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6312 $as_echo "cat" >&6; } ;;
6313 esac
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6329 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6330 if ${ac_cv_path_SED+:} false; then :
6331 $as_echo_n "(cached) " >&6
6332 else
6333 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6334 for ac_i in 1 2 3 4 5 6 7; do
6335 ac_script="$ac_script$as_nl$ac_script"
6336 done
6337 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6338 { ac_script=; unset ac_script;}
6339 if test -z "$SED"; then
6340 ac_path_SED_found=false
6341 # Loop through the user's path and test for each of PROGNAME-LIST
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_prog in sed gsed; do
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6350 as_fn_executable_p "$ac_path_SED" || continue
6351 # Check for GNU ac_path_SED and select it if it is found.
6352 # Check for GNU $ac_path_SED
6353 case `"$ac_path_SED" --version 2>&1` in
6354 *GNU*)
6355 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6357 ac_count=0
6358 $as_echo_n 0123456789 >"conftest.in"
6359 while :
6361 cat "conftest.in" "conftest.in" >"conftest.tmp"
6362 mv "conftest.tmp" "conftest.in"
6363 cp "conftest.in" "conftest.nl"
6364 $as_echo '' >> "conftest.nl"
6365 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6366 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6367 as_fn_arith $ac_count + 1 && ac_count=$as_val
6368 if test $ac_count -gt ${ac_path_SED_max-0}; then
6369 # Best one so far, save it but keep looking for a better one
6370 ac_cv_path_SED="$ac_path_SED"
6371 ac_path_SED_max=$ac_count
6373 # 10*(2^10) chars as input seems more than enough
6374 test $ac_count -gt 10 && break
6375 done
6376 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6377 esac
6379 $ac_path_SED_found && break 3
6380 done
6381 done
6382 done
6383 IFS=$as_save_IFS
6384 if test -z "$ac_cv_path_SED"; then
6385 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6387 else
6388 ac_cv_path_SED=$SED
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6393 $as_echo "$ac_cv_path_SED" >&6; }
6394 SED="$ac_cv_path_SED"
6395 rm -f conftest.sed
6397 test -z "$SED" && SED=sed
6398 Xsed="$SED -e 1s/^X//"
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6411 $as_echo_n "checking for fgrep... " >&6; }
6412 if ${ac_cv_path_FGREP+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6416 then ac_cv_path_FGREP="$GREP -F"
6417 else
6418 if test -z "$FGREP"; then
6419 ac_path_FGREP_found=false
6420 # Loop through the user's path and test for each of PROGNAME-LIST
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_prog in fgrep; do
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6429 as_fn_executable_p "$ac_path_FGREP" || continue
6430 # Check for GNU ac_path_FGREP and select it if it is found.
6431 # Check for GNU $ac_path_FGREP
6432 case `"$ac_path_FGREP" --version 2>&1` in
6433 *GNU*)
6434 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6436 ac_count=0
6437 $as_echo_n 0123456789 >"conftest.in"
6438 while :
6440 cat "conftest.in" "conftest.in" >"conftest.tmp"
6441 mv "conftest.tmp" "conftest.in"
6442 cp "conftest.in" "conftest.nl"
6443 $as_echo 'FGREP' >> "conftest.nl"
6444 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6446 as_fn_arith $ac_count + 1 && ac_count=$as_val
6447 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6448 # Best one so far, save it but keep looking for a better one
6449 ac_cv_path_FGREP="$ac_path_FGREP"
6450 ac_path_FGREP_max=$ac_count
6452 # 10*(2^10) chars as input seems more than enough
6453 test $ac_count -gt 10 && break
6454 done
6455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6456 esac
6458 $ac_path_FGREP_found && break 3
6459 done
6460 done
6461 done
6462 IFS=$as_save_IFS
6463 if test -z "$ac_cv_path_FGREP"; then
6464 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6466 else
6467 ac_cv_path_FGREP=$FGREP
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6473 $as_echo "$ac_cv_path_FGREP" >&6; }
6474 FGREP="$ac_cv_path_FGREP"
6477 test -z "$GREP" && GREP=grep
6497 # Check whether --with-gnu-ld was given.
6498 if test "${with_gnu_ld+set}" = set; then :
6499 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6500 else
6501 with_gnu_ld=no
6504 ac_prog=ld
6505 if test "$GCC" = yes; then
6506 # Check if gcc -print-prog-name=ld gives a path.
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6508 $as_echo_n "checking for ld used by $CC... " >&6; }
6509 case $host in
6510 *-*-mingw*)
6511 # gcc leaves a trailing carriage return which upsets mingw
6512 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6514 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6515 esac
6516 case $ac_prog in
6517 # Accept absolute paths.
6518 [\\/]* | ?:[\\/]*)
6519 re_direlt='/[^/][^/]*/\.\./'
6520 # Canonicalize the pathname of ld
6521 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6522 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6523 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6524 done
6525 test -z "$LD" && LD="$ac_prog"
6528 # If it fails, then pretend we aren't using GCC.
6529 ac_prog=ld
6532 # If it is relative, then search for the first ld in PATH.
6533 with_gnu_ld=unknown
6535 esac
6536 elif test "$with_gnu_ld" = yes; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6538 $as_echo_n "checking for GNU ld... " >&6; }
6539 else
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6541 $as_echo_n "checking for non-GNU ld... " >&6; }
6543 if ${lt_cv_path_LD+:} false; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 if test -z "$LD"; then
6547 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6548 for ac_dir in $PATH; do
6549 IFS="$lt_save_ifs"
6550 test -z "$ac_dir" && ac_dir=.
6551 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6552 lt_cv_path_LD="$ac_dir/$ac_prog"
6553 # Check to see if the program is GNU ld. I'd rather use --version,
6554 # but apparently some variants of GNU ld only accept -v.
6555 # Break only if it was the GNU/non-GNU ld that we prefer.
6556 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6557 *GNU* | *'with BFD'*)
6558 test "$with_gnu_ld" != no && break
6561 test "$with_gnu_ld" != yes && break
6563 esac
6565 done
6566 IFS="$lt_save_ifs"
6567 else
6568 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6572 LD="$lt_cv_path_LD"
6573 if test -n "$LD"; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6575 $as_echo "$LD" >&6; }
6576 else
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6580 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6582 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6583 if ${lt_cv_prog_gnu_ld+:} false; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6587 case `$LD -v 2>&1 </dev/null` in
6588 *GNU* | *'with BFD'*)
6589 lt_cv_prog_gnu_ld=yes
6592 lt_cv_prog_gnu_ld=no
6594 esac
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6597 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6598 with_gnu_ld=$lt_cv_prog_gnu_ld
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6609 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6610 if ${lt_cv_path_NM+:} false; then :
6611 $as_echo_n "(cached) " >&6
6612 else
6613 if test -n "$NM"; then
6614 # Let the user override the test.
6615 lt_cv_path_NM="$NM"
6616 else
6617 lt_nm_to_check="${ac_tool_prefix}nm"
6618 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6619 lt_nm_to_check="$lt_nm_to_check nm"
6621 for lt_tmp_nm in $lt_nm_to_check; do
6622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6623 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6624 IFS="$lt_save_ifs"
6625 test -z "$ac_dir" && ac_dir=.
6626 tmp_nm="$ac_dir/$lt_tmp_nm"
6627 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6628 # Check to see if the nm accepts a BSD-compat flag.
6629 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6630 # nm: unknown option "B" ignored
6631 # Tru64's nm complains that /dev/null is an invalid object file
6632 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6633 */dev/null* | *'Invalid file or object type'*)
6634 lt_cv_path_NM="$tmp_nm -B"
6635 break
6638 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6639 */dev/null*)
6640 lt_cv_path_NM="$tmp_nm -p"
6641 break
6644 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6645 continue # so that we can try to find one that supports BSD flags
6647 esac
6649 esac
6651 done
6652 IFS="$lt_save_ifs"
6653 done
6654 : ${lt_cv_path_NM=no}
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6658 $as_echo "$lt_cv_path_NM" >&6; }
6659 if test "$lt_cv_path_NM" != "no"; then
6660 NM="$lt_cv_path_NM"
6661 else
6662 # Didn't find any BSD compatible name lister, look for dumpbin.
6663 if test -n "$DUMPBIN"; then :
6664 # Let the user override the test.
6665 else
6666 if test -n "$ac_tool_prefix"; then
6667 for ac_prog in dumpbin "link -dump"
6669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 $as_echo_n "checking for $ac_word... " >&6; }
6673 if ${ac_cv_prog_DUMPBIN+:} false; then :
6674 $as_echo_n "(cached) " >&6
6675 else
6676 if test -n "$DUMPBIN"; then
6677 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6678 else
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6682 IFS=$as_save_IFS
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6686 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 break 2
6690 done
6691 done
6692 IFS=$as_save_IFS
6696 DUMPBIN=$ac_cv_prog_DUMPBIN
6697 if test -n "$DUMPBIN"; then
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6699 $as_echo "$DUMPBIN" >&6; }
6700 else
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6706 test -n "$DUMPBIN" && break
6707 done
6709 if test -z "$DUMPBIN"; then
6710 ac_ct_DUMPBIN=$DUMPBIN
6711 for ac_prog in dumpbin "link -dump"
6713 # Extract the first word of "$ac_prog", so it can be a program name with args.
6714 set dummy $ac_prog; ac_word=$2
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720 if test -n "$ac_ct_DUMPBIN"; then
6721 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 break 2
6734 done
6735 done
6736 IFS=$as_save_IFS
6740 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6741 if test -n "$ac_ct_DUMPBIN"; then
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6743 $as_echo "$ac_ct_DUMPBIN" >&6; }
6744 else
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746 $as_echo "no" >&6; }
6750 test -n "$ac_ct_DUMPBIN" && break
6751 done
6753 if test "x$ac_ct_DUMPBIN" = x; then
6754 DUMPBIN=":"
6755 else
6756 case $cross_compiling:$ac_tool_warned in
6757 yes:)
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6760 ac_tool_warned=yes ;;
6761 esac
6762 DUMPBIN=$ac_ct_DUMPBIN
6766 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6767 *COFF*)
6768 DUMPBIN="$DUMPBIN -symbols"
6771 DUMPBIN=:
6773 esac
6776 if test "$DUMPBIN" != ":"; then
6777 NM="$DUMPBIN"
6780 test -z "$NM" && NM=nm
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6788 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6789 if ${lt_cv_nm_interface+:} false; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 lt_cv_nm_interface="BSD nm"
6793 echo "int some_variable = 0;" > conftest.$ac_ext
6794 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6795 (eval "$ac_compile" 2>conftest.err)
6796 cat conftest.err >&5
6797 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6798 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6799 cat conftest.err >&5
6800 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6801 cat conftest.out >&5
6802 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6803 lt_cv_nm_interface="MS dumpbin"
6805 rm -f conftest*
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6808 $as_echo "$lt_cv_nm_interface" >&6; }
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6811 $as_echo_n "checking whether ln -s works... " >&6; }
6812 LN_S=$as_ln_s
6813 if test "$LN_S" = "ln -s"; then
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6815 $as_echo "yes" >&6; }
6816 else
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6818 $as_echo "no, using $LN_S" >&6; }
6821 # find the maximum length of command line arguments
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6823 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6824 if ${lt_cv_sys_max_cmd_len+:} false; then :
6825 $as_echo_n "(cached) " >&6
6826 else
6828 teststring="ABCD"
6830 case $build_os in
6831 msdosdjgpp*)
6832 # On DJGPP, this test can blow up pretty badly due to problems in libc
6833 # (any single argument exceeding 2000 bytes causes a buffer overrun
6834 # during glob expansion). Even if it were fixed, the result of this
6835 # check would be larger than it should be.
6836 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6839 gnu*)
6840 # Under GNU Hurd, this test is not required because there is
6841 # no limit to the length of command line arguments.
6842 # Libtool will interpret -1 as no limit whatsoever
6843 lt_cv_sys_max_cmd_len=-1;
6846 cygwin* | mingw* | cegcc*)
6847 # On Win9x/ME, this test blows up -- it succeeds, but takes
6848 # about 5 minutes as the teststring grows exponentially.
6849 # Worse, since 9x/ME are not pre-emptively multitasking,
6850 # you end up with a "frozen" computer, even though with patience
6851 # the test eventually succeeds (with a max line length of 256k).
6852 # Instead, let's just punt: use the minimum linelength reported by
6853 # all of the supported platforms: 8192 (on NT/2K/XP).
6854 lt_cv_sys_max_cmd_len=8192;
6857 mint*)
6858 # On MiNT this can take a long time and run out of memory.
6859 lt_cv_sys_max_cmd_len=8192;
6862 amigaos*)
6863 # On AmigaOS with pdksh, this test takes hours, literally.
6864 # So we just punt and use a minimum line length of 8192.
6865 lt_cv_sys_max_cmd_len=8192;
6868 netbsd* | freebsd* | openbsd* | darwin* | dragonfly* | bitrig*)
6869 # This has been around since 386BSD, at least. Likely further.
6870 if test -x /sbin/sysctl; then
6871 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6872 elif test -x /usr/sbin/sysctl; then
6873 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6874 else
6875 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6877 # And add a safety zone
6878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6879 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6882 interix*)
6883 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6884 lt_cv_sys_max_cmd_len=196608
6887 os2*)
6888 # The test takes a long time on OS/2.
6889 lt_cv_sys_max_cmd_len=8192
6892 osf*)
6893 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6894 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6895 # nice to cause kernel panics so lets avoid the loop below.
6896 # First set a reasonable default.
6897 lt_cv_sys_max_cmd_len=16384
6899 if test -x /sbin/sysconfig; then
6900 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6901 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6902 esac
6905 sco3.2v5*)
6906 lt_cv_sys_max_cmd_len=102400
6908 sysv5* | sco5v6* | sysv4.2uw2*)
6909 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6910 if test -n "$kargmax"; then
6911 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6912 else
6913 lt_cv_sys_max_cmd_len=32768
6917 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6918 if test -n "$lt_cv_sys_max_cmd_len"; then
6919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6920 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6921 else
6922 # Make teststring a little bigger before we do anything with it.
6923 # a 1K string should be a reasonable start.
6924 for i in 1 2 3 4 5 6 7 8 ; do
6925 teststring=$teststring$teststring
6926 done
6927 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6928 # If test is not a shell built-in, we'll probably end up computing a
6929 # maximum length that is only half of the actual maximum length, but
6930 # we can't tell.
6931 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6932 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6933 test $i != 17 # 1/2 MB should be enough
6935 i=`expr $i + 1`
6936 teststring=$teststring$teststring
6937 done
6938 # Only check the string length outside the loop.
6939 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6940 teststring=
6941 # Add a significant safety factor because C++ compilers can tack on
6942 # massive amounts of additional arguments before passing them to the
6943 # linker. It appears as though 1/2 is a usable value.
6944 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6947 esac
6951 if test -n $lt_cv_sys_max_cmd_len ; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6953 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6954 else
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6956 $as_echo "none" >&6; }
6958 max_cmd_len=$lt_cv_sys_max_cmd_len
6965 : ${CP="cp -f"}
6966 : ${MV="mv -f"}
6967 : ${RM="rm -f"}
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6970 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6971 # Try some XSI features
6972 xsi_shell=no
6973 ( _lt_dummy="a/b/c"
6974 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6975 = c,a/b,b/c, \
6976 && eval 'test $(( 1 + 1 )) -eq 2 \
6977 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6978 && xsi_shell=yes
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6980 $as_echo "$xsi_shell" >&6; }
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6984 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6985 lt_shell_append=no
6986 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6987 >/dev/null 2>&1 \
6988 && lt_shell_append=yes
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6990 $as_echo "$lt_shell_append" >&6; }
6993 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6994 lt_unset=unset
6995 else
6996 lt_unset=false
7003 # test EBCDIC or ASCII
7004 case `echo X|tr X '\101'` in
7005 A) # ASCII based system
7006 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7007 lt_SP2NL='tr \040 \012'
7008 lt_NL2SP='tr \015\012 \040\040'
7010 *) # EBCDIC based system
7011 lt_SP2NL='tr \100 \n'
7012 lt_NL2SP='tr \r\n \100\100'
7014 esac
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7025 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7026 if ${lt_cv_to_host_file_cmd+:} false; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 case $host in
7030 *-*-mingw* )
7031 case $build in
7032 *-*-mingw* ) # actually msys
7033 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7035 *-*-cygwin* )
7036 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7038 * ) # otherwise, assume *nix
7039 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7041 esac
7043 *-*-cygwin* )
7044 case $build in
7045 *-*-mingw* ) # actually msys
7046 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7048 *-*-cygwin* )
7049 lt_cv_to_host_file_cmd=func_convert_file_noop
7051 * ) # otherwise, assume *nix
7052 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7054 esac
7056 * ) # unhandled hosts (and "normal" native builds)
7057 lt_cv_to_host_file_cmd=func_convert_file_noop
7059 esac
7063 to_host_file_cmd=$lt_cv_to_host_file_cmd
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7065 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7072 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7073 if ${lt_cv_to_tool_file_cmd+:} false; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076 #assume ordinary cross tools, or native build.
7077 lt_cv_to_tool_file_cmd=func_convert_file_noop
7078 case $host in
7079 *-*-mingw* )
7080 case $build in
7081 *-*-mingw* ) # actually msys
7082 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7084 esac
7086 esac
7090 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7092 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7099 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7100 if ${lt_cv_ld_reload_flag+:} false; then :
7101 $as_echo_n "(cached) " >&6
7102 else
7103 lt_cv_ld_reload_flag='-r'
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7106 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7107 reload_flag=$lt_cv_ld_reload_flag
7108 case $reload_flag in
7109 "" | " "*) ;;
7110 *) reload_flag=" $reload_flag" ;;
7111 esac
7112 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7113 case $host_os in
7114 cygwin* | mingw* | pw32* | cegcc*)
7115 if test "$GCC" != yes; then
7116 reload_cmds=false
7119 darwin*)
7120 if test "$GCC" = yes; then
7121 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7122 else
7123 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7126 esac
7136 if test -n "$ac_tool_prefix"; then
7137 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7138 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140 $as_echo_n "checking for $ac_word... " >&6; }
7141 if ${ac_cv_prog_OBJDUMP+:} false; then :
7142 $as_echo_n "(cached) " >&6
7143 else
7144 if test -n "$OBJDUMP"; then
7145 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7158 done
7159 done
7160 IFS=$as_save_IFS
7164 OBJDUMP=$ac_cv_prog_OBJDUMP
7165 if test -n "$OBJDUMP"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7167 $as_echo "$OBJDUMP" >&6; }
7168 else
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7175 if test -z "$ac_cv_prog_OBJDUMP"; then
7176 ac_ct_OBJDUMP=$OBJDUMP
7177 # Extract the first word of "objdump", so it can be a program name with args.
7178 set dummy objdump; ac_word=$2
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180 $as_echo_n "checking for $ac_word... " >&6; }
7181 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 if test -n "$ac_ct_OBJDUMP"; then
7185 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7186 else
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH
7190 IFS=$as_save_IFS
7191 test -z "$as_dir" && as_dir=.
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7194 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 break 2
7198 done
7199 done
7200 IFS=$as_save_IFS
7204 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7205 if test -n "$ac_ct_OBJDUMP"; then
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7207 $as_echo "$ac_ct_OBJDUMP" >&6; }
7208 else
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7210 $as_echo "no" >&6; }
7213 if test "x$ac_ct_OBJDUMP" = x; then
7214 OBJDUMP="false"
7215 else
7216 case $cross_compiling:$ac_tool_warned in
7217 yes:)
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7220 ac_tool_warned=yes ;;
7221 esac
7222 OBJDUMP=$ac_ct_OBJDUMP
7224 else
7225 OBJDUMP="$ac_cv_prog_OBJDUMP"
7228 test -z "$OBJDUMP" && OBJDUMP=objdump
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7239 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7240 if ${lt_cv_deplibs_check_method+:} false; then :
7241 $as_echo_n "(cached) " >&6
7242 else
7243 lt_cv_file_magic_cmd='$MAGIC_CMD'
7244 lt_cv_file_magic_test_file=
7245 lt_cv_deplibs_check_method='unknown'
7246 # Need to set the preceding variable on all platforms that support
7247 # interlibrary dependencies.
7248 # 'none' -- dependencies not supported.
7249 # `unknown' -- same as none, but documents that we really don't know.
7250 # 'pass_all' -- all dependencies passed with no checks.
7251 # 'test_compile' -- check by making test program.
7252 # 'file_magic [[regex]]' -- check by looking for files in library path
7253 # which responds to the $file_magic_cmd with a given extended regex.
7254 # If you have `file' or equivalent on your system and you're not sure
7255 # whether `pass_all' will *always* work, you probably want this one.
7257 case $host_os in
7258 aix[4-9]*)
7259 lt_cv_deplibs_check_method=pass_all
7262 beos*)
7263 lt_cv_deplibs_check_method=pass_all
7266 bsdi[45]*)
7267 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7268 lt_cv_file_magic_cmd='/usr/bin/file -L'
7269 lt_cv_file_magic_test_file=/shlib/libc.so
7272 cygwin*)
7273 # func_win32_libid is a shell function defined in ltmain.sh
7274 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7275 lt_cv_file_magic_cmd='func_win32_libid'
7278 mingw* | pw32*)
7279 # Base MSYS/MinGW do not provide the 'file' command needed by
7280 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7281 # unless we find 'file', for example because we are cross-compiling.
7282 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7283 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7284 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7285 lt_cv_file_magic_cmd='func_win32_libid'
7286 else
7287 # Keep this pattern in sync with the one in func_win32_libid.
7288 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7289 lt_cv_file_magic_cmd='$OBJDUMP -f'
7293 cegcc*)
7294 # use the weaker test based on 'objdump'. See mingw*.
7295 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7296 lt_cv_file_magic_cmd='$OBJDUMP -f'
7299 darwin* | rhapsody*)
7300 lt_cv_deplibs_check_method=pass_all
7303 freebsd* | dragonfly*)
7304 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7305 case $host_cpu in
7306 i*86 )
7307 # Not sure whether the presence of OpenBSD here was a mistake.
7308 # Let's accept both of them until this is cleared up.
7309 lt_cv_deplibs_check_method='file_magic (Bitrig|FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7310 lt_cv_file_magic_cmd=/usr/bin/file
7311 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7313 esac
7314 else
7315 lt_cv_deplibs_check_method=pass_all
7319 gnu*)
7320 lt_cv_deplibs_check_method=pass_all
7323 haiku*)
7324 lt_cv_deplibs_check_method=pass_all
7327 hpux10.20* | hpux11*)
7328 lt_cv_file_magic_cmd=/usr/bin/file
7329 case $host_cpu in
7330 ia64*)
7331 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7332 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7334 hppa*64*)
7335 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]'
7336 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7339 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7340 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7342 esac
7345 interix[3-9]*)
7346 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7350 irix5* | irix6* | nonstopux*)
7351 case $LD in
7352 *-32|*"-32 ") libmagic=32-bit;;
7353 *-n32|*"-n32 ") libmagic=N32;;
7354 *-64|*"-64 ") libmagic=64-bit;;
7355 *) libmagic=never-match;;
7356 esac
7357 lt_cv_deplibs_check_method=pass_all
7360 # This must be glibc/ELF.
7361 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7362 lt_cv_deplibs_check_method=pass_all
7365 netbsd*)
7366 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7367 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7368 else
7369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7373 newos6*)
7374 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7375 lt_cv_file_magic_cmd=/usr/bin/file
7376 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7379 *nto* | *qnx*)
7380 lt_cv_deplibs_check_method=pass_all
7383 openbsd* | bitrig*)
7384 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7385 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7386 else
7387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7391 osf3* | osf4* | osf5*)
7392 lt_cv_deplibs_check_method=pass_all
7395 rdos*)
7396 lt_cv_deplibs_check_method=pass_all
7399 solaris*)
7400 lt_cv_deplibs_check_method=pass_all
7403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7404 lt_cv_deplibs_check_method=pass_all
7407 sysv4 | sysv4.3*)
7408 case $host_vendor in
7409 motorola)
7410 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]'
7411 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7413 ncr)
7414 lt_cv_deplibs_check_method=pass_all
7416 sequent)
7417 lt_cv_file_magic_cmd='/bin/file'
7418 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7420 sni)
7421 lt_cv_file_magic_cmd='/bin/file'
7422 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7423 lt_cv_file_magic_test_file=/lib/libc.so
7425 siemens)
7426 lt_cv_deplibs_check_method=pass_all
7429 lt_cv_deplibs_check_method=pass_all
7431 esac
7434 tpf*)
7435 lt_cv_deplibs_check_method=pass_all
7437 esac
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7441 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7443 file_magic_glob=
7444 want_nocaseglob=no
7445 if test "$build" = "$host"; then
7446 case $host_os in
7447 mingw* | pw32*)
7448 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7449 want_nocaseglob=yes
7450 else
7451 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7454 esac
7457 file_magic_cmd=$lt_cv_file_magic_cmd
7458 deplibs_check_method=$lt_cv_deplibs_check_method
7459 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7482 if test -n "$ac_tool_prefix"; then
7483 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7484 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7486 $as_echo_n "checking for $ac_word... " >&6; }
7487 if ${ac_cv_prog_DLLTOOL+:} false; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7490 if test -n "$DLLTOOL"; then
7491 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7492 else
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 for as_dir in $PATH
7496 IFS=$as_save_IFS
7497 test -z "$as_dir" && as_dir=.
7498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7500 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 break 2
7504 done
7505 done
7506 IFS=$as_save_IFS
7510 DLLTOOL=$ac_cv_prog_DLLTOOL
7511 if test -n "$DLLTOOL"; then
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7513 $as_echo "$DLLTOOL" >&6; }
7514 else
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516 $as_echo "no" >&6; }
7521 if test -z "$ac_cv_prog_DLLTOOL"; then
7522 ac_ct_DLLTOOL=$DLLTOOL
7523 # Extract the first word of "dlltool", so it can be a program name with args.
7524 set dummy dlltool; ac_word=$2
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7526 $as_echo_n "checking for $ac_word... " >&6; }
7527 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7528 $as_echo_n "(cached) " >&6
7529 else
7530 if test -n "$ac_ct_DLLTOOL"; then
7531 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7532 else
7533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534 for as_dir in $PATH
7536 IFS=$as_save_IFS
7537 test -z "$as_dir" && as_dir=.
7538 for ac_exec_ext in '' $ac_executable_extensions; do
7539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7540 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 break 2
7544 done
7545 done
7546 IFS=$as_save_IFS
7550 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7551 if test -n "$ac_ct_DLLTOOL"; then
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7553 $as_echo "$ac_ct_DLLTOOL" >&6; }
7554 else
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556 $as_echo "no" >&6; }
7559 if test "x$ac_ct_DLLTOOL" = x; then
7560 DLLTOOL="false"
7561 else
7562 case $cross_compiling:$ac_tool_warned in
7563 yes:)
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7566 ac_tool_warned=yes ;;
7567 esac
7568 DLLTOOL=$ac_ct_DLLTOOL
7570 else
7571 DLLTOOL="$ac_cv_prog_DLLTOOL"
7574 test -z "$DLLTOOL" && DLLTOOL=dlltool
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7586 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7587 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7588 $as_echo_n "(cached) " >&6
7589 else
7590 lt_cv_sharedlib_from_linklib_cmd='unknown'
7592 case $host_os in
7593 cygwin* | mingw* | pw32* | cegcc*)
7594 # two different shell functions defined in ltmain.sh
7595 # decide which to use based on capabilities of $DLLTOOL
7596 case `$DLLTOOL --help 2>&1` in
7597 *--identify-strict*)
7598 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7601 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7603 esac
7606 # fallback: assume linklib IS sharedlib
7607 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7609 esac
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7613 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7614 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7615 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7623 if test -n "$ac_tool_prefix"; then
7624 for ac_prog in ar
7626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629 $as_echo_n "checking for $ac_word... " >&6; }
7630 if ${ac_cv_prog_AR+:} false; then :
7631 $as_echo_n "(cached) " >&6
7632 else
7633 if test -n "$AR"; then
7634 ac_cv_prog_AR="$AR" # Let the user override the test.
7635 else
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7643 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7647 done
7648 done
7649 IFS=$as_save_IFS
7653 AR=$ac_cv_prog_AR
7654 if test -n "$AR"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7656 $as_echo "$AR" >&6; }
7657 else
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7663 test -n "$AR" && break
7664 done
7666 if test -z "$AR"; then
7667 ac_ct_AR=$AR
7668 for ac_prog in ar
7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
7671 set dummy $ac_prog; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7675 $as_echo_n "(cached) " >&6
7676 else
7677 if test -n "$ac_ct_AR"; then
7678 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7679 else
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7687 ac_cv_prog_ac_ct_AR="$ac_prog"
7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 break 2
7691 done
7692 done
7693 IFS=$as_save_IFS
7697 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7698 if test -n "$ac_ct_AR"; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7700 $as_echo "$ac_ct_AR" >&6; }
7701 else
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7707 test -n "$ac_ct_AR" && break
7708 done
7710 if test "x$ac_ct_AR" = x; then
7711 AR="false"
7712 else
7713 case $cross_compiling:$ac_tool_warned in
7714 yes:)
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717 ac_tool_warned=yes ;;
7718 esac
7719 AR=$ac_ct_AR
7723 : ${AR=ar}
7724 : ${AR_FLAGS=cru}
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7737 $as_echo_n "checking for archiver @FILE support... " >&6; }
7738 if ${lt_cv_ar_at_file+:} false; then :
7739 $as_echo_n "(cached) " >&6
7740 else
7741 lt_cv_ar_at_file=no
7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7746 main ()
7750 return 0;
7752 _ACEOF
7753 if ac_fn_c_try_compile "$LINENO"; then :
7754 echo conftest.$ac_objext > conftest.lst
7755 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7757 (eval $lt_ar_try) 2>&5
7758 ac_status=$?
7759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7760 test $ac_status = 0; }
7761 if test "$ac_status" -eq 0; then
7762 # Ensure the archiver fails upon bogus file names.
7763 rm -f conftest.$ac_objext libconftest.a
7764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7765 (eval $lt_ar_try) 2>&5
7766 ac_status=$?
7767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7768 test $ac_status = 0; }
7769 if test "$ac_status" -ne 0; then
7770 lt_cv_ar_at_file=@
7773 rm -f conftest.* libconftest.a
7776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7780 $as_echo "$lt_cv_ar_at_file" >&6; }
7782 if test "x$lt_cv_ar_at_file" = xno; then
7783 archiver_list_spec=
7784 else
7785 archiver_list_spec=$lt_cv_ar_at_file
7794 if test -n "$ac_tool_prefix"; then
7795 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7796 set dummy ${ac_tool_prefix}strip; ac_word=$2
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798 $as_echo_n "checking for $ac_word... " >&6; }
7799 if ${ac_cv_prog_STRIP+:} false; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 if test -n "$STRIP"; then
7803 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7804 else
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 for as_dir in $PATH
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7812 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 break 2
7816 done
7817 done
7818 IFS=$as_save_IFS
7822 STRIP=$ac_cv_prog_STRIP
7823 if test -n "$STRIP"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7825 $as_echo "$STRIP" >&6; }
7826 else
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7833 if test -z "$ac_cv_prog_STRIP"; then
7834 ac_ct_STRIP=$STRIP
7835 # Extract the first word of "strip", so it can be a program name with args.
7836 set dummy strip; ac_word=$2
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 $as_echo_n "checking for $ac_word... " >&6; }
7839 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 if test -n "$ac_ct_STRIP"; then
7843 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7844 else
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852 ac_cv_prog_ac_ct_STRIP="strip"
7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7856 done
7857 done
7858 IFS=$as_save_IFS
7862 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7863 if test -n "$ac_ct_STRIP"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7865 $as_echo "$ac_ct_STRIP" >&6; }
7866 else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7871 if test "x$ac_ct_STRIP" = x; then
7872 STRIP=":"
7873 else
7874 case $cross_compiling:$ac_tool_warned in
7875 yes:)
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7878 ac_tool_warned=yes ;;
7879 esac
7880 STRIP=$ac_ct_STRIP
7882 else
7883 STRIP="$ac_cv_prog_STRIP"
7886 test -z "$STRIP" && STRIP=:
7893 if test -n "$ac_tool_prefix"; then
7894 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7895 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7897 $as_echo_n "checking for $ac_word... " >&6; }
7898 if ${ac_cv_prog_RANLIB+:} false; then :
7899 $as_echo_n "(cached) " >&6
7900 else
7901 if test -n "$RANLIB"; then
7902 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7903 else
7904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905 for as_dir in $PATH
7907 IFS=$as_save_IFS
7908 test -z "$as_dir" && as_dir=.
7909 for ac_exec_ext in '' $ac_executable_extensions; do
7910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7911 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7913 break 2
7915 done
7916 done
7917 IFS=$as_save_IFS
7921 RANLIB=$ac_cv_prog_RANLIB
7922 if test -n "$RANLIB"; then
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7924 $as_echo "$RANLIB" >&6; }
7925 else
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7927 $as_echo "no" >&6; }
7932 if test -z "$ac_cv_prog_RANLIB"; then
7933 ac_ct_RANLIB=$RANLIB
7934 # Extract the first word of "ranlib", so it can be a program name with args.
7935 set dummy ranlib; ac_word=$2
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7937 $as_echo_n "checking for $ac_word... " >&6; }
7938 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7939 $as_echo_n "(cached) " >&6
7940 else
7941 if test -n "$ac_ct_RANLIB"; then
7942 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7943 else
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 for as_dir in $PATH
7947 IFS=$as_save_IFS
7948 test -z "$as_dir" && as_dir=.
7949 for ac_exec_ext in '' $ac_executable_extensions; do
7950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7951 ac_cv_prog_ac_ct_RANLIB="ranlib"
7952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7953 break 2
7955 done
7956 done
7957 IFS=$as_save_IFS
7961 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7962 if test -n "$ac_ct_RANLIB"; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7964 $as_echo "$ac_ct_RANLIB" >&6; }
7965 else
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7970 if test "x$ac_ct_RANLIB" = x; then
7971 RANLIB=":"
7972 else
7973 case $cross_compiling:$ac_tool_warned in
7974 yes:)
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7977 ac_tool_warned=yes ;;
7978 esac
7979 RANLIB=$ac_ct_RANLIB
7981 else
7982 RANLIB="$ac_cv_prog_RANLIB"
7985 test -z "$RANLIB" && RANLIB=:
7992 # Determine commands to create old-style static archives.
7993 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7994 old_postinstall_cmds='chmod 644 $oldlib'
7995 old_postuninstall_cmds=
7997 if test -n "$RANLIB"; then
7998 case $host_os in
7999 openbsd* | bitrig*)
8000 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8003 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8005 esac
8006 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8009 case $host_os in
8010 darwin*)
8011 lock_old_archive_extraction=yes ;;
8013 lock_old_archive_extraction=no ;;
8014 esac
8054 # If no C compiler was specified, use CC.
8055 LTCC=${LTCC-"$CC"}
8057 # If no C compiler flags were specified, use CFLAGS.
8058 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8060 # Allow CC to be a program name with arguments.
8061 compiler=$CC
8064 # Check for command to grab the raw symbol name followed by C symbol from nm.
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8066 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8067 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8071 # These are sane defaults that work on at least a few old systems.
8072 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8074 # Character class describing NM global symbol codes.
8075 symcode='[BCDEGRST]'
8077 # Regexp to match symbols that can be accessed directly from C.
8078 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8080 # Define system-specific variables.
8081 case $host_os in
8082 aix*)
8083 symcode='[BCDT]'
8085 cygwin* | mingw* | pw32* | cegcc*)
8086 symcode='[ABCDGISTW]'
8088 hpux*)
8089 if test "$host_cpu" = ia64; then
8090 symcode='[ABCDEGRST]'
8093 irix* | nonstopux*)
8094 symcode='[BCDEGRST]'
8096 osf*)
8097 symcode='[BCDEGQRST]'
8099 solaris*)
8100 symcode='[BDRT]'
8102 sco3.2v5*)
8103 symcode='[DT]'
8105 sysv4.2uw2*)
8106 symcode='[DT]'
8108 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8109 symcode='[ABDT]'
8111 sysv4)
8112 symcode='[DFNSTU]'
8114 esac
8116 # If we're using GNU nm, then use its standard symbol codes.
8117 case `$NM -V 2>&1` in
8118 *GNU* | *'with BFD'*)
8119 symcode='[ABCDGIRSTW]' ;;
8120 esac
8122 # Transform an extracted symbol line into a proper C declaration.
8123 # Some systems (esp. on ia64) link data and code symbols differently,
8124 # so use this general approach.
8125 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8127 # Transform an extracted symbol line into symbol name and symbol address
8128 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8129 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'"
8131 # Handle CRLF in mingw tool chain
8132 opt_cr=
8133 case $build_os in
8134 mingw*)
8135 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8137 esac
8139 # Try without a prefix underscore, then with it.
8140 for ac_symprfx in "" "_"; do
8142 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8143 symxfrm="\\1 $ac_symprfx\\2 \\2"
8145 # Write the raw and C identifiers.
8146 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8147 # Fake it for dumpbin and say T for any non-static function
8148 # and D for any global variable.
8149 # Also find C++ and __fastcall symbols from MSVC++,
8150 # which start with @ or ?.
8151 lt_cv_sys_global_symbol_pipe="$AWK '"\
8152 " {last_section=section; section=\$ 3};"\
8153 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8154 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8155 " \$ 0!~/External *\|/{next};"\
8156 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8157 " {if(hide[section]) next};"\
8158 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8159 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8160 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8161 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8162 " ' prfx=^$ac_symprfx"
8163 else
8164 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8166 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8168 # Check to see that the pipe works correctly.
8169 pipe_works=no
8171 rm -f conftest*
8172 cat > conftest.$ac_ext <<_LT_EOF
8173 #ifdef __cplusplus
8174 extern "C" {
8175 #endif
8176 char nm_test_var;
8177 void nm_test_func(void);
8178 void nm_test_func(void){}
8179 #ifdef __cplusplus
8181 #endif
8182 int main(){nm_test_var='a';nm_test_func();return(0);}
8183 _LT_EOF
8185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8186 (eval $ac_compile) 2>&5
8187 ac_status=$?
8188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8189 test $ac_status = 0; }; then
8190 # Now try to grab the symbols.
8191 nlist=conftest.nm
8192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8193 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8194 ac_status=$?
8195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8196 test $ac_status = 0; } && test -s "$nlist"; then
8197 # Try sorting and uniquifying the output.
8198 if sort "$nlist" | uniq > "$nlist"T; then
8199 mv -f "$nlist"T "$nlist"
8200 else
8201 rm -f "$nlist"T
8204 # Make sure that we snagged all the symbols we need.
8205 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8206 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8207 cat <<_LT_EOF > conftest.$ac_ext
8208 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8209 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8210 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8211 relocations are performed -- see ld's documentation on pseudo-relocs. */
8212 # define LT_DLSYM_CONST
8213 #elif defined(__osf__)
8214 /* This system does not cope well with relocations in const data. */
8215 # define LT_DLSYM_CONST
8216 #else
8217 # define LT_DLSYM_CONST const
8218 #endif
8220 #ifdef __cplusplus
8221 extern "C" {
8222 #endif
8224 _LT_EOF
8225 # Now generate the symbol file.
8226 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8228 cat <<_LT_EOF >> conftest.$ac_ext
8230 /* The mapping between symbol names and symbols. */
8231 LT_DLSYM_CONST struct {
8232 const char *name;
8233 void *address;
8235 lt__PROGRAM__LTX_preloaded_symbols[] =
8237 { "@PROGRAM@", (void *) 0 },
8238 _LT_EOF
8239 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8240 cat <<\_LT_EOF >> conftest.$ac_ext
8241 {0, (void *) 0}
8244 /* This works around a problem in FreeBSD linker */
8245 #ifdef FREEBSD_WORKAROUND
8246 static const void *lt_preloaded_setup() {
8247 return lt__PROGRAM__LTX_preloaded_symbols;
8249 #endif
8251 #ifdef __cplusplus
8253 #endif
8254 _LT_EOF
8255 # Now try linking the two files.
8256 mv conftest.$ac_objext conftstm.$ac_objext
8257 lt_globsym_save_LIBS=$LIBS
8258 lt_globsym_save_CFLAGS=$CFLAGS
8259 LIBS="conftstm.$ac_objext"
8260 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8262 (eval $ac_link) 2>&5
8263 ac_status=$?
8264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8265 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8266 pipe_works=yes
8268 LIBS=$lt_globsym_save_LIBS
8269 CFLAGS=$lt_globsym_save_CFLAGS
8270 else
8271 echo "cannot find nm_test_func in $nlist" >&5
8273 else
8274 echo "cannot find nm_test_var in $nlist" >&5
8276 else
8277 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8279 else
8280 echo "$progname: failed program was:" >&5
8281 cat conftest.$ac_ext >&5
8283 rm -rf conftest* conftst*
8285 # Do not use the global_symbol_pipe unless it works.
8286 if test "$pipe_works" = yes; then
8287 break
8288 else
8289 lt_cv_sys_global_symbol_pipe=
8291 done
8295 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8296 lt_cv_sys_global_symbol_to_cdecl=
8298 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8300 $as_echo "failed" >&6; }
8301 else
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8303 $as_echo "ok" >&6; }
8306 # Response file support.
8307 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8308 nm_file_list_spec='@'
8309 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8310 nm_file_list_spec='@'
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8340 $as_echo_n "checking for sysroot... " >&6; }
8342 # Check whether --with-sysroot was given.
8343 if test "${with_sysroot+set}" = set; then :
8344 withval=$with_sysroot;
8345 else
8346 with_sysroot=no
8350 lt_sysroot=
8351 case ${with_sysroot} in #(
8352 yes)
8353 if test "$GCC" = yes; then
8354 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8356 ;; #(
8358 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8359 ;; #(
8360 no|'')
8361 ;; #(
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8364 $as_echo "${with_sysroot}" >&6; }
8365 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8367 esac
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8370 $as_echo "${lt_sysroot:-no}" >&6; }
8376 # Check whether --enable-libtool-lock was given.
8377 if test "${enable_libtool_lock+set}" = set; then :
8378 enableval=$enable_libtool_lock;
8381 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8383 # Some flags need to be propagated to the compiler or linker for good
8384 # libtool support.
8385 case $host in
8386 ia64-*-hpux*)
8387 # Find out which ABI we are using.
8388 echo 'int i;' > conftest.$ac_ext
8389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8390 (eval $ac_compile) 2>&5
8391 ac_status=$?
8392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8393 test $ac_status = 0; }; then
8394 case `/usr/bin/file conftest.$ac_objext` in
8395 *ELF-32*)
8396 HPUX_IA64_MODE="32"
8398 *ELF-64*)
8399 HPUX_IA64_MODE="64"
8401 esac
8403 rm -rf conftest*
8405 *-*-irix6*)
8406 # Find out which ABI we are using.
8407 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8409 (eval $ac_compile) 2>&5
8410 ac_status=$?
8411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8412 test $ac_status = 0; }; then
8413 if test "$lt_cv_prog_gnu_ld" = yes; then
8414 case `/usr/bin/file conftest.$ac_objext` in
8415 *32-bit*)
8416 LD="${LD-ld} -melf32bsmip"
8418 *N32*)
8419 LD="${LD-ld} -melf32bmipn32"
8421 *64-bit*)
8422 LD="${LD-ld} -melf64bmip"
8424 esac
8425 else
8426 case `/usr/bin/file conftest.$ac_objext` in
8427 *32-bit*)
8428 LD="${LD-ld} -32"
8430 *N32*)
8431 LD="${LD-ld} -n32"
8433 *64-bit*)
8434 LD="${LD-ld} -64"
8436 esac
8439 rm -rf conftest*
8442 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8443 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8444 # Find out which ABI we are using.
8445 echo 'int i;' > conftest.$ac_ext
8446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8447 (eval $ac_compile) 2>&5
8448 ac_status=$?
8449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8450 test $ac_status = 0; }; then
8451 case `/usr/bin/file conftest.o` in
8452 *32-bit*)
8453 case $host in
8454 x86_64-*kfreebsd*-gnu)
8455 LD="${LD-ld} -m elf_i386_fbsd"
8457 x86_64-*linux*)
8458 LD="${LD-ld} -m elf_i386"
8460 ppc64-*linux*|powerpc64-*linux*)
8461 LD="${LD-ld} -m elf32ppclinux"
8463 s390x-*linux*)
8464 LD="${LD-ld} -m elf_s390"
8466 sparc64-*linux*)
8467 LD="${LD-ld} -m elf32_sparc"
8469 esac
8471 *64-bit*)
8472 case $host in
8473 x86_64-*kfreebsd*-gnu)
8474 LD="${LD-ld} -m elf_x86_64_fbsd"
8476 x86_64-*linux*)
8477 LD="${LD-ld} -m elf_x86_64"
8479 ppc*-*linux*|powerpc*-*linux*)
8480 LD="${LD-ld} -m elf64ppc"
8482 s390*-*linux*|s390*-*tpf*)
8483 LD="${LD-ld} -m elf64_s390"
8485 sparc*-*linux*)
8486 LD="${LD-ld} -m elf64_sparc"
8488 esac
8490 esac
8492 rm -rf conftest*
8495 *-*-sco3.2v5*)
8496 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8497 SAVE_CFLAGS="$CFLAGS"
8498 CFLAGS="$CFLAGS -belf"
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8500 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8501 if ${lt_cv_cc_needs_belf+:} false; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 ac_ext=c
8505 ac_cpp='$CPP $CPPFLAGS'
8506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8514 main ()
8518 return 0;
8520 _ACEOF
8521 if ac_fn_c_try_link "$LINENO"; then :
8522 lt_cv_cc_needs_belf=yes
8523 else
8524 lt_cv_cc_needs_belf=no
8526 rm -f core conftest.err conftest.$ac_objext \
8527 conftest$ac_exeext conftest.$ac_ext
8528 ac_ext=c
8529 ac_cpp='$CPP $CPPFLAGS'
8530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8536 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8537 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8538 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8539 CFLAGS="$SAVE_CFLAGS"
8542 *-*solaris*)
8543 # Find out which ABI we are using.
8544 echo 'int i;' > conftest.$ac_ext
8545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8546 (eval $ac_compile) 2>&5
8547 ac_status=$?
8548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8549 test $ac_status = 0; }; then
8550 case `/usr/bin/file conftest.o` in
8551 *64-bit*)
8552 case $lt_cv_prog_gnu_ld in
8553 yes*)
8554 case $host in
8555 i?86-*-solaris*)
8556 LD="${LD-ld} -m elf_x86_64"
8558 sparc*-*-solaris*)
8559 LD="${LD-ld} -m elf64_sparc"
8561 esac
8562 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8563 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8564 LD="${LD-ld}_sol2"
8568 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8569 LD="${LD-ld} -64"
8572 esac
8574 esac
8576 rm -rf conftest*
8578 esac
8580 need_locks="$enable_libtool_lock"
8582 if test -n "$ac_tool_prefix"; then
8583 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8584 set dummy ${ac_tool_prefix}mt; ac_word=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8588 $as_echo_n "(cached) " >&6
8589 else
8590 if test -n "$MANIFEST_TOOL"; then
8591 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8592 else
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594 for as_dir in $PATH
8596 IFS=$as_save_IFS
8597 test -z "$as_dir" && as_dir=.
8598 for ac_exec_ext in '' $ac_executable_extensions; do
8599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8600 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8602 break 2
8604 done
8605 done
8606 IFS=$as_save_IFS
8610 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8611 if test -n "$MANIFEST_TOOL"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8613 $as_echo "$MANIFEST_TOOL" >&6; }
8614 else
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8621 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8622 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8623 # Extract the first word of "mt", so it can be a program name with args.
8624 set dummy mt; ac_word=$2
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626 $as_echo_n "checking for $ac_word... " >&6; }
8627 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 if test -n "$ac_ct_MANIFEST_TOOL"; then
8631 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8632 else
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8636 IFS=$as_save_IFS
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8640 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 break 2
8644 done
8645 done
8646 IFS=$as_save_IFS
8650 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8651 if test -n "$ac_ct_MANIFEST_TOOL"; then
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8653 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8654 else
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656 $as_echo "no" >&6; }
8659 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8660 MANIFEST_TOOL=":"
8661 else
8662 case $cross_compiling:$ac_tool_warned in
8663 yes:)
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8666 ac_tool_warned=yes ;;
8667 esac
8668 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8670 else
8671 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8674 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8676 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8677 if ${lt_cv_path_mainfest_tool+:} false; then :
8678 $as_echo_n "(cached) " >&6
8679 else
8680 lt_cv_path_mainfest_tool=no
8681 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8682 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8683 cat conftest.err >&5
8684 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8685 lt_cv_path_mainfest_tool=yes
8687 rm -f conftest*
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8690 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8691 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8692 MANIFEST_TOOL=:
8700 case $host_os in
8701 rhapsody* | darwin*)
8702 if test -n "$ac_tool_prefix"; then
8703 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8704 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8706 $as_echo_n "checking for $ac_word... " >&6; }
8707 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8708 $as_echo_n "(cached) " >&6
8709 else
8710 if test -n "$DSYMUTIL"; then
8711 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8712 else
8713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714 for as_dir in $PATH
8716 IFS=$as_save_IFS
8717 test -z "$as_dir" && as_dir=.
8718 for ac_exec_ext in '' $ac_executable_extensions; do
8719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8720 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8722 break 2
8724 done
8725 done
8726 IFS=$as_save_IFS
8730 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8731 if test -n "$DSYMUTIL"; then
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8733 $as_echo "$DSYMUTIL" >&6; }
8734 else
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736 $as_echo "no" >&6; }
8741 if test -z "$ac_cv_prog_DSYMUTIL"; then
8742 ac_ct_DSYMUTIL=$DSYMUTIL
8743 # Extract the first word of "dsymutil", so it can be a program name with args.
8744 set dummy dsymutil; ac_word=$2
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8746 $as_echo_n "checking for $ac_word... " >&6; }
8747 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8748 $as_echo_n "(cached) " >&6
8749 else
8750 if test -n "$ac_ct_DSYMUTIL"; then
8751 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8752 else
8753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754 for as_dir in $PATH
8756 IFS=$as_save_IFS
8757 test -z "$as_dir" && as_dir=.
8758 for ac_exec_ext in '' $ac_executable_extensions; do
8759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8760 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8762 break 2
8764 done
8765 done
8766 IFS=$as_save_IFS
8770 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8771 if test -n "$ac_ct_DSYMUTIL"; then
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8773 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8774 else
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776 $as_echo "no" >&6; }
8779 if test "x$ac_ct_DSYMUTIL" = x; then
8780 DSYMUTIL=":"
8781 else
8782 case $cross_compiling:$ac_tool_warned in
8783 yes:)
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8786 ac_tool_warned=yes ;;
8787 esac
8788 DSYMUTIL=$ac_ct_DSYMUTIL
8790 else
8791 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8794 if test -n "$ac_tool_prefix"; then
8795 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8796 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8798 $as_echo_n "checking for $ac_word... " >&6; }
8799 if ${ac_cv_prog_NMEDIT+:} false; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 if test -n "$NMEDIT"; then
8803 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8804 else
8805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806 for as_dir in $PATH
8808 IFS=$as_save_IFS
8809 test -z "$as_dir" && as_dir=.
8810 for ac_exec_ext in '' $ac_executable_extensions; do
8811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8812 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8814 break 2
8816 done
8817 done
8818 IFS=$as_save_IFS
8822 NMEDIT=$ac_cv_prog_NMEDIT
8823 if test -n "$NMEDIT"; then
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8825 $as_echo "$NMEDIT" >&6; }
8826 else
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828 $as_echo "no" >&6; }
8833 if test -z "$ac_cv_prog_NMEDIT"; then
8834 ac_ct_NMEDIT=$NMEDIT
8835 # Extract the first word of "nmedit", so it can be a program name with args.
8836 set dummy nmedit; ac_word=$2
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8838 $as_echo_n "checking for $ac_word... " >&6; }
8839 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8840 $as_echo_n "(cached) " >&6
8841 else
8842 if test -n "$ac_ct_NMEDIT"; then
8843 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8844 else
8845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846 for as_dir in $PATH
8848 IFS=$as_save_IFS
8849 test -z "$as_dir" && as_dir=.
8850 for ac_exec_ext in '' $ac_executable_extensions; do
8851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8852 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8854 break 2
8856 done
8857 done
8858 IFS=$as_save_IFS
8862 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8863 if test -n "$ac_ct_NMEDIT"; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8865 $as_echo "$ac_ct_NMEDIT" >&6; }
8866 else
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868 $as_echo "no" >&6; }
8871 if test "x$ac_ct_NMEDIT" = x; then
8872 NMEDIT=":"
8873 else
8874 case $cross_compiling:$ac_tool_warned in
8875 yes:)
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8878 ac_tool_warned=yes ;;
8879 esac
8880 NMEDIT=$ac_ct_NMEDIT
8882 else
8883 NMEDIT="$ac_cv_prog_NMEDIT"
8886 if test -n "$ac_tool_prefix"; then
8887 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8888 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8890 $as_echo_n "checking for $ac_word... " >&6; }
8891 if ${ac_cv_prog_LIPO+:} false; then :
8892 $as_echo_n "(cached) " >&6
8893 else
8894 if test -n "$LIPO"; then
8895 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8896 else
8897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8898 for as_dir in $PATH
8900 IFS=$as_save_IFS
8901 test -z "$as_dir" && as_dir=.
8902 for ac_exec_ext in '' $ac_executable_extensions; do
8903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8904 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8906 break 2
8908 done
8909 done
8910 IFS=$as_save_IFS
8914 LIPO=$ac_cv_prog_LIPO
8915 if test -n "$LIPO"; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8917 $as_echo "$LIPO" >&6; }
8918 else
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8920 $as_echo "no" >&6; }
8925 if test -z "$ac_cv_prog_LIPO"; then
8926 ac_ct_LIPO=$LIPO
8927 # Extract the first word of "lipo", so it can be a program name with args.
8928 set dummy lipo; ac_word=$2
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8930 $as_echo_n "checking for $ac_word... " >&6; }
8931 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8932 $as_echo_n "(cached) " >&6
8933 else
8934 if test -n "$ac_ct_LIPO"; then
8935 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8936 else
8937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938 for as_dir in $PATH
8940 IFS=$as_save_IFS
8941 test -z "$as_dir" && as_dir=.
8942 for ac_exec_ext in '' $ac_executable_extensions; do
8943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8944 ac_cv_prog_ac_ct_LIPO="lipo"
8945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8946 break 2
8948 done
8949 done
8950 IFS=$as_save_IFS
8954 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8955 if test -n "$ac_ct_LIPO"; then
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8957 $as_echo "$ac_ct_LIPO" >&6; }
8958 else
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8960 $as_echo "no" >&6; }
8963 if test "x$ac_ct_LIPO" = x; then
8964 LIPO=":"
8965 else
8966 case $cross_compiling:$ac_tool_warned in
8967 yes:)
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8970 ac_tool_warned=yes ;;
8971 esac
8972 LIPO=$ac_ct_LIPO
8974 else
8975 LIPO="$ac_cv_prog_LIPO"
8978 if test -n "$ac_tool_prefix"; then
8979 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8980 set dummy ${ac_tool_prefix}otool; ac_word=$2
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8982 $as_echo_n "checking for $ac_word... " >&6; }
8983 if ${ac_cv_prog_OTOOL+:} false; then :
8984 $as_echo_n "(cached) " >&6
8985 else
8986 if test -n "$OTOOL"; then
8987 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8988 else
8989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990 for as_dir in $PATH
8992 IFS=$as_save_IFS
8993 test -z "$as_dir" && as_dir=.
8994 for ac_exec_ext in '' $ac_executable_extensions; do
8995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8996 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8998 break 2
9000 done
9001 done
9002 IFS=$as_save_IFS
9006 OTOOL=$ac_cv_prog_OTOOL
9007 if test -n "$OTOOL"; then
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9009 $as_echo "$OTOOL" >&6; }
9010 else
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012 $as_echo "no" >&6; }
9017 if test -z "$ac_cv_prog_OTOOL"; then
9018 ac_ct_OTOOL=$OTOOL
9019 # Extract the first word of "otool", so it can be a program name with args.
9020 set dummy otool; ac_word=$2
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022 $as_echo_n "checking for $ac_word... " >&6; }
9023 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9024 $as_echo_n "(cached) " >&6
9025 else
9026 if test -n "$ac_ct_OTOOL"; then
9027 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9028 else
9029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030 for as_dir in $PATH
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9036 ac_cv_prog_ac_ct_OTOOL="otool"
9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9038 break 2
9040 done
9041 done
9042 IFS=$as_save_IFS
9046 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9047 if test -n "$ac_ct_OTOOL"; then
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9049 $as_echo "$ac_ct_OTOOL" >&6; }
9050 else
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052 $as_echo "no" >&6; }
9055 if test "x$ac_ct_OTOOL" = x; then
9056 OTOOL=":"
9057 else
9058 case $cross_compiling:$ac_tool_warned in
9059 yes:)
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9062 ac_tool_warned=yes ;;
9063 esac
9064 OTOOL=$ac_ct_OTOOL
9066 else
9067 OTOOL="$ac_cv_prog_OTOOL"
9070 if test -n "$ac_tool_prefix"; then
9071 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9072 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9074 $as_echo_n "checking for $ac_word... " >&6; }
9075 if ${ac_cv_prog_OTOOL64+:} false; then :
9076 $as_echo_n "(cached) " >&6
9077 else
9078 if test -n "$OTOOL64"; then
9079 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9080 else
9081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082 for as_dir in $PATH
9084 IFS=$as_save_IFS
9085 test -z "$as_dir" && as_dir=.
9086 for ac_exec_ext in '' $ac_executable_extensions; do
9087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9088 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9090 break 2
9092 done
9093 done
9094 IFS=$as_save_IFS
9098 OTOOL64=$ac_cv_prog_OTOOL64
9099 if test -n "$OTOOL64"; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9101 $as_echo "$OTOOL64" >&6; }
9102 else
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104 $as_echo "no" >&6; }
9109 if test -z "$ac_cv_prog_OTOOL64"; then
9110 ac_ct_OTOOL64=$OTOOL64
9111 # Extract the first word of "otool64", so it can be a program name with args.
9112 set dummy otool64; ac_word=$2
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114 $as_echo_n "checking for $ac_word... " >&6; }
9115 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9118 if test -n "$ac_ct_OTOOL64"; then
9119 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9120 else
9121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122 for as_dir in $PATH
9124 IFS=$as_save_IFS
9125 test -z "$as_dir" && as_dir=.
9126 for ac_exec_ext in '' $ac_executable_extensions; do
9127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9128 ac_cv_prog_ac_ct_OTOOL64="otool64"
9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9130 break 2
9132 done
9133 done
9134 IFS=$as_save_IFS
9138 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9139 if test -n "$ac_ct_OTOOL64"; then
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9141 $as_echo "$ac_ct_OTOOL64" >&6; }
9142 else
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144 $as_echo "no" >&6; }
9147 if test "x$ac_ct_OTOOL64" = x; then
9148 OTOOL64=":"
9149 else
9150 case $cross_compiling:$ac_tool_warned in
9151 yes:)
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9154 ac_tool_warned=yes ;;
9155 esac
9156 OTOOL64=$ac_ct_OTOOL64
9158 else
9159 OTOOL64="$ac_cv_prog_OTOOL64"
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9189 $as_echo_n "checking for -single_module linker flag... " >&6; }
9190 if ${lt_cv_apple_cc_single_mod+:} false; then :
9191 $as_echo_n "(cached) " >&6
9192 else
9193 lt_cv_apple_cc_single_mod=no
9194 if test -z "${LT_MULTI_MODULE}"; then
9195 # By default we will add the -single_module flag. You can override
9196 # by either setting the environment variable LT_MULTI_MODULE
9197 # non-empty at configure time, or by adding -multi_module to the
9198 # link flags.
9199 rm -rf libconftest.dylib*
9200 echo "int foo(void){return 1;}" > conftest.c
9201 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9202 -dynamiclib -Wl,-single_module conftest.c" >&5
9203 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9204 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9205 _lt_result=$?
9206 # If there is a non-empty error log, and "single_module"
9207 # appears in it, assume the flag caused a linker warning
9208 if test -s conftest.err && $GREP single_module conftest.err; then
9209 cat conftest.err >&5
9210 # Otherwise, if the output was created with a 0 exit code from
9211 # the compiler, it worked.
9212 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9213 lt_cv_apple_cc_single_mod=yes
9214 else
9215 cat conftest.err >&5
9217 rm -rf libconftest.dylib*
9218 rm -f conftest.*
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9222 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9225 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9226 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 lt_cv_ld_exported_symbols_list=no
9230 save_LDFLAGS=$LDFLAGS
9231 echo "_main" > conftest.sym
9232 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9237 main ()
9241 return 0;
9243 _ACEOF
9244 if ac_fn_c_try_link "$LINENO"; then :
9245 lt_cv_ld_exported_symbols_list=yes
9246 else
9247 lt_cv_ld_exported_symbols_list=no
9249 rm -f core conftest.err conftest.$ac_objext \
9250 conftest$ac_exeext conftest.$ac_ext
9251 LDFLAGS="$save_LDFLAGS"
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9255 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9258 $as_echo_n "checking for -force_load linker flag... " >&6; }
9259 if ${lt_cv_ld_force_load+:} false; then :
9260 $as_echo_n "(cached) " >&6
9261 else
9262 lt_cv_ld_force_load=no
9263 cat > conftest.c << _LT_EOF
9264 int forced_loaded() { return 2;}
9265 _LT_EOF
9266 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9267 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9268 echo "$AR cru libconftest.a conftest.o" >&5
9269 $AR cru libconftest.a conftest.o 2>&5
9270 echo "$RANLIB libconftest.a" >&5
9271 $RANLIB libconftest.a 2>&5
9272 cat > conftest.c << _LT_EOF
9273 int main() { return 0;}
9274 _LT_EOF
9275 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9276 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9277 _lt_result=$?
9278 if test -s conftest.err && $GREP force_load conftest.err; then
9279 cat conftest.err >&5
9280 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9281 lt_cv_ld_force_load=yes
9282 else
9283 cat conftest.err >&5
9285 rm -f conftest.err libconftest.a conftest conftest.c
9286 rm -rf conftest.dSYM
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9290 $as_echo "$lt_cv_ld_force_load" >&6; }
9291 case $host_os in
9292 rhapsody* | darwin1.[012])
9293 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9294 darwin1.*)
9295 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9296 darwin*) # darwin 5.x on
9297 # if running on 10.5 or later, the deployment target defaults
9298 # to the OS version, if on x86, and 10.4, the deployment
9299 # target defaults to 10.4. Don't you love it?
9300 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9301 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9302 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9303 10.[012]*)
9304 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9305 10.*)
9306 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9307 esac
9309 esac
9310 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9311 _lt_dar_single_mod='$single_module'
9313 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9314 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9315 else
9316 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9318 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9319 _lt_dsymutil='~$DSYMUTIL $lib || :'
9320 else
9321 _lt_dsymutil=
9324 esac
9326 for ac_header in dlfcn.h
9327 do :
9328 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9330 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9331 cat >>confdefs.h <<_ACEOF
9332 #define HAVE_DLFCN_H 1
9333 _ACEOF
9337 done
9343 # Set options
9347 enable_dlopen=no
9350 enable_win32_dll=no
9353 # Check whether --enable-shared was given.
9354 if test "${enable_shared+set}" = set; then :
9355 enableval=$enable_shared; p=${PACKAGE-default}
9356 case $enableval in
9357 yes) enable_shared=yes ;;
9358 no) enable_shared=no ;;
9360 enable_shared=no
9361 # Look at the argument we got. We use all the common list separators.
9362 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9363 for pkg in $enableval; do
9364 IFS="$lt_save_ifs"
9365 if test "X$pkg" = "X$p"; then
9366 enable_shared=yes
9368 done
9369 IFS="$lt_save_ifs"
9371 esac
9372 else
9373 enable_shared=yes
9384 # Check whether --enable-static was given.
9385 if test "${enable_static+set}" = set; then :
9386 enableval=$enable_static; p=${PACKAGE-default}
9387 case $enableval in
9388 yes) enable_static=yes ;;
9389 no) enable_static=no ;;
9391 enable_static=no
9392 # Look at the argument we got. We use all the common list separators.
9393 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9394 for pkg in $enableval; do
9395 IFS="$lt_save_ifs"
9396 if test "X$pkg" = "X$p"; then
9397 enable_static=yes
9399 done
9400 IFS="$lt_save_ifs"
9402 esac
9403 else
9404 enable_static=yes
9416 # Check whether --with-pic was given.
9417 if test "${with_pic+set}" = set; then :
9418 withval=$with_pic; lt_p=${PACKAGE-default}
9419 case $withval in
9420 yes|no) pic_mode=$withval ;;
9422 pic_mode=default
9423 # Look at the argument we got. We use all the common list separators.
9424 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9425 for lt_pkg in $withval; do
9426 IFS="$lt_save_ifs"
9427 if test "X$lt_pkg" = "X$lt_p"; then
9428 pic_mode=yes
9430 done
9431 IFS="$lt_save_ifs"
9433 esac
9434 else
9435 pic_mode=default
9439 test -z "$pic_mode" && pic_mode=default
9447 # Check whether --enable-fast-install was given.
9448 if test "${enable_fast_install+set}" = set; then :
9449 enableval=$enable_fast_install; p=${PACKAGE-default}
9450 case $enableval in
9451 yes) enable_fast_install=yes ;;
9452 no) enable_fast_install=no ;;
9454 enable_fast_install=no
9455 # Look at the argument we got. We use all the common list separators.
9456 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9457 for pkg in $enableval; do
9458 IFS="$lt_save_ifs"
9459 if test "X$pkg" = "X$p"; then
9460 enable_fast_install=yes
9462 done
9463 IFS="$lt_save_ifs"
9465 esac
9466 else
9467 enable_fast_install=yes
9480 # This can be used to rebuild libtool when needed
9481 LIBTOOL_DEPS="$ltmain"
9483 # Always use our own libtool.
9484 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9515 test -z "$LN_S" && LN_S="ln -s"
9530 if test -n "${ZSH_VERSION+set}" ; then
9531 setopt NO_GLOB_SUBST
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9535 $as_echo_n "checking for objdir... " >&6; }
9536 if ${lt_cv_objdir+:} false; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 rm -f .libs 2>/dev/null
9540 mkdir .libs 2>/dev/null
9541 if test -d .libs; then
9542 lt_cv_objdir=.libs
9543 else
9544 # MS-DOS does not allow filenames that begin with a dot.
9545 lt_cv_objdir=_libs
9547 rmdir .libs 2>/dev/null
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9550 $as_echo "$lt_cv_objdir" >&6; }
9551 objdir=$lt_cv_objdir
9557 cat >>confdefs.h <<_ACEOF
9558 #define LT_OBJDIR "$lt_cv_objdir/"
9559 _ACEOF
9564 case $host_os in
9565 aix3*)
9566 # AIX sometimes has problems with the GCC collect2 program. For some
9567 # reason, if we set the COLLECT_NAMES environment variable, the problems
9568 # vanish in a puff of smoke.
9569 if test "X${COLLECT_NAMES+set}" != Xset; then
9570 COLLECT_NAMES=
9571 export COLLECT_NAMES
9574 esac
9576 # Global variables:
9577 ofile=libtool
9578 can_build_shared=yes
9580 # All known linkers require a `.a' archive for static linking (except MSVC,
9581 # which needs '.lib').
9582 libext=a
9584 with_gnu_ld="$lt_cv_prog_gnu_ld"
9586 old_CC="$CC"
9587 old_CFLAGS="$CFLAGS"
9589 # Set sane defaults for various variables
9590 test -z "$CC" && CC=cc
9591 test -z "$LTCC" && LTCC=$CC
9592 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9593 test -z "$LD" && LD=ld
9594 test -z "$ac_objext" && ac_objext=o
9596 for cc_temp in $compiler""; do
9597 case $cc_temp in
9598 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9599 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9600 \-*) ;;
9601 *) break;;
9602 esac
9603 done
9604 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9607 # Only perform the check for file, if the check method requires it
9608 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9609 case $deplibs_check_method in
9610 file_magic*)
9611 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9613 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9614 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9615 $as_echo_n "(cached) " >&6
9616 else
9617 case $MAGIC_CMD in
9618 [\\/*] | ?:[\\/]*)
9619 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9622 lt_save_MAGIC_CMD="$MAGIC_CMD"
9623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9624 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9625 for ac_dir in $ac_dummy; do
9626 IFS="$lt_save_ifs"
9627 test -z "$ac_dir" && ac_dir=.
9628 if test -f $ac_dir/${ac_tool_prefix}file; then
9629 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9630 if test -n "$file_magic_test_file"; then
9631 case $deplibs_check_method in
9632 "file_magic "*)
9633 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9634 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9635 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9636 $EGREP "$file_magic_regex" > /dev/null; then
9638 else
9639 cat <<_LT_EOF 1>&2
9641 *** Warning: the command libtool uses to detect shared libraries,
9642 *** $file_magic_cmd, produces output that libtool cannot recognize.
9643 *** The result is that libtool may fail to recognize shared libraries
9644 *** as such. This will affect the creation of libtool libraries that
9645 *** depend on shared libraries, but programs linked with such libtool
9646 *** libraries will work regardless of this problem. Nevertheless, you
9647 *** may want to report the problem to your system manager and/or to
9648 *** bug-libtool@gnu.org
9650 _LT_EOF
9651 fi ;;
9652 esac
9654 break
9656 done
9657 IFS="$lt_save_ifs"
9658 MAGIC_CMD="$lt_save_MAGIC_CMD"
9660 esac
9663 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9664 if test -n "$MAGIC_CMD"; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9666 $as_echo "$MAGIC_CMD" >&6; }
9667 else
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669 $as_echo "no" >&6; }
9676 if test -z "$lt_cv_path_MAGIC_CMD"; then
9677 if test -n "$ac_tool_prefix"; then
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9679 $as_echo_n "checking for file... " >&6; }
9680 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9681 $as_echo_n "(cached) " >&6
9682 else
9683 case $MAGIC_CMD in
9684 [\\/*] | ?:[\\/]*)
9685 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9688 lt_save_MAGIC_CMD="$MAGIC_CMD"
9689 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9690 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9691 for ac_dir in $ac_dummy; do
9692 IFS="$lt_save_ifs"
9693 test -z "$ac_dir" && ac_dir=.
9694 if test -f $ac_dir/file; then
9695 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9696 if test -n "$file_magic_test_file"; then
9697 case $deplibs_check_method in
9698 "file_magic "*)
9699 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9700 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9701 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9702 $EGREP "$file_magic_regex" > /dev/null; then
9704 else
9705 cat <<_LT_EOF 1>&2
9707 *** Warning: the command libtool uses to detect shared libraries,
9708 *** $file_magic_cmd, produces output that libtool cannot recognize.
9709 *** The result is that libtool may fail to recognize shared libraries
9710 *** as such. This will affect the creation of libtool libraries that
9711 *** depend on shared libraries, but programs linked with such libtool
9712 *** libraries will work regardless of this problem. Nevertheless, you
9713 *** may want to report the problem to your system manager and/or to
9714 *** bug-libtool@gnu.org
9716 _LT_EOF
9717 fi ;;
9718 esac
9720 break
9722 done
9723 IFS="$lt_save_ifs"
9724 MAGIC_CMD="$lt_save_MAGIC_CMD"
9726 esac
9729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9730 if test -n "$MAGIC_CMD"; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9732 $as_echo "$MAGIC_CMD" >&6; }
9733 else
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; }
9739 else
9740 MAGIC_CMD=:
9746 esac
9748 # Use C for the default configuration in the libtool script
9750 lt_save_CC="$CC"
9751 ac_ext=c
9752 ac_cpp='$CPP $CPPFLAGS'
9753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9758 # Source file extension for C test sources.
9759 ac_ext=c
9761 # Object file extension for compiled C test sources.
9762 objext=o
9763 objext=$objext
9765 # Code to be used in simple compile tests
9766 lt_simple_compile_test_code="int some_variable = 0;"
9768 # Code to be used in simple link tests
9769 lt_simple_link_test_code='int main(){return(0);}'
9777 # If no C compiler was specified, use CC.
9778 LTCC=${LTCC-"$CC"}
9780 # If no C compiler flags were specified, use CFLAGS.
9781 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9783 # Allow CC to be a program name with arguments.
9784 compiler=$CC
9786 # Save the default compiler, since it gets overwritten when the other
9787 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9788 compiler_DEFAULT=$CC
9790 # save warnings/boilerplate of simple test code
9791 ac_outfile=conftest.$ac_objext
9792 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9793 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9794 _lt_compiler_boilerplate=`cat conftest.err`
9795 $RM conftest*
9797 ac_outfile=conftest.$ac_objext
9798 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9799 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9800 _lt_linker_boilerplate=`cat conftest.err`
9801 $RM -r conftest*
9804 ## CAVEAT EMPTOR:
9805 ## There is no encapsulation within the following macros, do not change
9806 ## the running order or otherwise move them around unless you know exactly
9807 ## what you are doing...
9808 if test -n "$compiler"; then
9810 lt_prog_compiler_no_builtin_flag=
9812 if test "$GCC" = yes; then
9813 case $cc_basename in
9814 nvcc*)
9815 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9817 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9818 esac
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9821 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9822 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9823 $as_echo_n "(cached) " >&6
9824 else
9825 lt_cv_prog_compiler_rtti_exceptions=no
9826 ac_outfile=conftest.$ac_objext
9827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9828 lt_compiler_flag="-fno-rtti -fno-exceptions"
9829 # Insert the option either (1) after the last *FLAGS variable, or
9830 # (2) before a word containing "conftest.", or (3) at the end.
9831 # Note that $ac_compile itself does not contain backslashes and begins
9832 # with a dollar sign (not a hyphen), so the echo should work correctly.
9833 # The option is referenced via a variable to avoid confusing sed.
9834 lt_compile=`echo "$ac_compile" | $SED \
9835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9837 -e 's:$: $lt_compiler_flag:'`
9838 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9839 (eval "$lt_compile" 2>conftest.err)
9840 ac_status=$?
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 if (exit $ac_status) && test -s "$ac_outfile"; then
9844 # The compiler can only warn and ignore the option if not recognized
9845 # So say no if there are warnings other than the usual output.
9846 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9847 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9848 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9849 lt_cv_prog_compiler_rtti_exceptions=yes
9852 $RM conftest*
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9856 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9858 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9859 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9860 else
9871 lt_prog_compiler_wl=
9872 lt_prog_compiler_pic=
9873 lt_prog_compiler_static=
9876 if test "$GCC" = yes; then
9877 lt_prog_compiler_wl='-Wl,'
9878 lt_prog_compiler_static='-static'
9880 case $host_os in
9881 aix*)
9882 # All AIX code is PIC.
9883 if test "$host_cpu" = ia64; then
9884 # AIX 5 now supports IA64 processor
9885 lt_prog_compiler_static='-Bstatic'
9889 amigaos*)
9890 case $host_cpu in
9891 powerpc)
9892 # see comment about AmigaOS4 .so support
9893 lt_prog_compiler_pic='-fPIC'
9895 m68k)
9896 # FIXME: we need at least 68020 code to build shared libraries, but
9897 # adding the `-m68020' flag to GCC prevents building anything better,
9898 # like `-m68040'.
9899 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9901 esac
9904 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9905 # PIC is the default for these OSes.
9908 mingw* | cygwin* | pw32* | os2* | cegcc*)
9909 # This hack is so that the source file can tell whether it is being
9910 # built for inclusion in a dll (and should export symbols for example).
9911 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9912 # (--disable-auto-import) libraries
9913 lt_prog_compiler_pic='-DDLL_EXPORT'
9916 darwin* | rhapsody*)
9917 # PIC is the default on this platform
9918 # Common symbols not allowed in MH_DYLIB files
9919 lt_prog_compiler_pic='-fno-common'
9922 haiku*)
9923 # PIC is the default for Haiku.
9924 # The "-static" flag exists, but is broken.
9925 lt_prog_compiler_static=
9928 hpux*)
9929 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9930 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9931 # sets the default TLS model and affects inlining.
9932 case $host_cpu in
9933 hppa*64*)
9934 # +Z the default
9937 lt_prog_compiler_pic='-fPIC'
9939 esac
9942 interix[3-9]*)
9943 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9944 # Instead, we relocate shared libraries at runtime.
9947 msdosdjgpp*)
9948 # Just because we use GCC doesn't mean we suddenly get shared libraries
9949 # on systems that don't support them.
9950 lt_prog_compiler_can_build_shared=no
9951 enable_shared=no
9954 *nto* | *qnx*)
9955 # QNX uses GNU C++, but need to define -shared option too, otherwise
9956 # it will coredump.
9957 lt_prog_compiler_pic='-fPIC -shared'
9960 sysv4*MP*)
9961 if test -d /usr/nec; then
9962 lt_prog_compiler_pic=-Kconform_pic
9967 lt_prog_compiler_pic='-fPIC'
9969 esac
9971 case $cc_basename in
9972 nvcc*) # Cuda Compiler Driver 2.2
9973 lt_prog_compiler_wl='-Xlinker '
9974 if test -n "$lt_prog_compiler_pic"; then
9975 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9978 esac
9979 else
9980 # PORTME Check for flag to pass linker flags through the system compiler.
9981 case $host_os in
9982 aix*)
9983 lt_prog_compiler_wl='-Wl,'
9984 if test "$host_cpu" = ia64; then
9985 # AIX 5 now supports IA64 processor
9986 lt_prog_compiler_static='-Bstatic'
9987 else
9988 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9992 mingw* | cygwin* | pw32* | os2* | cegcc*)
9993 # This hack is so that the source file can tell whether it is being
9994 # built for inclusion in a dll (and should export symbols for example).
9995 lt_prog_compiler_pic='-DDLL_EXPORT'
9998 hpux9* | hpux10* | hpux11*)
9999 lt_prog_compiler_wl='-Wl,'
10000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10001 # not for PA HP-UX.
10002 case $host_cpu in
10003 hppa*64*|ia64*)
10004 # +Z the default
10007 lt_prog_compiler_pic='+Z'
10009 esac
10010 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10011 lt_prog_compiler_static='${wl}-a ${wl}archive'
10014 irix5* | irix6* | nonstopux*)
10015 lt_prog_compiler_wl='-Wl,'
10016 # PIC (with -KPIC) is the default.
10017 lt_prog_compiler_static='-non_shared'
10020 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10021 case $cc_basename in
10022 # old Intel for x86_64 which still supported -KPIC.
10023 ecc*)
10024 lt_prog_compiler_wl='-Wl,'
10025 lt_prog_compiler_pic='-KPIC'
10026 lt_prog_compiler_static='-static'
10028 # icc used to be incompatible with GCC.
10029 # ICC 10 doesn't accept -KPIC any more.
10030 icc* | ifort*)
10031 lt_prog_compiler_wl='-Wl,'
10032 lt_prog_compiler_pic='-fPIC'
10033 lt_prog_compiler_static='-static'
10035 # Lahey Fortran 8.1.
10036 lf95*)
10037 lt_prog_compiler_wl='-Wl,'
10038 lt_prog_compiler_pic='--shared'
10039 lt_prog_compiler_static='--static'
10041 nagfor*)
10042 # NAG Fortran compiler
10043 lt_prog_compiler_wl='-Wl,-Wl,,'
10044 lt_prog_compiler_pic='-PIC'
10045 lt_prog_compiler_static='-Bstatic'
10047 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10048 # Portland Group compilers (*not* the Pentium gcc compiler,
10049 # which looks to be a dead project)
10050 lt_prog_compiler_wl='-Wl,'
10051 lt_prog_compiler_pic='-fpic'
10052 lt_prog_compiler_static='-Bstatic'
10054 ccc*)
10055 lt_prog_compiler_wl='-Wl,'
10056 # All Alpha code is PIC.
10057 lt_prog_compiler_static='-non_shared'
10059 xl* | bgxl* | bgf* | mpixl*)
10060 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10061 lt_prog_compiler_wl='-Wl,'
10062 lt_prog_compiler_pic='-qpic'
10063 lt_prog_compiler_static='-qstaticlink'
10066 case `$CC -V 2>&1 | sed 5q` in
10067 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10068 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10069 lt_prog_compiler_pic='-KPIC'
10070 lt_prog_compiler_static='-Bstatic'
10071 lt_prog_compiler_wl=''
10073 *Sun\ F* | *Sun*Fortran*)
10074 lt_prog_compiler_pic='-KPIC'
10075 lt_prog_compiler_static='-Bstatic'
10076 lt_prog_compiler_wl='-Qoption ld '
10078 *Sun\ C*)
10079 # Sun C 5.9
10080 lt_prog_compiler_pic='-KPIC'
10081 lt_prog_compiler_static='-Bstatic'
10082 lt_prog_compiler_wl='-Wl,'
10084 *Intel*\ [CF]*Compiler*)
10085 lt_prog_compiler_wl='-Wl,'
10086 lt_prog_compiler_pic='-fPIC'
10087 lt_prog_compiler_static='-static'
10089 *Portland\ Group*)
10090 lt_prog_compiler_wl='-Wl,'
10091 lt_prog_compiler_pic='-fpic'
10092 lt_prog_compiler_static='-Bstatic'
10094 esac
10096 esac
10099 newsos6)
10100 lt_prog_compiler_pic='-KPIC'
10101 lt_prog_compiler_static='-Bstatic'
10104 *nto* | *qnx*)
10105 # QNX uses GNU C++, but need to define -shared option too, otherwise
10106 # it will coredump.
10107 lt_prog_compiler_pic='-fPIC -shared'
10110 osf3* | osf4* | osf5*)
10111 lt_prog_compiler_wl='-Wl,'
10112 # All OSF/1 code is PIC.
10113 lt_prog_compiler_static='-non_shared'
10116 rdos*)
10117 lt_prog_compiler_static='-non_shared'
10120 solaris*)
10121 lt_prog_compiler_pic='-KPIC'
10122 lt_prog_compiler_static='-Bstatic'
10123 case $cc_basename in
10124 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10125 lt_prog_compiler_wl='-Qoption ld ';;
10127 lt_prog_compiler_wl='-Wl,';;
10128 esac
10131 sunos4*)
10132 lt_prog_compiler_wl='-Qoption ld '
10133 lt_prog_compiler_pic='-PIC'
10134 lt_prog_compiler_static='-Bstatic'
10137 sysv4 | sysv4.2uw2* | sysv4.3*)
10138 lt_prog_compiler_wl='-Wl,'
10139 lt_prog_compiler_pic='-KPIC'
10140 lt_prog_compiler_static='-Bstatic'
10143 sysv4*MP*)
10144 if test -d /usr/nec ;then
10145 lt_prog_compiler_pic='-Kconform_pic'
10146 lt_prog_compiler_static='-Bstatic'
10150 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10151 lt_prog_compiler_wl='-Wl,'
10152 lt_prog_compiler_pic='-KPIC'
10153 lt_prog_compiler_static='-Bstatic'
10156 unicos*)
10157 lt_prog_compiler_wl='-Wl,'
10158 lt_prog_compiler_can_build_shared=no
10161 uts4*)
10162 lt_prog_compiler_pic='-pic'
10163 lt_prog_compiler_static='-Bstatic'
10167 lt_prog_compiler_can_build_shared=no
10169 esac
10172 case $host_os in
10173 # For platforms which do not support PIC, -DPIC is meaningless:
10174 *djgpp*)
10175 lt_prog_compiler_pic=
10178 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10180 esac
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10183 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10184 if ${lt_cv_prog_compiler_pic+:} false; then :
10185 $as_echo_n "(cached) " >&6
10186 else
10187 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10190 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10191 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10194 # Check to make sure the PIC flag actually works.
10196 if test -n "$lt_prog_compiler_pic"; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10198 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10199 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10200 $as_echo_n "(cached) " >&6
10201 else
10202 lt_cv_prog_compiler_pic_works=no
10203 ac_outfile=conftest.$ac_objext
10204 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10205 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10206 # Insert the option either (1) after the last *FLAGS variable, or
10207 # (2) before a word containing "conftest.", or (3) at the end.
10208 # Note that $ac_compile itself does not contain backslashes and begins
10209 # with a dollar sign (not a hyphen), so the echo should work correctly.
10210 # The option is referenced via a variable to avoid confusing sed.
10211 lt_compile=`echo "$ac_compile" | $SED \
10212 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10213 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10214 -e 's:$: $lt_compiler_flag:'`
10215 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10216 (eval "$lt_compile" 2>conftest.err)
10217 ac_status=$?
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 if (exit $ac_status) && test -s "$ac_outfile"; then
10221 # The compiler can only warn and ignore the option if not recognized
10222 # So say no if there are warnings other than the usual output.
10223 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10224 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10225 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10226 lt_cv_prog_compiler_pic_works=yes
10229 $RM conftest*
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10233 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10235 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10236 case $lt_prog_compiler_pic in
10237 "" | " "*) ;;
10238 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10239 esac
10240 else
10241 lt_prog_compiler_pic=
10242 lt_prog_compiler_can_build_shared=no
10258 # Check to make sure the static flag actually works.
10260 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10262 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10263 if ${lt_cv_prog_compiler_static_works+:} false; then :
10264 $as_echo_n "(cached) " >&6
10265 else
10266 lt_cv_prog_compiler_static_works=no
10267 save_LDFLAGS="$LDFLAGS"
10268 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10269 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10270 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10271 # The linker can only warn and ignore the option if not recognized
10272 # So say no if there are warnings
10273 if test -s conftest.err; then
10274 # Append any errors to the config.log.
10275 cat conftest.err 1>&5
10276 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10278 if diff conftest.exp conftest.er2 >/dev/null; then
10279 lt_cv_prog_compiler_static_works=yes
10281 else
10282 lt_cv_prog_compiler_static_works=yes
10285 $RM -r conftest*
10286 LDFLAGS="$save_LDFLAGS"
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10290 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10292 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10294 else
10295 lt_prog_compiler_static=
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10305 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10306 if ${lt_cv_prog_compiler_c_o+:} false; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 lt_cv_prog_compiler_c_o=no
10310 $RM -r conftest 2>/dev/null
10311 mkdir conftest
10312 cd conftest
10313 mkdir out
10314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10316 lt_compiler_flag="-o out/conftest2.$ac_objext"
10317 # Insert the option either (1) after the last *FLAGS variable, or
10318 # (2) before a word containing "conftest.", or (3) at the end.
10319 # Note that $ac_compile itself does not contain backslashes and begins
10320 # with a dollar sign (not a hyphen), so the echo should work correctly.
10321 lt_compile=`echo "$ac_compile" | $SED \
10322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10324 -e 's:$: $lt_compiler_flag:'`
10325 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10326 (eval "$lt_compile" 2>out/conftest.err)
10327 ac_status=$?
10328 cat out/conftest.err >&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10331 then
10332 # The compiler can only warn and ignore the option if not recognized
10333 # So say no if there are warnings
10334 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10335 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10336 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10337 lt_cv_prog_compiler_c_o=yes
10340 chmod u+w . 2>&5
10341 $RM conftest*
10342 # SGI C++ compiler will create directory out/ii_files/ for
10343 # template instantiation
10344 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10345 $RM out/* && rmdir out
10346 cd ..
10347 $RM -r conftest
10348 $RM conftest*
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10352 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10360 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10361 if ${lt_cv_prog_compiler_c_o+:} false; then :
10362 $as_echo_n "(cached) " >&6
10363 else
10364 lt_cv_prog_compiler_c_o=no
10365 $RM -r conftest 2>/dev/null
10366 mkdir conftest
10367 cd conftest
10368 mkdir out
10369 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10371 lt_compiler_flag="-o out/conftest2.$ac_objext"
10372 # Insert the option either (1) after the last *FLAGS variable, or
10373 # (2) before a word containing "conftest.", or (3) at the end.
10374 # Note that $ac_compile itself does not contain backslashes and begins
10375 # with a dollar sign (not a hyphen), so the echo should work correctly.
10376 lt_compile=`echo "$ac_compile" | $SED \
10377 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10378 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10379 -e 's:$: $lt_compiler_flag:'`
10380 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10381 (eval "$lt_compile" 2>out/conftest.err)
10382 ac_status=$?
10383 cat out/conftest.err >&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10386 then
10387 # The compiler can only warn and ignore the option if not recognized
10388 # So say no if there are warnings
10389 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10390 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10391 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10392 lt_cv_prog_compiler_c_o=yes
10395 chmod u+w . 2>&5
10396 $RM conftest*
10397 # SGI C++ compiler will create directory out/ii_files/ for
10398 # template instantiation
10399 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10400 $RM out/* && rmdir out
10401 cd ..
10402 $RM -r conftest
10403 $RM conftest*
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10407 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10412 hard_links="nottested"
10413 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10414 # do not overwrite the value of need_locks provided by the user
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10416 $as_echo_n "checking if we can lock with hard links... " >&6; }
10417 hard_links=yes
10418 $RM conftest*
10419 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10420 touch conftest.a
10421 ln conftest.a conftest.b 2>&5 || hard_links=no
10422 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10424 $as_echo "$hard_links" >&6; }
10425 if test "$hard_links" = no; then
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10427 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10428 need_locks=warn
10430 else
10431 need_locks=no
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10440 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10442 runpath_var=
10443 allow_undefined_flag=
10444 always_export_symbols=no
10445 archive_cmds=
10446 archive_expsym_cmds=
10447 compiler_needs_object=no
10448 enable_shared_with_static_runtimes=no
10449 export_dynamic_flag_spec=
10450 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10451 hardcode_automatic=no
10452 hardcode_direct=no
10453 hardcode_direct_absolute=no
10454 hardcode_libdir_flag_spec=
10455 hardcode_libdir_separator=
10456 hardcode_minus_L=no
10457 hardcode_shlibpath_var=unsupported
10458 inherit_rpath=no
10459 link_all_deplibs=unknown
10460 module_cmds=
10461 module_expsym_cmds=
10462 old_archive_from_new_cmds=
10463 old_archive_from_expsyms_cmds=
10464 thread_safe_flag_spec=
10465 whole_archive_flag_spec=
10466 # include_expsyms should be a list of space-separated symbols to be *always*
10467 # included in the symbol list
10468 include_expsyms=
10469 # exclude_expsyms can be an extended regexp of symbols to exclude
10470 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10471 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10472 # as well as any symbol that contains `d'.
10473 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10474 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10475 # platforms (ab)use it in PIC code, but their linkers get confused if
10476 # the symbol is explicitly referenced. Since portable code cannot
10477 # rely on this symbol name, it's probably fine to never include it in
10478 # preloaded symbol tables.
10479 # Exclude shared library initialization/finalization symbols.
10480 extract_expsyms_cmds=
10482 case $host_os in
10483 cygwin* | mingw* | pw32* | cegcc*)
10484 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10485 # When not using gcc, we currently assume that we are using
10486 # Microsoft Visual C++.
10487 if test "$GCC" != yes; then
10488 with_gnu_ld=no
10491 interix*)
10492 # we just hope/assume this is gcc and not c89 (= MSVC++)
10493 with_gnu_ld=yes
10495 openbsd* | bitrig*)
10496 with_gnu_ld=no
10498 esac
10500 ld_shlibs=yes
10502 # On some targets, GNU ld is compatible enough with the native linker
10503 # that we're better off using the native interface for both.
10504 lt_use_gnu_ld_interface=no
10505 if test "$with_gnu_ld" = yes; then
10506 case $host_os in
10507 aix*)
10508 # The AIX port of GNU ld has always aspired to compatibility
10509 # with the native linker. However, as the warning in the GNU ld
10510 # block says, versions before 2.19.5* couldn't really create working
10511 # shared libraries, regardless of the interface used.
10512 case `$LD -v 2>&1` in
10513 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10514 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10515 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10517 lt_use_gnu_ld_interface=yes
10519 esac
10522 lt_use_gnu_ld_interface=yes
10524 esac
10527 if test "$lt_use_gnu_ld_interface" = yes; then
10528 # If archive_cmds runs LD, not CC, wlarc should be empty
10529 wlarc='${wl}'
10531 # Set some defaults for GNU ld with shared library support. These
10532 # are reset later if shared libraries are not supported. Putting them
10533 # here allows them to be overridden if necessary.
10534 runpath_var=LD_RUN_PATH
10535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10536 export_dynamic_flag_spec='${wl}--export-dynamic'
10537 # ancient GNU ld didn't support --whole-archive et. al.
10538 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10539 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10540 else
10541 whole_archive_flag_spec=
10543 supports_anon_versioning=no
10544 case `$LD -v 2>&1` in
10545 *GNU\ gold*) supports_anon_versioning=yes ;;
10546 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10547 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10548 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10549 *\ 2.11.*) ;; # other 2.11 versions
10550 *) supports_anon_versioning=yes ;;
10551 esac
10553 # See if GNU ld supports shared libraries.
10554 case $host_os in
10555 aix[3-9]*)
10556 # On AIX/PPC, the GNU linker is very broken
10557 if test "$host_cpu" != ia64; then
10558 ld_shlibs=no
10559 cat <<_LT_EOF 1>&2
10561 *** Warning: the GNU linker, at least up to release 2.19, is reported
10562 *** to be unable to reliably create shared libraries on AIX.
10563 *** Therefore, libtool is disabling shared libraries support. If you
10564 *** really care for shared libraries, you may want to install binutils
10565 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10566 *** You will then need to restart the configuration process.
10568 _LT_EOF
10572 amigaos*)
10573 case $host_cpu in
10574 powerpc)
10575 # see comment about AmigaOS4 .so support
10576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10577 archive_expsym_cmds=''
10579 m68k)
10580 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)'
10581 hardcode_libdir_flag_spec='-L$libdir'
10582 hardcode_minus_L=yes
10584 esac
10587 beos*)
10588 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10589 allow_undefined_flag=unsupported
10590 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10591 # support --undefined. This deserves some investigation. FIXME
10592 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10593 else
10594 ld_shlibs=no
10598 cygwin* | mingw* | pw32* | cegcc*)
10599 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10600 # as there is no search path for DLLs.
10601 hardcode_libdir_flag_spec='-L$libdir'
10602 export_dynamic_flag_spec='${wl}--export-all-symbols'
10603 allow_undefined_flag=unsupported
10604 always_export_symbols=no
10605 enable_shared_with_static_runtimes=yes
10606 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'
10607 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10609 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10610 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10611 # If the export-symbols file already is a .def file (1st line
10612 # is EXPORTS), use it as is; otherwise, prepend...
10613 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10614 cp $export_symbols $output_objdir/$soname.def;
10615 else
10616 echo EXPORTS > $output_objdir/$soname.def;
10617 cat $export_symbols >> $output_objdir/$soname.def;
10619 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10620 else
10621 ld_shlibs=no
10625 haiku*)
10626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10627 link_all_deplibs=yes
10630 interix[3-9]*)
10631 hardcode_direct=no
10632 hardcode_shlibpath_var=no
10633 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10634 export_dynamic_flag_spec='${wl}-E'
10635 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10636 # Instead, shared libraries are loaded at an image base (0x10000000 by
10637 # default) and relocated if they conflict, which is a slow very memory
10638 # consuming and fragmenting process. To avoid this, we pick a random,
10639 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10640 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10641 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10642 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'
10645 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10646 tmp_diet=no
10647 if test "$host_os" = linux-dietlibc; then
10648 case $cc_basename in
10649 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10650 esac
10652 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10653 && test "$tmp_diet" = no
10654 then
10655 tmp_addflag=' $pic_flag'
10656 tmp_sharedflag='-shared'
10657 case $cc_basename,$host_cpu in
10658 pgcc*) # Portland Group C compiler
10659 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'
10660 tmp_addflag=' $pic_flag'
10662 pgf77* | pgf90* | pgf95* | pgfortran*)
10663 # Portland Group f77 and f90 compilers
10664 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'
10665 tmp_addflag=' $pic_flag -Mnomain' ;;
10666 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10667 tmp_addflag=' -i_dynamic' ;;
10668 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10669 tmp_addflag=' -i_dynamic -nofor_main' ;;
10670 ifc* | ifort*) # Intel Fortran compiler
10671 tmp_addflag=' -nofor_main' ;;
10672 lf95*) # Lahey Fortran 8.1
10673 whole_archive_flag_spec=
10674 tmp_sharedflag='--shared' ;;
10675 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10676 tmp_sharedflag='-qmkshrobj'
10677 tmp_addflag= ;;
10678 nvcc*) # Cuda Compiler Driver 2.2
10679 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'
10680 compiler_needs_object=yes
10682 esac
10683 case `$CC -V 2>&1 | sed 5q` in
10684 *Sun\ C*) # Sun C 5.9
10685 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'
10686 compiler_needs_object=yes
10687 tmp_sharedflag='-G' ;;
10688 *Sun\ F*) # Sun Fortran 8.3
10689 tmp_sharedflag='-G' ;;
10690 esac
10691 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10693 if test "x$supports_anon_versioning" = xyes; then
10694 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10695 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10696 echo "local: *; };" >> $output_objdir/$libname.ver~
10697 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10700 case $cc_basename in
10701 xlf* | bgf* | bgxlf* | mpixlf*)
10702 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10703 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10704 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10705 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10706 if test "x$supports_anon_versioning" = xyes; then
10707 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10708 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10709 echo "local: *; };" >> $output_objdir/$libname.ver~
10710 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10713 esac
10714 else
10715 ld_shlibs=no
10719 netbsd*)
10720 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10721 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10722 wlarc=
10723 else
10724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10725 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10729 solaris*)
10730 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10731 ld_shlibs=no
10732 cat <<_LT_EOF 1>&2
10734 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10735 *** create shared libraries on Solaris systems. Therefore, libtool
10736 *** is disabling shared libraries support. We urge you to upgrade GNU
10737 *** binutils to release 2.9.1 or newer. Another option is to modify
10738 *** your PATH or compiler configuration so that the native linker is
10739 *** used, and then restart.
10741 _LT_EOF
10742 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10743 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10744 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10745 else
10746 ld_shlibs=no
10750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10751 case `$LD -v 2>&1` in
10752 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10753 ld_shlibs=no
10754 cat <<_LT_EOF 1>&2
10756 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10757 *** reliably create shared libraries on SCO systems. Therefore, libtool
10758 *** is disabling shared libraries support. We urge you to upgrade GNU
10759 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10760 *** your PATH or compiler configuration so that the native linker is
10761 *** used, and then restart.
10763 _LT_EOF
10766 # For security reasons, it is highly recommended that you always
10767 # use absolute paths for naming shared libraries, and exclude the
10768 # DT_RUNPATH tag from executables and libraries. But doing so
10769 # requires that you compile everything twice, which is a pain.
10770 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10771 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10773 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10774 else
10775 ld_shlibs=no
10778 esac
10781 sunos4*)
10782 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10783 wlarc=
10784 hardcode_direct=yes
10785 hardcode_shlibpath_var=no
10789 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10790 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10791 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10792 else
10793 ld_shlibs=no
10796 esac
10798 if test "$ld_shlibs" = no; then
10799 runpath_var=
10800 hardcode_libdir_flag_spec=
10801 export_dynamic_flag_spec=
10802 whole_archive_flag_spec=
10804 else
10805 # PORTME fill in a description of your system's linker (not GNU ld)
10806 case $host_os in
10807 aix3*)
10808 allow_undefined_flag=unsupported
10809 always_export_symbols=yes
10810 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'
10811 # Note: this linker hardcodes the directories in LIBPATH if there
10812 # are no directories specified by -L.
10813 hardcode_minus_L=yes
10814 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10815 # Neither direct hardcoding nor static linking is supported with a
10816 # broken collect2.
10817 hardcode_direct=unsupported
10821 aix[4-9]*)
10822 if test "$host_cpu" = ia64; then
10823 # On IA64, the linker does run time linking by default, so we don't
10824 # have to do anything special.
10825 aix_use_runtimelinking=no
10826 exp_sym_flag='-Bexport'
10827 no_entry_flag=""
10828 else
10829 # If we're using GNU nm, then we don't want the "-C" option.
10830 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10831 # Also, AIX nm treats weak defined symbols like other global
10832 # defined symbols, whereas GNU nm marks them as "W".
10833 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10834 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'
10835 else
10836 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'
10838 aix_use_runtimelinking=no
10840 # Test if we are trying to use run time linking or normal
10841 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10842 # need to do runtime linking.
10843 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10844 for ld_flag in $LDFLAGS; do
10845 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10846 aix_use_runtimelinking=yes
10847 break
10849 done
10851 esac
10853 exp_sym_flag='-bexport'
10854 no_entry_flag='-bnoentry'
10857 # When large executables or shared objects are built, AIX ld can
10858 # have problems creating the table of contents. If linking a library
10859 # or program results in "error TOC overflow" add -mminimal-toc to
10860 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10861 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10863 archive_cmds=''
10864 hardcode_direct=yes
10865 hardcode_direct_absolute=yes
10866 hardcode_libdir_separator=':'
10867 link_all_deplibs=yes
10868 file_list_spec='${wl}-f,'
10870 if test "$GCC" = yes; then
10871 case $host_os in aix4.[012]|aix4.[012].*)
10872 # We only want to do this on AIX 4.2 and lower, the check
10873 # below for broken collect2 doesn't work under 4.3+
10874 collect2name=`${CC} -print-prog-name=collect2`
10875 if test -f "$collect2name" &&
10876 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10877 then
10878 # We have reworked collect2
10880 else
10881 # We have old collect2
10882 hardcode_direct=unsupported
10883 # It fails to find uninstalled libraries when the uninstalled
10884 # path is not listed in the libpath. Setting hardcode_minus_L
10885 # to unsupported forces relinking
10886 hardcode_minus_L=yes
10887 hardcode_libdir_flag_spec='-L$libdir'
10888 hardcode_libdir_separator=
10891 esac
10892 shared_flag='-shared'
10893 if test "$aix_use_runtimelinking" = yes; then
10894 shared_flag="$shared_flag "'${wl}-G'
10896 else
10897 # not using gcc
10898 if test "$host_cpu" = ia64; then
10899 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10900 # chokes on -Wl,-G. The following line is correct:
10901 shared_flag='-G'
10902 else
10903 if test "$aix_use_runtimelinking" = yes; then
10904 shared_flag='${wl}-G'
10905 else
10906 shared_flag='${wl}-bM:SRE'
10911 export_dynamic_flag_spec='${wl}-bexpall'
10912 # It seems that -bexpall does not export symbols beginning with
10913 # underscore (_), so it is better to generate a list of symbols to export.
10914 always_export_symbols=yes
10915 if test "$aix_use_runtimelinking" = yes; then
10916 # Warning - without using the other runtime loading flags (-brtl),
10917 # -berok will link without error, but may produce a broken library.
10918 allow_undefined_flag='-berok'
10919 # Determine the default libpath from the value encoded in an
10920 # empty executable.
10921 if test "${lt_cv_aix_libpath+set}" = set; then
10922 aix_libpath=$lt_cv_aix_libpath
10923 else
10924 if ${lt_cv_aix_libpath_+:} false; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h. */
10931 main ()
10935 return 0;
10937 _ACEOF
10938 if ac_fn_c_try_link "$LINENO"; then :
10940 lt_aix_libpath_sed='
10941 /Import File Strings/,/^$/ {
10942 /^0/ {
10943 s/^0 *\([^ ]*\) *$/\1/
10947 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10948 # Check for a 64-bit object if we didn't find anything.
10949 if test -z "$lt_cv_aix_libpath_"; then
10950 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10953 rm -f core conftest.err conftest.$ac_objext \
10954 conftest$ac_exeext conftest.$ac_ext
10955 if test -z "$lt_cv_aix_libpath_"; then
10956 lt_cv_aix_libpath_="/usr/lib:/lib"
10961 aix_libpath=$lt_cv_aix_libpath_
10964 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10965 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"
10966 else
10967 if test "$host_cpu" = ia64; then
10968 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10969 allow_undefined_flag="-z nodefs"
10970 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"
10971 else
10972 # Determine the default libpath from the value encoded in an
10973 # empty executable.
10974 if test "${lt_cv_aix_libpath+set}" = set; then
10975 aix_libpath=$lt_cv_aix_libpath
10976 else
10977 if ${lt_cv_aix_libpath_+:} false; then :
10978 $as_echo_n "(cached) " >&6
10979 else
10980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h. */
10984 main ()
10988 return 0;
10990 _ACEOF
10991 if ac_fn_c_try_link "$LINENO"; then :
10993 lt_aix_libpath_sed='
10994 /Import File Strings/,/^$/ {
10995 /^0/ {
10996 s/^0 *\([^ ]*\) *$/\1/
11000 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11001 # Check for a 64-bit object if we didn't find anything.
11002 if test -z "$lt_cv_aix_libpath_"; then
11003 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11006 rm -f core conftest.err conftest.$ac_objext \
11007 conftest$ac_exeext conftest.$ac_ext
11008 if test -z "$lt_cv_aix_libpath_"; then
11009 lt_cv_aix_libpath_="/usr/lib:/lib"
11014 aix_libpath=$lt_cv_aix_libpath_
11017 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11018 # Warning - without using the other run time loading flags,
11019 # -berok will link without error, but may produce a broken library.
11020 no_undefined_flag=' ${wl}-bernotok'
11021 allow_undefined_flag=' ${wl}-berok'
11022 if test "$with_gnu_ld" = yes; then
11023 # We only use this code for GNU lds that support --whole-archive.
11024 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11025 else
11026 # Exported symbols can be pulled into shared objects from archives
11027 whole_archive_flag_spec='$convenience'
11029 archive_cmds_need_lc=yes
11030 # This is similar to how AIX traditionally builds its shared libraries.
11031 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'
11036 amigaos*)
11037 case $host_cpu in
11038 powerpc)
11039 # see comment about AmigaOS4 .so support
11040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11041 archive_expsym_cmds=''
11043 m68k)
11044 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)'
11045 hardcode_libdir_flag_spec='-L$libdir'
11046 hardcode_minus_L=yes
11048 esac
11051 bsdi[45]*)
11052 export_dynamic_flag_spec=-rdynamic
11055 cygwin* | mingw* | pw32* | cegcc*)
11056 # When not using gcc, we currently assume that we are using
11057 # Microsoft Visual C++.
11058 # hardcode_libdir_flag_spec is actually meaningless, as there is
11059 # no search path for DLLs.
11060 case $cc_basename in
11061 cl*)
11062 # Native MSVC
11063 hardcode_libdir_flag_spec=' '
11064 allow_undefined_flag=unsupported
11065 always_export_symbols=yes
11066 file_list_spec='@'
11067 # Tell ltmain to make .lib files, not .a files.
11068 libext=lib
11069 # Tell ltmain to make .dll files, not .so files.
11070 shrext_cmds=".dll"
11071 # FIXME: Setting linknames here is a bad hack.
11072 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11073 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11074 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11075 else
11076 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11078 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11079 linknames='
11080 # The linker will not automatically build a static lib if we build a DLL.
11081 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11082 enable_shared_with_static_runtimes=yes
11083 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11084 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11085 # Don't use ranlib
11086 old_postinstall_cmds='chmod 644 $oldlib'
11087 postlink_cmds='lt_outputfile="@OUTPUT@"~
11088 lt_tool_outputfile="@TOOL_OUTPUT@"~
11089 case $lt_outputfile in
11090 *.exe|*.EXE) ;;
11092 lt_outputfile="$lt_outputfile.exe"
11093 lt_tool_outputfile="$lt_tool_outputfile.exe"
11095 esac~
11096 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11097 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11098 $RM "$lt_outputfile.manifest";
11102 # Assume MSVC wrapper
11103 hardcode_libdir_flag_spec=' '
11104 allow_undefined_flag=unsupported
11105 # Tell ltmain to make .lib files, not .a files.
11106 libext=lib
11107 # Tell ltmain to make .dll files, not .so files.
11108 shrext_cmds=".dll"
11109 # FIXME: Setting linknames here is a bad hack.
11110 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11111 # The linker will automatically build a .lib file if we build a DLL.
11112 old_archive_from_new_cmds='true'
11113 # FIXME: Should let the user specify the lib program.
11114 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11115 enable_shared_with_static_runtimes=yes
11117 esac
11120 darwin* | rhapsody*)
11123 archive_cmds_need_lc=no
11124 hardcode_direct=no
11125 hardcode_automatic=yes
11126 hardcode_shlibpath_var=unsupported
11127 if test "$lt_cv_ld_force_load" = "yes"; then
11128 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\"`'
11130 else
11131 whole_archive_flag_spec=''
11133 link_all_deplibs=yes
11134 allow_undefined_flag="$_lt_dar_allow_undefined"
11135 case $cc_basename in
11136 ifort*) _lt_dar_can_shared=yes ;;
11137 *) _lt_dar_can_shared=$GCC ;;
11138 esac
11139 if test "$_lt_dar_can_shared" = "yes"; then
11140 output_verbose_link_cmd=func_echo_all
11141 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11142 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11143 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}"
11144 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}"
11146 else
11147 ld_shlibs=no
11152 dgux*)
11153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11154 hardcode_libdir_flag_spec='-L$libdir'
11155 hardcode_shlibpath_var=no
11158 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11159 # support. Future versions do this automatically, but an explicit c++rt0.o
11160 # does not break anything, and helps significantly (at the cost of a little
11161 # extra space).
11162 freebsd2.2*)
11163 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11164 hardcode_libdir_flag_spec='-R$libdir'
11165 hardcode_direct=yes
11166 hardcode_shlibpath_var=no
11169 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11170 freebsd2.*)
11171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11172 hardcode_direct=yes
11173 hardcode_minus_L=yes
11174 hardcode_shlibpath_var=no
11177 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11178 freebsd* | dragonfly*)
11179 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11180 hardcode_libdir_flag_spec='-R$libdir'
11181 hardcode_direct=yes
11182 hardcode_shlibpath_var=no
11185 hpux9*)
11186 if test "$GCC" = yes; then
11187 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'
11188 else
11189 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'
11191 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11192 hardcode_libdir_separator=:
11193 hardcode_direct=yes
11195 # hardcode_minus_L: Not really in the search PATH,
11196 # but as the default location of the library.
11197 hardcode_minus_L=yes
11198 export_dynamic_flag_spec='${wl}-E'
11201 hpux10*)
11202 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11203 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11204 else
11205 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11207 if test "$with_gnu_ld" = no; then
11208 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11209 hardcode_libdir_separator=:
11210 hardcode_direct=yes
11211 hardcode_direct_absolute=yes
11212 export_dynamic_flag_spec='${wl}-E'
11213 # hardcode_minus_L: Not really in the search PATH,
11214 # but as the default location of the library.
11215 hardcode_minus_L=yes
11219 hpux11*)
11220 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11221 case $host_cpu in
11222 hppa*64*)
11223 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11225 ia64*)
11226 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11229 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11231 esac
11232 else
11233 case $host_cpu in
11234 hppa*64*)
11235 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11237 ia64*)
11238 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11242 # Older versions of the 11.00 compiler do not understand -b yet
11243 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11245 $as_echo_n "checking if $CC understands -b... " >&6; }
11246 if ${lt_cv_prog_compiler__b+:} false; then :
11247 $as_echo_n "(cached) " >&6
11248 else
11249 lt_cv_prog_compiler__b=no
11250 save_LDFLAGS="$LDFLAGS"
11251 LDFLAGS="$LDFLAGS -b"
11252 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11253 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11254 # The linker can only warn and ignore the option if not recognized
11255 # So say no if there are warnings
11256 if test -s conftest.err; then
11257 # Append any errors to the config.log.
11258 cat conftest.err 1>&5
11259 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11261 if diff conftest.exp conftest.er2 >/dev/null; then
11262 lt_cv_prog_compiler__b=yes
11264 else
11265 lt_cv_prog_compiler__b=yes
11268 $RM -r conftest*
11269 LDFLAGS="$save_LDFLAGS"
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11273 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11275 if test x"$lt_cv_prog_compiler__b" = xyes; then
11276 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11277 else
11278 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11282 esac
11284 if test "$with_gnu_ld" = no; then
11285 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11286 hardcode_libdir_separator=:
11288 case $host_cpu in
11289 hppa*64*|ia64*)
11290 hardcode_direct=no
11291 hardcode_shlibpath_var=no
11294 hardcode_direct=yes
11295 hardcode_direct_absolute=yes
11296 export_dynamic_flag_spec='${wl}-E'
11298 # hardcode_minus_L: Not really in the search PATH,
11299 # but as the default location of the library.
11300 hardcode_minus_L=yes
11302 esac
11306 irix5* | irix6* | nonstopux*)
11307 if test "$GCC" = yes; then
11308 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'
11309 # Try to use the -exported_symbol ld option, if it does not
11310 # work, assume that -exports_file does not work either and
11311 # implicitly export all symbols.
11312 # This should be the same for all languages, so no per-tag cache variable.
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11314 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11315 if ${lt_cv_irix_exported_symbol+:} false; then :
11316 $as_echo_n "(cached) " >&6
11317 else
11318 save_LDFLAGS="$LDFLAGS"
11319 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11321 /* end confdefs.h. */
11322 int foo (void) { return 0; }
11323 _ACEOF
11324 if ac_fn_c_try_link "$LINENO"; then :
11325 lt_cv_irix_exported_symbol=yes
11326 else
11327 lt_cv_irix_exported_symbol=no
11329 rm -f core conftest.err conftest.$ac_objext \
11330 conftest$ac_exeext conftest.$ac_ext
11331 LDFLAGS="$save_LDFLAGS"
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11334 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11335 if test "$lt_cv_irix_exported_symbol" = yes; then
11336 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'
11338 else
11339 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'
11340 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'
11342 archive_cmds_need_lc='no'
11343 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11344 hardcode_libdir_separator=:
11345 inherit_rpath=yes
11346 link_all_deplibs=yes
11349 netbsd*)
11350 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11351 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11352 else
11353 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11355 hardcode_libdir_flag_spec='-R$libdir'
11356 hardcode_direct=yes
11357 hardcode_shlibpath_var=no
11360 newsos6)
11361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11362 hardcode_direct=yes
11363 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11364 hardcode_libdir_separator=:
11365 hardcode_shlibpath_var=no
11368 *nto* | *qnx*)
11371 openbsd* | bitrig*)
11372 if test -f /usr/libexec/ld.so; then
11373 hardcode_direct=yes
11374 hardcode_shlibpath_var=no
11375 hardcode_direct_absolute=yes
11376 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11377 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11378 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11379 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11380 export_dynamic_flag_spec='${wl}-E'
11381 else
11382 case $host_os in
11383 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11384 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11385 hardcode_libdir_flag_spec='-R$libdir'
11388 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11389 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11391 esac
11393 else
11394 ld_shlibs=no
11398 os2*)
11399 hardcode_libdir_flag_spec='-L$libdir'
11400 hardcode_minus_L=yes
11401 allow_undefined_flag=unsupported
11402 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'
11403 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11406 osf3*)
11407 if test "$GCC" = yes; then
11408 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11409 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'
11410 else
11411 allow_undefined_flag=' -expect_unresolved \*'
11412 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'
11414 archive_cmds_need_lc='no'
11415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11416 hardcode_libdir_separator=:
11419 osf4* | osf5*) # as osf3* with the addition of -msym flag
11420 if test "$GCC" = yes; then
11421 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11422 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'
11423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11424 else
11425 allow_undefined_flag=' -expect_unresolved \*'
11426 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'
11427 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~
11428 $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'
11430 # Both c and cxx compiler support -rpath directly
11431 hardcode_libdir_flag_spec='-rpath $libdir'
11433 archive_cmds_need_lc='no'
11434 hardcode_libdir_separator=:
11437 solaris*)
11438 no_undefined_flag=' -z defs'
11439 if test "$GCC" = yes; then
11440 wlarc='${wl}'
11441 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11442 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11443 $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'
11444 else
11445 case `$CC -V 2>&1` in
11446 *"Compilers 5.0"*)
11447 wlarc=''
11448 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11449 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11450 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11453 wlarc='${wl}'
11454 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11455 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11456 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11458 esac
11460 hardcode_libdir_flag_spec='-R$libdir'
11461 hardcode_shlibpath_var=no
11462 case $host_os in
11463 solaris2.[0-5] | solaris2.[0-5].*) ;;
11465 # The compiler driver will combine and reorder linker options,
11466 # but understands `-z linker_flag'. GCC discards it without `$wl',
11467 # but is careful enough not to reorder.
11468 # Supported since Solaris 2.6 (maybe 2.5.1?)
11469 if test "$GCC" = yes; then
11470 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11471 else
11472 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11475 esac
11476 link_all_deplibs=yes
11479 sunos4*)
11480 if test "x$host_vendor" = xsequent; then
11481 # Use $CC to link under sequent, because it throws in some extra .o
11482 # files that make .init and .fini sections work.
11483 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11484 else
11485 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11487 hardcode_libdir_flag_spec='-L$libdir'
11488 hardcode_direct=yes
11489 hardcode_minus_L=yes
11490 hardcode_shlibpath_var=no
11493 sysv4)
11494 case $host_vendor in
11495 sni)
11496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11497 hardcode_direct=yes # is this really true???
11499 siemens)
11500 ## LD is ld it makes a PLAMLIB
11501 ## CC just makes a GrossModule.
11502 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11503 reload_cmds='$CC -r -o $output$reload_objs'
11504 hardcode_direct=no
11506 motorola)
11507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11508 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11510 esac
11511 runpath_var='LD_RUN_PATH'
11512 hardcode_shlibpath_var=no
11515 sysv4.3*)
11516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11517 hardcode_shlibpath_var=no
11518 export_dynamic_flag_spec='-Bexport'
11521 sysv4*MP*)
11522 if test -d /usr/nec; then
11523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11524 hardcode_shlibpath_var=no
11525 runpath_var=LD_RUN_PATH
11526 hardcode_runpath_var=yes
11527 ld_shlibs=yes
11531 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11532 no_undefined_flag='${wl}-z,text'
11533 archive_cmds_need_lc=no
11534 hardcode_shlibpath_var=no
11535 runpath_var='LD_RUN_PATH'
11537 if test "$GCC" = yes; then
11538 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11539 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11540 else
11541 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11542 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11546 sysv5* | sco3.2v5* | sco5v6*)
11547 # Note: We can NOT use -z defs as we might desire, because we do not
11548 # link with -lc, and that would cause any symbols used from libc to
11549 # always be unresolved, which means just about no library would
11550 # ever link correctly. If we're not using GNU ld we use -z text
11551 # though, which does catch some bad symbols but isn't as heavy-handed
11552 # as -z defs.
11553 no_undefined_flag='${wl}-z,text'
11554 allow_undefined_flag='${wl}-z,nodefs'
11555 archive_cmds_need_lc=no
11556 hardcode_shlibpath_var=no
11557 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11558 hardcode_libdir_separator=':'
11559 link_all_deplibs=yes
11560 export_dynamic_flag_spec='${wl}-Bexport'
11561 runpath_var='LD_RUN_PATH'
11563 if test "$GCC" = yes; then
11564 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11565 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11566 else
11567 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11568 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11572 uts4*)
11573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11574 hardcode_libdir_flag_spec='-L$libdir'
11575 hardcode_shlibpath_var=no
11579 ld_shlibs=no
11581 esac
11583 if test x$host_vendor = xsni; then
11584 case $host in
11585 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11586 export_dynamic_flag_spec='${wl}-Blargedynsym'
11588 esac
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11593 $as_echo "$ld_shlibs" >&6; }
11594 test "$ld_shlibs" = no && can_build_shared=no
11596 with_gnu_ld=$with_gnu_ld
11613 # Do we need to explicitly link libc?
11615 case "x$archive_cmds_need_lc" in
11616 x|xyes)
11617 # Assume -lc should be added
11618 archive_cmds_need_lc=yes
11620 if test "$enable_shared" = yes && test "$GCC" = yes; then
11621 case $archive_cmds in
11622 *'~'*)
11623 # FIXME: we may have to deal with multi-command sequences.
11625 '$CC '*)
11626 # Test whether the compiler implicitly links with -lc since on some
11627 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11628 # to ld, don't add -lc before -lgcc.
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11630 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11631 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11632 $as_echo_n "(cached) " >&6
11633 else
11634 $RM conftest*
11635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11638 (eval $ac_compile) 2>&5
11639 ac_status=$?
11640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11641 test $ac_status = 0; } 2>conftest.err; then
11642 soname=conftest
11643 lib=conftest
11644 libobjs=conftest.$ac_objext
11645 deplibs=
11646 wl=$lt_prog_compiler_wl
11647 pic_flag=$lt_prog_compiler_pic
11648 compiler_flags=-v
11649 linker_flags=-v
11650 verstring=
11651 output_objdir=.
11652 libname=conftest
11653 lt_save_allow_undefined_flag=$allow_undefined_flag
11654 allow_undefined_flag=
11655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11656 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11657 ac_status=$?
11658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11659 test $ac_status = 0; }
11660 then
11661 lt_cv_archive_cmds_need_lc=no
11662 else
11663 lt_cv_archive_cmds_need_lc=yes
11665 allow_undefined_flag=$lt_save_allow_undefined_flag
11666 else
11667 cat conftest.err 1>&5
11669 $RM conftest*
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11673 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11674 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11676 esac
11679 esac
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11833 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11835 if test "$GCC" = yes; then
11836 case $host_os in
11837 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11838 *) lt_awk_arg="/^libraries:/" ;;
11839 esac
11840 case $host_os in
11841 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11842 *) lt_sed_strip_eq="s,=/,/,g" ;;
11843 esac
11844 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11845 case $lt_search_path_spec in
11846 *\;*)
11847 # if the path contains ";" then we assume it to be the separator
11848 # otherwise default to the standard path separator (i.e. ":") - it is
11849 # assumed that no part of a normal pathname contains ";" but that should
11850 # okay in the real world where ";" in dirpaths is itself problematic.
11851 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11854 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11856 esac
11857 # Ok, now we have the path, separated by spaces, we can step through it
11858 # and add multilib dir if necessary.
11859 lt_tmp_lt_search_path_spec=
11860 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11861 for lt_sys_path in $lt_search_path_spec; do
11862 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11863 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11864 else
11865 test -d "$lt_sys_path" && \
11866 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11868 done
11869 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11870 BEGIN {RS=" "; FS="/|\n";} {
11871 lt_foo="";
11872 lt_count=0;
11873 for (lt_i = NF; lt_i > 0; lt_i--) {
11874 if ($lt_i != "" && $lt_i != ".") {
11875 if ($lt_i == "..") {
11876 lt_count++;
11877 } else {
11878 if (lt_count == 0) {
11879 lt_foo="/" $lt_i lt_foo;
11880 } else {
11881 lt_count--;
11886 if (lt_foo != "") { lt_freq[lt_foo]++; }
11887 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11889 # AWK program above erroneously prepends '/' to C:/dos/paths
11890 # for these hosts.
11891 case $host_os in
11892 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11893 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11894 esac
11895 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11896 else
11897 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11899 library_names_spec=
11900 libname_spec='lib$name'
11901 soname_spec=
11902 shrext_cmds=".so"
11903 postinstall_cmds=
11904 postuninstall_cmds=
11905 finish_cmds=
11906 finish_eval=
11907 shlibpath_var=
11908 shlibpath_overrides_runpath=unknown
11909 version_type=none
11910 dynamic_linker="$host_os ld.so"
11911 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11912 need_lib_prefix=unknown
11913 hardcode_into_libs=no
11915 # when you set need_version to no, make sure it does not cause -set_version
11916 # flags to be left without arguments
11917 need_version=unknown
11919 case $host_os in
11920 aix3*)
11921 version_type=linux # correct to gnu/linux during the next big refactor
11922 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11923 shlibpath_var=LIBPATH
11925 # AIX 3 has no versioning support, so we append a major version to the name.
11926 soname_spec='${libname}${release}${shared_ext}$major'
11929 aix[4-9]*)
11930 version_type=linux # correct to gnu/linux during the next big refactor
11931 need_lib_prefix=no
11932 need_version=no
11933 hardcode_into_libs=yes
11934 if test "$host_cpu" = ia64; then
11935 # AIX 5 supports IA64
11936 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 else
11939 # With GCC up to 2.95.x, collect2 would create an import file
11940 # for dependence libraries. The import file would start with
11941 # the line `#! .'. This would cause the generated library to
11942 # depend on `.', always an invalid library. This was fixed in
11943 # development snapshots of GCC prior to 3.0.
11944 case $host_os in
11945 aix4 | aix4.[01] | aix4.[01].*)
11946 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11947 echo ' yes '
11948 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11950 else
11951 can_build_shared=no
11954 esac
11955 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11956 # soname into executable. Probably we can add versioning support to
11957 # collect2, so additional links can be useful in future.
11958 if test "$aix_use_runtimelinking" = yes; then
11959 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11960 # instead of lib<name>.a to let people know that these are not
11961 # typical AIX shared libraries.
11962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11963 else
11964 # We preserve .a as extension for shared libraries through AIX4.2
11965 # and later when we are not doing run time linking.
11966 library_names_spec='${libname}${release}.a $libname.a'
11967 soname_spec='${libname}${release}${shared_ext}$major'
11969 shlibpath_var=LIBPATH
11973 amigaos*)
11974 case $host_cpu in
11975 powerpc)
11976 # Since July 2007 AmigaOS4 officially supports .so libraries.
11977 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11980 m68k)
11981 library_names_spec='$libname.ixlibrary $libname.a'
11982 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11983 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'
11985 esac
11988 beos*)
11989 library_names_spec='${libname}${shared_ext}'
11990 dynamic_linker="$host_os ld.so"
11991 shlibpath_var=LIBRARY_PATH
11994 bsdi[45]*)
11995 version_type=linux # correct to gnu/linux during the next big refactor
11996 need_version=no
11997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11998 soname_spec='${libname}${release}${shared_ext}$major'
11999 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12000 shlibpath_var=LD_LIBRARY_PATH
12001 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12002 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12003 # the default ld.so.conf also contains /usr/contrib/lib and
12004 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12005 # libtool to hard-code these into programs
12008 cygwin* | mingw* | pw32* | cegcc*)
12009 version_type=windows
12010 shrext_cmds=".dll"
12011 need_version=no
12012 need_lib_prefix=no
12014 case $GCC,$cc_basename in
12015 yes,*)
12016 # gcc
12017 library_names_spec='$libname.dll.a'
12018 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12019 postinstall_cmds='base_file=`basename \${file}`~
12020 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12021 dldir=$destdir/`dirname \$dlpath`~
12022 test -d \$dldir || mkdir -p \$dldir~
12023 $install_prog $dir/$dlname \$dldir/$dlname~
12024 chmod a+x \$dldir/$dlname~
12025 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12026 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12028 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12029 dlpath=$dir/\$dldll~
12030 $RM \$dlpath'
12031 shlibpath_overrides_runpath=yes
12033 case $host_os in
12034 cygwin*)
12035 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12036 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12038 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12040 mingw* | cegcc*)
12041 # MinGW DLLs use traditional 'lib' prefix
12042 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12044 pw32*)
12045 # pw32 DLLs use 'pw' prefix rather than 'lib'
12046 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12048 esac
12049 dynamic_linker='Win32 ld.exe'
12052 *,cl*)
12053 # Native MSVC
12054 libname_spec='$name'
12055 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12056 library_names_spec='${libname}.dll.lib'
12058 case $build_os in
12059 mingw*)
12060 sys_lib_search_path_spec=
12061 lt_save_ifs=$IFS
12062 IFS=';'
12063 for lt_path in $LIB
12065 IFS=$lt_save_ifs
12066 # Let DOS variable expansion print the short 8.3 style file name.
12067 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12068 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12069 done
12070 IFS=$lt_save_ifs
12071 # Convert to MSYS style.
12072 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12074 cygwin*)
12075 # Convert to unix form, then to dos form, then back to unix form
12076 # but this time dos style (no spaces!) so that the unix form looks
12077 # like /cygdrive/c/PROGRA~1:/cygdr...
12078 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12079 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12080 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12083 sys_lib_search_path_spec="$LIB"
12084 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12085 # It is most probably a Windows format PATH.
12086 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12087 else
12088 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12090 # FIXME: find the short name or the path components, as spaces are
12091 # common. (e.g. "Program Files" -> "PROGRA~1")
12093 esac
12095 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12096 postinstall_cmds='base_file=`basename \${file}`~
12097 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12098 dldir=$destdir/`dirname \$dlpath`~
12099 test -d \$dldir || mkdir -p \$dldir~
12100 $install_prog $dir/$dlname \$dldir/$dlname'
12101 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12102 dlpath=$dir/\$dldll~
12103 $RM \$dlpath'
12104 shlibpath_overrides_runpath=yes
12105 dynamic_linker='Win32 link.exe'
12109 # Assume MSVC wrapper
12110 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12111 dynamic_linker='Win32 ld.exe'
12113 esac
12114 # FIXME: first we should search . and the directory the executable is in
12115 shlibpath_var=PATH
12118 darwin* | rhapsody*)
12119 dynamic_linker="$host_os dyld"
12120 version_type=darwin
12121 need_lib_prefix=no
12122 need_version=no
12123 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12124 soname_spec='${libname}${release}${major}$shared_ext'
12125 shlibpath_overrides_runpath=yes
12126 shlibpath_var=DYLD_LIBRARY_PATH
12127 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12129 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12130 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12133 dgux*)
12134 version_type=linux # correct to gnu/linux during the next big refactor
12135 need_lib_prefix=no
12136 need_version=no
12137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12138 soname_spec='${libname}${release}${shared_ext}$major'
12139 shlibpath_var=LD_LIBRARY_PATH
12142 freebsd* | dragonfly*)
12143 # DragonFly does not have aout. When/if they implement a new
12144 # versioning mechanism, adjust this.
12145 if test -x /usr/bin/objformat; then
12146 objformat=`/usr/bin/objformat`
12147 else
12148 case $host_os in
12149 freebsd[23].*) objformat=aout ;;
12150 *) objformat=elf ;;
12151 esac
12153 version_type=freebsd-$objformat
12154 case $version_type in
12155 freebsd-elf*)
12156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12157 need_version=no
12158 need_lib_prefix=no
12160 freebsd-*)
12161 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12162 need_version=yes
12164 esac
12165 shlibpath_var=LD_LIBRARY_PATH
12166 case $host_os in
12167 freebsd2.*)
12168 shlibpath_overrides_runpath=yes
12170 freebsd3.[01]* | freebsdelf3.[01]*)
12171 shlibpath_overrides_runpath=yes
12172 hardcode_into_libs=yes
12174 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12175 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12176 shlibpath_overrides_runpath=no
12177 hardcode_into_libs=yes
12179 *) # from 4.6 on, and DragonFly
12180 shlibpath_overrides_runpath=yes
12181 hardcode_into_libs=yes
12183 esac
12186 gnu*)
12187 version_type=linux # correct to gnu/linux during the next big refactor
12188 need_lib_prefix=no
12189 need_version=no
12190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12191 soname_spec='${libname}${release}${shared_ext}$major'
12192 shlibpath_var=LD_LIBRARY_PATH
12193 shlibpath_overrides_runpath=no
12194 hardcode_into_libs=yes
12197 haiku*)
12198 version_type=linux # correct to gnu/linux during the next big refactor
12199 need_lib_prefix=no
12200 need_version=no
12201 dynamic_linker="$host_os runtime_loader"
12202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12203 soname_spec='${libname}${release}${shared_ext}$major'
12204 shlibpath_var=LIBRARY_PATH
12205 shlibpath_overrides_runpath=yes
12206 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12207 hardcode_into_libs=yes
12210 hpux9* | hpux10* | hpux11*)
12211 # Give a soname corresponding to the major version so that dld.sl refuses to
12212 # link against other versions.
12213 version_type=sunos
12214 need_lib_prefix=no
12215 need_version=no
12216 case $host_cpu in
12217 ia64*)
12218 shrext_cmds='.so'
12219 hardcode_into_libs=yes
12220 dynamic_linker="$host_os dld.so"
12221 shlibpath_var=LD_LIBRARY_PATH
12222 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12224 soname_spec='${libname}${release}${shared_ext}$major'
12225 if test "X$HPUX_IA64_MODE" = X32; then
12226 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12227 else
12228 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12232 hppa*64*)
12233 shrext_cmds='.sl'
12234 hardcode_into_libs=yes
12235 dynamic_linker="$host_os dld.sl"
12236 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12237 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12239 soname_spec='${libname}${release}${shared_ext}$major'
12240 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12244 shrext_cmds='.sl'
12245 dynamic_linker="$host_os dld.sl"
12246 shlibpath_var=SHLIB_PATH
12247 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12249 soname_spec='${libname}${release}${shared_ext}$major'
12251 esac
12252 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12253 postinstall_cmds='chmod 555 $lib'
12254 # or fails outright, so override atomically:
12255 install_override_mode=555
12258 interix[3-9]*)
12259 version_type=linux # correct to gnu/linux during the next big refactor
12260 need_lib_prefix=no
12261 need_version=no
12262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12263 soname_spec='${libname}${release}${shared_ext}$major'
12264 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12265 shlibpath_var=LD_LIBRARY_PATH
12266 shlibpath_overrides_runpath=no
12267 hardcode_into_libs=yes
12270 irix5* | irix6* | nonstopux*)
12271 case $host_os in
12272 nonstopux*) version_type=nonstopux ;;
12274 if test "$lt_cv_prog_gnu_ld" = yes; then
12275 version_type=linux # correct to gnu/linux during the next big refactor
12276 else
12277 version_type=irix
12278 fi ;;
12279 esac
12280 need_lib_prefix=no
12281 need_version=no
12282 soname_spec='${libname}${release}${shared_ext}$major'
12283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12284 case $host_os in
12285 irix5* | nonstopux*)
12286 libsuff= shlibsuff=
12289 case $LD in # libtool.m4 will add one of these switches to LD
12290 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12291 libsuff= shlibsuff= libmagic=32-bit;;
12292 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12293 libsuff=32 shlibsuff=N32 libmagic=N32;;
12294 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12295 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12296 *) libsuff= shlibsuff= libmagic=never-match;;
12297 esac
12299 esac
12300 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12301 shlibpath_overrides_runpath=no
12302 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12303 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12304 hardcode_into_libs=yes
12307 # No shared lib support for Linux oldld, aout, or coff.
12308 linux*oldld* | linux*aout* | linux*coff*)
12309 dynamic_linker=no
12312 # This must be glibc/ELF.
12313 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12314 version_type=linux # correct to gnu/linux during the next big refactor
12315 need_lib_prefix=no
12316 need_version=no
12317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12318 soname_spec='${libname}${release}${shared_ext}$major'
12319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12320 shlibpath_var=LD_LIBRARY_PATH
12321 shlibpath_overrides_runpath=no
12323 # Some binutils ld are patched to set DT_RUNPATH
12324 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 lt_cv_shlibpath_overrides_runpath=no
12328 save_LDFLAGS=$LDFLAGS
12329 save_libdir=$libdir
12330 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12331 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h. */
12336 main ()
12340 return 0;
12342 _ACEOF
12343 if ac_fn_c_try_link "$LINENO"; then :
12344 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12345 lt_cv_shlibpath_overrides_runpath=yes
12348 rm -f core conftest.err conftest.$ac_objext \
12349 conftest$ac_exeext conftest.$ac_ext
12350 LDFLAGS=$save_LDFLAGS
12351 libdir=$save_libdir
12355 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12357 # This implies no fast_install, which is unacceptable.
12358 # Some rework will be needed to allow for fast_install
12359 # before this can be enabled.
12360 hardcode_into_libs=yes
12362 # Append ld.so.conf contents to the search path
12363 if test -f /etc/ld.so.conf; then
12364 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' ' '`
12365 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12368 # We used to test for /lib/ld.so.1 and disable shared libraries on
12369 # powerpc, because MkLinux only supported shared libraries with the
12370 # GNU dynamic linker. Since this was broken with cross compilers,
12371 # most powerpc-linux boxes support dynamic linking these days and
12372 # people can always --disable-shared, the test was removed, and we
12373 # assume the GNU/Linux dynamic linker is in use.
12374 dynamic_linker='GNU/Linux ld.so'
12377 netbsd*)
12378 version_type=sunos
12379 need_lib_prefix=no
12380 need_version=no
12381 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12384 dynamic_linker='NetBSD (a.out) ld.so'
12385 else
12386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12387 soname_spec='${libname}${release}${shared_ext}$major'
12388 dynamic_linker='NetBSD ld.elf_so'
12390 shlibpath_var=LD_LIBRARY_PATH
12391 shlibpath_overrides_runpath=yes
12392 hardcode_into_libs=yes
12395 newsos6)
12396 version_type=linux # correct to gnu/linux during the next big refactor
12397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12398 shlibpath_var=LD_LIBRARY_PATH
12399 shlibpath_overrides_runpath=yes
12402 *nto* | *qnx*)
12403 version_type=qnx
12404 need_lib_prefix=no
12405 need_version=no
12406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12407 soname_spec='${libname}${release}${shared_ext}$major'
12408 shlibpath_var=LD_LIBRARY_PATH
12409 shlibpath_overrides_runpath=no
12410 hardcode_into_libs=yes
12411 dynamic_linker='ldqnx.so'
12414 openbsd* | bitrig*)
12415 version_type=sunos
12416 sys_lib_dlsearch_path_spec="/usr/lib"
12417 need_lib_prefix=no
12418 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12419 case $host_os in
12420 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12421 *) need_version=no ;;
12422 esac
12423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12425 shlibpath_var=LD_LIBRARY_PATH
12426 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12427 case $host_os in
12428 openbsd2.[89] | openbsd2.[89].*)
12429 shlibpath_overrides_runpath=no
12432 shlibpath_overrides_runpath=yes
12434 esac
12435 else
12436 shlibpath_overrides_runpath=yes
12440 os2*)
12441 libname_spec='$name'
12442 shrext_cmds=".dll"
12443 need_lib_prefix=no
12444 library_names_spec='$libname${shared_ext} $libname.a'
12445 dynamic_linker='OS/2 ld.exe'
12446 shlibpath_var=LIBPATH
12449 osf3* | osf4* | osf5*)
12450 version_type=osf
12451 need_lib_prefix=no
12452 need_version=no
12453 soname_spec='${libname}${release}${shared_ext}$major'
12454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12455 shlibpath_var=LD_LIBRARY_PATH
12456 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12457 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12460 rdos*)
12461 dynamic_linker=no
12464 solaris*)
12465 version_type=linux # correct to gnu/linux during the next big refactor
12466 need_lib_prefix=no
12467 need_version=no
12468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12469 soname_spec='${libname}${release}${shared_ext}$major'
12470 shlibpath_var=LD_LIBRARY_PATH
12471 shlibpath_overrides_runpath=yes
12472 hardcode_into_libs=yes
12473 # ldd complains unless libraries are executable
12474 postinstall_cmds='chmod +x $lib'
12477 sunos4*)
12478 version_type=sunos
12479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12480 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12481 shlibpath_var=LD_LIBRARY_PATH
12482 shlibpath_overrides_runpath=yes
12483 if test "$with_gnu_ld" = yes; then
12484 need_lib_prefix=no
12486 need_version=yes
12489 sysv4 | sysv4.3*)
12490 version_type=linux # correct to gnu/linux during the next big refactor
12491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12492 soname_spec='${libname}${release}${shared_ext}$major'
12493 shlibpath_var=LD_LIBRARY_PATH
12494 case $host_vendor in
12495 sni)
12496 shlibpath_overrides_runpath=no
12497 need_lib_prefix=no
12498 runpath_var=LD_RUN_PATH
12500 siemens)
12501 need_lib_prefix=no
12503 motorola)
12504 need_lib_prefix=no
12505 need_version=no
12506 shlibpath_overrides_runpath=no
12507 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12509 esac
12512 sysv4*MP*)
12513 if test -d /usr/nec ;then
12514 version_type=linux # correct to gnu/linux during the next big refactor
12515 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12516 soname_spec='$libname${shared_ext}.$major'
12517 shlibpath_var=LD_LIBRARY_PATH
12521 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12522 version_type=freebsd-elf
12523 need_lib_prefix=no
12524 need_version=no
12525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12526 soname_spec='${libname}${release}${shared_ext}$major'
12527 shlibpath_var=LD_LIBRARY_PATH
12528 shlibpath_overrides_runpath=yes
12529 hardcode_into_libs=yes
12530 if test "$with_gnu_ld" = yes; then
12531 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12532 else
12533 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12534 case $host_os in
12535 sco3.2v5*)
12536 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12538 esac
12540 sys_lib_dlsearch_path_spec='/usr/lib'
12543 tpf*)
12544 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12545 version_type=linux # correct to gnu/linux during the next big refactor
12546 need_lib_prefix=no
12547 need_version=no
12548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12549 shlibpath_var=LD_LIBRARY_PATH
12550 shlibpath_overrides_runpath=no
12551 hardcode_into_libs=yes
12554 uts4*)
12555 version_type=linux # correct to gnu/linux during the next big refactor
12556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12557 soname_spec='${libname}${release}${shared_ext}$major'
12558 shlibpath_var=LD_LIBRARY_PATH
12562 dynamic_linker=no
12564 esac
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12566 $as_echo "$dynamic_linker" >&6; }
12567 test "$dynamic_linker" = no && can_build_shared=no
12569 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12570 if test "$GCC" = yes; then
12571 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12574 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12575 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12577 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12578 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12673 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12674 hardcode_action=
12675 if test -n "$hardcode_libdir_flag_spec" ||
12676 test -n "$runpath_var" ||
12677 test "X$hardcode_automatic" = "Xyes" ; then
12679 # We can hardcode non-existent directories.
12680 if test "$hardcode_direct" != no &&
12681 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12682 # have to relink, otherwise we might link with an installed library
12683 # when we should be linking with a yet-to-be-installed one
12684 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12685 test "$hardcode_minus_L" != no; then
12686 # Linking always hardcodes the temporary library directory.
12687 hardcode_action=relink
12688 else
12689 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12690 hardcode_action=immediate
12692 else
12693 # We cannot hardcode anything, or else we can only hardcode existing
12694 # directories.
12695 hardcode_action=unsupported
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12698 $as_echo "$hardcode_action" >&6; }
12700 if test "$hardcode_action" = relink ||
12701 test "$inherit_rpath" = yes; then
12702 # Fast installation is not supported
12703 enable_fast_install=no
12704 elif test "$shlibpath_overrides_runpath" = yes ||
12705 test "$enable_shared" = no; then
12706 # Fast installation is not necessary
12707 enable_fast_install=needless
12715 if test "x$enable_dlopen" != xyes; then
12716 enable_dlopen=unknown
12717 enable_dlopen_self=unknown
12718 enable_dlopen_self_static=unknown
12719 else
12720 lt_cv_dlopen=no
12721 lt_cv_dlopen_libs=
12723 case $host_os in
12724 beos*)
12725 lt_cv_dlopen="load_add_on"
12726 lt_cv_dlopen_libs=
12727 lt_cv_dlopen_self=yes
12730 mingw* | pw32* | cegcc*)
12731 lt_cv_dlopen="LoadLibrary"
12732 lt_cv_dlopen_libs=
12735 cygwin*)
12736 lt_cv_dlopen="dlopen"
12737 lt_cv_dlopen_libs=
12740 darwin*)
12741 # if libdl is installed we need to link against it
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12743 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12744 if ${ac_cv_lib_dl_dlopen+:} false; then :
12745 $as_echo_n "(cached) " >&6
12746 else
12747 ac_check_lib_save_LIBS=$LIBS
12748 LIBS="-ldl $LIBS"
12749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12750 /* end confdefs.h. */
12752 /* Override any GCC internal prototype to avoid an error.
12753 Use char because int might match the return type of a GCC
12754 builtin and then its argument prototype would still apply. */
12755 #ifdef __cplusplus
12756 extern "C"
12757 #endif
12758 char dlopen ();
12760 main ()
12762 return dlopen ();
12764 return 0;
12766 _ACEOF
12767 if ac_fn_c_try_link "$LINENO"; then :
12768 ac_cv_lib_dl_dlopen=yes
12769 else
12770 ac_cv_lib_dl_dlopen=no
12772 rm -f core conftest.err conftest.$ac_objext \
12773 conftest$ac_exeext conftest.$ac_ext
12774 LIBS=$ac_check_lib_save_LIBS
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12777 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12778 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12779 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12780 else
12782 lt_cv_dlopen="dyld"
12783 lt_cv_dlopen_libs=
12784 lt_cv_dlopen_self=yes
12791 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12792 if test "x$ac_cv_func_shl_load" = xyes; then :
12793 lt_cv_dlopen="shl_load"
12794 else
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12796 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12797 if ${ac_cv_lib_dld_shl_load+:} false; then :
12798 $as_echo_n "(cached) " >&6
12799 else
12800 ac_check_lib_save_LIBS=$LIBS
12801 LIBS="-ldld $LIBS"
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12805 /* Override any GCC internal prototype to avoid an error.
12806 Use char because int might match the return type of a GCC
12807 builtin and then its argument prototype would still apply. */
12808 #ifdef __cplusplus
12809 extern "C"
12810 #endif
12811 char shl_load ();
12813 main ()
12815 return shl_load ();
12817 return 0;
12819 _ACEOF
12820 if ac_fn_c_try_link "$LINENO"; then :
12821 ac_cv_lib_dld_shl_load=yes
12822 else
12823 ac_cv_lib_dld_shl_load=no
12825 rm -f core conftest.err conftest.$ac_objext \
12826 conftest$ac_exeext conftest.$ac_ext
12827 LIBS=$ac_check_lib_save_LIBS
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12830 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12831 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12832 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12833 else
12834 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12835 if test "x$ac_cv_func_dlopen" = xyes; then :
12836 lt_cv_dlopen="dlopen"
12837 else
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12839 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12840 if ${ac_cv_lib_dl_dlopen+:} false; then :
12841 $as_echo_n "(cached) " >&6
12842 else
12843 ac_check_lib_save_LIBS=$LIBS
12844 LIBS="-ldl $LIBS"
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12848 /* Override any GCC internal prototype to avoid an error.
12849 Use char because int might match the return type of a GCC
12850 builtin and then its argument prototype would still apply. */
12851 #ifdef __cplusplus
12852 extern "C"
12853 #endif
12854 char dlopen ();
12856 main ()
12858 return dlopen ();
12860 return 0;
12862 _ACEOF
12863 if ac_fn_c_try_link "$LINENO"; then :
12864 ac_cv_lib_dl_dlopen=yes
12865 else
12866 ac_cv_lib_dl_dlopen=no
12868 rm -f core conftest.err conftest.$ac_objext \
12869 conftest$ac_exeext conftest.$ac_ext
12870 LIBS=$ac_check_lib_save_LIBS
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12873 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12874 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12875 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12876 else
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12878 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12879 if ${ac_cv_lib_svld_dlopen+:} false; then :
12880 $as_echo_n "(cached) " >&6
12881 else
12882 ac_check_lib_save_LIBS=$LIBS
12883 LIBS="-lsvld $LIBS"
12884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12885 /* end confdefs.h. */
12887 /* Override any GCC internal prototype to avoid an error.
12888 Use char because int might match the return type of a GCC
12889 builtin and then its argument prototype would still apply. */
12890 #ifdef __cplusplus
12891 extern "C"
12892 #endif
12893 char dlopen ();
12895 main ()
12897 return dlopen ();
12899 return 0;
12901 _ACEOF
12902 if ac_fn_c_try_link "$LINENO"; then :
12903 ac_cv_lib_svld_dlopen=yes
12904 else
12905 ac_cv_lib_svld_dlopen=no
12907 rm -f core conftest.err conftest.$ac_objext \
12908 conftest$ac_exeext conftest.$ac_ext
12909 LIBS=$ac_check_lib_save_LIBS
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12912 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12913 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12914 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12915 else
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12917 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12918 if ${ac_cv_lib_dld_dld_link+:} false; then :
12919 $as_echo_n "(cached) " >&6
12920 else
12921 ac_check_lib_save_LIBS=$LIBS
12922 LIBS="-ldld $LIBS"
12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12926 /* Override any GCC internal prototype to avoid an error.
12927 Use char because int might match the return type of a GCC
12928 builtin and then its argument prototype would still apply. */
12929 #ifdef __cplusplus
12930 extern "C"
12931 #endif
12932 char dld_link ();
12934 main ()
12936 return dld_link ();
12938 return 0;
12940 _ACEOF
12941 if ac_fn_c_try_link "$LINENO"; then :
12942 ac_cv_lib_dld_dld_link=yes
12943 else
12944 ac_cv_lib_dld_dld_link=no
12946 rm -f core conftest.err conftest.$ac_objext \
12947 conftest$ac_exeext conftest.$ac_ext
12948 LIBS=$ac_check_lib_save_LIBS
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12951 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12952 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12953 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12972 esac
12974 if test "x$lt_cv_dlopen" != xno; then
12975 enable_dlopen=yes
12976 else
12977 enable_dlopen=no
12980 case $lt_cv_dlopen in
12981 dlopen)
12982 save_CPPFLAGS="$CPPFLAGS"
12983 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12985 save_LDFLAGS="$LDFLAGS"
12986 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12988 save_LIBS="$LIBS"
12989 LIBS="$lt_cv_dlopen_libs $LIBS"
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12992 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12993 if ${lt_cv_dlopen_self+:} false; then :
12994 $as_echo_n "(cached) " >&6
12995 else
12996 if test "$cross_compiling" = yes; then :
12997 lt_cv_dlopen_self=cross
12998 else
12999 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13000 lt_status=$lt_dlunknown
13001 cat > conftest.$ac_ext <<_LT_EOF
13002 #line $LINENO "configure"
13003 #include "confdefs.h"
13005 #if HAVE_DLFCN_H
13006 #include <dlfcn.h>
13007 #endif
13009 #include <stdio.h>
13011 #ifdef RTLD_GLOBAL
13012 # define LT_DLGLOBAL RTLD_GLOBAL
13013 #else
13014 # ifdef DL_GLOBAL
13015 # define LT_DLGLOBAL DL_GLOBAL
13016 # else
13017 # define LT_DLGLOBAL 0
13018 # endif
13019 #endif
13021 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13022 find out it does not work in some platform. */
13023 #ifndef LT_DLLAZY_OR_NOW
13024 # ifdef RTLD_LAZY
13025 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13026 # else
13027 # ifdef DL_LAZY
13028 # define LT_DLLAZY_OR_NOW DL_LAZY
13029 # else
13030 # ifdef RTLD_NOW
13031 # define LT_DLLAZY_OR_NOW RTLD_NOW
13032 # else
13033 # ifdef DL_NOW
13034 # define LT_DLLAZY_OR_NOW DL_NOW
13035 # else
13036 # define LT_DLLAZY_OR_NOW 0
13037 # endif
13038 # endif
13039 # endif
13040 # endif
13041 #endif
13043 /* When -fvisbility=hidden is used, assume the code has been annotated
13044 correspondingly for the symbols needed. */
13045 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13046 int fnord () __attribute__((visibility("default")));
13047 #endif
13049 int fnord () { return 42; }
13050 int main ()
13052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13053 int status = $lt_dlunknown;
13055 if (self)
13057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13058 else
13060 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13061 else puts (dlerror ());
13063 /* dlclose (self); */
13065 else
13066 puts (dlerror ());
13068 return status;
13070 _LT_EOF
13071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13072 (eval $ac_link) 2>&5
13073 ac_status=$?
13074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13075 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13076 (./conftest; exit; ) >&5 2>/dev/null
13077 lt_status=$?
13078 case x$lt_status in
13079 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13080 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13081 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13082 esac
13083 else :
13084 # compilation failed
13085 lt_cv_dlopen_self=no
13088 rm -fr conftest*
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13093 $as_echo "$lt_cv_dlopen_self" >&6; }
13095 if test "x$lt_cv_dlopen_self" = xyes; then
13096 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13098 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13099 if ${lt_cv_dlopen_self_static+:} false; then :
13100 $as_echo_n "(cached) " >&6
13101 else
13102 if test "$cross_compiling" = yes; then :
13103 lt_cv_dlopen_self_static=cross
13104 else
13105 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13106 lt_status=$lt_dlunknown
13107 cat > conftest.$ac_ext <<_LT_EOF
13108 #line $LINENO "configure"
13109 #include "confdefs.h"
13111 #if HAVE_DLFCN_H
13112 #include <dlfcn.h>
13113 #endif
13115 #include <stdio.h>
13117 #ifdef RTLD_GLOBAL
13118 # define LT_DLGLOBAL RTLD_GLOBAL
13119 #else
13120 # ifdef DL_GLOBAL
13121 # define LT_DLGLOBAL DL_GLOBAL
13122 # else
13123 # define LT_DLGLOBAL 0
13124 # endif
13125 #endif
13127 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13128 find out it does not work in some platform. */
13129 #ifndef LT_DLLAZY_OR_NOW
13130 # ifdef RTLD_LAZY
13131 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13132 # else
13133 # ifdef DL_LAZY
13134 # define LT_DLLAZY_OR_NOW DL_LAZY
13135 # else
13136 # ifdef RTLD_NOW
13137 # define LT_DLLAZY_OR_NOW RTLD_NOW
13138 # else
13139 # ifdef DL_NOW
13140 # define LT_DLLAZY_OR_NOW DL_NOW
13141 # else
13142 # define LT_DLLAZY_OR_NOW 0
13143 # endif
13144 # endif
13145 # endif
13146 # endif
13147 #endif
13149 /* When -fvisbility=hidden is used, assume the code has been annotated
13150 correspondingly for the symbols needed. */
13151 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13152 int fnord () __attribute__((visibility("default")));
13153 #endif
13155 int fnord () { return 42; }
13156 int main ()
13158 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13159 int status = $lt_dlunknown;
13161 if (self)
13163 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13164 else
13166 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13167 else puts (dlerror ());
13169 /* dlclose (self); */
13171 else
13172 puts (dlerror ());
13174 return status;
13176 _LT_EOF
13177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13178 (eval $ac_link) 2>&5
13179 ac_status=$?
13180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13181 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13182 (./conftest; exit; ) >&5 2>/dev/null
13183 lt_status=$?
13184 case x$lt_status in
13185 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13186 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13187 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13188 esac
13189 else :
13190 # compilation failed
13191 lt_cv_dlopen_self_static=no
13194 rm -fr conftest*
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13199 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13202 CPPFLAGS="$save_CPPFLAGS"
13203 LDFLAGS="$save_LDFLAGS"
13204 LIBS="$save_LIBS"
13206 esac
13208 case $lt_cv_dlopen_self in
13209 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13210 *) enable_dlopen_self=unknown ;;
13211 esac
13213 case $lt_cv_dlopen_self_static in
13214 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13215 *) enable_dlopen_self_static=unknown ;;
13216 esac
13235 striplib=
13236 old_striplib=
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13238 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13239 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13240 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13241 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13243 $as_echo "yes" >&6; }
13244 else
13245 # FIXME - insert some real tests, host_os isn't really good enough
13246 case $host_os in
13247 darwin*)
13248 if test -n "$STRIP" ; then
13249 striplib="$STRIP -x"
13250 old_striplib="$STRIP -S"
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13252 $as_echo "yes" >&6; }
13253 else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255 $as_echo "no" >&6; }
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260 $as_echo "no" >&6; }
13262 esac
13276 # Report which library types will actually be built
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13278 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13280 $as_echo "$can_build_shared" >&6; }
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13283 $as_echo_n "checking whether to build shared libraries... " >&6; }
13284 test "$can_build_shared" = "no" && enable_shared=no
13286 # On AIX, shared libraries and static libraries use the same namespace, and
13287 # are all built from PIC.
13288 case $host_os in
13289 aix3*)
13290 test "$enable_shared" = yes && enable_static=no
13291 if test -n "$RANLIB"; then
13292 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13293 postinstall_cmds='$RANLIB $lib'
13297 aix[4-9]*)
13298 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13299 test "$enable_shared" = yes && enable_static=no
13302 esac
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13304 $as_echo "$enable_shared" >&6; }
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13307 $as_echo_n "checking whether to build static libraries... " >&6; }
13308 # Make sure either enable_shared or enable_static is yes.
13309 test "$enable_shared" = yes || enable_static=yes
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13311 $as_echo "$enable_static" >&6; }
13317 ac_ext=c
13318 ac_cpp='$CPP $CPPFLAGS'
13319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13323 CC="$lt_save_CC"
13339 ac_config_commands="$ac_config_commands libtool"
13344 # Only expand once:
13350 # Extract the first word of "ronn", so it can be a program name with args.
13351 set dummy ronn; ac_word=$2
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13353 $as_echo_n "checking for $ac_word... " >&6; }
13354 if ${ac_cv_path_RONN+:} false; then :
13355 $as_echo_n "(cached) " >&6
13356 else
13357 case $RONN in
13358 [\\/]* | ?:[\\/]*)
13359 ac_cv_path_RONN="$RONN" # Let the user override the test with a path.
13362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13363 for as_dir in $PATH
13365 IFS=$as_save_IFS
13366 test -z "$as_dir" && as_dir=.
13367 for ac_exec_ext in '' $ac_executable_extensions; do
13368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13369 ac_cv_path_RONN="$as_dir/$ac_word$ac_exec_ext"
13370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13371 break 2
13373 done
13374 done
13375 IFS=$as_save_IFS
13377 test -z "$ac_cv_path_RONN" && ac_cv_path_RONN="#"
13379 esac
13381 RONN=$ac_cv_path_RONN
13382 if test -n "$RONN"; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RONN" >&5
13384 $as_echo "$RONN" >&6; }
13385 else
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387 $as_echo "no" >&6; }
13393 # Extract the first word of "sixjack", so it can be a program name with args.
13394 set dummy sixjack; ac_word=$2
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13396 $as_echo_n "checking for $ac_word... " >&6; }
13397 if ${ac_cv_path_SIXJACK+:} false; then :
13398 $as_echo_n "(cached) " >&6
13399 else
13400 case $SIXJACK in
13401 [\\/]* | ?:[\\/]*)
13402 ac_cv_path_SIXJACK="$SIXJACK" # Let the user override the test with a path.
13405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406 for as_dir in $PATH
13408 IFS=$as_save_IFS
13409 test -z "$as_dir" && as_dir=.
13410 for ac_exec_ext in '' $ac_executable_extensions; do
13411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13412 ac_cv_path_SIXJACK="$as_dir/$ac_word$ac_exec_ext"
13413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13414 break 2
13416 done
13417 done
13418 IFS=$as_save_IFS
13420 test -z "$ac_cv_path_SIXJACK" && ac_cv_path_SIXJACK="#"
13422 esac
13424 SIXJACK=$ac_cv_path_SIXJACK
13425 if test -n "$SIXJACK"; then
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIXJACK" >&5
13427 $as_echo "$SIXJACK" >&6; }
13428 else
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13430 $as_echo "no" >&6; }
13436 if test -n "$ac_tool_prefix"; then
13437 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13438 set dummy ${ac_tool_prefix}ar; ac_word=$2
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13440 $as_echo_n "checking for $ac_word... " >&6; }
13441 if ${ac_cv_prog_AR+:} false; then :
13442 $as_echo_n "(cached) " >&6
13443 else
13444 if test -n "$AR"; then
13445 ac_cv_prog_AR="$AR" # Let the user override the test.
13446 else
13447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13448 for as_dir in $PATH
13450 IFS=$as_save_IFS
13451 test -z "$as_dir" && as_dir=.
13452 for ac_exec_ext in '' $ac_executable_extensions; do
13453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13454 ac_cv_prog_AR="${ac_tool_prefix}ar"
13455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13456 break 2
13458 done
13459 done
13460 IFS=$as_save_IFS
13464 AR=$ac_cv_prog_AR
13465 if test -n "$AR"; then
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13467 $as_echo "$AR" >&6; }
13468 else
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13470 $as_echo "no" >&6; }
13475 if test -z "$ac_cv_prog_AR"; then
13476 ac_ct_AR=$AR
13477 # Extract the first word of "ar", so it can be a program name with args.
13478 set dummy ar; ac_word=$2
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13480 $as_echo_n "checking for $ac_word... " >&6; }
13481 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13482 $as_echo_n "(cached) " >&6
13483 else
13484 if test -n "$ac_ct_AR"; then
13485 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13486 else
13487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13488 for as_dir in $PATH
13490 IFS=$as_save_IFS
13491 test -z "$as_dir" && as_dir=.
13492 for ac_exec_ext in '' $ac_executable_extensions; do
13493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13494 ac_cv_prog_ac_ct_AR="ar"
13495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13496 break 2
13498 done
13499 done
13500 IFS=$as_save_IFS
13504 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13505 if test -n "$ac_ct_AR"; then
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13507 $as_echo "$ac_ct_AR" >&6; }
13508 else
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13510 $as_echo "no" >&6; }
13513 if test "x$ac_ct_AR" = x; then
13514 AR="ar"
13515 else
13516 case $cross_compiling:$ac_tool_warned in
13517 yes:)
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13520 ac_tool_warned=yes ;;
13521 esac
13522 AR=$ac_ct_AR
13524 else
13525 AR="$ac_cv_prog_AR"
13529 if test `(uname -s) 2>/dev/null` = "Darwin"; then :
13532 # Extract the first word of "dtrace", so it can be a program name with args.
13533 set dummy dtrace; ac_word=$2
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13535 $as_echo_n "checking for $ac_word... " >&6; }
13536 if ${ac_cv_path_DTRACE+:} false; then :
13537 $as_echo_n "(cached) " >&6
13538 else
13539 case $DTRACE in
13540 [\\/]* | ?:[\\/]*)
13541 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
13544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545 for as_dir in $PATH
13547 IFS=$as_save_IFS
13548 test -z "$as_dir" && as_dir=.
13549 for ac_exec_ext in '' $ac_executable_extensions; do
13550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13551 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
13552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13553 break 2
13555 done
13556 done
13557 IFS=$as_save_IFS
13560 esac
13562 DTRACE=$ac_cv_path_DTRACE
13563 if test -n "$DTRACE"; then
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
13565 $as_echo "$DTRACE" >&6; }
13566 else
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13568 $as_echo "no" >&6; }
13574 if test -n "$DTRACE"; then :
13576 PROBES_SOURCE="probes_dnscrypt_proxy.h"
13578 else
13580 DTRACE="#"
13581 PROBES_SOURCE="probes_no_dtrace.h"
13585 if test -d /usr/local/include; then :
13587 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
13591 if test -d /usr/local/lib; then :
13593 LDFLAGS="$LDFLAGS -L/usr/local/lib"
13598 # Check whether --enable-largefile was given.
13599 if test "${enable_largefile+set}" = set; then :
13600 enableval=$enable_largefile;
13603 if test "$enable_largefile" != no; then
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13606 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13607 if ${ac_cv_sys_largefile_CC+:} false; then :
13608 $as_echo_n "(cached) " >&6
13609 else
13610 ac_cv_sys_largefile_CC=no
13611 if test "$GCC" != yes; then
13612 ac_save_CC=$CC
13613 while :; do
13614 # IRIX 6.2 and later do not support large files by default,
13615 # so use the C compiler's -n32 option if that helps.
13616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13617 /* end confdefs.h. */
13618 #include <sys/types.h>
13619 /* Check that off_t can represent 2**63 - 1 correctly.
13620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13621 since some C++ compilers masquerading as C compilers
13622 incorrectly reject 9223372036854775807. */
13623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13625 && LARGE_OFF_T % 2147483647 == 1)
13626 ? 1 : -1];
13628 main ()
13632 return 0;
13634 _ACEOF
13635 if ac_fn_c_try_compile "$LINENO"; then :
13636 break
13638 rm -f core conftest.err conftest.$ac_objext
13639 CC="$CC -n32"
13640 if ac_fn_c_try_compile "$LINENO"; then :
13641 ac_cv_sys_largefile_CC=' -n32'; break
13643 rm -f core conftest.err conftest.$ac_objext
13644 break
13645 done
13646 CC=$ac_save_CC
13647 rm -f conftest.$ac_ext
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13651 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13652 if test "$ac_cv_sys_largefile_CC" != no; then
13653 CC=$CC$ac_cv_sys_largefile_CC
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13657 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13658 if ${ac_cv_sys_file_offset_bits+:} false; then :
13659 $as_echo_n "(cached) " >&6
13660 else
13661 while :; do
13662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h. */
13664 #include <sys/types.h>
13665 /* Check that off_t can represent 2**63 - 1 correctly.
13666 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13667 since some C++ compilers masquerading as C compilers
13668 incorrectly reject 9223372036854775807. */
13669 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13670 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13671 && LARGE_OFF_T % 2147483647 == 1)
13672 ? 1 : -1];
13674 main ()
13678 return 0;
13680 _ACEOF
13681 if ac_fn_c_try_compile "$LINENO"; then :
13682 ac_cv_sys_file_offset_bits=no; break
13684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13687 #define _FILE_OFFSET_BITS 64
13688 #include <sys/types.h>
13689 /* Check that off_t can represent 2**63 - 1 correctly.
13690 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13691 since some C++ compilers masquerading as C compilers
13692 incorrectly reject 9223372036854775807. */
13693 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13694 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13695 && LARGE_OFF_T % 2147483647 == 1)
13696 ? 1 : -1];
13698 main ()
13702 return 0;
13704 _ACEOF
13705 if ac_fn_c_try_compile "$LINENO"; then :
13706 ac_cv_sys_file_offset_bits=64; break
13708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13709 ac_cv_sys_file_offset_bits=unknown
13710 break
13711 done
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13714 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13715 case $ac_cv_sys_file_offset_bits in #(
13716 no | unknown) ;;
13718 cat >>confdefs.h <<_ACEOF
13719 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13720 _ACEOF
13722 esac
13723 rm -rf conftest*
13724 if test $ac_cv_sys_file_offset_bits = unknown; then
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13726 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13727 if ${ac_cv_sys_large_files+:} false; then :
13728 $as_echo_n "(cached) " >&6
13729 else
13730 while :; do
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13733 #include <sys/types.h>
13734 /* Check that off_t can represent 2**63 - 1 correctly.
13735 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13736 since some C++ compilers masquerading as C compilers
13737 incorrectly reject 9223372036854775807. */
13738 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13739 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13740 && LARGE_OFF_T % 2147483647 == 1)
13741 ? 1 : -1];
13743 main ()
13747 return 0;
13749 _ACEOF
13750 if ac_fn_c_try_compile "$LINENO"; then :
13751 ac_cv_sys_large_files=no; break
13753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h. */
13756 #define _LARGE_FILES 1
13757 #include <sys/types.h>
13758 /* Check that off_t can represent 2**63 - 1 correctly.
13759 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13760 since some C++ compilers masquerading as C compilers
13761 incorrectly reject 9223372036854775807. */
13762 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13763 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13764 && LARGE_OFF_T % 2147483647 == 1)
13765 ? 1 : -1];
13767 main ()
13771 return 0;
13773 _ACEOF
13774 if ac_fn_c_try_compile "$LINENO"; then :
13775 ac_cv_sys_large_files=1; break
13777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13778 ac_cv_sys_large_files=unknown
13779 break
13780 done
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13783 $as_echo "$ac_cv_sys_large_files" >&6; }
13784 case $ac_cv_sys_large_files in #(
13785 no | unknown) ;;
13787 cat >>confdefs.h <<_ACEOF
13788 #define _LARGE_FILES $ac_cv_sys_large_files
13789 _ACEOF
13791 esac
13792 rm -rf conftest*
13798 for ac_header in sys/cdefs.h sys/feature_tests.h
13799 do :
13800 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13801 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13802 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13803 cat >>confdefs.h <<_ACEOF
13804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13805 _ACEOF
13809 done
13811 for ac_header in execinfo.h paths.h pwd.h uuid/uuid.h
13812 do :
13813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13814 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13815 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13816 cat >>confdefs.h <<_ACEOF
13817 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13818 _ACEOF
13822 done
13824 for ac_header in sandbox.h
13825 do :
13826 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
13827 if test "x$ac_cv_header_sandbox_h" = xyes; then :
13828 cat >>confdefs.h <<_ACEOF
13829 #define HAVE_SANDBOX_H 1
13830 _ACEOF
13834 done
13837 for ac_func in getpwnam sandbox_init setrlimit
13838 do :
13839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13840 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13841 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13842 cat >>confdefs.h <<_ACEOF
13843 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13844 _ACEOF
13847 done
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13852 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13853 if ${ac_cv_c_bigendian+:} false; then :
13854 $as_echo_n "(cached) " >&6
13855 else
13856 ac_cv_c_bigendian=unknown
13857 # See if we're dealing with a universal compiler.
13858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13860 #ifndef __APPLE_CC__
13861 not a universal capable compiler
13862 #endif
13863 typedef int dummy;
13865 _ACEOF
13866 if ac_fn_c_try_compile "$LINENO"; then :
13868 # Check for potential -arch flags. It is not universal unless
13869 # there are at least two -arch flags with different values.
13870 ac_arch=
13871 ac_prev=
13872 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13873 if test -n "$ac_prev"; then
13874 case $ac_word in
13875 i?86 | x86_64 | ppc | ppc64)
13876 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13877 ac_arch=$ac_word
13878 else
13879 ac_cv_c_bigendian=universal
13880 break
13883 esac
13884 ac_prev=
13885 elif test "x$ac_word" = "x-arch"; then
13886 ac_prev=arch
13888 done
13890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13891 if test $ac_cv_c_bigendian = unknown; then
13892 # See if sys/param.h defines the BYTE_ORDER macro.
13893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h. */
13895 #include <sys/types.h>
13896 #include <sys/param.h>
13899 main ()
13901 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13902 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13903 && LITTLE_ENDIAN)
13904 bogus endian macros
13905 #endif
13908 return 0;
13910 _ACEOF
13911 if ac_fn_c_try_compile "$LINENO"; then :
13912 # It does; now see whether it defined to BIG_ENDIAN or not.
13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h. */
13915 #include <sys/types.h>
13916 #include <sys/param.h>
13919 main ()
13921 #if BYTE_ORDER != BIG_ENDIAN
13922 not big endian
13923 #endif
13926 return 0;
13928 _ACEOF
13929 if ac_fn_c_try_compile "$LINENO"; then :
13930 ac_cv_c_bigendian=yes
13931 else
13932 ac_cv_c_bigendian=no
13934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13938 if test $ac_cv_c_bigendian = unknown; then
13939 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13941 /* end confdefs.h. */
13942 #include <limits.h>
13945 main ()
13947 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13948 bogus endian macros
13949 #endif
13952 return 0;
13954 _ACEOF
13955 if ac_fn_c_try_compile "$LINENO"; then :
13956 # It does; now see whether it defined to _BIG_ENDIAN or not.
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13959 #include <limits.h>
13962 main ()
13964 #ifndef _BIG_ENDIAN
13965 not big endian
13966 #endif
13969 return 0;
13971 _ACEOF
13972 if ac_fn_c_try_compile "$LINENO"; then :
13973 ac_cv_c_bigendian=yes
13974 else
13975 ac_cv_c_bigendian=no
13977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13981 if test $ac_cv_c_bigendian = unknown; then
13982 # Compile a test program.
13983 if test "$cross_compiling" = yes; then :
13984 # Try to guess by grepping values from an object file.
13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h. */
13987 short int ascii_mm[] =
13988 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13989 short int ascii_ii[] =
13990 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13991 int use_ascii (int i) {
13992 return ascii_mm[i] + ascii_ii[i];
13994 short int ebcdic_ii[] =
13995 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13996 short int ebcdic_mm[] =
13997 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13998 int use_ebcdic (int i) {
13999 return ebcdic_mm[i] + ebcdic_ii[i];
14001 extern int foo;
14004 main ()
14006 return use_ascii (foo) == use_ebcdic (foo);
14008 return 0;
14010 _ACEOF
14011 if ac_fn_c_try_compile "$LINENO"; then :
14012 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14013 ac_cv_c_bigendian=yes
14015 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14016 if test "$ac_cv_c_bigendian" = unknown; then
14017 ac_cv_c_bigendian=no
14018 else
14019 # finding both strings is unlikely to happen, but who knows?
14020 ac_cv_c_bigendian=unknown
14024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14025 else
14026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027 /* end confdefs.h. */
14028 $ac_includes_default
14030 main ()
14033 /* Are we little or big endian? From Harbison&Steele. */
14034 union
14036 long int l;
14037 char c[sizeof (long int)];
14038 } u;
14039 u.l = 1;
14040 return u.c[sizeof (long int) - 1] == 1;
14043 return 0;
14045 _ACEOF
14046 if ac_fn_c_try_run "$LINENO"; then :
14047 ac_cv_c_bigendian=no
14048 else
14049 ac_cv_c_bigendian=yes
14051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14052 conftest.$ac_objext conftest.beam conftest.$ac_ext
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14058 $as_echo "$ac_cv_c_bigendian" >&6; }
14059 case $ac_cv_c_bigendian in #(
14060 yes)
14061 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14062 ;; #(
14064 ;; #(
14065 universal)
14067 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14069 ;; #(
14071 as_fn_error $? "unknown endianness
14072 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14073 esac
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14076 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14077 if ${ac_cv_c_restrict+:} false; then :
14078 $as_echo_n "(cached) " >&6
14079 else
14080 ac_cv_c_restrict=no
14081 # The order here caters to the fact that C++ does not require restrict.
14082 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14084 /* end confdefs.h. */
14085 typedef int * int_ptr;
14086 int foo (int_ptr $ac_kw ip) {
14087 return ip[0];
14090 main ()
14092 int s[1];
14093 int * $ac_kw t = s;
14094 t[0] = 0;
14095 return foo(t)
14097 return 0;
14099 _ACEOF
14100 if ac_fn_c_try_compile "$LINENO"; then :
14101 ac_cv_c_restrict=$ac_kw
14103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14104 test "$ac_cv_c_restrict" != no && break
14105 done
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14109 $as_echo "$ac_cv_c_restrict" >&6; }
14111 case $ac_cv_c_restrict in
14112 restrict) ;;
14113 no) $as_echo "#define restrict /**/" >>confdefs.h
14115 *) cat >>confdefs.h <<_ACEOF
14116 #define restrict $ac_cv_c_restrict
14117 _ACEOF
14119 esac
14122 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14123 #ifdef HAVE_UNISTD_H
14124 # include <unistd.h>
14125 #endif
14126 #include <sys/types.h>
14127 #include <sys/socket.h>
14128 #include <netinet/in.h>
14131 if test "x$ac_cv_type_in_port_t" = xyes; then :
14133 else
14135 $as_echo "#define in_port_t uint16_t" >>confdefs.h
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sin_len is defined" >&5
14141 $as_echo_n "checking whether sin_len is defined... " >&6; }
14142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h. */
14145 #include <stdio.h>
14146 #ifdef HAVE_UNISTD_H
14147 # include <unistd.h>
14148 #endif
14149 #include <sys/types.h>
14150 #include <sys/socket.h>
14151 #include <netinet/in.h>
14154 main ()
14157 do {
14158 struct sockaddr_in a;
14159 (void) a.sin_len;
14160 } while(0)
14163 return 0;
14165 _ACEOF
14166 if ac_fn_c_try_compile "$LINENO"; then :
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14169 $as_echo "yes" >&6; }
14171 $as_echo "#define HAVE_SIN_LEN /**/" >>confdefs.h
14174 else
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14177 $as_echo "no" >&6; }
14180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __ss_family is defined" >&5
14183 $as_echo_n "checking whether __ss_family is defined... " >&6; }
14184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14185 /* end confdefs.h. */
14187 #include <stdio.h>
14188 #ifdef HAVE_UNISTD_H
14189 # include <unistd.h>
14190 #endif
14191 #include <sys/types.h>
14192 #include <sys/socket.h>
14195 main ()
14198 do {
14199 struct sockaddr_storage a;
14200 (void) a.__ss_family;
14201 } while(0)
14204 return 0;
14206 _ACEOF
14207 if ac_fn_c_try_compile "$LINENO"; then :
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14210 $as_echo "yes" >&6; }
14212 $as_echo "#define HAVE___SS_FAMILY /**/" >>confdefs.h
14215 else
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14218 $as_echo "no" >&6; }
14221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ss_len is defined" >&5
14224 $as_echo_n "checking whether ss_len is defined... " >&6; }
14225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h. */
14228 #include <stdio.h>
14229 #ifdef HAVE_UNISTD_H
14230 # include <unistd.h>
14231 #endif
14232 #include <sys/types.h>
14233 #include <sys/socket.h>
14236 main ()
14239 do {
14240 struct sockaddr_storage a;
14241 (void) a.ss_len;
14242 } while(0)
14245 return 0;
14247 _ACEOF
14248 if ac_fn_c_try_compile "$LINENO"; then :
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14251 $as_echo "yes" >&6; }
14253 $as_echo "#define HAVE_SS_LEN /**/" >>confdefs.h
14256 else
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14259 $as_echo "no" >&6; }
14262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __ss_len is defined" >&5
14265 $as_echo_n "checking whether __ss_len is defined... " >&6; }
14266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14267 /* end confdefs.h. */
14269 #include <stdio.h>
14270 #ifdef HAVE_UNISTD_H
14271 # include <unistd.h>
14272 #endif
14273 #include <sys/types.h>
14274 #include <sys/socket.h>
14277 main ()
14280 do {
14281 struct sockaddr_storage a;
14282 (void) a.__ss_len;
14283 } while(0)
14286 return 0;
14288 _ACEOF
14289 if ac_fn_c_try_compile "$LINENO"; then :
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14292 $as_echo "yes" >&6; }
14294 $as_echo "#define HAVE___SS_LEN /**/" >>confdefs.h
14297 else
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14300 $as_echo "no" >&6; }
14303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
14307 $as_echo_n "checking for library containing pow... " >&6; }
14308 if ${ac_cv_search_pow+:} false; then :
14309 $as_echo_n "(cached) " >&6
14310 else
14311 ac_func_search_save_LIBS=$LIBS
14312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14313 /* end confdefs.h. */
14315 /* Override any GCC internal prototype to avoid an error.
14316 Use char because int might match the return type of a GCC
14317 builtin and then its argument prototype would still apply. */
14318 #ifdef __cplusplus
14319 extern "C"
14320 #endif
14321 char pow ();
14323 main ()
14325 return pow ();
14327 return 0;
14329 _ACEOF
14330 for ac_lib in '' m; do
14331 if test -z "$ac_lib"; then
14332 ac_res="none required"
14333 else
14334 ac_res=-l$ac_lib
14335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14337 if ac_fn_c_try_link "$LINENO"; then :
14338 ac_cv_search_pow=$ac_res
14340 rm -f core conftest.err conftest.$ac_objext \
14341 conftest$ac_exeext
14342 if ${ac_cv_search_pow+:} false; then :
14343 break
14345 done
14346 if ${ac_cv_search_pow+:} false; then :
14348 else
14349 ac_cv_search_pow=no
14351 rm conftest.$ac_ext
14352 LIBS=$ac_func_search_save_LIBS
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
14355 $as_echo "$ac_cv_search_pow" >&6; }
14356 ac_res=$ac_cv_search_pow
14357 if test "$ac_res" != no; then :
14358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14363 $as_echo_n "checking for library containing dlopen... " >&6; }
14364 if ${ac_cv_search_dlopen+:} false; then :
14365 $as_echo_n "(cached) " >&6
14366 else
14367 ac_func_search_save_LIBS=$LIBS
14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369 /* end confdefs.h. */
14371 /* Override any GCC internal prototype to avoid an error.
14372 Use char because int might match the return type of a GCC
14373 builtin and then its argument prototype would still apply. */
14374 #ifdef __cplusplus
14375 extern "C"
14376 #endif
14377 char dlopen ();
14379 main ()
14381 return dlopen ();
14383 return 0;
14385 _ACEOF
14386 for ac_lib in '' dl; do
14387 if test -z "$ac_lib"; then
14388 ac_res="none required"
14389 else
14390 ac_res=-l$ac_lib
14391 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14393 if ac_fn_c_try_link "$LINENO"; then :
14394 ac_cv_search_dlopen=$ac_res
14396 rm -f core conftest.err conftest.$ac_objext \
14397 conftest$ac_exeext
14398 if ${ac_cv_search_dlopen+:} false; then :
14399 break
14401 done
14402 if ${ac_cv_search_dlopen+:} false; then :
14404 else
14405 ac_cv_search_dlopen=no
14407 rm conftest.$ac_ext
14408 LIBS=$ac_func_search_save_LIBS
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14411 $as_echo "$ac_cv_search_dlopen" >&6; }
14412 ac_res=$ac_cv_search_dlopen
14413 if test "$ac_res" != no; then :
14414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14419 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14420 if ${ac_cv_search_clock_gettime+:} false; then :
14421 $as_echo_n "(cached) " >&6
14422 else
14423 ac_func_search_save_LIBS=$LIBS
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14427 /* Override any GCC internal prototype to avoid an error.
14428 Use char because int might match the return type of a GCC
14429 builtin and then its argument prototype would still apply. */
14430 #ifdef __cplusplus
14431 extern "C"
14432 #endif
14433 char clock_gettime ();
14435 main ()
14437 return clock_gettime ();
14439 return 0;
14441 _ACEOF
14442 for ac_lib in '' rt; do
14443 if test -z "$ac_lib"; then
14444 ac_res="none required"
14445 else
14446 ac_res=-l$ac_lib
14447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14449 if ac_fn_c_try_link "$LINENO"; then :
14450 ac_cv_search_clock_gettime=$ac_res
14452 rm -f core conftest.err conftest.$ac_objext \
14453 conftest$ac_exeext
14454 if ${ac_cv_search_clock_gettime+:} false; then :
14455 break
14457 done
14458 if ${ac_cv_search_clock_gettime+:} false; then :
14460 else
14461 ac_cv_search_clock_gettime=no
14463 rm conftest.$ac_ext
14464 LIBS=$ac_func_search_save_LIBS
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14467 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14468 ac_res=$ac_cv_search_clock_gettime
14469 if test "$ac_res" != no; then :
14470 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14472 $as_echo "#define HAVE_CLOCK_GETTIME /**/" >>confdefs.h
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
14478 $as_echo_n "checking for library containing backtrace... " >&6; }
14479 if ${ac_cv_search_backtrace+:} false; then :
14480 $as_echo_n "(cached) " >&6
14481 else
14482 ac_func_search_save_LIBS=$LIBS
14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484 /* end confdefs.h. */
14486 /* Override any GCC internal prototype to avoid an error.
14487 Use char because int might match the return type of a GCC
14488 builtin and then its argument prototype would still apply. */
14489 #ifdef __cplusplus
14490 extern "C"
14491 #endif
14492 char backtrace ();
14494 main ()
14496 return backtrace ();
14498 return 0;
14500 _ACEOF
14501 for ac_lib in '' execinfo; do
14502 if test -z "$ac_lib"; then
14503 ac_res="none required"
14504 else
14505 ac_res=-l$ac_lib
14506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14508 if ac_fn_c_try_link "$LINENO"; then :
14509 ac_cv_search_backtrace=$ac_res
14511 rm -f core conftest.err conftest.$ac_objext \
14512 conftest$ac_exeext
14513 if ${ac_cv_search_backtrace+:} false; then :
14514 break
14516 done
14517 if ${ac_cv_search_backtrace+:} false; then :
14519 else
14520 ac_cv_search_backtrace=no
14522 rm conftest.$ac_ext
14523 LIBS=$ac_func_search_save_LIBS
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
14526 $as_echo "$ac_cv_search_backtrace" >&6; }
14527 ac_res=$ac_cv_search_backtrace
14528 if test "$ac_res" != no; then :
14529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14531 $as_echo "#define HAVE_BACKTRACE /**/" >>confdefs.h
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14537 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14538 if ${ac_cv_search_gethostbyname+:} false; then :
14539 $as_echo_n "(cached) " >&6
14540 else
14541 ac_func_search_save_LIBS=$LIBS
14542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14545 /* Override any GCC internal prototype to avoid an error.
14546 Use char because int might match the return type of a GCC
14547 builtin and then its argument prototype would still apply. */
14548 #ifdef __cplusplus
14549 extern "C"
14550 #endif
14551 char gethostbyname ();
14553 main ()
14555 return gethostbyname ();
14557 return 0;
14559 _ACEOF
14560 for ac_lib in '' resolv nsl; do
14561 if test -z "$ac_lib"; then
14562 ac_res="none required"
14563 else
14564 ac_res=-l$ac_lib
14565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14567 if ac_fn_c_try_link "$LINENO"; then :
14568 ac_cv_search_gethostbyname=$ac_res
14570 rm -f core conftest.err conftest.$ac_objext \
14571 conftest$ac_exeext
14572 if ${ac_cv_search_gethostbyname+:} false; then :
14573 break
14575 done
14576 if ${ac_cv_search_gethostbyname+:} false; then :
14578 else
14579 ac_cv_search_gethostbyname=no
14581 rm conftest.$ac_ext
14582 LIBS=$ac_func_search_save_LIBS
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14585 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14586 ac_res=$ac_cv_search_gethostbyname
14587 if test "$ac_res" != no; then :
14588 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing recvfrom" >&5
14593 $as_echo_n "checking for library containing recvfrom... " >&6; }
14594 if ${ac_cv_search_recvfrom+:} false; then :
14595 $as_echo_n "(cached) " >&6
14596 else
14597 ac_func_search_save_LIBS=$LIBS
14598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599 /* end confdefs.h. */
14601 /* Override any GCC internal prototype to avoid an error.
14602 Use char because int might match the return type of a GCC
14603 builtin and then its argument prototype would still apply. */
14604 #ifdef __cplusplus
14605 extern "C"
14606 #endif
14607 char recvfrom ();
14609 main ()
14611 return recvfrom ();
14613 return 0;
14615 _ACEOF
14616 for ac_lib in '' socket; do
14617 if test -z "$ac_lib"; then
14618 ac_res="none required"
14619 else
14620 ac_res=-l$ac_lib
14621 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14623 if ac_fn_c_try_link "$LINENO"; then :
14624 ac_cv_search_recvfrom=$ac_res
14626 rm -f core conftest.err conftest.$ac_objext \
14627 conftest$ac_exeext
14628 if ${ac_cv_search_recvfrom+:} false; then :
14629 break
14631 done
14632 if ${ac_cv_search_recvfrom+:} false; then :
14634 else
14635 ac_cv_search_recvfrom=no
14637 rm conftest.$ac_ext
14638 LIBS=$ac_func_search_save_LIBS
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_recvfrom" >&5
14641 $as_echo "$ac_cv_search_recvfrom" >&6; }
14642 ac_res=$ac_cv_search_recvfrom
14643 if test "$ac_res" != no; then :
14644 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
14649 $as_echo_n "checking for library containing kvm_open... " >&6; }
14650 if ${ac_cv_search_kvm_open+:} false; then :
14651 $as_echo_n "(cached) " >&6
14652 else
14653 ac_func_search_save_LIBS=$LIBS
14654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14655 /* end confdefs.h. */
14657 /* Override any GCC internal prototype to avoid an error.
14658 Use char because int might match the return type of a GCC
14659 builtin and then its argument prototype would still apply. */
14660 #ifdef __cplusplus
14661 extern "C"
14662 #endif
14663 char kvm_open ();
14665 main ()
14667 return kvm_open ();
14669 return 0;
14671 _ACEOF
14672 for ac_lib in '' kvm; do
14673 if test -z "$ac_lib"; then
14674 ac_res="none required"
14675 else
14676 ac_res=-l$ac_lib
14677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14679 if ac_fn_c_try_link "$LINENO"; then :
14680 ac_cv_search_kvm_open=$ac_res
14682 rm -f core conftest.err conftest.$ac_objext \
14683 conftest$ac_exeext
14684 if ${ac_cv_search_kvm_open+:} false; then :
14685 break
14687 done
14688 if ${ac_cv_search_kvm_open+:} false; then :
14690 else
14691 ac_cv_search_kvm_open=no
14693 rm conftest.$ac_ext
14694 LIBS=$ac_func_search_save_LIBS
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
14697 $as_echo "$ac_cv_search_kvm_open" >&6; }
14698 ac_res=$ac_cv_search_kvm_open
14699 if test "$ac_res" != no; then :
14700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14705 case $host_os in
14706 cygwin* | mingw* | pw32* | cegcc*)
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _head_libws2_32_a in -lws2_32" >&5
14708 $as_echo_n "checking for _head_libws2_32_a in -lws2_32... " >&6; }
14709 if ${ac_cv_lib_ws2_32__head_libws2_32_a+:} false; then :
14710 $as_echo_n "(cached) " >&6
14711 else
14712 ac_check_lib_save_LIBS=$LIBS
14713 LIBS="-lws2_32 $LIBS"
14714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715 /* end confdefs.h. */
14717 /* Override any GCC internal prototype to avoid an error.
14718 Use char because int might match the return type of a GCC
14719 builtin and then its argument prototype would still apply. */
14720 #ifdef __cplusplus
14721 extern "C"
14722 #endif
14723 char _head_libws2_32_a ();
14725 main ()
14727 return _head_libws2_32_a ();
14729 return 0;
14731 _ACEOF
14732 if ac_fn_c_try_link "$LINENO"; then :
14733 ac_cv_lib_ws2_32__head_libws2_32_a=yes
14734 else
14735 ac_cv_lib_ws2_32__head_libws2_32_a=no
14737 rm -f core conftest.err conftest.$ac_objext \
14738 conftest$ac_exeext conftest.$ac_ext
14739 LIBS=$ac_check_lib_save_LIBS
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32__head_libws2_32_a" >&5
14742 $as_echo "$ac_cv_lib_ws2_32__head_libws2_32_a" >&6; }
14743 if test "x$ac_cv_lib_ws2_32__head_libws2_32_a" = xyes; then :
14744 cat >>confdefs.h <<_ACEOF
14745 #define HAVE_LIBWS2_32 1
14746 _ACEOF
14748 LIBS="-lws2_32 $LIBS"
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _head_libpsapi_a in -lpsapi" >&5
14753 $as_echo_n "checking for _head_libpsapi_a in -lpsapi... " >&6; }
14754 if ${ac_cv_lib_psapi__head_libpsapi_a+:} false; then :
14755 $as_echo_n "(cached) " >&6
14756 else
14757 ac_check_lib_save_LIBS=$LIBS
14758 LIBS="-lpsapi $LIBS"
14759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h. */
14762 /* Override any GCC internal prototype to avoid an error.
14763 Use char because int might match the return type of a GCC
14764 builtin and then its argument prototype would still apply. */
14765 #ifdef __cplusplus
14766 extern "C"
14767 #endif
14768 char _head_libpsapi_a ();
14770 main ()
14772 return _head_libpsapi_a ();
14774 return 0;
14776 _ACEOF
14777 if ac_fn_c_try_link "$LINENO"; then :
14778 ac_cv_lib_psapi__head_libpsapi_a=yes
14779 else
14780 ac_cv_lib_psapi__head_libpsapi_a=no
14782 rm -f core conftest.err conftest.$ac_objext \
14783 conftest$ac_exeext conftest.$ac_ext
14784 LIBS=$ac_check_lib_save_LIBS
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psapi__head_libpsapi_a" >&5
14787 $as_echo "$ac_cv_lib_psapi__head_libpsapi_a" >&6; }
14788 if test "x$ac_cv_lib_psapi__head_libpsapi_a" = xyes; then :
14789 cat >>confdefs.h <<_ACEOF
14790 #define HAVE_LIBPSAPI 1
14791 _ACEOF
14793 LIBS="-lpsapi $LIBS"
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _head_libiphlpapi_a in -liphlpapi" >&5
14798 $as_echo_n "checking for _head_libiphlpapi_a in -liphlpapi... " >&6; }
14799 if ${ac_cv_lib_iphlpapi__head_libiphlpapi_a+:} false; then :
14800 $as_echo_n "(cached) " >&6
14801 else
14802 ac_check_lib_save_LIBS=$LIBS
14803 LIBS="-liphlpapi $LIBS"
14804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14805 /* end confdefs.h. */
14807 /* Override any GCC internal prototype to avoid an error.
14808 Use char because int might match the return type of a GCC
14809 builtin and then its argument prototype would still apply. */
14810 #ifdef __cplusplus
14811 extern "C"
14812 #endif
14813 char _head_libiphlpapi_a ();
14815 main ()
14817 return _head_libiphlpapi_a ();
14819 return 0;
14821 _ACEOF
14822 if ac_fn_c_try_link "$LINENO"; then :
14823 ac_cv_lib_iphlpapi__head_libiphlpapi_a=yes
14824 else
14825 ac_cv_lib_iphlpapi__head_libiphlpapi_a=no
14827 rm -f core conftest.err conftest.$ac_objext \
14828 conftest$ac_exeext conftest.$ac_ext
14829 LIBS=$ac_check_lib_save_LIBS
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iphlpapi__head_libiphlpapi_a" >&5
14832 $as_echo "$ac_cv_lib_iphlpapi__head_libiphlpapi_a" >&6; }
14833 if test "x$ac_cv_lib_iphlpapi__head_libiphlpapi_a" = xyes; then :
14834 cat >>confdefs.h <<_ACEOF
14835 #define HAVE_LIBIPHLPAPI 1
14836 _ACEOF
14838 LIBS="-liphlpapi $LIBS"
14843 esac
14845 ac_fn_c_check_header_mongrel "$LINENO" "CoreServices/CoreServices.h" "ac_cv_header_CoreServices_CoreServices_h" "$ac_includes_default"
14846 if test "x$ac_cv_header_CoreServices_CoreServices_h" = xyes; then :
14847 LIBS="$LIBS -framework CoreFoundation -framework CoreServices"
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
14855 $as_echo_n "checking whether to enable assertions... " >&6; }
14856 # Check whether --enable-assert was given.
14857 if test "${enable_assert+set}" = set; then :
14858 enableval=$enable_assert; ac_enable_assert=$enableval
14859 if test "x$enableval" = xno; then :
14861 $as_echo "#define NDEBUG 1" >>confdefs.h
14863 elif test "x$enableval" != xyes; then :
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
14865 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
14866 ac_enable_assert=yes
14868 else
14869 ac_enable_assert=yes
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
14873 $as_echo "$ac_enable_assert" >&6; }
14876 # Check whether --enable-blocking-random was given.
14877 if test "${enable_blocking_random+set}" = set; then :
14878 enableval=$enable_blocking_random;
14879 $as_echo "#define USE_BLOCKING_RANDOM /**/" >>confdefs.h
14884 # Check whether --enable-ssp was given.
14885 if test "${enable_ssp+set}" = set; then :
14886 enableval=$enable_ssp; if test "x$enableval" = "xno"; then :
14888 nxflags=""
14889 for flag in `echo $CFLAGS`; do
14890 case "$flag" in
14891 -fstack-protector*) ;;
14892 *) as_fn_append nxflags " $flag" ;;
14893 esac
14894 done
14895 CFLAGS="$nxflags"
14902 # Check whether --enable-debug was given.
14903 if test "${enable_debug+set}" = set; then :
14904 enableval=$enable_debug;
14905 if test "x$LX_CFLAGS" = "xNONE"; then :
14907 nxflags=""
14908 for flag in `echo $CFLAGS`; do
14909 case "$flag" in
14910 -O*) ;;
14911 -g*) ;;
14912 *) as_fn_append nxflags " $flag" ;;
14913 esac
14914 done
14915 CFLAGS="$nxflags -O0 -g3"
14918 CPPFLAGS="$CPPFLAGS -DDEBUG=1"
14924 # Check whether --with-safecode was given.
14925 if test "${with_safecode+set}" = set; then :
14926 withval=$with_safecode; if test "x$withval" = "xyes"; then :
14929 : ${SAFECODE_HOME:=/opt/safecode}
14930 LDFLAGS="$LDFLAGS -L${SAFECODE_HOME}/lib"
14931 LIBS="$LIBS -lsc_dbg_rt -lpoolalloc_bitmap -lstdc++"
14932 CFLAGS="$CFLAGS -fmemsafety"
14939 NACL_HOSTNAME="localhost"
14940 NACL_PATH=libnacl/build/${NACL_HOSTNAME}
14950 nx_ac_configure_args=""
14951 for flag in $ac_configure_args; do
14952 case "$flag" in
14953 \'--build*) as_fn_append nx_ac_configure_args " $flag" ;;
14954 \'--host*) as_fn_append nx_ac_configure_args " $flag" ;;
14955 *) ;;
14956 esac
14957 done
14958 ac_configure_args="$nx_ac_configure_args"
14960 case $host_os in
14961 cygwin* | mingw* | pw32* | cegcc*) ;;
14962 *) ac_configure_args="$ac_configure_args --disable-thread-support" ;;
14963 esac
14965 ac_configure_args="$ac_configure_args --disable-dependency-tracking"
14966 ac_configure_args="$ac_configure_args --disable-libevent-install"
14967 ac_configure_args="$ac_configure_args --disable-openssl"
14968 ac_configure_args="$ac_configure_args --disable-shared"
14969 ac_configure_args="$ac_configure_args --enable-function-sections"
14970 export CC
14971 export CFLAGS
14972 export CPP
14973 export CPPFLAGS
14974 export LDFLAGS
14975 export LIBS
14978 ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile src/hostip/Makefile src/proxy/Makefile src/ext/Makefile src/libnacl/Makefile src/libnacl/tests/Makefile src/libnacl/okcompilers/c src/libnacl/okcompilers/do test/Makefile"
14981 cat >confcache <<\_ACEOF
14982 # This file is a shell script that caches the results of configure
14983 # tests run on this system so they can be shared between configure
14984 # scripts and configure runs, see configure's option --config-cache.
14985 # It is not useful on other systems. If it contains results you don't
14986 # want to keep, you may remove or edit it.
14988 # config.status only pays attention to the cache file if you give it
14989 # the --recheck option to rerun configure.
14991 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14992 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14993 # following values.
14995 _ACEOF
14997 # The following way of writing the cache mishandles newlines in values,
14998 # but we know of no workaround that is simple, portable, and efficient.
14999 # So, we kill variables containing newlines.
15000 # Ultrix sh set writes to stderr and can't be redirected directly,
15001 # and sets the high bit in the cache file unless we assign to the vars.
15003 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15004 eval ac_val=\$$ac_var
15005 case $ac_val in #(
15006 *${as_nl}*)
15007 case $ac_var in #(
15008 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15009 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15010 esac
15011 case $ac_var in #(
15012 _ | IFS | as_nl) ;; #(
15013 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15014 *) { eval $ac_var=; unset $ac_var;} ;;
15015 esac ;;
15016 esac
15017 done
15019 (set) 2>&1 |
15020 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15021 *${as_nl}ac_space=\ *)
15022 # `set' does not quote correctly, so add quotes: double-quote
15023 # substitution turns \\\\ into \\, and sed turns \\ into \.
15024 sed -n \
15025 "s/'/'\\\\''/g;
15026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15027 ;; #(
15029 # `set' quotes correctly as required by POSIX, so do not add quotes.
15030 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15032 esac |
15033 sort
15035 sed '
15036 /^ac_cv_env_/b end
15037 t clear
15038 :clear
15039 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15040 t end
15041 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15042 :end' >>confcache
15043 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15044 if test -w "$cache_file"; then
15045 if test "x$cache_file" != "x/dev/null"; then
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15047 $as_echo "$as_me: updating cache $cache_file" >&6;}
15048 if test ! -f "$cache_file" || test -h "$cache_file"; then
15049 cat confcache >"$cache_file"
15050 else
15051 case $cache_file in #(
15052 */* | ?:*)
15053 mv -f confcache "$cache_file"$$ &&
15054 mv -f "$cache_file"$$ "$cache_file" ;; #(
15056 mv -f confcache "$cache_file" ;;
15057 esac
15060 else
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15062 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15065 rm -f confcache
15067 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15068 # Let make expand exec_prefix.
15069 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15071 DEFS=-DHAVE_CONFIG_H
15073 ac_libobjs=
15074 ac_ltlibobjs=
15076 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15077 # 1. Remove the extension, and $U if already installed.
15078 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15079 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15080 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15081 # will be set to the directory where LIBOBJS objects are built.
15082 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15083 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15084 done
15085 LIBOBJS=$ac_libobjs
15087 LTLIBOBJS=$ac_ltlibobjs
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15091 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15092 if test -n "$am_sleep_pid"; then
15093 # Hide warnings about reused PIDs.
15094 wait $am_sleep_pid 2>/dev/null
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15097 $as_echo "done" >&6; }
15098 if test -n "$EXEEXT"; then
15099 am__EXEEXT_TRUE=
15100 am__EXEEXT_FALSE='#'
15101 else
15102 am__EXEEXT_TRUE='#'
15103 am__EXEEXT_FALSE=
15106 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15107 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15110 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15111 as_fn_error $? "conditional \"AMDEP\" was never defined.
15112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15114 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15115 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15120 : "${CONFIG_STATUS=./config.status}"
15121 ac_write_fail=0
15122 ac_clean_files_save=$ac_clean_files
15123 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15125 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15126 as_write_fail=0
15127 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15128 #! $SHELL
15129 # Generated by $as_me.
15130 # Run this file to recreate the current configuration.
15131 # Compiler output produced by configure, useful for debugging
15132 # configure, is in config.log if it exists.
15134 debug=false
15135 ac_cs_recheck=false
15136 ac_cs_silent=false
15138 SHELL=\${CONFIG_SHELL-$SHELL}
15139 export SHELL
15140 _ASEOF
15141 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15142 ## -------------------- ##
15143 ## M4sh Initialization. ##
15144 ## -------------------- ##
15146 # Be more Bourne compatible
15147 DUALCASE=1; export DUALCASE # for MKS sh
15148 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15149 emulate sh
15150 NULLCMD=:
15151 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15152 # is contrary to our usage. Disable this feature.
15153 alias -g '${1+"$@"}'='"$@"'
15154 setopt NO_GLOB_SUBST
15155 else
15156 case `(set -o) 2>/dev/null` in #(
15157 *posix*) :
15158 set -o posix ;; #(
15159 *) :
15161 esac
15165 as_nl='
15167 export as_nl
15168 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15169 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15170 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15171 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15172 # Prefer a ksh shell builtin over an external printf program on Solaris,
15173 # but without wasting forks for bash or zsh.
15174 if test -z "$BASH_VERSION$ZSH_VERSION" \
15175 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15176 as_echo='print -r --'
15177 as_echo_n='print -rn --'
15178 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15179 as_echo='printf %s\n'
15180 as_echo_n='printf %s'
15181 else
15182 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15183 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15184 as_echo_n='/usr/ucb/echo -n'
15185 else
15186 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15187 as_echo_n_body='eval
15188 arg=$1;
15189 case $arg in #(
15190 *"$as_nl"*)
15191 expr "X$arg" : "X\\(.*\\)$as_nl";
15192 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15193 esac;
15194 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15196 export as_echo_n_body
15197 as_echo_n='sh -c $as_echo_n_body as_echo'
15199 export as_echo_body
15200 as_echo='sh -c $as_echo_body as_echo'
15203 # The user is always right.
15204 if test "${PATH_SEPARATOR+set}" != set; then
15205 PATH_SEPARATOR=:
15206 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15207 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15208 PATH_SEPARATOR=';'
15213 # IFS
15214 # We need space, tab and new line, in precisely that order. Quoting is
15215 # there to prevent editors from complaining about space-tab.
15216 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15217 # splitting by setting IFS to empty value.)
15218 IFS=" "" $as_nl"
15220 # Find who we are. Look in the path if we contain no directory separator.
15221 as_myself=
15222 case $0 in #((
15223 *[\\/]* ) as_myself=$0 ;;
15224 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15225 for as_dir in $PATH
15227 IFS=$as_save_IFS
15228 test -z "$as_dir" && as_dir=.
15229 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15230 done
15231 IFS=$as_save_IFS
15234 esac
15235 # We did not find ourselves, most probably we were run as `sh COMMAND'
15236 # in which case we are not to be found in the path.
15237 if test "x$as_myself" = x; then
15238 as_myself=$0
15240 if test ! -f "$as_myself"; then
15241 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15242 exit 1
15245 # Unset variables that we do not need and which cause bugs (e.g. in
15246 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15247 # suppresses any "Segmentation fault" message there. '((' could
15248 # trigger a bug in pdksh 5.2.14.
15249 for as_var in BASH_ENV ENV MAIL MAILPATH
15250 do eval test x\${$as_var+set} = xset \
15251 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15252 done
15253 PS1='$ '
15254 PS2='> '
15255 PS4='+ '
15257 # NLS nuisances.
15258 LC_ALL=C
15259 export LC_ALL
15260 LANGUAGE=C
15261 export LANGUAGE
15263 # CDPATH.
15264 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15267 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15268 # ----------------------------------------
15269 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15270 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15271 # script with STATUS, using 1 if that was 0.
15272 as_fn_error ()
15274 as_status=$1; test $as_status -eq 0 && as_status=1
15275 if test "$4"; then
15276 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15277 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15279 $as_echo "$as_me: error: $2" >&2
15280 as_fn_exit $as_status
15281 } # as_fn_error
15284 # as_fn_set_status STATUS
15285 # -----------------------
15286 # Set $? to STATUS, without forking.
15287 as_fn_set_status ()
15289 return $1
15290 } # as_fn_set_status
15292 # as_fn_exit STATUS
15293 # -----------------
15294 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15295 as_fn_exit ()
15297 set +e
15298 as_fn_set_status $1
15299 exit $1
15300 } # as_fn_exit
15302 # as_fn_unset VAR
15303 # ---------------
15304 # Portably unset VAR.
15305 as_fn_unset ()
15307 { eval $1=; unset $1;}
15309 as_unset=as_fn_unset
15310 # as_fn_append VAR VALUE
15311 # ----------------------
15312 # Append the text in VALUE to the end of the definition contained in VAR. Take
15313 # advantage of any shell optimizations that allow amortized linear growth over
15314 # repeated appends, instead of the typical quadratic growth present in naive
15315 # implementations.
15316 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15317 eval 'as_fn_append ()
15319 eval $1+=\$2
15321 else
15322 as_fn_append ()
15324 eval $1=\$$1\$2
15326 fi # as_fn_append
15328 # as_fn_arith ARG...
15329 # ------------------
15330 # Perform arithmetic evaluation on the ARGs, and store the result in the
15331 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15332 # must be portable across $(()) and expr.
15333 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15334 eval 'as_fn_arith ()
15336 as_val=$(( $* ))
15338 else
15339 as_fn_arith ()
15341 as_val=`expr "$@" || test $? -eq 1`
15343 fi # as_fn_arith
15346 if expr a : '\(a\)' >/dev/null 2>&1 &&
15347 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15348 as_expr=expr
15349 else
15350 as_expr=false
15353 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15354 as_basename=basename
15355 else
15356 as_basename=false
15359 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15360 as_dirname=dirname
15361 else
15362 as_dirname=false
15365 as_me=`$as_basename -- "$0" ||
15366 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15367 X"$0" : 'X\(//\)$' \| \
15368 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15369 $as_echo X/"$0" |
15370 sed '/^.*\/\([^/][^/]*\)\/*$/{
15371 s//\1/
15374 /^X\/\(\/\/\)$/{
15375 s//\1/
15378 /^X\/\(\/\).*/{
15379 s//\1/
15382 s/.*/./; q'`
15384 # Avoid depending upon Character Ranges.
15385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15388 as_cr_digits='0123456789'
15389 as_cr_alnum=$as_cr_Letters$as_cr_digits
15391 ECHO_C= ECHO_N= ECHO_T=
15392 case `echo -n x` in #(((((
15393 -n*)
15394 case `echo 'xy\c'` in
15395 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15396 xy) ECHO_C='\c';;
15397 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15398 ECHO_T=' ';;
15399 esac;;
15401 ECHO_N='-n';;
15402 esac
15404 rm -f conf$$ conf$$.exe conf$$.file
15405 if test -d conf$$.dir; then
15406 rm -f conf$$.dir/conf$$.file
15407 else
15408 rm -f conf$$.dir
15409 mkdir conf$$.dir 2>/dev/null
15411 if (echo >conf$$.file) 2>/dev/null; then
15412 if ln -s conf$$.file conf$$ 2>/dev/null; then
15413 as_ln_s='ln -s'
15414 # ... but there are two gotchas:
15415 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15416 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15417 # In both cases, we have to default to `cp -pR'.
15418 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15419 as_ln_s='cp -pR'
15420 elif ln conf$$.file conf$$ 2>/dev/null; then
15421 as_ln_s=ln
15422 else
15423 as_ln_s='cp -pR'
15425 else
15426 as_ln_s='cp -pR'
15428 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15429 rmdir conf$$.dir 2>/dev/null
15432 # as_fn_mkdir_p
15433 # -------------
15434 # Create "$as_dir" as a directory, including parents if necessary.
15435 as_fn_mkdir_p ()
15438 case $as_dir in #(
15439 -*) as_dir=./$as_dir;;
15440 esac
15441 test -d "$as_dir" || eval $as_mkdir_p || {
15442 as_dirs=
15443 while :; do
15444 case $as_dir in #(
15445 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15446 *) as_qdir=$as_dir;;
15447 esac
15448 as_dirs="'$as_qdir' $as_dirs"
15449 as_dir=`$as_dirname -- "$as_dir" ||
15450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15451 X"$as_dir" : 'X\(//\)[^/]' \| \
15452 X"$as_dir" : 'X\(//\)$' \| \
15453 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15454 $as_echo X"$as_dir" |
15455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15456 s//\1/
15459 /^X\(\/\/\)[^/].*/{
15460 s//\1/
15463 /^X\(\/\/\)$/{
15464 s//\1/
15467 /^X\(\/\).*/{
15468 s//\1/
15471 s/.*/./; q'`
15472 test -d "$as_dir" && break
15473 done
15474 test -z "$as_dirs" || eval "mkdir $as_dirs"
15475 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15478 } # as_fn_mkdir_p
15479 if mkdir -p . 2>/dev/null; then
15480 as_mkdir_p='mkdir -p "$as_dir"'
15481 else
15482 test -d ./-p && rmdir ./-p
15483 as_mkdir_p=false
15487 # as_fn_executable_p FILE
15488 # -----------------------
15489 # Test if FILE is an executable regular file.
15490 as_fn_executable_p ()
15492 test -f "$1" && test -x "$1"
15493 } # as_fn_executable_p
15494 as_test_x='test -x'
15495 as_executable_p=as_fn_executable_p
15497 # Sed expression to map a string onto a valid CPP name.
15498 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15500 # Sed expression to map a string onto a valid variable name.
15501 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15504 exec 6>&1
15505 ## ----------------------------------- ##
15506 ## Main body of $CONFIG_STATUS script. ##
15507 ## ----------------------------------- ##
15508 _ASEOF
15509 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15512 # Save the log message, to keep $0 and so on meaningful, and to
15513 # report actual input values of CONFIG_FILES etc. instead of their
15514 # values after options handling.
15515 ac_log="
15516 This file was extended by dnscrypt-proxy $as_me 1.0, which was
15517 generated by GNU Autoconf 2.69. Invocation command line was
15519 CONFIG_FILES = $CONFIG_FILES
15520 CONFIG_HEADERS = $CONFIG_HEADERS
15521 CONFIG_LINKS = $CONFIG_LINKS
15522 CONFIG_COMMANDS = $CONFIG_COMMANDS
15523 $ $0 $@
15525 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15528 _ACEOF
15530 case $ac_config_files in *"
15531 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15532 esac
15534 case $ac_config_headers in *"
15535 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15536 esac
15539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15540 # Files that config.status was made for.
15541 config_files="$ac_config_files"
15542 config_headers="$ac_config_headers"
15543 config_commands="$ac_config_commands"
15545 _ACEOF
15547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15548 ac_cs_usage="\
15549 \`$as_me' instantiates files and other configuration actions
15550 from templates according to the current configuration. Unless the files
15551 and actions are specified as TAGs, all are instantiated by default.
15553 Usage: $0 [OPTION]... [TAG]...
15555 -h, --help print this help, then exit
15556 -V, --version print version number and configuration settings, then exit
15557 --config print configuration, then exit
15558 -q, --quiet, --silent
15559 do not print progress messages
15560 -d, --debug don't remove temporary files
15561 --recheck update $as_me by reconfiguring in the same conditions
15562 --file=FILE[:TEMPLATE]
15563 instantiate the configuration file FILE
15564 --header=FILE[:TEMPLATE]
15565 instantiate the configuration header FILE
15567 Configuration files:
15568 $config_files
15570 Configuration headers:
15571 $config_headers
15573 Configuration commands:
15574 $config_commands
15576 Report bugs to <https://github.com/opendns/dnscrypt-proxy/issues>."
15578 _ACEOF
15579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15580 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15581 ac_cs_version="\\
15582 dnscrypt-proxy config.status 1.0
15583 configured by $0, generated by GNU Autoconf 2.69,
15584 with options \\"\$ac_cs_config\\"
15586 Copyright (C) 2012 Free Software Foundation, Inc.
15587 This config.status script is free software; the Free Software Foundation
15588 gives unlimited permission to copy, distribute and modify it."
15590 ac_pwd='$ac_pwd'
15591 srcdir='$srcdir'
15592 INSTALL='$INSTALL'
15593 MKDIR_P='$MKDIR_P'
15594 AWK='$AWK'
15595 test -n "\$AWK" || AWK=awk
15596 _ACEOF
15598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15599 # The default lists apply if the user does not specify any file.
15600 ac_need_defaults=:
15601 while test $# != 0
15603 case $1 in
15604 --*=?*)
15605 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15606 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15607 ac_shift=:
15609 --*=)
15610 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15611 ac_optarg=
15612 ac_shift=:
15615 ac_option=$1
15616 ac_optarg=$2
15617 ac_shift=shift
15619 esac
15621 case $ac_option in
15622 # Handling of the options.
15623 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15624 ac_cs_recheck=: ;;
15625 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15626 $as_echo "$ac_cs_version"; exit ;;
15627 --config | --confi | --conf | --con | --co | --c )
15628 $as_echo "$ac_cs_config"; exit ;;
15629 --debug | --debu | --deb | --de | --d | -d )
15630 debug=: ;;
15631 --file | --fil | --fi | --f )
15632 $ac_shift
15633 case $ac_optarg in
15634 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15635 '') as_fn_error $? "missing file argument" ;;
15636 esac
15637 as_fn_append CONFIG_FILES " '$ac_optarg'"
15638 ac_need_defaults=false;;
15639 --header | --heade | --head | --hea )
15640 $ac_shift
15641 case $ac_optarg in
15642 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15643 esac
15644 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15645 ac_need_defaults=false;;
15646 --he | --h)
15647 # Conflict between --help and --header
15648 as_fn_error $? "ambiguous option: \`$1'
15649 Try \`$0 --help' for more information.";;
15650 --help | --hel | -h )
15651 $as_echo "$ac_cs_usage"; exit ;;
15652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15653 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15654 ac_cs_silent=: ;;
15656 # This is an error.
15657 -*) as_fn_error $? "unrecognized option: \`$1'
15658 Try \`$0 --help' for more information." ;;
15660 *) as_fn_append ac_config_targets " $1"
15661 ac_need_defaults=false ;;
15663 esac
15664 shift
15665 done
15667 ac_configure_extra_args=
15669 if $ac_cs_silent; then
15670 exec 6>/dev/null
15671 ac_configure_extra_args="$ac_configure_extra_args --silent"
15674 _ACEOF
15675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15676 if \$ac_cs_recheck; then
15677 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15678 shift
15679 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15680 CONFIG_SHELL='$SHELL'
15681 export CONFIG_SHELL
15682 exec "\$@"
15685 _ACEOF
15686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15687 exec 5>>config.log
15689 echo
15690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15691 ## Running $as_me. ##
15692 _ASBOX
15693 $as_echo "$ac_log"
15694 } >&5
15696 _ACEOF
15697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15699 # INIT-COMMANDS
15701 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15704 # The HP-UX ksh and POSIX shell print the target directory to stdout
15705 # if CDPATH is set.
15706 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15708 sed_quote_subst='$sed_quote_subst'
15709 double_quote_subst='$double_quote_subst'
15710 delay_variable_subst='$delay_variable_subst'
15711 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15712 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15713 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15714 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15715 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15716 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15717 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15718 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15719 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15720 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15721 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15722 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15723 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15724 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15725 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15726 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15727 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15728 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15729 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15730 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15731 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15732 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15733 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15734 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15735 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15736 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15737 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15738 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15739 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15740 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15741 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15742 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15743 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15744 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15745 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15746 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15747 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15748 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15749 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15750 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15751 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15752 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15753 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15754 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15755 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15756 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15757 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15758 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15759 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15760 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15761 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15762 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15763 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15764 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15765 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15766 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15767 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"`'
15768 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15769 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15770 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15771 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15772 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15773 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15774 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15775 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15776 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15777 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15778 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15779 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15780 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15781 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15782 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15783 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15784 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15785 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15786 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15787 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15788 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15789 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15790 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15791 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15792 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15793 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15794 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15795 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15796 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15797 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15798 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15799 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15800 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15801 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15802 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15803 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15804 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15805 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15806 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15807 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15808 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15809 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15810 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15811 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15812 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15813 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15814 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15815 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15816 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15817 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15818 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15819 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15820 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15821 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15822 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15823 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15824 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15825 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15826 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15827 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15828 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15829 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15830 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15831 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15832 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15833 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15834 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15835 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15836 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15837 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15838 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15839 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15840 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15842 LTCC='$LTCC'
15843 LTCFLAGS='$LTCFLAGS'
15844 compiler='$compiler_DEFAULT'
15846 # A function that is used when there is no print builtin or printf.
15847 func_fallback_echo ()
15849 eval 'cat <<_LTECHO_EOF
15851 _LTECHO_EOF'
15854 # Quote evaled strings.
15855 for var in SHELL \
15856 ECHO \
15857 PATH_SEPARATOR \
15858 SED \
15859 GREP \
15860 EGREP \
15861 FGREP \
15862 LD \
15863 NM \
15864 LN_S \
15865 lt_SP2NL \
15866 lt_NL2SP \
15867 reload_flag \
15868 OBJDUMP \
15869 deplibs_check_method \
15870 file_magic_cmd \
15871 file_magic_glob \
15872 want_nocaseglob \
15873 DLLTOOL \
15874 sharedlib_from_linklib_cmd \
15875 AR \
15876 AR_FLAGS \
15877 archiver_list_spec \
15878 STRIP \
15879 RANLIB \
15880 CC \
15881 CFLAGS \
15882 compiler \
15883 lt_cv_sys_global_symbol_pipe \
15884 lt_cv_sys_global_symbol_to_cdecl \
15885 lt_cv_sys_global_symbol_to_c_name_address \
15886 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15887 nm_file_list_spec \
15888 lt_prog_compiler_no_builtin_flag \
15889 lt_prog_compiler_pic \
15890 lt_prog_compiler_wl \
15891 lt_prog_compiler_static \
15892 lt_cv_prog_compiler_c_o \
15893 need_locks \
15894 MANIFEST_TOOL \
15895 DSYMUTIL \
15896 NMEDIT \
15897 LIPO \
15898 OTOOL \
15899 OTOOL64 \
15900 shrext_cmds \
15901 export_dynamic_flag_spec \
15902 whole_archive_flag_spec \
15903 compiler_needs_object \
15904 with_gnu_ld \
15905 allow_undefined_flag \
15906 no_undefined_flag \
15907 hardcode_libdir_flag_spec \
15908 hardcode_libdir_separator \
15909 exclude_expsyms \
15910 include_expsyms \
15911 file_list_spec \
15912 variables_saved_for_relink \
15913 libname_spec \
15914 library_names_spec \
15915 soname_spec \
15916 install_override_mode \
15917 finish_eval \
15918 old_striplib \
15919 striplib; do
15920 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15921 *[\\\\\\\`\\"\\\$]*)
15922 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15925 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15927 esac
15928 done
15930 # Double-quote double-evaled strings.
15931 for var in reload_cmds \
15932 old_postinstall_cmds \
15933 old_postuninstall_cmds \
15934 old_archive_cmds \
15935 extract_expsyms_cmds \
15936 old_archive_from_new_cmds \
15937 old_archive_from_expsyms_cmds \
15938 archive_cmds \
15939 archive_expsym_cmds \
15940 module_cmds \
15941 module_expsym_cmds \
15942 export_symbols_cmds \
15943 prelink_cmds \
15944 postlink_cmds \
15945 postinstall_cmds \
15946 postuninstall_cmds \
15947 finish_cmds \
15948 sys_lib_search_path_spec \
15949 sys_lib_dlsearch_path_spec; do
15950 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15951 *[\\\\\\\`\\"\\\$]*)
15952 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15955 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15957 esac
15958 done
15960 ac_aux_dir='$ac_aux_dir'
15961 xsi_shell='$xsi_shell'
15962 lt_shell_append='$lt_shell_append'
15964 # See if we are running on zsh, and set the options which allow our
15965 # commands through without removal of \ escapes INIT.
15966 if test -n "\${ZSH_VERSION+set}" ; then
15967 setopt NO_GLOB_SUBST
15971 PACKAGE='$PACKAGE'
15972 VERSION='$VERSION'
15973 TIMESTAMP='$TIMESTAMP'
15974 RM='$RM'
15975 ofile='$ofile'
15980 _ACEOF
15982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15984 # Handling of arguments.
15985 for ac_config_target in $ac_config_targets
15987 case $ac_config_target in
15988 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15989 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15990 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15991 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15992 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15993 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15994 "src/hostip/Makefile") CONFIG_FILES="$CONFIG_FILES src/hostip/Makefile" ;;
15995 "src/proxy/Makefile") CONFIG_FILES="$CONFIG_FILES src/proxy/Makefile" ;;
15996 "src/ext/Makefile") CONFIG_FILES="$CONFIG_FILES src/ext/Makefile" ;;
15997 "src/libnacl/Makefile") CONFIG_FILES="$CONFIG_FILES src/libnacl/Makefile" ;;
15998 "src/libnacl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/libnacl/tests/Makefile" ;;
15999 "src/libnacl/okcompilers/c") CONFIG_FILES="$CONFIG_FILES src/libnacl/okcompilers/c" ;;
16000 "src/libnacl/okcompilers/do") CONFIG_FILES="$CONFIG_FILES src/libnacl/okcompilers/do" ;;
16001 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16003 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16004 esac
16005 done
16008 # If the user did not use the arguments to specify the items to instantiate,
16009 # then the envvar interface is used. Set only those that are not.
16010 # We use the long form for the default assignment because of an extremely
16011 # bizarre bug on SunOS 4.1.3.
16012 if $ac_need_defaults; then
16013 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16014 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16015 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16018 # Have a temporary directory for convenience. Make it in the build tree
16019 # simply because there is no reason against having it here, and in addition,
16020 # creating and moving files from /tmp can sometimes cause problems.
16021 # Hook for its removal unless debugging.
16022 # Note that there is a small window in which the directory will not be cleaned:
16023 # after its creation but before its name has been assigned to `$tmp'.
16024 $debug ||
16026 tmp= ac_tmp=
16027 trap 'exit_status=$?
16028 : "${ac_tmp:=$tmp}"
16029 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16031 trap 'as_fn_exit 1' 1 2 13 15
16033 # Create a (secure) tmp directory for tmp files.
16036 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16037 test -d "$tmp"
16038 } ||
16040 tmp=./conf$$-$RANDOM
16041 (umask 077 && mkdir "$tmp")
16042 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16043 ac_tmp=$tmp
16045 # Set up the scripts for CONFIG_FILES section.
16046 # No need to generate them if there are no CONFIG_FILES.
16047 # This happens for instance with `./config.status config.h'.
16048 if test -n "$CONFIG_FILES"; then
16051 ac_cr=`echo X | tr X '\015'`
16052 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16053 # But we know of no other shell where ac_cr would be empty at this
16054 # point, so we can use a bashism as a fallback.
16055 if test "x$ac_cr" = x; then
16056 eval ac_cr=\$\'\\r\'
16058 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16059 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16060 ac_cs_awk_cr='\\r'
16061 else
16062 ac_cs_awk_cr=$ac_cr
16065 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16066 _ACEOF
16070 echo "cat >conf$$subs.awk <<_ACEOF" &&
16071 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16072 echo "_ACEOF"
16073 } >conf$$subs.sh ||
16074 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16075 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16076 ac_delim='%!_!# '
16077 for ac_last_try in false false false false false :; do
16078 . ./conf$$subs.sh ||
16079 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16081 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16082 if test $ac_delim_n = $ac_delim_num; then
16083 break
16084 elif $ac_last_try; then
16085 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16086 else
16087 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16089 done
16090 rm -f conf$$subs.sh
16092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16093 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16094 _ACEOF
16095 sed -n '
16097 s/^/S["/; s/!.*/"]=/
16100 s/^[^!]*!//
16101 :repl
16102 t repl
16103 s/'"$ac_delim"'$//
16104 t delim
16107 s/\(.\{148\}\)..*/\1/
16108 t more1
16109 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16112 b repl
16113 :more1
16114 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16117 s/.\{148\}//
16118 t nl
16119 :delim
16121 s/\(.\{148\}\)..*/\1/
16122 t more2
16123 s/["\\]/\\&/g; s/^/"/; s/$/"/
16126 :more2
16127 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16130 s/.\{148\}//
16131 t delim
16132 ' <conf$$subs.awk | sed '
16133 /^[^""]/{
16135 s/\n//
16137 ' >>$CONFIG_STATUS || ac_write_fail=1
16138 rm -f conf$$subs.awk
16139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16140 _ACAWK
16141 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16142 for (key in S) S_is_set[key] = 1
16143 FS = "\a"
16147 line = $ 0
16148 nfields = split(line, field, "@")
16149 substed = 0
16150 len = length(field[1])
16151 for (i = 2; i < nfields; i++) {
16152 key = field[i]
16153 keylen = length(key)
16154 if (S_is_set[key]) {
16155 value = S[key]
16156 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16157 len += length(value) + length(field[++i])
16158 substed = 1
16159 } else
16160 len += 1 + keylen
16163 print line
16166 _ACAWK
16167 _ACEOF
16168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16169 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16170 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16171 else
16173 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16174 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16175 _ACEOF
16177 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16178 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16179 # trailing colons and then remove the whole line if VPATH becomes empty
16180 # (actually we leave an empty line to preserve line numbers).
16181 if test "x$srcdir" = x.; then
16182 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16184 s///
16185 s/^/:/
16186 s/[ ]*$/:/
16187 s/:\$(srcdir):/:/g
16188 s/:\${srcdir}:/:/g
16189 s/:@srcdir@:/:/g
16190 s/^:*//
16191 s/:*$//
16193 s/\(=[ ]*\).*/\1/
16195 s/\n//
16196 s/^[^=]*=[ ]*$//
16200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16201 fi # test -n "$CONFIG_FILES"
16203 # Set up the scripts for CONFIG_HEADERS section.
16204 # No need to generate them if there are no CONFIG_HEADERS.
16205 # This happens for instance with `./config.status Makefile'.
16206 if test -n "$CONFIG_HEADERS"; then
16207 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16208 BEGIN {
16209 _ACEOF
16211 # Transform confdefs.h into an awk script `defines.awk', embedded as
16212 # here-document in config.status, that substitutes the proper values into
16213 # config.h.in to produce config.h.
16215 # Create a delimiter string that does not exist in confdefs.h, to ease
16216 # handling of long lines.
16217 ac_delim='%!_!# '
16218 for ac_last_try in false false :; do
16219 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16220 if test -z "$ac_tt"; then
16221 break
16222 elif $ac_last_try; then
16223 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16224 else
16225 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16227 done
16229 # For the awk script, D is an array of macro values keyed by name,
16230 # likewise P contains macro parameters if any. Preserve backslash
16231 # newline sequences.
16233 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16234 sed -n '
16235 s/.\{148\}/&'"$ac_delim"'/g
16236 t rset
16237 :rset
16238 s/^[ ]*#[ ]*define[ ][ ]*/ /
16239 t def
16241 :def
16242 s/\\$//
16243 t bsnl
16244 s/["\\]/\\&/g
16245 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16246 D["\1"]=" \3"/p
16247 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16249 :bsnl
16250 s/["\\]/\\&/g
16251 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16252 D["\1"]=" \3\\\\\\n"\\/p
16253 t cont
16254 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16255 t cont
16257 :cont
16259 s/.\{148\}/&'"$ac_delim"'/g
16260 t clear
16261 :clear
16262 s/\\$//
16263 t bsnlc
16264 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16266 :bsnlc
16267 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16268 b cont
16269 ' <confdefs.h | sed '
16270 s/'"$ac_delim"'/"\\\
16271 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16274 for (key in D) D_is_set[key] = 1
16275 FS = "\a"
16277 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16278 line = \$ 0
16279 split(line, arg, " ")
16280 if (arg[1] == "#") {
16281 defundef = arg[2]
16282 mac1 = arg[3]
16283 } else {
16284 defundef = substr(arg[1], 2)
16285 mac1 = arg[2]
16287 split(mac1, mac2, "(") #)
16288 macro = mac2[1]
16289 prefix = substr(line, 1, index(line, defundef) - 1)
16290 if (D_is_set[macro]) {
16291 # Preserve the white space surrounding the "#".
16292 print prefix "define", macro P[macro] D[macro]
16293 next
16294 } else {
16295 # Replace #undef with comments. This is necessary, for example,
16296 # in the case of _POSIX_SOURCE, which is predefined and required
16297 # on some systems where configure will not decide to define it.
16298 if (defundef == "undef") {
16299 print "/*", prefix defundef, macro, "*/"
16300 next
16304 { print }
16305 _ACAWK
16306 _ACEOF
16307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16308 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16309 fi # test -n "$CONFIG_HEADERS"
16312 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16313 shift
16314 for ac_tag
16316 case $ac_tag in
16317 :[FHLC]) ac_mode=$ac_tag; continue;;
16318 esac
16319 case $ac_mode$ac_tag in
16320 :[FHL]*:*);;
16321 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16322 :[FH]-) ac_tag=-:-;;
16323 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16324 esac
16325 ac_save_IFS=$IFS
16326 IFS=:
16327 set x $ac_tag
16328 IFS=$ac_save_IFS
16329 shift
16330 ac_file=$1
16331 shift
16333 case $ac_mode in
16334 :L) ac_source=$1;;
16335 :[FH])
16336 ac_file_inputs=
16337 for ac_f
16339 case $ac_f in
16340 -) ac_f="$ac_tmp/stdin";;
16341 *) # Look for the file first in the build tree, then in the source tree
16342 # (if the path is not absolute). The absolute path cannot be DOS-style,
16343 # because $ac_f cannot contain `:'.
16344 test -f "$ac_f" ||
16345 case $ac_f in
16346 [\\/$]*) false;;
16347 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16348 esac ||
16349 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16350 esac
16351 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16352 as_fn_append ac_file_inputs " '$ac_f'"
16353 done
16355 # Let's still pretend it is `configure' which instantiates (i.e., don't
16356 # use $as_me), people would be surprised to read:
16357 # /* config.h. Generated by config.status. */
16358 configure_input='Generated from '`
16359 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16360 `' by configure.'
16361 if test x"$ac_file" != x-; then
16362 configure_input="$ac_file. $configure_input"
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16364 $as_echo "$as_me: creating $ac_file" >&6;}
16366 # Neutralize special characters interpreted by sed in replacement strings.
16367 case $configure_input in #(
16368 *\&* | *\|* | *\\* )
16369 ac_sed_conf_input=`$as_echo "$configure_input" |
16370 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16371 *) ac_sed_conf_input=$configure_input;;
16372 esac
16374 case $ac_tag in
16375 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16376 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16377 esac
16379 esac
16381 ac_dir=`$as_dirname -- "$ac_file" ||
16382 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16383 X"$ac_file" : 'X\(//\)[^/]' \| \
16384 X"$ac_file" : 'X\(//\)$' \| \
16385 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16386 $as_echo X"$ac_file" |
16387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16388 s//\1/
16391 /^X\(\/\/\)[^/].*/{
16392 s//\1/
16395 /^X\(\/\/\)$/{
16396 s//\1/
16399 /^X\(\/\).*/{
16400 s//\1/
16403 s/.*/./; q'`
16404 as_dir="$ac_dir"; as_fn_mkdir_p
16405 ac_builddir=.
16407 case "$ac_dir" in
16408 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16410 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16411 # A ".." for each directory in $ac_dir_suffix.
16412 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16413 case $ac_top_builddir_sub in
16414 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16415 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16416 esac ;;
16417 esac
16418 ac_abs_top_builddir=$ac_pwd
16419 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16420 # for backward compatibility:
16421 ac_top_builddir=$ac_top_build_prefix
16423 case $srcdir in
16424 .) # We are building in place.
16425 ac_srcdir=.
16426 ac_top_srcdir=$ac_top_builddir_sub
16427 ac_abs_top_srcdir=$ac_pwd ;;
16428 [\\/]* | ?:[\\/]* ) # Absolute name.
16429 ac_srcdir=$srcdir$ac_dir_suffix;
16430 ac_top_srcdir=$srcdir
16431 ac_abs_top_srcdir=$srcdir ;;
16432 *) # Relative name.
16433 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16434 ac_top_srcdir=$ac_top_build_prefix$srcdir
16435 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16436 esac
16437 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16440 case $ac_mode in
16443 # CONFIG_FILE
16446 case $INSTALL in
16447 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16448 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16449 esac
16450 ac_MKDIR_P=$MKDIR_P
16451 case $MKDIR_P in
16452 [\\/$]* | ?:[\\/]* ) ;;
16453 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16454 esac
16455 _ACEOF
16457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16458 # If the template does not know about datarootdir, expand it.
16459 # FIXME: This hack should be removed a few years after 2.60.
16460 ac_datarootdir_hack=; ac_datarootdir_seen=
16461 ac_sed_dataroot='
16462 /datarootdir/ {
16466 /@datadir@/p
16467 /@docdir@/p
16468 /@infodir@/p
16469 /@localedir@/p
16470 /@mandir@/p'
16471 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16472 *datarootdir*) ac_datarootdir_seen=yes;;
16473 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16475 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16476 _ACEOF
16477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16478 ac_datarootdir_hack='
16479 s&@datadir@&$datadir&g
16480 s&@docdir@&$docdir&g
16481 s&@infodir@&$infodir&g
16482 s&@localedir@&$localedir&g
16483 s&@mandir@&$mandir&g
16484 s&\\\${datarootdir}&$datarootdir&g' ;;
16485 esac
16486 _ACEOF
16488 # Neutralize VPATH when `$srcdir' = `.'.
16489 # Shell code in configure.ac might set extrasub.
16490 # FIXME: do we really want to maintain this feature?
16491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16492 ac_sed_extra="$ac_vpsub
16493 $extrasub
16494 _ACEOF
16495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16497 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16498 s|@configure_input@|$ac_sed_conf_input|;t t
16499 s&@top_builddir@&$ac_top_builddir_sub&;t t
16500 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16501 s&@srcdir@&$ac_srcdir&;t t
16502 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16503 s&@top_srcdir@&$ac_top_srcdir&;t t
16504 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16505 s&@builddir@&$ac_builddir&;t t
16506 s&@abs_builddir@&$ac_abs_builddir&;t t
16507 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16508 s&@INSTALL@&$ac_INSTALL&;t t
16509 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16510 $ac_datarootdir_hack
16512 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16513 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16515 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16516 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16517 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16518 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16520 which seems to be undefined. Please make sure it is defined" >&5
16521 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16522 which seems to be undefined. Please make sure it is defined" >&2;}
16524 rm -f "$ac_tmp/stdin"
16525 case $ac_file in
16526 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16527 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16528 esac \
16529 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16533 # CONFIG_HEADER
16535 if test x"$ac_file" != x-; then
16537 $as_echo "/* $configure_input */" \
16538 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16539 } >"$ac_tmp/config.h" \
16540 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16541 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16543 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16544 else
16545 rm -f "$ac_file"
16546 mv "$ac_tmp/config.h" "$ac_file" \
16547 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16549 else
16550 $as_echo "/* $configure_input */" \
16551 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16552 || as_fn_error $? "could not create -" "$LINENO" 5
16554 # Compute "$ac_file"'s index in $config_headers.
16555 _am_arg="$ac_file"
16556 _am_stamp_count=1
16557 for _am_header in $config_headers :; do
16558 case $_am_header in
16559 $_am_arg | $_am_arg:* )
16560 break ;;
16562 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16563 esac
16564 done
16565 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16566 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16567 X"$_am_arg" : 'X\(//\)[^/]' \| \
16568 X"$_am_arg" : 'X\(//\)$' \| \
16569 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16570 $as_echo X"$_am_arg" |
16571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16572 s//\1/
16575 /^X\(\/\/\)[^/].*/{
16576 s//\1/
16579 /^X\(\/\/\)$/{
16580 s//\1/
16583 /^X\(\/\).*/{
16584 s//\1/
16587 s/.*/./; q'`/stamp-h$_am_stamp_count
16590 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16591 $as_echo "$as_me: executing $ac_file commands" >&6;}
16593 esac
16596 case $ac_file$ac_mode in
16597 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16598 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16599 # are listed without --file. Let's play safe and only enable the eval
16600 # if we detect the quoting.
16601 case $CONFIG_FILES in
16602 *\'*) eval set x "$CONFIG_FILES" ;;
16603 *) set x $CONFIG_FILES ;;
16604 esac
16605 shift
16606 for mf
16608 # Strip MF so we end up with the name of the file.
16609 mf=`echo "$mf" | sed -e 's/:.*$//'`
16610 # Check whether this is an Automake generated Makefile or not.
16611 # We used to match only the files named 'Makefile.in', but
16612 # some people rename them; so instead we look at the file content.
16613 # Grep'ing the first line is not enough: some people post-process
16614 # each Makefile.in and add a new line on top of each file to say so.
16615 # Grep'ing the whole file is not good either: AIX grep has a line
16616 # limit of 2048, but all sed's we know have understand at least 4000.
16617 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16618 dirpart=`$as_dirname -- "$mf" ||
16619 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16620 X"$mf" : 'X\(//\)[^/]' \| \
16621 X"$mf" : 'X\(//\)$' \| \
16622 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16623 $as_echo X"$mf" |
16624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16625 s//\1/
16628 /^X\(\/\/\)[^/].*/{
16629 s//\1/
16632 /^X\(\/\/\)$/{
16633 s//\1/
16636 /^X\(\/\).*/{
16637 s//\1/
16640 s/.*/./; q'`
16641 else
16642 continue
16644 # Extract the definition of DEPDIR, am__include, and am__quote
16645 # from the Makefile without running 'make'.
16646 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16647 test -z "$DEPDIR" && continue
16648 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16649 test -z "am__include" && continue
16650 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16651 # Find all dependency output files, they are included files with
16652 # $(DEPDIR) in their names. We invoke sed twice because it is the
16653 # simplest approach to changing $(DEPDIR) to its actual value in the
16654 # expansion.
16655 for file in `sed -n "
16656 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16657 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16658 # Make sure the directory exists.
16659 test -f "$dirpart/$file" && continue
16660 fdir=`$as_dirname -- "$file" ||
16661 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16662 X"$file" : 'X\(//\)[^/]' \| \
16663 X"$file" : 'X\(//\)$' \| \
16664 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16665 $as_echo X"$file" |
16666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16667 s//\1/
16670 /^X\(\/\/\)[^/].*/{
16671 s//\1/
16674 /^X\(\/\/\)$/{
16675 s//\1/
16678 /^X\(\/\).*/{
16679 s//\1/
16682 s/.*/./; q'`
16683 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16684 # echo "creating $dirpart/$file"
16685 echo '# dummy' > "$dirpart/$file"
16686 done
16687 done
16690 "libtool":C)
16692 # See if we are running on zsh, and set the options which allow our
16693 # commands through without removal of \ escapes.
16694 if test -n "${ZSH_VERSION+set}" ; then
16695 setopt NO_GLOB_SUBST
16698 cfgfile="${ofile}T"
16699 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16700 $RM "$cfgfile"
16702 cat <<_LT_EOF >> "$cfgfile"
16703 #! $SHELL
16705 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16706 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16707 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16708 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16710 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16711 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16712 # Foundation, Inc.
16713 # Written by Gordon Matzigkeit, 1996
16715 # This file is part of GNU Libtool.
16717 # GNU Libtool is free software; you can redistribute it and/or
16718 # modify it under the terms of the GNU General Public License as
16719 # published by the Free Software Foundation; either version 2 of
16720 # the License, or (at your option) any later version.
16722 # As a special exception to the GNU General Public License,
16723 # if you distribute this file as part of a program or library that
16724 # is built using GNU Libtool, you may include this file under the
16725 # same distribution terms that you use for the rest of that program.
16727 # GNU Libtool is distributed in the hope that it will be useful,
16728 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16729 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16730 # GNU General Public License for more details.
16732 # You should have received a copy of the GNU General Public License
16733 # along with GNU Libtool; see the file COPYING. If not, a copy
16734 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16735 # obtained by writing to the Free Software Foundation, Inc.,
16736 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16739 # The names of the tagged configurations supported by this script.
16740 available_tags=""
16742 # ### BEGIN LIBTOOL CONFIG
16744 # Which release of libtool.m4 was used?
16745 macro_version=$macro_version
16746 macro_revision=$macro_revision
16748 # Whether or not to build shared libraries.
16749 build_libtool_libs=$enable_shared
16751 # Whether or not to build static libraries.
16752 build_old_libs=$enable_static
16754 # What type of objects to build.
16755 pic_mode=$pic_mode
16757 # Whether or not to optimize for fast installation.
16758 fast_install=$enable_fast_install
16760 # Shell to use when invoking shell scripts.
16761 SHELL=$lt_SHELL
16763 # An echo program that protects backslashes.
16764 ECHO=$lt_ECHO
16766 # The PATH separator for the build system.
16767 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16769 # The host system.
16770 host_alias=$host_alias
16771 host=$host
16772 host_os=$host_os
16774 # The build system.
16775 build_alias=$build_alias
16776 build=$build
16777 build_os=$build_os
16779 # A sed program that does not truncate output.
16780 SED=$lt_SED
16782 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16783 Xsed="\$SED -e 1s/^X//"
16785 # A grep program that handles long lines.
16786 GREP=$lt_GREP
16788 # An ERE matcher.
16789 EGREP=$lt_EGREP
16791 # A literal string matcher.
16792 FGREP=$lt_FGREP
16794 # A BSD- or MS-compatible name lister.
16795 NM=$lt_NM
16797 # Whether we need soft or hard links.
16798 LN_S=$lt_LN_S
16800 # What is the maximum length of a command?
16801 max_cmd_len=$max_cmd_len
16803 # Object file suffix (normally "o").
16804 objext=$ac_objext
16806 # Executable file suffix (normally "").
16807 exeext=$exeext
16809 # whether the shell understands "unset".
16810 lt_unset=$lt_unset
16812 # turn spaces into newlines.
16813 SP2NL=$lt_lt_SP2NL
16815 # turn newlines into spaces.
16816 NL2SP=$lt_lt_NL2SP
16818 # convert \$build file names to \$host format.
16819 to_host_file_cmd=$lt_cv_to_host_file_cmd
16821 # convert \$build files to toolchain format.
16822 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16824 # An object symbol dumper.
16825 OBJDUMP=$lt_OBJDUMP
16827 # Method to check whether dependent libraries are shared objects.
16828 deplibs_check_method=$lt_deplibs_check_method
16830 # Command to use when deplibs_check_method = "file_magic".
16831 file_magic_cmd=$lt_file_magic_cmd
16833 # How to find potential files when deplibs_check_method = "file_magic".
16834 file_magic_glob=$lt_file_magic_glob
16836 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16837 want_nocaseglob=$lt_want_nocaseglob
16839 # DLL creation program.
16840 DLLTOOL=$lt_DLLTOOL
16842 # Command to associate shared and link libraries.
16843 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16845 # The archiver.
16846 AR=$lt_AR
16848 # Flags to create an archive.
16849 AR_FLAGS=$lt_AR_FLAGS
16851 # How to feed a file listing to the archiver.
16852 archiver_list_spec=$lt_archiver_list_spec
16854 # A symbol stripping program.
16855 STRIP=$lt_STRIP
16857 # Commands used to install an old-style archive.
16858 RANLIB=$lt_RANLIB
16859 old_postinstall_cmds=$lt_old_postinstall_cmds
16860 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16862 # Whether to use a lock for old archive extraction.
16863 lock_old_archive_extraction=$lock_old_archive_extraction
16865 # A C compiler.
16866 LTCC=$lt_CC
16868 # LTCC compiler flags.
16869 LTCFLAGS=$lt_CFLAGS
16871 # Take the output of nm and produce a listing of raw symbols and C names.
16872 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16874 # Transform the output of nm in a proper C declaration.
16875 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16877 # Transform the output of nm in a C name address pair.
16878 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16880 # Transform the output of nm in a C name address pair when lib prefix is needed.
16881 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16883 # Specify filename containing input files for \$NM.
16884 nm_file_list_spec=$lt_nm_file_list_spec
16886 # The root where to search for dependent libraries,and in which our libraries should be installed.
16887 lt_sysroot=$lt_sysroot
16889 # The name of the directory that contains temporary libtool files.
16890 objdir=$objdir
16892 # Used to examine libraries when file_magic_cmd begins with "file".
16893 MAGIC_CMD=$MAGIC_CMD
16895 # Must we lock files when doing compilation?
16896 need_locks=$lt_need_locks
16898 # Manifest tool.
16899 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16901 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16902 DSYMUTIL=$lt_DSYMUTIL
16904 # Tool to change global to local symbols on Mac OS X.
16905 NMEDIT=$lt_NMEDIT
16907 # Tool to manipulate fat objects and archives on Mac OS X.
16908 LIPO=$lt_LIPO
16910 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16911 OTOOL=$lt_OTOOL
16913 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16914 OTOOL64=$lt_OTOOL64
16916 # Old archive suffix (normally "a").
16917 libext=$libext
16919 # Shared library suffix (normally ".so").
16920 shrext_cmds=$lt_shrext_cmds
16922 # The commands to extract the exported symbol list from a shared archive.
16923 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16925 # Variables whose values should be saved in libtool wrapper scripts and
16926 # restored at link time.
16927 variables_saved_for_relink=$lt_variables_saved_for_relink
16929 # Do we need the "lib" prefix for modules?
16930 need_lib_prefix=$need_lib_prefix
16932 # Do we need a version for libraries?
16933 need_version=$need_version
16935 # Library versioning type.
16936 version_type=$version_type
16938 # Shared library runtime path variable.
16939 runpath_var=$runpath_var
16941 # Shared library path variable.
16942 shlibpath_var=$shlibpath_var
16944 # Is shlibpath searched before the hard-coded library search path?
16945 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16947 # Format of library name prefix.
16948 libname_spec=$lt_libname_spec
16950 # List of archive names. First name is the real one, the rest are links.
16951 # The last name is the one that the linker finds with -lNAME
16952 library_names_spec=$lt_library_names_spec
16954 # The coded name of the library, if different from the real name.
16955 soname_spec=$lt_soname_spec
16957 # Permission mode override for installation of shared libraries.
16958 install_override_mode=$lt_install_override_mode
16960 # Command to use after installation of a shared archive.
16961 postinstall_cmds=$lt_postinstall_cmds
16963 # Command to use after uninstallation of a shared archive.
16964 postuninstall_cmds=$lt_postuninstall_cmds
16966 # Commands used to finish a libtool library installation in a directory.
16967 finish_cmds=$lt_finish_cmds
16969 # As "finish_cmds", except a single script fragment to be evaled but
16970 # not shown.
16971 finish_eval=$lt_finish_eval
16973 # Whether we should hardcode library paths into libraries.
16974 hardcode_into_libs=$hardcode_into_libs
16976 # Compile-time system search path for libraries.
16977 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16979 # Run-time system search path for libraries.
16980 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16982 # Whether dlopen is supported.
16983 dlopen_support=$enable_dlopen
16985 # Whether dlopen of programs is supported.
16986 dlopen_self=$enable_dlopen_self
16988 # Whether dlopen of statically linked programs is supported.
16989 dlopen_self_static=$enable_dlopen_self_static
16991 # Commands to strip libraries.
16992 old_striplib=$lt_old_striplib
16993 striplib=$lt_striplib
16996 # The linker used to build libraries.
16997 LD=$lt_LD
16999 # How to create reloadable object files.
17000 reload_flag=$lt_reload_flag
17001 reload_cmds=$lt_reload_cmds
17003 # Commands used to build an old-style archive.
17004 old_archive_cmds=$lt_old_archive_cmds
17006 # A language specific compiler.
17007 CC=$lt_compiler
17009 # Is the compiler the GNU compiler?
17010 with_gcc=$GCC
17012 # Compiler flag to turn off builtin functions.
17013 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17015 # Additional compiler flags for building library objects.
17016 pic_flag=$lt_lt_prog_compiler_pic
17018 # How to pass a linker flag through the compiler.
17019 wl=$lt_lt_prog_compiler_wl
17021 # Compiler flag to prevent dynamic linking.
17022 link_static_flag=$lt_lt_prog_compiler_static
17024 # Does compiler simultaneously support -c and -o options?
17025 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17027 # Whether or not to add -lc for building shared libraries.
17028 build_libtool_need_lc=$archive_cmds_need_lc
17030 # Whether or not to disallow shared libs when runtime libs are static.
17031 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17033 # Compiler flag to allow reflexive dlopens.
17034 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17036 # Compiler flag to generate shared objects directly from archives.
17037 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17039 # Whether the compiler copes with passing no objects directly.
17040 compiler_needs_object=$lt_compiler_needs_object
17042 # Create an old-style archive from a shared archive.
17043 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17045 # Create a temporary old-style archive to link instead of a shared archive.
17046 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17048 # Commands used to build a shared archive.
17049 archive_cmds=$lt_archive_cmds
17050 archive_expsym_cmds=$lt_archive_expsym_cmds
17052 # Commands used to build a loadable module if different from building
17053 # a shared archive.
17054 module_cmds=$lt_module_cmds
17055 module_expsym_cmds=$lt_module_expsym_cmds
17057 # Whether we are building with GNU ld or not.
17058 with_gnu_ld=$lt_with_gnu_ld
17060 # Flag that allows shared libraries with undefined symbols to be built.
17061 allow_undefined_flag=$lt_allow_undefined_flag
17063 # Flag that enforces no undefined symbols.
17064 no_undefined_flag=$lt_no_undefined_flag
17066 # Flag to hardcode \$libdir into a binary during linking.
17067 # This must work even if \$libdir does not exist
17068 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17070 # Whether we need a single "-rpath" flag with a separated argument.
17071 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17073 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17074 # DIR into the resulting binary.
17075 hardcode_direct=$hardcode_direct
17077 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17078 # DIR into the resulting binary and the resulting library dependency is
17079 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17080 # library is relocated.
17081 hardcode_direct_absolute=$hardcode_direct_absolute
17083 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17084 # into the resulting binary.
17085 hardcode_minus_L=$hardcode_minus_L
17087 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17088 # into the resulting binary.
17089 hardcode_shlibpath_var=$hardcode_shlibpath_var
17091 # Set to "yes" if building a shared library automatically hardcodes DIR
17092 # into the library and all subsequent libraries and executables linked
17093 # against it.
17094 hardcode_automatic=$hardcode_automatic
17096 # Set to yes if linker adds runtime paths of dependent libraries
17097 # to runtime path list.
17098 inherit_rpath=$inherit_rpath
17100 # Whether libtool must link a program against all its dependency libraries.
17101 link_all_deplibs=$link_all_deplibs
17103 # Set to "yes" if exported symbols are required.
17104 always_export_symbols=$always_export_symbols
17106 # The commands to list exported symbols.
17107 export_symbols_cmds=$lt_export_symbols_cmds
17109 # Symbols that should not be listed in the preloaded symbols.
17110 exclude_expsyms=$lt_exclude_expsyms
17112 # Symbols that must always be exported.
17113 include_expsyms=$lt_include_expsyms
17115 # Commands necessary for linking programs (against libraries) with templates.
17116 prelink_cmds=$lt_prelink_cmds
17118 # Commands necessary for finishing linking programs.
17119 postlink_cmds=$lt_postlink_cmds
17121 # Specify filename containing input files.
17122 file_list_spec=$lt_file_list_spec
17124 # How to hardcode a shared library path into an executable.
17125 hardcode_action=$hardcode_action
17127 # ### END LIBTOOL CONFIG
17129 _LT_EOF
17131 case $host_os in
17132 aix3*)
17133 cat <<\_LT_EOF >> "$cfgfile"
17134 # AIX sometimes has problems with the GCC collect2 program. For some
17135 # reason, if we set the COLLECT_NAMES environment variable, the problems
17136 # vanish in a puff of smoke.
17137 if test "X${COLLECT_NAMES+set}" != Xset; then
17138 COLLECT_NAMES=
17139 export COLLECT_NAMES
17141 _LT_EOF
17143 esac
17146 ltmain="$ac_aux_dir/ltmain.sh"
17149 # We use sed instead of cat because bash on DJGPP gets confused if
17150 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17151 # text mode, it properly converts lines to CR/LF. This bash problem
17152 # is reportedly fixed, but why not run on old versions too?
17153 sed '$q' "$ltmain" >> "$cfgfile" \
17154 || (rm -f "$cfgfile"; exit 1)
17156 if test x"$xsi_shell" = xyes; then
17157 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17158 func_dirname ()\
17160 \ case ${1} in\
17161 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17162 \ * ) func_dirname_result="${3}" ;;\
17163 \ esac\
17164 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17165 && mv -f "$cfgfile.tmp" "$cfgfile" \
17166 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17167 test 0 -eq $? || _lt_function_replace_fail=:
17170 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17171 func_basename ()\
17173 \ func_basename_result="${1##*/}"\
17174 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17175 && mv -f "$cfgfile.tmp" "$cfgfile" \
17176 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17177 test 0 -eq $? || _lt_function_replace_fail=:
17180 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17181 func_dirname_and_basename ()\
17183 \ case ${1} in\
17184 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17185 \ * ) func_dirname_result="${3}" ;;\
17186 \ esac\
17187 \ func_basename_result="${1##*/}"\
17188 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17189 && mv -f "$cfgfile.tmp" "$cfgfile" \
17190 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17191 test 0 -eq $? || _lt_function_replace_fail=:
17194 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17195 func_stripname ()\
17197 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17198 \ # positional parameters, so assign one to ordinary parameter first.\
17199 \ func_stripname_result=${3}\
17200 \ func_stripname_result=${func_stripname_result#"${1}"}\
17201 \ func_stripname_result=${func_stripname_result%"${2}"}\
17202 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17203 && mv -f "$cfgfile.tmp" "$cfgfile" \
17204 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17205 test 0 -eq $? || _lt_function_replace_fail=:
17208 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17209 func_split_long_opt ()\
17211 \ func_split_long_opt_name=${1%%=*}\
17212 \ func_split_long_opt_arg=${1#*=}\
17213 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17214 && mv -f "$cfgfile.tmp" "$cfgfile" \
17215 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17216 test 0 -eq $? || _lt_function_replace_fail=:
17219 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17220 func_split_short_opt ()\
17222 \ func_split_short_opt_arg=${1#??}\
17223 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17224 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17225 && mv -f "$cfgfile.tmp" "$cfgfile" \
17226 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17227 test 0 -eq $? || _lt_function_replace_fail=:
17230 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17231 func_lo2o ()\
17233 \ case ${1} in\
17234 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17235 \ *) func_lo2o_result=${1} ;;\
17236 \ esac\
17237 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17238 && mv -f "$cfgfile.tmp" "$cfgfile" \
17239 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17240 test 0 -eq $? || _lt_function_replace_fail=:
17243 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17244 func_xform ()\
17246 func_xform_result=${1%.*}.lo\
17247 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17248 && mv -f "$cfgfile.tmp" "$cfgfile" \
17249 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17250 test 0 -eq $? || _lt_function_replace_fail=:
17253 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17254 func_arith ()\
17256 func_arith_result=$(( $* ))\
17257 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17258 && mv -f "$cfgfile.tmp" "$cfgfile" \
17259 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17260 test 0 -eq $? || _lt_function_replace_fail=:
17263 sed -e '/^func_len ()$/,/^} # func_len /c\
17264 func_len ()\
17266 func_len_result=${#1}\
17267 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17268 && mv -f "$cfgfile.tmp" "$cfgfile" \
17269 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17270 test 0 -eq $? || _lt_function_replace_fail=:
17274 if test x"$lt_shell_append" = xyes; then
17275 sed -e '/^func_append ()$/,/^} # func_append /c\
17276 func_append ()\
17278 eval "${1}+=\\${2}"\
17279 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17280 && mv -f "$cfgfile.tmp" "$cfgfile" \
17281 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17282 test 0 -eq $? || _lt_function_replace_fail=:
17285 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17286 func_append_quoted ()\
17288 \ func_quote_for_eval "${2}"\
17289 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17290 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17291 && mv -f "$cfgfile.tmp" "$cfgfile" \
17292 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17293 test 0 -eq $? || _lt_function_replace_fail=:
17296 # Save a `func_append' function call where possible by direct use of '+='
17297 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17298 && mv -f "$cfgfile.tmp" "$cfgfile" \
17299 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17300 test 0 -eq $? || _lt_function_replace_fail=:
17301 else
17302 # Save a `func_append' function call even when '+=' is not available
17303 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17304 && mv -f "$cfgfile.tmp" "$cfgfile" \
17305 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17306 test 0 -eq $? || _lt_function_replace_fail=:
17309 if test x"$_lt_function_replace_fail" = x":"; then
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17311 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17315 mv -f "$cfgfile" "$ofile" ||
17316 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17317 chmod +x "$ofile"
17321 esac
17322 done # for ac_tag
17325 as_fn_exit 0
17326 _ACEOF
17327 ac_clean_files=$ac_clean_files_save
17329 test $ac_write_fail = 0 ||
17330 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17333 # configure is writing to config.log, and then calls config.status.
17334 # config.status does its own redirection, appending to config.log.
17335 # Unfortunately, on DOS this fails, as config.log is still kept open
17336 # by configure, so config.status won't be able to write to it; its
17337 # output is simply discarded. So we exec the FD to /dev/null,
17338 # effectively closing config.log, so it can be properly (re)opened and
17339 # appended to by config.status. When coming back to configure, we
17340 # need to make the FD available again.
17341 if test "$no_create" != yes; then
17342 ac_cs_success=:
17343 ac_config_status_args=
17344 test "$silent" = yes &&
17345 ac_config_status_args="$ac_config_status_args --quiet"
17346 exec 5>/dev/null
17347 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17348 exec 5>>config.log
17349 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17350 # would make configure fail if this is the last instruction.
17351 $ac_cs_success || as_fn_exit 1
17355 # CONFIG_SUBDIRS section.
17357 if test "$no_recursion" != yes; then
17359 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17360 # so they do not pile up.
17361 ac_sub_configure_args=
17362 ac_prev=
17363 eval "set x $ac_configure_args"
17364 shift
17365 for ac_arg
17367 if test -n "$ac_prev"; then
17368 ac_prev=
17369 continue
17371 case $ac_arg in
17372 -cache-file | --cache-file | --cache-fil | --cache-fi \
17373 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17374 ac_prev=cache_file ;;
17375 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17376 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17377 | --c=*)
17379 --config-cache | -C)
17381 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17382 ac_prev=srcdir ;;
17383 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17385 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17386 ac_prev=prefix ;;
17387 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17389 --disable-option-checking)
17392 case $ac_arg in
17393 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17394 esac
17395 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17396 esac
17397 done
17399 # Always prepend --prefix to ensure using the same prefix
17400 # in subdir configurations.
17401 ac_arg="--prefix=$prefix"
17402 case $ac_arg in
17403 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17404 esac
17405 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17407 # Pass --silent
17408 if test "$silent" = yes; then
17409 ac_sub_configure_args="--silent $ac_sub_configure_args"
17412 # Always prepend --disable-option-checking to silence warnings, since
17413 # different subdirs can have different --enable and --with options.
17414 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17416 ac_popdir=`pwd`
17417 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17419 # Do not complain, so a configure script can configure whichever
17420 # parts of a large source tree are present.
17421 test -d "$srcdir/$ac_dir" || continue
17423 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17424 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17425 $as_echo "$ac_msg" >&6
17426 as_dir="$ac_dir"; as_fn_mkdir_p
17427 ac_builddir=.
17429 case "$ac_dir" in
17430 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17432 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17433 # A ".." for each directory in $ac_dir_suffix.
17434 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17435 case $ac_top_builddir_sub in
17436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17438 esac ;;
17439 esac
17440 ac_abs_top_builddir=$ac_pwd
17441 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17442 # for backward compatibility:
17443 ac_top_builddir=$ac_top_build_prefix
17445 case $srcdir in
17446 .) # We are building in place.
17447 ac_srcdir=.
17448 ac_top_srcdir=$ac_top_builddir_sub
17449 ac_abs_top_srcdir=$ac_pwd ;;
17450 [\\/]* | ?:[\\/]* ) # Absolute name.
17451 ac_srcdir=$srcdir$ac_dir_suffix;
17452 ac_top_srcdir=$srcdir
17453 ac_abs_top_srcdir=$srcdir ;;
17454 *) # Relative name.
17455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17456 ac_top_srcdir=$ac_top_build_prefix$srcdir
17457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17458 esac
17459 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17462 cd "$ac_dir"
17464 # Check for guested configure; otherwise get Cygnus style configure.
17465 if test -f "$ac_srcdir/configure.gnu"; then
17466 ac_sub_configure=$ac_srcdir/configure.gnu
17467 elif test -f "$ac_srcdir/configure"; then
17468 ac_sub_configure=$ac_srcdir/configure
17469 elif test -f "$ac_srcdir/configure.in"; then
17470 # This should be Cygnus configure.
17471 ac_sub_configure=$ac_aux_dir/configure
17472 else
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17474 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17475 ac_sub_configure=
17478 # The recursion is here.
17479 if test -n "$ac_sub_configure"; then
17480 # Make the cache file name correct relative to the subdirectory.
17481 case $cache_file in
17482 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17483 *) # Relative name.
17484 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17485 esac
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17488 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17489 # The eval makes quoting arguments work.
17490 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17491 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17492 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17495 cd "$ac_popdir"
17496 done
17498 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17500 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17504 chmod +x src/libnacl/okcompilers/do